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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
954ea7742540dcc7c64d498f12ec5119694238f8
| 367
|
asm
|
Assembly
|
oeis/006/A006332.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/006/A006332.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/006/A006332.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A006332: From the enumeration of corners.
; Submitted by Jamie Morken(s2)
; 0,2,28,168,660,2002,5096,11424,23256,43890,77924,131560,212940,332514,503440,742016,1068144,1505826,2083692,2835560,3801028,5026098,6563832,8475040,10829000,13704210,17189172,21383208,26397308,32355010
mul $0,2
add $0,4
mov $1,$0
bin $0,5
sub $1,2
mov $2,$1
mul $2,$0
mov $0,$2
div $0,12
| 26.214286
| 203
| 0.752044
|
f84b48c67f5682737cfe16e7048626b030a39d81
| 6,640
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_301.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_301.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_301.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 %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x13439, %r9
nop
nop
nop
add %rbp, %rbp
vmovups (%r9), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rsi
nop
add $22068, %r8
lea addresses_WC_ht+0x1adcb, %rsi
lea addresses_UC_ht+0x11739, %rdi
nop
nop
add $20663, %rbp
mov $112, %rcx
rep movsw
nop
nop
nop
xor %r8, %r8
lea addresses_D_ht+0x12f39, %rsi
lea addresses_A_ht+0x31f9, %rdi
nop
nop
nop
and %rdx, %rdx
mov $21, %rcx
rep movsl
nop
add $16735, %rcx
lea addresses_UC_ht+0xf5ef, %r8
clflush (%r8)
nop
nop
nop
cmp %rdi, %rdi
movw $0x6162, (%r8)
nop
nop
nop
add $23534, %r8
lea addresses_D_ht+0x10d09, %rbp
nop
nop
inc %rcx
movb (%rbp), %dl
nop
nop
nop
add $15413, %rdi
lea addresses_WT_ht+0xeeb9, %r8
nop
nop
add %rdi, %rdi
vmovups (%r8), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rbp
nop
nop
xor $3906, %rbp
lea addresses_normal_ht+0x329c, %rbp
add %r9, %r9
mov (%rbp), %si
nop
cmp $38653, %r9
lea addresses_UC_ht+0x12eb9, %rcx
nop
nop
nop
nop
xor $4678, %r9
mov (%rcx), %dx
nop
nop
nop
nop
and %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdx
// Store
lea addresses_RW+0x92d9, %r12
add %r8, %r8
movl $0x51525354, (%r12)
nop
nop
nop
add %r8, %r8
// Store
mov $0xcf9, %r9
nop
nop
nop
xor %rcx, %rcx
mov $0x5152535455565758, %rax
movq %rax, %xmm6
vmovntdq %ymm6, (%r9)
nop
nop
and %rax, %rax
// Store
lea addresses_normal+0x8039, %rax
nop
nop
nop
nop
nop
xor %r9, %r9
movl $0x51525354, (%rax)
nop
nop
nop
nop
nop
sub $48526, %r9
// Faulty Load
lea addresses_D+0xc739, %r9
nop
nop
nop
cmp $31512, %rax
movb (%r9), %r8b
lea oracles, %rdx
and $0xff, %r8
shlq $12, %r8
mov (%rdx,%r8,1), %r8
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'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
*/
| 35.698925
| 2,999
| 0.65241
|
8fe547b13ca271f6adf0c0b517839863211d3bc0
| 2,874
|
asm
|
Assembly
|
install/dos2/getinfo.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
install/dos2/getinfo.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
install/dos2/getinfo.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
;============================================================================
title GETINFO
;============================================================================
;
; (C) Copyright MICROSOFT Corp. 1991-1992
;
; Title: DOS2.EXE - GUI Portion of DOS Install
;
; Module: GETINFO - Routine that returns a pointer to the vInfo data
; data created by the CUI portion of DOS Install
;
; Version: 0.001
;
; Date: Jan 26,1992
;
; Author: HKN
;
;============================================================================
;
; Change log:
;
; DATE REVISION DESCRIPTION
; -------- -------- -------------------------------------------------------
; 01/26/92 Original
;
;============================================================================
include model.inc
include dpmi.inc
.data
RealModeCallFrame RealModeCallStruc <>
.code
;===========================================================================
;
; Procedure : GetInfo
;
; Input : None
; Output : Returns a Selector:Offset to the Vinfo Data
;
; Description:
;
; 1. Simulate Real Mode Int 2fh ax=4910h
; 2. Build a selector for the segment indiacted by ES in the
; Real Mode Call Structure.
; 3. Return the Selector:Offset
;
;===========================================================================
GetInfo proc uses es di bx cx
;
; Initialize the RealModeCallFrame with the inout registers we want
; to pass to the int 2f call. Note we are going to initialize RegSS
; and RegSP to 0. This will make the DPMI server provide a 30 word
; stack which is sufficient for our purposes.
;
lea di, [RealModeCallFrame]
mov word ptr [di].RegEAX, 4910h
xor ax, ax
mov [di].RegSS, ax
mov [di].RegSP, ax
pushf
pop ax
mov [di].RegFlg,ax
;
; Simulate the Real Mode Int.
;
mov ax, ds
mov es, ax ; es:di = RealModeCallStruc
mov bx, 02fh ; bl = int number
xor cx, cx
mov ax, SIMULATE_RELMODE_INT
int DPMI
jc GIerror
;
; The Int 2f was successful. At this point the registers returned by
; the real mode int call are in the RealModeCallStruc. The expected
; output from the int 2f should be: AX = -1 and ES:BX points to the
; vInfo data.
;
mov ax, word ptr [di].RegEAX
cmp ax, -1
jne GIerror
;
; We now need to map the segment in RegES to a selector.
;
mov cx, 1 ; one descriptor
mov ax, ALLOC_LDT_DESC
int DPMI
jc GIerror
mov bx, ax ; bx = selector
mov ax, [di].RegES
mov dx, ax
mov cl, 12
shr ax, cl
mov cl, 4
shl dx, cl
mov cx, ax ; cx:dx = 32 bit linear base address
mov ax, SET_SEG_BASE_ADDR
int DPMI ; set the base address of the desc
jc GIerror
mov dx, 0ffffh
xor cx, cx ; cx:dx = 64K limit
mov ax, SET_SEG_LIMIT
int DPMI
jc GIerror
mov dx, bx
mov ax, word ptr [di].RegEBX
ret
GIerror:
;
; If error return NULL
;
xor dx, dx
xor ax, ax
ret
GetInfo endp
end
| 20.676259
| 78
| 0.543841
|
2685a702a4e7e5cb8f86d198eac5ff8b7f385074
| 430
|
asm
|
Assembly
|
programs/oeis/053/A053836.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/053/A053836.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/053/A053836.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A053836: Sum of digits of n written in base 16.
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,6,7,8,9
add $0,1
lpb $0
sub $0,1
mov $2,16
mov $3,4
lpb $3
dif $0,$2
sub $3,2
lpe
add $1,1
lpe
sub $1,1
mov $0,$1
| 25.294118
| 252
| 0.574419
|
9cbba50e59ca279fba11ed8ba1348230c650a279
| 1,623
|
asm
|
Assembly
|
programs/oeis/334/A334293.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/334/A334293.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/334/A334293.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A334293: First quadrisection of Padovan sequence.
; 1,0,2,5,16,49,151,465,1432,4410,13581,41824,128801,396655,1221537,3761840,11584946,35676949,109870576,338356945,1042002567,3208946545,9882257736,30433357674,93722435101,288627200960,888855064897,2737314167775,8429820731201,25960439030624,79947654422626,246206446668325,758216295635152,2334999585697905,7190854504969591,22144924062668049,68197411225942776,210020449144859290,646778056030214957,1991814870720950560,6133984358677405281,18890191385547877199,58174150717848920801,179152859951018878480,551718363441132396562,1699069457453170349365,5232446865180756766896,16113820466162156978449,49624050985319754606951,152822010234306736916145,470629993890734894631592,1449350069469709754618570,4463412130845930930048061,13745504463991726018583424,42330595389990954581929601,130361116302803018149657535,401459523239570626063687297,1236332990777541261158276800,3807405667576597418657273026,11725269830725389246853063749,36109089654958112010836223376,111201394469668989180888911025,342455327734937703641139555927,1054623928533840486835782068305,3247815234742163073775871715416,10001957582820785311700229191674,30801984798401900331563855597901,94857657580008319672004270486240,292123227138043125650400336957857,899621411814513110648377340972335,2770470162623163917919959963304481,8531927787827910293435452286483824,26274887475339825451279161803853426,80916028476786545700784640430462805,249188647167420478048842218558969712,767400267240540418651317520213181265
mul $0,4
seq $0,931 ; Padovan sequence (or Padovan numbers): a(n) = a(n-2) + a(n-3) with a(0) = 1, a(1) = a(2) = 0.
| 270.5
| 1,453
| 0.912508
|
f48cc66b0803bf11aa1e764cee6a4759fd781d9b
| 612
|
asm
|
Assembly
|
oeis/033/A033594.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/033/A033594.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/033/A033594.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A033594: a(n) = (n-1)*(2*n-1)*(3*n-1).
; -1,0,15,80,231,504,935,1560,2415,3536,4959,6720,8855,11400,14391,17864,21855,26400,31535,37296,43719,50840,58695,67320,76751,87024,98175,110240,123255,137256,152279,168360,185535,203840,223311,243984,265895,289080,313575,339416,366639,395280,425375,456960,490071,524744,561015,598920,638495,679776,722799,767600,814215,862680,913031,965304,1019535,1075760,1134015,1194336,1256759,1321320,1388055,1457000,1528191,1601664,1677455,1755600,1836135,1919096,2004519,2092440,2182895,2275920,2371551,2469824
mov $1,$0
sub $1,1
add $1,$0
add $0,$1
bin $1,2
mul $1,$0
mov $0,$1
| 55.636364
| 501
| 0.776144
|
79f3b5a939abaf3cd953c7ec55206ef506e88b57
| 461
|
asm
|
Assembly
|
matlab_ext/code-miners/projects/prepro/test-data/cb/mFu.asm
|
zaqwes8811/coordinator-tasks
|
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
|
[
"MIT"
] | null | null | null |
matlab_ext/code-miners/projects/prepro/test-data/cb/mFu.asm
|
zaqwes8811/coordinator-tasks
|
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
|
[
"MIT"
] | 15
|
2015-03-07T12:46:41.000Z
|
2015-04-11T09:08:36.000Z
|
matlab_ext/code-miners/projects/prepro/test-data/cb/mFu.asm
|
zaqwes8811/micro-apps
|
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
|
[
"MIT"
] | null | null | null |
#-*- coding: utf-8 -*-
#include <headers\_v1_IRQ.inc>
temps idata
temp_fsr0L res 1
temp_fsr0H res 1
temp_fsr1L res 1
temp_fsr1H res 1
temp_fsr2L res 1
temp_fsr2H res 1
temp2_fsr0L res 1
temp2_fsr0H res 1
temp2_fsr1L res 1
temp2_fsr1H res 1
temp2_fsr2L res 1
temp2_fsr2H res 1
temp2_WREG res 1
temp2_BSR res 1
temp2_STATUS res 1
object code
_v#v(HERE)_IRQ_SETuw_ResetInt;(void/void)
clrwdt
call _v#v(UP)_PIO_INI
goto _TASK_INI_RESET
end
| 17.074074
| 47
| 0.759219
|
213747ff8fc14605a6809472e332d5d7317041d9
| 10,070
|
asm
|
Assembly
|
brick.asm
|
mariahassan54/Super-Mario-Game-in-Assembly-Language
|
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
|
[
"MIT"
] | null | null | null |
brick.asm
|
mariahassan54/Super-Mario-Game-in-Assembly-Language
|
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
|
[
"MIT"
] | null | null | null |
brick.asm
|
mariahassan54/Super-Mario-Game-in-Assembly-Language
|
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
|
[
"MIT"
] | null | null | null |
.model medium, stdcall
.stack
.data
brickBlack byte 00d ;black
brickBrown byte 185d ; brown
brickSkin byte 14d ;skin
.code
drawBrick proc x:word, y:word
push AX
push BX
push CX
push DX
push SI
push DI
mov AX, @data
mov DS, AX
mov CX, x
mov DX, y
;mov CX, 160d
;mov DX, 100d
push CX
mov ah, 0ch
mov al, brickBrown ;row1
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
;row2
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
;row 3
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 4
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
;row 5
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 6
pop CX
push CX
dec DX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 7
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 8
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 9
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 10
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
;row 11
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
;row 12
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
;row 13
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
;row 14
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
;row 15
pop CX
push CX
dec DX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickSkin
int 10h
;row 16
pop CX
push CX
dec DX
mov al, brickBlack
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBlack
int 10h
inc CX
mov al,brickBrown
int 10h
inc CX
mov al,brickSkin
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
int 10h
inc CX
mov al,brickBrown
int 10h
pop CX
pop DI
pop SI
pop DX
pop CX
pop BX
pop AX
ret
drawBrick endp
end
| 12.031063
| 43
| 0.472393
|
953676faef8ec047346a594ec49d9c10924fce13
| 6,316
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2191.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2191.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2191.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+0x12142, %r13
nop
add %r11, %r11
vmovups (%r13), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rbx
nop
xor $13563, %rdi
lea addresses_D_ht+0x1deae, %r14
nop
nop
nop
nop
sub %r12, %r12
movb $0x61, (%r14)
add $13472, %r12
lea addresses_A_ht+0x11aae, %rbx
nop
cmp %rcx, %rcx
movb (%rbx), %r11b
nop
nop
nop
xor $48683, %rcx
lea addresses_A_ht+0xa2e, %rbx
clflush (%rbx)
nop
nop
nop
xor $8407, %r12
mov (%rbx), %r13w
nop
nop
nop
nop
nop
xor $5876, %r14
lea addresses_WT_ht+0x7a1e, %r14
nop
nop
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm0
and $0xffffffffffffffc0, %r14
movaps %xmm0, (%r14)
nop
and %r12, %r12
lea addresses_normal_ht+0x32ae, %rsi
lea addresses_WT_ht+0x10ae, %rdi
nop
nop
nop
nop
nop
cmp %r13, %r13
mov $94, %rcx
rep movsl
inc %rdi
lea addresses_WC_ht+0x152ae, %rsi
lea addresses_D_ht+0x1232e, %rdi
clflush (%rdi)
nop
xor $13681, %r11
mov $1, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $2919, %r11
lea addresses_WT_ht+0x100ae, %rsi
lea addresses_D_ht+0x18f0e, %rdi
add $34123, %rbx
mov $3, %rcx
rep movsw
xor %rcx, %rcx
lea addresses_WC_ht+0x17eae, %rcx
nop
nop
nop
nop
and %rsi, %rsi
vmovups (%rcx), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %r12
nop
nop
and $22499, %rcx
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 %r11
push %r13
push %r14
push %rax
push %rcx
push %rsi
// Faulty Load
lea addresses_PSE+0x182ae, %r14
nop
nop
nop
nop
nop
xor %r11, %r11
mov (%r14), %esi
lea oracles, %rcx
and $0xff, %rsi
shlq $12, %rsi
mov (%rcx,%rsi,1), %rsi
pop %rsi
pop %rcx
pop %rax
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 4, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 38.987654
| 2,999
| 0.659911
|
ec970bcf72f65117ec0f7ac886a5ff8ffd44d7eb
| 303
|
asm
|
Assembly
|
Tejas-Simulator/PIN/pin-2.14/source/tools/ToolUnitTests/test_ip_access_app_intel64.asm
|
markoshorro/tejas_knl
|
5e772aef46362d8bec8ad6d5427b9bcff9be5cfe
|
[
"Apache-2.0"
] | 17
|
2021-07-10T13:22:26.000Z
|
2022-02-09T20:11:39.000Z
|
pin_kit/source/tools/ToolUnitTests/test_ip_access_app_intel64.asm
|
sawansib/SNIPER
|
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
|
[
"MIT"
] | 4
|
2021-08-18T14:07:24.000Z
|
2022-01-24T16:38:06.000Z
|
pin_kit/source/tools/ToolUnitTests/test_ip_access_app_intel64.asm
|
sawansib/SNIPER
|
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
|
[
"MIT"
] | 11
|
2016-07-01T02:21:06.000Z
|
2020-11-23T08:29:22.000Z
|
PUBLIC TestIpRead
PUBLIC TestIpWrite
PUBLIC Dummy
.code
TestIpRead PROC
mov eax, DWORD PTR [mylabelR]
mylabelR:
ret
TestIpRead ENDP
TestIpWrite PROC
mov BYTE PTR [mylabelW], 90H
mylabelW:
nop
ret
TestIpWrite ENDP
Dummy PROC
ret
Dummy ENDP
end
| 8.911765
| 40
| 0.653465
|
0e064dc28a945ebaa7eef865c45dddf4b4924cb5
| 739
|
asm
|
Assembly
|
oeis/077/A077241.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/077/A077241.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/077/A077241.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A077241: Combined Diophantine Chebyshev sequences A054488 and A077413.
; Submitted by Jon Maiga
; 1,2,8,13,47,76,274,443,1597,2582,9308,15049,54251,87712,316198,511223,1842937,2979626,10741424,17366533,62605607,101219572,364892218,589950899,2126747701,3438485822,12395593988,20040964033,72246816227,116807298376,421085303374,680802826223,2454265004017,3968009658962,14304504720728,23127255127549,83372763320351,134795521106332,485932075201378,785645871510443,2832219687887917,4579079707956326,16507386052126124,26688832376227513,96212096624868827,155553914549408752,560765193697086838
mov $2,6
lpb $0
sub $0,1
add $1,4
mov $3,$0
add $3,$0
mod $3,4
mul $3,$2
add $1,$3
add $2,$1
lpe
add $2,$1
mov $0,$2
div $0,8
add $0,1
| 36.95
| 488
| 0.801083
|
bd348161d2e0f55edc1c6ee58c9be5d55e06ff22
| 2,439
|
asm
|
Assembly
|
Kernel/asm/exceptions.asm
|
camilaDiToro/Kernel-Pure64
|
2d94b13c2dee56c8395f92f55b6c78a2da061bb3
|
[
"BSD-3-Clause"
] | null | null | null |
Kernel/asm/exceptions.asm
|
camilaDiToro/Kernel-Pure64
|
2d94b13c2dee56c8395f92f55b6c78a2da061bb3
|
[
"BSD-3-Clause"
] | null | null | null |
Kernel/asm/exceptions.asm
|
camilaDiToro/Kernel-Pure64
|
2d94b13c2dee56c8395f92f55b6c78a2da061bb3
|
[
"BSD-3-Clause"
] | 1
|
2021-12-08T01:05:48.000Z
|
2021-12-08T01:05:48.000Z
|
GLOBAL print_registers
GLOBAL give_control_to_user
EXTERN print
EXTERN printRegisterFormat
EXTERN newLine
EXTERN main
EXTERN getStackBase
section .text
give_control_to_user:
call getStackBase ; Get thet stack address
mov rsp, rax ; Set up the stack with the returned address
call main
; Retrieved from https://os.phil-opp.com/handling-exceptions/
; The function must print the registers mentioned below in the following order:
; RAX R15 R14 R13 R12 R11 R10 R9 R8 RSI RDI RBP RDX RCX RBX RIP CS RFLAGS RSP SS
; because they were pushed to the stack in reverse order (checked using GDB).
; Notice that RIP will point to the instruction that caused the exception.
; -- lower part of the stack --
; RBP
; RIP -> calling function
; RAX
; R15
; R14
; R13
; R12
; R11
; R10
; R9
; R8
; RSI
; RDI
; RBP
; RDX
; RCX
; RBX
; RIP -> instruction that caused the exception
; CS
; RFLAGS
; RSP
; SS
; -- upper part of the stack --
print_registers:
push rbp
mov rbp, rsp
xor r10, r10
.loop_registers:
mov rdi, [registers+r10]
call print
add r10, 8
mov rdi, [rbp+r10+8]
call printRegisterFormat
call newLine
cmp r10, length
jne .loop_registers
mov rsp, rbp
pop rbp
ret
section .data
segmentSS db " SS = ", 0
rflags db " RFLAGS = ", 0
segmentCS db " CS = ", 0
registerRIP db " RIP = ", 0
registerRAX db " RAX = ", 0
registerRBX db " RBX = ", 0
registerRCX db " RCX = ", 0
registerRDX db " RDX = ", 0
registerRBP db " RBP = ", 0
registerRDI db " RDI = ", 0
registerRSI db " RSI = ", 0
registerRSP db " RSP = ", 0
registerR8 db " R8 = ", 0
registerR9 db " R9 = ", 0
registerR10 db " R10 = ", 0
registerR11 db " R11 = ", 0
registerR12 db " R12 = ", 0
registerR13 db " R13 = ", 0
registerR14 db " R14 = ", 0
registerR15 db " R15 = ", 0
registers dq registerRAX, registerR15, registerR14, registerR13, registerR12, registerR11, registerR10,registerR9, registerR8, registerRSI, registerRDI, registerRBP, registerRDX, registerRCX, registerRBX, registerRIP, segmentCS, rflags, registerRSP, segmentSS
length equ $-registers
| 26.802198
| 266
| 0.592046
|
bb9404b2eb0ec8fb485fb144515ad4577b88b574
| 6,353
|
asm
|
Assembly
|
OldArchitecture/v1.0/Programs/Demos/eo6/demo_eo6_color.asm
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
OldArchitecture/v1.0/Programs/Demos/eo6/demo_eo6_color.asm
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
OldArchitecture/v1.0/Programs/Demos/eo6/demo_eo6_color.asm
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
// --- Custom splash screen ----
// Designed for the Hack computer
// by @github/jetstarblues
// === Setup ===
// colors
@0 // '0000000000000000'
D = A
@color0
M = D
@4369 // '0001000100010001'
D = A
@color1
M = D
@8738 // '0010001000100010'
D = A
@color2
M = D
@13107 // '0011001100110011'
D = A
@color3
M = D
@17476
D = A
@color4
M = D
@21845
D = A
@color5
M = D
@26214
D = A
@color6
M = D
@30583
D = A
@color7
M = D
@34952
D = A
@color8
M = D
@39321
D = A
@color9
M = D
@43690
D = A
@color10
M = D
@48059
D = A
@color11
M = D
@52428
D = A
@color12
M = D
@56797
D = A
@color13
M = D
@61166
D = A
@color14
M = D
@65535
D = A
@color15
M = D
// program variables
@i
M = 0 // @i = 0
@addr
M = 0 // @addr = 0
@addr1
M = 0 // @addr1 = 0
@addr2
M = 0 // @addr2 = 0
@addr3
M = 0 // @addr3 = 0
@color
M = 0 // @color = 0
@rect_idx
M = 1 // @rect_idx = 1
@11
D = A
@n_rects
M = D // @n_rects = 11
// rect1
// start position
@SCREEN
D = A
@a_rect1
M = D // @a_rect1 = @SCREEN
@6196 // ( 16 * ( 32 * 3 ) + 13 ) * 4
D = A
@a_rect1
M = D + M // @a_rect1 += 6196
// height
@96 // 16 * 6
D = A
@h_rect1
M = D // @h_rect1 = 96
// rect2
// start position
@SCREEN
D = A
@a_rect2
M = D
@6200 // ( 16 * ( 32 * 3 ) + 14 ) * 4
D = A
@a_rect2
M = D + M
// height
@16 // 16 * 1
D = A
@h_rect2
M = D
// rect3
// start position
@SCREEN
D = A
@a_rect3
M = D
@10296 // ( 16 * ( 32 * 5 ) + 14 ) * 4
D = A
@a_rect3
M = D + M
// height
@32 // 16 * 2
D = A
@h_rect3
M = D
// rect4
// start position
@SCREEN
D = A
@a_rect4
M = D
@16440 // ( 16 * ( 32 * 8 ) + 14 ) * 4
D = A
@a_rect4
M = D + M
// height
@16 // 16 * 1
D = A
@h_rect4
M = D
// rect5
// start position
@SCREEN
D = A
@a_rect5
M = D
@6204 // ( 16 * ( 32 * 3 ) + 15 ) * 4
D = A
@a_rect5
M = D + M
// height
@96 // 16 * 6
D = A
@h_rect5
M = D
// rect6
// start position
@SCREEN
D = A
@a_rect6
M = D
@12352 // ( 16 * ( 32 * 6 ) + 16 ) * 4
D = A
@a_rect6
M = D + M
// height
@96 // 16 * 6
D = A
@h_rect6
M = D
// rect7
// start position
@SCREEN
D = A
@a_rect7
M = D
@12356 // ( 16 * ( 32 * 6 ) + 17 ) * 4
D = A
@a_rect7
M = D + M
// height
@16 // 16 * 1
D = A
@h_rect7
M = D
// rect8
// start position
@SCREEN
D = A
@a_rect8
M = D
@16452 // ( 16 * ( 32 * 8 ) + 17 ) * 4
D = A
@a_rect8
M = D + M
// height
@32 // 16 * 2
D = A
@h_rect8
M = D
// rect9
// start position
@SCREEN
D = A
@a_rect9
M = D
@22596 // ( 16 * ( 32 * 11 ) + 17 ) * 4
D = A
@a_rect9
M = D + M
// height
@16 // 16 * 1
D = A
@h_rect9
M = D
// rect10
// start position
@SCREEN
D = A
@a_rect10
M = D
@12360 // ( 16 * ( 32 * 6 ) + 18 ) * 4
D = A
@a_rect10
M = D + M
// height
@96 // 16 * 6
D = A
@h_rect10
M = D
// === Main loop ===
(SETUP_rect)
// if rect_idx == n_rects, goto END
@n_rects
D = M
@rect_idx
D = D - M
@END
D ; JEQ
// if rect_idx == 10, goto SETUP_rect10
@10
D = A
@rect_idx
D = D - M
@SETUP_rect10
D ; JEQ
// if rect_idx == 9, goto SETUP_rect9
@9
D = A
@rect_idx
D = D - M
@SETUP_rect9
D ; JEQ
// if rect_idx == 8, goto SETUP_rect8
@8
D = A
@rect_idx
D = D - M
@SETUP_rect8
D ; JEQ
// if rect_idx == 7, goto SETUP_rect7
@7
D = A
@rect_idx
D = D - M
@SETUP_rect7
D ; JEQ
// if rect_idx == 6, goto SETUP_rect6
@6
D = A
@rect_idx
D = D - M
@SETUP_rect6
D ; JEQ
// if rect_idx == 5, goto SETUP_rect5
@5
D = A
@rect_idx
D = D - M
@SETUP_rect5
D ; JEQ
// if rect_idx == 4, goto SETUP_rect4
@4
D = A
@rect_idx
D = D - M
@SETUP_rect4
D ; JEQ
// if rect_idx == 3, goto SETUP_rect3
@3
D = A
@rect_idx
D = D - M
@SETUP_rect3
D ; JEQ
// if rect_idx == 2, goto SETUP_rect2
@2
D = A
@rect_idx
D = D - M
@SETUP_rect2
D ; JEQ
// if rect_idx == 1, goto SETUP_rect1
@1
D = A
@rect_idx
D = D - M
@SETUP_rect1
D ; JEQ
(LOOP_rect)
@i
D = M
@h
D = D - M
@SETUP_rect
D ; JEQ // if i == h, goto next rect
// @addr
// A = M
// M = -1 // RAM[ @addr ] = -1
@ addr
D = M
@ addr1
MD = D + 1 // @addr1 = @addr + 1
@ addr2
MD = D + 1 // @addr2 = @addr1 + 1
@ addr3
MD = D + 1 // @addr3 = @addr2 + 1
@color
D = M
@addr
A = M
M = D // RAM[ @addr ] = color
@addr1
A = M
M = D // RAM[ @addr1 ] = color
@addr2
A = M
M = D // RAM[ @addr2 ] = color
@addr3
A = M
M = D // RAM[ @addr3 ] = color
@128
D = A
@addr
M = D + M // @addr += 32 * 4
@i
M = M + 1 // @i += 1
@LOOP_rect
0 ; JMP
(SETUP_rect1)
@rect_idx
M = M + 1
@i
M = 0
@color3
D = M
@color
M = D
@a_rect1
D = M
@addr
M = D
@h_rect1
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect2)
@rect_idx
M = M + 1
@i
M = 0
@color6
D = M
@color
M = D
@a_rect2
D = M
@addr
M = D
@h_rect2
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect3)
@rect_idx
M = M + 1
@i
M = 0
@color7
D = M
@color
M = D
@a_rect3
D = M
@addr
M = D
@h_rect3
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect4)
@rect_idx
M = M + 1
@i
M = 0
@color8
D = M
@color
M = D
@a_rect4
D = M
@addr
M = D
@h_rect4
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect5)
@rect_idx
M = M + 1
@i
M = 0
@color9
D = M
@color
M = D
@a_rect5
D = M
@addr
M = D
@h_rect5
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect6)
@rect_idx
M = M + 1
@i
M = 0
@color10
D = M
@color
M = D
@a_rect6
D = M
@addr
M = D
@h_rect6
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect7)
@rect_idx
M = M + 1
@i
M = 0
@color11
D = M
@color
M = D
@a_rect7
D = M
@addr
M = D
@h_rect7
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect8)
@rect_idx
M = M + 1
@i
M = 0
@color12
D = M
@color
M = D
@a_rect8
D = M
@addr
M = D
@h_rect8
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect9)
@rect_idx
M = M + 1
@i
M = 0
@color13
D = M
@color
M = D
@a_rect9
D = M
@addr
M = D
@h_rect9
D = M
@h
M = D
@LOOP_rect
0 ; JMP
(SETUP_rect10)
@rect_idx
M = M + 1
@i
M = 0
@color14
D = M
@color
M = D
@a_rect10
D = M
@addr
M = D
@h_rect10
D = M
@h
M = D
@LOOP_rect
0 ; JMP
// === End loop ===
(END)
@END
0 ; JMP
| 9.011348
| 41
| 0.482449
|
5d7e8c215559dd7e2344233b7769c58d23b849f2
| 340
|
asm
|
Assembly
|
v2.0/source/msdos/dosseg.asm
|
neozeed/MS-DOS
|
1cb8b96cd347b7eb150922eeb4924ec92911dc31
|
[
"MIT"
] | 7
|
2018-09-29T16:03:48.000Z
|
2021-04-06T20:08:57.000Z
|
v2.0/source/msdos/dosseg.asm
|
neozeed/MS-DOS
|
1cb8b96cd347b7eb150922eeb4924ec92911dc31
|
[
"MIT"
] | null | null | null |
v2.0/source/msdos/dosseg.asm
|
neozeed/MS-DOS
|
1cb8b96cd347b7eb150922eeb4924ec92911dc31
|
[
"MIT"
] | null | null | null |
;
; segment ordering for MSDOS
;
CONSTANTS SEGMENT BYTE PUBLIC 'CONST'
CONSTANTS ENDS
DATA SEGMENT BYTE PUBLIC 'DATA'
DATA ENDS
CODE SEGMENT BYTE PUBLIC 'CODE'
CODE ENDS
LAST SEGMENT BYTE PUBLIC 'LAST'
LAST ENDS
DOSGROUP GROUP CODE,CONSTANTS,DATA,LAST
| 18.888889
| 44
| 0.588235
|
2df979e7626612b04cb9d05cc652c10694d36e6e
| 1,630
|
asm
|
Assembly
|
lib/target/pc88/classic/allram.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
lib/target/pc88/classic/allram.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
lib/target/pc88/classic/allram.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; CRT0 stub for 64k Mode PC88
defc CONSOLE_COLUMNS = 80
defc CONSOLE_ROWS = 25
defc CRT_ORG_CODE = 0x0000
defc TAR__register_sp = 0xc000
defc TAR__clib_exit_stack_size = 32
defc TAR__fputc_cons_generic = 1
; No interrupts registered
defc TAR__crt_enable_rst = $0000
IFNDEF CRT_ENABLE_NMI
defc TAR__crt_enable_nmi = 1
EXTERN asm_nmi_handler
defc _z80_nmi = asm_nmi_handler
ENDIF
EXTERN asm_im1_handler
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_CODE
jp program
INCLUDE "crt/classic/crt_z80_rsts.asm"
program:
di
; Make room for the atexit() stack
INCLUDE "crt/classic/crt_init_sp.asm"
INCLUDE "crt/classic/crt_init_atexit.asm"
call crt0_init_bss
ld (exitsp),sp
; Optional definition for auto MALLOC init
; it assumes we have free space between the end of
; the compiled program and the stack pointer
IF DEFINED_USING_amalloc
INCLUDE "crt/classic/crt_init_amalloc.asm"
ENDIF
ld hl,asm_im1_handler
ld ($f302),hl ;vsync interrupt
ld a,2 ;Enable vsync interrupt only
out ($e4),a
out ($e6),a
ei
; Entry to the user code
call _main
cleanup:
call crt0_exit
endloop:
jr endloop
l_dcal:
jp (hl)
; Make im1 init a noop in allram mode
im1_init:
_im1_init:
; Calling the bios should be noop too since it's not paged in
pc88bios:
ret
INCLUDE "crt/classic/crt_runtime_selection.asm"
INCLUDE "crt/classic/crt_section.asm"
; Include the IPL bootstrap code
INCLUDE "target/pc88/classic/bootstrap.asm"
| 20.375
| 61
| 0.683436
|
72687084b33f164fb6dfc2ae3f929729e03e4b61
| 727
|
asm
|
Assembly
|
oeis/287/A287168.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/287/A287168.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/287/A287168.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A287168: Number of non-attacking bishop positions on a cylindrical 3 X 2n chessboard.
; Submitted by Christian Krause
; 1,16,144,1156,11664,118336,1218816,12574116,129868816,1341610384,13860823824,143206237476,1479580304400,15286786268224,157940749232704,1631820172890436,16859722986240016,174192150898142224,1799727414404326416,18594516209802790084,192115778508781642384,1984911677384063321664,20507812517365097718784,211883671726201681455844,2189150613038796842956816,22617978853843833512296336,233685596772682539623607184,2414404863135465466119350116,24945272295934625603453289744,257730846810103503813937692736
mov $3,$0
seq $0,61703 ; G.f.: 2*x*(2-2*x-3*x^2+2*x^3)/((1-3*x-x^2+x^3)*(1-x)).
pow $0,2
pow $2,$3
add $0,$2
| 72.7
| 496
| 0.841816
|
a230649af1b8d6e54cf98187d9763ddcc3681ef0
| 1,130
|
asm
|
Assembly
|
Util/Util.asm
|
ahmedhussiien/AssemblyLibrary
|
ecfa060b673af1f7d9c329cf2e16d914902b050c
|
[
"MIT"
] | null | null | null |
Util/Util.asm
|
ahmedhussiien/AssemblyLibrary
|
ecfa060b673af1f7d9c329cf2e16d914902b050c
|
[
"MIT"
] | null | null | null |
Util/Util.asm
|
ahmedhussiien/AssemblyLibrary
|
ecfa060b673af1f7d9c329cf2e16d914902b050c
|
[
"MIT"
] | null | null | null |
;===========================================================================
; Util.asm
;---------------------------------------------------------------------------
; Assembly x86 library
;
;
; Author: Ahmed Hussein
; Created:
;
;
; This file provide some Macros that help in decreasing code size
;
; Procedures included:
; * PushA
; * PopA
;===========================================================================
;-----------------------------------------------------
; PushA
;-----------------------------------------------------
; Push all general registers
; PUSH AX, BX, DX, CX, BP, SI, DI
;-----------------------------------------------------
PushA MACRO
PUSH AX
PUSH BX
PUSH DX
PUSH CX
PUSH BP
PUSH SI
PUSH DI
ENDM PushA
;-----------------------------------------------------
; PopA
;-----------------------------------------------------
; Pop all general registers
; POP DI, SI, BP, CX, DX, BX, AX
;-----------------------------------------------------
PopA MACRO
POP DI
POP SI
POP BP
POP CX
POP DX
POP BX
POP AX
ENDM PopA
| 22.156863
| 77
| 0.293805
|
3bd609ed3be13e7efb5febf0b299859c09364ba8
| 1,103
|
asm
|
Assembly
|
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/printstr.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | 10
|
2016-10-27T20:46:02.000Z
|
2021-11-01T15:49:13.000Z
|
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/printstr.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | null | null | null |
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/printstr.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | 2
|
2015-03-11T14:28:08.000Z
|
2017-11-02T10:57:57.000Z
|
#include once <print.asm>
#include once <sposn.asm>
#include once <attr.asm>
#include once <free.asm>
; PRINT command routine
; Prints string pointed by HL
PRINT_STR:
__PRINTSTR: ; __FASTCALL__ Entry to print_string
PROC
LOCAL __PRINT_STR_LOOP
LOCAL __PRINT_STR_END
ld d, a ; Saves A reg (Flag) for later
ld a, h
or l
ret z ; Return if the pointer is NULL
push hl
ld c, (hl)
inc hl
ld b, (hl)
inc hl ; BC = LEN(a$); HL = &a$
__PRINT_STR_LOOP:
ld a, b
or c
jr z, __PRINT_STR_END ; END if BC (counter = 0)
ld a, (hl)
call __PRINTCHAR
inc hl
dec bc
jp __PRINT_STR_LOOP
__PRINT_STR_END:
pop hl
ld a, d ; Recovers A flag
or a ; If not 0 this is a temporary string. Free it
ret z
jp __MEM_FREE ; Frees str from heap and return from there
__PRINT_STR:
; Fastcall Entry
; It ONLY prints strings
; HL = String start
; BC = String length (Number of chars)
push hl ; Push str address for later
ld d, a ; Saves a FLAG
jp __PRINT_STR_LOOP
ENDP
| 19.350877
| 65
| 0.617407
|
f884ba60504e5cb5dfa35078624c03d9959c9662
| 907
|
asm
|
Assembly
|
src/stars/examples/basics/quadratic1.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 9
|
2020-11-05T21:26:09.000Z
|
2022-03-04T15:24:40.000Z
|
src/stars/examples/basics/quadratic1.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 7
|
2020-11-06T15:59:40.000Z
|
2021-08-31T16:36:43.000Z
|
src/stars/examples/basics/quadratic1.asm
|
kevintmcdonnell/stars
|
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
|
[
"MIT"
] | 1
|
2021-07-13T21:55:02.000Z
|
2021-07-13T21:55:02.000Z
|
########## Evaluates Ax^2 + Bx + C ##########
# Version 1
# Values of x, A, B, C are hard-coded
.data
ans: .asciiz "Answer: "
endl: .asciiz "\n"
x: .word 6
A: .word 3
B: .word 4
C: .word 5
.text
main:
lw $t0, x # load word at the address of x into $t0
lw $t1, A
lw $t2, B
lw $t3, C
########## Calculations ##########
mul $t4, $t0, $t0 # $t4 = x^2
mul $t5, $t4, $t1 # $t5 = A*x^2
mul $t2, $t2, $t0 # $t2 = B*x
add $t0, $t5, $t2 # $t0 = A*x^2 + B*x
add $t0, $t0, $t3 # $t0 = A*x^2 + B*x + C
########## Output ##########
la $a0, ans # load address into argument register $a0
li $v0, 4 # syscall 4 is print_string
syscall
move $a0, $t0 # move result value into reg $a0
li $v0, 1 # syscall 1 is print_integer
syscall
la $a0, endl # load address in arg reg $a0
li $v0, 4 # syscall 4 is print_string
syscall
li $v0, 10 # syscall 10 is terminate program
syscall
| 20.155556
| 54
| 0.54355
|
22715c6359de40fe7205d269e0c68e9027376d6d
| 1,954
|
asm
|
Assembly
|
Driver/Video/Dumb/MCGA/mcgaStringTab.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Driver/Video/Dumb/MCGA/mcgaStringTab.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Driver/Video/Dumb/MCGA/mcgaStringTab.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: mcgaStringTab.asm
AUTHOR: Jim DeFrisco, 8/1/90
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 8/1/90 Initial revision
jeremy 4/10/91 Added "mono VGA" string
DESCRIPTION:
This file holds the device string tables
$Id: mcgaStringTab.asm,v 1.1 97/04/18 11:42:34 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
; these are the device enums
if PZ_PCGEOS
VD_IBM_MVGA enum VideoDevice, 0
VD_IBM_MVGA_INVERSE enum VideoDevice
else
VD_IBM_MCGA enum VideoDevice, 0
VD_IBM_MVGA enum VideoDevice
VD_IBM_MVGA_INVERSE enum VideoDevice
endif
; the first thing in the segment is the DriverExtendedInfoTable
; structure
DriverExtendedInfoTable <
{}, ; lmem header added by Esp
VideoDevice/2, ; DEIT_numDevices
offset MCGAStringTable, ; DEIT_nameTable
0 ; DEIT_infoTable
>
if not PZ_PCGEOS
; this is the table of near pointers to the device strings
MCGAStringTable lptr.char \
IBMMCGAString, ; VD_IBM_MCGA
IBMMonoVGAString, ; VD_IBM_MCGA
IBMInverseMonoVGAString, ; VD_IBM_MCGA_INVERSE
0 ; table terminator
else
; this is the table of near pointers to the device strings
MCGAStringTable lptr.char \
IBMMonoVGAString, ; VD_IBM_MCGA
IBMInverseMonoVGAString, ; VD_IBM_MCGA_INVERSE
0 ; table terminator
endif
; these are the strings describing the devices
if not PZ_PCGEOS
LocalDefString IBMMCGAString <"IBM MCGA: 640x480 Mono",0> ; VD_IBM_MCGA
endif
LocalDefString IBMMonoVGAString <"VGA: 640x480 Mono",0> ; VD_IBM_MCGA
LocalDefString IBMInverseMonoVGAString <"VGA: 640x480 Inverse Mono",0>
; VD_IBM_MCGA_INVERSE
| 27.914286
| 79
| 0.647902
|
5b8cdebaa50a1460466f3f0b9504b09122ae6155
| 86
|
asm
|
Assembly
|
tests/testXor.asm
|
trailofbits/codereason
|
5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2
|
[
"MIT"
] | 129
|
2015-06-18T01:24:22.000Z
|
2019-05-21T01:00:56.000Z
|
tests/testXor.asm
|
zeezocode/codereason
|
5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2
|
[
"MIT"
] | 5
|
2015-06-19T05:09:37.000Z
|
2015-07-13T18:57:18.000Z
|
tests/testXor.asm
|
zeezocode/codereason
|
5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2
|
[
"MIT"
] | 28
|
2015-06-18T02:02:03.000Z
|
2019-06-28T03:48:15.000Z
|
BITS 32
SEGMENT .text
_s:
mov eax, ecx
mov ebx, edx
xor eax, ebx
ret
| 9.555556
| 16
| 0.569767
|
9c3164169c884c51bdaaf050b6db264b8c70b985
| 3,016
|
asm
|
Assembly
|
scripts/LancesRoom.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
scripts/LancesRoom.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
scripts/LancesRoom.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
LancesRoom_Script:
call LanceShowOrHideEntranceBlocks
call EnableAutoTextBoxDrawing
ld hl, LancesRoomTrainerHeaders
ld de, LancesRoom_ScriptPointers
ld a, [wLancesRoomCurScript]
call ExecuteCurMapScriptInTable
ld [wLancesRoomCurScript], a
ret
LanceShowOrHideEntranceBlocks:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
CheckEvent EVENT_LANCES_ROOM_LOCK_DOOR
jr nz, .closeEntrance
; open entrance
ld a, $31
ld b, $32
jp .setEntranceBlocks
.closeEntrance
ld a, $72
ld b, $73
.setEntranceBlocks
; Replaces the tile blocks so the player can't leave.
push bc
ld [wNewTileBlockID], a
lb bc, 6, 2
call .SetEntranceBlock
pop bc
ld a, b
ld [wNewTileBlockID], a
lb bc, 6, 3
.SetEntranceBlock:
predef_jump ReplaceTileBlock
ResetLanceScript:
xor a
ld [wLancesRoomCurScript], a
ret
LancesRoom_ScriptPointers:
dw LanceScript0
dw DisplayEnemyTrainerTextAndStartBattle
dw LanceScript2
dw LanceScript3
dw LanceScript4
LanceScript4:
ret
LanceScript0:
CheckEvent EVENT_BEAT_LANCE
ret nz
ld hl, LanceTriggerMovementCoords
call ArePlayerCoordsInArray
jp nc, CheckFightingMapTrainers
xor a
ldh [hJoyHeld], a
ld a, [wCoordIndex]
cp $3 ; Is player standing next to Lance's sprite?
jr nc, .notStandingNextToLance
ld a, $1
ldh [hSpriteIndexOrTextID], a
jp DisplayTextID
.notStandingNextToLance
cp $5 ; Is player standing on the entrance staircase?
jr z, WalkToLance
CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
ret nz
ld hl, wCurrentMapScriptFlags
set 5, [hl]
ld a, SFX_GO_INSIDE
call PlaySound
jp LanceShowOrHideEntranceBlocks
LanceTriggerMovementCoords:
dbmapcoord 5, 1
dbmapcoord 6, 2
dbmapcoord 5, 11
dbmapcoord 6, 11
dbmapcoord 24, 16
db -1 ; end
LanceScript2:
call EndTrainerBattle
ld a, [wIsInBattle]
cp $ff
jp z, ResetLanceScript
ld a, $1
ldh [hSpriteIndexOrTextID], a
jp DisplayTextID
WalkToLance:
; Moves the player down the hallway to Lance's room.
ld a, $ff
ld [wJoyIgnore], a
ld hl, wSimulatedJoypadStatesEnd
ld de, WalkToLance_RLEList
call DecodeRLEList
dec a
ld [wSimulatedJoypadStatesIndex], a
call StartSimulatingJoypadStates
ld a, $3
ld [wLancesRoomCurScript], a
ld [wCurMapScript], a
ret
WalkToLance_RLEList:
db D_UP, 12
db D_LEFT, 12
db D_DOWN, 7
db D_LEFT, 6
db -1 ; end
LanceScript3:
ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
call Delay3
xor a
ld [wJoyIgnore], a
ld [wLancesRoomCurScript], a
ld [wCurMapScript], a
ret
LancesRoom_TextPointers:
dw LanceText1
LancesRoomTrainerHeaders:
def_trainers
LancesRoomTrainerHeader0:
trainer EVENT_BEAT_LANCES_ROOM_TRAINER_0, 0, LanceBeforeBattleText, LanceEndBattleText, LanceAfterBattleText
db -1 ; end
LanceText1:
text_asm
ld hl, LancesRoomTrainerHeader0
call TalkToTrainer
jp TextScriptEnd
LanceBeforeBattleText:
text_far _LanceBeforeBattleText
text_end
LanceEndBattleText:
text_far _LanceEndBattleText
text_end
LanceAfterBattleText:
text_far _LanceAfterBattleText
text_asm
SetEvent EVENT_BEAT_LANCE
jp TextScriptEnd
| 19.333333
| 109
| 0.786472
|
a2a3992bbcf39635b882580ab51704e0efe304fa
| 1,669
|
asm
|
Assembly
|
programs/oeis/051/A051867.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/051/A051867.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/051/A051867.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A051867: 15-gonal (or pentadecagonal) numbers: n(13n-11)/2.
; 0,1,15,42,82,135,201,280,372,477,595,726,870,1027,1197,1380,1576,1785,2007,2242,2490,2751,3025,3312,3612,3925,4251,4590,4942,5307,5685,6076,6480,6897,7327,7770,8226,8695,9177,9672,10180,10701,11235,11782,12342,12915,13501,14100,14712,15337,15975,16626,17290,17967,18657,19360,20076,20805,21547,22302,23070,23851,24645,25452,26272,27105,27951,28810,29682,30567,31465,32376,33300,34237,35187,36150,37126,38115,39117,40132,41160,42201,43255,44322,45402,46495,47601,48720,49852,50997,52155,53326,54510,55707,56917,58140,59376,60625,61887,63162,64450,65751,67065,68392,69732,71085,72451,73830,75222,76627,78045,79476,80920,82377,83847,85330,86826,88335,89857,91392,92940,94501,96075,97662,99262,100875,102501,104140,105792,107457,109135,110826,112530,114247,115977,117720,119476,121245,123027,124822,126630,128451,130285,132132,133992,135865,137751,139650,141562,143487,145425,147376,149340,151317,153307,155310,157326,159355,161397,163452,165520,167601,169695,171802,173922,176055,178201,180360,182532,184717,186915,189126,191350,193587,195837,198100,200376,202665,204967,207282,209610,211951,214305,216672,219052,221445,223851,226270,228702,231147,233605,236076,238560,241057,243567,246090,248626,251175,253737,256312,258900,261501,264115,266742,269382,272035,274701,277380,280072,282777,285495,288226,290970,293727,296497,299280,302076,304885,307707,310542,313390,316251,319125,322012,324912,327825,330751,333690,336642,339607,342585,345576,348580,351597,354627,357670,360726,363795,366877,369972,373080,376201,379335,382482,385642,388815,392001,395200,398412,401637
mov $1,$0
bin $0,2
mul $0,13
add $1,$0
| 208.625
| 1,566
| 0.826842
|
0e293f663b63808dcc7a3d2c43102bcabc1a5af0
| 1,886
|
asm
|
Assembly
|
software/profi/net-tools/src/uGophy/dos/ochkodos.asm
|
solegstar/karabas-pro
|
0ff5f234eee10cd2b0ed0eb9286c47dd33e1f599
|
[
"MIT"
] | 26
|
2020-07-25T15:00:32.000Z
|
2022-03-22T19:30:04.000Z
|
software/profi/net-tools/src/uGophy/dos/ochkodos.asm
|
solegstar/karabas-pro
|
0ff5f234eee10cd2b0ed0eb9286c47dd33e1f599
|
[
"MIT"
] | 42
|
2020-07-29T14:29:18.000Z
|
2022-03-22T11:34:28.000Z
|
software/profi/net-tools/src/uGophy/dos/ochkodos.asm
|
solegstar/karabas-pro
|
0ff5f234eee10cd2b0ed0eb9286c47dd33e1f599
|
[
"MIT"
] | 7
|
2020-09-07T14:21:31.000Z
|
2022-01-24T17:18:56.000Z
|
module Dos
page = 1
include "ff.equ"
init:
di
ld a, page : call changeBank
ld hl, bin, de, #c000 : call sauk
mount:
ld l,1 ; Check for valid
push hl
ld bc,drpath_zsd : ld de,ffs
call FF_MOUNT
pop hl
or a
jp nz, error
ei
sub a : call changeBank
ret
; DE - ASCIZ path
cwd:
ld a, page : call changeBank
call FF_CHDIR
push af
sub a : call changeBank
pop af
ret
; DE - ASCIZ path
mkdir:
ld a, page : call changeBank
call FF_MKDIR
push af
sub a : call changeBank
pop af
ret
; L - file mode:
; BC - filename
fopen:
push bc : ld a, page : call changeBank : pop bc
push hl
ld de, file
call FF_OPEN
pop hl
push af : sub a : call changeBank : pop af
ret
; BC - buffer
; DE - buffer size
fread:
push bc : ld a, page : call changeBank : pop bc
ld hl, rwres
push hl
push de
ld de, file
call FF_READ
pop hl
pop hl
ret
; BC - buffer
; DE - buffer size
fwrite:
push bc : ld a, page : call changeBank : pop bc
ld hl, rwres
push hl
push de
ld de, file
call FF_WRITE
pop hl
pop hl
push af : sub a : call changeBank : pop af
ret
fclose:
push bc : ld a, page : call changeBank : pop bc
ld de, file
call FF_CLOSE
push af : sub a : call changeBank : pop af
ret
error:
add '0'
call putC
ld hl, .msg : call putStringZ
jr $
.msg db " - can't init SD Card or FAT!",13,"Computer halted!",0
ffs defs FATFS_SIZE
file defs FIL_SIZE
rwres defw 0
drpath_zsd defb '0:',0 ;путь девайса для монтирования. В данном случае Z-SD
dir defs DIR_SIZE
finfo FILINFO
IFNDEF NOIMAGE
bin:
incbin "fatfs.skv"
bin_size = $ - bin
include "decompressor.asm"
DISPLAY "fatfs size: ", $ - bin
display "FAT FS ENDS: ", $
ENDIF
endmodule
| 15.983051
| 76
| 0.591198
|
95396fad42de5d584e001e74c03897e0121379c0
| 8,887
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-7700_9_0xca.log_5977_833.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-7700_9_0xca.log_5977_833.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-7700_9_0xca.log_5977_833.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x102ed, %r10
clflush (%r10)
nop
nop
sub %rsi, %rsi
movb $0x61, (%r10)
nop
nop
nop
nop
nop
xor $55888, %rsi
lea addresses_UC_ht+0x1822e, %rsi
nop
nop
nop
nop
xor $40313, %rdx
movb (%rsi), %r13b
sub $64331, %rdx
lea addresses_A_ht+0x163ed, %rsi
lea addresses_WT_ht+0x736d, %rdi
nop
nop
nop
nop
cmp $37320, %rbp
mov $85, %rcx
rep movsw
nop
nop
dec %rcx
lea addresses_A_ht+0x152ed, %rbp
nop
nop
nop
and $48545, %rcx
mov $0x6162636465666768, %r11
movq %r11, (%rbp)
nop
sub %rcx, %rcx
lea addresses_normal_ht+0xdfad, %r10
inc %rcx
movw $0x6162, (%r10)
nop
nop
and $62517, %rdx
lea addresses_D_ht+0x19e7d, %rsi
lea addresses_D_ht+0x18bfc, %rdi
nop
nop
nop
nop
nop
dec %r11
mov $86, %rcx
rep movsb
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_ht+0x6ced, %rsi
lea addresses_UC_ht+0x98ed, %rdi
nop
nop
nop
nop
cmp %rbp, %rbp
mov $104, %rcx
rep movsw
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_normal_ht+0x3eed, %rdx
and $1554, %rdi
mov (%rdx), %r11
nop
nop
nop
and %r11, %r11
lea addresses_normal_ht+0x194ed, %rdi
add $28800, %rdx
movb (%rdi), %r13b
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_WC_ht+0x5b32, %rdx
sub $31819, %rdi
movb (%rdx), %r11b
nop
nop
add %rdx, %rdx
lea addresses_normal_ht+0x62ed, %rbp
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%rbp)
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_UC_ht+0x9bed, %rsi
lea addresses_WC_ht+0x363d, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
add $45937, %rbp
mov $22, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdx
// Store
mov $0x2ed, %rcx
clflush (%rcx)
nop
nop
nop
nop
add $3338, %rax
mov $0x5152535455565758, %rbx
movq %rbx, (%rcx)
nop
nop
nop
sub $10063, %r14
// Store
lea addresses_RW+0x19eed, %rbp
clflush (%rbp)
nop
cmp $38082, %rdx
movb $0x51, (%rbp)
nop
nop
nop
nop
sub $2530, %r10
// Store
lea addresses_A+0xf7ff, %rbp
xor %rcx, %rcx
movl $0x51525354, (%rbp)
nop
sub %rcx, %rcx
// Store
mov $0x11d640000000027f, %rax
nop
nop
sub $48122, %rcx
movl $0x51525354, (%rax)
nop
nop
nop
and %rbp, %rbp
// Store
lea addresses_D+0x102ed, %r10
nop
xor $20576, %rax
mov $0x5152535455565758, %rbp
movq %rbp, (%r10)
nop
nop
nop
nop
nop
add %rcx, %rcx
// Store
mov $0xb2e, %r14
nop
nop
nop
add %rbp, %rbp
mov $0x5152535455565758, %r10
movq %r10, %xmm2
movups %xmm2, (%r14)
// Exception!!!
nop
nop
nop
nop
mov (0), %rbx
nop
nop
cmp %rax, %rax
// Store
lea addresses_PSE+0xd451, %r10
nop
nop
nop
nop
nop
add $64611, %rbp
mov $0x5152535455565758, %rcx
movq %rcx, %xmm0
movups %xmm0, (%r10)
nop
nop
nop
and $35244, %rbp
// Faulty Load
lea addresses_D+0x102ed, %r14
clflush (%r14)
nop
nop
nop
add %rdx, %rdx
mov (%r14), %eax
lea oracles, %rcx
and $0xff, %rax
shlq $12, %rax
mov (%rcx,%rax,1), %rax
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_P'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_NC'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_D'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_P'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_PSE'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}}
{'58': 5977}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 29.427152
| 2,999
| 0.652864
|
af10952800e1dced679feea63ae7bf88f8dceb41
| 253
|
asm
|
Assembly
|
data/mapHeaders/celadonmart3.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
data/mapHeaders/celadonmart3.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
data/mapHeaders/celadonmart3.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
CeladonMart3_h:
db LOBBY ; tileset
db CELADON_MART_3_HEIGHT, CELADON_MART_3_WIDTH ; dimensions (y, x)
dw CeladonMart3Blocks, CeladonMart3TextPointers, CeladonMart3Script ; blocks, texts, scripts
db $00 ; connections
dw CeladonMart3Object ; objects
| 36.142857
| 93
| 0.810277
|
e016bf2dc82c98d93c4c2d3152bbb2495951ac3f
| 364
|
asm
|
Assembly
|
programs/oeis/140/A140420.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/140/A140420.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/140/A140420.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A140420: Binomial transform of 0, 1, 1, 7, 7, 31, 31, ..., zero followed by duplicated A083420.
; 0,1,3,13,45,151,483,1513,4665,14251,43263,130813,394485,1187551,3570843,10728913,32219505,96724051,290303223,871171813,2614039725,7843167751,23531600403,70598995513,211805375145,635432902651
add $0,1
seq $0,3063 ; a(n) = 3^(n-1)-2^n.
mul $0,3
add $0,12
div $0,12
| 40.444444
| 192
| 0.736264
|
20eb083b9cf7bd18101cf881676762f98dbb945c
| 857
|
asm
|
Assembly
|
PRG/objects/W5A.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/W5A.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/objects/W5A.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
.byte $00 ; Unknown purpose
.byte OBJ_AUTOSCROLL, $00, $03
.byte OBJ_CLOUDSINBGBEGIN, $01, $03
.byte OBJ_CFIRE_ULCANNON, $17, $0F
.byte OBJ_FIREJET_LEFT, $18, $0D
.byte OBJ_CFIRE_HLCANNON2, $24, $15
.byte OBJ_CFIRE_HLCANNON2, $27, $15
.byte OBJ_CFIRE_BULLETBILL, $2D, $0C
.byte OBJ_CFIRE_URCANNON2, $38, $07
.byte OBJ_CFIRE_LLCANNON2, $3C, $08
.byte OBJ_CFIRE_HLCANNON2, $44, $0F
.byte OBJ_CFIRE_4WAY, $49, $0A
.byte OBJ_CFIRE_URCANNON2, $4E, $0D
.byte OBJ_CFIRE_URCANNON2, $5D, $0A
.byte OBJ_CFIRE_ULCANNON2, $5F, $10
.byte OBJ_CFIRE_BULLETBILL, $5A, $0E
.byte OBJ_CFIRE_URCANNON2, $61, $0A
.byte OBJ_CFIRE_ULCANNON2, $62, $10
.byte OBJ_CFIRE_LLCANNON2, $66, $0A
.byte OBJ_CFIRE_HLCANNON2, $65, $10
.byte OBJ_CFIRE_LLCANNON2, $6A, $0A
.byte OBJ_CFIRE_HLCANNON2, $68, $10
.byte OBJ_CFIRE_BULLETBILL, $70, $0C
.byte $FF ; Terminator
| 32.961538
| 37
| 0.722287
|
f5e34bf1c6efaae22a308a7bc3d20273723d878c
| 544
|
asm
|
Assembly
|
oeis/000/A000005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/000/A000005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/000/A000005.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A000005: d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
; Submitted by Christian Krause
; 1,2,2,3,2,4,2,4,3,4,2,6,2,4,4,5,2,6,2,6,4,4,2,8,3,4,4,6,2,8,2,6,4,4,4,9,2,4,4,8,2,8,2,6,6,4,2,10,3,6,4,6,2,8,4,8,4,4,2,12,2,4,6,7,4,8,2,6,4,8,2,12,2,4,6,6,4,8,2,10,5,4,2,12,4,4,4,8,2,12,4,6,4,4,4,12,2,6,6,9
add $0,1
mov $1,1
mov $2,2
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mod $4,$2
add $2,1
cmp $4,0
cmp $4,0
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
add $5,1
lpe
mul $1,$5
lpe
mov $0,$1
| 20.923077
| 208
| 0.522059
|
ddca411cf1bee82376a84b45c01beef4eed433c0
| 21,174
|
asm
|
Assembly
|
ee/wman/move.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
ee/wman/move.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
ee/wman/move.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
; New move routines V1.21 (c) 1991-2013 T. Tebby, M. Kilgus, W. Lenerz
;---------------------------------------------------------------------------
; replacement window move routine, moves wdw or outline about the screen
; this uses the gu_achp and gu_rchp calls, include them;
; this only works when using a mouse!!!
; copyright (c) w. lenerz 1991 - 2013 and many routines adapted from TT!
; 2003-05-27 v. 1.12 - totally revamped version
; 2003-05-28 v. 1.13 prov version for QPC + better ptr handling (mk)
; 2003-06-03 v. 1.14 common version for all machines
; added check for QPC + reset ptr pos
; moving secondary wdws ok
; 2003-06-18 v. 1.15 added mode 4 kludge
; 2003-10-29 v. 1.16 pointer sprite is saved
; 2005-01-21 v. 1.17 outline move: spurious outline :fixed (wl)
; 2012-04-21 v. 1.18 check for smsqmulator made when testing for ptr move (wl)
; 2013-04-28 v. 1.19 added wdw move with alpha blending (wl)
; 2013-10-07 v. 1.20 bugfix for alpha move of pulled down wdw (wl)
; 2014-06-29 v. 1.21 better handling of moving up to right screen edge (wl)
;
;---------------------------------------------------------------------------
section wman
include dev8_keys_wstatus
include dev8_keys_wwork
include dev8_keys_wman
include dev8_keys_qdos_io
include dev8_keys_qdos_pt
include dev8_keys_con
include dev8_keys_err
include dev8_keys_sys
include dev8_keys_chn
include dev8_keys_iod
include dev8_keys_qdos_sms
include dev8_keys_wman_data
*
xdef changewin
xref gu_achp0
xref gu_rchp
xref wm_wpos
;(the regs on entry comply with the typical loose menu item action routine)
;----------------------------------------------------------------------
; on entry on exit
;
; d0 error code or 0
; d1 = x,y pointer position d1 = 0
;
; a0 = channel id unchanged
; a2 = window manager vector unchanged
; a4 = working defn of wdw unchanged
;
; all other regs unchanged,
; cond. codes set on exit
; however, the routine always
; "succeeds" unless the wdw can't be
; redrawn correctly
;-----------------------------------------------------------------------
xyposmask equ $fffcfffe ; x pos of wdw always on multiple of 2
xyposadd equ $00020000 ; add this first for rounding
left equ 192 ; keystroke for cursor left
; memory requirements
limits equ 0 ; max window limits (size, orig)
ptr_rec equ limits+8 ; my pointer record
psp equ ptr_rec+24 ; ptr to (old) pointer sprite
kpoint equ psp+4 ; space for pointer orig rel to wdw
dsize equ kpoint+4 ; destination size
dsize2 equ dsize+4 ; my wdw save area row incrment
mptr equ dsize2+4 ; save area for my window only
xyoff equ mptr+4 ; xyoffset if secondary wdw
spec4 equ xyoff+4 ; special add if mode 4 & pulled down!
chblk equ spec4+4 ; channel defn block
xysz equ chblk+4 ; x,y size of wdw (hitsize +4 borders) in pixels
winorg equ xysz+4 ; x,y origin of wdw
winofs equ winorg+4 ; x,y difference mouse ptr <-> winorg
bord equ winofs+4 ; x,y border size in pixels
winoutl equ bord+4 ; window outline size
bytel equ winoutl+4 ; screen byte width (long)
butn equ bytel+4 ; button pressed (byte)
mtyp equ butn+1 ; type of move (byte)
alphav equ mtyp+1 ; alpha value (byte)
spare equ alphav+1 ; spare to make even
spxlw equ spare+1
rpxlw equ spxlw+2 ; constants for pixel calculations
sarea equ rpxlw+2 ; save area for entire screen (if wdw is primary) or for primary
; = source area 2
savorig equ sarea+4 ; orig of this area
my_space equ savorig+4 ; some slack space
tot_mem equ my_space+16 ; (8 bytes needed)
; "some" regs to save
outreg reg d1-d7/a0-a6
; error returns
errexit3
move.l mptr(a5),a0
jsr gu_rchp ; release my small wdw save aera
errexit2
move.l a5,a0 ; pointer to work space
jsr gu_rchp ; release it
cw_exit
move.w (sp)+,sr ; leave supervisor mode
movem.l (sp)+,outreg
tst.l d0 ; all ok?
bne.s cw_out ; ... no
clr.l d1 ; ... yes, clear return!
cw_out
rts
errexit
moveq #-15,d0
bra.s cw_exit
; on entry
; D1 = ptr position stet (error) or 0 (succesful)
; A4 = working defn stet
changewin
movem.l outreg,-(sp)
move.w sr,d6
trap #0 ; go super now
move.w d6,-(a7)
moveq #sms.info,d0
trap #1
move.l a0,a6 ; keep pointer (ok for superbasic)
move.l sys_clnk(a0),a0
move.l pt_wdata(a0),a0 ; pointer to my wman config data
move.b wd_alpha(a0),d6 ; alpha value
move.b wd_movemd(a0),d7 ; type of move wished
beq.s errexit ; old move : sprite only - leave
; first some basic checks on the channel ID
move.l ww_chid(a4),d0 ; channel ID
cmp.w sys_chtp(a6),d0 ; off top of table?
bhi.s errexit ; ... yes
lsl.w #2,d0 ; index table
move.l sys_chtb(a6),a3 ; base of table
add.w d0,a3
tst.b (a3) ; open?
bmi.s errexit ; ... no
move.l (a3),a5 ; address of channel
swap d0 ; check tag
cmp.w chn_tag(a5),d0
bne.s errexit ; not same tag?????
add.l #$30,a5 ; point chan defn block "base"
; as of here,we have a valid channel ID
moveq #tot_mem,d0 ;
jsr gu_achp0 ; get mem for myself
bne.s cw_exit ; ooops->...
exg a0,a5 ; a5 = my memory, a0 = ch defn block
move.l a0,chblk(a5) ; keep channel defn block
move.l sys_clnk(a6),a3 ; driver linkage
move.w pt_bytel(a3),bytel+2(a5); keep screen increment
move.b d7,mtyp(a5) ; keep type of move
move.b d6,alphav(a5) ; keep alpha blending value
move.l ww_psprt(a4),psp(a5) ; save pointer sprite
move.b pt_bpoll(a3),butn(a5) ; mouse button used to action this item
* !!
beq errexit ; !! none, just leave again!!!
* !! ; this works ONLY with the mouse!
clr.l pt_inc(a3) ; no mouse increase yet
move.l pt_vecs(a3),a1
jsr pv_size(a1) ; get some pixel constants
move.l d0,spxlw(a5) ; and keep them
move.l ww_wstat(a4),a2 ; a2 = status area
move.l ws_ptpos(a2),d5 ; absolute pointer position
move.l ww_xorg(a4),d7 ; window position in d7
sub.l d7,d5 ; d5 = pointer position rel to window
move.l d5,kpoint(a5) ; store it (to restore it later)
; now find window limits
move.l ww_chid(a4),a0 ; a0 = channel ID
lea limits(a5),a1 ; where to store result
moveq #0,d2
moveq #-1,d3
moveq #iop.flim,d0 ;
trap #3 ; find out largest window size possible
tst.l d0
bne errexit2 ; ooops ->....
move.l 4(a1),xyoff(a5) ; xy origin (should 0,0 for primary wdws)
move.b ww_pulld(a4),d0 ; wdw pulled down?
beq.s mv_save ; no, so it's a primary wdw
move.b pt_dmode(a3),d0 ; display mode
bne.s mv_save ; not mode 4!
move.w 4(a1),d0 ; now mode 4 kludge if not on byte boundary
divs #8,d0 ; x orig - on byte boundary?
swap d0 ; this is 4 or 0
move.w d0,spec4(a5) ; special mode 4 kludge
; save window contents by saving hit area + borders (!)
mv_save move.l chblk(a5),a1 ; point to channel defn block
move.l sd_xouts(a1),winoutl(a5); keep current outline size
move.l sd_xhito(a1),winorg(a5) ; keep current hit area origin
clr.l winofs(a5)
move.b sys_mtyp(a6),d0
andi.b #sys.mtyp,d0
sub.b #sys.java,d0 ; smsqmulator?
beq.s qpc ; yes
sub.b #sys.mqpc-sys.java,d0 ; qpc?
bne.s no_qpc ; ... no
qpc move.l pt_npos(a3),d1
sub.l winorg(a5),d1 ; offset mouse position <-> win origin
move.l d1,winofs(a5)
no_qpc
move.w ww_wattr+wwa_borw(a4),d1; window border width
move.w d1,d2
add.w d1,d2 ; x border is double size
swap d2
move.w d1,d2 ; x,y size of one border
move.l d2,bord(a5) ; keep the size of the border
move.l sd_xhits(a1),d0 ; wdw hit area x,y size
move.l d0,xysz(a5) ; keep it safe
move.l d0,d2 ; size
clr.w d2
swap d2 ; x size
clr.l d1
move.w spxlw(a5),d1
add.w rpxlw(a5),d2 ; round up to...
lsr.w d1,d2 ; ...width in long words
addq.w #1,d2 ; one spare
lsl.w #2,d2
move.l d2,dsize2(a5) ; is save area increment
bsr calcsz ; calculate bytes needed for save area of this size
jsr gu_achp0 ; get save area for myself
tst.l d0
bne errexit2 ; oops!
move.l a0,mptr(a5) ; keep this safe
bsr tot_save ; now save current "wdw" into save area
lea limits(a5),a1
move.l 4(a1),d7 ; x,y origins of max wdw
add.l (a1),d7 ; coords of end of wdw
sub.l winoutl(a5),d7 ; max possible x,y coords of wdw outline!
;
addi.l #xyposadd,d7 ; v. 1.21 make sure right/lower bounds...
andi.l #xyposmask,d7 ; ...are on correct position for stipples
; 1.21
move.l limits+4(a5),d6 ; d6 = min x,y positions box can take
addi.l #xyposadd,d6
andi.l #xyposmask,d6
;
; interlude:
; now find out whether we have enough memory left to save the entire screen
; once (which will happen later)
; if not, we can give up gracefully before having destroyed the window content
move.l limits(a5),d0 ; max wdw sizes
bsr calcsz ; how many bytes that takes
move.l d0,d4
moveq #sms.frtp,d0
trap #1 ; get max space
moveq #-15,d0 ; preset error
sub.l d4,d1 ; is it enough?
ble errexit3 ; no!
; set wdw outline to max possible size, don't keep content
lea limits(a5),a1 ; max wdw size
move.l ww_chid(a4),a0 ; channel ID
moveq #0,d1 ; no shadow
moveq #0,d2 ; don't keep contents
moveq #iop.outl,d0 ; set wdw outline to max size (screen/primary)
trap #3 ;
tst.l d0 ; OK?
bne errexit3 ; no!!!!
move.l chblk(a5),a2 ; get pointer to chan defn block
move.l sd_xhito(a2),d0
neg.l d0
move.l d0,savorig(a5) ; (negative) wdw orig in screen
clr.l d2
move.w sd_xouts(a2),d2 ; set x size
clr.l d0
move.w spxlw(a5),d0
add.w rpxlw(a5),d2 ; round up to...
lsr.w d0,d2 ; ...width in long words
addq.w #1,d2 ; one spare
lsl.w #2,d2
move.l d2,dsize(a5) ; keep screen increment
* as of here, the wdw content is destroyed
moveq #0,d1
moveq #iop.wsav,d0 ; save entire wdw into internal save area
trap #3 ; - leave this, it isn't always done by itself!
move.l chblk(a5),a1
move.l sd_wsave(a1),sarea(a5) ; pointer to save area
move.b mtyp(a5),d0 ; type of move
subq.b #1,d0 ; move "outline"?
beq wc_mvoutl ; ...yes ->
; move entire wdw:
; show wdw content again
move.l winorg(a5),d1 ; wdw origin
addi.l #xyposadd,d1 ; round up
andi.l #xyposmask,d1 ;
move.l d1,winorg(a5) ; store current pointer position
subq.b #1,d0
move.b d0,mtyp(a5) ; this is now 0 if move, 1 if alpha move
bsr tot_which ; show wdw content again at this position
; main program loop
ploop1
bsr test_move ; did ptr move? (if we get back - it did)
pea ploop1 ; redraw wdw & restart at loop !
; wdw redraw
; 1 - restore old screen content at newly discovered edges after wdw move,
; this is done by taking the data out of the normal window save area
; (window covers all of screen/primary)
; 2 - restore wdw content at new coords
; d1 c s new coords
; d2 s
; d4 c s old coords
; a1 s
; a5 c p my memory
do_trace1
lea my_space(a5),a1
move.l d1,winorg(a5) ; keep new coords
sub.w d4,d1 ; did window move up or down?
beq.s horiz ; ... no, check right/left ->...
blt.s low ; ... yes : window moved up ->
; window moved down - restore part of old window in y direction
move.w xysz(a5),(a1) ; x size of wdw block (wdw x size)
move.w d1,2(a1) ; y size of wdw block (nbr of pixels moved)
move.l d4,d1 ; where to get it from (orig in block)
bra.s vert
; window moved up
low move.w xysz(a5),(a1) ; x size of wdw block (wdw x size)
move.l d4,d0 ; where to put it
add.w xysz+2(a5),d0
add.w d1,d0
neg.w d1
move.w d1,2(a1) ; y size of block
move.l d0,d1
; 4(a1) = where to put it in the wdw, in absolute screen coordinates
; d1 = where to get it from the block, in absolute screen coordinates
vert move.l xyoff(a5),d0 ; offsets from start of screen if pulled down
sub.l d0,d1 ; make it relative to origin of wdw
move.l d1,4(a1)
add.l spec4(a5),d1 ; possible mode 4 kludge
bsr.s pt_prest ; restore this part of the screen
; check if wdw moved right or left
horiz lea my_space(a5),a1 ;
move.l d4,d2
swap d4 ; d4.w = x coord
move.w winorg(a5),d1 ; new x coord
sub.w d4,d1 ; any horizontal move?
beq.s tot_which ; ... none, restore wdw & return
blt.s mleft ; ... yes, wdw moved left ->...
; window moved to the right
move.w xysz+2(a5),2(a1) ; y size of block to restore
move.w d1,(a1) ; x size
move.l d2,d1 ; where to put it
move.l d1,4(a1) ; also in wdw
bra.s horiz2
; window moved left
mleft move.w xysz+2(a5),2(a1) ; y size
move.w d2,6(a1) ; y orig
add.w xysz(a5),d4 ; x orign + xsize of wdw
add.w d1,d4 ; - displacement
move.w d4,4(a1) ; into x orig
neg.w d1
move.w d1,(a1) ; x size
move.l 4(a1),d1 ; orig in area
horiz2
move.l xyoff(a5),d0 ; make relative to primary if necesary
sub.l d0,4(a1)
sub.l d0,d1
add.l spec4(a5),d1 ; possible mode 4 kludge
bsr.s pt_prest ; restore part of background
bra.s tot_which ; and restore entire wdw to new position
; (and return from there)
*------------------
* some subroutines
*------------------
rstregs reg d3-d7/a0-a5
; PARTIAL restore (background)
;
; Restore parts of the contents of a window save area into the screen memory,
; in the location given.
;
; Calculate parameters for saving a window
;
; Registers:
; Entry before calling pt_mblock
; D0
; D1 origin in save area size of window
; D2 origin of window in save area
; D3 origin of window
; A0
; A1 wdw block
; A2 row increment in save area
; A3 ^ linkage block row increment in screen
; A4 base of save area
; A5 my data block base of screen
pt_prest
movem.l rstregs,-(sp)
move.l chblk(a5),a0 ; get pointer to chan defn block
move.l dsize(a5),a2 ; and increment
move.l d1,d2 ; orig in save area (source area 1)
movem.l (a1),d1/d3 ; size & orig of wdw
add.l sd_xmin(a0),d3 ; true origin in screen
move.l sd_wsave(a0),a4 ; save area base
move.l bytel(a5),a3 ; screen increment
move.l sd_scrb(a0),a5 ; screen base
*
cpy_jmp
move.l sys_clnk(a6),a0
move.l pt_vecs(a0),a0
jsr pv_mblk(a0) ; move from save area to screen
ptr_ok movem.l (sp)+,rstregs
rts
;
; Calculate parameters for saving the "window" from screen to save area
; and save the "wdw"
;
; Registers:
;
; Entry Exit
; D0 smashed
; D1 size of window
; D2 origin of window in save area
; D3 origin of window
; D5
; A0
; A2 row increment in save area
; A3 row increment in screen
; A4 base of save area
; A5 my memory space base of screen
;
tot_which ; do we do a normal or an alpha move?
tst.b mtyp(a5)
beq.s tot_rest ; nomal move
bra.s tot_alpha
tot_save ; save entire wdw into save area
movem.l rstregs,-(sp) ; keep regs
bsr.s cprm
exg a4,a5
exg a2,a3
exg d2,d3
bra.s cpy_jmp
; same as above, but restore entire wdw from save area to screen
tot_rest
movem.l rstregs,-(sp) ; keep regs
bsr.s cprm
bra.s cpy_jmp
; same as above, but alpha in the entire wdw from background save area to screen
; source area 2 is the background, i.e. the entire screen, or the primaty if wdw is pulled down
tot_alpha
movem.l rstregs,-(sp) ; keep regs
move.l sarea(a5),a1 ; point to save area for background (source area2)
clr.l d6
move.b alphav(a5),d6 ; alpha value
move.l dsize(a5),d7 ; source area 2 row increase
move.l savorig(a5),d4 ; (negative) wdw orig
bsr.s cprm ; (destroys a5)
tst.b d6 ; would wdw be totally transparent?
beq.s cpy_jmp ; yes, this doesn't make sense, use totally opaque instead
cmp.b #255,d6
beq.s cpy_jmp ; use faster routine if totally opaque
add.l d3,d4 ; orig in source area 2
move.l sys_clnk(a6),a0
move.l pt_vecs(a0),a0
jsr pv_cmbbk(a0) ; combine window save area & backgound save area
movem.l (sp)+,rstregs
rts
; calculate parameters (adapted from TT's code!)
cprm move.l xysz(a5),d1 ; set size
clr.l d2 ; origin in save area always top left, source area 1
move.l winorg(a5),d3 ; set destination area origin
move.l chblk(a5),a0 ; channel defn block
move.l dsize2(a5),a2 ; row increment source area1
move.l bytel(a5),a3 ; screen (destination area) increment
move.l mptr(a5),a4 ; source area1 base address
move.l sd_scrb(a0),a5 ; screen (destination) base
rts
; calculate the amount of memory needed for a save area of a given size
; d0 cr x,y size of area / space needed in bytes
; d1 s
; d2 s
calcsz move.l d0,d1
swap d1 ; outline area width (pixels)
clr.l d2
move.w spxlw(a5),d2
add.w rpxlw(a5),d1 ; round up to...
lsr.w d2,d1 ; ...width in long words
addq.w #1,d1 ; one spare
mulu d1,d0 ; space required in long words
asl.l #2,d0 ; space in bytes
cs_rts
rts
; test move: test whether pointer has moved from old position and
; whether user stopped move operation. In this latter case, this routine
; does not return to the caller, but leaves the move operation entirely.
; Else it only returns to caller if ptr did move
test_move
moveq #0,d5
move.l sys_clnk(a6),a1 ; pointer to linkage block
tm_lp
move.b pt_bpoll(a1),d0 ; button currently pressed
cmp.b butn(a5),d0 ; still the same as before?
bne leave ; no, so we leave the move operation
tm_testxy
move.b sys_mtyp(a6),d0
andi.b #sys.mtyp,d0
sub.b #sys.java,d0 ; smsqmulator?
beq.s tl_testxy_qpc ; yes
sub.b #sys.mqpc-sys.java,d0 ; qpc?
bne.s tm_tstxy_o ; ... no
tl_testxy_qpc
move.l winorg(a5),d4 ; ...yes, old window coordinates
move.l pt_npos(a1),d1 ; current position
sub.l winofs(a5),d1
bra.s tm_tst_com
tm_tstxy_o
move.l winorg(a5),d1
move.l d1,d4 ; d4 = old pointer coordinates
add.w pt_yinc(a1),d1 ; + y move
swap d1
add.w pt_xinc(a1),d1 ; + xmove
swap d1 ; new ptr position
clr.l pt_inc(a1) : no more increase yet
tm_tst_com
addi.l #xyposadd,d1 ; round up
andi.l #xyposmask,d1 ; window orig is always set to multiple of 4/2 (for stipples)
cmp.l d1,d4 ; any change?
beq.s tm_lp ; no - go around again
; make sure that ptr doesn't stray beyond limits
test_bounds
cmp.w d1,d4 ; did pointer move up/down ?
beq.s x_change ; ... no, so no need to check y bounds
y_change
cmp.w d1,d6 ; test against upper boundary
ble.s min_ok ; ... ok, position doesn't exceed this boundary
move.w d6,d1 ; ... ahem, set pointer to upper boundary
bset #0,d5 ; flag pointer reset
bra.s x_change
min_ok cmp.w d1,d7
bge.s x_change ; ... no, so this is ok
move.w d7,d1 ; max y position
bset #0,d5 ; flag pointer reset
x_change
swap d1 ; now treat x position
swap d4
swap d6
swap d7
cmp.w d1,d4 ; did pointer move left/right?
beq.s tm_test ; no - redraw directly
cmp.w d1,d6 ; would we exceed left boundary?
ble.s min_ok2 ; ... no
move.w d6,d1 ; ...yes, set to left boundary
bset #0,d5 ; flag pointer reset
bra.s tm_test ;
min_ok2 cmp.w d1,d7
bge.s tm_test ; ...no
move.w d7,d1 ; ... yes, so this is where we stay
bset #0,d5 ; flag pointer reset
tm_test
swap d6
swap d7
swap d1
swap d4 ;
bclr #0,d5 ; pointer needs resetting ?
beq.s no_ptr ; ...no ->...
moveq #0,d2 ; ...yes, do it
moveq #iop.sptr,d0
move.l d1,-(sp)
add.l winofs(a5),d1
trap #3 ; set pointer position in absolute coords
move.l (sp)+,d1
no_ptr
cmp.l d1,d4 ; did ptr move after bounds correction?
beq tm_lp ; ... no
rts ; ... yes, we need to redraw wdw
; -------------------------
; if we get here, then the user released the button to end the move op
; now set window origin & redraw window in new position
leave
addq.l #4,sp ; !!! do not return to caller
move.b mtyp(a5),d0 ; type of move
subq.b #1,d0 ; outline only?
bne.s lv_nobox ; ...no
move.l d4,d1 ; ... yes, get correct coords back (1.17)
bsr.s do_trace ; and untrace box
moveq #0,d1
moveq #iow.sova,d0
trap #3 ; unset xor
lv_nobox
move.l psp(a5),ww_psprt(a4) ; reset old pointer for the window
move.l ww_chid(a4),a0 ; channel ID
moveq #0,d5
move.l winorg(a5),d1
add.l bord(a5),d1
jsr wm_wpos ; reposition primary
move.l chblk(a5),a0
move.l sd_xouto(a0),winorg(a5)
bsr tot_rest ; copy content back to wdw
move.l ww_chid(a4),a0 ; channel ID
move.l kpoint(a5),d1 ; relative ptr position
add.l bord(a5),d1 ; now
moveq #1,d2 ; relative to hit area
moveq #iop.sptr,d0
trap #3 ; set ptr position now
moveq #0,d0 ; no error!
bra errexit3 ; leave the move wdw routine
; -------------------------
; "outline" move
wc_mvoutl
moveq #-1,d1
moveq #iow.sova,d0
trap #3 ; set xor
move.l winorg(a5),d1
bsr.s do_trace ; trace box now
move.l winorg(a5),d1
mvout_lp
bsr test_move
exg d4,d1 ; yes : d1 = coords of old box
bsr.s do_trace ; undo box at old coords
move.l d4,d1 ; new box position
move.l d1,winorg(a5) ; keep for undrawing
pea mvout_lp
; box drawing subroutine - this is achieved by drawing 4 blocks
; first the 2 horizontal blocks (1 pixel high)
; then the two vertical blocks (1 pixel wide)
do_trace
sub.l xyoff(a5),d1
lea my_space(a5),a1
move.w xysz(a5),(a1) ; length of box
move.w #1,2(a1) ; height " "
move.l d1,4(a1) ; x,y orig
bsr.s do_blk ; upper x line of box
move.w xysz+2(a5),d0
add.w d0,6(a1) ; set y orig to end of y
bsr.s do_blk ; lower x line of box
move.w xysz+2(a5),d0
move.w #1,(a1) ; new width of box
move.w d0,2(a1) ; new height of box
sub.w d0,6(a1) ; reset to orig
bsr.s do_blk ; draw left line
move.w xysz(a5),d0
add.w d0,4(a1) ; new x coord - draw right line
do_blk moveq #7,d1
moveq #iow.blok,d0 ;
trap #3
lea my_space(a5),a1
rts
end
| 31.46211
| 95
| 0.669217
|
77384d26710911553390d80874f0208ae922598d
| 763
|
asm
|
Assembly
|
oeis/229/A229031.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/229/A229031.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/229/A229031.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A229031: Number of 5-colorings of the strong product of the complete graph K2 and the cycle graph Cn.
; Submitted by Christian Krause
; 120,0,2400,3840,63360,215040,1943040,9031680,64665600,346030080,2243911680,12792299520,79437987840,465890181120,2838290104320,16857940623360,101834835886080,608260231004160,3660556491816960,21919358464819200,131692072607416320,789448748118835200,4739507238312345600,28425784430470103040,170599742578423234560,1023418311484102410240,6141230444842309386240,36844500365286970490880,221078531406757153996800,1326425071580337175265280,7958734896922717197434880,47751671511773268903198720
add $0,2
mov $1,$0
mov $0,2
pow $0,$1
seq $1,91000 ; Number of closed walks of length n on the Petersen graph.
mul $1,$0
mov $0,$1
mul $0,10
| 58.692308
| 484
| 0.85059
|
123f28e4eec3091acabcb0702dd2c5bd961a645b
| 899
|
asm
|
Assembly
|
oeis/186/A186359.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/186/A186359.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/186/A186359.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A186359: Number of permutations of {1,2,...,n} having no up-down cycles. A cycle (b(1), b(2), ...) is said to be up-down if, when written with its smallest element in the first position, it satisfies b(1)<b(2)>b(3)<... .
; Submitted by Christian Krause
; 1,0,0,1,4,19,114,799,6392,57527,575270,6327971,75935652,987163475,13820288650,207304329751,3316869276016,56386777692271,1014961998460878,19284277970756683,385685559415133660,8099396747717806859,178186728449791750898,4098294754345210270655,98359074104285046495720,2458976852607126162392999,63933398167785280222217974,1726201750530202565999885299,48333649014845671847996788372,1401675821430524483591906862787,42050274642915734507757205883610,1303558513930387769740473382391911
mov $1,1
mov $3,2
mov $5,-1
lpb $0
sub $0,1
add $2,1
sub $3,$1
mul $1,$2
mul $3,$5
sub $4,$3
add $3,$1
sub $1,$4
add $3,$4
mov $5,1
lpe
mov $0,$1
| 42.809524
| 476
| 0.771969
|
3405b4c36b4e454b8f8cafa5dac456e1fa1b8e60
| 694
|
asm
|
Assembly
|
oeis/099/A099827.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/099/A099827.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/099/A099827.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A099827: Generalized harmonic number H(n,5) = Sum_{k=1..n} 1/k^5 multiplied by (n!)^5.
; Submitted by Jon Maiga
; 0,1,33,8051,8252000,25795462624,200610400564224,3371852494046112768,110492114540967125581824,6524555433591956305924325376,652461835742417609568446054400000,105080260346474296336209157187174400000,26147432681994920399538192290614660300800000,9708383939296706572260450349215071552824934400000,5221411246478531045894564134867462418611805198745600000,3965014200784895406551074523013353147529286134005760000000000,4157622554427639351878131524021077450133715657168791797760000000000
mov $2,1
lpb $0
mov $1,$0
sub $0,1
pow $1,5
mul $3,$1
add $3,$2
mul $2,$1
lpe
mov $0,$3
| 46.266667
| 478
| 0.842939
|
163aaeccdcfbf36049bfd975e37b39b07d80cf74
| 1,318
|
asm
|
Assembly
|
programs/oeis/014/A014825.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/014/A014825.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/014/A014825.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A014825: a(n) = 4*a(n-1) + n with n > 1, a(1)=1.
; 1,6,27,112,453,1818,7279,29124,116505,466030,1864131,7456536,29826157,119304642,477218583,1908874348,7635497409,30541989654,122167958635,488671834560,1954687338261,7818749353066,31274997412287,125099989649172,500399958596713,2001599834386878,8006399337547539,32025597350190184,128102389400760765,512409557603043090,2049638230412172391,8198552921648689596,32794211686594758417,131176846746379033702,524707386985516134843,2098829547942064539408,8395318191768258157669,33581272767073032630714,134325091068292130522895,537300364273168522091620,2149201457092674088366521,8596805828370696353466126,34387223313482785413864547,137548893253931141655458232,550195573015724566621832973,2200782292062898266487331938,8803129168251593065949327799,35212516673006372263797311244,140850066692025489055189245025,563400266768101956220756980150,2253601067072407824883027920651,9014404268289631299532111682656,36057617073158525198128446730677,144230468292634100792513786922762,576921873170536403170055147691103,2307687492682145612680220590764468,9230749970728582450720882363057929,36922999882914329802883529452231774,147691999531657319211534117808927155,590767998126629276846136471235708680
mul $0,2
add $0,2
mov $2,$0
add $0,3
mov $1,2
pow $1,$0
div $1,3
sub $1,$2
mov $0,$1
div $0,6
| 94.142857
| 1,171
| 0.897572
|
5e63f55cac462232ecbdedbc2875489683980671
| 3,971
|
asm
|
Assembly
|
exampl05/console/hashapp/primes/primes.asm
|
AlexRogalskiy/Masm
|
d39498878f140696b299c76436f209156961429e
|
[
"MIT"
] | null | null | null |
exampl05/console/hashapp/primes/primes.asm
|
AlexRogalskiy/Masm
|
d39498878f140696b299c76436f209156961429e
|
[
"MIT"
] | null | null | null |
exampl05/console/hashapp/primes/primes.asm
|
AlexRogalskiy/Masm
|
d39498878f140696b299c76436f209156961429e
|
[
"MIT"
] | null | null | null |
; thanks to Scali .. he helped optimizing this
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
inv equ invoke
.data
hFile dd 0
BW dd 0
ofstruct OFSTRUCT <>
szPrime db "%lu, ", 0
szCaption db "Done!", 0
szDone db "Done! The number of primes found is: %lu", 13, 10, \
"Wrote primes to "
szFile db "PRIMES.TXT", 0
.data?
buffer dw 0ffffh dup (?)
szTemp db 80 dup (?)
.code
start:
mov ecx, 0ffffh / 2 ; counter
mov edi, offset buffer ; here: offset for where to put the numbers
mov eax, 00030002h ; write 2 numbers at one time
mov esi, edi ; where to read the numbers from (for the next step)
createbuffer_loop:
mov [edi], eax ; put 2 numbers into the buffer
add eax, 00020002h ; increase the number that gets put in the buffer
add edi, 4 ; adjust the buffer pointer
dec ecx ; decrease the counter
jnz createbuffer_loop ; counter <> zero? then do the whole thing again
mov edi, esi ; now restore edi for later
mov ecx, 0ffffh / 2 ; counter
xor ebx, ebx ; ebx will hold the number of primes
xor edx, edx ; clear high part of edx, because it will be used as pointer
findprime_loop:
mov ax, [esi] ; get the first word from the buffer
add esi, 2 ; adjust the buffer pointer
test ax, ax ; ax == zero?
jz no_prime ; then this is already a killed number
inc ebx ; we are here so this is a prime. increase the prime counter
mov dx, ax ; put the prime into dx
eliminatenonprime_loop:
add dx, ax ; now add the prime to the prime (prime*2, later prime*3 ..)
jc no_prime ; if dx now grew over 0ffffh, there's nothing left to kill
mov word ptr [edx*2+buffer-4], 0 ; kill non-primes by marking them with zero
jmp eliminatenonprime_loop ; jump back, till dx > 0ffffh
no_prime:
dec ecx ; decrease the counter
jnz findprime_loop ; counter <> zero? then do it again
push ebx ; because some APIs change ebx, we have to save it on the stack
inv OpenFile, offset szFile, offset ofstruct, OF_CREATE ; create new file
mov hFile, eax ; save its handle
mov cx, 0ffffh ; put counter to 0ffffh
xor eax, eax ; clear high parts of eax.
write:
push cx ; save cx on the stack, because one of these APIs will change it
mov ax, [edi] ; normally I'd use esi here, but I restored edi in the beginning
add edi, 2 ; adjust ...
test ax, ax ; ax == zero?
jz skip_write ; yes? so this is a killed number. do nothing
inv wsprintf, offset szTemp, offset szPrime, eax ; else convert number to ASCII
inv WriteFile, hFile, offset szTemp, eax, offset BW, NULL ; and write it to the file
skip_write:
pop cx ; restore the counter
dec cx ; and decrease it
jnz write ; zero? if not, then go back again
inv CloseHandle, hFile ; close the file
pop ebx ; pop the prime counter from the stack
inv wsprintf, offset szTemp, offset szDone, ebx
inv MessageBox, 0, offset szTemp, offset szCaption, MB_OK
inv ExitProcess, 0
end start
| 41.8
| 100
| 0.55175
|
bd4afdf1bd9172b58ab7b4ab3bfcb9defa6f1006
| 211
|
asm
|
Assembly
|
subs/perform.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 28
|
2015-02-03T01:38:24.000Z
|
2022-03-23T05:48:24.000Z
|
subs/perform.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 20
|
2015-01-02T14:51:20.000Z
|
2021-01-09T21:37:19.000Z
|
subs/perform.asm
|
DigitalMars/optlink
|
493de158282046641ef2a3a60a88e25e26d88ec4
|
[
"BSL-1.0"
] | 9
|
2015-02-11T17:43:56.000Z
|
2019-09-05T11:07:02.000Z
|
TITLE PERFORM
INCLUDE MACROS
PUBLIC PERFORM_VERIFY_A,PERFORM_VERIFY_B
.CODE MIDDLE_TEXT
PERFORM_VERIFY_A PROC
;
;
;
RET
PERFORM_VERIFY_A ENDP
PERFORM_VERIFY_B EQU PERFORM_VERIFY_A
END
| 9.590909
| 42
| 0.753555
|
52d2f196a7ff0d436b2a24a3c645d687cec3dfb9
| 202
|
asm
|
Assembly
|
src/test/resources/data/potests/test62.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 36
|
2020-06-29T06:52:26.000Z
|
2022-02-10T19:41:58.000Z
|
src/test/resources/data/potests/test62.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 39
|
2020-07-02T18:19:34.000Z
|
2022-03-27T18:08:54.000Z
|
src/test/resources/data/potests/test62.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 7
|
2020-07-02T06:00:05.000Z
|
2021-11-28T17:31:13.000Z
|
; Test: some SDCC case
ld a,(var1)
ld (var2),a
ld a,(var1+1)
ld iy,var2
ld (iy+1),a
sra (iy+1)
rr (iy)
sra (iy+1)
rr (iy)
sra (iy+1)
rr (iy)
loop:
jr loop
var1: dw 0
var2: dw 0
| 11.222222
| 22
| 0.524752
|
18ccdf1bad6f7adbdef376a80d084abfe62db8fd
| 684
|
asm
|
Assembly
|
oeis/089/A089033.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/089/A089033.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/089/A089033.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A089033: Numbers n such that 7*n+3 is prime.
; Submitted by Jamie Morken(s4)
; 0,2,4,8,10,14,22,28,32,34,38,40,44,50,52,58,68,74,80,82,88,92,94,110,112,118,122,134,140,142,148,158,160,164,170,178,182,184,188,194,208,212,220,224,230,232,238,242,250,260,268,272,278,298,304,320,334,340,344,352,364,368,370,374,380,382,388,398,400,412,422,424,428,434,440,452,454,458,464,472,484,490,494,502,508,520,524,532,538,542,550,554,560,572,574,578,584,590,602,604
mov $1,2
mov $2,$0
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,14
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
div $0,7
| 32.571429
| 374
| 0.669591
|
c04a7b920c443bbb94e42a1cb217f0b240502677
| 124
|
asm
|
Assembly
|
Mips/Studies/printingFloat.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | 1
|
2020-09-03T00:16:24.000Z
|
2020-09-03T00:16:24.000Z
|
Mips/Studies/printingFloat.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | null | null | null |
Mips/Studies/printingFloat.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | null | null | null |
.data
PI: .float 3.14
.text
li $v0, 2 #the code to print a float is 2
lwc1 $f12, PI #uses Coproc1
syscall
| 17.714286
| 47
| 0.58871
|
2dabfcd767777621ffe1967e29e0ba9b4faaf331
| 6,435
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_730.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.log_21829_730.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.log_21829_730.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 %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xed66, %r8
nop
nop
nop
nop
nop
dec %r9
movl $0x61626364, (%r8)
lfence
lea addresses_WC_ht+0xa966, %r13
nop
nop
nop
nop
dec %r15
mov (%r13), %rdi
nop
nop
nop
inc %r13
lea addresses_UC_ht+0x1aa3e, %rsi
lea addresses_A_ht+0x13166, %rdi
nop
nop
nop
nop
inc %r8
mov $92, %rcx
rep movsq
and $34934, %r9
lea addresses_UC_ht+0x3506, %rsi
lea addresses_WT_ht+0xd166, %rdi
nop
nop
nop
nop
xor %r15, %r15
mov $57, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $19936, %rdx
lea addresses_WT_ht+0x1a204, %r15
nop
inc %r9
movw $0x6162, (%r15)
nop
cmp %rsi, %rsi
lea addresses_WC_ht+0x1c7b4, %rsi
lea addresses_UC_ht+0x356, %rdi
nop
nop
nop
inc %r13
mov $57, %rcx
rep movsq
nop
nop
nop
inc %r13
lea addresses_normal_ht+0xbefe, %r15
nop
xor $6083, %r13
movb (%r15), %cl
add %rdi, %rdi
lea addresses_normal_ht+0x19b66, %r9
inc %rcx
movups (%r9), %xmm1
vpextrq $0, %xmm1, %r12
nop
nop
nop
nop
nop
and $17550, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rax
push %rdx
push %rsi
// Store
lea addresses_D+0x2466, %r11
nop
nop
nop
sub %r12, %r12
movl $0x51525354, (%r11)
// Exception!!!
nop
nop
mov (0), %rdx
nop
nop
nop
nop
nop
xor $26308, %rax
// Store
lea addresses_WT+0xe1e6, %r11
clflush (%r11)
nop
nop
nop
cmp $60136, %rax
mov $0x5152535455565758, %rdx
movq %rdx, %xmm2
vmovups %ymm2, (%r11)
nop
nop
nop
cmp $52509, %r9
// Faulty Load
lea addresses_PSE+0x2166, %rsi
nop
nop
dec %rdx
mov (%rsi), %r11d
lea oracles, %rax
and $0xff, %r11
shlq $12, %r11
mov (%rax,%r11,1), %r11
pop %rsi
pop %rdx
pop %rax
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 11, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 5, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 35.357143
| 2,999
| 0.657809
|
8dacc0f3ca1655f3bec25a444c30d7b803c12ffa
| 508
|
asm
|
Assembly
|
Working Disassembly/Levels/ICZ/Misc Object Data/Map - Snowdust.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | 5
|
2021-07-09T08:17:56.000Z
|
2022-02-27T19:57:47.000Z
|
Working Disassembly/Levels/ICZ/Misc Object Data/Map - Snowdust.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Working Disassembly/Levels/ICZ/Misc Object Data/Map - Snowdust.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Map_361F0E: dc.w Frame_361F1A-Map_361F0E
dc.w Frame_361F22-Map_361F0E
dc.w Frame_361F2A-Map_361F0E
dc.w Frame_361F32-Map_361F0E
dc.w Frame_361F3A-Map_361F0E
dc.w Frame_361F42-Map_361F0E
Frame_361F1A: dc.w 1
dc.b $F8, 0, 0, 0,$FF,$FC
Frame_361F22: dc.w 1
dc.b $F8, 0, 8, 0,$FF,$FC
Frame_361F2A: dc.w 1
dc.b $F0, 1, 0, 1,$FF,$FC
Frame_361F32: dc.w 1
dc.b $F0, 1, 8, 1,$FF,$FC
Frame_361F3A: dc.w 1
dc.b $E8, 2, 0, 3,$FF,$FC
Frame_361F42: dc.w 1
dc.b $E8, 2, 8, 3,$FF,$FC
| 26.736842
| 40
| 0.645669
|
9b7cf86f251294ae231a9af85315bcecdba278e0
| 2,475
|
asm
|
Assembly
|
SNesoid/sneslib_comp/i386/zsnesc4.asm
|
Pretz/SNesoid
|
a9381085e07c5aabbe8e371854d579fede0893ae
|
[
"Xnet",
"X11"
] | 17
|
2015-01-19T05:33:25.000Z
|
2021-10-05T23:24:33.000Z
|
snes9x/src/main/cpp/sneslib/i386/zsnesc4.asm
|
CharlesNascimento/K-SNES
|
10f97fdf28e647b484a68aecd1387ec549290c62
|
[
"MIT"
] | 5
|
2015-01-19T09:24:55.000Z
|
2019-08-09T18:55:58.000Z
|
SNesoid/sneslib_comp/i386/zsnesc4.asm
|
Pretz/SNesoid
|
a9381085e07c5aabbe8e371854d579fede0893ae
|
[
"Xnet",
"X11"
] | 22
|
2015-01-17T00:24:52.000Z
|
2021-08-13T02:51:30.000Z
|
; Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
;
; Super FX assembler emulator code
; (c) Copyright 1998, 1999 zsKnight and _Demo_.
;
; Permission to use, copy, modify and distribute Snes9x in both binary and
; source form, for non-commercial purposes, is hereby granted without fee,
; providing that this license information and copyright notice appear with
; all copies and any derived work.
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event shall the authors be held liable for any damages
; arising from the use of this software.
;
; Snes9x is freeware for PERSONAL USE only. Commercial users should
; seek permission of the copyright holders first. Commercial use includes
; charging money for Snes9x or software derived from Snes9x.
;
; The copyright holders request that bug fixes and improvements to the code
; should be forwarded to them so everyone can benefit from the modifications
; in future versions.
;
; Super NES and Super Nintendo Entertainment System are trademarks of
; Nintendo Co., Limited and its subsidiary companies.
;
; ZSNES SuperFX emulation code and wrappers
; (C) Copyright 1997-8 zsKnight and _Demo_
; Used with the kind permission of the copyright holders.
;
%include "i386/macros.mac"
EXTSYM InitC4, C4RegFunction, C4ReadReg, C4WriteReg
EXTSYM romdata
[BITS 32]
SECTION .data
NEWSYM C4Ram, dd 0
NEWSYM C4RamR, dd 0
NEWSYM C4RamW, dd 0
NEWSYM pressed, dd 0 ; used by C4Edit (unused function)
NEWSYM vidbuffer,dd 0 ; used by C4Edit
NEWSYM oamram, times 544 db 0 ; Sprite PPU data used by C4 routines
;
; Snes9x wrapper functions for the zsnes C4 code
; (C) Copyright 2000 Gary Henderson
SECTION .data
%ifdef __DJGPP__
%define ROM _ROM
%define RegRAM _RegRAM
%define S9xInitC4 _S9xInitC4
%define S9xSetC4 _S9xSetC4
%define S9xSetC4RAM _S9xSetC4RAM
%define S9xGetC4 _S9xGetC4
%define S9xGetC4RAM _S9xGetC4RAM
%endif
EXTERN ROM
EXTERN RegRAM
SECTION .text
NEWSYM S9xInitC4
pushad
mov eax,dword[ROM]
mov dword[romdata],eax
call InitC4
; mov eax,dword[RegRAM]
; add eax,06000h
; mov dword[C4Ram],eax
popad
ret
NEWSYM S9xSetC4
NEWSYM S9xSetC4RAM
mov ecx, dword[esp+8]
mov eax, dword[esp+4]
and ecx, 0ffffh
push ebx
push esi
push edi
push ebp
sub ecx, 6000h
call C4RegFunction
pop ebp
pop edi
pop esi
pop ebx
ret
NEWSYM S9xGetC4
NEWSYM S9xGetC4RAM
mov ecx, dword[esp+4]
xor eax, eax
and ecx, 0ffffh
sub ecx, 06000h
jmp C4ReadReg
| 23.798077
| 76
| 0.767677
|
8844c0d071089fbf253c38bc1165d56376f3d6ce
| 1,224
|
asm
|
Assembly
|
programs/oeis/007/A007997.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/007/A007997.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/007/A007997.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A007997: a(n) = ceiling((n-3)(n-4)/6).
; 0,0,1,1,2,4,5,7,10,12,15,19,22,26,31,35,40,46,51,57,64,70,77,85,92,100,109,117,126,136,145,155,166,176,187,199,210,222,235,247,260,274,287,301,316,330,345,361,376,392,409,425,442,460,477,495,514,532,551,571,590,610,631,651,672,694,715,737,760,782,805,829,852,876,901,925,950,976,1001,1027,1054,1080,1107,1135,1162,1190,1219,1247,1276,1306,1335,1365,1396,1426,1457,1489,1520,1552,1585,1617,1650,1684,1717,1751,1786,1820,1855,1891,1926,1962,1999,2035,2072,2110,2147,2185,2224,2262,2301,2341,2380,2420,2461,2501,2542,2584,2625,2667,2710,2752,2795,2839,2882,2926,2971,3015,3060,3106,3151,3197,3244,3290,3337,3385,3432,3480,3529,3577,3626,3676,3725,3775,3826,3876,3927,3979,4030,4082,4135,4187,4240,4294,4347,4401,4456,4510,4565,4621,4676,4732,4789,4845,4902,4960,5017,5075,5134,5192,5251,5311,5370,5430,5491,5551,5612,5674,5735,5797,5860,5922,5985,6049,6112,6176,6241,6305,6370,6436,6501,6567,6634,6700,6767,6835,6902,6970,7039,7107,7176,7246,7315,7385,7456,7526,7597,7669,7740,7812,7885,7957,8030,8104,8177,8251,8326,8400,8475,8551,8626,8702,8779,8855,8932,9010,9087,9165,9244,9322,9401,9481,9560,9640,9721,9801,9882,9964,10045,10127,10210,10292
mov $1,$0
bin $1,2
add $1,2
div $1,3
| 153
| 1,144
| 0.763072
|
883e33648682823a9a473dae4673002b01127a23
| 494
|
asm
|
Assembly
|
programs/oeis/002/A002808.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/002/A002808.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/002/A002808.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A002808: The composite numbers: numbers n of the form x*y for x > 1 and y > 1.
; 4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,106,108,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,132,133
add $0,3
seq $0,122825 ; a(n) = n + number of previous prime terms, a(1) = 1.
sub $0,1
| 70.571429
| 324
| 0.668016
|
93ab8a79edecff42e25c67fa8edeafe2c5e440a0
| 633
|
asm
|
Assembly
|
libsrc/zx81/zx_cls.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/zx81/zx_cls.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
libsrc/zx81/zx_cls.asm
|
teknoplop/z88dk
|
bb03fbfd6b2ab0f397a1358559089f9cd3706485
|
[
"ClArtistic"
] | null | null | null |
;
; ZX81 libraries - Stefano
;
;----------------------------------------------------------------
;
; $Id: zx_cls.asm,v 1.8 2015/08/07 06:23:58 stefano Exp $
;
;----------------------------------------------------------------
;
; ROM mode CLS.. useful to expand collapsed display file
;
;----------------------------------------------------------------
PUBLIC zx_cls
IF FORzx80
EXTERN filltxt
ELSE
EXTERN restore81
EXTERN zx_topleft
ENDIF
zx_cls:
IF FORzx80
ld l,0
jp filltxt
ENDIF
IF FORzx81
call restore81
call $A2A
jp zx_topleft
ENDIF
IF FORlambda
call restore81
call $1C7D
jp zx_topleft
ENDIF
| 16.657895
| 65
| 0.480253
|
ca8a07b52a0638efd5dc5900fce212052d485442
| 668
|
asm
|
Assembly
|
oeis/135/A135039.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/135/A135039.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/135/A135039.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A135039: Ceiling(Pi*n^2).
; Submitted by Christian Krause
; 0,4,13,29,51,79,114,154,202,255,315,381,453,531,616,707,805,908,1018,1135,1257,1386,1521,1662,1810,1964,2124,2291,2464,2643,2828,3020,3217,3422,3632,3849,4072,4301,4537,4779,5027,5282,5542,5809,6083,6362,6648,6940,7239,7543,7854,8172,8495,8825,9161,9504,9853,10208,10569,10936,11310,11690,12077,12469,12868,13274,13685,14103,14527,14958,15394,15837,16287,16742,17204,17672,18146,18627,19114,19607,20107,20612,21125,21643,22168,22699,23236,23779,24329,24885,25447,26016,26591,27172,27760,28353,28953
lpb $0
mov $2,$0
mov $0,0
seq $2,66643 ; a(n) = floor(Pi*n^2).
add $3,$2
add $3,1
lpe
mov $0,$3
| 51.384615
| 500
| 0.745509
|
4a885d0f34607b9e31be347aa067ab345902486d
| 662
|
asm
|
Assembly
|
oeis/030/A030655.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/030/A030655.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/030/A030655.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A030655: Pair up the numbers.
; Submitted by Jamie Morken(s2)
; 12,34,56,78,910,1112,1314,1516,1718,1920,2122,2324,2526,2728,2930,3132,3334,3536,3738,3940,4142,4344,4546,4748,4950,5152,5354,5556,5758,5960,6162,6364,6566,6768,6970,7172,7374,7576,7778,7980,8182,8384,8586,8788,8990,9192,9394,9596,9798,99100,101102,103104,105106,107108,109110,111112,113114,115116,117118,119120,121122,123124,125126,127128,129130,131132,133134,135136,137138,139140,141142,143144,145146,147148,149150,151152,153154,155156,157158,159160,161162,163164,165166,167168,169170,171172
mul $0,2
mov $1,$0
add $0,1
add $1,2
mov $2,$0
lpb $1
mul $0,10
div $1,10
lpe
add $0,1
add $0,$2
| 41.375
| 495
| 0.768882
|
0594b1b5fd60d110e3c6ba02585d04b6e5c99fd6
| 1,979
|
asm
|
Assembly
|
programs/oeis/026/A026915.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/026/A026915.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/026/A026915.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A026915: a(n) = T(n,0) + T(n,1) + ... + T(n,n), T given by A026907.
; 1,26,100,272,640,1400,2944,6056,12304,24824,49888,100040,200368,401048,802432,1605224,3210832,6422072,12844576,25689608,51379696,102759896,205520320,411041192,822082960,1644166520,3288333664,6576667976,13153336624,26306673944,52613348608,105226697960,210453396688,420906794168,841813589152,1683627179144,3367254359152,6734508719192,13469017439296,26938034879528,53876069760016,107752139521016,215504279043040,431008558087112,862017116175280,1724034232351640,3448068464704384,6896136929409896,13792273858820944,27584547717643064,55169095435287328,110338190870575880,220676381741153008,441352763482307288,882705526964615872,1765411053929233064,3530822107858467472,7061644215716936312,14123288431433874016,28246576862867749448,56493153725735500336,112986307451471002136,225972614902942005760,451945229805884013032,903890459611768027600,1807780919223536056760,3615561838447072115104,7231123676894144231816,14462247353788288465264,28924494707576576932184,57848989415153153866048,115697978830306307733800,231395957660612615469328,462791915321225230940408,925583830642450461882592,1851167661284900923766984,3702335322569801847535792,7404670645139603695073432,14809341290279207390148736,29618682580558414780299368,59237365161116829560600656,118474730322233659121203256,236949460644467318242408480,473898921288934636484818952,947797842577869272969639920,1895595685155738545939281880,3791191370311477091878565824,7582382740622954183757133736,15164765481245908367514269584,30329530962491816735028541304,60659061924983633470057084768,121318123849967266940114171720,242636247699934533880228345648,485272495399869067760456693528,970544990799738135520913389312,1941089981599476271041826780904,3882179963198952542083653564112,7764359926397905084167307130552,15528719852795810168334614263456,31057439705591620336669228529288
lpb $0
sub $0,1
add $2,6
add $1,$2
add $1,$2
mul $1,2
add $1,1
lpe
add $1,1
mov $0,$1
| 141.357143
| 1,809
| 0.903487
|
016f5c7c3753e952123ceb54a807537cfe310011
| 1,173
|
asm
|
Assembly
|
programs/oeis/070/A070229.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/070/A070229.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/070/A070229.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A070229: Next m>n such that m is divisible by lpf(n), lpf=A006530 largest prime factor.
; 2,4,6,6,10,9,14,10,12,15,22,15,26,21,20,18,34,21,38,25,28,33,46,27,30,39,30,35,58,35,62,34,44,51,42,39,74,57,52,45,82,49,86,55,50,69,94,51,56,55,68,65,106,57,66,63,76,87,118,65,122,93,70,66,78,77,134,85,92,77,142,75,146,111,80,95,88,91,158,85,84,123,166,91,102,129,116,99,178,95,104,115,124,141,114,99,194,105,110,105,202,119,206,117,112,159,214,111,218,121,148,119,226,133,138,145,130,177,136,125,132,183,164,155,130,133,254,130,172,143,262,143,152,201,140,153,274,161,278,147,188,213,156,147,174,219,154,185,298,155,302,171,170,165,186,169,314,237,212,165,184,165,326,205,176,249,334,175,182,187,190,215,346,203,182,187,236,267,358,185,362,195,244,207,222,217,204,235,196,209,382,195,386,291,208,203,394,209,398,205,268,303,232,221,246,309,230,221,228,217,422,265,284,321,258,219,248,327,292,231,238,259,446,231,230,339,454,247,458,253,242,261,466,247,282,295,316,255,478,245,482,253,246,305,252,287,266,279,332,255
mov $1,$0
mov $2,$0
cal $0,52126 ; a(1) = 1; for n>1, a(n)=n/(largest prime dividing n).
div $1,$0
add $1,29
mul $1,100
sub $1,2900
div $1,100
add $1,2
add $1,$2
| 83.785714
| 919
| 0.706735
|
900c7316ff0a9fd2e9a11757ac4aa604d02b6879
| 1,441
|
asm
|
Assembly
|
programs/oeis/101/A101093.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/101/A101093.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/101/A101093.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A101093: Second partial sums of sixth powers (A001014).
; 1,66,860,5750,26265,93436,278256,725220,1703625,3682030,7431996,14167946,25730705,44823000,75305920,122566056,193963761,299373690,451829500,668285310,970507241,1386109076,1949746800,2704487500,3703368825,5011165926,6706383516,8883491410,11655422625,15156353840,19544788736,25006965456,31760610145,40059059250,50195773980,62509271046,77388494521,95278654380,116687558000,142192461620,172447469481,208191509086,250256911740,299578628250,357204110385,424303889416,502182883776,592292468600,696243340625,815819212650,952991372476,1109934141966,1289041272585,1492943314500,1724525997040,1986949659036,2283669768281,2618458570070,2995427905500,3419053240930,3894198950721,4426144896096,5020614343680,5683803268000,6422411082945,7243672847906,8155392995036,9165980624790,10284486417625,11520641210460,12884896287216,14388465433476,16043368806025,17862478668750,19859567047100,22049355354026,24447566041041,27070976328760,29937474072000,33066115815240,36477187094961,40192265046106,44234283370620,48627599726750,53398065598505,58573098705396,64181758013296,70254821407980,76824866093625,83926351779270,91595706716956,99871416655986,108794116778465,118406686682000,128754348476160,139884768060016,151848159648801,164697393618450,178488107737500,193278821856550
add $0,1
lpb $0
mov $2,$0
sub $0,1
seq $2,540 ; Sum of 6th powers: 0^6 + 1^6 + 2^6 + ... + n^6.
add $1,$2
lpe
mov $0,$1
| 120.083333
| 1,253
| 0.872311
|
946a2b022a17b8f5d4c76380e96cf0ef405a20bc
| 942
|
asm
|
Assembly
|
programs/oeis/128/A128800.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/128/A128800.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/128/A128800.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A128800: n*(n-1)*6^n.
; 0,0,72,1296,15552,155520,1399680,11757312,94058496,725594112,5441955840,39907676160,287335268352,2037468266496,14262277865472,98738846760960,677066377789440,4604051368968192,31077346740535296,208401031083589632,1389340207223930880,9213519268958699520,60809227175127416832,399603492865123024896,2615586498753532526592,17058172817957820825600,110878123316725835366400,718490239092383413174272,4642552314135400515895296,29918670468872581102436352,192334310157038021372805120,1233592472041692137080750080,7894991821066829677316800512,50426076792620396003507306496,321466239552955024522359078912,2045694251700622883324103229440,12996175246098074788176655810560,82432882989536360085006216855552,522074925600396947205039373418496,3301771151094402314756194956214272,20853291480596225145828599723458560,131536146262222343227534244409507840,828677721452000762333465739779899392
mov $2,6
pow $2,$0
bin $0,2
mul $0,$2
mul $0,2
| 104.666667
| 869
| 0.915074
|
659489e0b032c85dde50812b69b4fd88baa169ef
| 4,986
|
asm
|
Assembly
|
elena_lang/src30/asm/x32/core_vm.asm
|
bencz/cpu-simulator
|
f704c1d12156dfd79a4b07d8210141f1acff2d38
|
[
"Apache-2.0"
] | 2
|
2015-12-13T07:19:01.000Z
|
2018-06-19T09:13:55.000Z
|
elena_lang/src30/asm/x32/core_vm.asm
|
bencz/cpu-simulator
|
f704c1d12156dfd79a4b07d8210141f1acff2d38
|
[
"Apache-2.0"
] | null | null | null |
elena_lang/src30/asm/x32/core_vm.asm
|
bencz/cpu-simulator
|
f704c1d12156dfd79a4b07d8210141f1acff2d38
|
[
"Apache-2.0"
] | null | null | null |
// --- System Core API --
define NEWFRAME 10014h
define INIT_ET 10015h
define ENDFRAME 10016h
define RESTORE_ET 10017h
define OPENFRAME 10019h
define CLOSEFRAME 1001Ah
rstructure core_vm'dll_name
db 101 // e
db 108 // l
db 101 // e
db 110 // n
db 097 // a
db 118 // v
db 109 // m
db 046 // .
db 100 // d
db 108 // l
db 108 // l
db 0
end
rstructure core_vm'SetDebugMode // SetDebugMode
db 083 // S
db 101 // e
db 116 // t
db 068 // D
db 101 // e
db 098 // b
db 117 // u
db 103 // g
db 077 // M
db 111 // o
db 100 // d
db 101 // e
db 0
end
rstructure core_vm'Interpret // Interpret
db 073 // I
db 110 // n
db 116 // t
db 101 // e
db 114 // r
db 112 // p
db 114 // r
db 101 // e
db 116 // t
db 0
end
rstructure core_vm'ErrorProc // GetLVMStatus
db 071 // G
db 101 // e
db 116 // t
db 076 // L
db 086 // V
db 077 // M
db 083 // S
db 116 // t
db 097 // a
db 116 // t
db 117 // u
db 115 // s
db 0
end
rstructure core_vm'DllError // Cannot load
dd 12
db 067 // C
db 097 // a
db 110 // n
db 110 // n
db 111 // o
db 116 // t
db 032 //
db 108 // l
db 111 // o
db 097 // a
db 100 // d
db 032 //
db 0
end
rstructure core_vm'InvalidDllError // Incorrect elenavm.dll\n
dd 21
db 073 // I
db 110 // n
db 099 // c
db 111 // o
db 114 // r
db 101 // e
db 099 // c
db 116 // t
db 032 //
db 101 // e
db 108 // l
db 101 // e
db 110 // n
db 097 // a
db 118 // v
db 109 // m
db 046 // .
db 100 // d
db 108 // l
db 108 // l
db 010 // \n
db 0
end
procedure core_vm'console_vm_start
// load dll
mov eax, rdata : "$native'core_vm'dll_name"
push eax
call extern 'dlls'KERNEL32.LoadLibraryA
test eax, eax
jz lbCannotLoadVM
push eax // save hModule
// ; set debug mode if debug hook is set
mov ebx, [data:"'vm_hook"]
mov ebx, [ebx]
test ebx, ebx
jz short labHookEnd
mov esi, rdata : "$native'core_vm'SetDebugMode" // load SetDebugMode
push esi
push eax
call extern 'dlls'KERNEL32.GetProcAddress
test eax, eax
jz lbCannotFindEntry
push eax
mov eax, esp
call [eax] // call SetDebugMode
lea esp, [esp+4]
// ; set debug section info
mov esi, [data:"'vm_hook"]
mov [esi+4], eax
mov eax, [esp]
labHookEnd:
// start the program
mov esi, rdata : "$native'core_vm'Interpret" // load entry procedure name
push esi
push eax
call extern 'dlls'KERNEL32.GetProcAddress
test eax, eax
jz lbCannotFindEntry
push eax
mov eax, esp
mov ebx, data:"'vm_tape"
push ebx
call [eax] // call Interpret
lea esp, [esp + 8]
test eax, eax
jz short lbFailed
call extern 'dlls'KERNEL32.FreeLibrary
xor eax, eax
push eax
call extern 'dlls'KERNEL32.ExitProcess
ret
lbCannotLoadVM:
mov ebx, rdata : "$native'core_vm'DllError" // Cannot load elenavm.dll
mov ecx, [ebx]
lea ebx, [ebx+4]
jmp short lbError
lbFailed:
mov eax, [esp]
mov esi, rdata : "$native'core_vm'ErrorProc" // load error procedure name
push esi
push eax
call extern 'dlls'KERNEL32.GetProcAddress
push eax
mov eax, esp
call [eax]
lea esp, [esp + 4]
mov ebx, eax
xor ecx, ecx
lbNextLEn:
cmp byte ptr [eax], 0
jz lbError
add ecx, 1
lea eax, [eax+1]
jmp short lbNextLEn
lbCannotFindEntry:
mov ebx, rdata : "$native'core_vm'InvalidDllError" // Incorrect elenavm.dll
mov ecx, [ebx]
lea ebx, [ebx+4]
lbError:
push 0FFFFFFF5h
call extern 'dlls'KERNEL32.GetStdHandle
push 00
mov edx, esp
push 00 // place lpReserved
push edx
push ecx // place length
push ebx
push eax
call extern 'dlls'KERNEL32.WriteConsoleA
lea esp, [esp+4]
call extern 'dlls'KERNEL32.FreeLibrary
call extern 'dlls'KERNEL32.ExitProcess
ret
end
procedure core_vm'start_n_eval
mov eax, [esp+4]
push ebx
push ecx
push edi
push esi
push ebp
call code : % NEWFRAME
// set default exception handler
mov ebx, code : "$native'core_vm'default_handler"
call code : % INIT_ET
// invoke symbol
mov ebp, esp
mov edx, [ebp+20h]
mov esi, [edx]
call eax
call code : % ENDFRAME
pop ebp
pop esi
pop edi
pop ecx
pop ebx
ret
end
procedure core_vm'eval
mov eax, [esp+4]
push ebx
push ecx
push edi
push esi
call code : % OPENFRAME
// invoke symbol
call eax
call code : % CLOSEFRAME
pop esi
pop edi
pop ecx
pop ebx
ret
end
procedure core_vm'default_handler
call code : % RESTORE_ET
call code : % ENDFRAME
xor eax, eax
pop ebp
pop esi
pop edi
pop ecx
pop ebx
ret
end
| 15.109091
| 78
| 0.576815
|
a63dcccdda24f13000d4eaa6b303af0c97d8ebc7
| 4,592
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_4508_711.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_0xa0_notsx.log_4508_711.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_0xa0_notsx.log_4508_711.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 %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1e3ab, %rsi
lea addresses_WC_ht+0x12073, %rdi
nop
nop
nop
dec %r9
mov $81, %rcx
rep movsb
nop
add $21414, %r12
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rsi
// Load
mov $0x198e17000000023b, %rbx
nop
nop
nop
nop
xor %rbp, %rbp
movb (%rbx), %r11b
nop
nop
nop
nop
cmp %rbx, %rbx
// Load
lea addresses_A+0x9ac3, %r9
nop
nop
xor $4742, %rcx
movb (%r9), %r11b
nop
nop
nop
nop
inc %r14
// Faulty Load
mov $0x198e17000000023b, %rbp
clflush (%rbp)
nop
nop
cmp $26005, %rcx
movups (%rbp), %xmm5
vpextrq $0, %xmm5, %r11
lea oracles, %r14
and $0xff, %r11
shlq $12, %r11
mov (%r14,%r11,1), %r11
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'00': 4508}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 48.336842
| 2,999
| 0.65919
|
217d35622bb35ff40849e015ebbbbe62892705c7
| 139
|
asm
|
Assembly
|
8085_programming/YT/part_9_add_2_bcdnos.asm
|
SayanGhoshBDA/code-backup
|
8b6135facc0e598e9686b2e8eb2d69dd68198b80
|
[
"MIT"
] | 16
|
2018-11-26T08:39:42.000Z
|
2019-05-08T10:09:52.000Z
|
8085_programming/YT/part_9_add_2_bcdnos.asm
|
SayanGhoshBDA/code-backup
|
8b6135facc0e598e9686b2e8eb2d69dd68198b80
|
[
"MIT"
] | 8
|
2020-05-04T06:29:26.000Z
|
2022-02-12T05:33:16.000Z
|
8085_programming/YT/part_9_add_2_bcdnos.asm
|
SayanGhoshBDA/code-backup
|
8b6135facc0e598e9686b2e8eb2d69dd68198b80
|
[
"MIT"
] | 5
|
2020-02-11T16:02:21.000Z
|
2021-02-05T07:48:30.000Z
|
LHLD 2050
MOV A,L
ADD H
DAA
STA 2070
JC L1
HLT
L1: MVI A,01
STA 2071
HLT
# ORG 2050H
# DB 73H, 57H
| 9.928571
| 15
| 0.489209
|
3f0bc6a2016dd4db6dc283509b14eec38e089d46
| 13,722
|
asm
|
Assembly
|
bootloader/loader.asm
|
TieNan2019/ImplementationOfA64-bitOS
|
ba8508cb11c9718ea39669a9f9be57208cf6767f
|
[
"MIT"
] | null | null | null |
bootloader/loader.asm
|
TieNan2019/ImplementationOfA64-bitOS
|
ba8508cb11c9718ea39669a9f9be57208cf6767f
|
[
"MIT"
] | null | null | null |
bootloader/loader.asm
|
TieNan2019/ImplementationOfA64-bitOS
|
ba8508cb11c9718ea39669a9f9be57208cf6767f
|
[
"MIT"
] | null | null | null |
org 10000h
jmp Label_Start
; 引入 FAT12 的文件结构
%include "fat12.inc"
; 内核起始于 0x100000 (1 MB) 处, 因为 1 MB 以下的物理地址
; 并非全是可用空间, 所以选择一块平坦的区域
BaseOfKernelFile equ 0x00
OffsetOfKernelFile equ 0x100000
; 0x7E00 是内核程序的临时转存空间, 由于 BIOS 只支持 1 MB 以下
; 的物理空间寻址, 所以先将内核程序读入临时转存空间, 然后通过搬运到
; 1 MB 以上的内存空间中。
BaseTmpOfKernelAddr equ 0x00
OffsetTmpOfKernelFile equ 0x7E00
; 当内存被搬走后, 该段临时内存就作为内存结构数据的储存空间
MemoryStructBufferAddr equ 0x7E00
; 在进入保护模式之前, 先创建临时 GDT 表, 为 GDT 创建初始数据结构
[SECTION gdt]
LABEL_GDT: dd 0,0
LABEL_DESC_CODE32: dd 0x0000FFFF,0x00CF9A00
LABEL_DESC_DATA32: dd 0x0000FFFF,0x00CF9200
GdtLen equ $ - LABEL_GDT
GdtPtr dw GdtLen - 1
dd LABEL_GDT
; 代码和数据段选择子
SelectorCode32 equ LABEL_DESC_CODE32 - LABEL_GDT
SelectorData32 equ LABEL_DESC_DATA32 - LABEL_GDT
; 为了切换到 IA-32e 模式准备临时 GDT 表结构
[SECTION gdt64]
LABEL_GDT64: dq 0x0000000000000000
LABEL_DESC_CODE64: dq 0x0020980000000000
LABEL_DESC_DATA64: dq 0x0000920000000000
GdtLen64 equ $ - LABEL_GDT64
GdtPtr64 dw GdtLen64 - 1
dd LABEL_GDT64
SelectorCode64 equ LABEL_DESC_CODE64 - LABEL_GDT64
SelectorData64 equ LABEL_DESC_DATA64 - LABEL_GDT64
[SECTION .s16]
; 将处理器位宽调整为 16 位宽。此时如果使用 32 位宽的指令
; 需要在指令前加入前缀 '0x66', 在32位宽寻址指令前加入前
; 缀 '0x67'。
[BITS 16]
Label_Start:
mov ax, cs
mov ds, ax
mov es, ax
mov ax, 0x00
mov ss, ax
mov sp, 0x7c00
; 在屏幕上显示 Start Loader
mov ax, 1301h
mov bx, 000fh
mov dx, 0200h ;row 2
mov cx, 12
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, StartLoaderMessage
int 10h
; 开启实模式下的 4 GB 寻址功能
; 开启 A20 功能, 只有低 20 位地址线能够有效寻址。
push ax
; A20 快速门 : 使用 IO 端口 0x92 来控制
; 具体来说是置位 0x92 端口的第一位
in al, 92h
or al, 00000010b
out 92h, al
pop ax
; A20 总线开启后, 关闭外部中断
cli
; 加载保护模式数据结构信息
db 0x66
lgdt [GdtPtr]
; 置位 CR0 寄存器的第 0 位来开启保护模式
mov eax, cr0
or eax, 1
mov cr0, eax
; 进入保护模式后, 为 FS 段寄存器加载新的数据段值
mov ax, SelectorData32
mov fs, ax
; 数据一旦加载完成就推出保护模式
; 此举是为了让 FS 段寄存器在实模式下寻址能力超过 1 MB
; 即所谓的 Big Real Mode 模式
mov eax, cr0
and al, 11111110b
mov cr0, eax
; 中断使能
sti
; 初始化软盘启动
xor ah, ah
xor dl, dl
int 13h
; 从文件系统中搜索 kernel.bin
mov word [SectorNo], SectorNumOfRootDirStart
Lable_Search_In_Root_Dir_Begin:
cmp word [RootDirSizeForLoop], 0
jz Label_No_LoaderBin
dec word [RootDirSizeForLoop]
mov ax, 00h
mov es, ax
mov bx, 8000h
mov ax, [SectorNo]
mov cl, 1
call Func_ReadOneSector
mov si, KernelFileName
mov di, 8000h
cld
mov dx, 10h
Label_Search_For_LoaderBin:
cmp dx, 0
jz Label_Goto_Next_Sector_In_Root_Dir
dec dx
mov cx, 11
Label_Cmp_FileName:
cmp cx, 0
jz Label_FileName_Found
dec cx
lodsb
cmp al, byte [es:di]
jz Label_Go_On
jmp Label_Different
Label_Go_On:
inc di
jmp Label_Cmp_FileName
Label_Different:
and di, 0FFE0h
add di, 20h
mov si, KernelFileName
jmp Label_Search_For_LoaderBin
Label_Goto_Next_Sector_In_Root_Dir:
add word [SectorNo], 1
jmp Lable_Search_In_Root_Dir_Begin
; 如果没有找到 kernel.bin, 在屏幕输出 ERROR:No KERNEL Found
Label_No_LoaderBin:
mov ax, 1301h
mov bx, 008Ch
mov dx, 0300h
mov cx, 21
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, NoLoaderMessage
int 10h
jmp $
; 如果搜索到 kernel.bin, 则将 kernel.bin 文件
; 内到数据读取至物理内存中
Label_FileName_Found:
mov ax, RootDirSectors
and di, 0FFE0h
add di, 01Ah
mov cx, word [es:di]
push cx
add cx, ax
add cx, SectorBalance
mov eax, BaseTmpOfKernelAddr ;BaseOfKernelFile
mov es, eax
mov bx, OffsetTmpOfKernelFile ;OffsetOfKernelFile
mov ax, cx
Label_Go_On_Loading_File:
push ax
push bx
mov ah, 0Eh
mov al, '.'
mov bl, 0Fh
int 10h
pop bx
pop ax
mov cl, 1
call Func_ReadOneSector
pop ax
;;;;;;;;;;;;;;;;;;;;;;;
push cx
push eax
push fs
push edi
push ds
push esi
mov cx, 200h
mov ax, BaseOfKernelFile
; 此处对 FS 进行了写操作, 如果直接移植到物理机会出现问题, 但在 boches 上可以正常工作
mov fs, ax
mov edi, dword [OffsetOfKernelFileCount]
mov ax, BaseTmpOfKernelAddr
mov ds, ax
mov esi, OffsetTmpOfKernelFile
; 将 kernel 逐字节复制到 1M 以上的物理储存空间
Label_Mov_Kernel:
mov al, byte [ds:esi]
mov byte [fs:edi], al
inc esi
inc edi
; 借助循环拷贝 kernel.bin
loop Label_Mov_Kernel
mov eax, 0x1000
mov ds, eax
mov dword [OffsetOfKernelFileCount], edi
pop esi
pop ds
pop edi
pop fs
pop eax
pop cx
;;;;;;;;;;;;;;;;;;;;;;;
call Func_GetFATEntry
cmp ax, 0FFFh
jz Label_File_Loaded
push ax
mov dx, RootDirSectors
add ax, dx
add ax, SectorBalance
jmp Label_Go_On_Loading_File
Label_File_Loaded:
; 将 GS 段寄存器的基址设置在 0B800h 地址处
; 从内存地址 0B800h 开始, 是专门用于显示字符的内存空间
; 每个字符占用两个字节的内存, 低位保存显示字符, 高位保存属性
mov ax, 0B800h
mov gs, ax
; 成功将内核加载到 1M 以上内存空间后,
; 在屏幕上显示一个 'G'
mov ah, 0Fh
mov al, 'G'
mov [gs:((80 * 0 + 39) * 2)], ax
; 等到 Loader 加载内核完毕, 便不需要软盘驱动器
; 利用 BIOS IO端口 3F2h 关闭软驱电机
KillMotor:
push dx
mov dx, 03F2h
mov al, 0
out dx, al
pop dx
; 内核成功拷贝后, 就可以将临时转存空间用于保存物理地址空间信息
mov ax, 1301h
mov bx, 000Fh
mov dx, 0400h ;row 4
mov cx, 24
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, StartGetMemStructMessage
int 10h
mov ebx, 0
mov ax, 0x00
mov es, ax
mov di, MemoryStructBufferAddr
Label_Get_Mem_Struct:
; 通过 BIOS 的 INT 15h 中断来获取物理地址空间信息
mov eax, 0x0E820
mov ecx, 20
mov edx, 0x534D4150
int 15h
jc Label_Get_Mem_Fail
; 保存至 0x7E00 地址处的临时转存空间处
add di, 20
cmp ebx, 0
jne Label_Get_Mem_Struct
jmp Label_Get_Mem_OK
Label_Get_Mem_Fail:
mov ax, 1301h
mov bx, 008Ch
mov dx, 0500h ;row 5
mov cx, 23
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetMemStructErrMessage
int 10h
jmp $
Label_Get_Mem_OK:
mov ax, 1301h
mov bx, 000Fh
mov dx, 0600h ;row 6
mov cx, 29
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetMemStructOKMessage
int 10h
; SVGA 信息
mov ax, 1301h
mov bx, 000Fh
mov dx, 0800h ;row 8
mov cx, 23
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, StartGetSVGAVBEInfoMessage
int 10h
mov ax, 0x00
mov es, ax
mov di, 0x8000
mov ax, 4F00h
int 10h
cmp ax, 004Fh
jz .KO
;======= Fail
mov ax, 1301h
mov bx, 008Ch
mov dx, 0900h ;row 9
mov cx, 23
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetSVGAVBEInfoErrMessage
int 10h
jmp $
.KO:
mov ax, 1301h
mov bx, 000Fh
mov dx, 0A00h ;row 10
mov cx, 29
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetSVGAVBEInfoOKMessage
int 10h
;======= Get SVGA Mode Info
mov ax, 1301h
mov bx, 000Fh
mov dx, 0C00h ;row 12
mov cx, 24
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, StartGetSVGAModeInfoMessage
int 10h
mov ax, 0x00
mov es, ax
mov si, 0x800e
mov esi, dword [es:si]
mov edi, 0x8200
Label_SVGA_Mode_Info_Get:
mov cx, word [es:esi]
;======= display SVGA mode information
push ax
mov ax, 00h
mov al, ch
call Label_DispAL
mov ax, 00h
mov al, cl
call Label_DispAL
pop ax
;=======
cmp cx, 0FFFFh
jz Label_SVGA_Mode_Info_Finish
mov ax, 4F01h
int 10h
cmp ax, 004Fh
jnz Label_SVGA_Mode_Info_FAIL
add esi, 2
add edi, 0x100
jmp Label_SVGA_Mode_Info_Get
Label_SVGA_Mode_Info_FAIL:
mov ax, 1301h
mov bx, 008Ch
mov dx, 0D00h ;row 13
mov cx, 24
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetSVGAModeInfoErrMessage
int 10h
Label_SET_SVGA_Mode_VESA_VBE_FAIL:
jmp $
Label_SVGA_Mode_Info_Finish:
mov ax, 1301h
mov bx, 000Fh
mov dx, 0E00h ;row 14
mov cx, 30
push ax
mov ax, ds
mov es, ax
pop ax
mov bp, GetSVGAModeInfoOKMessage
int 10h
; 可以在此处加入踏步观察加载结果
;jmp $
;======= set the SVGA mode(VESA VBE)
mov ax, 4F02h
mov bx, 4180h ;========================mode : 0x180 or 0x143
int 10h
cmp ax, 004Fh
jnz Label_SET_SVGA_Mode_VESA_VBE_FAIL
;======= init IDT GDT goto protect mode
; 屏蔽硬件中断, 保证切换到保护模式的过程中不产生异常和中断
cli ;======close interrupt
; 加入 0x66 前缀, 用于修饰当前的指令操作数是 32 位宽
db 0x66
lgdt [GdtPtr]
; db 0x66
; lidt [IDT_POINTER]
mov eax, cr0
or eax, 1
mov cr0, eax
jmp dword SelectorCode32:GO_TO_TMP_Protect
;
[SECTION .s32]
[BITS 32]
GO_TO_TMP_Protect:
; 初始化段寄存器及其指针
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov ss, ax
mov esp, 7E00h
; 检测处理器是否支持长模式 (IA-32e)
call support_long_mode
test eax, eax
jz no_support
; 位 IA-32e 模式配置临时页目录项和页表项
mov dword [0x90000], 0x91007
mov dword [0x90800], 0x91007
mov dword [0x91000], 0x92007
mov dword [0x92000], 0x000083
mov dword [0x92008], 0x200083
mov dword [0x92010], 0x400083
mov dword [0x92018], 0x600083
mov dword [0x92020], 0x800083
mov dword [0x92028], 0xa00083
;
db 0x66
; 利用 lgdt 指令将 IA-32e 模式的临时 GDT
; 加载到 GDTR 寄存器, 并将临时 GDT 的表初
; 始化到各个数据段寄存器 (CS 寄存器除外)。由于
; CS 寄存器不能够采用直接赋值的方式改变, 所以
; 必须借助跨字段跳转 (far JMP) 或者 跨字段调
; 用 (far CALL) 才能实现。
lgdt [GdtPtr64]
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov esp, 7E00h
; DS, ES, FS, GS, SS 段寄存器加载了 IA-32e
; 模式的段描述符后, 他们的段集地址和段限长都已经
; 失效 (清零)。而代码段寄存器(CS)仍然在保护模式
; 下, 其基地址和段限长仍然有效。
; 继续执行 IA32-e 模式的切换
; 通过置位 CR4 控制器的的 PAE 标志位
; 开启物理地址拓展功能
mov eax, cr4
bts eax, 5
mov cr4, eax
; 将临时页目录的收地址设置到 CR3 控制寄存器中。
mov eax, 0x90000
mov cr3, eax
; 置位 IA32_EFER 寄存器的 LME 使能 IA-32e 模式
mov ecx, 0C0000080h ;IA32_EFER
rdmsr
bts eax, 8
wrmsr
;======= open PE and paging
; 最后使能分页机制, 完成了 IA-32e 的模式切换工作
mov eax, cr0
bts eax, 0
bts eax, 31
mov cr0, eax
; 至此, 处理器进入了 IA-32e 模式。但是处理器仍然在
; 执行保护模式的程序,这种状态成为兼容模式。
; 若要真的进入 IA-32e 模式, 需要用跳转/调用指令将
; CS 段寄存器的值更新位 IA-32e 模式的代码段描述符。
; 经过这次跳转, 处理器的控制权也将交给内核。
; Loader 程序完成了它的任务, 占用空间可以另作其他用途。
jmp SelectorCode64:OffsetOfKernelFile
; 检测处理器是否支持长模式
support_long_mode:
; 只有 cpuid 指令的拓展功能号大于 0x80000000 时,
; 才有可能支持 64 位的长模式
mov eax, 0x80000000
cpuid
cmp eax, 0x80000001
setnb al
jb support_long_mode_done
mov eax, 0x80000001
cpuid
bt edx, 29
setc al
support_long_mode_done:
movzx eax, al
ret
; 不支持长模式则踏步
no_support:
jmp $
; 读取软盘
[SECTION .s16lib]
[BITS 16]
Func_ReadOneSector:
push bp
mov bp, sp
sub esp, 2
mov byte [bp - 2], cl
push bx
mov bl, [BPB_SecPerTrk]
div bl
inc ah
mov cl, ah
mov dh, al
shr al, 1
mov ch, al
and dh, 1
pop bx
mov dl, [BS_DrvNum]
Label_Go_On_Reading:
mov ah, 2
mov al, byte [bp - 2]
int 13h
jc Label_Go_On_Reading
add esp, 2
pop bp
ret
; 解析 FAT12 文件系统
Func_GetFATEntry:
push es
push bx
push ax
mov ax, 00
mov es, ax
pop ax
mov byte [Odd], 0
mov bx, 3
mul bx
mov bx, 2
div bx
cmp dx, 0
jz Label_Even
mov byte [Odd], 1
Label_Even:
xor dx, dx
mov bx, [BPB_BytesPerSec]
div bx
push dx
mov bx, 8000h
add ax, SectorNumOfFAT1Start
mov cl, 2
call Func_ReadOneSector
pop dx
add bx, dx
mov ax, [es:bx]
cmp byte [Odd], 1
jnz Label_Even_2
shr ax, 4
Label_Even_2:
and ax, 0FFFh
pop bx
pop es
ret
; 显示 16 进制数
Label_DispAL:
push ecx
push edx
push edi
mov edi, [DisplayPosition]
mov ah, 0Fh
mov dl, al
shr al, 4
mov ecx, 2
.begin:
and al, 0Fh
cmp al, 9
ja .1
add al, '0'
jmp .2
.1:
sub al, 0Ah
add al, 'A'
.2:
mov [gs:edi], ax
add edi, 2
mov al, dl
loop .begin
mov [DisplayPosition], edi
pop edi
pop edx
pop ecx
ret
; 为 IDT 开辟内存空间
IDT:
times 0x50 dq 0
IDT_END:
IDT_POINTER:
dw IDT_END - IDT - 1
dd IDT
;======= tmp variable
RootDirSizeForLoop dw RootDirSectors
SectorNo dw 0
Odd db 0
OffsetOfKernelFileCount dd OffsetOfKernelFile
DisplayPosition dd 0
;======= display messages
StartLoaderMessage: db "Start Loader"
NoLoaderMessage: db "ERROR:No KERNEL Found"
KernelFileName: db "KERNEL BIN",0
StartGetMemStructMessage: db "Start Get Memory Struct."
GetMemStructErrMessage: db "Get Memory Struct ERROR"
GetMemStructOKMessage: db "Get Memory Struct SUCCESSFUL!"
StartGetSVGAVBEInfoMessage: db "Start Get SVGA VBE Info"
GetSVGAVBEInfoErrMessage: db "Get SVGA VBE Info ERROR"
GetSVGAVBEInfoOKMessage: db "Get SVGA VBE Info SUCCESSFUL!"
StartGetSVGAModeInfoMessage: db "Start Get SVGA Mode Info"
GetSVGAModeInfoErrMessage: db "Get SVGA Mode Info ERROR"
GetSVGAModeInfoOKMessage: db "Get SVGA Mode Info SUCCESSFUL!"
| 16.374702
| 67
| 0.601734
|
716f76f3b9a3d573d39faaaa0072fa620cba4cd6
| 1,056
|
asm
|
Assembly
|
data/tilesets/door_tile_ids.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/tilesets/door_tile_ids.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/tilesets/door_tile_ids.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
DoorTileIDPointers:
dbw OVERWORLD, .OverworldDoorTileIDs
dbw FOREST, .ForestDoorTileIDs
dbw MART, .MartDoorTileIDs
dbw HOUSE, .HouseDoorTileIDs
dbw FOREST_GATE, .TilesetMuseumDoorTileIDs
dbw MUSEUM, .TilesetMuseumDoorTileIDs
dbw GATE, .TilesetMuseumDoorTileIDs
dbw SHIP, .ShipDoorTileIDs
dbw LOBBY, .LobbyDoorTileIDs
dbw MANSION, .MansionDoorTileIDs
dbw LAB, .LabDoorTileIDs
dbw FACILITY, .FacilityDoorTileIDs
dbw PLATEAU, .PlateauDoorTileIDs
db -1 ; end
door_tiles: MACRO
IF _NARG
db \# ; all args
ENDC
db 0 ; end
ENDM
.OverworldDoorTileIDs:
door_tiles $1B, $58
.ForestDoorTileIDs:
door_tiles $3a
.MartDoorTileIDs:
door_tiles $5e
.HouseDoorTileIDs:
door_tiles $54
.TilesetMuseumDoorTileIDs:
door_tiles $3b
.ShipDoorTileIDs:
door_tiles $1e
.LobbyDoorTileIDs:
door_tiles $1c, $38, $1a
.MansionDoorTileIDs:
door_tiles $1a, $1c, $53
.LabDoorTileIDs:
door_tiles $34
.FacilityDoorTileIDs:
door_tiles $43, $58, $1b
.PlateauDoorTileIDs:
door_tiles $3b, $1b
| 18.857143
| 43
| 0.726326
|
67d921ca056ec84dc3aad468c6dec3e12357abe0
| 6,902
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_322.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_322.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_322.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x10b15, %rbx
inc %r11
movl $0x61626364, (%rbx)
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x65c, %r11
add $2665, %r8
movw $0x6162, (%r11)
nop
nop
xor %r11, %r11
lea addresses_WC_ht+0x124b5, %rsi
lea addresses_WT_ht+0x19715, %rdi
nop
nop
nop
cmp $35646, %r11
mov $91, %rcx
rep movsq
nop
nop
nop
nop
add $28932, %rdi
lea addresses_normal_ht+0x18b15, %rsi
lea addresses_D_ht+0x15125, %rdi
clflush (%rdi)
nop
add $47035, %r8
mov $81, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $41915, %rbx
lea addresses_A_ht+0x182cd, %rbp
and $10939, %r8
movl $0x61626364, (%rbp)
nop
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x16295, %rdi
nop
dec %rsi
movb (%rdi), %r11b
nop
nop
nop
nop
and $49730, %rbp
lea addresses_normal_ht+0xe865, %rsi
lea addresses_WT_ht+0x17b15, %rdi
sub %rbp, %rbp
mov $50, %rcx
rep movsw
nop
nop
nop
nop
sub $35109, %rsi
lea addresses_WT_ht+0x1a415, %r8
nop
nop
nop
add %rax, %rax
movw $0x6162, (%r8)
nop
nop
nop
nop
nop
dec %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
// Load
lea addresses_US+0xab15, %r9
add $21127, %r14
movb (%r9), %r8b
nop
nop
nop
nop
add %r8, %r8
// Store
lea addresses_RW+0xe155, %rcx
clflush (%rcx)
nop
nop
nop
xor %rdi, %rdi
movw $0x5152, (%rcx)
cmp %r8, %r8
// Store
lea addresses_normal+0x1e49d, %r13
nop
nop
nop
nop
nop
and %rbp, %rbp
mov $0x5152535455565758, %r8
movq %r8, (%r13)
nop
nop
and %rcx, %rcx
// Load
lea addresses_D+0x181d0, %r13
clflush (%r13)
nop
nop
nop
nop
nop
sub %rdi, %rdi
mov (%r13), %r8d
nop
add $15788, %r9
// Faulty Load
lea addresses_normal+0xe315, %rcx
nop
nop
nop
nop
dec %rdi
movb (%rcx), %r14b
lea oracles, %rdi
and $0xff, %r14
shlq $12, %r14
mov (%rdi,%r14,1), %r14
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 11}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_D', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 2}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 7}}
{'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 7}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 34.858586
| 2,999
| 0.655897
|
db383ecc04af4869479359df2e7f136f1deb26e1
| 4,766
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_210.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_210.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_210.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rsi
lea addresses_UC_ht+0x8aa6, %rcx
clflush (%rcx)
nop
nop
xor %rax, %rax
mov $0x6162636465666768, %r8
movq %r8, %xmm7
vmovups %ymm7, (%rcx)
xor $3185, %r13
lea addresses_normal_ht+0x26a6, %r14
nop
nop
nop
nop
nop
sub $60468, %rsi
mov (%r14), %r9d
dec %rsi
lea addresses_A_ht+0x5637, %rcx
nop
nop
nop
nop
nop
lfence
mov (%rcx), %r8
nop
nop
and %rax, %rax
pop %rsi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %rax
push %rbx
push %rcx
push %rsi
// Load
lea addresses_UC+0x1e32c, %rsi
nop
nop
nop
add %rax, %rax
mov (%rsi), %r12w
cmp $61087, %rsi
// Faulty Load
lea addresses_US+0x1ea6, %r13
cmp %r12, %r12
mov (%r13), %si
lea oracles, %rcx
and $0xff, %rsi
shlq $12, %rsi
mov (%rcx,%rsi,1), %rsi
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 49.645833
| 2,999
| 0.658204
|
c485ee5a7ffcd45ecae09ab4fb78b8e24f2d5f95
| 4,424
|
asm
|
Assembly
|
base_c/src/atomicfunc_32.asm
|
bufferoverflow/embb
|
1ff7f601d8e903355e83d766029a3e6164f31750
|
[
"BSD-2-Clause"
] | 1
|
2020-08-17T11:06:50.000Z
|
2020-08-17T11:06:50.000Z
|
base_c/src/atomicfunc_32.asm
|
bufferoverflow/embb
|
1ff7f601d8e903355e83d766029a3e6164f31750
|
[
"BSD-2-Clause"
] | null | null | null |
base_c/src/atomicfunc_32.asm
|
bufferoverflow/embb
|
1ff7f601d8e903355e83d766029a3e6164f31750
|
[
"BSD-2-Clause"
] | null | null | null |
.686p
.xmm
.model flat
_TEXT SEGMENT
_abort proto
define_not_implemented macro name
public name
name proc
call _abort
ret
name endp
endm
; ---- and_assign -------------------------------------------------------------
define_and_assign macro name, size, value
public name
name proc
lock and size ptr [ecx], value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_and_assign_8_asm@8
define_and_assign @embb_internal__atomic_and_assign_4_asm@8, dword, edx
define_and_assign @embb_internal__atomic_and_assign_2_asm@8, word, dx
define_and_assign @embb_internal__atomic_and_assign_1_asm@8, byte, dl
; ---- compare_and_swap -------------------------------------------------------
define_compare_and_swap macro name, size, value, desired
public name
name proc
push edx
mov desired, size ptr [edx]
mov value, size ptr [esp+8]
lock cmpxchg size ptr [ecx], value
pop edx
mov size ptr [edx], desired
setz al
movzx eax, al
ret 4
name endp
endm
define_not_implemented @embb_internal__atomic_compare_and_swap_8_asm@12
define_compare_and_swap @embb_internal__atomic_compare_and_swap_4_asm@12, dword, edx, eax
define_compare_and_swap @embb_internal__atomic_compare_and_swap_2_asm@12, word, dx, ax
define_compare_and_swap @embb_internal__atomic_compare_and_swap_1_asm@12, byte, dl, al
; ---- fetch_and_add ----------------------------------------------------------
define_fetch_and_add macro name, size, value, return
public name
name proc
lock xadd size ptr [ecx], value
mov return, value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_fetch_and_add_8_asm@8
define_fetch_and_add @embb_internal__atomic_fetch_and_add_4_asm@8, dword, edx, eax
define_fetch_and_add @embb_internal__atomic_fetch_and_add_2_asm@8, word, dx, ax
define_fetch_and_add @embb_internal__atomic_fetch_and_add_1_asm@8, byte, dl, al
; ---- load -------------------------------------------------------------------
define_load macro name, size, return
public name
name proc
mov return, size ptr [ecx]
ret
name endp
endm
define_not_implemented @embb_internal__atomic_load_8_asm@4
define_load @embb_internal__atomic_load_4_asm@4, dword, eax
define_load @embb_internal__atomic_load_2_asm@4, word, ax
define_load @embb_internal__atomic_load_1_asm@4, byte, al
; ---- memory_barrier ---------------------------------------------------------
define_memory_barrier macro name
public name
name proc
mfence
ret
name endp
endm
define_memory_barrier @embb_internal__atomic_memory_barrier_asm@0
; ---- or_assign --------------------------------------------------------------
define_or_assign macro name, size, value
public name
name proc
lock or size ptr [ecx], value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_or_assign_8_asm@8
define_or_assign @embb_internal__atomic_or_assign_4_asm@8, dword, edx
define_or_assign @embb_internal__atomic_or_assign_2_asm@8, word, dx
define_or_assign @embb_internal__atomic_or_assign_1_asm@8, byte, dl
; ---- store ------------------------------------------------------------------
define_store macro name, size, value
public name
name proc
mov size ptr [ecx], value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_store_8_asm@8
define_store @embb_internal__atomic_store_4_asm@8, dword, edx
define_store @embb_internal__atomic_store_2_asm@8, word, dx
define_store @embb_internal__atomic_store_1_asm@8, byte, dl
; ---- swap -------------------------------------------------------------------
define_swap macro name, size, value, return
public name
name proc
lock xchg size ptr [ecx], value
mov return, value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_swap_8_asm@8
define_swap @embb_internal__atomic_swap_4_asm@8, dword, edx, eax
define_swap @embb_internal__atomic_swap_2_asm@8, word, dx, ax
define_swap @embb_internal__atomic_swap_1_asm@8, byte, dl, al
; ---- xor_assign -------------------------------------------------------------
define_xor_assign macro name, size, value
public name
name proc
lock xor size ptr [ecx], value
ret
name endp
endm
define_not_implemented @embb_internal__atomic_xor_assign_8_asm@8
define_xor_assign @embb_internal__atomic_xor_assign_4_asm@8, dword, edx
define_xor_assign @embb_internal__atomic_xor_assign_2_asm@8, word, dx
define_xor_assign @embb_internal__atomic_xor_assign_1_asm@8, byte, dl
_TEXT ENDS
END
| 27.478261
| 89
| 0.709991
|
ab3ad857f008371fd459890d7580efa20f977e56
| 1,615
|
asm
|
Assembly
|
programs/oeis/147/A147874.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/147/A147874.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/147/A147874.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A147874: a(n) = (5*n-7)*(n-1).
; 0,3,16,39,72,115,168,231,304,387,480,583,696,819,952,1095,1248,1411,1584,1767,1960,2163,2376,2599,2832,3075,3328,3591,3864,4147,4440,4743,5056,5379,5712,6055,6408,6771,7144,7527,7920,8323,8736,9159,9592,10035,10488,10951,11424,11907,12400,12903,13416,13939,14472,15015,15568,16131,16704,17287,17880,18483,19096,19719,20352,20995,21648,22311,22984,23667,24360,25063,25776,26499,27232,27975,28728,29491,30264,31047,31840,32643,33456,34279,35112,35955,36808,37671,38544,39427,40320,41223,42136,43059,43992,44935,45888,46851,47824,48807,49800,50803,51816,52839,53872,54915,55968,57031,58104,59187,60280,61383,62496,63619,64752,65895,67048,68211,69384,70567,71760,72963,74176,75399,76632,77875,79128,80391,81664,82947,84240,85543,86856,88179,89512,90855,92208,93571,94944,96327,97720,99123,100536,101959,103392,104835,106288,107751,109224,110707,112200,113703,115216,116739,118272,119815,121368,122931,124504,126087,127680,129283,130896,132519,134152,135795,137448,139111,140784,142467,144160,145863,147576,149299,151032,152775,154528,156291,158064,159847,161640,163443,165256,167079,168912,170755,172608,174471,176344,178227,180120,182023,183936,185859,187792,189735,191688,193651,195624,197607,199600,201603,203616,205639,207672,209715,211768,213831,215904,217987,220080,222183,224296,226419,228552,230695,232848,235011,237184,239367,241560,243763,245976,248199,250432,252675,254928,257191,259464,261747,264040,266343,268656,270979,273312,275655,278008,280371,282744,285127,287520,289923,292336,294759,297192,299635,302088,304551,307024,309507
mov $1,$0
mul $0,5
sub $0,2
mul $1,$0
| 201.875
| 1,542
| 0.820433
|
b8e6397b45beff28ed6153699d5ce8ff34073ed2
| 1,252
|
asm
|
Assembly
|
MASM_Practice/51_ASCII_Uncompressed_Decimal_Operation.asm
|
TuringGu/RELearning
|
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
|
[
"MIT"
] | null | null | null |
MASM_Practice/51_ASCII_Uncompressed_Decimal_Operation.asm
|
TuringGu/RELearning
|
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
|
[
"MIT"
] | null | null | null |
MASM_Practice/51_ASCII_Uncompressed_Decimal_Operation.asm
|
TuringGu/RELearning
|
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
|
[
"MIT"
] | null | null | null |
.586
.MODEL flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
include msvcrt.inc
includelib user32.lib
includelib kernel32.lib
includelib msvcrt.lib
.data
val01 byte '8'
val02 byte '9'
.code
main PROC
;AAA
mov ah,0
mov al,'8' ;al = 00111000
add al,'2' ;al = 00111000 + 00110010 = 01101010 = 6A
aaa ;ax = 0100h = 00000001 00000000
or ax,3030h ;transfer to ascii ax = 3130h = 00110001 00110000
;AAS
mov ah,0
mov al,val01
sub al,val02
aas
pushf ;store cf
or al,30h
popf
;AAM
xor eax,eax
xor ebx,ebx
mov bl,5
mov al,6
mul bl
aam ;ax=0300h=00000011 00000000
;AAD
xor eax,eax
mov ax,0307h ;ax = 00000011 00000111
aad ;al = 25h = 00100101
mov bl,5
div bl ;ax = 00000010 00000111
;Exit
push 0
call ExitProcess
add esp,4
main ENDP
END main
;ASCII + - * / adjust
;AAA AAS AAM AAD
;BCD: Binary Code Decimal
;decimal ASCII Compress BCD Uncompress BCD
;0 00110000 0000 00000000
;1 00110001 0001 00000001
;2 00110010 0010 00000010
;3 00110101 0101 00000101
;......
;5 00111001 1001 00001001
;6 00111010 1010 00001010
| 17.885714
| 64
| 0.626997
|
2bf30ca42adad71e4d002a83f7140ac9a704c2c9
| 32,619
|
asm
|
Assembly
|
Examples/Lib32/Irvine32.asm
|
satadriver/LiunuxOS
|
693174ac2b3e503d72782fc7a14f18c8a4f2756c
|
[
"Apache-2.0"
] | 1
|
2020-07-19T05:38:42.000Z
|
2020-07-19T05:38:42.000Z
|
irvine/Irvine32.asm
|
EthanRao/COMP-3350
|
4be0b83a6bb5b2fd9264cbdfb9d6ec9b4e4c6110
|
[
"MIT"
] | null | null | null |
irvine/Irvine32.asm
|
EthanRao/COMP-3350
|
4be0b83a6bb5b2fd9264cbdfb9d6ec9b4e4c6110
|
[
"MIT"
] | null | null | null |
Title Irvine32 Link Library Source Code (Irvine32.asm)
Comment @
This library was created exlusively for use with the book,
"Assembly Language for Intel-Based Computers",
by Kip R. Irvine, 2002.
Copyright 2002, Prentice-Hall Incorporated. No part of this file may be
reproduced, in any form or by any other means, without permission in writing
from the publisher.
Updates to this file will be posted at the book's site:
www.nuvisionmiami.com/books/asm
Acknowledgements:
------------------------------
Most of the code in this library was written by Kip Irvine.
Special thanks to Gerald Cahill for his many insights, suggestions, and bug fixes!
Alphabetical Listing of Procedures
----------------------------------
(Unless otherwise marked, all procedures are documented in Chapter 5.)
ClrScr
Crlf
Delay
DumpMem
DumpRegs
GetCommandTail
GetDateTime Chapter 11
GetMseconds
Gotoxy
IsDigit
Random32
Randomize
RandomRange
ReadChar
ReadHex
ReadInt
ReadString
SetTextColor
Str_compare Chapter 9
Str_copy Chapter 9
Str_length Chapter 9
Str_trim Chapter 9
Str_ucase Chapter 9
WaitMsg
WriteBin
WriteChar
WriteDec
WriteHex
WriteInt
WriteString
Implementation Notes:
--------------------
1. The Windows Sleep function changes ECX. Remember to save and restore all
registers before calling other windows functions.
2. The WriteConsole API function will not work if the Direction flag is set.
@
INCLUDE Irvine32.inc ; function prototypes for this library
INCLUDE Macros.inc ; macro defintions
;-------------------------------------
ShowFlag macro flagName,shiftCount
LOCAL flagStr, flagVal, L1
;
; Display a single CPU flag value
; Directly accesses the eflags variable in Irvine16.asm/Irvine32.asm
; (This macro cannot be placed in Macros.inc)
;-------------------------------------
.data
flagStr DB " &flagName="
flagVal DB ?,0
.code
push eax
push edx
mov eax,eflags ; retrieve the flags
mov flagVal,'1'
shr eax,shiftCount ; shift into carry flag
jc L1
mov flagVal,'0'
L1:
mov edx,offset flagStr ; display flag name and value
call WriteString
pop edx
pop eax
endm
;---------------------------------------------------
ShowRegister MACRO regName, regValue
LOCAL tempStr
;
; Display a register's name and contents.
;---------------------------------------------------
.data
tempStr BYTE " ®Name=",0
.code
push eax
; Display the register name
push edx
mov edx,OFFSET tempStr
call WriteString
pop edx
; Display the register contents
mov eax,regValue
call WriteHex
pop eax
ENDM
;********************* SHARED DATA AREA **********************
.data ; initialized data
InitFlag DB 0 ; initialization flag
.data? ; uninitialized data
consoleInHandle dd ? ; handle to standard input device
consoleOutHandle dd ? ; handle to standard output device
bytesWritten dd ? ; number of bytes written
eflags DWORD ?
buffer DB 512 dup(?)
bufferMax = ($ - buffer)
bytesRead DD ?
sysTime SYSTEMTIME <> ; system time structure
.code
;---------------------------------------------------
; Check to see if the console handles have been initialized
CheckInit macro
Local exit
cmp InitFlag,0
jne exit
call Initialize
exit:
endm
;--------------------------------------------------
ClrScr proc
;
; Clear the screen by writing blanks to all positions
; Receives: nothing
; Returns: nothing
; Last update: 7/11/01
;--------------------------------------------------------
.data
blanks DB (80 * 25) DUP(' ')
blankSize = ($ - blanks)
upperLeft COORD <0,0>
.code
pushad
CheckInit
INVOKE SetConsoleCursorPosition, consoleOutHandle, upperLeft
INVOKE WriteConsole,
consoleOutHandle, ; console output handle
offset blanks, ; string pointer
blankSize, ; string length
offset bytesWritten, ; returns number of bytes written
0
INVOKE SetConsoleCursorPosition, consoleOutHandle, upperLeft
popad
ret
ClrScr endp
;-----------------------------------------------------
Crlf proc
;
; Writes a carriage return / linefeed
; sequence (0Dh,0Ah) to standard output.
;-----------------------------------------------------
CheckInit
NewLine ; invoke a macro
ret
Crlf endp
;------------------------------------------------------
Delay proc
;
; THIS FUNCTION IS NOT IN THE IRVINE16 LIBRARY
; Delay (pause) the current process for a given number
; of milliseconds.
; Receives: EAX = number of milliseconds
; Returns: nothing
; Last update: 7/11/01
;------------------------------------------------------
pushad
INVOKE Sleep,eax
popad
ret
Delay endp
;---------------------------------------------------
DumpMem proc
LOCAL unitsize:dword, byteCount:word
;
; Writes a range of memory to standard output
; in hexadecimal.
; Receives: ESI = starting offset, ECX = number of units,
; EBX = unit size (1=byte, 2=word, or 4=doubleword)
; Returns: nothing
; Last update: 7/11/01
;---------------------------------------------------
.data
oneSpace DB ' ',0
dumpPrompt DB 13,10,"Dump of offset ",0
dashLine DB "-------------------------------",13,10,0
.code
pushad
mov edx,offset dumpPrompt
call WriteString
mov eax,esi ; get memory offset to dump
call WriteHex
NewLine
mov edx,offset dashLine
call WriteString
mov byteCount,0
mov unitsize,ebx
cmp ebx,4 ; select output size
je L1
cmp ebx,2
je L2
jmp L3
; 32-bit doubleword output
L1:
mov eax,[esi]
call WriteHex
WriteSpace 2
add esi,ebx
Loop L1
jmp L4
; 16-bit word output
L2:
mov ax,[esi] ; get a word from memory
ror ax,8 ; display high byte
call HexByte
ror ax,8 ; display low byte
call HexByte
WriteSpace 1 ; display 1 space
add esi,unitsize ; point to next word
Loop L2
jmp L4
; 8-bit byte output, 16 bytes per line
L3:
mov al,[esi]
call HexByte
inc byteCount
WriteSpace 1
inc esi
; if( byteCount mod 16 == 0 ) call Crlf
mov dx,0
mov ax,byteCount
mov bx,16
div bx
cmp dx,0
jne L3B
NewLine
L3B:
Loop L3
jmp L4
L4:
NewLine
popad
ret
DumpMem endp
;---------------------------------------------------
DumpRegs PROC
;
; Displays EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP in
; hexadecimal. Also displays the Zero, Sign, Carry, and
; Overflow flags.
; Receives: nothing.
; Returns: nothing.
; Last update: 8/23/01
;
; Warning: do not create any local variables or stack
; parameters, because they will alter the EBP register.
;---------------------------------------------------
.data
saveIP DWORD ?
saveESP DWORD ?
.code
pop saveIP ; get current EIP
mov saveESP,esp ; save ESP's value at entry
push saveIP ; replace it on stack
push eax ; save EAX (restore on exit)
pushfd ; push extended flags
pushfd ; push flags again, and
pop eflags ; save them in a variable
NewLine
ShowRegister EAX,EAX
ShowRegister EBX,EBX
ShowRegister ECX,ECX
ShowRegister EDX,EDX
NewLine
ShowRegister ESI,ESI
ShowRegister EDI,EDI
ShowRegister EBP,EBP
mov eax,saveESP
ShowRegister ESP,EAX
NewLine
mov eax,saveIP
ShowRegister EIP,EAX
mov eax,eflags
ShowRegister EFL,EAX
; Show the flags (using the eflags variable)
ShowFlag CF,1
ShowFlag SF,8
ShowFlag ZF,7
ShowFlag OF,12
NewLine
NewLine
popfd
pop eax
ret
DumpRegs endp
;------------------------------------------------------------
GetCommandTail PROC
;
; Copies the program command line into a buffer.
; Receives: EDX points to a buffer that will receive the data.
; Returns: nothing
;-------------------------------------------------------------
pushad
INVOKE GetCommandLine ; Win32 API function
; returns pointer in EAX
; Copy the command-line string to the array
; pointed to by EDX.
mov esi,eax
L1: mov al,[esi]
mov [edx],al
cmp al,0 ; null byte found?
je L2 ; exit loop
inc esi
inc edx
jmp L1
L2: popad
ret
GetCommandTail ENDP
;--------------------------------------------------
GetDateTime PROC,
pStartTime:PTR QWORD
LOCAL flTime:FILETIME
;
; Gets and saves the current local date/time as a
; 64-bit integer (in the Win32 FILETIME format).
;--------------------------------------------------
; Get the system local time
INVOKE GetLocalTime,
ADDR sysTime
; Convert the SYSTEMTIME to FILETIME
INVOKE SystemTimeToFileTime,
ADDR sysTime,
ADDR flTime
; Copy the FILETIME to a Quadword
mov esi,pStartTime
mov eax,flTime.loDateTime
mov DWORD PTR [esi],eax
mov eax,flTime.hiDateTime
mov DWORD PTR [esi+4],eax
ret
GetDateTime ENDP
;---------------------------------------------------
GetMseconds PROC USES ebx
LOCAL hours:DWORD, min:DWORD, sec:DWORD
;
; Calculate milliseconds past midnight.
; Receives: nothing
; Returns: EAX = ((hours * 3600) + (minutes * 60) + seconds) * 1000 + milliseconds
;---------------------------------------------------
INVOKE GetLocalTime,offset sysTime
; convert hours to seconds
movzx eax,sysTime.wHour
mov ebx,3600
mul ebx
mov hours,eax
; convert minutes to seconds
movzx eax,sysTime.wMinute
mov ebx,60
mul ebx
mov min,eax
; add seconds to total seconds
movzx eax,sysTime.wSecond
mov sec,eax
; multiply seconds by 1000
mov eax,hours
add eax,min
add eax,sec
mov ebx,1000
mul ebx
; add milliseconds to total
movzx ebx,sysTime.wMilliseconds
add eax,ebx
ret
GetMseconds ENDP
;--------------------------------------------------
Gotoxy proc
;
; Locate the cursor
; Receives: DH = screen row, DL = screen column
; Last update: 7/11/01
;--------------------------------------------------------
.data
_cursorPosition COORD <>
.code
pushad
CheckInit
movzx ax,dl
mov _cursorPosition.X, ax
movzx ax,dh
mov _cursorPosition.Y, ax
INVOKE SetConsoleCursorPosition, consoleOutHandle, _cursorPosition
popad
ret
Gotoxy endp
;-----------------------------------------------
Isdigit PROC
;
; Determines whether the character in AL is a
; valid decimal digit.
; Receives: AL = character
; Returns: ZF=1 if AL contains a valid decimal
; digit; otherwise, ZF=0.
;-----------------------------------------------
cmp al,'0'
jb ID1
cmp al,'9'
ja ID1
test ax,0 ; set ZF = 1
ID1: ret
Isdigit ENDP
;--------------------------------------------------------------
RandomRange proc
;
; Returns an unsigned pseudo-random 32-bit integer
; in EAX, between 0 and n-1. Input parameter:
; EAX = n.
; Last update: 7/11/01
;--------------------------------------------------------------
push bp
mov bp,sp
push ebx
push edx
mov ebx,eax ; maximum value
call Random32 ; eax = random number
mov edx,0
div ebx ; divide by max value
mov eax,edx ; return the remainder
pop edx
pop ebx
pop bp
ret
RandomRange endp
;--------------------------------------------------------------
Random32 proc
;
; Returns an unsigned pseudo-random 32-bit integer
; in EAX,in the range 0 - FFFFFFFFh.
; Last update: 7/11/01
;--------------------------------------------------------------
.data
seed dd 1
.code
push edx
mov eax, 343FDh
imul seed
add eax, 269EC3h
mov seed, eax ; save the seed for the next call
ror eax,8 ; rotate out the lowest digit (10/22/00)
pop edx
ret
Random32 endp
;--------------------------------------------------------
Randomize proc
;
; Re-seeds the random number generator with the current time
; in seconds.
; Receives: nothing
; Returns: nothing
; Last update: 7/11/01
;--------------------------------------------------------
push eax
INVOKE GetSystemTime,offset sysTime
movzx eax,sysTime.wMilliseconds
mov seed,eax
pop eax
ret
Randomize endp
;---------------------------------------------------------
ReadChar proc
;
; Reads one character from standard input and echoes
; on the screen. Waits for the character if none is
; currently in the input buffer.
; Receives: nothing
; Returns: AL = ASCII code
; Last update: 9/24/01
;----------------------------------------------------------
.data
saveFlags DWORD ?
.code
pushad
CheckInit
; Get & save the current console input mode flags:
invoke GetConsoleMode,consoleInHandle,offset saveFlags
; Clear all flags
invoke SetConsoleMode,consoleInHandle,0
; Read a single character from input buffer:
INVOKE ReadConsole,
consoleInHandle, ; console input handle
ADDR buffer, ; pointer to buffer
1, ; max characters to read
ADDR bytesRead,0
; Restore the previous flags state:
invoke SetConsoleMode,consoleInHandle,saveFlags
popad
mov al,buffer ; return the input character
ret
ReadChar endp
;--------------------------------------------------------
ReadHex PROC
;
; Reads a 32-bit hexadecimal integer from standard input,
; stopping when the Enter key is pressed.
; Receives: nothing
; Returns: EAX = binary integer value
; Remarks: No error checking performed for bad digits
; or excess digits.
; Last update: 11/7/01
;--------------------------------------------------------
.data
HMAX_DIGITS = 128
Hinputarea BYTE HMAX_DIGITS dup(0),0
xbtable BYTE 0,1,2,3,4,5,6,7,8,9,7 DUP(0FFh),10,11,12,13,14,15
numVal DWORD ?
charVal BYTE ?
.code
push ebx
push ecx
push edx
push esi
mov edx,OFFSET Hinputarea
mov esi,edx ; save in ESI also
mov ecx,HMAX_DIGITS
call ReadString ; input the string
mov ecx,eax ; save length in ECX
; Start to convert the number.
B4: mov numVal,0 ; clear accumulator
mov ebx,OFFSET xbtable ; translate table
; Repeat loop for each digit.
B5: mov al,[esi] ; get character from buffer
cmp al,'F' ; lowercase letter?
jbe B6 ; no
and al,11011111b ; yes: convert to uppercase
B6:
sub al,30h ; adjust for table
xlat ; translate to binary
mov charVal,al
mov eax,16 ; numVal *= 16
mul numVal
mov numVal,eax
movzx eax,charVal ; numVal += charVal
add numVal,eax
inc esi ; point to next digit
loop B5 ; repeat, decrement counter
mov eax,numVal ; return binary result
pop esi
pop edx
pop ecx
pop ebx
ret
ReadHex ENDP
;--------------------------------------------------------
ReadInt PROC uses ebx ecx edx esi
LOCAL Lsign:DWORD, saveDigit:DWORD
;
; Reads a 32-bit signed decimal integer from standard
; input, stopping when the Enter key is pressed.
; All valid digits occurring before a non-numeric character
; are converted to the integer value. Leading spaces are
; ignored, and an optional leading + or - sign is permitted.
; Receives: nothing
; Returns: If CF=0, the integer is valid, and EAX = binary value.
; If CF=1, the integer is invalid and EAX = 0.
;
; Credits: Thanks to Courtney Amor, a student at the UCLA Mathematics
; department, for pointing out improvements that have been
; implemented in this version.
; Last update: 1/27/02
;--------------------------------------------------------
.data
LMAX_DIGITS = 80
Linputarea BYTE LMAX_DIGITS dup(0),0
overflow_msgL BYTE " <32-bit integer overflow>",0
invalid_msgL BYTE " <invalid integer>",0
.code
; Input a string of digits using ReadString.
mov edx,offset Linputarea
mov esi,edx ; save offset in SI
mov ecx,LMAX_DIGITS
call ReadString
mov ecx,eax ; save length in CX
mov Lsign,1 ; assume number is positive
cmp ecx,0 ; greater than zero?
jne L1 ; yes: continue
mov eax,0 ; no: set return value
jmp L10 ; and exit
; Skip over any leading spaces.
L1: mov al,[esi] ; get a character from buffer
cmp al,' ' ; space character found?
jne L2 ; no: check for a sign
inc esi ; yes: point to next char
loop L1
jcxz L8 ; quit if all spaces
; Check for a leading sign.
L2: cmp al,'-' ; minus sign found?
jne L3 ; no: look for plus sign
mov Lsign,-1 ; yes: sign is negative
dec ecx ; subtract from counter
inc esi ; point to next char
jmp L4
L3: cmp al,'+' ; plus sign found?
jne L4 ; no: must be a digit
inc esi ; yes: skip over the sign
dec ecx ; subtract from counter
; Test the first digit, and exit if it is nonnumeric.
L3A:mov al,[esi] ; get first character
call IsDigit ; is it a digit?
jnz L7A ; no: show error message
; Start to convert the number.
L4: mov eax,0 ; clear accumulator
mov ebx,10 ; EBX is the divisor
; Repeat loop for each digit.
L5: mov dl,[esi] ; get character from buffer
cmp dl,'0' ; character < '0'?
jb L9
cmp dl,'9' ; character > '9'?
ja L9
and edx,0Fh ; no: convert to binary
mov saveDigit,edx
imul ebx ; EDX:EAX = EAX * EBX
mov edx,saveDigit
jo L6 ; quit if overflow
add eax,edx ; add new digit to AX
jo L6 ; quit if overflow
inc esi ; point to next digit
jmp L5 ; get next digit
; Overflow has occured, unlesss EAX = 80000000h
; and the sign is negative:
L6: cmp eax,80000000h
jne L7
cmp Lsign,-1
jne L7 ; overflow occurred
jmp L9 ; the integer is valid
; Choose "integer overflow" messsage.
L7: mov edx,OFFSET overflow_msgL
jmp L8
; Choose "invalid integer" message.
L7A:
mov edx,OFFSET invalid_msgL
; Display the error message pointed to by EDX.
L8: call WriteString
call Crlf
stc ; set Carry flag
mov eax,0 ; set return value to zero
jmp L10 ; and exit
L9: imul Lsign ; EAX = EAX * sign
L10:ret
ReadInt ENDP
;--------------------------------------------------------
ReadString proc
;
; Reads a string of up to 128 characters from the console
; past the end of line, and places the characters in a buffer.
; Strips off CR/LF from the input buffer.
; Receives: EDX points to the input buffer,
; ECX contains the maximum string length
; Returns: EAX = size of the input string.
; Comments: Stops when Enter key (0Dh) is pressed. Because ReadConsole
; places 0Dh,0Ah in the buffer, we have to use a local variable
; to overwriting the caller's memory. After calling ReadConsole,
; we copy the characters back to the caller's buffer.
; Last update: 8/14/01
;--------------------------------------------------------
.data
READSTRING_BUFSIZE = 128
InputTooLong BYTE "ReadString error: Cannot input string longer than 128 bytes.",0Dh,0Ah,0
localBuf BYTE (READSTRING_BUFSIZE + 2) DUP(?)
.code
pushad
CheckInit
cmp ecx,READSTRING_BUFSIZE
ja L3Err ; InputTooLong
add ecx,2 ; include CR/LF in the input
push edx
INVOKE ReadConsole,
consoleInHandle, ; console input handle
OFFSET localBuf, ; pointer to local buffer
ecx, ; max count
OFFSET bytesRead,
0
pop edx
sub bytesRead,2 ; adjust character count
jz L5 ; skip move if zero chars input
L1:
; Copy from the local buffer to the caller's buffer.
mov ecx,bytesRead
mov esi,OFFSET localBuf
L2:
mov al,[esi]
mov [edx],al
inc esi
inc edx
Loop L2
L5: mov BYTE PTR [edx],0 ; add NULL byte
jmp L4
L3Err:
mov edx,OFFSET InputTooLong
call WriteString
L4:
popad
mov eax,bytesRead
ret
ReadString endp
;------------------------------------------------------------
SetTextColor PROC
;
; Change the color of all subsequent text output.
; Receives: EAX = attribute. Bits 0-3 are the foreground
; color, and bits 4-7 are the background color.
; Returns: nothing
; Last update: 1/18/02
;------------------------------------------------------------
.data
scrAttrib DWORD ?
.code
pushad
mov scrAttrib,eax ; lowest byte contains the attribute
; Get the console standard output handle:
INVOKE GetStdHandle, STD_OUTPUT_HANDLE
mov [consoleOutHandle],eax
; Set the text color (both background and foreground)
; to white on blue
INVOKE SetConsoleTextAttribute, consoleOutHandle, scrAttrib
popad
ret
SetTextColor endp
;----------------------------------------------------------
Str_compare PROC USES eax edx esi edi,
string1:PTR BYTE,
string2:PTR BYTE
;
; Compare two strings.
; Returns nothing, but the Zero and Carry flags are affected
; exactly as they would be by the CMP instruction.
; Last update: 1/18/02
;-----------------------------------------------------
mov esi,string1
mov edi,string2
L1: mov al,[esi]
mov dl,[edi]
cmp al,0 ; end of string1?
jne L2 ; no
cmp dl,0 ; yes: end of string2?
jne L2 ; no
jmp L3 ; yes, exit with ZF = 1
L2: inc esi ; point to next
inc edi
cmp al,dl ; chars equal?
je L1 ; yes: continue loop
; no: exit with flags set
L3: ret
Str_compare ENDP
;---------------------------------------------------------
Str_copy PROC USES eax ecx esi edi,
source:PTR BYTE, ; source string
target:PTR BYTE ; target string
;
; Copy a string from source to target.
; Requires: the target string must contain enough
; space to hold a copy of the source string.
; Last update: 1/18/02
;----------------------------------------------------------
INVOKE Str_length,source ; EAX = length source
mov ecx,eax ; REP count
inc ecx ; add 1 for null byte
mov esi,source
mov edi,target
cld ; direction = up
rep movsb ; copy the string
ret
Str_copy ENDP
;---------------------------------------------------------
Str_length PROC USES edi,
pString:PTR BYTE ; pointer to string
;
; Return the length of a null-terminated string.
; Receives: pString - pointer to a string
; Returns: EAX = string length
; Last update: 1/18/02
;---------------------------------------------------------
mov edi,pString
mov eax,0 ; character count
L1:
cmp byte ptr [edi],0 ; end of string?
je L2 ; yes: quit
inc edi ; no: point to next
inc eax ; add 1 to count
jmp L1
L2: ret
Str_length ENDP
;-----------------------------------------------------------
Str_trim PROC USES eax ecx edi,
pString:PTR BYTE, ; points to string
char:BYTE ; char to remove
;
; Remove all occurences of a given character from
; the end of a string.
; Returns: nothing
; Last update: 1/18/02
;-----------------------------------------------------------
mov edi,pString
INVOKE Str_length,edi ; returns length in EAX
cmp eax,0 ; zero-length string?
je L2 ; yes: exit
mov ecx,eax ; no: counter = string length
dec eax
add edi,eax ; EDI points to last char
mov al,char ; char to trim
std ; direction = reverse
repe scasb ; skip past trim character
jne L1 ; removed first character?
dec edi ; adjust EDI: ZF=1 && ECX=0
L1: mov BYTE PTR [edi+2],0 ; insert null byte
L2: ret
Str_trim ENDP
;---------------------------------------------------
Str_ucase PROC USES eax esi,
pString:PTR BYTE
; Convert a null-terminated string to upper case.
; Receives: pString - a pointer to the string
; Returns: nothing
; Last update: 1/18/02
;---------------------------------------------------
mov esi,pString
L1:
mov al,[esi] ; get char
cmp al,0 ; end of string?
je L3 ; yes: quit
cmp al,'a' ; below "a"?
jb L2
cmp al,'z' ; above "z"?
ja L2
and BYTE PTR [esi],11011111b ; convert the char
L2: inc esi ; next char
jmp L1
L3: ret
Str_ucase ENDP
;------------------------------------------------------
WaitMsg proc
;
; Displays a prompt and waits for the user to press Enter.
; Receives: nothing
; Returns: nothing
;------------------------------------------------------
.data
waitmsgstr DB "Press [Enter] to continue...",0
.code
pushad
CheckInit
mov edx,offset waitmsgstr
call WriteString
NewLine
w1:INVOKE FlushConsoleInputBuffer,consoleInHandle
INVOKE ReadConsole,
consoleInHandle, ; console input handle
OFFSET localBuf, ; pointer to local buffer
READSTRING_BUFSIZE, ; max count
OFFSET bytesRead,
0
cmp bytesRead,2
jnz w1 ;loop until ReadConsole returns 2 bytes read
popad
ret
WaitMsg endp
;------------------------------------------------------
WriteBin proc
;
; Writes a 32-bit integer to standard output in
; binary format.
; Receives: EAX = the integer to write
; Returns: nothing
; Last update: 7/11/01
;------------------------------------------------------
pushad
mov ecx,8 ; number of 4-bit groups in EAX
mov esi,offset buffer
WB1:
push ecx ; save loop count
mov ecx,4 ; 4 bits in each group
WB1A:
shl eax,1 ; shift EAX left into Carry flag
mov byte ptr [esi],'0' ; choose '0' as default digit
jnc WB2 ; if no carry, then jump to L2
mov byte ptr [esi],'1' ; else move '1' to DL
WB2:
inc esi
Loop WB1A ; go to next bit within group
mov byte ptr [esi],' ' ; insert a blank space
inc esi ; between groups
pop ecx ; restore outer loop count
loop WB1 ; begin next 4-bit group
mov byte ptr [esi],0 ; insert null byte at end
mov edx,offset buffer ; display the buffer
call WriteString
popad
ret
WriteBin endp
;------------------------------------------------------
WriteChar proc
;
; Write a character to standard output
; Recevies: AL = character
; Last update: 7/11/01
;------------------------------------------------------
pushad
CheckInit
mov buffer,al
INVOKE WriteConsole,
consoleOutHandle, ; console output handle
offset buffer, ; points to string
1, ; string length
offset bytesWritten, ; returns number of bytes written
0
popad
ret
WriteChar endp
;-----------------------------------------------------
WriteDec proc
;
; Writes an unsigned 32-bit decimal number to
; standard output. Input parameters: EAX = the
; number to write.
; Last update: 7/11/01
;------------------------------------------------------
.data
; There will be as many as 10 digits.
BUFFER_SIZE = 12
bufferL db BUFFER_SIZE dup(?),0
xtable db "0123456789ABCDEF"
.code
pushad
CheckInit
mov ecx,0 ; digit counter
mov edi,offset bufferL
add edi,(BUFFER_SIZE - 1)
mov ebx,10 ; decimal number base
WI1: mov edx,0 ; clear dividend to zero
div ebx ; divide EAX by the radix
xchg eax,edx ; swap quotient, remainder
call AsciiDigit ; convert AL to ASCII
mov [edi],al ; save the digit
dec edi ; back up in buffer
xchg eax,edx ; swap quotient, remainder
inc ecx ; increment digit count
or eax,eax ; quotient = 0?
jnz WI1 ; no, divide again
; Display the digits (CX = count)
WI3:
inc edi
mov edx,edi
call WriteString
WI4:
popad ; restore 32-bit registers
ret
WriteDec endp
;------------------------------------------------------
WriteHex proc
;
; Writes an unsigned 32-bit hexadecimal number to
; standard output.
; Input parameters: EAX = the number to write.
; Last update: 7/11/01
;------------------------------------------------------
DISPLAY_SIZE = 8 ; total number of digits to display
.data
bufferLH db DISPLAY_SIZE dup(?),0
.code
pushad ; save all 32-bit data registers
CheckInit
mov ecx,0 ; digit counter
mov edi,offset bufferLH
add edi,(DISPLAY_SIZE - 1)
mov ebx,16 ; hexadecimal base
WLH1:
mov edx,0 ; clear dividend to zero
div ebx ; divide EAX by the radix
xchg eax,edx ; swap quotient, remainder
call AsciiDigit ; convert AL to ASCII
mov [edi],al ; save the digit
dec edi ; back up in buffer
xchg eax,edx ; swap quotient, remainder
inc ecx ; increment digit count
or eax,eax ; quotient = 0?
jnz WLH1 ; no, divide again
; Insert leading zeros
mov ax,DISPLAY_SIZE
sub ax,cx
jz WLH3 ; display now if no leading zeros required
movzx ecx,ax ; CX = number of leading zeros to insert
WLH2:
mov byte ptr [edi],'0' ; insert a zero
dec edi ; back up
loop WLH2 ; continue the loop
; Display the digits
WLH3:
mov cx,DISPLAY_SIZE
inc edi
mov edx,edi
call WriteString
popad ; restore 32-bit registers
ret
WriteHex endp
;-----------------------------------------------------
WriteInt proc
;
; Writes a 32-bit signed binary integer to standard output
; in ASCII decimal.
; Receives: EAX = the integer
; Returns: nothing
; Comments: Displays a leading sign, no leading zeros.
; Last update: 7/11/01
;-----------------------------------------------------
WI_Bufsize = 12
true = 1
false = 0
.data
buffer_B db WI_Bufsize dup(0),0 ; buffer to hold digits
neg_flag db ?
.code
pushad
CheckInit
mov neg_flag,false ; assume neg_flag is false
or eax,eax ; is AX positive?
jns WIS1 ; yes: jump to B1
neg eax ; no: make it positive
mov neg_flag,true ; set neg_flag to true
WIS1:
mov ecx,0 ; digit count = 0
mov edi,offset buffer_B
add edi,(WI_Bufsize-1)
mov ebx,10 ; will divide by 10
WIS2:
mov edx,0 ; set dividend to 0
div ebx ; divide AX by 10
or dl,30h ; convert remainder to ASCII
dec edi ; reverse through the buffer
mov [edi],dl ; store ASCII digit
inc ecx ; increment digit count
or eax,eax ; quotient > 0?
jnz WIS2 ; yes: divide again
; Insert the sign.
dec edi ; back up in the buffer
inc ecx ; increment counter
mov byte ptr [edi],'+' ; insert plus sign
cmp neg_flag,false ; was the number positive?
jz WIS3 ; yes
mov byte ptr [edi],'-' ; no: insert negative sign
WIS3: ; Display the number
mov edx,edi
call WriteString
popad
ret
WriteInt endp
;--------------------------------------------------------
WriteString proc
;
; Writes a null-terminated string to standard
; output. Input parameter: EDX points to the
; string.
; Last update: 9/7/01
;--------------------------------------------------------
pushad
CheckInit
INVOKE Str_length,edx ; return length of string in EAX
cld ; must do this before WriteConsole
INVOKE WriteConsole,
consoleOutHandle, ; console output handle
edx, ; points to string
eax, ; string length
offset bytesWritten, ; returns number of bytes written
0
popad
ret
WriteString endp
;----------- PRIVATE PROCEDURES --------------------------
;----------------------------------------------------
Initialize proc private
;
; Get the standard console handles for input and output,
; and set a flag indicating that it has been done.
;----------------------------------------------------
pushad
INVOKE GetStdHandle, STD_INPUT_HANDLE
mov [consoleInHandle],eax
INVOKE GetStdHandle, STD_OUTPUT_HANDLE
mov [consoleOutHandle],eax
mov InitFlag,1
popad
ret
Initialize endp
; Convert AL to an ASCII digit. Used by WriteHex & WriteDec
AsciiDigit proc private
push ebx
mov ebx,offset xtable
xlat
pop ebx
ret
AsciiDigit endp
HexByte proc private
; Display the byte in AL in hexadecimal
pushad
mov dl,al
rol dl,4
mov al,dl
and al,0Fh
mov ebx,offset xtable
xlat
mov buffer,al ; save first char
rol dl,4
mov al,dl
and al,0Fh
xlat
mov [buffer+1],al ; save second char
mov [buffer+2],0 ; null byte
mov edx,offset buffer ; display the buffer
call WriteString
popad
ret
HexByte endp
end
| 24.073063
| 91
| 0.572335
|
b125164ed5b23d84338928a634b5b25bf205d2af
| 570,120
|
asm
|
Assembly
|
kernel.asm
|
Katherine639/CS153-D
|
018e3dc3b937d0cfca7b961dd2a7e7225416f38a
|
[
"MIT-0"
] | null | null | null |
kernel.asm
|
Katherine639/CS153-D
|
018e3dc3b937d0cfca7b961dd2a7e7225416f38a
|
[
"MIT-0"
] | null | null | null |
kernel.asm
|
Katherine639/CS153-D
|
018e3dc3b937d0cfca7b961dd2a7e7225416f38a
|
[
"MIT-0"
] | null | null | null |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# Entering xv6 on boot processor, with paging off.
.globl entry
entry:
# Turn on page size extension for 4Mbyte pages
movl %cr4, %eax
8010000c: 0f 20 e0 mov %cr4,%eax
orl $(CR4_PSE), %eax
8010000f: 83 c8 10 or $0x10,%eax
movl %eax, %cr4
80100012: 0f 22 e0 mov %eax,%cr4
# Set page directory
movl $(V2P_WO(entrypgdir)), %eax
80100015: b8 00 90 10 00 mov $0x109000,%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 c0 b5 10 80 mov $0x8010b5c0,%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 e0 2d 10 80 mov $0x80102de0,%eax
jmp *%eax
80100032: ff e0 jmp *%eax
80100034: 66 90 xchg %ax,%ax
80100036: 66 90 xchg %ax,%ax
80100038: 66 90 xchg %ax,%ax
8010003a: 66 90 xchg %ax,%ax
8010003c: 66 90 xchg %ax,%ax
8010003e: 66 90 xchg %ax,%ax
80100040 <binit>:
struct buf head;
} bcache;
void
binit(void)
{
80100040: 55 push %ebp
80100041: 89 e5 mov %esp,%ebp
80100043: 53 push %ebx
//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++){
80100044: bb f4 b5 10 80 mov $0x8010b5f4,%ebx
{
80100049: 83 ec 14 sub $0x14,%esp
initlock(&bcache.lock, "bcache");
8010004c: c7 44 24 04 40 6e 10 movl $0x80106e40,0x4(%esp)
80100053: 80
80100054: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
8010005b: e8 e0 3f 00 00 call 80104040 <initlock>
bcache.head.next = &bcache.head;
80100060: ba bc fc 10 80 mov $0x8010fcbc,%edx
bcache.head.prev = &bcache.head;
80100065: c7 05 0c fd 10 80 bc movl $0x8010fcbc,0x8010fd0c
8010006c: fc 10 80
bcache.head.next = &bcache.head;
8010006f: c7 05 10 fd 10 80 bc movl $0x8010fcbc,0x8010fd10
80100076: fc 10 80
80100079: eb 09 jmp 80100084 <binit+0x44>
8010007b: 90 nop
8010007c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100080: 89 da mov %ebx,%edx
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
80100082: 89 c3 mov %eax,%ebx
80100084: 8d 43 0c lea 0xc(%ebx),%eax
b->next = bcache.head.next;
80100087: 89 53 54 mov %edx,0x54(%ebx)
b->prev = &bcache.head;
8010008a: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx)
initsleeplock(&b->lock, "buffer");
80100091: 89 04 24 mov %eax,(%esp)
80100094: c7 44 24 04 47 6e 10 movl $0x80106e47,0x4(%esp)
8010009b: 80
8010009c: e8 8f 3e 00 00 call 80103f30 <initsleeplock>
bcache.head.next->prev = b;
801000a1: a1 10 fd 10 80 mov 0x8010fd10,%eax
801000a6: 89 58 50 mov %ebx,0x50(%eax)
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000a9: 8d 83 5c 02 00 00 lea 0x25c(%ebx),%eax
801000af: 3d bc fc 10 80 cmp $0x8010fcbc,%eax
bcache.head.next = b;
801000b4: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000ba: 75 c4 jne 80100080 <binit+0x40>
}
}
801000bc: 83 c4 14 add $0x14,%esp
801000bf: 5b pop %ebx
801000c0: 5d pop %ebp
801000c1: c3 ret
801000c2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801000c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801000d0 <bread>:
}
// Return a locked buf with the contents of the indicated block.
struct buf*
bread(uint dev, uint blockno)
{
801000d0: 55 push %ebp
801000d1: 89 e5 mov %esp,%ebp
801000d3: 57 push %edi
801000d4: 56 push %esi
801000d5: 53 push %ebx
801000d6: 83 ec 1c sub $0x1c,%esp
801000d9: 8b 75 08 mov 0x8(%ebp),%esi
acquire(&bcache.lock);
801000dc: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
{
801000e3: 8b 7d 0c mov 0xc(%ebp),%edi
acquire(&bcache.lock);
801000e6: e8 45 40 00 00 call 80104130 <acquire>
for(b = bcache.head.next; b != &bcache.head; b = b->next){
801000eb: 8b 1d 10 fd 10 80 mov 0x8010fd10,%ebx
801000f1: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx
801000f7: 75 12 jne 8010010b <bread+0x3b>
801000f9: eb 25 jmp 80100120 <bread+0x50>
801000fb: 90 nop
801000fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100100: 8b 5b 54 mov 0x54(%ebx),%ebx
80100103: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx
80100109: 74 15 je 80100120 <bread+0x50>
if(b->dev == dev && b->blockno == blockno){
8010010b: 3b 73 04 cmp 0x4(%ebx),%esi
8010010e: 75 f0 jne 80100100 <bread+0x30>
80100110: 3b 7b 08 cmp 0x8(%ebx),%edi
80100113: 75 eb jne 80100100 <bread+0x30>
b->refcnt++;
80100115: 83 43 4c 01 addl $0x1,0x4c(%ebx)
80100119: eb 3f jmp 8010015a <bread+0x8a>
8010011b: 90 nop
8010011c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
80100120: 8b 1d 0c fd 10 80 mov 0x8010fd0c,%ebx
80100126: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx
8010012c: 75 0d jne 8010013b <bread+0x6b>
8010012e: eb 58 jmp 80100188 <bread+0xb8>
80100130: 8b 5b 50 mov 0x50(%ebx),%ebx
80100133: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx
80100139: 74 4d je 80100188 <bread+0xb8>
if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) {
8010013b: 8b 43 4c mov 0x4c(%ebx),%eax
8010013e: 85 c0 test %eax,%eax
80100140: 75 ee jne 80100130 <bread+0x60>
80100142: f6 03 04 testb $0x4,(%ebx)
80100145: 75 e9 jne 80100130 <bread+0x60>
b->dev = dev;
80100147: 89 73 04 mov %esi,0x4(%ebx)
b->blockno = blockno;
8010014a: 89 7b 08 mov %edi,0x8(%ebx)
b->flags = 0;
8010014d: c7 03 00 00 00 00 movl $0x0,(%ebx)
b->refcnt = 1;
80100153: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx)
release(&bcache.lock);
8010015a: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100161: e8 ba 40 00 00 call 80104220 <release>
acquiresleep(&b->lock);
80100166: 8d 43 0c lea 0xc(%ebx),%eax
80100169: 89 04 24 mov %eax,(%esp)
8010016c: e8 ff 3d 00 00 call 80103f70 <acquiresleep>
struct buf *b;
b = bget(dev, blockno);
if((b->flags & B_VALID) == 0) {
80100171: f6 03 02 testb $0x2,(%ebx)
80100174: 75 08 jne 8010017e <bread+0xae>
iderw(b);
80100176: 89 1c 24 mov %ebx,(%esp)
80100179: e8 92 1f 00 00 call 80102110 <iderw>
}
return b;
}
8010017e: 83 c4 1c add $0x1c,%esp
80100181: 89 d8 mov %ebx,%eax
80100183: 5b pop %ebx
80100184: 5e pop %esi
80100185: 5f pop %edi
80100186: 5d pop %ebp
80100187: c3 ret
panic("bget: no buffers");
80100188: c7 04 24 4e 6e 10 80 movl $0x80106e4e,(%esp)
8010018f: e8 cc 01 00 00 call 80100360 <panic>
80100194: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010019a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801001a0 <bwrite>:
// Write b's contents to disk. Must be locked.
void
bwrite(struct buf *b)
{
801001a0: 55 push %ebp
801001a1: 89 e5 mov %esp,%ebp
801001a3: 53 push %ebx
801001a4: 83 ec 14 sub $0x14,%esp
801001a7: 8b 5d 08 mov 0x8(%ebp),%ebx
if(!holdingsleep(&b->lock))
801001aa: 8d 43 0c lea 0xc(%ebx),%eax
801001ad: 89 04 24 mov %eax,(%esp)
801001b0: e8 5b 3e 00 00 call 80104010 <holdingsleep>
801001b5: 85 c0 test %eax,%eax
801001b7: 74 10 je 801001c9 <bwrite+0x29>
panic("bwrite");
b->flags |= B_DIRTY;
801001b9: 83 0b 04 orl $0x4,(%ebx)
iderw(b);
801001bc: 89 5d 08 mov %ebx,0x8(%ebp)
}
801001bf: 83 c4 14 add $0x14,%esp
801001c2: 5b pop %ebx
801001c3: 5d pop %ebp
iderw(b);
801001c4: e9 47 1f 00 00 jmp 80102110 <iderw>
panic("bwrite");
801001c9: c7 04 24 5f 6e 10 80 movl $0x80106e5f,(%esp)
801001d0: e8 8b 01 00 00 call 80100360 <panic>
801001d5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801001d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801001e0 <brelse>:
// Release a locked buffer.
// Move to the head of the MRU list.
void
brelse(struct buf *b)
{
801001e0: 55 push %ebp
801001e1: 89 e5 mov %esp,%ebp
801001e3: 56 push %esi
801001e4: 53 push %ebx
801001e5: 83 ec 10 sub $0x10,%esp
801001e8: 8b 5d 08 mov 0x8(%ebp),%ebx
if(!holdingsleep(&b->lock))
801001eb: 8d 73 0c lea 0xc(%ebx),%esi
801001ee: 89 34 24 mov %esi,(%esp)
801001f1: e8 1a 3e 00 00 call 80104010 <holdingsleep>
801001f6: 85 c0 test %eax,%eax
801001f8: 74 5b je 80100255 <brelse+0x75>
panic("brelse");
releasesleep(&b->lock);
801001fa: 89 34 24 mov %esi,(%esp)
801001fd: e8 ce 3d 00 00 call 80103fd0 <releasesleep>
acquire(&bcache.lock);
80100202: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100209: e8 22 3f 00 00 call 80104130 <acquire>
b->refcnt--;
if (b->refcnt == 0) {
8010020e: 83 6b 4c 01 subl $0x1,0x4c(%ebx)
80100212: 75 2f jne 80100243 <brelse+0x63>
// no one is waiting for it.
b->next->prev = b->prev;
80100214: 8b 43 54 mov 0x54(%ebx),%eax
80100217: 8b 53 50 mov 0x50(%ebx),%edx
8010021a: 89 50 50 mov %edx,0x50(%eax)
b->prev->next = b->next;
8010021d: 8b 43 50 mov 0x50(%ebx),%eax
80100220: 8b 53 54 mov 0x54(%ebx),%edx
80100223: 89 50 54 mov %edx,0x54(%eax)
b->next = bcache.head.next;
80100226: a1 10 fd 10 80 mov 0x8010fd10,%eax
b->prev = &bcache.head;
8010022b: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx)
b->next = bcache.head.next;
80100232: 89 43 54 mov %eax,0x54(%ebx)
bcache.head.next->prev = b;
80100235: a1 10 fd 10 80 mov 0x8010fd10,%eax
8010023a: 89 58 50 mov %ebx,0x50(%eax)
bcache.head.next = b;
8010023d: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10
}
release(&bcache.lock);
80100243: c7 45 08 c0 b5 10 80 movl $0x8010b5c0,0x8(%ebp)
}
8010024a: 83 c4 10 add $0x10,%esp
8010024d: 5b pop %ebx
8010024e: 5e pop %esi
8010024f: 5d pop %ebp
release(&bcache.lock);
80100250: e9 cb 3f 00 00 jmp 80104220 <release>
panic("brelse");
80100255: c7 04 24 66 6e 10 80 movl $0x80106e66,(%esp)
8010025c: e8 ff 00 00 00 call 80100360 <panic>
80100261: 66 90 xchg %ax,%ax
80100263: 66 90 xchg %ax,%ax
80100265: 66 90 xchg %ax,%ax
80100267: 66 90 xchg %ax,%ax
80100269: 66 90 xchg %ax,%ax
8010026b: 66 90 xchg %ax,%ax
8010026d: 66 90 xchg %ax,%ax
8010026f: 90 nop
80100270 <consoleread>:
}
}
int
consoleread(struct inode *ip, char *dst, int n)
{
80100270: 55 push %ebp
80100271: 89 e5 mov %esp,%ebp
80100273: 57 push %edi
80100274: 56 push %esi
80100275: 53 push %ebx
80100276: 83 ec 1c sub $0x1c,%esp
80100279: 8b 7d 08 mov 0x8(%ebp),%edi
8010027c: 8b 75 0c mov 0xc(%ebp),%esi
uint target;
int c;
iunlock(ip);
8010027f: 89 3c 24 mov %edi,(%esp)
80100282: e8 f9 14 00 00 call 80101780 <iunlock>
target = n;
acquire(&cons.lock);
80100287: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010028e: e8 9d 3e 00 00 call 80104130 <acquire>
while(n > 0){
80100293: 8b 55 10 mov 0x10(%ebp),%edx
80100296: 85 d2 test %edx,%edx
80100298: 0f 8e bc 00 00 00 jle 8010035a <consoleread+0xea>
8010029e: 8b 5d 10 mov 0x10(%ebp),%ebx
801002a1: eb 25 jmp 801002c8 <consoleread+0x58>
801002a3: 90 nop
801002a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(input.r == input.w){
if(myproc()->killed){
801002a8: e8 e3 33 00 00 call 80103690 <myproc>
801002ad: 8b 40 24 mov 0x24(%eax),%eax
801002b0: 85 c0 test %eax,%eax
801002b2: 75 74 jne 80100328 <consoleread+0xb8>
release(&cons.lock);
ilock(ip);
return -1;
}
sleep(&input.r, &cons.lock);
801002b4: c7 44 24 04 20 a5 10 movl $0x8010a520,0x4(%esp)
801002bb: 80
801002bc: c7 04 24 a0 ff 10 80 movl $0x8010ffa0,(%esp)
801002c3: e8 28 39 00 00 call 80103bf0 <sleep>
while(input.r == input.w){
801002c8: a1 a0 ff 10 80 mov 0x8010ffa0,%eax
801002cd: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax
801002d3: 74 d3 je 801002a8 <consoleread+0x38>
}
c = input.buf[input.r++ % INPUT_BUF];
801002d5: 8d 50 01 lea 0x1(%eax),%edx
801002d8: 89 15 a0 ff 10 80 mov %edx,0x8010ffa0
801002de: 89 c2 mov %eax,%edx
801002e0: 83 e2 7f and $0x7f,%edx
801002e3: 0f b6 8a 20 ff 10 80 movzbl -0x7fef00e0(%edx),%ecx
801002ea: 0f be d1 movsbl %cl,%edx
if(c == C('D')){ // EOF
801002ed: 83 fa 04 cmp $0x4,%edx
801002f0: 74 57 je 80100349 <consoleread+0xd9>
// caller gets a 0-byte result.
input.r--;
}
break;
}
*dst++ = c;
801002f2: 83 c6 01 add $0x1,%esi
--n;
801002f5: 83 eb 01 sub $0x1,%ebx
if(c == '\n')
801002f8: 83 fa 0a cmp $0xa,%edx
*dst++ = c;
801002fb: 88 4e ff mov %cl,-0x1(%esi)
if(c == '\n')
801002fe: 74 53 je 80100353 <consoleread+0xe3>
while(n > 0){
80100300: 85 db test %ebx,%ebx
80100302: 75 c4 jne 801002c8 <consoleread+0x58>
80100304: 8b 45 10 mov 0x10(%ebp),%eax
break;
}
release(&cons.lock);
80100307: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010030e: 89 45 e4 mov %eax,-0x1c(%ebp)
80100311: e8 0a 3f 00 00 call 80104220 <release>
ilock(ip);
80100316: 89 3c 24 mov %edi,(%esp)
80100319: e8 82 13 00 00 call 801016a0 <ilock>
8010031e: 8b 45 e4 mov -0x1c(%ebp),%eax
return target - n;
80100321: eb 1e jmp 80100341 <consoleread+0xd1>
80100323: 90 nop
80100324: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
release(&cons.lock);
80100328: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010032f: e8 ec 3e 00 00 call 80104220 <release>
ilock(ip);
80100334: 89 3c 24 mov %edi,(%esp)
80100337: e8 64 13 00 00 call 801016a0 <ilock>
return -1;
8010033c: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100341: 83 c4 1c add $0x1c,%esp
80100344: 5b pop %ebx
80100345: 5e pop %esi
80100346: 5f pop %edi
80100347: 5d pop %ebp
80100348: c3 ret
if(n < target){
80100349: 39 5d 10 cmp %ebx,0x10(%ebp)
8010034c: 76 05 jbe 80100353 <consoleread+0xe3>
input.r--;
8010034e: a3 a0 ff 10 80 mov %eax,0x8010ffa0
80100353: 8b 45 10 mov 0x10(%ebp),%eax
80100356: 29 d8 sub %ebx,%eax
80100358: eb ad jmp 80100307 <consoleread+0x97>
while(n > 0){
8010035a: 31 c0 xor %eax,%eax
8010035c: eb a9 jmp 80100307 <consoleread+0x97>
8010035e: 66 90 xchg %ax,%ax
80100360 <panic>:
{
80100360: 55 push %ebp
80100361: 89 e5 mov %esp,%ebp
80100363: 56 push %esi
80100364: 53 push %ebx
80100365: 83 ec 40 sub $0x40,%esp
}
static inline void
cli(void)
{
asm volatile("cli");
80100368: fa cli
cons.locking = 0;
80100369: c7 05 54 a5 10 80 00 movl $0x0,0x8010a554
80100370: 00 00 00
getcallerpcs(&s, pcs);
80100373: 8d 5d d0 lea -0x30(%ebp),%ebx
cprintf("lapicid %d: panic: ", lapicid());
80100376: e8 d5 23 00 00 call 80102750 <lapicid>
8010037b: 8d 75 f8 lea -0x8(%ebp),%esi
8010037e: c7 04 24 6d 6e 10 80 movl $0x80106e6d,(%esp)
80100385: 89 44 24 04 mov %eax,0x4(%esp)
80100389: e8 c2 02 00 00 call 80100650 <cprintf>
cprintf(s);
8010038e: 8b 45 08 mov 0x8(%ebp),%eax
80100391: 89 04 24 mov %eax,(%esp)
80100394: e8 b7 02 00 00 call 80100650 <cprintf>
cprintf("\n");
80100399: c7 04 24 67 78 10 80 movl $0x80107867,(%esp)
801003a0: e8 ab 02 00 00 call 80100650 <cprintf>
getcallerpcs(&s, pcs);
801003a5: 8d 45 08 lea 0x8(%ebp),%eax
801003a8: 89 5c 24 04 mov %ebx,0x4(%esp)
801003ac: 89 04 24 mov %eax,(%esp)
801003af: e8 ac 3c 00 00 call 80104060 <getcallerpcs>
801003b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cprintf(" %p", pcs[i]);
801003b8: 8b 03 mov (%ebx),%eax
801003ba: 83 c3 04 add $0x4,%ebx
801003bd: c7 04 24 81 6e 10 80 movl $0x80106e81,(%esp)
801003c4: 89 44 24 04 mov %eax,0x4(%esp)
801003c8: e8 83 02 00 00 call 80100650 <cprintf>
for(i=0; i<10; i++)
801003cd: 39 f3 cmp %esi,%ebx
801003cf: 75 e7 jne 801003b8 <panic+0x58>
panicked = 1; // freeze other CPU
801003d1: c7 05 58 a5 10 80 01 movl $0x1,0x8010a558
801003d8: 00 00 00
801003db: eb fe jmp 801003db <panic+0x7b>
801003dd: 8d 76 00 lea 0x0(%esi),%esi
801003e0 <consputc>:
if(panicked){
801003e0: 8b 15 58 a5 10 80 mov 0x8010a558,%edx
801003e6: 85 d2 test %edx,%edx
801003e8: 74 06 je 801003f0 <consputc+0x10>
801003ea: fa cli
801003eb: eb fe jmp 801003eb <consputc+0xb>
801003ed: 8d 76 00 lea 0x0(%esi),%esi
{
801003f0: 55 push %ebp
801003f1: 89 e5 mov %esp,%ebp
801003f3: 57 push %edi
801003f4: 56 push %esi
801003f5: 53 push %ebx
801003f6: 89 c3 mov %eax,%ebx
801003f8: 83 ec 1c sub $0x1c,%esp
if(c == BACKSPACE){
801003fb: 3d 00 01 00 00 cmp $0x100,%eax
80100400: 0f 84 ac 00 00 00 je 801004b2 <consputc+0xd2>
uartputc(c);
80100406: 89 04 24 mov %eax,(%esp)
80100409: e8 72 54 00 00 call 80105880 <uartputc>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010040e: bf d4 03 00 00 mov $0x3d4,%edi
80100413: b8 0e 00 00 00 mov $0xe,%eax
80100418: 89 fa mov %edi,%edx
8010041a: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010041b: be d5 03 00 00 mov $0x3d5,%esi
80100420: 89 f2 mov %esi,%edx
80100422: ec in (%dx),%al
pos = inb(CRTPORT+1) << 8;
80100423: 0f b6 c8 movzbl %al,%ecx
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80100426: 89 fa mov %edi,%edx
80100428: c1 e1 08 shl $0x8,%ecx
8010042b: b8 0f 00 00 00 mov $0xf,%eax
80100430: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80100431: 89 f2 mov %esi,%edx
80100433: ec in (%dx),%al
pos |= inb(CRTPORT+1);
80100434: 0f b6 c0 movzbl %al,%eax
80100437: 09 c1 or %eax,%ecx
if(c == '\n')
80100439: 83 fb 0a cmp $0xa,%ebx
8010043c: 0f 84 0d 01 00 00 je 8010054f <consputc+0x16f>
else if(c == BACKSPACE){
80100442: 81 fb 00 01 00 00 cmp $0x100,%ebx
80100448: 0f 84 e8 00 00 00 je 80100536 <consputc+0x156>
crt[pos++] = (c&0xff) | 0x0700; // black on white
8010044e: 0f b6 db movzbl %bl,%ebx
80100451: 80 cf 07 or $0x7,%bh
80100454: 8d 79 01 lea 0x1(%ecx),%edi
80100457: 66 89 9c 09 00 80 0b mov %bx,-0x7ff48000(%ecx,%ecx,1)
8010045e: 80
if(pos < 0 || pos > 25*80)
8010045f: 81 ff d0 07 00 00 cmp $0x7d0,%edi
80100465: 0f 87 bf 00 00 00 ja 8010052a <consputc+0x14a>
if((pos/80) >= 24){ // Scroll up.
8010046b: 81 ff 7f 07 00 00 cmp $0x77f,%edi
80100471: 7f 68 jg 801004db <consputc+0xfb>
80100473: 89 f8 mov %edi,%eax
80100475: 89 fb mov %edi,%ebx
80100477: c1 e8 08 shr $0x8,%eax
8010047a: 89 c6 mov %eax,%esi
8010047c: 8d 8c 3f 00 80 0b 80 lea -0x7ff48000(%edi,%edi,1),%ecx
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80100483: bf d4 03 00 00 mov $0x3d4,%edi
80100488: b8 0e 00 00 00 mov $0xe,%eax
8010048d: 89 fa mov %edi,%edx
8010048f: ee out %al,(%dx)
80100490: 89 f0 mov %esi,%eax
80100492: b2 d5 mov $0xd5,%dl
80100494: ee out %al,(%dx)
80100495: b8 0f 00 00 00 mov $0xf,%eax
8010049a: 89 fa mov %edi,%edx
8010049c: ee out %al,(%dx)
8010049d: 89 d8 mov %ebx,%eax
8010049f: b2 d5 mov $0xd5,%dl
801004a1: ee out %al,(%dx)
crt[pos] = ' ' | 0x0700;
801004a2: b8 20 07 00 00 mov $0x720,%eax
801004a7: 66 89 01 mov %ax,(%ecx)
}
801004aa: 83 c4 1c add $0x1c,%esp
801004ad: 5b pop %ebx
801004ae: 5e pop %esi
801004af: 5f pop %edi
801004b0: 5d pop %ebp
801004b1: c3 ret
uartputc('\b'); uartputc(' '); uartputc('\b');
801004b2: c7 04 24 08 00 00 00 movl $0x8,(%esp)
801004b9: e8 c2 53 00 00 call 80105880 <uartputc>
801004be: c7 04 24 20 00 00 00 movl $0x20,(%esp)
801004c5: e8 b6 53 00 00 call 80105880 <uartputc>
801004ca: c7 04 24 08 00 00 00 movl $0x8,(%esp)
801004d1: e8 aa 53 00 00 call 80105880 <uartputc>
801004d6: e9 33 ff ff ff jmp 8010040e <consputc+0x2e>
memmove(crt, crt+80, sizeof(crt[0])*23*80);
801004db: c7 44 24 08 60 0e 00 movl $0xe60,0x8(%esp)
801004e2: 00
pos -= 80;
801004e3: 8d 5f b0 lea -0x50(%edi),%ebx
memmove(crt, crt+80, sizeof(crt[0])*23*80);
801004e6: c7 44 24 04 a0 80 0b movl $0x800b80a0,0x4(%esp)
801004ed: 80
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
801004ee: 8d b4 1b 00 80 0b 80 lea -0x7ff48000(%ebx,%ebx,1),%esi
memmove(crt, crt+80, sizeof(crt[0])*23*80);
801004f5: c7 04 24 00 80 0b 80 movl $0x800b8000,(%esp)
801004fc: e8 0f 3e 00 00 call 80104310 <memmove>
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
80100501: b8 d0 07 00 00 mov $0x7d0,%eax
80100506: 29 f8 sub %edi,%eax
80100508: 01 c0 add %eax,%eax
8010050a: 89 34 24 mov %esi,(%esp)
8010050d: 89 44 24 08 mov %eax,0x8(%esp)
80100511: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80100518: 00
80100519: e8 52 3d 00 00 call 80104270 <memset>
8010051e: 89 f1 mov %esi,%ecx
80100520: be 07 00 00 00 mov $0x7,%esi
80100525: e9 59 ff ff ff jmp 80100483 <consputc+0xa3>
panic("pos under/overflow");
8010052a: c7 04 24 85 6e 10 80 movl $0x80106e85,(%esp)
80100531: e8 2a fe ff ff call 80100360 <panic>
if(pos > 0) --pos;
80100536: 85 c9 test %ecx,%ecx
80100538: 8d 79 ff lea -0x1(%ecx),%edi
8010053b: 0f 85 1e ff ff ff jne 8010045f <consputc+0x7f>
80100541: b9 00 80 0b 80 mov $0x800b8000,%ecx
80100546: 31 db xor %ebx,%ebx
80100548: 31 f6 xor %esi,%esi
8010054a: e9 34 ff ff ff jmp 80100483 <consputc+0xa3>
pos += 80 - pos%80;
8010054f: 89 c8 mov %ecx,%eax
80100551: ba 67 66 66 66 mov $0x66666667,%edx
80100556: f7 ea imul %edx
80100558: c1 ea 05 shr $0x5,%edx
8010055b: 8d 04 92 lea (%edx,%edx,4),%eax
8010055e: c1 e0 04 shl $0x4,%eax
80100561: 8d 78 50 lea 0x50(%eax),%edi
80100564: e9 f6 fe ff ff jmp 8010045f <consputc+0x7f>
80100569: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100570 <printint>:
{
80100570: 55 push %ebp
80100571: 89 e5 mov %esp,%ebp
80100573: 57 push %edi
80100574: 56 push %esi
80100575: 89 d6 mov %edx,%esi
80100577: 53 push %ebx
80100578: 83 ec 1c sub $0x1c,%esp
if(sign && (sign = xx < 0))
8010057b: 85 c9 test %ecx,%ecx
8010057d: 74 61 je 801005e0 <printint+0x70>
8010057f: 85 c0 test %eax,%eax
80100581: 79 5d jns 801005e0 <printint+0x70>
x = -xx;
80100583: f7 d8 neg %eax
80100585: bf 01 00 00 00 mov $0x1,%edi
i = 0;
8010058a: 31 c9 xor %ecx,%ecx
8010058c: eb 04 jmp 80100592 <printint+0x22>
8010058e: 66 90 xchg %ax,%ax
buf[i++] = digits[x % base];
80100590: 89 d9 mov %ebx,%ecx
80100592: 31 d2 xor %edx,%edx
80100594: f7 f6 div %esi
80100596: 8d 59 01 lea 0x1(%ecx),%ebx
80100599: 0f b6 92 b0 6e 10 80 movzbl -0x7fef9150(%edx),%edx
}while((x /= base) != 0);
801005a0: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
801005a2: 88 54 1d d7 mov %dl,-0x29(%ebp,%ebx,1)
}while((x /= base) != 0);
801005a6: 75 e8 jne 80100590 <printint+0x20>
if(sign)
801005a8: 85 ff test %edi,%edi
buf[i++] = digits[x % base];
801005aa: 89 d8 mov %ebx,%eax
if(sign)
801005ac: 74 08 je 801005b6 <printint+0x46>
buf[i++] = '-';
801005ae: 8d 59 02 lea 0x2(%ecx),%ebx
801005b1: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1)
while(--i >= 0)
801005b6: 83 eb 01 sub $0x1,%ebx
801005b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
consputc(buf[i]);
801005c0: 0f be 44 1d d8 movsbl -0x28(%ebp,%ebx,1),%eax
while(--i >= 0)
801005c5: 83 eb 01 sub $0x1,%ebx
consputc(buf[i]);
801005c8: e8 13 fe ff ff call 801003e0 <consputc>
while(--i >= 0)
801005cd: 83 fb ff cmp $0xffffffff,%ebx
801005d0: 75 ee jne 801005c0 <printint+0x50>
}
801005d2: 83 c4 1c add $0x1c,%esp
801005d5: 5b pop %ebx
801005d6: 5e pop %esi
801005d7: 5f pop %edi
801005d8: 5d pop %ebp
801005d9: c3 ret
801005da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
x = xx;
801005e0: 31 ff xor %edi,%edi
801005e2: eb a6 jmp 8010058a <printint+0x1a>
801005e4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801005ea: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801005f0 <consolewrite>:
int
consolewrite(struct inode *ip, char *buf, int n)
{
801005f0: 55 push %ebp
801005f1: 89 e5 mov %esp,%ebp
801005f3: 57 push %edi
801005f4: 56 push %esi
801005f5: 53 push %ebx
801005f6: 83 ec 1c sub $0x1c,%esp
int i;
iunlock(ip);
801005f9: 8b 45 08 mov 0x8(%ebp),%eax
{
801005fc: 8b 75 10 mov 0x10(%ebp),%esi
iunlock(ip);
801005ff: 89 04 24 mov %eax,(%esp)
80100602: e8 79 11 00 00 call 80101780 <iunlock>
acquire(&cons.lock);
80100607: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010060e: e8 1d 3b 00 00 call 80104130 <acquire>
80100613: 8b 7d 0c mov 0xc(%ebp),%edi
for(i = 0; i < n; i++)
80100616: 85 f6 test %esi,%esi
80100618: 8d 1c 37 lea (%edi,%esi,1),%ebx
8010061b: 7e 12 jle 8010062f <consolewrite+0x3f>
8010061d: 8d 76 00 lea 0x0(%esi),%esi
consputc(buf[i] & 0xff);
80100620: 0f b6 07 movzbl (%edi),%eax
80100623: 83 c7 01 add $0x1,%edi
80100626: e8 b5 fd ff ff call 801003e0 <consputc>
for(i = 0; i < n; i++)
8010062b: 39 df cmp %ebx,%edi
8010062d: 75 f1 jne 80100620 <consolewrite+0x30>
release(&cons.lock);
8010062f: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
80100636: e8 e5 3b 00 00 call 80104220 <release>
ilock(ip);
8010063b: 8b 45 08 mov 0x8(%ebp),%eax
8010063e: 89 04 24 mov %eax,(%esp)
80100641: e8 5a 10 00 00 call 801016a0 <ilock>
return n;
}
80100646: 83 c4 1c add $0x1c,%esp
80100649: 89 f0 mov %esi,%eax
8010064b: 5b pop %ebx
8010064c: 5e pop %esi
8010064d: 5f pop %edi
8010064e: 5d pop %ebp
8010064f: c3 ret
80100650 <cprintf>:
{
80100650: 55 push %ebp
80100651: 89 e5 mov %esp,%ebp
80100653: 57 push %edi
80100654: 56 push %esi
80100655: 53 push %ebx
80100656: 83 ec 1c sub $0x1c,%esp
locking = cons.locking;
80100659: a1 54 a5 10 80 mov 0x8010a554,%eax
if(locking)
8010065e: 85 c0 test %eax,%eax
locking = cons.locking;
80100660: 89 45 e0 mov %eax,-0x20(%ebp)
if(locking)
80100663: 0f 85 27 01 00 00 jne 80100790 <cprintf+0x140>
if (fmt == 0)
80100669: 8b 45 08 mov 0x8(%ebp),%eax
8010066c: 85 c0 test %eax,%eax
8010066e: 89 c1 mov %eax,%ecx
80100670: 0f 84 2b 01 00 00 je 801007a1 <cprintf+0x151>
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100676: 0f b6 00 movzbl (%eax),%eax
80100679: 31 db xor %ebx,%ebx
8010067b: 89 cf mov %ecx,%edi
8010067d: 8d 75 0c lea 0xc(%ebp),%esi
80100680: 85 c0 test %eax,%eax
80100682: 75 4c jne 801006d0 <cprintf+0x80>
80100684: eb 5f jmp 801006e5 <cprintf+0x95>
80100686: 66 90 xchg %ax,%ax
c = fmt[++i] & 0xff;
80100688: 83 c3 01 add $0x1,%ebx
8010068b: 0f b6 14 1f movzbl (%edi,%ebx,1),%edx
if(c == 0)
8010068f: 85 d2 test %edx,%edx
80100691: 74 52 je 801006e5 <cprintf+0x95>
switch(c){
80100693: 83 fa 70 cmp $0x70,%edx
80100696: 74 72 je 8010070a <cprintf+0xba>
80100698: 7f 66 jg 80100700 <cprintf+0xb0>
8010069a: 83 fa 25 cmp $0x25,%edx
8010069d: 8d 76 00 lea 0x0(%esi),%esi
801006a0: 0f 84 a2 00 00 00 je 80100748 <cprintf+0xf8>
801006a6: 83 fa 64 cmp $0x64,%edx
801006a9: 75 7d jne 80100728 <cprintf+0xd8>
printint(*argp++, 10, 1);
801006ab: 8d 46 04 lea 0x4(%esi),%eax
801006ae: b9 01 00 00 00 mov $0x1,%ecx
801006b3: 89 45 e4 mov %eax,-0x1c(%ebp)
801006b6: 8b 06 mov (%esi),%eax
801006b8: ba 0a 00 00 00 mov $0xa,%edx
801006bd: e8 ae fe ff ff call 80100570 <printint>
801006c2: 8b 75 e4 mov -0x1c(%ebp),%esi
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801006c5: 83 c3 01 add $0x1,%ebx
801006c8: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax
801006cc: 85 c0 test %eax,%eax
801006ce: 74 15 je 801006e5 <cprintf+0x95>
if(c != '%'){
801006d0: 83 f8 25 cmp $0x25,%eax
801006d3: 74 b3 je 80100688 <cprintf+0x38>
consputc(c);
801006d5: e8 06 fd ff ff call 801003e0 <consputc>
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801006da: 83 c3 01 add $0x1,%ebx
801006dd: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax
801006e1: 85 c0 test %eax,%eax
801006e3: 75 eb jne 801006d0 <cprintf+0x80>
if(locking)
801006e5: 8b 45 e0 mov -0x20(%ebp),%eax
801006e8: 85 c0 test %eax,%eax
801006ea: 74 0c je 801006f8 <cprintf+0xa8>
release(&cons.lock);
801006ec: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
801006f3: e8 28 3b 00 00 call 80104220 <release>
}
801006f8: 83 c4 1c add $0x1c,%esp
801006fb: 5b pop %ebx
801006fc: 5e pop %esi
801006fd: 5f pop %edi
801006fe: 5d pop %ebp
801006ff: c3 ret
switch(c){
80100700: 83 fa 73 cmp $0x73,%edx
80100703: 74 53 je 80100758 <cprintf+0x108>
80100705: 83 fa 78 cmp $0x78,%edx
80100708: 75 1e jne 80100728 <cprintf+0xd8>
printint(*argp++, 16, 0);
8010070a: 8d 46 04 lea 0x4(%esi),%eax
8010070d: 31 c9 xor %ecx,%ecx
8010070f: 89 45 e4 mov %eax,-0x1c(%ebp)
80100712: 8b 06 mov (%esi),%eax
80100714: ba 10 00 00 00 mov $0x10,%edx
80100719: e8 52 fe ff ff call 80100570 <printint>
8010071e: 8b 75 e4 mov -0x1c(%ebp),%esi
break;
80100721: eb a2 jmp 801006c5 <cprintf+0x75>
80100723: 90 nop
80100724: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
consputc('%');
80100728: b8 25 00 00 00 mov $0x25,%eax
8010072d: 89 55 e4 mov %edx,-0x1c(%ebp)
80100730: e8 ab fc ff ff call 801003e0 <consputc>
consputc(c);
80100735: 8b 55 e4 mov -0x1c(%ebp),%edx
80100738: 89 d0 mov %edx,%eax
8010073a: e8 a1 fc ff ff call 801003e0 <consputc>
8010073f: eb 99 jmp 801006da <cprintf+0x8a>
80100741: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
consputc('%');
80100748: b8 25 00 00 00 mov $0x25,%eax
8010074d: e8 8e fc ff ff call 801003e0 <consputc>
break;
80100752: e9 6e ff ff ff jmp 801006c5 <cprintf+0x75>
80100757: 90 nop
if((s = (char*)*argp++) == 0)
80100758: 8d 46 04 lea 0x4(%esi),%eax
8010075b: 8b 36 mov (%esi),%esi
8010075d: 89 45 e4 mov %eax,-0x1c(%ebp)
s = "(null)";
80100760: b8 98 6e 10 80 mov $0x80106e98,%eax
80100765: 85 f6 test %esi,%esi
80100767: 0f 44 f0 cmove %eax,%esi
for(; *s; s++)
8010076a: 0f be 06 movsbl (%esi),%eax
8010076d: 84 c0 test %al,%al
8010076f: 74 16 je 80100787 <cprintf+0x137>
80100771: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100778: 83 c6 01 add $0x1,%esi
consputc(*s);
8010077b: e8 60 fc ff ff call 801003e0 <consputc>
for(; *s; s++)
80100780: 0f be 06 movsbl (%esi),%eax
80100783: 84 c0 test %al,%al
80100785: 75 f1 jne 80100778 <cprintf+0x128>
if((s = (char*)*argp++) == 0)
80100787: 8b 75 e4 mov -0x1c(%ebp),%esi
8010078a: e9 36 ff ff ff jmp 801006c5 <cprintf+0x75>
8010078f: 90 nop
acquire(&cons.lock);
80100790: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
80100797: e8 94 39 00 00 call 80104130 <acquire>
8010079c: e9 c8 fe ff ff jmp 80100669 <cprintf+0x19>
panic("null fmt");
801007a1: c7 04 24 9f 6e 10 80 movl $0x80106e9f,(%esp)
801007a8: e8 b3 fb ff ff call 80100360 <panic>
801007ad: 8d 76 00 lea 0x0(%esi),%esi
801007b0 <consoleintr>:
{
801007b0: 55 push %ebp
801007b1: 89 e5 mov %esp,%ebp
801007b3: 57 push %edi
801007b4: 56 push %esi
int c, doprocdump = 0;
801007b5: 31 f6 xor %esi,%esi
{
801007b7: 53 push %ebx
801007b8: 83 ec 1c sub $0x1c,%esp
801007bb: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&cons.lock);
801007be: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
801007c5: e8 66 39 00 00 call 80104130 <acquire>
801007ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
while((c = getc()) >= 0){
801007d0: ff d3 call *%ebx
801007d2: 85 c0 test %eax,%eax
801007d4: 89 c7 mov %eax,%edi
801007d6: 78 48 js 80100820 <consoleintr+0x70>
switch(c){
801007d8: 83 ff 10 cmp $0x10,%edi
801007db: 0f 84 2f 01 00 00 je 80100910 <consoleintr+0x160>
801007e1: 7e 5d jle 80100840 <consoleintr+0x90>
801007e3: 83 ff 15 cmp $0x15,%edi
801007e6: 0f 84 d4 00 00 00 je 801008c0 <consoleintr+0x110>
801007ec: 83 ff 7f cmp $0x7f,%edi
801007ef: 90 nop
801007f0: 75 53 jne 80100845 <consoleintr+0x95>
if(input.e != input.w){
801007f2: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
801007f7: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax
801007fd: 74 d1 je 801007d0 <consoleintr+0x20>
input.e--;
801007ff: 83 e8 01 sub $0x1,%eax
80100802: a3 a8 ff 10 80 mov %eax,0x8010ffa8
consputc(BACKSPACE);
80100807: b8 00 01 00 00 mov $0x100,%eax
8010080c: e8 cf fb ff ff call 801003e0 <consputc>
while((c = getc()) >= 0){
80100811: ff d3 call *%ebx
80100813: 85 c0 test %eax,%eax
80100815: 89 c7 mov %eax,%edi
80100817: 79 bf jns 801007d8 <consoleintr+0x28>
80100819: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
release(&cons.lock);
80100820: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
80100827: e8 f4 39 00 00 call 80104220 <release>
if(doprocdump) {
8010082c: 85 f6 test %esi,%esi
8010082e: 0f 85 ec 00 00 00 jne 80100920 <consoleintr+0x170>
}
80100834: 83 c4 1c add $0x1c,%esp
80100837: 5b pop %ebx
80100838: 5e pop %esi
80100839: 5f pop %edi
8010083a: 5d pop %ebp
8010083b: c3 ret
8010083c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
switch(c){
80100840: 83 ff 08 cmp $0x8,%edi
80100843: 74 ad je 801007f2 <consoleintr+0x42>
if(c != 0 && input.e-input.r < INPUT_BUF){
80100845: 85 ff test %edi,%edi
80100847: 74 87 je 801007d0 <consoleintr+0x20>
80100849: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
8010084e: 89 c2 mov %eax,%edx
80100850: 2b 15 a0 ff 10 80 sub 0x8010ffa0,%edx
80100856: 83 fa 7f cmp $0x7f,%edx
80100859: 0f 87 71 ff ff ff ja 801007d0 <consoleintr+0x20>
input.buf[input.e++ % INPUT_BUF] = c;
8010085f: 8d 50 01 lea 0x1(%eax),%edx
80100862: 83 e0 7f and $0x7f,%eax
c = (c == '\r') ? '\n' : c;
80100865: 83 ff 0d cmp $0xd,%edi
input.buf[input.e++ % INPUT_BUF] = c;
80100868: 89 15 a8 ff 10 80 mov %edx,0x8010ffa8
c = (c == '\r') ? '\n' : c;
8010086e: 0f 84 b8 00 00 00 je 8010092c <consoleintr+0x17c>
input.buf[input.e++ % INPUT_BUF] = c;
80100874: 89 f9 mov %edi,%ecx
80100876: 88 88 20 ff 10 80 mov %cl,-0x7fef00e0(%eax)
consputc(c);
8010087c: 89 f8 mov %edi,%eax
8010087e: e8 5d fb ff ff call 801003e0 <consputc>
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
80100883: 83 ff 04 cmp $0x4,%edi
80100886: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
8010088b: 74 19 je 801008a6 <consoleintr+0xf6>
8010088d: 83 ff 0a cmp $0xa,%edi
80100890: 74 14 je 801008a6 <consoleintr+0xf6>
80100892: 8b 0d a0 ff 10 80 mov 0x8010ffa0,%ecx
80100898: 8d 91 80 00 00 00 lea 0x80(%ecx),%edx
8010089e: 39 d0 cmp %edx,%eax
801008a0: 0f 85 2a ff ff ff jne 801007d0 <consoleintr+0x20>
wakeup(&input.r);
801008a6: c7 04 24 a0 ff 10 80 movl $0x8010ffa0,(%esp)
input.w = input.e;
801008ad: a3 a4 ff 10 80 mov %eax,0x8010ffa4
wakeup(&input.r);
801008b2: e8 c9 34 00 00 call 80103d80 <wakeup>
801008b7: e9 14 ff ff ff jmp 801007d0 <consoleintr+0x20>
801008bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(input.e != input.w &&
801008c0: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
801008c5: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax
801008cb: 75 2b jne 801008f8 <consoleintr+0x148>
801008cd: e9 fe fe ff ff jmp 801007d0 <consoleintr+0x20>
801008d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
input.e--;
801008d8: a3 a8 ff 10 80 mov %eax,0x8010ffa8
consputc(BACKSPACE);
801008dd: b8 00 01 00 00 mov $0x100,%eax
801008e2: e8 f9 fa ff ff call 801003e0 <consputc>
while(input.e != input.w &&
801008e7: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
801008ec: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax
801008f2: 0f 84 d8 fe ff ff je 801007d0 <consoleintr+0x20>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
801008f8: 83 e8 01 sub $0x1,%eax
801008fb: 89 c2 mov %eax,%edx
801008fd: 83 e2 7f and $0x7f,%edx
while(input.e != input.w &&
80100900: 80 ba 20 ff 10 80 0a cmpb $0xa,-0x7fef00e0(%edx)
80100907: 75 cf jne 801008d8 <consoleintr+0x128>
80100909: e9 c2 fe ff ff jmp 801007d0 <consoleintr+0x20>
8010090e: 66 90 xchg %ax,%ax
doprocdump = 1;
80100910: be 01 00 00 00 mov $0x1,%esi
80100915: e9 b6 fe ff ff jmp 801007d0 <consoleintr+0x20>
8010091a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
}
80100920: 83 c4 1c add $0x1c,%esp
80100923: 5b pop %ebx
80100924: 5e pop %esi
80100925: 5f pop %edi
80100926: 5d pop %ebp
procdump(); // now call procdump() wo. cons.lock held
80100927: e9 34 35 00 00 jmp 80103e60 <procdump>
input.buf[input.e++ % INPUT_BUF] = c;
8010092c: c6 80 20 ff 10 80 0a movb $0xa,-0x7fef00e0(%eax)
consputc(c);
80100933: b8 0a 00 00 00 mov $0xa,%eax
80100938: e8 a3 fa ff ff call 801003e0 <consputc>
8010093d: a1 a8 ff 10 80 mov 0x8010ffa8,%eax
80100942: e9 5f ff ff ff jmp 801008a6 <consoleintr+0xf6>
80100947: 89 f6 mov %esi,%esi
80100949: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100950 <consoleinit>:
void
consoleinit(void)
{
80100950: 55 push %ebp
80100951: 89 e5 mov %esp,%ebp
80100953: 83 ec 18 sub $0x18,%esp
initlock(&cons.lock, "console");
80100956: c7 44 24 04 a8 6e 10 movl $0x80106ea8,0x4(%esp)
8010095d: 80
8010095e: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
80100965: e8 d6 36 00 00 call 80104040 <initlock>
devsw[CONSOLE].write = consolewrite;
devsw[CONSOLE].read = consoleread;
cons.locking = 1;
ioapicenable(IRQ_KBD, 0);
8010096a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80100971: 00
80100972: c7 04 24 01 00 00 00 movl $0x1,(%esp)
devsw[CONSOLE].write = consolewrite;
80100979: c7 05 6c 09 11 80 f0 movl $0x801005f0,0x8011096c
80100980: 05 10 80
devsw[CONSOLE].read = consoleread;
80100983: c7 05 68 09 11 80 70 movl $0x80100270,0x80110968
8010098a: 02 10 80
cons.locking = 1;
8010098d: c7 05 54 a5 10 80 01 movl $0x1,0x8010a554
80100994: 00 00 00
ioapicenable(IRQ_KBD, 0);
80100997: e8 04 19 00 00 call 801022a0 <ioapicenable>
}
8010099c: c9 leave
8010099d: c3 ret
8010099e: 66 90 xchg %ax,%ax
801009a0 <exec>:
#include "x86.h"
#include "elf.h"
int
exec(char *path, char **argv)
{
801009a0: 55 push %ebp
801009a1: 89 e5 mov %esp,%ebp
801009a3: 57 push %edi
801009a4: 56 push %esi
801009a5: 53 push %ebx
801009a6: 81 ec 2c 01 00 00 sub $0x12c,%esp
uint argc, sz, sp, ustack[3+MAXARG+1];
struct elfhdr elf;
struct inode *ip;
struct proghdr ph;
pde_t *pgdir, *oldpgdir;
struct proc *curproc = myproc();
801009ac: e8 df 2c 00 00 call 80103690 <myproc>
801009b1: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp)
begin_op();
801009b7: e8 44 21 00 00 call 80102b00 <begin_op>
if((ip = namei(path)) == 0){
801009bc: 8b 45 08 mov 0x8(%ebp),%eax
801009bf: 89 04 24 mov %eax,(%esp)
801009c2: e8 29 15 00 00 call 80101ef0 <namei>
801009c7: 85 c0 test %eax,%eax
801009c9: 89 c3 mov %eax,%ebx
801009cb: 0f 84 4f 02 00 00 je 80100c20 <exec+0x280>
end_op();
cprintf("exec: fail\n");
return -1;
}
ilock(ip);
801009d1: 89 04 24 mov %eax,(%esp)
801009d4: e8 c7 0c 00 00 call 801016a0 <ilock>
pgdir = 0;
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf))
801009d9: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax
801009df: c7 44 24 0c 34 00 00 movl $0x34,0xc(%esp)
801009e6: 00
801009e7: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801009ee: 00
801009ef: 89 44 24 04 mov %eax,0x4(%esp)
801009f3: 89 1c 24 mov %ebx,(%esp)
801009f6: e8 55 0f 00 00 call 80101950 <readi>
801009fb: 83 f8 34 cmp $0x34,%eax
801009fe: 74 20 je 80100a20 <exec+0x80>
bad:
if(pgdir)
freevm(pgdir);
if(ip){
iunlockput(ip);
80100a00: 89 1c 24 mov %ebx,(%esp)
80100a03: e8 f8 0e 00 00 call 80101900 <iunlockput>
end_op();
80100a08: e8 63 21 00 00 call 80102b70 <end_op>
}
return -1;
80100a0d: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100a12: 81 c4 2c 01 00 00 add $0x12c,%esp
80100a18: 5b pop %ebx
80100a19: 5e pop %esi
80100a1a: 5f pop %edi
80100a1b: 5d pop %ebp
80100a1c: c3 ret
80100a1d: 8d 76 00 lea 0x0(%esi),%esi
if(elf.magic != ELF_MAGIC)
80100a20: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp)
80100a27: 45 4c 46
80100a2a: 75 d4 jne 80100a00 <exec+0x60>
if((pgdir = setupkvm()) == 0)
80100a2c: e8 3f 60 00 00 call 80106a70 <setupkvm>
80100a31: 85 c0 test %eax,%eax
80100a33: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp)
80100a39: 74 c5 je 80100a00 <exec+0x60>
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100a3b: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp)
80100a42: 00
80100a43: 8b b5 40 ff ff ff mov -0xc0(%ebp),%esi
sz = 0;
80100a49: c7 85 ec fe ff ff 00 movl $0x0,-0x114(%ebp)
80100a50: 00 00 00
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100a53: 0f 84 da 00 00 00 je 80100b33 <exec+0x193>
80100a59: 31 ff xor %edi,%edi
80100a5b: eb 18 jmp 80100a75 <exec+0xd5>
80100a5d: 8d 76 00 lea 0x0(%esi),%esi
80100a60: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax
80100a67: 83 c7 01 add $0x1,%edi
80100a6a: 83 c6 20 add $0x20,%esi
80100a6d: 39 f8 cmp %edi,%eax
80100a6f: 0f 8e be 00 00 00 jle 80100b33 <exec+0x193>
if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph))
80100a75: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax
80100a7b: c7 44 24 0c 20 00 00 movl $0x20,0xc(%esp)
80100a82: 00
80100a83: 89 74 24 08 mov %esi,0x8(%esp)
80100a87: 89 44 24 04 mov %eax,0x4(%esp)
80100a8b: 89 1c 24 mov %ebx,(%esp)
80100a8e: e8 bd 0e 00 00 call 80101950 <readi>
80100a93: 83 f8 20 cmp $0x20,%eax
80100a96: 0f 85 84 00 00 00 jne 80100b20 <exec+0x180>
if(ph.type != ELF_PROG_LOAD)
80100a9c: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp)
80100aa3: 75 bb jne 80100a60 <exec+0xc0>
if(ph.memsz < ph.filesz)
80100aa5: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax
80100aab: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax
80100ab1: 72 6d jb 80100b20 <exec+0x180>
if(ph.vaddr + ph.memsz < ph.vaddr)
80100ab3: 03 85 0c ff ff ff add -0xf4(%ebp),%eax
80100ab9: 72 65 jb 80100b20 <exec+0x180>
if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0)
80100abb: 89 44 24 08 mov %eax,0x8(%esp)
80100abf: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax
80100ac5: 89 44 24 04 mov %eax,0x4(%esp)
80100ac9: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100acf: 89 04 24 mov %eax,(%esp)
80100ad2: e8 09 5e 00 00 call 801068e0 <allocuvm>
80100ad7: 85 c0 test %eax,%eax
80100ad9: 89 85 ec fe ff ff mov %eax,-0x114(%ebp)
80100adf: 74 3f je 80100b20 <exec+0x180>
if(ph.vaddr % PGSIZE != 0)
80100ae1: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax
80100ae7: a9 ff 0f 00 00 test $0xfff,%eax
80100aec: 75 32 jne 80100b20 <exec+0x180>
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
80100aee: 8b 95 14 ff ff ff mov -0xec(%ebp),%edx
80100af4: 89 44 24 04 mov %eax,0x4(%esp)
80100af8: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100afe: 89 5c 24 08 mov %ebx,0x8(%esp)
80100b02: 89 54 24 10 mov %edx,0x10(%esp)
80100b06: 8b 95 08 ff ff ff mov -0xf8(%ebp),%edx
80100b0c: 89 04 24 mov %eax,(%esp)
80100b0f: 89 54 24 0c mov %edx,0xc(%esp)
80100b13: e8 08 5d 00 00 call 80106820 <loaduvm>
80100b18: 85 c0 test %eax,%eax
80100b1a: 0f 89 40 ff ff ff jns 80100a60 <exec+0xc0>
freevm(pgdir);
80100b20: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100b26: 89 04 24 mov %eax,(%esp)
80100b29: e8 c2 5e 00 00 call 801069f0 <freevm>
80100b2e: e9 cd fe ff ff jmp 80100a00 <exec+0x60>
iunlockput(ip);
80100b33: 89 1c 24 mov %ebx,(%esp)
80100b36: e8 c5 0d 00 00 call 80101900 <iunlockput>
80100b3b: 90 nop
80100b3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
end_op();
80100b40: e8 2b 20 00 00 call 80102b70 <end_op>
if (allocuvm(pgdir, STACKTOP - PGSIZE, STACKTOP) == 0)
80100b45: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100b4b: c7 44 24 08 fc ff ff movl $0x7ffffffc,0x8(%esp)
80100b52: 7f
80100b53: c7 44 24 04 fc ef ff movl $0x7fffeffc,0x4(%esp)
80100b5a: 7f
80100b5b: 89 04 24 mov %eax,(%esp)
80100b5e: e8 7d 5d 00 00 call 801068e0 <allocuvm>
80100b63: 85 c0 test %eax,%eax
80100b65: 0f 84 9d 00 00 00 je 80100c08 <exec+0x268>
curproc->numPage = 1;
80100b6b: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
80100b71: c7 40 7c 01 00 00 00 movl $0x1,0x7c(%eax)
for(argc = 0; argv[argc]; argc++) {
80100b78: 8b 45 0c mov 0xc(%ebp),%eax
80100b7b: 8b 00 mov (%eax),%eax
80100b7d: 85 c0 test %eax,%eax
80100b7f: 0f 84 97 01 00 00 je 80100d1c <exec+0x37c>
80100b85: 8b 4d 0c mov 0xc(%ebp),%ecx
80100b88: 31 d2 xor %edx,%edx
sp = STACKTOP;
80100b8a: bb fc ff ff 7f mov $0x7ffffffc,%ebx
80100b8f: 8d 71 04 lea 0x4(%ecx),%esi
for(argc = 0; argv[argc]; argc++) {
80100b92: 89 cf mov %ecx,%edi
80100b94: 89 d1 mov %edx,%ecx
80100b96: 89 f2 mov %esi,%edx
80100b98: 89 ce mov %ecx,%esi
80100b9a: eb 2a jmp 80100bc6 <exec+0x226>
80100b9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100ba0: 8b 95 e8 fe ff ff mov -0x118(%ebp),%edx
ustack[3+argc] = sp;
80100ba6: 8d 8d 58 ff ff ff lea -0xa8(%ebp),%ecx
80100bac: 89 9c b5 64 ff ff ff mov %ebx,-0x9c(%ebp,%esi,4)
for(argc = 0; argv[argc]; argc++) {
80100bb3: 83 c6 01 add $0x1,%esi
80100bb6: 8b 02 mov (%edx),%eax
80100bb8: 89 d7 mov %edx,%edi
80100bba: 85 c0 test %eax,%eax
80100bbc: 74 7d je 80100c3b <exec+0x29b>
80100bbe: 83 c2 04 add $0x4,%edx
if(argc >= MAXARG)
80100bc1: 83 fe 20 cmp $0x20,%esi
80100bc4: 74 42 je 80100c08 <exec+0x268>
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100bc6: 89 04 24 mov %eax,(%esp)
80100bc9: 89 95 e8 fe ff ff mov %edx,-0x118(%ebp)
80100bcf: e8 bc 38 00 00 call 80104490 <strlen>
80100bd4: f7 d0 not %eax
80100bd6: 01 c3 add %eax,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100bd8: 8b 07 mov (%edi),%eax
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100bda: 83 e3 fc and $0xfffffffc,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100bdd: 89 04 24 mov %eax,(%esp)
80100be0: e8 ab 38 00 00 call 80104490 <strlen>
80100be5: 83 c0 01 add $0x1,%eax
80100be8: 89 44 24 0c mov %eax,0xc(%esp)
80100bec: 8b 07 mov (%edi),%eax
80100bee: 89 5c 24 04 mov %ebx,0x4(%esp)
80100bf2: 89 44 24 08 mov %eax,0x8(%esp)
80100bf6: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100bfc: 89 04 24 mov %eax,(%esp)
80100bff: e8 1c 61 00 00 call 80106d20 <copyout>
80100c04: 85 c0 test %eax,%eax
80100c06: 79 98 jns 80100ba0 <exec+0x200>
freevm(pgdir);
80100c08: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100c0e: 89 04 24 mov %eax,(%esp)
80100c11: e8 da 5d 00 00 call 801069f0 <freevm>
return -1;
80100c16: b8 ff ff ff ff mov $0xffffffff,%eax
80100c1b: e9 f2 fd ff ff jmp 80100a12 <exec+0x72>
end_op();
80100c20: e8 4b 1f 00 00 call 80102b70 <end_op>
cprintf("exec: fail\n");
80100c25: c7 04 24 c1 6e 10 80 movl $0x80106ec1,(%esp)
80100c2c: e8 1f fa ff ff call 80100650 <cprintf>
return -1;
80100c31: b8 ff ff ff ff mov $0xffffffff,%eax
80100c36: e9 d7 fd ff ff jmp 80100a12 <exec+0x72>
80100c3b: 89 f2 mov %esi,%edx
ustack[3+argc] = 0;
80100c3d: c7 84 95 64 ff ff ff movl $0x0,-0x9c(%ebp,%edx,4)
80100c44: 00 00 00 00
ustack[2] = sp - (argc+1)*4; // argv pointer
80100c48: 8d 04 95 04 00 00 00 lea 0x4(,%edx,4),%eax
ustack[1] = argc;
80100c4f: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100c55: 89 da mov %ebx,%edx
80100c57: 29 c2 sub %eax,%edx
sp -= (3+argc+1) * 4;
80100c59: 83 c0 0c add $0xc,%eax
80100c5c: 29 c3 sub %eax,%ebx
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100c5e: 89 44 24 0c mov %eax,0xc(%esp)
80100c62: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax
80100c68: 89 4c 24 08 mov %ecx,0x8(%esp)
80100c6c: 89 5c 24 04 mov %ebx,0x4(%esp)
ustack[0] = 0xffffffff; // fake return PC
80100c70: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp)
80100c77: ff ff ff
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100c7a: 89 04 24 mov %eax,(%esp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100c7d: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp)
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100c83: e8 98 60 00 00 call 80106d20 <copyout>
80100c88: 85 c0 test %eax,%eax
80100c8a: 0f 88 78 ff ff ff js 80100c08 <exec+0x268>
for(last=s=path; *s; s++)
80100c90: 8b 45 08 mov 0x8(%ebp),%eax
80100c93: 0f b6 10 movzbl (%eax),%edx
80100c96: 84 d2 test %dl,%dl
80100c98: 74 19 je 80100cb3 <exec+0x313>
80100c9a: 8b 4d 08 mov 0x8(%ebp),%ecx
80100c9d: 83 c0 01 add $0x1,%eax
last = s+1;
80100ca0: 80 fa 2f cmp $0x2f,%dl
for(last=s=path; *s; s++)
80100ca3: 0f b6 10 movzbl (%eax),%edx
last = s+1;
80100ca6: 0f 44 c8 cmove %eax,%ecx
80100ca9: 83 c0 01 add $0x1,%eax
for(last=s=path; *s; s++)
80100cac: 84 d2 test %dl,%dl
80100cae: 75 f0 jne 80100ca0 <exec+0x300>
80100cb0: 89 4d 08 mov %ecx,0x8(%ebp)
safestrcpy(curproc->name, last, sizeof(curproc->name));
80100cb3: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi
80100cb9: 8b 45 08 mov 0x8(%ebp),%eax
80100cbc: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80100cc3: 00
80100cc4: 89 44 24 04 mov %eax,0x4(%esp)
80100cc8: 89 f8 mov %edi,%eax
80100cca: 83 c0 6c add $0x6c,%eax
80100ccd: 89 04 24 mov %eax,(%esp)
80100cd0: e8 7b 37 00 00 call 80104450 <safestrcpy>
sz = PGROUNDUP(sz);
80100cd5: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax
curproc->pgdir = pgdir;
80100cdb: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx
oldpgdir = curproc->pgdir;
80100ce1: 8b 77 04 mov 0x4(%edi),%esi
sz = PGROUNDUP(sz);
80100ce4: 05 ff 0f 00 00 add $0xfff,%eax
80100ce9: 25 00 f0 ff ff and $0xfffff000,%eax
80100cee: 89 07 mov %eax,(%edi)
curproc->tf->eip = elf.entry; // main
80100cf0: 8b 47 18 mov 0x18(%edi),%eax
curproc->pgdir = pgdir;
80100cf3: 89 57 04 mov %edx,0x4(%edi)
curproc->tf->eip = elf.entry; // main
80100cf6: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx
80100cfc: 89 50 38 mov %edx,0x38(%eax)
curproc->tf->esp = sp;
80100cff: 8b 47 18 mov 0x18(%edi),%eax
80100d02: 89 58 44 mov %ebx,0x44(%eax)
switchuvm(curproc);
80100d05: 89 3c 24 mov %edi,(%esp)
80100d08: e8 83 59 00 00 call 80106690 <switchuvm>
freevm(oldpgdir);
80100d0d: 89 34 24 mov %esi,(%esp)
80100d10: e8 db 5c 00 00 call 801069f0 <freevm>
return 0;
80100d15: 31 c0 xor %eax,%eax
80100d17: e9 f6 fc ff ff jmp 80100a12 <exec+0x72>
sp = STACKTOP;
80100d1c: bb fc ff ff 7f mov $0x7ffffffc,%ebx
for(argc = 0; argv[argc]; argc++) {
80100d21: 31 d2 xor %edx,%edx
80100d23: 8d 8d 58 ff ff ff lea -0xa8(%ebp),%ecx
80100d29: e9 0f ff ff ff jmp 80100c3d <exec+0x29d>
80100d2e: 66 90 xchg %ax,%ax
80100d30 <fileinit>:
struct file file[NFILE];
} ftable;
void
fileinit(void)
{
80100d30: 55 push %ebp
80100d31: 89 e5 mov %esp,%ebp
80100d33: 83 ec 18 sub $0x18,%esp
initlock(&ftable.lock, "ftable");
80100d36: c7 44 24 04 cd 6e 10 movl $0x80106ecd,0x4(%esp)
80100d3d: 80
80100d3e: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100d45: e8 f6 32 00 00 call 80104040 <initlock>
}
80100d4a: c9 leave
80100d4b: c3 ret
80100d4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100d50 <filealloc>:
// Allocate a file structure.
struct file*
filealloc(void)
{
80100d50: 55 push %ebp
80100d51: 89 e5 mov %esp,%ebp
80100d53: 53 push %ebx
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100d54: bb f4 ff 10 80 mov $0x8010fff4,%ebx
{
80100d59: 83 ec 14 sub $0x14,%esp
acquire(&ftable.lock);
80100d5c: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100d63: e8 c8 33 00 00 call 80104130 <acquire>
80100d68: eb 11 jmp 80100d7b <filealloc+0x2b>
80100d6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100d70: 83 c3 18 add $0x18,%ebx
80100d73: 81 fb 54 09 11 80 cmp $0x80110954,%ebx
80100d79: 74 25 je 80100da0 <filealloc+0x50>
if(f->ref == 0){
80100d7b: 8b 43 04 mov 0x4(%ebx),%eax
80100d7e: 85 c0 test %eax,%eax
80100d80: 75 ee jne 80100d70 <filealloc+0x20>
f->ref = 1;
release(&ftable.lock);
80100d82: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
f->ref = 1;
80100d89: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
release(&ftable.lock);
80100d90: e8 8b 34 00 00 call 80104220 <release>
return f;
}
}
release(&ftable.lock);
return 0;
}
80100d95: 83 c4 14 add $0x14,%esp
return f;
80100d98: 89 d8 mov %ebx,%eax
}
80100d9a: 5b pop %ebx
80100d9b: 5d pop %ebp
80100d9c: c3 ret
80100d9d: 8d 76 00 lea 0x0(%esi),%esi
release(&ftable.lock);
80100da0: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100da7: e8 74 34 00 00 call 80104220 <release>
}
80100dac: 83 c4 14 add $0x14,%esp
return 0;
80100daf: 31 c0 xor %eax,%eax
}
80100db1: 5b pop %ebx
80100db2: 5d pop %ebp
80100db3: c3 ret
80100db4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100dba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80100dc0 <filedup>:
// Increment ref count for file f.
struct file*
filedup(struct file *f)
{
80100dc0: 55 push %ebp
80100dc1: 89 e5 mov %esp,%ebp
80100dc3: 53 push %ebx
80100dc4: 83 ec 14 sub $0x14,%esp
80100dc7: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ftable.lock);
80100dca: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100dd1: e8 5a 33 00 00 call 80104130 <acquire>
if(f->ref < 1)
80100dd6: 8b 43 04 mov 0x4(%ebx),%eax
80100dd9: 85 c0 test %eax,%eax
80100ddb: 7e 1a jle 80100df7 <filedup+0x37>
panic("filedup");
f->ref++;
80100ddd: 83 c0 01 add $0x1,%eax
80100de0: 89 43 04 mov %eax,0x4(%ebx)
release(&ftable.lock);
80100de3: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100dea: e8 31 34 00 00 call 80104220 <release>
return f;
}
80100def: 83 c4 14 add $0x14,%esp
80100df2: 89 d8 mov %ebx,%eax
80100df4: 5b pop %ebx
80100df5: 5d pop %ebp
80100df6: c3 ret
panic("filedup");
80100df7: c7 04 24 d4 6e 10 80 movl $0x80106ed4,(%esp)
80100dfe: e8 5d f5 ff ff call 80100360 <panic>
80100e03: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100e09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100e10 <fileclose>:
// Close file f. (Decrement ref count, close when reaches 0.)
void
fileclose(struct file *f)
{
80100e10: 55 push %ebp
80100e11: 89 e5 mov %esp,%ebp
80100e13: 57 push %edi
80100e14: 56 push %esi
80100e15: 53 push %ebx
80100e16: 83 ec 1c sub $0x1c,%esp
80100e19: 8b 7d 08 mov 0x8(%ebp),%edi
struct file ff;
acquire(&ftable.lock);
80100e1c: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
80100e23: e8 08 33 00 00 call 80104130 <acquire>
if(f->ref < 1)
80100e28: 8b 57 04 mov 0x4(%edi),%edx
80100e2b: 85 d2 test %edx,%edx
80100e2d: 0f 8e 89 00 00 00 jle 80100ebc <fileclose+0xac>
panic("fileclose");
if(--f->ref > 0){
80100e33: 83 ea 01 sub $0x1,%edx
80100e36: 85 d2 test %edx,%edx
80100e38: 89 57 04 mov %edx,0x4(%edi)
80100e3b: 74 13 je 80100e50 <fileclose+0x40>
release(&ftable.lock);
80100e3d: c7 45 08 c0 ff 10 80 movl $0x8010ffc0,0x8(%ebp)
else if(ff.type == FD_INODE){
begin_op();
iput(ff.ip);
end_op();
}
}
80100e44: 83 c4 1c add $0x1c,%esp
80100e47: 5b pop %ebx
80100e48: 5e pop %esi
80100e49: 5f pop %edi
80100e4a: 5d pop %ebp
release(&ftable.lock);
80100e4b: e9 d0 33 00 00 jmp 80104220 <release>
ff = *f;
80100e50: 0f b6 47 09 movzbl 0x9(%edi),%eax
80100e54: 8b 37 mov (%edi),%esi
80100e56: 8b 5f 0c mov 0xc(%edi),%ebx
f->type = FD_NONE;
80100e59: c7 07 00 00 00 00 movl $0x0,(%edi)
ff = *f;
80100e5f: 88 45 e7 mov %al,-0x19(%ebp)
80100e62: 8b 47 10 mov 0x10(%edi),%eax
release(&ftable.lock);
80100e65: c7 04 24 c0 ff 10 80 movl $0x8010ffc0,(%esp)
ff = *f;
80100e6c: 89 45 e0 mov %eax,-0x20(%ebp)
release(&ftable.lock);
80100e6f: e8 ac 33 00 00 call 80104220 <release>
if(ff.type == FD_PIPE)
80100e74: 83 fe 01 cmp $0x1,%esi
80100e77: 74 0f je 80100e88 <fileclose+0x78>
else if(ff.type == FD_INODE){
80100e79: 83 fe 02 cmp $0x2,%esi
80100e7c: 74 22 je 80100ea0 <fileclose+0x90>
}
80100e7e: 83 c4 1c add $0x1c,%esp
80100e81: 5b pop %ebx
80100e82: 5e pop %esi
80100e83: 5f pop %edi
80100e84: 5d pop %ebp
80100e85: c3 ret
80100e86: 66 90 xchg %ax,%ax
pipeclose(ff.pipe, ff.writable);
80100e88: 0f be 75 e7 movsbl -0x19(%ebp),%esi
80100e8c: 89 1c 24 mov %ebx,(%esp)
80100e8f: 89 74 24 04 mov %esi,0x4(%esp)
80100e93: e8 b8 23 00 00 call 80103250 <pipeclose>
80100e98: eb e4 jmp 80100e7e <fileclose+0x6e>
80100e9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
begin_op();
80100ea0: e8 5b 1c 00 00 call 80102b00 <begin_op>
iput(ff.ip);
80100ea5: 8b 45 e0 mov -0x20(%ebp),%eax
80100ea8: 89 04 24 mov %eax,(%esp)
80100eab: e8 10 09 00 00 call 801017c0 <iput>
}
80100eb0: 83 c4 1c add $0x1c,%esp
80100eb3: 5b pop %ebx
80100eb4: 5e pop %esi
80100eb5: 5f pop %edi
80100eb6: 5d pop %ebp
end_op();
80100eb7: e9 b4 1c 00 00 jmp 80102b70 <end_op>
panic("fileclose");
80100ebc: c7 04 24 dc 6e 10 80 movl $0x80106edc,(%esp)
80100ec3: e8 98 f4 ff ff call 80100360 <panic>
80100ec8: 90 nop
80100ec9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100ed0 <filestat>:
// Get metadata about file f.
int
filestat(struct file *f, struct stat *st)
{
80100ed0: 55 push %ebp
80100ed1: 89 e5 mov %esp,%ebp
80100ed3: 53 push %ebx
80100ed4: 83 ec 14 sub $0x14,%esp
80100ed7: 8b 5d 08 mov 0x8(%ebp),%ebx
if(f->type == FD_INODE){
80100eda: 83 3b 02 cmpl $0x2,(%ebx)
80100edd: 75 31 jne 80100f10 <filestat+0x40>
ilock(f->ip);
80100edf: 8b 43 10 mov 0x10(%ebx),%eax
80100ee2: 89 04 24 mov %eax,(%esp)
80100ee5: e8 b6 07 00 00 call 801016a0 <ilock>
stati(f->ip, st);
80100eea: 8b 45 0c mov 0xc(%ebp),%eax
80100eed: 89 44 24 04 mov %eax,0x4(%esp)
80100ef1: 8b 43 10 mov 0x10(%ebx),%eax
80100ef4: 89 04 24 mov %eax,(%esp)
80100ef7: e8 24 0a 00 00 call 80101920 <stati>
iunlock(f->ip);
80100efc: 8b 43 10 mov 0x10(%ebx),%eax
80100eff: 89 04 24 mov %eax,(%esp)
80100f02: e8 79 08 00 00 call 80101780 <iunlock>
return 0;
}
return -1;
}
80100f07: 83 c4 14 add $0x14,%esp
return 0;
80100f0a: 31 c0 xor %eax,%eax
}
80100f0c: 5b pop %ebx
80100f0d: 5d pop %ebp
80100f0e: c3 ret
80100f0f: 90 nop
80100f10: 83 c4 14 add $0x14,%esp
return -1;
80100f13: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100f18: 5b pop %ebx
80100f19: 5d pop %ebp
80100f1a: c3 ret
80100f1b: 90 nop
80100f1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100f20 <fileread>:
// Read from file f.
int
fileread(struct file *f, char *addr, int n)
{
80100f20: 55 push %ebp
80100f21: 89 e5 mov %esp,%ebp
80100f23: 57 push %edi
80100f24: 56 push %esi
80100f25: 53 push %ebx
80100f26: 83 ec 1c sub $0x1c,%esp
80100f29: 8b 5d 08 mov 0x8(%ebp),%ebx
80100f2c: 8b 75 0c mov 0xc(%ebp),%esi
80100f2f: 8b 7d 10 mov 0x10(%ebp),%edi
int r;
if(f->readable == 0)
80100f32: 80 7b 08 00 cmpb $0x0,0x8(%ebx)
80100f36: 74 68 je 80100fa0 <fileread+0x80>
return -1;
if(f->type == FD_PIPE)
80100f38: 8b 03 mov (%ebx),%eax
80100f3a: 83 f8 01 cmp $0x1,%eax
80100f3d: 74 49 je 80100f88 <fileread+0x68>
return piperead(f->pipe, addr, n);
if(f->type == FD_INODE){
80100f3f: 83 f8 02 cmp $0x2,%eax
80100f42: 75 63 jne 80100fa7 <fileread+0x87>
ilock(f->ip);
80100f44: 8b 43 10 mov 0x10(%ebx),%eax
80100f47: 89 04 24 mov %eax,(%esp)
80100f4a: e8 51 07 00 00 call 801016a0 <ilock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
80100f4f: 89 7c 24 0c mov %edi,0xc(%esp)
80100f53: 8b 43 14 mov 0x14(%ebx),%eax
80100f56: 89 74 24 04 mov %esi,0x4(%esp)
80100f5a: 89 44 24 08 mov %eax,0x8(%esp)
80100f5e: 8b 43 10 mov 0x10(%ebx),%eax
80100f61: 89 04 24 mov %eax,(%esp)
80100f64: e8 e7 09 00 00 call 80101950 <readi>
80100f69: 85 c0 test %eax,%eax
80100f6b: 89 c6 mov %eax,%esi
80100f6d: 7e 03 jle 80100f72 <fileread+0x52>
f->off += r;
80100f6f: 01 43 14 add %eax,0x14(%ebx)
iunlock(f->ip);
80100f72: 8b 43 10 mov 0x10(%ebx),%eax
80100f75: 89 04 24 mov %eax,(%esp)
80100f78: e8 03 08 00 00 call 80101780 <iunlock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
80100f7d: 89 f0 mov %esi,%eax
return r;
}
panic("fileread");
}
80100f7f: 83 c4 1c add $0x1c,%esp
80100f82: 5b pop %ebx
80100f83: 5e pop %esi
80100f84: 5f pop %edi
80100f85: 5d pop %ebp
80100f86: c3 ret
80100f87: 90 nop
return piperead(f->pipe, addr, n);
80100f88: 8b 43 0c mov 0xc(%ebx),%eax
80100f8b: 89 45 08 mov %eax,0x8(%ebp)
}
80100f8e: 83 c4 1c add $0x1c,%esp
80100f91: 5b pop %ebx
80100f92: 5e pop %esi
80100f93: 5f pop %edi
80100f94: 5d pop %ebp
return piperead(f->pipe, addr, n);
80100f95: e9 36 24 00 00 jmp 801033d0 <piperead>
80100f9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80100fa0: b8 ff ff ff ff mov $0xffffffff,%eax
80100fa5: eb d8 jmp 80100f7f <fileread+0x5f>
panic("fileread");
80100fa7: c7 04 24 e6 6e 10 80 movl $0x80106ee6,(%esp)
80100fae: e8 ad f3 ff ff call 80100360 <panic>
80100fb3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100fb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100fc0 <filewrite>:
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
80100fc0: 55 push %ebp
80100fc1: 89 e5 mov %esp,%ebp
80100fc3: 57 push %edi
80100fc4: 56 push %esi
80100fc5: 53 push %ebx
80100fc6: 83 ec 2c sub $0x2c,%esp
80100fc9: 8b 45 0c mov 0xc(%ebp),%eax
80100fcc: 8b 7d 08 mov 0x8(%ebp),%edi
80100fcf: 89 45 dc mov %eax,-0x24(%ebp)
80100fd2: 8b 45 10 mov 0x10(%ebp),%eax
int r;
if(f->writable == 0)
80100fd5: 80 7f 09 00 cmpb $0x0,0x9(%edi)
{
80100fd9: 89 45 e4 mov %eax,-0x1c(%ebp)
if(f->writable == 0)
80100fdc: 0f 84 ae 00 00 00 je 80101090 <filewrite+0xd0>
return -1;
if(f->type == FD_PIPE)
80100fe2: 8b 07 mov (%edi),%eax
80100fe4: 83 f8 01 cmp $0x1,%eax
80100fe7: 0f 84 c2 00 00 00 je 801010af <filewrite+0xef>
return pipewrite(f->pipe, addr, n);
if(f->type == FD_INODE){
80100fed: 83 f8 02 cmp $0x2,%eax
80100ff0: 0f 85 d7 00 00 00 jne 801010cd <filewrite+0x10d>
// 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){
80100ff6: 8b 45 e4 mov -0x1c(%ebp),%eax
80100ff9: 31 db xor %ebx,%ebx
80100ffb: 85 c0 test %eax,%eax
80100ffd: 7f 31 jg 80101030 <filewrite+0x70>
80100fff: e9 9c 00 00 00 jmp 801010a0 <filewrite+0xe0>
80101004: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
begin_op();
ilock(f->ip);
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
f->off += r;
iunlock(f->ip);
80101008: 8b 4f 10 mov 0x10(%edi),%ecx
f->off += r;
8010100b: 01 47 14 add %eax,0x14(%edi)
8010100e: 89 45 e0 mov %eax,-0x20(%ebp)
iunlock(f->ip);
80101011: 89 0c 24 mov %ecx,(%esp)
80101014: e8 67 07 00 00 call 80101780 <iunlock>
end_op();
80101019: e8 52 1b 00 00 call 80102b70 <end_op>
8010101e: 8b 45 e0 mov -0x20(%ebp),%eax
if(r < 0)
break;
if(r != n1)
80101021: 39 f0 cmp %esi,%eax
80101023: 0f 85 98 00 00 00 jne 801010c1 <filewrite+0x101>
panic("short filewrite");
i += r;
80101029: 01 c3 add %eax,%ebx
while(i < n){
8010102b: 39 5d e4 cmp %ebx,-0x1c(%ebp)
8010102e: 7e 70 jle 801010a0 <filewrite+0xe0>
int n1 = n - i;
80101030: 8b 75 e4 mov -0x1c(%ebp),%esi
80101033: b8 00 1a 00 00 mov $0x1a00,%eax
80101038: 29 de sub %ebx,%esi
8010103a: 81 fe 00 1a 00 00 cmp $0x1a00,%esi
80101040: 0f 4f f0 cmovg %eax,%esi
begin_op();
80101043: e8 b8 1a 00 00 call 80102b00 <begin_op>
ilock(f->ip);
80101048: 8b 47 10 mov 0x10(%edi),%eax
8010104b: 89 04 24 mov %eax,(%esp)
8010104e: e8 4d 06 00 00 call 801016a0 <ilock>
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
80101053: 89 74 24 0c mov %esi,0xc(%esp)
80101057: 8b 47 14 mov 0x14(%edi),%eax
8010105a: 89 44 24 08 mov %eax,0x8(%esp)
8010105e: 8b 45 dc mov -0x24(%ebp),%eax
80101061: 01 d8 add %ebx,%eax
80101063: 89 44 24 04 mov %eax,0x4(%esp)
80101067: 8b 47 10 mov 0x10(%edi),%eax
8010106a: 89 04 24 mov %eax,(%esp)
8010106d: e8 de 09 00 00 call 80101a50 <writei>
80101072: 85 c0 test %eax,%eax
80101074: 7f 92 jg 80101008 <filewrite+0x48>
iunlock(f->ip);
80101076: 8b 4f 10 mov 0x10(%edi),%ecx
80101079: 89 45 e0 mov %eax,-0x20(%ebp)
8010107c: 89 0c 24 mov %ecx,(%esp)
8010107f: e8 fc 06 00 00 call 80101780 <iunlock>
end_op();
80101084: e8 e7 1a 00 00 call 80102b70 <end_op>
if(r < 0)
80101089: 8b 45 e0 mov -0x20(%ebp),%eax
8010108c: 85 c0 test %eax,%eax
8010108e: 74 91 je 80101021 <filewrite+0x61>
}
return i == n ? n : -1;
}
panic("filewrite");
}
80101090: 83 c4 2c add $0x2c,%esp
return -1;
80101093: b8 ff ff ff ff mov $0xffffffff,%eax
}
80101098: 5b pop %ebx
80101099: 5e pop %esi
8010109a: 5f pop %edi
8010109b: 5d pop %ebp
8010109c: c3 ret
8010109d: 8d 76 00 lea 0x0(%esi),%esi
return i == n ? n : -1;
801010a0: 3b 5d e4 cmp -0x1c(%ebp),%ebx
801010a3: 89 d8 mov %ebx,%eax
801010a5: 75 e9 jne 80101090 <filewrite+0xd0>
}
801010a7: 83 c4 2c add $0x2c,%esp
801010aa: 5b pop %ebx
801010ab: 5e pop %esi
801010ac: 5f pop %edi
801010ad: 5d pop %ebp
801010ae: c3 ret
return pipewrite(f->pipe, addr, n);
801010af: 8b 47 0c mov 0xc(%edi),%eax
801010b2: 89 45 08 mov %eax,0x8(%ebp)
}
801010b5: 83 c4 2c add $0x2c,%esp
801010b8: 5b pop %ebx
801010b9: 5e pop %esi
801010ba: 5f pop %edi
801010bb: 5d pop %ebp
return pipewrite(f->pipe, addr, n);
801010bc: e9 1f 22 00 00 jmp 801032e0 <pipewrite>
panic("short filewrite");
801010c1: c7 04 24 ef 6e 10 80 movl $0x80106eef,(%esp)
801010c8: e8 93 f2 ff ff call 80100360 <panic>
panic("filewrite");
801010cd: c7 04 24 f5 6e 10 80 movl $0x80106ef5,(%esp)
801010d4: e8 87 f2 ff ff call 80100360 <panic>
801010d9: 66 90 xchg %ax,%ax
801010db: 66 90 xchg %ax,%ax
801010dd: 66 90 xchg %ax,%ax
801010df: 90 nop
801010e0 <balloc>:
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
801010e0: 55 push %ebp
801010e1: 89 e5 mov %esp,%ebp
801010e3: 57 push %edi
801010e4: 56 push %esi
801010e5: 53 push %ebx
801010e6: 83 ec 2c sub $0x2c,%esp
801010e9: 89 45 d8 mov %eax,-0x28(%ebp)
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
801010ec: a1 c0 09 11 80 mov 0x801109c0,%eax
801010f1: 85 c0 test %eax,%eax
801010f3: 0f 84 8c 00 00 00 je 80101185 <balloc+0xa5>
801010f9: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
bp = bread(dev, BBLOCK(b, sb));
80101100: 8b 75 dc mov -0x24(%ebp),%esi
80101103: 89 f0 mov %esi,%eax
80101105: c1 f8 0c sar $0xc,%eax
80101108: 03 05 d8 09 11 80 add 0x801109d8,%eax
8010110e: 89 44 24 04 mov %eax,0x4(%esp)
80101112: 8b 45 d8 mov -0x28(%ebp),%eax
80101115: 89 04 24 mov %eax,(%esp)
80101118: e8 b3 ef ff ff call 801000d0 <bread>
8010111d: 89 45 e4 mov %eax,-0x1c(%ebp)
80101120: a1 c0 09 11 80 mov 0x801109c0,%eax
80101125: 89 45 e0 mov %eax,-0x20(%ebp)
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
80101128: 31 c0 xor %eax,%eax
8010112a: eb 33 jmp 8010115f <balloc+0x7f>
8010112c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
m = 1 << (bi % 8);
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101130: 8b 5d e4 mov -0x1c(%ebp),%ebx
80101133: 89 c2 mov %eax,%edx
m = 1 << (bi % 8);
80101135: 89 c1 mov %eax,%ecx
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101137: c1 fa 03 sar $0x3,%edx
m = 1 << (bi % 8);
8010113a: 83 e1 07 and $0x7,%ecx
8010113d: bf 01 00 00 00 mov $0x1,%edi
80101142: d3 e7 shl %cl,%edi
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101144: 0f b6 5c 13 5c movzbl 0x5c(%ebx,%edx,1),%ebx
m = 1 << (bi % 8);
80101149: 89 f9 mov %edi,%ecx
if((bp->data[bi/8] & m) == 0){ // Is block free?
8010114b: 0f b6 fb movzbl %bl,%edi
8010114e: 85 cf test %ecx,%edi
80101150: 74 46 je 80101198 <balloc+0xb8>
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
80101152: 83 c0 01 add $0x1,%eax
80101155: 83 c6 01 add $0x1,%esi
80101158: 3d 00 10 00 00 cmp $0x1000,%eax
8010115d: 74 05 je 80101164 <balloc+0x84>
8010115f: 3b 75 e0 cmp -0x20(%ebp),%esi
80101162: 72 cc jb 80101130 <balloc+0x50>
brelse(bp);
bzero(dev, b + bi);
return b + bi;
}
}
brelse(bp);
80101164: 8b 45 e4 mov -0x1c(%ebp),%eax
80101167: 89 04 24 mov %eax,(%esp)
8010116a: e8 71 f0 ff ff call 801001e0 <brelse>
for(b = 0; b < sb.size; b += BPB){
8010116f: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp)
80101176: 8b 45 dc mov -0x24(%ebp),%eax
80101179: 3b 05 c0 09 11 80 cmp 0x801109c0,%eax
8010117f: 0f 82 7b ff ff ff jb 80101100 <balloc+0x20>
}
panic("balloc: out of blocks");
80101185: c7 04 24 ff 6e 10 80 movl $0x80106eff,(%esp)
8010118c: e8 cf f1 ff ff call 80100360 <panic>
80101191: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
bp->data[bi/8] |= m; // Mark block in use.
80101198: 09 d9 or %ebx,%ecx
8010119a: 8b 5d e4 mov -0x1c(%ebp),%ebx
8010119d: 88 4c 13 5c mov %cl,0x5c(%ebx,%edx,1)
log_write(bp);
801011a1: 89 1c 24 mov %ebx,(%esp)
801011a4: e8 f7 1a 00 00 call 80102ca0 <log_write>
brelse(bp);
801011a9: 89 1c 24 mov %ebx,(%esp)
801011ac: e8 2f f0 ff ff call 801001e0 <brelse>
bp = bread(dev, bno);
801011b1: 8b 45 d8 mov -0x28(%ebp),%eax
801011b4: 89 74 24 04 mov %esi,0x4(%esp)
801011b8: 89 04 24 mov %eax,(%esp)
801011bb: e8 10 ef ff ff call 801000d0 <bread>
memset(bp->data, 0, BSIZE);
801011c0: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
801011c7: 00
801011c8: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801011cf: 00
bp = bread(dev, bno);
801011d0: 89 c3 mov %eax,%ebx
memset(bp->data, 0, BSIZE);
801011d2: 8d 40 5c lea 0x5c(%eax),%eax
801011d5: 89 04 24 mov %eax,(%esp)
801011d8: e8 93 30 00 00 call 80104270 <memset>
log_write(bp);
801011dd: 89 1c 24 mov %ebx,(%esp)
801011e0: e8 bb 1a 00 00 call 80102ca0 <log_write>
brelse(bp);
801011e5: 89 1c 24 mov %ebx,(%esp)
801011e8: e8 f3 ef ff ff call 801001e0 <brelse>
}
801011ed: 83 c4 2c add $0x2c,%esp
801011f0: 89 f0 mov %esi,%eax
801011f2: 5b pop %ebx
801011f3: 5e pop %esi
801011f4: 5f pop %edi
801011f5: 5d pop %ebp
801011f6: c3 ret
801011f7: 89 f6 mov %esi,%esi
801011f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101200 <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)
{
80101200: 55 push %ebp
80101201: 89 e5 mov %esp,%ebp
80101203: 57 push %edi
80101204: 89 c7 mov %eax,%edi
80101206: 56 push %esi
struct inode *ip, *empty;
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
80101207: 31 f6 xor %esi,%esi
{
80101209: 53 push %ebx
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010120a: bb 14 0a 11 80 mov $0x80110a14,%ebx
{
8010120f: 83 ec 1c sub $0x1c,%esp
acquire(&icache.lock);
80101212: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
{
80101219: 89 55 e4 mov %edx,-0x1c(%ebp)
acquire(&icache.lock);
8010121c: e8 0f 2f 00 00 call 80104130 <acquire>
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101221: 8b 55 e4 mov -0x1c(%ebp),%edx
80101224: eb 14 jmp 8010123a <iget+0x3a>
80101226: 66 90 xchg %ax,%ax
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
release(&icache.lock);
return ip;
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
80101228: 85 f6 test %esi,%esi
8010122a: 74 3c je 80101268 <iget+0x68>
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010122c: 81 c3 90 00 00 00 add $0x90,%ebx
80101232: 81 fb 34 26 11 80 cmp $0x80112634,%ebx
80101238: 74 46 je 80101280 <iget+0x80>
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
8010123a: 8b 4b 08 mov 0x8(%ebx),%ecx
8010123d: 85 c9 test %ecx,%ecx
8010123f: 7e e7 jle 80101228 <iget+0x28>
80101241: 39 3b cmp %edi,(%ebx)
80101243: 75 e3 jne 80101228 <iget+0x28>
80101245: 39 53 04 cmp %edx,0x4(%ebx)
80101248: 75 de jne 80101228 <iget+0x28>
ip->ref++;
8010124a: 83 c1 01 add $0x1,%ecx
return ip;
8010124d: 89 de mov %ebx,%esi
release(&icache.lock);
8010124f: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
ip->ref++;
80101256: 89 4b 08 mov %ecx,0x8(%ebx)
release(&icache.lock);
80101259: e8 c2 2f 00 00 call 80104220 <release>
ip->ref = 1;
ip->valid = 0;
release(&icache.lock);
return ip;
}
8010125e: 83 c4 1c add $0x1c,%esp
80101261: 89 f0 mov %esi,%eax
80101263: 5b pop %ebx
80101264: 5e pop %esi
80101265: 5f pop %edi
80101266: 5d pop %ebp
80101267: c3 ret
80101268: 85 c9 test %ecx,%ecx
8010126a: 0f 44 f3 cmove %ebx,%esi
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010126d: 81 c3 90 00 00 00 add $0x90,%ebx
80101273: 81 fb 34 26 11 80 cmp $0x80112634,%ebx
80101279: 75 bf jne 8010123a <iget+0x3a>
8010127b: 90 nop
8010127c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(empty == 0)
80101280: 85 f6 test %esi,%esi
80101282: 74 29 je 801012ad <iget+0xad>
ip->dev = dev;
80101284: 89 3e mov %edi,(%esi)
ip->inum = inum;
80101286: 89 56 04 mov %edx,0x4(%esi)
ip->ref = 1;
80101289: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi)
ip->valid = 0;
80101290: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi)
release(&icache.lock);
80101297: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
8010129e: e8 7d 2f 00 00 call 80104220 <release>
}
801012a3: 83 c4 1c add $0x1c,%esp
801012a6: 89 f0 mov %esi,%eax
801012a8: 5b pop %ebx
801012a9: 5e pop %esi
801012aa: 5f pop %edi
801012ab: 5d pop %ebp
801012ac: c3 ret
panic("iget: no inodes");
801012ad: c7 04 24 15 6f 10 80 movl $0x80106f15,(%esp)
801012b4: e8 a7 f0 ff ff call 80100360 <panic>
801012b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801012c0 <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)
{
801012c0: 55 push %ebp
801012c1: 89 e5 mov %esp,%ebp
801012c3: 57 push %edi
801012c4: 56 push %esi
801012c5: 53 push %ebx
801012c6: 89 c3 mov %eax,%ebx
801012c8: 83 ec 1c sub $0x1c,%esp
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
801012cb: 83 fa 0b cmp $0xb,%edx
801012ce: 77 18 ja 801012e8 <bmap+0x28>
801012d0: 8d 34 90 lea (%eax,%edx,4),%esi
if((addr = ip->addrs[bn]) == 0)
801012d3: 8b 46 5c mov 0x5c(%esi),%eax
801012d6: 85 c0 test %eax,%eax
801012d8: 74 66 je 80101340 <bmap+0x80>
brelse(bp);
return addr;
}
panic("bmap: out of range");
}
801012da: 83 c4 1c add $0x1c,%esp
801012dd: 5b pop %ebx
801012de: 5e pop %esi
801012df: 5f pop %edi
801012e0: 5d pop %ebp
801012e1: c3 ret
801012e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
bn -= NDIRECT;
801012e8: 8d 72 f4 lea -0xc(%edx),%esi
if(bn < NINDIRECT){
801012eb: 83 fe 7f cmp $0x7f,%esi
801012ee: 77 77 ja 80101367 <bmap+0xa7>
if((addr = ip->addrs[NDIRECT]) == 0)
801012f0: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax
801012f6: 85 c0 test %eax,%eax
801012f8: 74 5e je 80101358 <bmap+0x98>
bp = bread(ip->dev, addr);
801012fa: 89 44 24 04 mov %eax,0x4(%esp)
801012fe: 8b 03 mov (%ebx),%eax
80101300: 89 04 24 mov %eax,(%esp)
80101303: e8 c8 ed ff ff call 801000d0 <bread>
if((addr = a[bn]) == 0){
80101308: 8d 54 b0 5c lea 0x5c(%eax,%esi,4),%edx
bp = bread(ip->dev, addr);
8010130c: 89 c7 mov %eax,%edi
if((addr = a[bn]) == 0){
8010130e: 8b 32 mov (%edx),%esi
80101310: 85 f6 test %esi,%esi
80101312: 75 19 jne 8010132d <bmap+0x6d>
a[bn] = addr = balloc(ip->dev);
80101314: 8b 03 mov (%ebx),%eax
80101316: 89 55 e4 mov %edx,-0x1c(%ebp)
80101319: e8 c2 fd ff ff call 801010e0 <balloc>
8010131e: 8b 55 e4 mov -0x1c(%ebp),%edx
80101321: 89 02 mov %eax,(%edx)
80101323: 89 c6 mov %eax,%esi
log_write(bp);
80101325: 89 3c 24 mov %edi,(%esp)
80101328: e8 73 19 00 00 call 80102ca0 <log_write>
brelse(bp);
8010132d: 89 3c 24 mov %edi,(%esp)
80101330: e8 ab ee ff ff call 801001e0 <brelse>
}
80101335: 83 c4 1c add $0x1c,%esp
brelse(bp);
80101338: 89 f0 mov %esi,%eax
}
8010133a: 5b pop %ebx
8010133b: 5e pop %esi
8010133c: 5f pop %edi
8010133d: 5d pop %ebp
8010133e: c3 ret
8010133f: 90 nop
ip->addrs[bn] = addr = balloc(ip->dev);
80101340: 8b 03 mov (%ebx),%eax
80101342: e8 99 fd ff ff call 801010e0 <balloc>
80101347: 89 46 5c mov %eax,0x5c(%esi)
}
8010134a: 83 c4 1c add $0x1c,%esp
8010134d: 5b pop %ebx
8010134e: 5e pop %esi
8010134f: 5f pop %edi
80101350: 5d pop %ebp
80101351: c3 ret
80101352: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
80101358: 8b 03 mov (%ebx),%eax
8010135a: e8 81 fd ff ff call 801010e0 <balloc>
8010135f: 89 83 8c 00 00 00 mov %eax,0x8c(%ebx)
80101365: eb 93 jmp 801012fa <bmap+0x3a>
panic("bmap: out of range");
80101367: c7 04 24 25 6f 10 80 movl $0x80106f25,(%esp)
8010136e: e8 ed ef ff ff call 80100360 <panic>
80101373: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101379: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101380 <readsb>:
{
80101380: 55 push %ebp
80101381: 89 e5 mov %esp,%ebp
80101383: 56 push %esi
80101384: 53 push %ebx
80101385: 83 ec 10 sub $0x10,%esp
bp = bread(dev, 1);
80101388: 8b 45 08 mov 0x8(%ebp),%eax
8010138b: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80101392: 00
{
80101393: 8b 75 0c mov 0xc(%ebp),%esi
bp = bread(dev, 1);
80101396: 89 04 24 mov %eax,(%esp)
80101399: e8 32 ed ff ff call 801000d0 <bread>
memmove(sb, bp->data, sizeof(*sb));
8010139e: 89 34 24 mov %esi,(%esp)
801013a1: c7 44 24 08 1c 00 00 movl $0x1c,0x8(%esp)
801013a8: 00
bp = bread(dev, 1);
801013a9: 89 c3 mov %eax,%ebx
memmove(sb, bp->data, sizeof(*sb));
801013ab: 8d 40 5c lea 0x5c(%eax),%eax
801013ae: 89 44 24 04 mov %eax,0x4(%esp)
801013b2: e8 59 2f 00 00 call 80104310 <memmove>
brelse(bp);
801013b7: 89 5d 08 mov %ebx,0x8(%ebp)
}
801013ba: 83 c4 10 add $0x10,%esp
801013bd: 5b pop %ebx
801013be: 5e pop %esi
801013bf: 5d pop %ebp
brelse(bp);
801013c0: e9 1b ee ff ff jmp 801001e0 <brelse>
801013c5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801013c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801013d0 <bfree>:
{
801013d0: 55 push %ebp
801013d1: 89 e5 mov %esp,%ebp
801013d3: 57 push %edi
801013d4: 89 d7 mov %edx,%edi
801013d6: 56 push %esi
801013d7: 53 push %ebx
801013d8: 89 c3 mov %eax,%ebx
801013da: 83 ec 1c sub $0x1c,%esp
readsb(dev, &sb);
801013dd: 89 04 24 mov %eax,(%esp)
801013e0: c7 44 24 04 c0 09 11 movl $0x801109c0,0x4(%esp)
801013e7: 80
801013e8: e8 93 ff ff ff call 80101380 <readsb>
bp = bread(dev, BBLOCK(b, sb));
801013ed: 89 fa mov %edi,%edx
801013ef: c1 ea 0c shr $0xc,%edx
801013f2: 03 15 d8 09 11 80 add 0x801109d8,%edx
801013f8: 89 1c 24 mov %ebx,(%esp)
m = 1 << (bi % 8);
801013fb: bb 01 00 00 00 mov $0x1,%ebx
bp = bread(dev, BBLOCK(b, sb));
80101400: 89 54 24 04 mov %edx,0x4(%esp)
80101404: e8 c7 ec ff ff call 801000d0 <bread>
m = 1 << (bi % 8);
80101409: 89 f9 mov %edi,%ecx
bi = b % BPB;
8010140b: 81 e7 ff 0f 00 00 and $0xfff,%edi
80101411: 89 fa mov %edi,%edx
m = 1 << (bi % 8);
80101413: 83 e1 07 and $0x7,%ecx
if((bp->data[bi/8] & m) == 0)
80101416: c1 fa 03 sar $0x3,%edx
m = 1 << (bi % 8);
80101419: d3 e3 shl %cl,%ebx
bp = bread(dev, BBLOCK(b, sb));
8010141b: 89 c6 mov %eax,%esi
if((bp->data[bi/8] & m) == 0)
8010141d: 0f b6 44 10 5c movzbl 0x5c(%eax,%edx,1),%eax
80101422: 0f b6 c8 movzbl %al,%ecx
80101425: 85 d9 test %ebx,%ecx
80101427: 74 20 je 80101449 <bfree+0x79>
bp->data[bi/8] &= ~m;
80101429: f7 d3 not %ebx
8010142b: 21 c3 and %eax,%ebx
8010142d: 88 5c 16 5c mov %bl,0x5c(%esi,%edx,1)
log_write(bp);
80101431: 89 34 24 mov %esi,(%esp)
80101434: e8 67 18 00 00 call 80102ca0 <log_write>
brelse(bp);
80101439: 89 34 24 mov %esi,(%esp)
8010143c: e8 9f ed ff ff call 801001e0 <brelse>
}
80101441: 83 c4 1c add $0x1c,%esp
80101444: 5b pop %ebx
80101445: 5e pop %esi
80101446: 5f pop %edi
80101447: 5d pop %ebp
80101448: c3 ret
panic("freeing free block");
80101449: c7 04 24 38 6f 10 80 movl $0x80106f38,(%esp)
80101450: e8 0b ef ff ff call 80100360 <panic>
80101455: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101459: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101460 <iinit>:
{
80101460: 55 push %ebp
80101461: 89 e5 mov %esp,%ebp
80101463: 53 push %ebx
80101464: bb 20 0a 11 80 mov $0x80110a20,%ebx
80101469: 83 ec 24 sub $0x24,%esp
initlock(&icache.lock, "icache");
8010146c: c7 44 24 04 4b 6f 10 movl $0x80106f4b,0x4(%esp)
80101473: 80
80101474: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
8010147b: e8 c0 2b 00 00 call 80104040 <initlock>
initsleeplock(&icache.inode[i].lock, "inode");
80101480: 89 1c 24 mov %ebx,(%esp)
80101483: 81 c3 90 00 00 00 add $0x90,%ebx
80101489: c7 44 24 04 52 6f 10 movl $0x80106f52,0x4(%esp)
80101490: 80
80101491: e8 9a 2a 00 00 call 80103f30 <initsleeplock>
for(i = 0; i < NINODE; i++) {
80101496: 81 fb 40 26 11 80 cmp $0x80112640,%ebx
8010149c: 75 e2 jne 80101480 <iinit+0x20>
readsb(dev, &sb);
8010149e: 8b 45 08 mov 0x8(%ebp),%eax
801014a1: c7 44 24 04 c0 09 11 movl $0x801109c0,0x4(%esp)
801014a8: 80
801014a9: 89 04 24 mov %eax,(%esp)
801014ac: e8 cf fe ff ff call 80101380 <readsb>
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
801014b1: a1 d8 09 11 80 mov 0x801109d8,%eax
801014b6: c7 04 24 b8 6f 10 80 movl $0x80106fb8,(%esp)
801014bd: 89 44 24 1c mov %eax,0x1c(%esp)
801014c1: a1 d4 09 11 80 mov 0x801109d4,%eax
801014c6: 89 44 24 18 mov %eax,0x18(%esp)
801014ca: a1 d0 09 11 80 mov 0x801109d0,%eax
801014cf: 89 44 24 14 mov %eax,0x14(%esp)
801014d3: a1 cc 09 11 80 mov 0x801109cc,%eax
801014d8: 89 44 24 10 mov %eax,0x10(%esp)
801014dc: a1 c8 09 11 80 mov 0x801109c8,%eax
801014e1: 89 44 24 0c mov %eax,0xc(%esp)
801014e5: a1 c4 09 11 80 mov 0x801109c4,%eax
801014ea: 89 44 24 08 mov %eax,0x8(%esp)
801014ee: a1 c0 09 11 80 mov 0x801109c0,%eax
801014f3: 89 44 24 04 mov %eax,0x4(%esp)
801014f7: e8 54 f1 ff ff call 80100650 <cprintf>
}
801014fc: 83 c4 24 add $0x24,%esp
801014ff: 5b pop %ebx
80101500: 5d pop %ebp
80101501: c3 ret
80101502: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101510 <ialloc>:
{
80101510: 55 push %ebp
80101511: 89 e5 mov %esp,%ebp
80101513: 57 push %edi
80101514: 56 push %esi
80101515: 53 push %ebx
80101516: 83 ec 2c sub $0x2c,%esp
80101519: 8b 45 0c mov 0xc(%ebp),%eax
for(inum = 1; inum < sb.ninodes; inum++){
8010151c: 83 3d c8 09 11 80 01 cmpl $0x1,0x801109c8
{
80101523: 8b 7d 08 mov 0x8(%ebp),%edi
80101526: 89 45 e4 mov %eax,-0x1c(%ebp)
for(inum = 1; inum < sb.ninodes; inum++){
80101529: 0f 86 a2 00 00 00 jbe 801015d1 <ialloc+0xc1>
8010152f: be 01 00 00 00 mov $0x1,%esi
80101534: bb 01 00 00 00 mov $0x1,%ebx
80101539: eb 1a jmp 80101555 <ialloc+0x45>
8010153b: 90 nop
8010153c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
brelse(bp);
80101540: 89 14 24 mov %edx,(%esp)
for(inum = 1; inum < sb.ninodes; inum++){
80101543: 83 c3 01 add $0x1,%ebx
brelse(bp);
80101546: e8 95 ec ff ff call 801001e0 <brelse>
for(inum = 1; inum < sb.ninodes; inum++){
8010154b: 89 de mov %ebx,%esi
8010154d: 3b 1d c8 09 11 80 cmp 0x801109c8,%ebx
80101553: 73 7c jae 801015d1 <ialloc+0xc1>
bp = bread(dev, IBLOCK(inum, sb));
80101555: 89 f0 mov %esi,%eax
80101557: c1 e8 03 shr $0x3,%eax
8010155a: 03 05 d4 09 11 80 add 0x801109d4,%eax
80101560: 89 3c 24 mov %edi,(%esp)
80101563: 89 44 24 04 mov %eax,0x4(%esp)
80101567: e8 64 eb ff ff call 801000d0 <bread>
8010156c: 89 c2 mov %eax,%edx
dip = (struct dinode*)bp->data + inum%IPB;
8010156e: 89 f0 mov %esi,%eax
80101570: 83 e0 07 and $0x7,%eax
80101573: c1 e0 06 shl $0x6,%eax
80101576: 8d 4c 02 5c lea 0x5c(%edx,%eax,1),%ecx
if(dip->type == 0){ // a free inode
8010157a: 66 83 39 00 cmpw $0x0,(%ecx)
8010157e: 75 c0 jne 80101540 <ialloc+0x30>
memset(dip, 0, sizeof(*dip));
80101580: 89 0c 24 mov %ecx,(%esp)
80101583: c7 44 24 08 40 00 00 movl $0x40,0x8(%esp)
8010158a: 00
8010158b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80101592: 00
80101593: 89 55 dc mov %edx,-0x24(%ebp)
80101596: 89 4d e0 mov %ecx,-0x20(%ebp)
80101599: e8 d2 2c 00 00 call 80104270 <memset>
dip->type = type;
8010159e: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax
log_write(bp); // mark it allocated on the disk
801015a2: 8b 55 dc mov -0x24(%ebp),%edx
dip->type = type;
801015a5: 8b 4d e0 mov -0x20(%ebp),%ecx
log_write(bp); // mark it allocated on the disk
801015a8: 89 55 e4 mov %edx,-0x1c(%ebp)
dip->type = type;
801015ab: 66 89 01 mov %ax,(%ecx)
log_write(bp); // mark it allocated on the disk
801015ae: 89 14 24 mov %edx,(%esp)
801015b1: e8 ea 16 00 00 call 80102ca0 <log_write>
brelse(bp);
801015b6: 8b 55 e4 mov -0x1c(%ebp),%edx
801015b9: 89 14 24 mov %edx,(%esp)
801015bc: e8 1f ec ff ff call 801001e0 <brelse>
}
801015c1: 83 c4 2c add $0x2c,%esp
return iget(dev, inum);
801015c4: 89 f2 mov %esi,%edx
}
801015c6: 5b pop %ebx
return iget(dev, inum);
801015c7: 89 f8 mov %edi,%eax
}
801015c9: 5e pop %esi
801015ca: 5f pop %edi
801015cb: 5d pop %ebp
return iget(dev, inum);
801015cc: e9 2f fc ff ff jmp 80101200 <iget>
panic("ialloc: no inodes");
801015d1: c7 04 24 58 6f 10 80 movl $0x80106f58,(%esp)
801015d8: e8 83 ed ff ff call 80100360 <panic>
801015dd: 8d 76 00 lea 0x0(%esi),%esi
801015e0 <iupdate>:
{
801015e0: 55 push %ebp
801015e1: 89 e5 mov %esp,%ebp
801015e3: 56 push %esi
801015e4: 53 push %ebx
801015e5: 83 ec 10 sub $0x10,%esp
801015e8: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801015eb: 8b 43 04 mov 0x4(%ebx),%eax
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
801015ee: 83 c3 5c add $0x5c,%ebx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801015f1: c1 e8 03 shr $0x3,%eax
801015f4: 03 05 d4 09 11 80 add 0x801109d4,%eax
801015fa: 89 44 24 04 mov %eax,0x4(%esp)
801015fe: 8b 43 a4 mov -0x5c(%ebx),%eax
80101601: 89 04 24 mov %eax,(%esp)
80101604: e8 c7 ea ff ff call 801000d0 <bread>
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101609: 8b 53 a8 mov -0x58(%ebx),%edx
8010160c: 83 e2 07 and $0x7,%edx
8010160f: c1 e2 06 shl $0x6,%edx
80101612: 8d 54 10 5c lea 0x5c(%eax,%edx,1),%edx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
80101616: 89 c6 mov %eax,%esi
dip->type = ip->type;
80101618: 0f b7 43 f4 movzwl -0xc(%ebx),%eax
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010161c: 83 c2 0c add $0xc,%edx
dip->type = ip->type;
8010161f: 66 89 42 f4 mov %ax,-0xc(%edx)
dip->major = ip->major;
80101623: 0f b7 43 f6 movzwl -0xa(%ebx),%eax
80101627: 66 89 42 f6 mov %ax,-0xa(%edx)
dip->minor = ip->minor;
8010162b: 0f b7 43 f8 movzwl -0x8(%ebx),%eax
8010162f: 66 89 42 f8 mov %ax,-0x8(%edx)
dip->nlink = ip->nlink;
80101633: 0f b7 43 fa movzwl -0x6(%ebx),%eax
80101637: 66 89 42 fa mov %ax,-0x6(%edx)
dip->size = ip->size;
8010163b: 8b 43 fc mov -0x4(%ebx),%eax
8010163e: 89 42 fc mov %eax,-0x4(%edx)
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
80101641: 89 5c 24 04 mov %ebx,0x4(%esp)
80101645: 89 14 24 mov %edx,(%esp)
80101648: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
8010164f: 00
80101650: e8 bb 2c 00 00 call 80104310 <memmove>
log_write(bp);
80101655: 89 34 24 mov %esi,(%esp)
80101658: e8 43 16 00 00 call 80102ca0 <log_write>
brelse(bp);
8010165d: 89 75 08 mov %esi,0x8(%ebp)
}
80101660: 83 c4 10 add $0x10,%esp
80101663: 5b pop %ebx
80101664: 5e pop %esi
80101665: 5d pop %ebp
brelse(bp);
80101666: e9 75 eb ff ff jmp 801001e0 <brelse>
8010166b: 90 nop
8010166c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101670 <idup>:
{
80101670: 55 push %ebp
80101671: 89 e5 mov %esp,%ebp
80101673: 53 push %ebx
80101674: 83 ec 14 sub $0x14,%esp
80101677: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&icache.lock);
8010167a: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101681: e8 aa 2a 00 00 call 80104130 <acquire>
ip->ref++;
80101686: 83 43 08 01 addl $0x1,0x8(%ebx)
release(&icache.lock);
8010168a: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101691: e8 8a 2b 00 00 call 80104220 <release>
}
80101696: 83 c4 14 add $0x14,%esp
80101699: 89 d8 mov %ebx,%eax
8010169b: 5b pop %ebx
8010169c: 5d pop %ebp
8010169d: c3 ret
8010169e: 66 90 xchg %ax,%ax
801016a0 <ilock>:
{
801016a0: 55 push %ebp
801016a1: 89 e5 mov %esp,%ebp
801016a3: 56 push %esi
801016a4: 53 push %ebx
801016a5: 83 ec 10 sub $0x10,%esp
801016a8: 8b 5d 08 mov 0x8(%ebp),%ebx
if(ip == 0 || ip->ref < 1)
801016ab: 85 db test %ebx,%ebx
801016ad: 0f 84 b3 00 00 00 je 80101766 <ilock+0xc6>
801016b3: 8b 53 08 mov 0x8(%ebx),%edx
801016b6: 85 d2 test %edx,%edx
801016b8: 0f 8e a8 00 00 00 jle 80101766 <ilock+0xc6>
acquiresleep(&ip->lock);
801016be: 8d 43 0c lea 0xc(%ebx),%eax
801016c1: 89 04 24 mov %eax,(%esp)
801016c4: e8 a7 28 00 00 call 80103f70 <acquiresleep>
if(ip->valid == 0){
801016c9: 8b 43 4c mov 0x4c(%ebx),%eax
801016cc: 85 c0 test %eax,%eax
801016ce: 74 08 je 801016d8 <ilock+0x38>
}
801016d0: 83 c4 10 add $0x10,%esp
801016d3: 5b pop %ebx
801016d4: 5e pop %esi
801016d5: 5d pop %ebp
801016d6: c3 ret
801016d7: 90 nop
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801016d8: 8b 43 04 mov 0x4(%ebx),%eax
801016db: c1 e8 03 shr $0x3,%eax
801016de: 03 05 d4 09 11 80 add 0x801109d4,%eax
801016e4: 89 44 24 04 mov %eax,0x4(%esp)
801016e8: 8b 03 mov (%ebx),%eax
801016ea: 89 04 24 mov %eax,(%esp)
801016ed: e8 de e9 ff ff call 801000d0 <bread>
dip = (struct dinode*)bp->data + ip->inum%IPB;
801016f2: 8b 53 04 mov 0x4(%ebx),%edx
801016f5: 83 e2 07 and $0x7,%edx
801016f8: c1 e2 06 shl $0x6,%edx
801016fb: 8d 54 10 5c lea 0x5c(%eax,%edx,1),%edx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801016ff: 89 c6 mov %eax,%esi
ip->type = dip->type;
80101701: 0f b7 02 movzwl (%edx),%eax
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
80101704: 83 c2 0c add $0xc,%edx
ip->type = dip->type;
80101707: 66 89 43 50 mov %ax,0x50(%ebx)
ip->major = dip->major;
8010170b: 0f b7 42 f6 movzwl -0xa(%edx),%eax
8010170f: 66 89 43 52 mov %ax,0x52(%ebx)
ip->minor = dip->minor;
80101713: 0f b7 42 f8 movzwl -0x8(%edx),%eax
80101717: 66 89 43 54 mov %ax,0x54(%ebx)
ip->nlink = dip->nlink;
8010171b: 0f b7 42 fa movzwl -0x6(%edx),%eax
8010171f: 66 89 43 56 mov %ax,0x56(%ebx)
ip->size = dip->size;
80101723: 8b 42 fc mov -0x4(%edx),%eax
80101726: 89 43 58 mov %eax,0x58(%ebx)
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
80101729: 8d 43 5c lea 0x5c(%ebx),%eax
8010172c: 89 54 24 04 mov %edx,0x4(%esp)
80101730: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
80101737: 00
80101738: 89 04 24 mov %eax,(%esp)
8010173b: e8 d0 2b 00 00 call 80104310 <memmove>
brelse(bp);
80101740: 89 34 24 mov %esi,(%esp)
80101743: e8 98 ea ff ff call 801001e0 <brelse>
if(ip->type == 0)
80101748: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx)
ip->valid = 1;
8010174d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx)
if(ip->type == 0)
80101754: 0f 85 76 ff ff ff jne 801016d0 <ilock+0x30>
panic("ilock: no type");
8010175a: c7 04 24 70 6f 10 80 movl $0x80106f70,(%esp)
80101761: e8 fa eb ff ff call 80100360 <panic>
panic("ilock");
80101766: c7 04 24 6a 6f 10 80 movl $0x80106f6a,(%esp)
8010176d: e8 ee eb ff ff call 80100360 <panic>
80101772: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101779: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101780 <iunlock>:
{
80101780: 55 push %ebp
80101781: 89 e5 mov %esp,%ebp
80101783: 56 push %esi
80101784: 53 push %ebx
80101785: 83 ec 10 sub $0x10,%esp
80101788: 8b 5d 08 mov 0x8(%ebp),%ebx
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
8010178b: 85 db test %ebx,%ebx
8010178d: 74 24 je 801017b3 <iunlock+0x33>
8010178f: 8d 73 0c lea 0xc(%ebx),%esi
80101792: 89 34 24 mov %esi,(%esp)
80101795: e8 76 28 00 00 call 80104010 <holdingsleep>
8010179a: 85 c0 test %eax,%eax
8010179c: 74 15 je 801017b3 <iunlock+0x33>
8010179e: 8b 43 08 mov 0x8(%ebx),%eax
801017a1: 85 c0 test %eax,%eax
801017a3: 7e 0e jle 801017b3 <iunlock+0x33>
releasesleep(&ip->lock);
801017a5: 89 75 08 mov %esi,0x8(%ebp)
}
801017a8: 83 c4 10 add $0x10,%esp
801017ab: 5b pop %ebx
801017ac: 5e pop %esi
801017ad: 5d pop %ebp
releasesleep(&ip->lock);
801017ae: e9 1d 28 00 00 jmp 80103fd0 <releasesleep>
panic("iunlock");
801017b3: c7 04 24 7f 6f 10 80 movl $0x80106f7f,(%esp)
801017ba: e8 a1 eb ff ff call 80100360 <panic>
801017bf: 90 nop
801017c0 <iput>:
{
801017c0: 55 push %ebp
801017c1: 89 e5 mov %esp,%ebp
801017c3: 57 push %edi
801017c4: 56 push %esi
801017c5: 53 push %ebx
801017c6: 83 ec 1c sub $0x1c,%esp
801017c9: 8b 75 08 mov 0x8(%ebp),%esi
acquiresleep(&ip->lock);
801017cc: 8d 7e 0c lea 0xc(%esi),%edi
801017cf: 89 3c 24 mov %edi,(%esp)
801017d2: e8 99 27 00 00 call 80103f70 <acquiresleep>
if(ip->valid && ip->nlink == 0){
801017d7: 8b 56 4c mov 0x4c(%esi),%edx
801017da: 85 d2 test %edx,%edx
801017dc: 74 07 je 801017e5 <iput+0x25>
801017de: 66 83 7e 56 00 cmpw $0x0,0x56(%esi)
801017e3: 74 2b je 80101810 <iput+0x50>
releasesleep(&ip->lock);
801017e5: 89 3c 24 mov %edi,(%esp)
801017e8: e8 e3 27 00 00 call 80103fd0 <releasesleep>
acquire(&icache.lock);
801017ed: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
801017f4: e8 37 29 00 00 call 80104130 <acquire>
ip->ref--;
801017f9: 83 6e 08 01 subl $0x1,0x8(%esi)
release(&icache.lock);
801017fd: c7 45 08 e0 09 11 80 movl $0x801109e0,0x8(%ebp)
}
80101804: 83 c4 1c add $0x1c,%esp
80101807: 5b pop %ebx
80101808: 5e pop %esi
80101809: 5f pop %edi
8010180a: 5d pop %ebp
release(&icache.lock);
8010180b: e9 10 2a 00 00 jmp 80104220 <release>
acquire(&icache.lock);
80101810: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101817: e8 14 29 00 00 call 80104130 <acquire>
int r = ip->ref;
8010181c: 8b 5e 08 mov 0x8(%esi),%ebx
release(&icache.lock);
8010181f: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101826: e8 f5 29 00 00 call 80104220 <release>
if(r == 1){
8010182b: 83 fb 01 cmp $0x1,%ebx
8010182e: 75 b5 jne 801017e5 <iput+0x25>
80101830: 8d 4e 30 lea 0x30(%esi),%ecx
80101833: 89 f3 mov %esi,%ebx
80101835: 89 7d e4 mov %edi,-0x1c(%ebp)
80101838: 89 cf mov %ecx,%edi
8010183a: eb 0b jmp 80101847 <iput+0x87>
8010183c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101840: 83 c3 04 add $0x4,%ebx
{
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101843: 39 fb cmp %edi,%ebx
80101845: 74 19 je 80101860 <iput+0xa0>
if(ip->addrs[i]){
80101847: 8b 53 5c mov 0x5c(%ebx),%edx
8010184a: 85 d2 test %edx,%edx
8010184c: 74 f2 je 80101840 <iput+0x80>
bfree(ip->dev, ip->addrs[i]);
8010184e: 8b 06 mov (%esi),%eax
80101850: e8 7b fb ff ff call 801013d0 <bfree>
ip->addrs[i] = 0;
80101855: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx)
8010185c: eb e2 jmp 80101840 <iput+0x80>
8010185e: 66 90 xchg %ax,%ax
}
}
if(ip->addrs[NDIRECT]){
80101860: 8b 86 8c 00 00 00 mov 0x8c(%esi),%eax
80101866: 8b 7d e4 mov -0x1c(%ebp),%edi
80101869: 85 c0 test %eax,%eax
8010186b: 75 2b jne 80101898 <iput+0xd8>
brelse(bp);
bfree(ip->dev, ip->addrs[NDIRECT]);
ip->addrs[NDIRECT] = 0;
}
ip->size = 0;
8010186d: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi)
iupdate(ip);
80101874: 89 34 24 mov %esi,(%esp)
80101877: e8 64 fd ff ff call 801015e0 <iupdate>
ip->type = 0;
8010187c: 31 c0 xor %eax,%eax
8010187e: 66 89 46 50 mov %ax,0x50(%esi)
iupdate(ip);
80101882: 89 34 24 mov %esi,(%esp)
80101885: e8 56 fd ff ff call 801015e0 <iupdate>
ip->valid = 0;
8010188a: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi)
80101891: e9 4f ff ff ff jmp 801017e5 <iput+0x25>
80101896: 66 90 xchg %ax,%ax
bp = bread(ip->dev, ip->addrs[NDIRECT]);
80101898: 89 44 24 04 mov %eax,0x4(%esp)
8010189c: 8b 06 mov (%esi),%eax
for(j = 0; j < NINDIRECT; j++){
8010189e: 31 db xor %ebx,%ebx
bp = bread(ip->dev, ip->addrs[NDIRECT]);
801018a0: 89 04 24 mov %eax,(%esp)
801018a3: e8 28 e8 ff ff call 801000d0 <bread>
for(j = 0; j < NINDIRECT; j++){
801018a8: 89 7d e0 mov %edi,-0x20(%ebp)
a = (uint*)bp->data;
801018ab: 8d 48 5c lea 0x5c(%eax),%ecx
bp = bread(ip->dev, ip->addrs[NDIRECT]);
801018ae: 89 45 e4 mov %eax,-0x1c(%ebp)
for(j = 0; j < NINDIRECT; j++){
801018b1: 89 cf mov %ecx,%edi
801018b3: 31 c0 xor %eax,%eax
801018b5: eb 0e jmp 801018c5 <iput+0x105>
801018b7: 90 nop
801018b8: 83 c3 01 add $0x1,%ebx
801018bb: 81 fb 80 00 00 00 cmp $0x80,%ebx
801018c1: 89 d8 mov %ebx,%eax
801018c3: 74 10 je 801018d5 <iput+0x115>
if(a[j])
801018c5: 8b 14 87 mov (%edi,%eax,4),%edx
801018c8: 85 d2 test %edx,%edx
801018ca: 74 ec je 801018b8 <iput+0xf8>
bfree(ip->dev, a[j]);
801018cc: 8b 06 mov (%esi),%eax
801018ce: e8 fd fa ff ff call 801013d0 <bfree>
801018d3: eb e3 jmp 801018b8 <iput+0xf8>
brelse(bp);
801018d5: 8b 45 e4 mov -0x1c(%ebp),%eax
801018d8: 8b 7d e0 mov -0x20(%ebp),%edi
801018db: 89 04 24 mov %eax,(%esp)
801018de: e8 fd e8 ff ff call 801001e0 <brelse>
bfree(ip->dev, ip->addrs[NDIRECT]);
801018e3: 8b 96 8c 00 00 00 mov 0x8c(%esi),%edx
801018e9: 8b 06 mov (%esi),%eax
801018eb: e8 e0 fa ff ff call 801013d0 <bfree>
ip->addrs[NDIRECT] = 0;
801018f0: c7 86 8c 00 00 00 00 movl $0x0,0x8c(%esi)
801018f7: 00 00 00
801018fa: e9 6e ff ff ff jmp 8010186d <iput+0xad>
801018ff: 90 nop
80101900 <iunlockput>:
{
80101900: 55 push %ebp
80101901: 89 e5 mov %esp,%ebp
80101903: 53 push %ebx
80101904: 83 ec 14 sub $0x14,%esp
80101907: 8b 5d 08 mov 0x8(%ebp),%ebx
iunlock(ip);
8010190a: 89 1c 24 mov %ebx,(%esp)
8010190d: e8 6e fe ff ff call 80101780 <iunlock>
iput(ip);
80101912: 89 5d 08 mov %ebx,0x8(%ebp)
}
80101915: 83 c4 14 add $0x14,%esp
80101918: 5b pop %ebx
80101919: 5d pop %ebp
iput(ip);
8010191a: e9 a1 fe ff ff jmp 801017c0 <iput>
8010191f: 90 nop
80101920 <stati>:
// Copy stat information from inode.
// Caller must hold ip->lock.
void
stati(struct inode *ip, struct stat *st)
{
80101920: 55 push %ebp
80101921: 89 e5 mov %esp,%ebp
80101923: 8b 55 08 mov 0x8(%ebp),%edx
80101926: 8b 45 0c mov 0xc(%ebp),%eax
st->dev = ip->dev;
80101929: 8b 0a mov (%edx),%ecx
8010192b: 89 48 04 mov %ecx,0x4(%eax)
st->ino = ip->inum;
8010192e: 8b 4a 04 mov 0x4(%edx),%ecx
80101931: 89 48 08 mov %ecx,0x8(%eax)
st->type = ip->type;
80101934: 0f b7 4a 50 movzwl 0x50(%edx),%ecx
80101938: 66 89 08 mov %cx,(%eax)
st->nlink = ip->nlink;
8010193b: 0f b7 4a 56 movzwl 0x56(%edx),%ecx
8010193f: 66 89 48 0c mov %cx,0xc(%eax)
st->size = ip->size;
80101943: 8b 52 58 mov 0x58(%edx),%edx
80101946: 89 50 10 mov %edx,0x10(%eax)
}
80101949: 5d pop %ebp
8010194a: c3 ret
8010194b: 90 nop
8010194c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101950 <readi>:
//PAGEBREAK!
// Read data from inode.
// Caller must hold ip->lock.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101950: 55 push %ebp
80101951: 89 e5 mov %esp,%ebp
80101953: 57 push %edi
80101954: 56 push %esi
80101955: 53 push %ebx
80101956: 83 ec 2c sub $0x2c,%esp
80101959: 8b 45 0c mov 0xc(%ebp),%eax
8010195c: 8b 7d 08 mov 0x8(%ebp),%edi
8010195f: 8b 75 10 mov 0x10(%ebp),%esi
80101962: 89 45 e0 mov %eax,-0x20(%ebp)
80101965: 8b 45 14 mov 0x14(%ebp),%eax
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101968: 66 83 7f 50 03 cmpw $0x3,0x50(%edi)
{
8010196d: 89 45 e4 mov %eax,-0x1c(%ebp)
if(ip->type == T_DEV){
80101970: 0f 84 aa 00 00 00 je 80101a20 <readi+0xd0>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
return -1;
return devsw[ip->major].read(ip, dst, n);
}
if(off > ip->size || off + n < off)
80101976: 8b 47 58 mov 0x58(%edi),%eax
80101979: 39 f0 cmp %esi,%eax
8010197b: 0f 82 c7 00 00 00 jb 80101a48 <readi+0xf8>
80101981: 8b 5d e4 mov -0x1c(%ebp),%ebx
80101984: 89 da mov %ebx,%edx
80101986: 01 f2 add %esi,%edx
80101988: 0f 82 ba 00 00 00 jb 80101a48 <readi+0xf8>
return -1;
if(off + n > ip->size)
n = ip->size - off;
8010198e: 89 c1 mov %eax,%ecx
80101990: 29 f1 sub %esi,%ecx
80101992: 39 d0 cmp %edx,%eax
80101994: 0f 43 cb cmovae %ebx,%ecx
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101997: 31 c0 xor %eax,%eax
80101999: 85 c9 test %ecx,%ecx
n = ip->size - off;
8010199b: 89 4d e4 mov %ecx,-0x1c(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
8010199e: 74 70 je 80101a10 <readi+0xc0>
801019a0: 89 7d d8 mov %edi,-0x28(%ebp)
801019a3: 89 c7 mov %eax,%edi
801019a5: 8d 76 00 lea 0x0(%esi),%esi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
801019a8: 8b 5d d8 mov -0x28(%ebp),%ebx
801019ab: 89 f2 mov %esi,%edx
801019ad: c1 ea 09 shr $0x9,%edx
801019b0: 89 d8 mov %ebx,%eax
801019b2: e8 09 f9 ff ff call 801012c0 <bmap>
801019b7: 89 44 24 04 mov %eax,0x4(%esp)
801019bb: 8b 03 mov (%ebx),%eax
m = min(n - tot, BSIZE - off%BSIZE);
801019bd: bb 00 02 00 00 mov $0x200,%ebx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
801019c2: 89 04 24 mov %eax,(%esp)
801019c5: e8 06 e7 ff ff call 801000d0 <bread>
m = min(n - tot, BSIZE - off%BSIZE);
801019ca: 8b 4d e4 mov -0x1c(%ebp),%ecx
801019cd: 29 f9 sub %edi,%ecx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
801019cf: 89 c2 mov %eax,%edx
m = min(n - tot, BSIZE - off%BSIZE);
801019d1: 89 f0 mov %esi,%eax
801019d3: 25 ff 01 00 00 and $0x1ff,%eax
801019d8: 29 c3 sub %eax,%ebx
memmove(dst, bp->data + off%BSIZE, m);
801019da: 8d 44 02 5c lea 0x5c(%edx,%eax,1),%eax
m = min(n - tot, BSIZE - off%BSIZE);
801019de: 39 cb cmp %ecx,%ebx
memmove(dst, bp->data + off%BSIZE, m);
801019e0: 89 44 24 04 mov %eax,0x4(%esp)
801019e4: 8b 45 e0 mov -0x20(%ebp),%eax
m = min(n - tot, BSIZE - off%BSIZE);
801019e7: 0f 47 d9 cmova %ecx,%ebx
memmove(dst, bp->data + off%BSIZE, m);
801019ea: 89 5c 24 08 mov %ebx,0x8(%esp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
801019ee: 01 df add %ebx,%edi
801019f0: 01 de add %ebx,%esi
memmove(dst, bp->data + off%BSIZE, m);
801019f2: 89 55 dc mov %edx,-0x24(%ebp)
801019f5: 89 04 24 mov %eax,(%esp)
801019f8: e8 13 29 00 00 call 80104310 <memmove>
brelse(bp);
801019fd: 8b 55 dc mov -0x24(%ebp),%edx
80101a00: 89 14 24 mov %edx,(%esp)
80101a03: e8 d8 e7 ff ff call 801001e0 <brelse>
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101a08: 01 5d e0 add %ebx,-0x20(%ebp)
80101a0b: 39 7d e4 cmp %edi,-0x1c(%ebp)
80101a0e: 77 98 ja 801019a8 <readi+0x58>
}
return n;
80101a10: 8b 45 e4 mov -0x1c(%ebp),%eax
}
80101a13: 83 c4 2c add $0x2c,%esp
80101a16: 5b pop %ebx
80101a17: 5e pop %esi
80101a18: 5f pop %edi
80101a19: 5d pop %ebp
80101a1a: c3 ret
80101a1b: 90 nop
80101a1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
80101a20: 0f bf 47 52 movswl 0x52(%edi),%eax
80101a24: 66 83 f8 09 cmp $0x9,%ax
80101a28: 77 1e ja 80101a48 <readi+0xf8>
80101a2a: 8b 04 c5 60 09 11 80 mov -0x7feef6a0(,%eax,8),%eax
80101a31: 85 c0 test %eax,%eax
80101a33: 74 13 je 80101a48 <readi+0xf8>
return devsw[ip->major].read(ip, dst, n);
80101a35: 8b 75 e4 mov -0x1c(%ebp),%esi
80101a38: 89 75 10 mov %esi,0x10(%ebp)
}
80101a3b: 83 c4 2c add $0x2c,%esp
80101a3e: 5b pop %ebx
80101a3f: 5e pop %esi
80101a40: 5f pop %edi
80101a41: 5d pop %ebp
return devsw[ip->major].read(ip, dst, n);
80101a42: ff e0 jmp *%eax
80101a44: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80101a48: b8 ff ff ff ff mov $0xffffffff,%eax
80101a4d: eb c4 jmp 80101a13 <readi+0xc3>
80101a4f: 90 nop
80101a50 <writei>:
// PAGEBREAK!
// Write data to inode.
// Caller must hold ip->lock.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101a50: 55 push %ebp
80101a51: 89 e5 mov %esp,%ebp
80101a53: 57 push %edi
80101a54: 56 push %esi
80101a55: 53 push %ebx
80101a56: 83 ec 2c sub $0x2c,%esp
80101a59: 8b 45 08 mov 0x8(%ebp),%eax
80101a5c: 8b 75 0c mov 0xc(%ebp),%esi
80101a5f: 8b 4d 14 mov 0x14(%ebp),%ecx
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101a62: 66 83 78 50 03 cmpw $0x3,0x50(%eax)
{
80101a67: 89 75 dc mov %esi,-0x24(%ebp)
80101a6a: 8b 75 10 mov 0x10(%ebp),%esi
80101a6d: 89 45 d8 mov %eax,-0x28(%ebp)
80101a70: 89 4d e0 mov %ecx,-0x20(%ebp)
if(ip->type == T_DEV){
80101a73: 0f 84 b7 00 00 00 je 80101b30 <writei+0xe0>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
return -1;
return devsw[ip->major].write(ip, src, n);
}
if(off > ip->size || off + n < off)
80101a79: 8b 45 d8 mov -0x28(%ebp),%eax
80101a7c: 39 70 58 cmp %esi,0x58(%eax)
80101a7f: 0f 82 e3 00 00 00 jb 80101b68 <writei+0x118>
80101a85: 8b 4d e0 mov -0x20(%ebp),%ecx
80101a88: 89 c8 mov %ecx,%eax
80101a8a: 01 f0 add %esi,%eax
80101a8c: 0f 82 d6 00 00 00 jb 80101b68 <writei+0x118>
return -1;
if(off + n > MAXFILE*BSIZE)
80101a92: 3d 00 18 01 00 cmp $0x11800,%eax
80101a97: 0f 87 cb 00 00 00 ja 80101b68 <writei+0x118>
return -1;
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101a9d: 85 c9 test %ecx,%ecx
80101a9f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
80101aa6: 74 77 je 80101b1f <writei+0xcf>
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101aa8: 8b 7d d8 mov -0x28(%ebp),%edi
80101aab: 89 f2 mov %esi,%edx
m = min(n - tot, BSIZE - off%BSIZE);
80101aad: bb 00 02 00 00 mov $0x200,%ebx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101ab2: c1 ea 09 shr $0x9,%edx
80101ab5: 89 f8 mov %edi,%eax
80101ab7: e8 04 f8 ff ff call 801012c0 <bmap>
80101abc: 89 44 24 04 mov %eax,0x4(%esp)
80101ac0: 8b 07 mov (%edi),%eax
80101ac2: 89 04 24 mov %eax,(%esp)
80101ac5: e8 06 e6 ff ff call 801000d0 <bread>
m = min(n - tot, BSIZE - off%BSIZE);
80101aca: 8b 4d e0 mov -0x20(%ebp),%ecx
80101acd: 2b 4d e4 sub -0x1c(%ebp),%ecx
memmove(bp->data + off%BSIZE, src, m);
80101ad0: 8b 55 dc mov -0x24(%ebp),%edx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101ad3: 89 c7 mov %eax,%edi
m = min(n - tot, BSIZE - off%BSIZE);
80101ad5: 89 f0 mov %esi,%eax
80101ad7: 25 ff 01 00 00 and $0x1ff,%eax
80101adc: 29 c3 sub %eax,%ebx
80101ade: 39 cb cmp %ecx,%ebx
80101ae0: 0f 47 d9 cmova %ecx,%ebx
memmove(bp->data + off%BSIZE, src, m);
80101ae3: 8d 44 07 5c lea 0x5c(%edi,%eax,1),%eax
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101ae7: 01 de add %ebx,%esi
memmove(bp->data + off%BSIZE, src, m);
80101ae9: 89 54 24 04 mov %edx,0x4(%esp)
80101aed: 89 5c 24 08 mov %ebx,0x8(%esp)
80101af1: 89 04 24 mov %eax,(%esp)
80101af4: e8 17 28 00 00 call 80104310 <memmove>
log_write(bp);
80101af9: 89 3c 24 mov %edi,(%esp)
80101afc: e8 9f 11 00 00 call 80102ca0 <log_write>
brelse(bp);
80101b01: 89 3c 24 mov %edi,(%esp)
80101b04: e8 d7 e6 ff ff call 801001e0 <brelse>
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101b09: 01 5d e4 add %ebx,-0x1c(%ebp)
80101b0c: 8b 45 e4 mov -0x1c(%ebp),%eax
80101b0f: 01 5d dc add %ebx,-0x24(%ebp)
80101b12: 39 45 e0 cmp %eax,-0x20(%ebp)
80101b15: 77 91 ja 80101aa8 <writei+0x58>
}
if(n > 0 && off > ip->size){
80101b17: 8b 45 d8 mov -0x28(%ebp),%eax
80101b1a: 39 70 58 cmp %esi,0x58(%eax)
80101b1d: 72 39 jb 80101b58 <writei+0x108>
ip->size = off;
iupdate(ip);
}
return n;
80101b1f: 8b 45 e0 mov -0x20(%ebp),%eax
}
80101b22: 83 c4 2c add $0x2c,%esp
80101b25: 5b pop %ebx
80101b26: 5e pop %esi
80101b27: 5f pop %edi
80101b28: 5d pop %ebp
80101b29: c3 ret
80101b2a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
80101b30: 0f bf 40 52 movswl 0x52(%eax),%eax
80101b34: 66 83 f8 09 cmp $0x9,%ax
80101b38: 77 2e ja 80101b68 <writei+0x118>
80101b3a: 8b 04 c5 64 09 11 80 mov -0x7feef69c(,%eax,8),%eax
80101b41: 85 c0 test %eax,%eax
80101b43: 74 23 je 80101b68 <writei+0x118>
return devsw[ip->major].write(ip, src, n);
80101b45: 89 4d 10 mov %ecx,0x10(%ebp)
}
80101b48: 83 c4 2c add $0x2c,%esp
80101b4b: 5b pop %ebx
80101b4c: 5e pop %esi
80101b4d: 5f pop %edi
80101b4e: 5d pop %ebp
return devsw[ip->major].write(ip, src, n);
80101b4f: ff e0 jmp *%eax
80101b51: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ip->size = off;
80101b58: 8b 45 d8 mov -0x28(%ebp),%eax
80101b5b: 89 70 58 mov %esi,0x58(%eax)
iupdate(ip);
80101b5e: 89 04 24 mov %eax,(%esp)
80101b61: e8 7a fa ff ff call 801015e0 <iupdate>
80101b66: eb b7 jmp 80101b1f <writei+0xcf>
}
80101b68: 83 c4 2c add $0x2c,%esp
return -1;
80101b6b: b8 ff ff ff ff mov $0xffffffff,%eax
}
80101b70: 5b pop %ebx
80101b71: 5e pop %esi
80101b72: 5f pop %edi
80101b73: 5d pop %ebp
80101b74: c3 ret
80101b75: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101b79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101b80 <namecmp>:
//PAGEBREAK!
// Directories
int
namecmp(const char *s, const char *t)
{
80101b80: 55 push %ebp
80101b81: 89 e5 mov %esp,%ebp
80101b83: 83 ec 18 sub $0x18,%esp
return strncmp(s, t, DIRSIZ);
80101b86: 8b 45 0c mov 0xc(%ebp),%eax
80101b89: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
80101b90: 00
80101b91: 89 44 24 04 mov %eax,0x4(%esp)
80101b95: 8b 45 08 mov 0x8(%ebp),%eax
80101b98: 89 04 24 mov %eax,(%esp)
80101b9b: e8 f0 27 00 00 call 80104390 <strncmp>
}
80101ba0: c9 leave
80101ba1: c3 ret
80101ba2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101bb0 <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)
{
80101bb0: 55 push %ebp
80101bb1: 89 e5 mov %esp,%ebp
80101bb3: 57 push %edi
80101bb4: 56 push %esi
80101bb5: 53 push %ebx
80101bb6: 83 ec 2c sub $0x2c,%esp
80101bb9: 8b 5d 08 mov 0x8(%ebp),%ebx
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
80101bbc: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80101bc1: 0f 85 97 00 00 00 jne 80101c5e <dirlookup+0xae>
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
80101bc7: 8b 53 58 mov 0x58(%ebx),%edx
80101bca: 31 ff xor %edi,%edi
80101bcc: 8d 75 d8 lea -0x28(%ebp),%esi
80101bcf: 85 d2 test %edx,%edx
80101bd1: 75 0d jne 80101be0 <dirlookup+0x30>
80101bd3: eb 73 jmp 80101c48 <dirlookup+0x98>
80101bd5: 8d 76 00 lea 0x0(%esi),%esi
80101bd8: 83 c7 10 add $0x10,%edi
80101bdb: 39 7b 58 cmp %edi,0x58(%ebx)
80101bde: 76 68 jbe 80101c48 <dirlookup+0x98>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101be0: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80101be7: 00
80101be8: 89 7c 24 08 mov %edi,0x8(%esp)
80101bec: 89 74 24 04 mov %esi,0x4(%esp)
80101bf0: 89 1c 24 mov %ebx,(%esp)
80101bf3: e8 58 fd ff ff call 80101950 <readi>
80101bf8: 83 f8 10 cmp $0x10,%eax
80101bfb: 75 55 jne 80101c52 <dirlookup+0xa2>
panic("dirlookup read");
if(de.inum == 0)
80101bfd: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80101c02: 74 d4 je 80101bd8 <dirlookup+0x28>
return strncmp(s, t, DIRSIZ);
80101c04: 8d 45 da lea -0x26(%ebp),%eax
80101c07: 89 44 24 04 mov %eax,0x4(%esp)
80101c0b: 8b 45 0c mov 0xc(%ebp),%eax
80101c0e: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
80101c15: 00
80101c16: 89 04 24 mov %eax,(%esp)
80101c19: e8 72 27 00 00 call 80104390 <strncmp>
continue;
if(namecmp(name, de.name) == 0){
80101c1e: 85 c0 test %eax,%eax
80101c20: 75 b6 jne 80101bd8 <dirlookup+0x28>
// entry matches path element
if(poff)
80101c22: 8b 45 10 mov 0x10(%ebp),%eax
80101c25: 85 c0 test %eax,%eax
80101c27: 74 05 je 80101c2e <dirlookup+0x7e>
*poff = off;
80101c29: 8b 45 10 mov 0x10(%ebp),%eax
80101c2c: 89 38 mov %edi,(%eax)
inum = de.inum;
80101c2e: 0f b7 55 d8 movzwl -0x28(%ebp),%edx
return iget(dp->dev, inum);
80101c32: 8b 03 mov (%ebx),%eax
80101c34: e8 c7 f5 ff ff call 80101200 <iget>
}
}
return 0;
}
80101c39: 83 c4 2c add $0x2c,%esp
80101c3c: 5b pop %ebx
80101c3d: 5e pop %esi
80101c3e: 5f pop %edi
80101c3f: 5d pop %ebp
80101c40: c3 ret
80101c41: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101c48: 83 c4 2c add $0x2c,%esp
return 0;
80101c4b: 31 c0 xor %eax,%eax
}
80101c4d: 5b pop %ebx
80101c4e: 5e pop %esi
80101c4f: 5f pop %edi
80101c50: 5d pop %ebp
80101c51: c3 ret
panic("dirlookup read");
80101c52: c7 04 24 99 6f 10 80 movl $0x80106f99,(%esp)
80101c59: e8 02 e7 ff ff call 80100360 <panic>
panic("dirlookup not DIR");
80101c5e: c7 04 24 87 6f 10 80 movl $0x80106f87,(%esp)
80101c65: e8 f6 e6 ff ff call 80100360 <panic>
80101c6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101c70 <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)
{
80101c70: 55 push %ebp
80101c71: 89 e5 mov %esp,%ebp
80101c73: 57 push %edi
80101c74: 89 cf mov %ecx,%edi
80101c76: 56 push %esi
80101c77: 53 push %ebx
80101c78: 89 c3 mov %eax,%ebx
80101c7a: 83 ec 2c sub $0x2c,%esp
struct inode *ip, *next;
if(*path == '/')
80101c7d: 80 38 2f cmpb $0x2f,(%eax)
{
80101c80: 89 55 e0 mov %edx,-0x20(%ebp)
if(*path == '/')
80101c83: 0f 84 51 01 00 00 je 80101dda <namex+0x16a>
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(myproc()->cwd);
80101c89: e8 02 1a 00 00 call 80103690 <myproc>
80101c8e: 8b 70 68 mov 0x68(%eax),%esi
acquire(&icache.lock);
80101c91: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101c98: e8 93 24 00 00 call 80104130 <acquire>
ip->ref++;
80101c9d: 83 46 08 01 addl $0x1,0x8(%esi)
release(&icache.lock);
80101ca1: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp)
80101ca8: e8 73 25 00 00 call 80104220 <release>
80101cad: eb 04 jmp 80101cb3 <namex+0x43>
80101caf: 90 nop
path++;
80101cb0: 83 c3 01 add $0x1,%ebx
while(*path == '/')
80101cb3: 0f b6 03 movzbl (%ebx),%eax
80101cb6: 3c 2f cmp $0x2f,%al
80101cb8: 74 f6 je 80101cb0 <namex+0x40>
if(*path == 0)
80101cba: 84 c0 test %al,%al
80101cbc: 0f 84 ed 00 00 00 je 80101daf <namex+0x13f>
while(*path != '/' && *path != 0)
80101cc2: 0f b6 03 movzbl (%ebx),%eax
80101cc5: 89 da mov %ebx,%edx
80101cc7: 84 c0 test %al,%al
80101cc9: 0f 84 b1 00 00 00 je 80101d80 <namex+0x110>
80101ccf: 3c 2f cmp $0x2f,%al
80101cd1: 75 0f jne 80101ce2 <namex+0x72>
80101cd3: e9 a8 00 00 00 jmp 80101d80 <namex+0x110>
80101cd8: 3c 2f cmp $0x2f,%al
80101cda: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101ce0: 74 0a je 80101cec <namex+0x7c>
path++;
80101ce2: 83 c2 01 add $0x1,%edx
while(*path != '/' && *path != 0)
80101ce5: 0f b6 02 movzbl (%edx),%eax
80101ce8: 84 c0 test %al,%al
80101cea: 75 ec jne 80101cd8 <namex+0x68>
80101cec: 89 d1 mov %edx,%ecx
80101cee: 29 d9 sub %ebx,%ecx
if(len >= DIRSIZ)
80101cf0: 83 f9 0d cmp $0xd,%ecx
80101cf3: 0f 8e 8f 00 00 00 jle 80101d88 <namex+0x118>
memmove(name, s, DIRSIZ);
80101cf9: 89 5c 24 04 mov %ebx,0x4(%esp)
80101cfd: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
80101d04: 00
80101d05: 89 3c 24 mov %edi,(%esp)
80101d08: 89 55 e4 mov %edx,-0x1c(%ebp)
80101d0b: e8 00 26 00 00 call 80104310 <memmove>
path++;
80101d10: 8b 55 e4 mov -0x1c(%ebp),%edx
80101d13: 89 d3 mov %edx,%ebx
while(*path == '/')
80101d15: 80 3a 2f cmpb $0x2f,(%edx)
80101d18: 75 0e jne 80101d28 <namex+0xb8>
80101d1a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
path++;
80101d20: 83 c3 01 add $0x1,%ebx
while(*path == '/')
80101d23: 80 3b 2f cmpb $0x2f,(%ebx)
80101d26: 74 f8 je 80101d20 <namex+0xb0>
while((path = skipelem(path, name)) != 0){
ilock(ip);
80101d28: 89 34 24 mov %esi,(%esp)
80101d2b: e8 70 f9 ff ff call 801016a0 <ilock>
if(ip->type != T_DIR){
80101d30: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80101d35: 0f 85 85 00 00 00 jne 80101dc0 <namex+0x150>
iunlockput(ip);
return 0;
}
if(nameiparent && *path == '\0'){
80101d3b: 8b 55 e0 mov -0x20(%ebp),%edx
80101d3e: 85 d2 test %edx,%edx
80101d40: 74 09 je 80101d4b <namex+0xdb>
80101d42: 80 3b 00 cmpb $0x0,(%ebx)
80101d45: 0f 84 a5 00 00 00 je 80101df0 <namex+0x180>
// Stop one level early.
iunlock(ip);
return ip;
}
if((next = dirlookup(ip, name, 0)) == 0){
80101d4b: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80101d52: 00
80101d53: 89 7c 24 04 mov %edi,0x4(%esp)
80101d57: 89 34 24 mov %esi,(%esp)
80101d5a: e8 51 fe ff ff call 80101bb0 <dirlookup>
80101d5f: 85 c0 test %eax,%eax
80101d61: 74 5d je 80101dc0 <namex+0x150>
iunlock(ip);
80101d63: 89 34 24 mov %esi,(%esp)
80101d66: 89 45 e4 mov %eax,-0x1c(%ebp)
80101d69: e8 12 fa ff ff call 80101780 <iunlock>
iput(ip);
80101d6e: 89 34 24 mov %esi,(%esp)
80101d71: e8 4a fa ff ff call 801017c0 <iput>
iunlockput(ip);
return 0;
}
iunlockput(ip);
ip = next;
80101d76: 8b 45 e4 mov -0x1c(%ebp),%eax
80101d79: 89 c6 mov %eax,%esi
80101d7b: e9 33 ff ff ff jmp 80101cb3 <namex+0x43>
while(*path != '/' && *path != 0)
80101d80: 31 c9 xor %ecx,%ecx
80101d82: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
memmove(name, s, len);
80101d88: 89 4c 24 08 mov %ecx,0x8(%esp)
80101d8c: 89 5c 24 04 mov %ebx,0x4(%esp)
80101d90: 89 3c 24 mov %edi,(%esp)
80101d93: 89 55 dc mov %edx,-0x24(%ebp)
80101d96: 89 4d e4 mov %ecx,-0x1c(%ebp)
80101d99: e8 72 25 00 00 call 80104310 <memmove>
name[len] = 0;
80101d9e: 8b 4d e4 mov -0x1c(%ebp),%ecx
80101da1: 8b 55 dc mov -0x24(%ebp),%edx
80101da4: c6 04 0f 00 movb $0x0,(%edi,%ecx,1)
80101da8: 89 d3 mov %edx,%ebx
80101daa: e9 66 ff ff ff jmp 80101d15 <namex+0xa5>
}
if(nameiparent){
80101daf: 8b 45 e0 mov -0x20(%ebp),%eax
80101db2: 85 c0 test %eax,%eax
80101db4: 75 4c jne 80101e02 <namex+0x192>
80101db6: 89 f0 mov %esi,%eax
iput(ip);
return 0;
}
return ip;
}
80101db8: 83 c4 2c add $0x2c,%esp
80101dbb: 5b pop %ebx
80101dbc: 5e pop %esi
80101dbd: 5f pop %edi
80101dbe: 5d pop %ebp
80101dbf: c3 ret
iunlock(ip);
80101dc0: 89 34 24 mov %esi,(%esp)
80101dc3: e8 b8 f9 ff ff call 80101780 <iunlock>
iput(ip);
80101dc8: 89 34 24 mov %esi,(%esp)
80101dcb: e8 f0 f9 ff ff call 801017c0 <iput>
}
80101dd0: 83 c4 2c add $0x2c,%esp
return 0;
80101dd3: 31 c0 xor %eax,%eax
}
80101dd5: 5b pop %ebx
80101dd6: 5e pop %esi
80101dd7: 5f pop %edi
80101dd8: 5d pop %ebp
80101dd9: c3 ret
ip = iget(ROOTDEV, ROOTINO);
80101dda: ba 01 00 00 00 mov $0x1,%edx
80101ddf: b8 01 00 00 00 mov $0x1,%eax
80101de4: e8 17 f4 ff ff call 80101200 <iget>
80101de9: 89 c6 mov %eax,%esi
80101deb: e9 c3 fe ff ff jmp 80101cb3 <namex+0x43>
iunlock(ip);
80101df0: 89 34 24 mov %esi,(%esp)
80101df3: e8 88 f9 ff ff call 80101780 <iunlock>
}
80101df8: 83 c4 2c add $0x2c,%esp
return ip;
80101dfb: 89 f0 mov %esi,%eax
}
80101dfd: 5b pop %ebx
80101dfe: 5e pop %esi
80101dff: 5f pop %edi
80101e00: 5d pop %ebp
80101e01: c3 ret
iput(ip);
80101e02: 89 34 24 mov %esi,(%esp)
80101e05: e8 b6 f9 ff ff call 801017c0 <iput>
return 0;
80101e0a: 31 c0 xor %eax,%eax
80101e0c: eb aa jmp 80101db8 <namex+0x148>
80101e0e: 66 90 xchg %ax,%ax
80101e10 <dirlink>:
{
80101e10: 55 push %ebp
80101e11: 89 e5 mov %esp,%ebp
80101e13: 57 push %edi
80101e14: 56 push %esi
80101e15: 53 push %ebx
80101e16: 83 ec 2c sub $0x2c,%esp
80101e19: 8b 5d 08 mov 0x8(%ebp),%ebx
if((ip = dirlookup(dp, name, 0)) != 0){
80101e1c: 8b 45 0c mov 0xc(%ebp),%eax
80101e1f: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80101e26: 00
80101e27: 89 1c 24 mov %ebx,(%esp)
80101e2a: 89 44 24 04 mov %eax,0x4(%esp)
80101e2e: e8 7d fd ff ff call 80101bb0 <dirlookup>
80101e33: 85 c0 test %eax,%eax
80101e35: 0f 85 8b 00 00 00 jne 80101ec6 <dirlink+0xb6>
for(off = 0; off < dp->size; off += sizeof(de)){
80101e3b: 8b 43 58 mov 0x58(%ebx),%eax
80101e3e: 31 ff xor %edi,%edi
80101e40: 8d 75 d8 lea -0x28(%ebp),%esi
80101e43: 85 c0 test %eax,%eax
80101e45: 75 13 jne 80101e5a <dirlink+0x4a>
80101e47: eb 35 jmp 80101e7e <dirlink+0x6e>
80101e49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101e50: 8d 57 10 lea 0x10(%edi),%edx
80101e53: 39 53 58 cmp %edx,0x58(%ebx)
80101e56: 89 d7 mov %edx,%edi
80101e58: 76 24 jbe 80101e7e <dirlink+0x6e>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e5a: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80101e61: 00
80101e62: 89 7c 24 08 mov %edi,0x8(%esp)
80101e66: 89 74 24 04 mov %esi,0x4(%esp)
80101e6a: 89 1c 24 mov %ebx,(%esp)
80101e6d: e8 de fa ff ff call 80101950 <readi>
80101e72: 83 f8 10 cmp $0x10,%eax
80101e75: 75 5e jne 80101ed5 <dirlink+0xc5>
if(de.inum == 0)
80101e77: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80101e7c: 75 d2 jne 80101e50 <dirlink+0x40>
strncpy(de.name, name, DIRSIZ);
80101e7e: 8b 45 0c mov 0xc(%ebp),%eax
80101e81: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
80101e88: 00
80101e89: 89 44 24 04 mov %eax,0x4(%esp)
80101e8d: 8d 45 da lea -0x26(%ebp),%eax
80101e90: 89 04 24 mov %eax,(%esp)
80101e93: e8 68 25 00 00 call 80104400 <strncpy>
de.inum = inum;
80101e98: 8b 45 10 mov 0x10(%ebp),%eax
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e9b: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80101ea2: 00
80101ea3: 89 7c 24 08 mov %edi,0x8(%esp)
80101ea7: 89 74 24 04 mov %esi,0x4(%esp)
80101eab: 89 1c 24 mov %ebx,(%esp)
de.inum = inum;
80101eae: 66 89 45 d8 mov %ax,-0x28(%ebp)
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101eb2: e8 99 fb ff ff call 80101a50 <writei>
80101eb7: 83 f8 10 cmp $0x10,%eax
80101eba: 75 25 jne 80101ee1 <dirlink+0xd1>
return 0;
80101ebc: 31 c0 xor %eax,%eax
}
80101ebe: 83 c4 2c add $0x2c,%esp
80101ec1: 5b pop %ebx
80101ec2: 5e pop %esi
80101ec3: 5f pop %edi
80101ec4: 5d pop %ebp
80101ec5: c3 ret
iput(ip);
80101ec6: 89 04 24 mov %eax,(%esp)
80101ec9: e8 f2 f8 ff ff call 801017c0 <iput>
return -1;
80101ece: b8 ff ff ff ff mov $0xffffffff,%eax
80101ed3: eb e9 jmp 80101ebe <dirlink+0xae>
panic("dirlink read");
80101ed5: c7 04 24 a8 6f 10 80 movl $0x80106fa8,(%esp)
80101edc: e8 7f e4 ff ff call 80100360 <panic>
panic("dirlink");
80101ee1: c7 04 24 9e 75 10 80 movl $0x8010759e,(%esp)
80101ee8: e8 73 e4 ff ff call 80100360 <panic>
80101eed: 8d 76 00 lea 0x0(%esi),%esi
80101ef0 <namei>:
struct inode*
namei(char *path)
{
80101ef0: 55 push %ebp
char name[DIRSIZ];
return namex(path, 0, name);
80101ef1: 31 d2 xor %edx,%edx
{
80101ef3: 89 e5 mov %esp,%ebp
80101ef5: 83 ec 18 sub $0x18,%esp
return namex(path, 0, name);
80101ef8: 8b 45 08 mov 0x8(%ebp),%eax
80101efb: 8d 4d ea lea -0x16(%ebp),%ecx
80101efe: e8 6d fd ff ff call 80101c70 <namex>
}
80101f03: c9 leave
80101f04: c3 ret
80101f05: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101f09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101f10 <nameiparent>:
struct inode*
nameiparent(char *path, char *name)
{
80101f10: 55 push %ebp
return namex(path, 1, name);
80101f11: ba 01 00 00 00 mov $0x1,%edx
{
80101f16: 89 e5 mov %esp,%ebp
return namex(path, 1, name);
80101f18: 8b 4d 0c mov 0xc(%ebp),%ecx
80101f1b: 8b 45 08 mov 0x8(%ebp),%eax
}
80101f1e: 5d pop %ebp
return namex(path, 1, name);
80101f1f: e9 4c fd ff ff jmp 80101c70 <namex>
80101f24: 66 90 xchg %ax,%ax
80101f26: 66 90 xchg %ax,%ax
80101f28: 66 90 xchg %ax,%ax
80101f2a: 66 90 xchg %ax,%ax
80101f2c: 66 90 xchg %ax,%ax
80101f2e: 66 90 xchg %ax,%ax
80101f30 <idestart>:
}
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
80101f30: 55 push %ebp
80101f31: 89 e5 mov %esp,%ebp
80101f33: 56 push %esi
80101f34: 89 c6 mov %eax,%esi
80101f36: 53 push %ebx
80101f37: 83 ec 10 sub $0x10,%esp
if(b == 0)
80101f3a: 85 c0 test %eax,%eax
80101f3c: 0f 84 99 00 00 00 je 80101fdb <idestart+0xab>
panic("idestart");
if(b->blockno >= FSSIZE)
80101f42: 8b 48 08 mov 0x8(%eax),%ecx
80101f45: 81 f9 e7 03 00 00 cmp $0x3e7,%ecx
80101f4b: 0f 87 7e 00 00 00 ja 80101fcf <idestart+0x9f>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80101f51: ba f7 01 00 00 mov $0x1f7,%edx
80101f56: 66 90 xchg %ax,%ax
80101f58: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80101f59: 83 e0 c0 and $0xffffffc0,%eax
80101f5c: 3c 40 cmp $0x40,%al
80101f5e: 75 f8 jne 80101f58 <idestart+0x28>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80101f60: 31 db xor %ebx,%ebx
80101f62: ba f6 03 00 00 mov $0x3f6,%edx
80101f67: 89 d8 mov %ebx,%eax
80101f69: ee out %al,(%dx)
80101f6a: ba f2 01 00 00 mov $0x1f2,%edx
80101f6f: b8 01 00 00 00 mov $0x1,%eax
80101f74: ee out %al,(%dx)
80101f75: 0f b6 c1 movzbl %cl,%eax
80101f78: b2 f3 mov $0xf3,%dl
80101f7a: ee out %al,(%dx)
idewait(0);
outb(0x3f6, 0); // generate interrupt
outb(0x1f2, sector_per_block); // number of sectors
outb(0x1f3, sector & 0xff);
outb(0x1f4, (sector >> 8) & 0xff);
80101f7b: 89 c8 mov %ecx,%eax
80101f7d: b2 f4 mov $0xf4,%dl
80101f7f: c1 f8 08 sar $0x8,%eax
80101f82: ee out %al,(%dx)
80101f83: b2 f5 mov $0xf5,%dl
80101f85: 89 d8 mov %ebx,%eax
80101f87: ee out %al,(%dx)
outb(0x1f5, (sector >> 16) & 0xff);
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
80101f88: 0f b6 46 04 movzbl 0x4(%esi),%eax
80101f8c: b2 f6 mov $0xf6,%dl
80101f8e: 83 e0 01 and $0x1,%eax
80101f91: c1 e0 04 shl $0x4,%eax
80101f94: 83 c8 e0 or $0xffffffe0,%eax
80101f97: ee out %al,(%dx)
if(b->flags & B_DIRTY){
80101f98: f6 06 04 testb $0x4,(%esi)
80101f9b: 75 13 jne 80101fb0 <idestart+0x80>
80101f9d: ba f7 01 00 00 mov $0x1f7,%edx
80101fa2: b8 20 00 00 00 mov $0x20,%eax
80101fa7: ee out %al,(%dx)
outb(0x1f7, write_cmd);
outsl(0x1f0, b->data, BSIZE/4);
} else {
outb(0x1f7, read_cmd);
}
}
80101fa8: 83 c4 10 add $0x10,%esp
80101fab: 5b pop %ebx
80101fac: 5e pop %esi
80101fad: 5d pop %ebp
80101fae: c3 ret
80101faf: 90 nop
80101fb0: b2 f7 mov $0xf7,%dl
80101fb2: b8 30 00 00 00 mov $0x30,%eax
80101fb7: ee out %al,(%dx)
asm volatile("cld; rep outsl" :
80101fb8: b9 80 00 00 00 mov $0x80,%ecx
outsl(0x1f0, b->data, BSIZE/4);
80101fbd: 83 c6 5c add $0x5c,%esi
80101fc0: ba f0 01 00 00 mov $0x1f0,%edx
80101fc5: fc cld
80101fc6: f3 6f rep outsl %ds:(%esi),(%dx)
}
80101fc8: 83 c4 10 add $0x10,%esp
80101fcb: 5b pop %ebx
80101fcc: 5e pop %esi
80101fcd: 5d pop %ebp
80101fce: c3 ret
panic("incorrect blockno");
80101fcf: c7 04 24 14 70 10 80 movl $0x80107014,(%esp)
80101fd6: e8 85 e3 ff ff call 80100360 <panic>
panic("idestart");
80101fdb: c7 04 24 0b 70 10 80 movl $0x8010700b,(%esp)
80101fe2: e8 79 e3 ff ff call 80100360 <panic>
80101fe7: 89 f6 mov %esi,%esi
80101fe9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101ff0 <ideinit>:
{
80101ff0: 55 push %ebp
80101ff1: 89 e5 mov %esp,%ebp
80101ff3: 83 ec 18 sub $0x18,%esp
initlock(&idelock, "ide");
80101ff6: c7 44 24 04 26 70 10 movl $0x80107026,0x4(%esp)
80101ffd: 80
80101ffe: c7 04 24 80 a5 10 80 movl $0x8010a580,(%esp)
80102005: e8 36 20 00 00 call 80104040 <initlock>
ioapicenable(IRQ_IDE, ncpu - 1);
8010200a: a1 00 2d 11 80 mov 0x80112d00,%eax
8010200f: c7 04 24 0e 00 00 00 movl $0xe,(%esp)
80102016: 83 e8 01 sub $0x1,%eax
80102019: 89 44 24 04 mov %eax,0x4(%esp)
8010201d: e8 7e 02 00 00 call 801022a0 <ioapicenable>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102022: ba f7 01 00 00 mov $0x1f7,%edx
80102027: 90 nop
80102028: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80102029: 83 e0 c0 and $0xffffffc0,%eax
8010202c: 3c 40 cmp $0x40,%al
8010202e: 75 f8 jne 80102028 <ideinit+0x38>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102030: ba f6 01 00 00 mov $0x1f6,%edx
80102035: b8 f0 ff ff ff mov $0xfffffff0,%eax
8010203a: ee out %al,(%dx)
8010203b: b9 e8 03 00 00 mov $0x3e8,%ecx
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102040: b2 f7 mov $0xf7,%dl
80102042: eb 09 jmp 8010204d <ideinit+0x5d>
80102044: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(i=0; i<1000; i++){
80102048: 83 e9 01 sub $0x1,%ecx
8010204b: 74 0f je 8010205c <ideinit+0x6c>
8010204d: ec in (%dx),%al
if(inb(0x1f7) != 0){
8010204e: 84 c0 test %al,%al
80102050: 74 f6 je 80102048 <ideinit+0x58>
havedisk1 = 1;
80102052: c7 05 60 a5 10 80 01 movl $0x1,0x8010a560
80102059: 00 00 00
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010205c: ba f6 01 00 00 mov $0x1f6,%edx
80102061: b8 e0 ff ff ff mov $0xffffffe0,%eax
80102066: ee out %al,(%dx)
}
80102067: c9 leave
80102068: c3 ret
80102069: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102070 <ideintr>:
// Interrupt handler.
void
ideintr(void)
{
80102070: 55 push %ebp
80102071: 89 e5 mov %esp,%ebp
80102073: 57 push %edi
80102074: 56 push %esi
80102075: 53 push %ebx
80102076: 83 ec 1c sub $0x1c,%esp
struct buf *b;
// First queued buffer is the active request.
acquire(&idelock);
80102079: c7 04 24 80 a5 10 80 movl $0x8010a580,(%esp)
80102080: e8 ab 20 00 00 call 80104130 <acquire>
if((b = idequeue) == 0){
80102085: 8b 1d 64 a5 10 80 mov 0x8010a564,%ebx
8010208b: 85 db test %ebx,%ebx
8010208d: 74 30 je 801020bf <ideintr+0x4f>
release(&idelock);
return;
}
idequeue = b->qnext;
8010208f: 8b 43 58 mov 0x58(%ebx),%eax
80102092: a3 64 a5 10 80 mov %eax,0x8010a564
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
80102097: 8b 33 mov (%ebx),%esi
80102099: f7 c6 04 00 00 00 test $0x4,%esi
8010209f: 74 37 je 801020d8 <ideintr+0x68>
insl(0x1f0, b->data, BSIZE/4);
// Wake process waiting for this buf.
b->flags |= B_VALID;
b->flags &= ~B_DIRTY;
801020a1: 83 e6 fb and $0xfffffffb,%esi
801020a4: 83 ce 02 or $0x2,%esi
801020a7: 89 33 mov %esi,(%ebx)
wakeup(b);
801020a9: 89 1c 24 mov %ebx,(%esp)
801020ac: e8 cf 1c 00 00 call 80103d80 <wakeup>
// Start disk on next buf in queue.
if(idequeue != 0)
801020b1: a1 64 a5 10 80 mov 0x8010a564,%eax
801020b6: 85 c0 test %eax,%eax
801020b8: 74 05 je 801020bf <ideintr+0x4f>
idestart(idequeue);
801020ba: e8 71 fe ff ff call 80101f30 <idestart>
release(&idelock);
801020bf: c7 04 24 80 a5 10 80 movl $0x8010a580,(%esp)
801020c6: e8 55 21 00 00 call 80104220 <release>
release(&idelock);
}
801020cb: 83 c4 1c add $0x1c,%esp
801020ce: 5b pop %ebx
801020cf: 5e pop %esi
801020d0: 5f pop %edi
801020d1: 5d pop %ebp
801020d2: c3 ret
801020d3: 90 nop
801020d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801020d8: ba f7 01 00 00 mov $0x1f7,%edx
801020dd: 8d 76 00 lea 0x0(%esi),%esi
801020e0: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
801020e1: 89 c1 mov %eax,%ecx
801020e3: 83 e1 c0 and $0xffffffc0,%ecx
801020e6: 80 f9 40 cmp $0x40,%cl
801020e9: 75 f5 jne 801020e0 <ideintr+0x70>
if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0)
801020eb: a8 21 test $0x21,%al
801020ed: 75 b2 jne 801020a1 <ideintr+0x31>
insl(0x1f0, b->data, BSIZE/4);
801020ef: 8d 7b 5c lea 0x5c(%ebx),%edi
asm volatile("cld; rep insl" :
801020f2: b9 80 00 00 00 mov $0x80,%ecx
801020f7: ba f0 01 00 00 mov $0x1f0,%edx
801020fc: fc cld
801020fd: f3 6d rep insl (%dx),%es:(%edi)
801020ff: 8b 33 mov (%ebx),%esi
80102101: eb 9e jmp 801020a1 <ideintr+0x31>
80102103: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102110 <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)
{
80102110: 55 push %ebp
80102111: 89 e5 mov %esp,%ebp
80102113: 53 push %ebx
80102114: 83 ec 14 sub $0x14,%esp
80102117: 8b 5d 08 mov 0x8(%ebp),%ebx
struct buf **pp;
if(!holdingsleep(&b->lock))
8010211a: 8d 43 0c lea 0xc(%ebx),%eax
8010211d: 89 04 24 mov %eax,(%esp)
80102120: e8 eb 1e 00 00 call 80104010 <holdingsleep>
80102125: 85 c0 test %eax,%eax
80102127: 0f 84 9e 00 00 00 je 801021cb <iderw+0xbb>
panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
8010212d: 8b 03 mov (%ebx),%eax
8010212f: 83 e0 06 and $0x6,%eax
80102132: 83 f8 02 cmp $0x2,%eax
80102135: 0f 84 a8 00 00 00 je 801021e3 <iderw+0xd3>
panic("iderw: nothing to do");
if(b->dev != 0 && !havedisk1)
8010213b: 8b 53 04 mov 0x4(%ebx),%edx
8010213e: 85 d2 test %edx,%edx
80102140: 74 0d je 8010214f <iderw+0x3f>
80102142: a1 60 a5 10 80 mov 0x8010a560,%eax
80102147: 85 c0 test %eax,%eax
80102149: 0f 84 88 00 00 00 je 801021d7 <iderw+0xc7>
panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC:acquire-lock
8010214f: c7 04 24 80 a5 10 80 movl $0x8010a580,(%esp)
80102156: e8 d5 1f 00 00 call 80104130 <acquire>
// Append b to idequeue.
b->qnext = 0;
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010215b: a1 64 a5 10 80 mov 0x8010a564,%eax
b->qnext = 0;
80102160: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx)
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
80102167: 85 c0 test %eax,%eax
80102169: 75 07 jne 80102172 <iderw+0x62>
8010216b: eb 4e jmp 801021bb <iderw+0xab>
8010216d: 8d 76 00 lea 0x0(%esi),%esi
80102170: 89 d0 mov %edx,%eax
80102172: 8b 50 58 mov 0x58(%eax),%edx
80102175: 85 d2 test %edx,%edx
80102177: 75 f7 jne 80102170 <iderw+0x60>
80102179: 83 c0 58 add $0x58,%eax
;
*pp = b;
8010217c: 89 18 mov %ebx,(%eax)
// Start disk if necessary.
if(idequeue == b)
8010217e: 39 1d 64 a5 10 80 cmp %ebx,0x8010a564
80102184: 74 3c je 801021c2 <iderw+0xb2>
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
80102186: 8b 03 mov (%ebx),%eax
80102188: 83 e0 06 and $0x6,%eax
8010218b: 83 f8 02 cmp $0x2,%eax
8010218e: 74 1a je 801021aa <iderw+0x9a>
sleep(b, &idelock);
80102190: c7 44 24 04 80 a5 10 movl $0x8010a580,0x4(%esp)
80102197: 80
80102198: 89 1c 24 mov %ebx,(%esp)
8010219b: e8 50 1a 00 00 call 80103bf0 <sleep>
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801021a0: 8b 13 mov (%ebx),%edx
801021a2: 83 e2 06 and $0x6,%edx
801021a5: 83 fa 02 cmp $0x2,%edx
801021a8: 75 e6 jne 80102190 <iderw+0x80>
}
release(&idelock);
801021aa: c7 45 08 80 a5 10 80 movl $0x8010a580,0x8(%ebp)
}
801021b1: 83 c4 14 add $0x14,%esp
801021b4: 5b pop %ebx
801021b5: 5d pop %ebp
release(&idelock);
801021b6: e9 65 20 00 00 jmp 80104220 <release>
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
801021bb: b8 64 a5 10 80 mov $0x8010a564,%eax
801021c0: eb ba jmp 8010217c <iderw+0x6c>
idestart(b);
801021c2: 89 d8 mov %ebx,%eax
801021c4: e8 67 fd ff ff call 80101f30 <idestart>
801021c9: eb bb jmp 80102186 <iderw+0x76>
panic("iderw: buf not locked");
801021cb: c7 04 24 2a 70 10 80 movl $0x8010702a,(%esp)
801021d2: e8 89 e1 ff ff call 80100360 <panic>
panic("iderw: ide disk 1 not present");
801021d7: c7 04 24 55 70 10 80 movl $0x80107055,(%esp)
801021de: e8 7d e1 ff ff call 80100360 <panic>
panic("iderw: nothing to do");
801021e3: c7 04 24 40 70 10 80 movl $0x80107040,(%esp)
801021ea: e8 71 e1 ff ff call 80100360 <panic>
801021ef: 90 nop
801021f0 <ioapicinit>:
ioapic->data = data;
}
void
ioapicinit(void)
{
801021f0: 55 push %ebp
801021f1: 89 e5 mov %esp,%ebp
801021f3: 56 push %esi
801021f4: 53 push %ebx
801021f5: 83 ec 10 sub $0x10,%esp
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
801021f8: c7 05 34 26 11 80 00 movl $0xfec00000,0x80112634
801021ff: 00 c0 fe
ioapic->reg = reg;
80102202: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000
80102209: 00 00 00
return ioapic->data;
8010220c: 8b 15 34 26 11 80 mov 0x80112634,%edx
80102212: 8b 42 10 mov 0x10(%edx),%eax
ioapic->reg = reg;
80102215: c7 02 00 00 00 00 movl $0x0,(%edx)
return ioapic->data;
8010221b: 8b 1d 34 26 11 80 mov 0x80112634,%ebx
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
id = ioapicread(REG_ID) >> 24;
if(id != ioapicid)
80102221: 0f b6 15 60 27 11 80 movzbl 0x80112760,%edx
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
80102228: c1 e8 10 shr $0x10,%eax
8010222b: 0f b6 f0 movzbl %al,%esi
return ioapic->data;
8010222e: 8b 43 10 mov 0x10(%ebx),%eax
id = ioapicread(REG_ID) >> 24;
80102231: c1 e8 18 shr $0x18,%eax
if(id != ioapicid)
80102234: 39 c2 cmp %eax,%edx
80102236: 74 12 je 8010224a <ioapicinit+0x5a>
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
80102238: c7 04 24 74 70 10 80 movl $0x80107074,(%esp)
8010223f: e8 0c e4 ff ff call 80100650 <cprintf>
80102244: 8b 1d 34 26 11 80 mov 0x80112634,%ebx
8010224a: ba 10 00 00 00 mov $0x10,%edx
8010224f: 31 c0 xor %eax,%eax
80102251: eb 07 jmp 8010225a <ioapicinit+0x6a>
80102253: 90 nop
80102254: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102258: 89 cb mov %ecx,%ebx
ioapic->reg = reg;
8010225a: 89 13 mov %edx,(%ebx)
ioapic->data = data;
8010225c: 8b 1d 34 26 11 80 mov 0x80112634,%ebx
80102262: 8d 48 20 lea 0x20(%eax),%ecx
// Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs.
for(i = 0; i <= maxintr; i++){
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
80102265: 81 c9 00 00 01 00 or $0x10000,%ecx
for(i = 0; i <= maxintr; i++){
8010226b: 83 c0 01 add $0x1,%eax
ioapic->data = data;
8010226e: 89 4b 10 mov %ecx,0x10(%ebx)
80102271: 8d 4a 01 lea 0x1(%edx),%ecx
80102274: 83 c2 02 add $0x2,%edx
ioapic->reg = reg;
80102277: 89 0b mov %ecx,(%ebx)
ioapic->data = data;
80102279: 8b 0d 34 26 11 80 mov 0x80112634,%ecx
for(i = 0; i <= maxintr; i++){
8010227f: 39 c6 cmp %eax,%esi
ioapic->data = data;
80102281: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx)
for(i = 0; i <= maxintr; i++){
80102288: 7d ce jge 80102258 <ioapicinit+0x68>
ioapicwrite(REG_TABLE+2*i+1, 0);
}
}
8010228a: 83 c4 10 add $0x10,%esp
8010228d: 5b pop %ebx
8010228e: 5e pop %esi
8010228f: 5d pop %ebp
80102290: c3 ret
80102291: eb 0d jmp 801022a0 <ioapicenable>
80102293: 90 nop
80102294: 90 nop
80102295: 90 nop
80102296: 90 nop
80102297: 90 nop
80102298: 90 nop
80102299: 90 nop
8010229a: 90 nop
8010229b: 90 nop
8010229c: 90 nop
8010229d: 90 nop
8010229e: 90 nop
8010229f: 90 nop
801022a0 <ioapicenable>:
void
ioapicenable(int irq, int cpunum)
{
801022a0: 55 push %ebp
801022a1: 89 e5 mov %esp,%ebp
801022a3: 8b 55 08 mov 0x8(%ebp),%edx
801022a6: 53 push %ebx
801022a7: 8b 45 0c mov 0xc(%ebp),%eax
// 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);
801022aa: 8d 5a 20 lea 0x20(%edx),%ebx
801022ad: 8d 4c 12 10 lea 0x10(%edx,%edx,1),%ecx
ioapic->reg = reg;
801022b1: 8b 15 34 26 11 80 mov 0x80112634,%edx
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
801022b7: c1 e0 18 shl $0x18,%eax
ioapic->reg = reg;
801022ba: 89 0a mov %ecx,(%edx)
ioapic->data = data;
801022bc: 8b 15 34 26 11 80 mov 0x80112634,%edx
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
801022c2: 83 c1 01 add $0x1,%ecx
ioapic->data = data;
801022c5: 89 5a 10 mov %ebx,0x10(%edx)
ioapic->reg = reg;
801022c8: 89 0a mov %ecx,(%edx)
ioapic->data = data;
801022ca: 8b 15 34 26 11 80 mov 0x80112634,%edx
801022d0: 89 42 10 mov %eax,0x10(%edx)
}
801022d3: 5b pop %ebx
801022d4: 5d pop %ebp
801022d5: c3 ret
801022d6: 66 90 xchg %ax,%ax
801022d8: 66 90 xchg %ax,%ax
801022da: 66 90 xchg %ax,%ax
801022dc: 66 90 xchg %ax,%ax
801022de: 66 90 xchg %ax,%ax
801022e0 <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)
{
801022e0: 55 push %ebp
801022e1: 89 e5 mov %esp,%ebp
801022e3: 53 push %ebx
801022e4: 83 ec 14 sub $0x14,%esp
801022e7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct run *r;
if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP)
801022ea: f7 c3 ff 0f 00 00 test $0xfff,%ebx
801022f0: 75 7c jne 8010236e <kfree+0x8e>
801022f2: 81 fb f4 58 11 80 cmp $0x801158f4,%ebx
801022f8: 72 74 jb 8010236e <kfree+0x8e>
801022fa: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80102300: 3d ff ff ff 0d cmp $0xdffffff,%eax
80102305: 77 67 ja 8010236e <kfree+0x8e>
panic("kfree");
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
80102307: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
8010230e: 00
8010230f: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102316: 00
80102317: 89 1c 24 mov %ebx,(%esp)
8010231a: e8 51 1f 00 00 call 80104270 <memset>
if(kmem.use_lock)
8010231f: 8b 15 74 26 11 80 mov 0x80112674,%edx
80102325: 85 d2 test %edx,%edx
80102327: 75 37 jne 80102360 <kfree+0x80>
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
80102329: a1 78 26 11 80 mov 0x80112678,%eax
8010232e: 89 03 mov %eax,(%ebx)
kmem.freelist = r;
if(kmem.use_lock)
80102330: a1 74 26 11 80 mov 0x80112674,%eax
kmem.freelist = r;
80102335: 89 1d 78 26 11 80 mov %ebx,0x80112678
if(kmem.use_lock)
8010233b: 85 c0 test %eax,%eax
8010233d: 75 09 jne 80102348 <kfree+0x68>
release(&kmem.lock);
}
8010233f: 83 c4 14 add $0x14,%esp
80102342: 5b pop %ebx
80102343: 5d pop %ebp
80102344: c3 ret
80102345: 8d 76 00 lea 0x0(%esi),%esi
release(&kmem.lock);
80102348: c7 45 08 40 26 11 80 movl $0x80112640,0x8(%ebp)
}
8010234f: 83 c4 14 add $0x14,%esp
80102352: 5b pop %ebx
80102353: 5d pop %ebp
release(&kmem.lock);
80102354: e9 c7 1e 00 00 jmp 80104220 <release>
80102359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
acquire(&kmem.lock);
80102360: c7 04 24 40 26 11 80 movl $0x80112640,(%esp)
80102367: e8 c4 1d 00 00 call 80104130 <acquire>
8010236c: eb bb jmp 80102329 <kfree+0x49>
panic("kfree");
8010236e: c7 04 24 a6 70 10 80 movl $0x801070a6,(%esp)
80102375: e8 e6 df ff ff call 80100360 <panic>
8010237a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102380 <freerange>:
{
80102380: 55 push %ebp
80102381: 89 e5 mov %esp,%ebp
80102383: 56 push %esi
80102384: 53 push %ebx
80102385: 83 ec 10 sub $0x10,%esp
p = (char*)PGROUNDUP((uint)vstart);
80102388: 8b 45 08 mov 0x8(%ebp),%eax
{
8010238b: 8b 75 0c mov 0xc(%ebp),%esi
p = (char*)PGROUNDUP((uint)vstart);
8010238e: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx
80102394: 81 e2 00 f0 ff ff and $0xfffff000,%edx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
8010239a: 8d 9a 00 10 00 00 lea 0x1000(%edx),%ebx
801023a0: 39 de cmp %ebx,%esi
801023a2: 73 08 jae 801023ac <freerange+0x2c>
801023a4: eb 18 jmp 801023be <freerange+0x3e>
801023a6: 66 90 xchg %ax,%ax
801023a8: 89 da mov %ebx,%edx
801023aa: 89 c3 mov %eax,%ebx
kfree(p);
801023ac: 89 14 24 mov %edx,(%esp)
801023af: e8 2c ff ff ff call 801022e0 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801023b4: 8d 83 00 10 00 00 lea 0x1000(%ebx),%eax
801023ba: 39 f0 cmp %esi,%eax
801023bc: 76 ea jbe 801023a8 <freerange+0x28>
}
801023be: 83 c4 10 add $0x10,%esp
801023c1: 5b pop %ebx
801023c2: 5e pop %esi
801023c3: 5d pop %ebp
801023c4: c3 ret
801023c5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801023c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801023d0 <kinit1>:
{
801023d0: 55 push %ebp
801023d1: 89 e5 mov %esp,%ebp
801023d3: 56 push %esi
801023d4: 53 push %ebx
801023d5: 83 ec 10 sub $0x10,%esp
801023d8: 8b 75 0c mov 0xc(%ebp),%esi
initlock(&kmem.lock, "kmem");
801023db: c7 44 24 04 ac 70 10 movl $0x801070ac,0x4(%esp)
801023e2: 80
801023e3: c7 04 24 40 26 11 80 movl $0x80112640,(%esp)
801023ea: e8 51 1c 00 00 call 80104040 <initlock>
p = (char*)PGROUNDUP((uint)vstart);
801023ef: 8b 45 08 mov 0x8(%ebp),%eax
kmem.use_lock = 0;
801023f2: c7 05 74 26 11 80 00 movl $0x0,0x80112674
801023f9: 00 00 00
p = (char*)PGROUNDUP((uint)vstart);
801023fc: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx
80102402: 81 e2 00 f0 ff ff and $0xfffff000,%edx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102408: 8d 9a 00 10 00 00 lea 0x1000(%edx),%ebx
8010240e: 39 de cmp %ebx,%esi
80102410: 73 0a jae 8010241c <kinit1+0x4c>
80102412: eb 1a jmp 8010242e <kinit1+0x5e>
80102414: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102418: 89 da mov %ebx,%edx
8010241a: 89 c3 mov %eax,%ebx
kfree(p);
8010241c: 89 14 24 mov %edx,(%esp)
8010241f: e8 bc fe ff ff call 801022e0 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102424: 8d 83 00 10 00 00 lea 0x1000(%ebx),%eax
8010242a: 39 c6 cmp %eax,%esi
8010242c: 73 ea jae 80102418 <kinit1+0x48>
}
8010242e: 83 c4 10 add $0x10,%esp
80102431: 5b pop %ebx
80102432: 5e pop %esi
80102433: 5d pop %ebp
80102434: c3 ret
80102435: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102439: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102440 <kinit2>:
{
80102440: 55 push %ebp
80102441: 89 e5 mov %esp,%ebp
80102443: 56 push %esi
80102444: 53 push %ebx
80102445: 83 ec 10 sub $0x10,%esp
p = (char*)PGROUNDUP((uint)vstart);
80102448: 8b 45 08 mov 0x8(%ebp),%eax
{
8010244b: 8b 75 0c mov 0xc(%ebp),%esi
p = (char*)PGROUNDUP((uint)vstart);
8010244e: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx
80102454: 81 e2 00 f0 ff ff and $0xfffff000,%edx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
8010245a: 8d 9a 00 10 00 00 lea 0x1000(%edx),%ebx
80102460: 39 de cmp %ebx,%esi
80102462: 73 08 jae 8010246c <kinit2+0x2c>
80102464: eb 18 jmp 8010247e <kinit2+0x3e>
80102466: 66 90 xchg %ax,%ax
80102468: 89 da mov %ebx,%edx
8010246a: 89 c3 mov %eax,%ebx
kfree(p);
8010246c: 89 14 24 mov %edx,(%esp)
8010246f: e8 6c fe ff ff call 801022e0 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102474: 8d 83 00 10 00 00 lea 0x1000(%ebx),%eax
8010247a: 39 c6 cmp %eax,%esi
8010247c: 73 ea jae 80102468 <kinit2+0x28>
kmem.use_lock = 1;
8010247e: c7 05 74 26 11 80 01 movl $0x1,0x80112674
80102485: 00 00 00
}
80102488: 83 c4 10 add $0x10,%esp
8010248b: 5b pop %ebx
8010248c: 5e pop %esi
8010248d: 5d pop %ebp
8010248e: c3 ret
8010248f: 90 nop
80102490 <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)
{
80102490: 55 push %ebp
80102491: 89 e5 mov %esp,%ebp
80102493: 53 push %ebx
80102494: 83 ec 14 sub $0x14,%esp
struct run *r;
if(kmem.use_lock)
80102497: a1 74 26 11 80 mov 0x80112674,%eax
8010249c: 85 c0 test %eax,%eax
8010249e: 75 30 jne 801024d0 <kalloc+0x40>
acquire(&kmem.lock);
r = kmem.freelist;
801024a0: 8b 1d 78 26 11 80 mov 0x80112678,%ebx
if(r)
801024a6: 85 db test %ebx,%ebx
801024a8: 74 08 je 801024b2 <kalloc+0x22>
kmem.freelist = r->next;
801024aa: 8b 13 mov (%ebx),%edx
801024ac: 89 15 78 26 11 80 mov %edx,0x80112678
if(kmem.use_lock)
801024b2: 85 c0 test %eax,%eax
801024b4: 74 0c je 801024c2 <kalloc+0x32>
release(&kmem.lock);
801024b6: c7 04 24 40 26 11 80 movl $0x80112640,(%esp)
801024bd: e8 5e 1d 00 00 call 80104220 <release>
return (char*)r;
}
801024c2: 83 c4 14 add $0x14,%esp
801024c5: 89 d8 mov %ebx,%eax
801024c7: 5b pop %ebx
801024c8: 5d pop %ebp
801024c9: c3 ret
801024ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
acquire(&kmem.lock);
801024d0: c7 04 24 40 26 11 80 movl $0x80112640,(%esp)
801024d7: e8 54 1c 00 00 call 80104130 <acquire>
801024dc: a1 74 26 11 80 mov 0x80112674,%eax
801024e1: eb bd jmp 801024a0 <kalloc+0x10>
801024e3: 66 90 xchg %ax,%ax
801024e5: 66 90 xchg %ax,%ax
801024e7: 66 90 xchg %ax,%ax
801024e9: 66 90 xchg %ax,%ax
801024eb: 66 90 xchg %ax,%ax
801024ed: 66 90 xchg %ax,%ax
801024ef: 90 nop
801024f0 <kbdgetc>:
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801024f0: ba 64 00 00 00 mov $0x64,%edx
801024f5: ec in (%dx),%al
normalmap, shiftmap, ctlmap, ctlmap
};
uint st, data, c;
st = inb(KBSTATP);
if((st & KBS_DIB) == 0)
801024f6: a8 01 test $0x1,%al
801024f8: 0f 84 ba 00 00 00 je 801025b8 <kbdgetc+0xc8>
801024fe: b2 60 mov $0x60,%dl
80102500: ec in (%dx),%al
return -1;
data = inb(KBDATAP);
80102501: 0f b6 c8 movzbl %al,%ecx
if(data == 0xE0){
80102504: 81 f9 e0 00 00 00 cmp $0xe0,%ecx
8010250a: 0f 84 88 00 00 00 je 80102598 <kbdgetc+0xa8>
shift |= E0ESC;
return 0;
} else if(data & 0x80){
80102510: 84 c0 test %al,%al
80102512: 79 2c jns 80102540 <kbdgetc+0x50>
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
80102514: 8b 15 b4 a5 10 80 mov 0x8010a5b4,%edx
8010251a: f6 c2 40 test $0x40,%dl
8010251d: 75 05 jne 80102524 <kbdgetc+0x34>
8010251f: 89 c1 mov %eax,%ecx
80102521: 83 e1 7f and $0x7f,%ecx
shift &= ~(shiftcode[data] | E0ESC);
80102524: 0f b6 81 e0 71 10 80 movzbl -0x7fef8e20(%ecx),%eax
8010252b: 83 c8 40 or $0x40,%eax
8010252e: 0f b6 c0 movzbl %al,%eax
80102531: f7 d0 not %eax
80102533: 21 d0 and %edx,%eax
80102535: a3 b4 a5 10 80 mov %eax,0x8010a5b4
return 0;
8010253a: 31 c0 xor %eax,%eax
8010253c: c3 ret
8010253d: 8d 76 00 lea 0x0(%esi),%esi
{
80102540: 55 push %ebp
80102541: 89 e5 mov %esp,%ebp
80102543: 53 push %ebx
80102544: 8b 1d b4 a5 10 80 mov 0x8010a5b4,%ebx
} else if(shift & E0ESC){
8010254a: f6 c3 40 test $0x40,%bl
8010254d: 74 09 je 80102558 <kbdgetc+0x68>
// Last character was an E0 escape; or with 0x80
data |= 0x80;
8010254f: 83 c8 80 or $0xffffff80,%eax
shift &= ~E0ESC;
80102552: 83 e3 bf and $0xffffffbf,%ebx
data |= 0x80;
80102555: 0f b6 c8 movzbl %al,%ecx
}
shift |= shiftcode[data];
80102558: 0f b6 91 e0 71 10 80 movzbl -0x7fef8e20(%ecx),%edx
shift ^= togglecode[data];
8010255f: 0f b6 81 e0 70 10 80 movzbl -0x7fef8f20(%ecx),%eax
shift |= shiftcode[data];
80102566: 09 da or %ebx,%edx
shift ^= togglecode[data];
80102568: 31 c2 xor %eax,%edx
c = charcode[shift & (CTL | SHIFT)][data];
8010256a: 89 d0 mov %edx,%eax
8010256c: 83 e0 03 and $0x3,%eax
8010256f: 8b 04 85 c0 70 10 80 mov -0x7fef8f40(,%eax,4),%eax
shift ^= togglecode[data];
80102576: 89 15 b4 a5 10 80 mov %edx,0x8010a5b4
if(shift & CAPSLOCK){
8010257c: 83 e2 08 and $0x8,%edx
c = charcode[shift & (CTL | SHIFT)][data];
8010257f: 0f b6 04 08 movzbl (%eax,%ecx,1),%eax
if(shift & CAPSLOCK){
80102583: 74 0b je 80102590 <kbdgetc+0xa0>
if('a' <= c && c <= 'z')
80102585: 8d 50 9f lea -0x61(%eax),%edx
80102588: 83 fa 19 cmp $0x19,%edx
8010258b: 77 1b ja 801025a8 <kbdgetc+0xb8>
c += 'A' - 'a';
8010258d: 83 e8 20 sub $0x20,%eax
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
80102590: 5b pop %ebx
80102591: 5d pop %ebp
80102592: c3 ret
80102593: 90 nop
80102594: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
shift |= E0ESC;
80102598: 83 0d b4 a5 10 80 40 orl $0x40,0x8010a5b4
return 0;
8010259f: 31 c0 xor %eax,%eax
801025a1: c3 ret
801025a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
else if('A' <= c && c <= 'Z')
801025a8: 8d 48 bf lea -0x41(%eax),%ecx
c += 'a' - 'A';
801025ab: 8d 50 20 lea 0x20(%eax),%edx
801025ae: 83 f9 19 cmp $0x19,%ecx
801025b1: 0f 46 c2 cmovbe %edx,%eax
return c;
801025b4: eb da jmp 80102590 <kbdgetc+0xa0>
801025b6: 66 90 xchg %ax,%ax
return -1;
801025b8: b8 ff ff ff ff mov $0xffffffff,%eax
801025bd: c3 ret
801025be: 66 90 xchg %ax,%ax
801025c0 <kbdintr>:
void
kbdintr(void)
{
801025c0: 55 push %ebp
801025c1: 89 e5 mov %esp,%ebp
801025c3: 83 ec 18 sub $0x18,%esp
consoleintr(kbdgetc);
801025c6: c7 04 24 f0 24 10 80 movl $0x801024f0,(%esp)
801025cd: e8 de e1 ff ff call 801007b0 <consoleintr>
}
801025d2: c9 leave
801025d3: c3 ret
801025d4: 66 90 xchg %ax,%ax
801025d6: 66 90 xchg %ax,%ax
801025d8: 66 90 xchg %ax,%ax
801025da: 66 90 xchg %ax,%ax
801025dc: 66 90 xchg %ax,%ax
801025de: 66 90 xchg %ax,%ax
801025e0 <fill_rtcdate>:
return inb(CMOS_RETURN);
}
static void fill_rtcdate(struct rtcdate *r)
{
801025e0: 55 push %ebp
801025e1: 89 c1 mov %eax,%ecx
801025e3: 89 e5 mov %esp,%ebp
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801025e5: ba 70 00 00 00 mov $0x70,%edx
801025ea: 53 push %ebx
801025eb: 31 c0 xor %eax,%eax
801025ed: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801025ee: bb 71 00 00 00 mov $0x71,%ebx
801025f3: 89 da mov %ebx,%edx
801025f5: ec in (%dx),%al
return inb(CMOS_RETURN);
801025f6: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801025f9: b2 70 mov $0x70,%dl
801025fb: 89 01 mov %eax,(%ecx)
801025fd: b8 02 00 00 00 mov $0x2,%eax
80102602: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102603: 89 da mov %ebx,%edx
80102605: ec in (%dx),%al
80102606: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102609: b2 70 mov $0x70,%dl
8010260b: 89 41 04 mov %eax,0x4(%ecx)
8010260e: b8 04 00 00 00 mov $0x4,%eax
80102613: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102614: 89 da mov %ebx,%edx
80102616: ec in (%dx),%al
80102617: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010261a: b2 70 mov $0x70,%dl
8010261c: 89 41 08 mov %eax,0x8(%ecx)
8010261f: b8 07 00 00 00 mov $0x7,%eax
80102624: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102625: 89 da mov %ebx,%edx
80102627: ec in (%dx),%al
80102628: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010262b: b2 70 mov $0x70,%dl
8010262d: 89 41 0c mov %eax,0xc(%ecx)
80102630: b8 08 00 00 00 mov $0x8,%eax
80102635: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102636: 89 da mov %ebx,%edx
80102638: ec in (%dx),%al
80102639: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010263c: b2 70 mov $0x70,%dl
8010263e: 89 41 10 mov %eax,0x10(%ecx)
80102641: b8 09 00 00 00 mov $0x9,%eax
80102646: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102647: 89 da mov %ebx,%edx
80102649: ec in (%dx),%al
8010264a: 0f b6 d8 movzbl %al,%ebx
8010264d: 89 59 14 mov %ebx,0x14(%ecx)
r->minute = cmos_read(MINS);
r->hour = cmos_read(HOURS);
r->day = cmos_read(DAY);
r->month = cmos_read(MONTH);
r->year = cmos_read(YEAR);
}
80102650: 5b pop %ebx
80102651: 5d pop %ebp
80102652: c3 ret
80102653: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102659: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102660 <lapicinit>:
if(!lapic)
80102660: a1 7c 26 11 80 mov 0x8011267c,%eax
{
80102665: 55 push %ebp
80102666: 89 e5 mov %esp,%ebp
if(!lapic)
80102668: 85 c0 test %eax,%eax
8010266a: 0f 84 c0 00 00 00 je 80102730 <lapicinit+0xd0>
lapic[index] = value;
80102670: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax)
80102677: 01 00 00
lapic[ID]; // wait for write to finish, by reading
8010267a: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
8010267d: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax)
80102684: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102687: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
8010268a: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax)
80102691: 00 02 00
lapic[ID]; // wait for write to finish, by reading
80102694: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
80102697: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax)
8010269e: 96 98 00
lapic[ID]; // wait for write to finish, by reading
801026a1: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026a4: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax)
801026ab: 00 01 00
lapic[ID]; // wait for write to finish, by reading
801026ae: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026b1: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax)
801026b8: 00 01 00
lapic[ID]; // wait for write to finish, by reading
801026bb: 8b 50 20 mov 0x20(%eax),%edx
if(((lapic[VER]>>16) & 0xFF) >= 4)
801026be: 8b 50 30 mov 0x30(%eax),%edx
801026c1: c1 ea 10 shr $0x10,%edx
801026c4: 80 fa 03 cmp $0x3,%dl
801026c7: 77 6f ja 80102738 <lapicinit+0xd8>
lapic[index] = value;
801026c9: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax)
801026d0: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026d3: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026d6: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801026dd: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026e0: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026e3: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801026ea: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026ed: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026f0: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
801026f7: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026fa: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026fd: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax)
80102704: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102707: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
8010270a: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax)
80102711: 85 08 00
lapic[ID]; // wait for write to finish, by reading
80102714: 8b 50 20 mov 0x20(%eax),%edx
80102717: 90 nop
while(lapic[ICRLO] & DELIVS)
80102718: 8b 90 00 03 00 00 mov 0x300(%eax),%edx
8010271e: 80 e6 10 and $0x10,%dh
80102721: 75 f5 jne 80102718 <lapicinit+0xb8>
lapic[index] = value;
80102723: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax)
8010272a: 00 00 00
lapic[ID]; // wait for write to finish, by reading
8010272d: 8b 40 20 mov 0x20(%eax),%eax
}
80102730: 5d pop %ebp
80102731: c3 ret
80102732: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
lapic[index] = value;
80102738: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax)
8010273f: 00 01 00
lapic[ID]; // wait for write to finish, by reading
80102742: 8b 50 20 mov 0x20(%eax),%edx
80102745: eb 82 jmp 801026c9 <lapicinit+0x69>
80102747: 89 f6 mov %esi,%esi
80102749: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102750 <lapicid>:
if (!lapic)
80102750: a1 7c 26 11 80 mov 0x8011267c,%eax
{
80102755: 55 push %ebp
80102756: 89 e5 mov %esp,%ebp
if (!lapic)
80102758: 85 c0 test %eax,%eax
8010275a: 74 0c je 80102768 <lapicid+0x18>
return lapic[ID] >> 24;
8010275c: 8b 40 20 mov 0x20(%eax),%eax
}
8010275f: 5d pop %ebp
return lapic[ID] >> 24;
80102760: c1 e8 18 shr $0x18,%eax
}
80102763: c3 ret
80102764: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
80102768: 31 c0 xor %eax,%eax
}
8010276a: 5d pop %ebp
8010276b: c3 ret
8010276c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102770 <lapiceoi>:
if(lapic)
80102770: a1 7c 26 11 80 mov 0x8011267c,%eax
{
80102775: 55 push %ebp
80102776: 89 e5 mov %esp,%ebp
if(lapic)
80102778: 85 c0 test %eax,%eax
8010277a: 74 0d je 80102789 <lapiceoi+0x19>
lapic[index] = value;
8010277c: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
80102783: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102786: 8b 40 20 mov 0x20(%eax),%eax
}
80102789: 5d pop %ebp
8010278a: c3 ret
8010278b: 90 nop
8010278c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102790 <microdelay>:
{
80102790: 55 push %ebp
80102791: 89 e5 mov %esp,%ebp
}
80102793: 5d pop %ebp
80102794: c3 ret
80102795: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102799: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801027a0 <lapicstartap>:
{
801027a0: 55 push %ebp
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801027a1: ba 70 00 00 00 mov $0x70,%edx
801027a6: 89 e5 mov %esp,%ebp
801027a8: b8 0f 00 00 00 mov $0xf,%eax
801027ad: 53 push %ebx
801027ae: 8b 4d 08 mov 0x8(%ebp),%ecx
801027b1: 8b 5d 0c mov 0xc(%ebp),%ebx
801027b4: ee out %al,(%dx)
801027b5: b8 0a 00 00 00 mov $0xa,%eax
801027ba: b2 71 mov $0x71,%dl
801027bc: ee out %al,(%dx)
wrv[0] = 0;
801027bd: 31 c0 xor %eax,%eax
801027bf: 66 a3 67 04 00 80 mov %ax,0x80000467
wrv[1] = addr >> 4;
801027c5: 89 d8 mov %ebx,%eax
801027c7: c1 e8 04 shr $0x4,%eax
801027ca: 66 a3 69 04 00 80 mov %ax,0x80000469
lapic[index] = value;
801027d0: a1 7c 26 11 80 mov 0x8011267c,%eax
lapicw(ICRHI, apicid<<24);
801027d5: c1 e1 18 shl $0x18,%ecx
lapicw(ICRLO, STARTUP | (addr>>12));
801027d8: c1 eb 0c shr $0xc,%ebx
lapic[index] = value;
801027db: 89 88 10 03 00 00 mov %ecx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
801027e1: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801027e4: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax)
801027eb: c5 00 00
lapic[ID]; // wait for write to finish, by reading
801027ee: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801027f1: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax)
801027f8: 85 00 00
lapic[ID]; // wait for write to finish, by reading
801027fb: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801027fe: 89 88 10 03 00 00 mov %ecx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
80102804: 8b 50 20 mov 0x20(%eax),%edx
lapicw(ICRLO, STARTUP | (addr>>12));
80102807: 89 da mov %ebx,%edx
80102809: 80 ce 06 or $0x6,%dh
lapic[index] = value;
8010280c: 89 90 00 03 00 00 mov %edx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102812: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
80102815: 89 88 10 03 00 00 mov %ecx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
8010281b: 8b 48 20 mov 0x20(%eax),%ecx
lapic[index] = value;
8010281e: 89 90 00 03 00 00 mov %edx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102824: 8b 40 20 mov 0x20(%eax),%eax
}
80102827: 5b pop %ebx
80102828: 5d pop %ebp
80102829: c3 ret
8010282a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102830 <cmostime>:
// qemu seems to use 24-hour GWT and the values are BCD encoded
void cmostime(struct rtcdate *r)
{
80102830: 55 push %ebp
80102831: ba 70 00 00 00 mov $0x70,%edx
80102836: 89 e5 mov %esp,%ebp
80102838: b8 0b 00 00 00 mov $0xb,%eax
8010283d: 57 push %edi
8010283e: 56 push %esi
8010283f: 53 push %ebx
80102840: 83 ec 4c sub $0x4c,%esp
80102843: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102844: b2 71 mov $0x71,%dl
80102846: ec in (%dx),%al
80102847: 88 45 b7 mov %al,-0x49(%ebp)
8010284a: 8d 5d b8 lea -0x48(%ebp),%ebx
struct rtcdate t1, t2;
int sb, bcd;
sb = cmos_read(CMOS_STATB);
bcd = (sb & (1 << 2)) == 0;
8010284d: 80 65 b7 04 andb $0x4,-0x49(%ebp)
80102851: 8d 7d d0 lea -0x30(%ebp),%edi
80102854: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102858: be 70 00 00 00 mov $0x70,%esi
// make sure CMOS doesn't modify time while we read it
for(;;) {
fill_rtcdate(&t1);
8010285d: 89 d8 mov %ebx,%eax
8010285f: e8 7c fd ff ff call 801025e0 <fill_rtcdate>
80102864: b8 0a 00 00 00 mov $0xa,%eax
80102869: 89 f2 mov %esi,%edx
8010286b: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010286c: ba 71 00 00 00 mov $0x71,%edx
80102871: ec in (%dx),%al
if(cmos_read(CMOS_STATA) & CMOS_UIP)
80102872: 84 c0 test %al,%al
80102874: 78 e7 js 8010285d <cmostime+0x2d>
continue;
fill_rtcdate(&t2);
80102876: 89 f8 mov %edi,%eax
80102878: e8 63 fd ff ff call 801025e0 <fill_rtcdate>
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
8010287d: c7 44 24 08 18 00 00 movl $0x18,0x8(%esp)
80102884: 00
80102885: 89 7c 24 04 mov %edi,0x4(%esp)
80102889: 89 1c 24 mov %ebx,(%esp)
8010288c: e8 2f 1a 00 00 call 801042c0 <memcmp>
80102891: 85 c0 test %eax,%eax
80102893: 75 c3 jne 80102858 <cmostime+0x28>
break;
}
// convert
if(bcd) {
80102895: 80 7d b7 00 cmpb $0x0,-0x49(%ebp)
80102899: 75 78 jne 80102913 <cmostime+0xe3>
#define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf))
CONV(second);
8010289b: 8b 45 b8 mov -0x48(%ebp),%eax
8010289e: 89 c2 mov %eax,%edx
801028a0: 83 e0 0f and $0xf,%eax
801028a3: c1 ea 04 shr $0x4,%edx
801028a6: 8d 14 92 lea (%edx,%edx,4),%edx
801028a9: 8d 04 50 lea (%eax,%edx,2),%eax
801028ac: 89 45 b8 mov %eax,-0x48(%ebp)
CONV(minute);
801028af: 8b 45 bc mov -0x44(%ebp),%eax
801028b2: 89 c2 mov %eax,%edx
801028b4: 83 e0 0f and $0xf,%eax
801028b7: c1 ea 04 shr $0x4,%edx
801028ba: 8d 14 92 lea (%edx,%edx,4),%edx
801028bd: 8d 04 50 lea (%eax,%edx,2),%eax
801028c0: 89 45 bc mov %eax,-0x44(%ebp)
CONV(hour );
801028c3: 8b 45 c0 mov -0x40(%ebp),%eax
801028c6: 89 c2 mov %eax,%edx
801028c8: 83 e0 0f and $0xf,%eax
801028cb: c1 ea 04 shr $0x4,%edx
801028ce: 8d 14 92 lea (%edx,%edx,4),%edx
801028d1: 8d 04 50 lea (%eax,%edx,2),%eax
801028d4: 89 45 c0 mov %eax,-0x40(%ebp)
CONV(day );
801028d7: 8b 45 c4 mov -0x3c(%ebp),%eax
801028da: 89 c2 mov %eax,%edx
801028dc: 83 e0 0f and $0xf,%eax
801028df: c1 ea 04 shr $0x4,%edx
801028e2: 8d 14 92 lea (%edx,%edx,4),%edx
801028e5: 8d 04 50 lea (%eax,%edx,2),%eax
801028e8: 89 45 c4 mov %eax,-0x3c(%ebp)
CONV(month );
801028eb: 8b 45 c8 mov -0x38(%ebp),%eax
801028ee: 89 c2 mov %eax,%edx
801028f0: 83 e0 0f and $0xf,%eax
801028f3: c1 ea 04 shr $0x4,%edx
801028f6: 8d 14 92 lea (%edx,%edx,4),%edx
801028f9: 8d 04 50 lea (%eax,%edx,2),%eax
801028fc: 89 45 c8 mov %eax,-0x38(%ebp)
CONV(year );
801028ff: 8b 45 cc mov -0x34(%ebp),%eax
80102902: 89 c2 mov %eax,%edx
80102904: 83 e0 0f and $0xf,%eax
80102907: c1 ea 04 shr $0x4,%edx
8010290a: 8d 14 92 lea (%edx,%edx,4),%edx
8010290d: 8d 04 50 lea (%eax,%edx,2),%eax
80102910: 89 45 cc mov %eax,-0x34(%ebp)
#undef CONV
}
*r = t1;
80102913: 8b 4d 08 mov 0x8(%ebp),%ecx
80102916: 8b 45 b8 mov -0x48(%ebp),%eax
80102919: 89 01 mov %eax,(%ecx)
8010291b: 8b 45 bc mov -0x44(%ebp),%eax
8010291e: 89 41 04 mov %eax,0x4(%ecx)
80102921: 8b 45 c0 mov -0x40(%ebp),%eax
80102924: 89 41 08 mov %eax,0x8(%ecx)
80102927: 8b 45 c4 mov -0x3c(%ebp),%eax
8010292a: 89 41 0c mov %eax,0xc(%ecx)
8010292d: 8b 45 c8 mov -0x38(%ebp),%eax
80102930: 89 41 10 mov %eax,0x10(%ecx)
80102933: 8b 45 cc mov -0x34(%ebp),%eax
80102936: 89 41 14 mov %eax,0x14(%ecx)
r->year += 2000;
80102939: 81 41 14 d0 07 00 00 addl $0x7d0,0x14(%ecx)
}
80102940: 83 c4 4c add $0x4c,%esp
80102943: 5b pop %ebx
80102944: 5e pop %esi
80102945: 5f pop %edi
80102946: 5d pop %ebp
80102947: c3 ret
80102948: 66 90 xchg %ax,%ax
8010294a: 66 90 xchg %ax,%ax
8010294c: 66 90 xchg %ax,%ax
8010294e: 66 90 xchg %ax,%ax
80102950 <install_trans>:
}
// Copy committed blocks from log to their home location
static void
install_trans(void)
{
80102950: 55 push %ebp
80102951: 89 e5 mov %esp,%ebp
80102953: 57 push %edi
80102954: 56 push %esi
80102955: 53 push %ebx
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102956: 31 db xor %ebx,%ebx
{
80102958: 83 ec 1c sub $0x1c,%esp
for (tail = 0; tail < log.lh.n; tail++) {
8010295b: a1 c8 26 11 80 mov 0x801126c8,%eax
80102960: 85 c0 test %eax,%eax
80102962: 7e 78 jle 801029dc <install_trans+0x8c>
80102964: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
80102968: a1 b4 26 11 80 mov 0x801126b4,%eax
8010296d: 01 d8 add %ebx,%eax
8010296f: 83 c0 01 add $0x1,%eax
80102972: 89 44 24 04 mov %eax,0x4(%esp)
80102976: a1 c4 26 11 80 mov 0x801126c4,%eax
8010297b: 89 04 24 mov %eax,(%esp)
8010297e: e8 4d d7 ff ff call 801000d0 <bread>
80102983: 89 c7 mov %eax,%edi
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80102985: 8b 04 9d cc 26 11 80 mov -0x7feed934(,%ebx,4),%eax
for (tail = 0; tail < log.lh.n; tail++) {
8010298c: 83 c3 01 add $0x1,%ebx
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
8010298f: 89 44 24 04 mov %eax,0x4(%esp)
80102993: a1 c4 26 11 80 mov 0x801126c4,%eax
80102998: 89 04 24 mov %eax,(%esp)
8010299b: e8 30 d7 ff ff call 801000d0 <bread>
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
801029a0: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
801029a7: 00
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
801029a8: 89 c6 mov %eax,%esi
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
801029aa: 8d 47 5c lea 0x5c(%edi),%eax
801029ad: 89 44 24 04 mov %eax,0x4(%esp)
801029b1: 8d 46 5c lea 0x5c(%esi),%eax
801029b4: 89 04 24 mov %eax,(%esp)
801029b7: e8 54 19 00 00 call 80104310 <memmove>
bwrite(dbuf); // write dst to disk
801029bc: 89 34 24 mov %esi,(%esp)
801029bf: e8 dc d7 ff ff call 801001a0 <bwrite>
brelse(lbuf);
801029c4: 89 3c 24 mov %edi,(%esp)
801029c7: e8 14 d8 ff ff call 801001e0 <brelse>
brelse(dbuf);
801029cc: 89 34 24 mov %esi,(%esp)
801029cf: e8 0c d8 ff ff call 801001e0 <brelse>
for (tail = 0; tail < log.lh.n; tail++) {
801029d4: 39 1d c8 26 11 80 cmp %ebx,0x801126c8
801029da: 7f 8c jg 80102968 <install_trans+0x18>
}
}
801029dc: 83 c4 1c add $0x1c,%esp
801029df: 5b pop %ebx
801029e0: 5e pop %esi
801029e1: 5f pop %edi
801029e2: 5d pop %ebp
801029e3: c3 ret
801029e4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801029ea: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801029f0 <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)
{
801029f0: 55 push %ebp
801029f1: 89 e5 mov %esp,%ebp
801029f3: 57 push %edi
801029f4: 56 push %esi
801029f5: 53 push %ebx
801029f6: 83 ec 1c sub $0x1c,%esp
struct buf *buf = bread(log.dev, log.start);
801029f9: a1 b4 26 11 80 mov 0x801126b4,%eax
801029fe: 89 44 24 04 mov %eax,0x4(%esp)
80102a02: a1 c4 26 11 80 mov 0x801126c4,%eax
80102a07: 89 04 24 mov %eax,(%esp)
80102a0a: e8 c1 d6 ff ff call 801000d0 <bread>
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
80102a0f: 8b 1d c8 26 11 80 mov 0x801126c8,%ebx
for (i = 0; i < log.lh.n; i++) {
80102a15: 31 d2 xor %edx,%edx
80102a17: 85 db test %ebx,%ebx
struct buf *buf = bread(log.dev, log.start);
80102a19: 89 c7 mov %eax,%edi
hb->n = log.lh.n;
80102a1b: 89 58 5c mov %ebx,0x5c(%eax)
80102a1e: 8d 70 5c lea 0x5c(%eax),%esi
for (i = 0; i < log.lh.n; i++) {
80102a21: 7e 17 jle 80102a3a <write_head+0x4a>
80102a23: 90 nop
80102a24: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
hb->block[i] = log.lh.block[i];
80102a28: 8b 0c 95 cc 26 11 80 mov -0x7feed934(,%edx,4),%ecx
80102a2f: 89 4c 96 04 mov %ecx,0x4(%esi,%edx,4)
for (i = 0; i < log.lh.n; i++) {
80102a33: 83 c2 01 add $0x1,%edx
80102a36: 39 da cmp %ebx,%edx
80102a38: 75 ee jne 80102a28 <write_head+0x38>
}
bwrite(buf);
80102a3a: 89 3c 24 mov %edi,(%esp)
80102a3d: e8 5e d7 ff ff call 801001a0 <bwrite>
brelse(buf);
80102a42: 89 3c 24 mov %edi,(%esp)
80102a45: e8 96 d7 ff ff call 801001e0 <brelse>
}
80102a4a: 83 c4 1c add $0x1c,%esp
80102a4d: 5b pop %ebx
80102a4e: 5e pop %esi
80102a4f: 5f pop %edi
80102a50: 5d pop %ebp
80102a51: c3 ret
80102a52: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102a59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102a60 <initlog>:
{
80102a60: 55 push %ebp
80102a61: 89 e5 mov %esp,%ebp
80102a63: 56 push %esi
80102a64: 53 push %ebx
80102a65: 83 ec 30 sub $0x30,%esp
80102a68: 8b 5d 08 mov 0x8(%ebp),%ebx
initlock(&log.lock, "log");
80102a6b: c7 44 24 04 e0 72 10 movl $0x801072e0,0x4(%esp)
80102a72: 80
80102a73: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102a7a: e8 c1 15 00 00 call 80104040 <initlock>
readsb(dev, &sb);
80102a7f: 8d 45 dc lea -0x24(%ebp),%eax
80102a82: 89 44 24 04 mov %eax,0x4(%esp)
80102a86: 89 1c 24 mov %ebx,(%esp)
80102a89: e8 f2 e8 ff ff call 80101380 <readsb>
log.start = sb.logstart;
80102a8e: 8b 45 ec mov -0x14(%ebp),%eax
log.size = sb.nlog;
80102a91: 8b 55 e8 mov -0x18(%ebp),%edx
struct buf *buf = bread(log.dev, log.start);
80102a94: 89 1c 24 mov %ebx,(%esp)
log.dev = dev;
80102a97: 89 1d c4 26 11 80 mov %ebx,0x801126c4
struct buf *buf = bread(log.dev, log.start);
80102a9d: 89 44 24 04 mov %eax,0x4(%esp)
log.size = sb.nlog;
80102aa1: 89 15 b8 26 11 80 mov %edx,0x801126b8
log.start = sb.logstart;
80102aa7: a3 b4 26 11 80 mov %eax,0x801126b4
struct buf *buf = bread(log.dev, log.start);
80102aac: e8 1f d6 ff ff call 801000d0 <bread>
for (i = 0; i < log.lh.n; i++) {
80102ab1: 31 d2 xor %edx,%edx
log.lh.n = lh->n;
80102ab3: 8b 58 5c mov 0x5c(%eax),%ebx
80102ab6: 8d 70 5c lea 0x5c(%eax),%esi
for (i = 0; i < log.lh.n; i++) {
80102ab9: 85 db test %ebx,%ebx
log.lh.n = lh->n;
80102abb: 89 1d c8 26 11 80 mov %ebx,0x801126c8
for (i = 0; i < log.lh.n; i++) {
80102ac1: 7e 17 jle 80102ada <initlog+0x7a>
80102ac3: 90 nop
80102ac4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
log.lh.block[i] = lh->block[i];
80102ac8: 8b 4c 96 04 mov 0x4(%esi,%edx,4),%ecx
80102acc: 89 0c 95 cc 26 11 80 mov %ecx,-0x7feed934(,%edx,4)
for (i = 0; i < log.lh.n; i++) {
80102ad3: 83 c2 01 add $0x1,%edx
80102ad6: 39 da cmp %ebx,%edx
80102ad8: 75 ee jne 80102ac8 <initlog+0x68>
brelse(buf);
80102ada: 89 04 24 mov %eax,(%esp)
80102add: e8 fe d6 ff ff call 801001e0 <brelse>
static void
recover_from_log(void)
{
read_head();
install_trans(); // if committed, copy from log to disk
80102ae2: e8 69 fe ff ff call 80102950 <install_trans>
log.lh.n = 0;
80102ae7: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8
80102aee: 00 00 00
write_head(); // clear the log
80102af1: e8 fa fe ff ff call 801029f0 <write_head>
}
80102af6: 83 c4 30 add $0x30,%esp
80102af9: 5b pop %ebx
80102afa: 5e pop %esi
80102afb: 5d pop %ebp
80102afc: c3 ret
80102afd: 8d 76 00 lea 0x0(%esi),%esi
80102b00 <begin_op>:
}
// called at the start of each FS system call.
void
begin_op(void)
{
80102b00: 55 push %ebp
80102b01: 89 e5 mov %esp,%ebp
80102b03: 83 ec 18 sub $0x18,%esp
acquire(&log.lock);
80102b06: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102b0d: e8 1e 16 00 00 call 80104130 <acquire>
80102b12: eb 18 jmp 80102b2c <begin_op+0x2c>
80102b14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(1){
if(log.committing){
sleep(&log, &log.lock);
80102b18: c7 44 24 04 80 26 11 movl $0x80112680,0x4(%esp)
80102b1f: 80
80102b20: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102b27: e8 c4 10 00 00 call 80103bf0 <sleep>
if(log.committing){
80102b2c: a1 c0 26 11 80 mov 0x801126c0,%eax
80102b31: 85 c0 test %eax,%eax
80102b33: 75 e3 jne 80102b18 <begin_op+0x18>
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
80102b35: a1 bc 26 11 80 mov 0x801126bc,%eax
80102b3a: 8b 15 c8 26 11 80 mov 0x801126c8,%edx
80102b40: 83 c0 01 add $0x1,%eax
80102b43: 8d 0c 80 lea (%eax,%eax,4),%ecx
80102b46: 8d 14 4a lea (%edx,%ecx,2),%edx
80102b49: 83 fa 1e cmp $0x1e,%edx
80102b4c: 7f ca jg 80102b18 <begin_op+0x18>
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
} else {
log.outstanding += 1;
release(&log.lock);
80102b4e: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
log.outstanding += 1;
80102b55: a3 bc 26 11 80 mov %eax,0x801126bc
release(&log.lock);
80102b5a: e8 c1 16 00 00 call 80104220 <release>
break;
}
}
}
80102b5f: c9 leave
80102b60: c3 ret
80102b61: eb 0d jmp 80102b70 <end_op>
80102b63: 90 nop
80102b64: 90 nop
80102b65: 90 nop
80102b66: 90 nop
80102b67: 90 nop
80102b68: 90 nop
80102b69: 90 nop
80102b6a: 90 nop
80102b6b: 90 nop
80102b6c: 90 nop
80102b6d: 90 nop
80102b6e: 90 nop
80102b6f: 90 nop
80102b70 <end_op>:
// called at the end of each FS system call.
// commits if this was the last outstanding operation.
void
end_op(void)
{
80102b70: 55 push %ebp
80102b71: 89 e5 mov %esp,%ebp
80102b73: 57 push %edi
80102b74: 56 push %esi
80102b75: 53 push %ebx
80102b76: 83 ec 1c sub $0x1c,%esp
int do_commit = 0;
acquire(&log.lock);
80102b79: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102b80: e8 ab 15 00 00 call 80104130 <acquire>
log.outstanding -= 1;
80102b85: a1 bc 26 11 80 mov 0x801126bc,%eax
if(log.committing)
80102b8a: 8b 15 c0 26 11 80 mov 0x801126c0,%edx
log.outstanding -= 1;
80102b90: 83 e8 01 sub $0x1,%eax
if(log.committing)
80102b93: 85 d2 test %edx,%edx
log.outstanding -= 1;
80102b95: a3 bc 26 11 80 mov %eax,0x801126bc
if(log.committing)
80102b9a: 0f 85 f3 00 00 00 jne 80102c93 <end_op+0x123>
panic("log.committing");
if(log.outstanding == 0){
80102ba0: 85 c0 test %eax,%eax
80102ba2: 0f 85 cb 00 00 00 jne 80102c73 <end_op+0x103>
// begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log);
}
release(&log.lock);
80102ba8: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
}
static void
commit()
{
if (log.lh.n > 0) {
80102baf: 31 db xor %ebx,%ebx
log.committing = 1;
80102bb1: c7 05 c0 26 11 80 01 movl $0x1,0x801126c0
80102bb8: 00 00 00
release(&log.lock);
80102bbb: e8 60 16 00 00 call 80104220 <release>
if (log.lh.n > 0) {
80102bc0: a1 c8 26 11 80 mov 0x801126c8,%eax
80102bc5: 85 c0 test %eax,%eax
80102bc7: 0f 8e 90 00 00 00 jle 80102c5d <end_op+0xed>
80102bcd: 8d 76 00 lea 0x0(%esi),%esi
struct buf *to = bread(log.dev, log.start+tail+1); // log block
80102bd0: a1 b4 26 11 80 mov 0x801126b4,%eax
80102bd5: 01 d8 add %ebx,%eax
80102bd7: 83 c0 01 add $0x1,%eax
80102bda: 89 44 24 04 mov %eax,0x4(%esp)
80102bde: a1 c4 26 11 80 mov 0x801126c4,%eax
80102be3: 89 04 24 mov %eax,(%esp)
80102be6: e8 e5 d4 ff ff call 801000d0 <bread>
80102beb: 89 c6 mov %eax,%esi
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102bed: 8b 04 9d cc 26 11 80 mov -0x7feed934(,%ebx,4),%eax
for (tail = 0; tail < log.lh.n; tail++) {
80102bf4: 83 c3 01 add $0x1,%ebx
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102bf7: 89 44 24 04 mov %eax,0x4(%esp)
80102bfb: a1 c4 26 11 80 mov 0x801126c4,%eax
80102c00: 89 04 24 mov %eax,(%esp)
80102c03: e8 c8 d4 ff ff call 801000d0 <bread>
memmove(to->data, from->data, BSIZE);
80102c08: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
80102c0f: 00
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102c10: 89 c7 mov %eax,%edi
memmove(to->data, from->data, BSIZE);
80102c12: 8d 40 5c lea 0x5c(%eax),%eax
80102c15: 89 44 24 04 mov %eax,0x4(%esp)
80102c19: 8d 46 5c lea 0x5c(%esi),%eax
80102c1c: 89 04 24 mov %eax,(%esp)
80102c1f: e8 ec 16 00 00 call 80104310 <memmove>
bwrite(to); // write the log
80102c24: 89 34 24 mov %esi,(%esp)
80102c27: e8 74 d5 ff ff call 801001a0 <bwrite>
brelse(from);
80102c2c: 89 3c 24 mov %edi,(%esp)
80102c2f: e8 ac d5 ff ff call 801001e0 <brelse>
brelse(to);
80102c34: 89 34 24 mov %esi,(%esp)
80102c37: e8 a4 d5 ff ff call 801001e0 <brelse>
for (tail = 0; tail < log.lh.n; tail++) {
80102c3c: 3b 1d c8 26 11 80 cmp 0x801126c8,%ebx
80102c42: 7c 8c jl 80102bd0 <end_op+0x60>
write_log(); // Write modified blocks from cache to log
write_head(); // Write header to disk -- the real commit
80102c44: e8 a7 fd ff ff call 801029f0 <write_head>
install_trans(); // Now install writes to home locations
80102c49: e8 02 fd ff ff call 80102950 <install_trans>
log.lh.n = 0;
80102c4e: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8
80102c55: 00 00 00
write_head(); // Erase the transaction from the log
80102c58: e8 93 fd ff ff call 801029f0 <write_head>
acquire(&log.lock);
80102c5d: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102c64: e8 c7 14 00 00 call 80104130 <acquire>
log.committing = 0;
80102c69: c7 05 c0 26 11 80 00 movl $0x0,0x801126c0
80102c70: 00 00 00
wakeup(&log);
80102c73: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102c7a: e8 01 11 00 00 call 80103d80 <wakeup>
release(&log.lock);
80102c7f: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102c86: e8 95 15 00 00 call 80104220 <release>
}
80102c8b: 83 c4 1c add $0x1c,%esp
80102c8e: 5b pop %ebx
80102c8f: 5e pop %esi
80102c90: 5f pop %edi
80102c91: 5d pop %ebp
80102c92: c3 ret
panic("log.committing");
80102c93: c7 04 24 e4 72 10 80 movl $0x801072e4,(%esp)
80102c9a: e8 c1 d6 ff ff call 80100360 <panic>
80102c9f: 90 nop
80102ca0 <log_write>:
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
80102ca0: 55 push %ebp
80102ca1: 89 e5 mov %esp,%ebp
80102ca3: 53 push %ebx
80102ca4: 83 ec 14 sub $0x14,%esp
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102ca7: a1 c8 26 11 80 mov 0x801126c8,%eax
{
80102cac: 8b 5d 08 mov 0x8(%ebp),%ebx
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102caf: 83 f8 1d cmp $0x1d,%eax
80102cb2: 0f 8f 98 00 00 00 jg 80102d50 <log_write+0xb0>
80102cb8: 8b 0d b8 26 11 80 mov 0x801126b8,%ecx
80102cbe: 8d 51 ff lea -0x1(%ecx),%edx
80102cc1: 39 d0 cmp %edx,%eax
80102cc3: 0f 8d 87 00 00 00 jge 80102d50 <log_write+0xb0>
panic("too big a transaction");
if (log.outstanding < 1)
80102cc9: a1 bc 26 11 80 mov 0x801126bc,%eax
80102cce: 85 c0 test %eax,%eax
80102cd0: 0f 8e 86 00 00 00 jle 80102d5c <log_write+0xbc>
panic("log_write outside of trans");
acquire(&log.lock);
80102cd6: c7 04 24 80 26 11 80 movl $0x80112680,(%esp)
80102cdd: e8 4e 14 00 00 call 80104130 <acquire>
for (i = 0; i < log.lh.n; i++) {
80102ce2: 8b 15 c8 26 11 80 mov 0x801126c8,%edx
80102ce8: 83 fa 00 cmp $0x0,%edx
80102ceb: 7e 54 jle 80102d41 <log_write+0xa1>
if (log.lh.block[i] == b->blockno) // log absorbtion
80102ced: 8b 4b 08 mov 0x8(%ebx),%ecx
for (i = 0; i < log.lh.n; i++) {
80102cf0: 31 c0 xor %eax,%eax
if (log.lh.block[i] == b->blockno) // log absorbtion
80102cf2: 39 0d cc 26 11 80 cmp %ecx,0x801126cc
80102cf8: 75 0f jne 80102d09 <log_write+0x69>
80102cfa: eb 3c jmp 80102d38 <log_write+0x98>
80102cfc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102d00: 39 0c 85 cc 26 11 80 cmp %ecx,-0x7feed934(,%eax,4)
80102d07: 74 2f je 80102d38 <log_write+0x98>
for (i = 0; i < log.lh.n; i++) {
80102d09: 83 c0 01 add $0x1,%eax
80102d0c: 39 d0 cmp %edx,%eax
80102d0e: 75 f0 jne 80102d00 <log_write+0x60>
break;
}
log.lh.block[i] = b->blockno;
80102d10: 89 0c 95 cc 26 11 80 mov %ecx,-0x7feed934(,%edx,4)
if (i == log.lh.n)
log.lh.n++;
80102d17: 83 c2 01 add $0x1,%edx
80102d1a: 89 15 c8 26 11 80 mov %edx,0x801126c8
b->flags |= B_DIRTY; // prevent eviction
80102d20: 83 0b 04 orl $0x4,(%ebx)
release(&log.lock);
80102d23: c7 45 08 80 26 11 80 movl $0x80112680,0x8(%ebp)
}
80102d2a: 83 c4 14 add $0x14,%esp
80102d2d: 5b pop %ebx
80102d2e: 5d pop %ebp
release(&log.lock);
80102d2f: e9 ec 14 00 00 jmp 80104220 <release>
80102d34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
log.lh.block[i] = b->blockno;
80102d38: 89 0c 85 cc 26 11 80 mov %ecx,-0x7feed934(,%eax,4)
80102d3f: eb df jmp 80102d20 <log_write+0x80>
80102d41: 8b 43 08 mov 0x8(%ebx),%eax
80102d44: a3 cc 26 11 80 mov %eax,0x801126cc
if (i == log.lh.n)
80102d49: 75 d5 jne 80102d20 <log_write+0x80>
80102d4b: eb ca jmp 80102d17 <log_write+0x77>
80102d4d: 8d 76 00 lea 0x0(%esi),%esi
panic("too big a transaction");
80102d50: c7 04 24 f3 72 10 80 movl $0x801072f3,(%esp)
80102d57: e8 04 d6 ff ff call 80100360 <panic>
panic("log_write outside of trans");
80102d5c: c7 04 24 09 73 10 80 movl $0x80107309,(%esp)
80102d63: e8 f8 d5 ff ff call 80100360 <panic>
80102d68: 66 90 xchg %ax,%ax
80102d6a: 66 90 xchg %ax,%ax
80102d6c: 66 90 xchg %ax,%ax
80102d6e: 66 90 xchg %ax,%ax
80102d70 <mpmain>:
}
// Common CPU setup code.
static void
mpmain(void)
{
80102d70: 55 push %ebp
80102d71: 89 e5 mov %esp,%ebp
80102d73: 53 push %ebx
80102d74: 83 ec 14 sub $0x14,%esp
cprintf("cpu%d: starting %d\n", cpuid(), cpuid());
80102d77: e8 f4 08 00 00 call 80103670 <cpuid>
80102d7c: 89 c3 mov %eax,%ebx
80102d7e: e8 ed 08 00 00 call 80103670 <cpuid>
80102d83: 89 5c 24 08 mov %ebx,0x8(%esp)
80102d87: c7 04 24 24 73 10 80 movl $0x80107324,(%esp)
80102d8e: 89 44 24 04 mov %eax,0x4(%esp)
80102d92: e8 b9 d8 ff ff call 80100650 <cprintf>
idtinit(); // load idt register
80102d97: e8 44 27 00 00 call 801054e0 <idtinit>
xchg(&(mycpu()->started), 1); // tell startothers() we're up
80102d9c: e8 4f 08 00 00 call 801035f0 <mycpu>
80102da1: 89 c2 mov %eax,%edx
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80102da3: b8 01 00 00 00 mov $0x1,%eax
80102da8: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx)
scheduler(); // start running processes
80102daf: e8 9c 0b 00 00 call 80103950 <scheduler>
80102db4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102dba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80102dc0 <mpenter>:
{
80102dc0: 55 push %ebp
80102dc1: 89 e5 mov %esp,%ebp
80102dc3: 83 ec 08 sub $0x8,%esp
switchkvm();
80102dc6: e8 a5 38 00 00 call 80106670 <switchkvm>
seginit();
80102dcb: e8 e0 37 00 00 call 801065b0 <seginit>
lapicinit();
80102dd0: e8 8b f8 ff ff call 80102660 <lapicinit>
mpmain();
80102dd5: e8 96 ff ff ff call 80102d70 <mpmain>
80102dda: 66 90 xchg %ax,%ax
80102ddc: 66 90 xchg %ax,%ax
80102dde: 66 90 xchg %ax,%ax
80102de0 <main>:
{
80102de0: 55 push %ebp
80102de1: 89 e5 mov %esp,%ebp
80102de3: 53 push %ebx
// 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++){
80102de4: bb 80 27 11 80 mov $0x80112780,%ebx
{
80102de9: 83 e4 f0 and $0xfffffff0,%esp
80102dec: 83 ec 10 sub $0x10,%esp
kinit1(end, P2V(4*1024*1024)); // phys page allocator
80102def: c7 44 24 04 00 00 40 movl $0x80400000,0x4(%esp)
80102df6: 80
80102df7: c7 04 24 f4 58 11 80 movl $0x801158f4,(%esp)
80102dfe: e8 cd f5 ff ff call 801023d0 <kinit1>
kvmalloc(); // kernel page table
80102e03: e8 f8 3c 00 00 call 80106b00 <kvmalloc>
mpinit(); // detect other processors
80102e08: e8 73 01 00 00 call 80102f80 <mpinit>
80102e0d: 8d 76 00 lea 0x0(%esi),%esi
lapicinit(); // interrupt controller
80102e10: e8 4b f8 ff ff call 80102660 <lapicinit>
seginit(); // segment descriptors
80102e15: e8 96 37 00 00 call 801065b0 <seginit>
picinit(); // disable pic
80102e1a: e8 21 03 00 00 call 80103140 <picinit>
80102e1f: 90 nop
ioapicinit(); // another interrupt controller
80102e20: e8 cb f3 ff ff call 801021f0 <ioapicinit>
consoleinit(); // console hardware
80102e25: e8 26 db ff ff call 80100950 <consoleinit>
uartinit(); // serial port
80102e2a: e8 a1 2a 00 00 call 801058d0 <uartinit>
80102e2f: 90 nop
pinit(); // process table
80102e30: e8 9b 07 00 00 call 801035d0 <pinit>
shminit(); // shared memory
80102e35: e8 76 3f 00 00 call 80106db0 <shminit>
tvinit(); // trap vectors
80102e3a: e8 01 26 00 00 call 80105440 <tvinit>
80102e3f: 90 nop
binit(); // buffer cache
80102e40: e8 fb d1 ff ff call 80100040 <binit>
fileinit(); // file table
80102e45: e8 e6 de ff ff call 80100d30 <fileinit>
ideinit(); // disk
80102e4a: e8 a1 f1 ff ff call 80101ff0 <ideinit>
memmove(code, _binary_entryother_start, (uint)_binary_entryother_size);
80102e4f: c7 44 24 08 8a 00 00 movl $0x8a,0x8(%esp)
80102e56: 00
80102e57: c7 44 24 04 8c a4 10 movl $0x8010a48c,0x4(%esp)
80102e5e: 80
80102e5f: c7 04 24 00 70 00 80 movl $0x80007000,(%esp)
80102e66: e8 a5 14 00 00 call 80104310 <memmove>
for(c = cpus; c < cpus+ncpu; c++){
80102e6b: 69 05 00 2d 11 80 b0 imul $0xb0,0x80112d00,%eax
80102e72: 00 00 00
80102e75: 05 80 27 11 80 add $0x80112780,%eax
80102e7a: 39 d8 cmp %ebx,%eax
80102e7c: 76 65 jbe 80102ee3 <main+0x103>
80102e7e: 66 90 xchg %ax,%ax
if(c == mycpu()) // We've started already.
80102e80: e8 6b 07 00 00 call 801035f0 <mycpu>
80102e85: 39 d8 cmp %ebx,%eax
80102e87: 74 41 je 80102eca <main+0xea>
continue;
// Tell entryother.S what stack to use, where to enter, and what
// pgdir to use. We cannot use kpgdir yet, because the AP processor
// is running in low memory, so we use entrypgdir for the APs too.
stack = kalloc();
80102e89: e8 02 f6 ff ff call 80102490 <kalloc>
*(void**)(code-4) = stack + KSTACKSIZE;
*(void**)(code-8) = mpenter;
80102e8e: c7 05 f8 6f 00 80 c0 movl $0x80102dc0,0x80006ff8
80102e95: 2d 10 80
*(int**)(code-12) = (void *) V2P(entrypgdir);
80102e98: c7 05 f4 6f 00 80 00 movl $0x109000,0x80006ff4
80102e9f: 90 10 00
*(void**)(code-4) = stack + KSTACKSIZE;
80102ea2: 05 00 10 00 00 add $0x1000,%eax
80102ea7: a3 fc 6f 00 80 mov %eax,0x80006ffc
lapicstartap(c->apicid, V2P(code));
80102eac: 0f b6 03 movzbl (%ebx),%eax
80102eaf: c7 44 24 04 00 70 00 movl $0x7000,0x4(%esp)
80102eb6: 00
80102eb7: 89 04 24 mov %eax,(%esp)
80102eba: e8 e1 f8 ff ff call 801027a0 <lapicstartap>
80102ebf: 90 nop
// wait for cpu to finish mpmain()
while(c->started == 0)
80102ec0: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
80102ec6: 85 c0 test %eax,%eax
80102ec8: 74 f6 je 80102ec0 <main+0xe0>
for(c = cpus; c < cpus+ncpu; c++){
80102eca: 69 05 00 2d 11 80 b0 imul $0xb0,0x80112d00,%eax
80102ed1: 00 00 00
80102ed4: 81 c3 b0 00 00 00 add $0xb0,%ebx
80102eda: 05 80 27 11 80 add $0x80112780,%eax
80102edf: 39 c3 cmp %eax,%ebx
80102ee1: 72 9d jb 80102e80 <main+0xa0>
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
80102ee3: c7 44 24 04 00 00 00 movl $0x8e000000,0x4(%esp)
80102eea: 8e
80102eeb: c7 04 24 00 00 40 80 movl $0x80400000,(%esp)
80102ef2: e8 49 f5 ff ff call 80102440 <kinit2>
userinit(); // first user process
80102ef7: e8 c4 07 00 00 call 801036c0 <userinit>
mpmain(); // finish this processor's setup
80102efc: e8 6f fe ff ff call 80102d70 <mpmain>
80102f01: 66 90 xchg %ax,%ax
80102f03: 66 90 xchg %ax,%ax
80102f05: 66 90 xchg %ax,%ax
80102f07: 66 90 xchg %ax,%ax
80102f09: 66 90 xchg %ax,%ax
80102f0b: 66 90 xchg %ax,%ax
80102f0d: 66 90 xchg %ax,%ax
80102f0f: 90 nop
80102f10 <mpsearch1>:
}
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
80102f10: 55 push %ebp
80102f11: 89 e5 mov %esp,%ebp
80102f13: 56 push %esi
uchar *e, *p, *addr;
addr = P2V(a);
80102f14: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi
{
80102f1a: 53 push %ebx
e = addr+len;
80102f1b: 8d 1c 16 lea (%esi,%edx,1),%ebx
{
80102f1e: 83 ec 10 sub $0x10,%esp
for(p = addr; p < e; p += sizeof(struct mp))
80102f21: 39 de cmp %ebx,%esi
80102f23: 73 3c jae 80102f61 <mpsearch1+0x51>
80102f25: 8d 76 00 lea 0x0(%esi),%esi
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80102f28: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
80102f2f: 00
80102f30: c7 44 24 04 38 73 10 movl $0x80107338,0x4(%esp)
80102f37: 80
80102f38: 89 34 24 mov %esi,(%esp)
80102f3b: e8 80 13 00 00 call 801042c0 <memcmp>
80102f40: 85 c0 test %eax,%eax
80102f42: 75 16 jne 80102f5a <mpsearch1+0x4a>
80102f44: 31 c9 xor %ecx,%ecx
80102f46: 31 d2 xor %edx,%edx
sum += addr[i];
80102f48: 0f b6 04 16 movzbl (%esi,%edx,1),%eax
for(i=0; i<len; i++)
80102f4c: 83 c2 01 add $0x1,%edx
sum += addr[i];
80102f4f: 01 c1 add %eax,%ecx
for(i=0; i<len; i++)
80102f51: 83 fa 10 cmp $0x10,%edx
80102f54: 75 f2 jne 80102f48 <mpsearch1+0x38>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80102f56: 84 c9 test %cl,%cl
80102f58: 74 10 je 80102f6a <mpsearch1+0x5a>
for(p = addr; p < e; p += sizeof(struct mp))
80102f5a: 83 c6 10 add $0x10,%esi
80102f5d: 39 f3 cmp %esi,%ebx
80102f5f: 77 c7 ja 80102f28 <mpsearch1+0x18>
return (struct mp*)p;
return 0;
}
80102f61: 83 c4 10 add $0x10,%esp
return 0;
80102f64: 31 c0 xor %eax,%eax
}
80102f66: 5b pop %ebx
80102f67: 5e pop %esi
80102f68: 5d pop %ebp
80102f69: c3 ret
80102f6a: 83 c4 10 add $0x10,%esp
80102f6d: 89 f0 mov %esi,%eax
80102f6f: 5b pop %ebx
80102f70: 5e pop %esi
80102f71: 5d pop %ebp
80102f72: c3 ret
80102f73: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102f79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102f80 <mpinit>:
return conf;
}
void
mpinit(void)
{
80102f80: 55 push %ebp
80102f81: 89 e5 mov %esp,%ebp
80102f83: 57 push %edi
80102f84: 56 push %esi
80102f85: 53 push %ebx
80102f86: 83 ec 1c sub $0x1c,%esp
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
80102f89: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax
80102f90: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx
80102f97: c1 e0 08 shl $0x8,%eax
80102f9a: 09 d0 or %edx,%eax
80102f9c: c1 e0 04 shl $0x4,%eax
80102f9f: 85 c0 test %eax,%eax
80102fa1: 75 1b jne 80102fbe <mpinit+0x3e>
p = ((bda[0x14]<<8)|bda[0x13])*1024;
80102fa3: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax
80102faa: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx
80102fb1: c1 e0 08 shl $0x8,%eax
80102fb4: 09 d0 or %edx,%eax
80102fb6: c1 e0 0a shl $0xa,%eax
if((mp = mpsearch1(p-1024, 1024)))
80102fb9: 2d 00 04 00 00 sub $0x400,%eax
if((mp = mpsearch1(p, 1024)))
80102fbe: ba 00 04 00 00 mov $0x400,%edx
80102fc3: e8 48 ff ff ff call 80102f10 <mpsearch1>
80102fc8: 85 c0 test %eax,%eax
80102fca: 89 c7 mov %eax,%edi
80102fcc: 0f 84 22 01 00 00 je 801030f4 <mpinit+0x174>
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80102fd2: 8b 77 04 mov 0x4(%edi),%esi
80102fd5: 85 f6 test %esi,%esi
80102fd7: 0f 84 30 01 00 00 je 8010310d <mpinit+0x18d>
conf = (struct mpconf*) P2V((uint) mp->physaddr);
80102fdd: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax
if(memcmp(conf, "PCMP", 4) != 0)
80102fe3: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
80102fea: 00
80102feb: c7 44 24 04 3d 73 10 movl $0x8010733d,0x4(%esp)
80102ff2: 80
80102ff3: 89 04 24 mov %eax,(%esp)
conf = (struct mpconf*) P2V((uint) mp->physaddr);
80102ff6: 89 45 e4 mov %eax,-0x1c(%ebp)
if(memcmp(conf, "PCMP", 4) != 0)
80102ff9: e8 c2 12 00 00 call 801042c0 <memcmp>
80102ffe: 85 c0 test %eax,%eax
80103000: 0f 85 07 01 00 00 jne 8010310d <mpinit+0x18d>
if(conf->version != 1 && conf->version != 4)
80103006: 0f b6 86 06 00 00 80 movzbl -0x7ffffffa(%esi),%eax
8010300d: 3c 04 cmp $0x4,%al
8010300f: 0f 85 0b 01 00 00 jne 80103120 <mpinit+0x1a0>
if(sum((uchar*)conf, conf->length) != 0)
80103015: 0f b7 86 04 00 00 80 movzwl -0x7ffffffc(%esi),%eax
for(i=0; i<len; i++)
8010301c: 85 c0 test %eax,%eax
8010301e: 74 21 je 80103041 <mpinit+0xc1>
sum = 0;
80103020: 31 c9 xor %ecx,%ecx
for(i=0; i<len; i++)
80103022: 31 d2 xor %edx,%edx
80103024: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
sum += addr[i];
80103028: 0f b6 9c 16 00 00 00 movzbl -0x80000000(%esi,%edx,1),%ebx
8010302f: 80
for(i=0; i<len; i++)
80103030: 83 c2 01 add $0x1,%edx
sum += addr[i];
80103033: 01 d9 add %ebx,%ecx
for(i=0; i<len; i++)
80103035: 39 d0 cmp %edx,%eax
80103037: 7f ef jg 80103028 <mpinit+0xa8>
if(sum((uchar*)conf, conf->length) != 0)
80103039: 84 c9 test %cl,%cl
8010303b: 0f 85 cc 00 00 00 jne 8010310d <mpinit+0x18d>
struct mp *mp;
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
80103041: 8b 45 e4 mov -0x1c(%ebp),%eax
80103044: 85 c0 test %eax,%eax
80103046: 0f 84 c1 00 00 00 je 8010310d <mpinit+0x18d>
panic("Expect to run on an SMP");
ismp = 1;
lapic = (uint*)conf->lapicaddr;
8010304c: 8b 86 24 00 00 80 mov -0x7fffffdc(%esi),%eax
ismp = 1;
80103052: bb 01 00 00 00 mov $0x1,%ebx
lapic = (uint*)conf->lapicaddr;
80103057: a3 7c 26 11 80 mov %eax,0x8011267c
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
8010305c: 0f b7 96 04 00 00 80 movzwl -0x7ffffffc(%esi),%edx
80103063: 8d 86 2c 00 00 80 lea -0x7fffffd4(%esi),%eax
80103069: 03 55 e4 add -0x1c(%ebp),%edx
8010306c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103070: 39 c2 cmp %eax,%edx
80103072: 76 1b jbe 8010308f <mpinit+0x10f>
80103074: 0f b6 08 movzbl (%eax),%ecx
switch(*p){
80103077: 80 f9 04 cmp $0x4,%cl
8010307a: 77 74 ja 801030f0 <mpinit+0x170>
8010307c: ff 24 8d 7c 73 10 80 jmp *-0x7fef8c84(,%ecx,4)
80103083: 90 nop
80103084: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
p += sizeof(struct mpioapic);
continue;
case MPBUS:
case MPIOINTR:
case MPLINTR:
p += 8;
80103088: 83 c0 08 add $0x8,%eax
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
8010308b: 39 c2 cmp %eax,%edx
8010308d: 77 e5 ja 80103074 <mpinit+0xf4>
default:
ismp = 0;
break;
}
}
if(!ismp)
8010308f: 85 db test %ebx,%ebx
80103091: 0f 84 93 00 00 00 je 8010312a <mpinit+0x1aa>
panic("Didn't find a suitable machine");
if(mp->imcrp){
80103097: 80 7f 0c 00 cmpb $0x0,0xc(%edi)
8010309b: 74 12 je 801030af <mpinit+0x12f>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010309d: ba 22 00 00 00 mov $0x22,%edx
801030a2: b8 70 00 00 00 mov $0x70,%eax
801030a7: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801030a8: b2 23 mov $0x23,%dl
801030aa: ec in (%dx),%al
// Bochs doesn't support IMCR, so this doesn't run on Bochs.
// But it would on real hardware.
outb(0x22, 0x70); // Select IMCR
outb(0x23, inb(0x23) | 1); // Mask external interrupts.
801030ab: 83 c8 01 or $0x1,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801030ae: ee out %al,(%dx)
}
}
801030af: 83 c4 1c add $0x1c,%esp
801030b2: 5b pop %ebx
801030b3: 5e pop %esi
801030b4: 5f pop %edi
801030b5: 5d pop %ebp
801030b6: c3 ret
801030b7: 90 nop
if(ncpu < NCPU) {
801030b8: 8b 35 00 2d 11 80 mov 0x80112d00,%esi
801030be: 83 fe 07 cmp $0x7,%esi
801030c1: 7f 17 jg 801030da <mpinit+0x15a>
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801030c3: 0f b6 48 01 movzbl 0x1(%eax),%ecx
801030c7: 69 f6 b0 00 00 00 imul $0xb0,%esi,%esi
ncpu++;
801030cd: 83 05 00 2d 11 80 01 addl $0x1,0x80112d00
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801030d4: 88 8e 80 27 11 80 mov %cl,-0x7feed880(%esi)
p += sizeof(struct mpproc);
801030da: 83 c0 14 add $0x14,%eax
continue;
801030dd: eb 91 jmp 80103070 <mpinit+0xf0>
801030df: 90 nop
ioapicid = ioapic->apicno;
801030e0: 0f b6 48 01 movzbl 0x1(%eax),%ecx
p += sizeof(struct mpioapic);
801030e4: 83 c0 08 add $0x8,%eax
ioapicid = ioapic->apicno;
801030e7: 88 0d 60 27 11 80 mov %cl,0x80112760
continue;
801030ed: eb 81 jmp 80103070 <mpinit+0xf0>
801030ef: 90 nop
ismp = 0;
801030f0: 31 db xor %ebx,%ebx
801030f2: eb 83 jmp 80103077 <mpinit+0xf7>
return mpsearch1(0xF0000, 0x10000);
801030f4: ba 00 00 01 00 mov $0x10000,%edx
801030f9: b8 00 00 0f 00 mov $0xf0000,%eax
801030fe: e8 0d fe ff ff call 80102f10 <mpsearch1>
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80103103: 85 c0 test %eax,%eax
return mpsearch1(0xF0000, 0x10000);
80103105: 89 c7 mov %eax,%edi
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80103107: 0f 85 c5 fe ff ff jne 80102fd2 <mpinit+0x52>
panic("Expect to run on an SMP");
8010310d: c7 04 24 42 73 10 80 movl $0x80107342,(%esp)
80103114: e8 47 d2 ff ff call 80100360 <panic>
80103119: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(conf->version != 1 && conf->version != 4)
80103120: 3c 01 cmp $0x1,%al
80103122: 0f 84 ed fe ff ff je 80103015 <mpinit+0x95>
80103128: eb e3 jmp 8010310d <mpinit+0x18d>
panic("Didn't find a suitable machine");
8010312a: c7 04 24 5c 73 10 80 movl $0x8010735c,(%esp)
80103131: e8 2a d2 ff ff call 80100360 <panic>
80103136: 66 90 xchg %ax,%ax
80103138: 66 90 xchg %ax,%ax
8010313a: 66 90 xchg %ax,%ax
8010313c: 66 90 xchg %ax,%ax
8010313e: 66 90 xchg %ax,%ax
80103140 <picinit>:
#define IO_PIC2 0xA0 // Slave (IRQs 8-15)
// Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware.
void
picinit(void)
{
80103140: 55 push %ebp
80103141: ba 21 00 00 00 mov $0x21,%edx
80103146: 89 e5 mov %esp,%ebp
80103148: b8 ff ff ff ff mov $0xffffffff,%eax
8010314d: ee out %al,(%dx)
8010314e: b2 a1 mov $0xa1,%dl
80103150: ee out %al,(%dx)
// mask all interrupts
outb(IO_PIC1+1, 0xFF);
outb(IO_PIC2+1, 0xFF);
}
80103151: 5d pop %ebp
80103152: c3 ret
80103153: 66 90 xchg %ax,%ax
80103155: 66 90 xchg %ax,%ax
80103157: 66 90 xchg %ax,%ax
80103159: 66 90 xchg %ax,%ax
8010315b: 66 90 xchg %ax,%ax
8010315d: 66 90 xchg %ax,%ax
8010315f: 90 nop
80103160 <pipealloc>:
int writeopen; // write fd is still open
};
int
pipealloc(struct file **f0, struct file **f1)
{
80103160: 55 push %ebp
80103161: 89 e5 mov %esp,%ebp
80103163: 57 push %edi
80103164: 56 push %esi
80103165: 53 push %ebx
80103166: 83 ec 1c sub $0x1c,%esp
80103169: 8b 75 08 mov 0x8(%ebp),%esi
8010316c: 8b 5d 0c mov 0xc(%ebp),%ebx
struct pipe *p;
p = 0;
*f0 = *f1 = 0;
8010316f: c7 03 00 00 00 00 movl $0x0,(%ebx)
80103175: c7 06 00 00 00 00 movl $0x0,(%esi)
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
8010317b: e8 d0 db ff ff call 80100d50 <filealloc>
80103180: 85 c0 test %eax,%eax
80103182: 89 06 mov %eax,(%esi)
80103184: 0f 84 a4 00 00 00 je 8010322e <pipealloc+0xce>
8010318a: e8 c1 db ff ff call 80100d50 <filealloc>
8010318f: 85 c0 test %eax,%eax
80103191: 89 03 mov %eax,(%ebx)
80103193: 0f 84 87 00 00 00 je 80103220 <pipealloc+0xc0>
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
80103199: e8 f2 f2 ff ff call 80102490 <kalloc>
8010319e: 85 c0 test %eax,%eax
801031a0: 89 c7 mov %eax,%edi
801031a2: 74 7c je 80103220 <pipealloc+0xc0>
goto bad;
p->readopen = 1;
801031a4: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax)
801031ab: 00 00 00
p->writeopen = 1;
801031ae: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax)
801031b5: 00 00 00
p->nwrite = 0;
801031b8: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax)
801031bf: 00 00 00
p->nread = 0;
801031c2: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax)
801031c9: 00 00 00
initlock(&p->lock, "pipe");
801031cc: 89 04 24 mov %eax,(%esp)
801031cf: c7 44 24 04 90 73 10 movl $0x80107390,0x4(%esp)
801031d6: 80
801031d7: e8 64 0e 00 00 call 80104040 <initlock>
(*f0)->type = FD_PIPE;
801031dc: 8b 06 mov (%esi),%eax
801031de: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f0)->readable = 1;
801031e4: 8b 06 mov (%esi),%eax
801031e6: c6 40 08 01 movb $0x1,0x8(%eax)
(*f0)->writable = 0;
801031ea: 8b 06 mov (%esi),%eax
801031ec: c6 40 09 00 movb $0x0,0x9(%eax)
(*f0)->pipe = p;
801031f0: 8b 06 mov (%esi),%eax
801031f2: 89 78 0c mov %edi,0xc(%eax)
(*f1)->type = FD_PIPE;
801031f5: 8b 03 mov (%ebx),%eax
801031f7: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f1)->readable = 0;
801031fd: 8b 03 mov (%ebx),%eax
801031ff: c6 40 08 00 movb $0x0,0x8(%eax)
(*f1)->writable = 1;
80103203: 8b 03 mov (%ebx),%eax
80103205: c6 40 09 01 movb $0x1,0x9(%eax)
(*f1)->pipe = p;
80103209: 8b 03 mov (%ebx),%eax
return 0;
8010320b: 31 db xor %ebx,%ebx
(*f1)->pipe = p;
8010320d: 89 78 0c mov %edi,0xc(%eax)
if(*f0)
fileclose(*f0);
if(*f1)
fileclose(*f1);
return -1;
}
80103210: 83 c4 1c add $0x1c,%esp
80103213: 89 d8 mov %ebx,%eax
80103215: 5b pop %ebx
80103216: 5e pop %esi
80103217: 5f pop %edi
80103218: 5d pop %ebp
80103219: c3 ret
8010321a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(*f0)
80103220: 8b 06 mov (%esi),%eax
80103222: 85 c0 test %eax,%eax
80103224: 74 08 je 8010322e <pipealloc+0xce>
fileclose(*f0);
80103226: 89 04 24 mov %eax,(%esp)
80103229: e8 e2 db ff ff call 80100e10 <fileclose>
if(*f1)
8010322e: 8b 03 mov (%ebx),%eax
return -1;
80103230: bb ff ff ff ff mov $0xffffffff,%ebx
if(*f1)
80103235: 85 c0 test %eax,%eax
80103237: 74 d7 je 80103210 <pipealloc+0xb0>
fileclose(*f1);
80103239: 89 04 24 mov %eax,(%esp)
8010323c: e8 cf db ff ff call 80100e10 <fileclose>
}
80103241: 83 c4 1c add $0x1c,%esp
80103244: 89 d8 mov %ebx,%eax
80103246: 5b pop %ebx
80103247: 5e pop %esi
80103248: 5f pop %edi
80103249: 5d pop %ebp
8010324a: c3 ret
8010324b: 90 nop
8010324c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103250 <pipeclose>:
void
pipeclose(struct pipe *p, int writable)
{
80103250: 55 push %ebp
80103251: 89 e5 mov %esp,%ebp
80103253: 56 push %esi
80103254: 53 push %ebx
80103255: 83 ec 10 sub $0x10,%esp
80103258: 8b 5d 08 mov 0x8(%ebp),%ebx
8010325b: 8b 75 0c mov 0xc(%ebp),%esi
acquire(&p->lock);
8010325e: 89 1c 24 mov %ebx,(%esp)
80103261: e8 ca 0e 00 00 call 80104130 <acquire>
if(writable){
80103266: 85 f6 test %esi,%esi
80103268: 74 3e je 801032a8 <pipeclose+0x58>
p->writeopen = 0;
wakeup(&p->nread);
8010326a: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
p->writeopen = 0;
80103270: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx)
80103277: 00 00 00
wakeup(&p->nread);
8010327a: 89 04 24 mov %eax,(%esp)
8010327d: e8 fe 0a 00 00 call 80103d80 <wakeup>
} else {
p->readopen = 0;
wakeup(&p->nwrite);
}
if(p->readopen == 0 && p->writeopen == 0){
80103282: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx
80103288: 85 d2 test %edx,%edx
8010328a: 75 0a jne 80103296 <pipeclose+0x46>
8010328c: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax
80103292: 85 c0 test %eax,%eax
80103294: 74 32 je 801032c8 <pipeclose+0x78>
release(&p->lock);
kfree((char*)p);
} else
release(&p->lock);
80103296: 89 5d 08 mov %ebx,0x8(%ebp)
}
80103299: 83 c4 10 add $0x10,%esp
8010329c: 5b pop %ebx
8010329d: 5e pop %esi
8010329e: 5d pop %ebp
release(&p->lock);
8010329f: e9 7c 0f 00 00 jmp 80104220 <release>
801032a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
wakeup(&p->nwrite);
801032a8: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax
p->readopen = 0;
801032ae: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx)
801032b5: 00 00 00
wakeup(&p->nwrite);
801032b8: 89 04 24 mov %eax,(%esp)
801032bb: e8 c0 0a 00 00 call 80103d80 <wakeup>
801032c0: eb c0 jmp 80103282 <pipeclose+0x32>
801032c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
release(&p->lock);
801032c8: 89 1c 24 mov %ebx,(%esp)
801032cb: e8 50 0f 00 00 call 80104220 <release>
kfree((char*)p);
801032d0: 89 5d 08 mov %ebx,0x8(%ebp)
}
801032d3: 83 c4 10 add $0x10,%esp
801032d6: 5b pop %ebx
801032d7: 5e pop %esi
801032d8: 5d pop %ebp
kfree((char*)p);
801032d9: e9 02 f0 ff ff jmp 801022e0 <kfree>
801032de: 66 90 xchg %ax,%ax
801032e0 <pipewrite>:
//PAGEBREAK: 40
int
pipewrite(struct pipe *p, char *addr, int n)
{
801032e0: 55 push %ebp
801032e1: 89 e5 mov %esp,%ebp
801032e3: 57 push %edi
801032e4: 56 push %esi
801032e5: 53 push %ebx
801032e6: 83 ec 1c sub $0x1c,%esp
801032e9: 8b 5d 08 mov 0x8(%ebp),%ebx
int i;
acquire(&p->lock);
801032ec: 89 1c 24 mov %ebx,(%esp)
801032ef: e8 3c 0e 00 00 call 80104130 <acquire>
for(i = 0; i < n; i++){
801032f4: 8b 4d 10 mov 0x10(%ebp),%ecx
801032f7: 85 c9 test %ecx,%ecx
801032f9: 0f 8e b2 00 00 00 jle 801033b1 <pipewrite+0xd1>
801032ff: 8b 4d 0c mov 0xc(%ebp),%ecx
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
if(p->readopen == 0 || myproc()->killed){
release(&p->lock);
return -1;
}
wakeup(&p->nread);
80103302: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi
80103308: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
8010330e: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi
80103314: 89 4d e4 mov %ecx,-0x1c(%ebp)
80103317: 03 4d 10 add 0x10(%ebp),%ecx
8010331a: 89 4d e0 mov %ecx,-0x20(%ebp)
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
8010331d: 8b 8b 34 02 00 00 mov 0x234(%ebx),%ecx
80103323: 81 c1 00 02 00 00 add $0x200,%ecx
80103329: 39 c8 cmp %ecx,%eax
8010332b: 74 38 je 80103365 <pipewrite+0x85>
8010332d: eb 55 jmp 80103384 <pipewrite+0xa4>
8010332f: 90 nop
if(p->readopen == 0 || myproc()->killed){
80103330: e8 5b 03 00 00 call 80103690 <myproc>
80103335: 8b 40 24 mov 0x24(%eax),%eax
80103338: 85 c0 test %eax,%eax
8010333a: 75 33 jne 8010336f <pipewrite+0x8f>
wakeup(&p->nread);
8010333c: 89 3c 24 mov %edi,(%esp)
8010333f: e8 3c 0a 00 00 call 80103d80 <wakeup>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80103344: 89 5c 24 04 mov %ebx,0x4(%esp)
80103348: 89 34 24 mov %esi,(%esp)
8010334b: e8 a0 08 00 00 call 80103bf0 <sleep>
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
80103350: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
80103356: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx
8010335c: 05 00 02 00 00 add $0x200,%eax
80103361: 39 c2 cmp %eax,%edx
80103363: 75 23 jne 80103388 <pipewrite+0xa8>
if(p->readopen == 0 || myproc()->killed){
80103365: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx
8010336b: 85 d2 test %edx,%edx
8010336d: 75 c1 jne 80103330 <pipewrite+0x50>
release(&p->lock);
8010336f: 89 1c 24 mov %ebx,(%esp)
80103372: e8 a9 0e 00 00 call 80104220 <release>
return -1;
80103377: b8 ff ff ff ff mov $0xffffffff,%eax
p->data[p->nwrite++ % PIPESIZE] = addr[i];
}
wakeup(&p->nread); //DOC: pipewrite-wakeup1
release(&p->lock);
return n;
}
8010337c: 83 c4 1c add $0x1c,%esp
8010337f: 5b pop %ebx
80103380: 5e pop %esi
80103381: 5f pop %edi
80103382: 5d pop %ebp
80103383: c3 ret
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
80103384: 89 c2 mov %eax,%edx
80103386: 66 90 xchg %ax,%ax
p->data[p->nwrite++ % PIPESIZE] = addr[i];
80103388: 8b 4d e4 mov -0x1c(%ebp),%ecx
8010338b: 8d 42 01 lea 0x1(%edx),%eax
8010338e: 81 e2 ff 01 00 00 and $0x1ff,%edx
80103394: 89 83 38 02 00 00 mov %eax,0x238(%ebx)
8010339a: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
8010339e: 0f b6 09 movzbl (%ecx),%ecx
801033a1: 88 4c 13 34 mov %cl,0x34(%ebx,%edx,1)
for(i = 0; i < n; i++){
801033a5: 8b 4d e4 mov -0x1c(%ebp),%ecx
801033a8: 3b 4d e0 cmp -0x20(%ebp),%ecx
801033ab: 0f 85 6c ff ff ff jne 8010331d <pipewrite+0x3d>
wakeup(&p->nread); //DOC: pipewrite-wakeup1
801033b1: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
801033b7: 89 04 24 mov %eax,(%esp)
801033ba: e8 c1 09 00 00 call 80103d80 <wakeup>
release(&p->lock);
801033bf: 89 1c 24 mov %ebx,(%esp)
801033c2: e8 59 0e 00 00 call 80104220 <release>
return n;
801033c7: 8b 45 10 mov 0x10(%ebp),%eax
801033ca: eb b0 jmp 8010337c <pipewrite+0x9c>
801033cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801033d0 <piperead>:
int
piperead(struct pipe *p, char *addr, int n)
{
801033d0: 55 push %ebp
801033d1: 89 e5 mov %esp,%ebp
801033d3: 57 push %edi
801033d4: 56 push %esi
801033d5: 53 push %ebx
801033d6: 83 ec 1c sub $0x1c,%esp
801033d9: 8b 75 08 mov 0x8(%ebp),%esi
801033dc: 8b 7d 0c mov 0xc(%ebp),%edi
int i;
acquire(&p->lock);
801033df: 89 34 24 mov %esi,(%esp)
801033e2: e8 49 0d 00 00 call 80104130 <acquire>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
801033e7: 8b 86 34 02 00 00 mov 0x234(%esi),%eax
801033ed: 3b 86 38 02 00 00 cmp 0x238(%esi),%eax
801033f3: 75 5b jne 80103450 <piperead+0x80>
801033f5: 8b 9e 40 02 00 00 mov 0x240(%esi),%ebx
801033fb: 85 db test %ebx,%ebx
801033fd: 74 51 je 80103450 <piperead+0x80>
if(myproc()->killed){
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
801033ff: 8d 9e 34 02 00 00 lea 0x234(%esi),%ebx
80103405: eb 25 jmp 8010342c <piperead+0x5c>
80103407: 90 nop
80103408: 89 74 24 04 mov %esi,0x4(%esp)
8010340c: 89 1c 24 mov %ebx,(%esp)
8010340f: e8 dc 07 00 00 call 80103bf0 <sleep>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80103414: 8b 86 34 02 00 00 mov 0x234(%esi),%eax
8010341a: 3b 86 38 02 00 00 cmp 0x238(%esi),%eax
80103420: 75 2e jne 80103450 <piperead+0x80>
80103422: 8b 96 40 02 00 00 mov 0x240(%esi),%edx
80103428: 85 d2 test %edx,%edx
8010342a: 74 24 je 80103450 <piperead+0x80>
if(myproc()->killed){
8010342c: e8 5f 02 00 00 call 80103690 <myproc>
80103431: 8b 48 24 mov 0x24(%eax),%ecx
80103434: 85 c9 test %ecx,%ecx
80103436: 74 d0 je 80103408 <piperead+0x38>
release(&p->lock);
80103438: 89 34 24 mov %esi,(%esp)
8010343b: e8 e0 0d 00 00 call 80104220 <release>
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
release(&p->lock);
return i;
}
80103440: 83 c4 1c add $0x1c,%esp
return -1;
80103443: b8 ff ff ff ff mov $0xffffffff,%eax
}
80103448: 5b pop %ebx
80103449: 5e pop %esi
8010344a: 5f pop %edi
8010344b: 5d pop %ebp
8010344c: c3 ret
8010344d: 8d 76 00 lea 0x0(%esi),%esi
for(i = 0; i < n; i++){ //DOC: piperead-copy
80103450: 8b 55 10 mov 0x10(%ebp),%edx
if(p->nread == p->nwrite)
80103453: 31 db xor %ebx,%ebx
for(i = 0; i < n; i++){ //DOC: piperead-copy
80103455: 85 d2 test %edx,%edx
80103457: 7f 2b jg 80103484 <piperead+0xb4>
80103459: eb 31 jmp 8010348c <piperead+0xbc>
8010345b: 90 nop
8010345c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
addr[i] = p->data[p->nread++ % PIPESIZE];
80103460: 8d 48 01 lea 0x1(%eax),%ecx
80103463: 25 ff 01 00 00 and $0x1ff,%eax
80103468: 89 8e 34 02 00 00 mov %ecx,0x234(%esi)
8010346e: 0f b6 44 06 34 movzbl 0x34(%esi,%eax,1),%eax
80103473: 88 04 1f mov %al,(%edi,%ebx,1)
for(i = 0; i < n; i++){ //DOC: piperead-copy
80103476: 83 c3 01 add $0x1,%ebx
80103479: 3b 5d 10 cmp 0x10(%ebp),%ebx
8010347c: 74 0e je 8010348c <piperead+0xbc>
if(p->nread == p->nwrite)
8010347e: 8b 86 34 02 00 00 mov 0x234(%esi),%eax
80103484: 3b 86 38 02 00 00 cmp 0x238(%esi),%eax
8010348a: 75 d4 jne 80103460 <piperead+0x90>
wakeup(&p->nwrite); //DOC: piperead-wakeup
8010348c: 8d 86 38 02 00 00 lea 0x238(%esi),%eax
80103492: 89 04 24 mov %eax,(%esp)
80103495: e8 e6 08 00 00 call 80103d80 <wakeup>
release(&p->lock);
8010349a: 89 34 24 mov %esi,(%esp)
8010349d: e8 7e 0d 00 00 call 80104220 <release>
}
801034a2: 83 c4 1c add $0x1c,%esp
return i;
801034a5: 89 d8 mov %ebx,%eax
}
801034a7: 5b pop %ebx
801034a8: 5e pop %esi
801034a9: 5f pop %edi
801034aa: 5d pop %ebp
801034ab: c3 ret
801034ac: 66 90 xchg %ax,%ax
801034ae: 66 90 xchg %ax,%ax
801034b0 <allocproc>:
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
801034b0: 55 push %ebp
801034b1: 89 e5 mov %esp,%ebp
801034b3: 53 push %ebx
struct proc *p;
char *sp;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
801034b4: bb 54 2d 11 80 mov $0x80112d54,%ebx
{
801034b9: 83 ec 14 sub $0x14,%esp
acquire(&ptable.lock);
801034bc: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
801034c3: e8 68 0c 00 00 call 80104130 <acquire>
801034c8: eb 11 jmp 801034db <allocproc+0x2b>
801034ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
801034d0: 83 eb 80 sub $0xffffff80,%ebx
801034d3: 81 fb 54 4d 11 80 cmp $0x80114d54,%ebx
801034d9: 74 7d je 80103558 <allocproc+0xa8>
if(p->state == UNUSED)
801034db: 8b 43 0c mov 0xc(%ebx),%eax
801034de: 85 c0 test %eax,%eax
801034e0: 75 ee jne 801034d0 <allocproc+0x20>
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
p->pid = nextpid++;
801034e2: a1 04 a0 10 80 mov 0x8010a004,%eax
release(&ptable.lock);
801034e7: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
p->state = EMBRYO;
801034ee: c7 43 0c 01 00 00 00 movl $0x1,0xc(%ebx)
p->pid = nextpid++;
801034f5: 8d 50 01 lea 0x1(%eax),%edx
801034f8: 89 15 04 a0 10 80 mov %edx,0x8010a004
801034fe: 89 43 10 mov %eax,0x10(%ebx)
release(&ptable.lock);
80103501: e8 1a 0d 00 00 call 80104220 <release>
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
80103506: e8 85 ef ff ff call 80102490 <kalloc>
8010350b: 85 c0 test %eax,%eax
8010350d: 89 43 08 mov %eax,0x8(%ebx)
80103510: 74 5a je 8010356c <allocproc+0xbc>
return 0;
}
sp = p->kstack + KSTACKSIZE;
// Leave room for trap frame.
sp -= sizeof *p->tf;
80103512: 8d 90 b4 0f 00 00 lea 0xfb4(%eax),%edx
// Set up new context to start executing at forkret,
// which returns to trapret.
sp -= 4;
*(uint*)sp = (uint)trapret;
sp -= sizeof *p->context;
80103518: 05 9c 0f 00 00 add $0xf9c,%eax
sp -= sizeof *p->tf;
8010351d: 89 53 18 mov %edx,0x18(%ebx)
*(uint*)sp = (uint)trapret;
80103520: c7 40 14 35 54 10 80 movl $0x80105435,0x14(%eax)
p->context = (struct context*)sp;
memset(p->context, 0, sizeof *p->context);
80103527: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
8010352e: 00
8010352f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80103536: 00
80103537: 89 04 24 mov %eax,(%esp)
p->context = (struct context*)sp;
8010353a: 89 43 1c mov %eax,0x1c(%ebx)
memset(p->context, 0, sizeof *p->context);
8010353d: e8 2e 0d 00 00 call 80104270 <memset>
p->context->eip = (uint)forkret;
80103542: 8b 43 1c mov 0x1c(%ebx),%eax
80103545: c7 40 10 80 35 10 80 movl $0x80103580,0x10(%eax)
return p;
8010354c: 89 d8 mov %ebx,%eax
}
8010354e: 83 c4 14 add $0x14,%esp
80103551: 5b pop %ebx
80103552: 5d pop %ebp
80103553: c3 ret
80103554: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
release(&ptable.lock);
80103558: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
8010355f: e8 bc 0c 00 00 call 80104220 <release>
}
80103564: 83 c4 14 add $0x14,%esp
return 0;
80103567: 31 c0 xor %eax,%eax
}
80103569: 5b pop %ebx
8010356a: 5d pop %ebp
8010356b: c3 ret
p->state = UNUSED;
8010356c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
return 0;
80103573: eb d9 jmp 8010354e <allocproc+0x9e>
80103575: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103580 <forkret>:
// A fork child's very first scheduling by scheduler()
// will swtch here. "Return" to user space.
void
forkret(void)
{
80103580: 55 push %ebp
80103581: 89 e5 mov %esp,%ebp
80103583: 83 ec 18 sub $0x18,%esp
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
80103586: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
8010358d: e8 8e 0c 00 00 call 80104220 <release>
if (first) {
80103592: a1 00 a0 10 80 mov 0x8010a000,%eax
80103597: 85 c0 test %eax,%eax
80103599: 75 05 jne 801035a0 <forkret+0x20>
iinit(ROOTDEV);
initlog(ROOTDEV);
}
// Return to "caller", actually trapret (see allocproc).
}
8010359b: c9 leave
8010359c: c3 ret
8010359d: 8d 76 00 lea 0x0(%esi),%esi
iinit(ROOTDEV);
801035a0: c7 04 24 01 00 00 00 movl $0x1,(%esp)
first = 0;
801035a7: c7 05 00 a0 10 80 00 movl $0x0,0x8010a000
801035ae: 00 00 00
iinit(ROOTDEV);
801035b1: e8 aa de ff ff call 80101460 <iinit>
initlog(ROOTDEV);
801035b6: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801035bd: e8 9e f4 ff ff call 80102a60 <initlog>
}
801035c2: c9 leave
801035c3: c3 ret
801035c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801035ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801035d0 <pinit>:
{
801035d0: 55 push %ebp
801035d1: 89 e5 mov %esp,%ebp
801035d3: 83 ec 18 sub $0x18,%esp
initlock(&ptable.lock, "ptable");
801035d6: c7 44 24 04 95 73 10 movl $0x80107395,0x4(%esp)
801035dd: 80
801035de: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
801035e5: e8 56 0a 00 00 call 80104040 <initlock>
}
801035ea: c9 leave
801035eb: c3 ret
801035ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801035f0 <mycpu>:
{
801035f0: 55 push %ebp
801035f1: 89 e5 mov %esp,%ebp
801035f3: 56 push %esi
801035f4: 53 push %ebx
801035f5: 83 ec 10 sub $0x10,%esp
asm volatile("pushfl; popl %0" : "=r" (eflags));
801035f8: 9c pushf
801035f9: 58 pop %eax
if(readeflags()&FL_IF)
801035fa: f6 c4 02 test $0x2,%ah
801035fd: 75 57 jne 80103656 <mycpu+0x66>
apicid = lapicid();
801035ff: e8 4c f1 ff ff call 80102750 <lapicid>
for (i = 0; i < ncpu; ++i) {
80103604: 8b 35 00 2d 11 80 mov 0x80112d00,%esi
8010360a: 85 f6 test %esi,%esi
8010360c: 7e 3c jle 8010364a <mycpu+0x5a>
if (cpus[i].apicid == apicid)
8010360e: 0f b6 15 80 27 11 80 movzbl 0x80112780,%edx
80103615: 39 c2 cmp %eax,%edx
80103617: 74 2d je 80103646 <mycpu+0x56>
80103619: b9 30 28 11 80 mov $0x80112830,%ecx
for (i = 0; i < ncpu; ++i) {
8010361e: 31 d2 xor %edx,%edx
80103620: 83 c2 01 add $0x1,%edx
80103623: 39 f2 cmp %esi,%edx
80103625: 74 23 je 8010364a <mycpu+0x5a>
if (cpus[i].apicid == apicid)
80103627: 0f b6 19 movzbl (%ecx),%ebx
8010362a: 81 c1 b0 00 00 00 add $0xb0,%ecx
80103630: 39 c3 cmp %eax,%ebx
80103632: 75 ec jne 80103620 <mycpu+0x30>
return &cpus[i];
80103634: 69 c2 b0 00 00 00 imul $0xb0,%edx,%eax
}
8010363a: 83 c4 10 add $0x10,%esp
8010363d: 5b pop %ebx
8010363e: 5e pop %esi
8010363f: 5d pop %ebp
return &cpus[i];
80103640: 05 80 27 11 80 add $0x80112780,%eax
}
80103645: c3 ret
for (i = 0; i < ncpu; ++i) {
80103646: 31 d2 xor %edx,%edx
80103648: eb ea jmp 80103634 <mycpu+0x44>
panic("unknown apicid\n");
8010364a: c7 04 24 9c 73 10 80 movl $0x8010739c,(%esp)
80103651: e8 0a cd ff ff call 80100360 <panic>
panic("mycpu called with interrupts enabled\n");
80103656: c7 04 24 78 74 10 80 movl $0x80107478,(%esp)
8010365d: e8 fe cc ff ff call 80100360 <panic>
80103662: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103669: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103670 <cpuid>:
cpuid() {
80103670: 55 push %ebp
80103671: 89 e5 mov %esp,%ebp
80103673: 83 ec 08 sub $0x8,%esp
return mycpu()-cpus;
80103676: e8 75 ff ff ff call 801035f0 <mycpu>
}
8010367b: c9 leave
return mycpu()-cpus;
8010367c: 2d 80 27 11 80 sub $0x80112780,%eax
80103681: c1 f8 04 sar $0x4,%eax
80103684: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax
}
8010368a: c3 ret
8010368b: 90 nop
8010368c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103690 <myproc>:
myproc(void) {
80103690: 55 push %ebp
80103691: 89 e5 mov %esp,%ebp
80103693: 53 push %ebx
80103694: 83 ec 04 sub $0x4,%esp
pushcli();
80103697: e8 54 0a 00 00 call 801040f0 <pushcli>
c = mycpu();
8010369c: e8 4f ff ff ff call 801035f0 <mycpu>
p = c->proc;
801036a1: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
801036a7: e8 04 0b 00 00 call 801041b0 <popcli>
}
801036ac: 83 c4 04 add $0x4,%esp
801036af: 89 d8 mov %ebx,%eax
801036b1: 5b pop %ebx
801036b2: 5d pop %ebp
801036b3: c3 ret
801036b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801036ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801036c0 <userinit>:
{
801036c0: 55 push %ebp
801036c1: 89 e5 mov %esp,%ebp
801036c3: 53 push %ebx
801036c4: 83 ec 14 sub $0x14,%esp
p = allocproc();
801036c7: e8 e4 fd ff ff call 801034b0 <allocproc>
801036cc: 89 c3 mov %eax,%ebx
initproc = p;
801036ce: a3 b8 a5 10 80 mov %eax,0x8010a5b8
if((p->pgdir = setupkvm()) == 0)
801036d3: e8 98 33 00 00 call 80106a70 <setupkvm>
801036d8: 85 c0 test %eax,%eax
801036da: 89 43 04 mov %eax,0x4(%ebx)
801036dd: 0f 84 d4 00 00 00 je 801037b7 <userinit+0xf7>
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
801036e3: 89 04 24 mov %eax,(%esp)
801036e6: c7 44 24 08 2c 00 00 movl $0x2c,0x8(%esp)
801036ed: 00
801036ee: c7 44 24 04 60 a4 10 movl $0x8010a460,0x4(%esp)
801036f5: 80
801036f6: e8 a5 30 00 00 call 801067a0 <inituvm>
p->sz = PGSIZE;
801036fb: c7 03 00 10 00 00 movl $0x1000,(%ebx)
memset(p->tf, 0, sizeof(*p->tf));
80103701: c7 44 24 08 4c 00 00 movl $0x4c,0x8(%esp)
80103708: 00
80103709: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80103710: 00
80103711: 8b 43 18 mov 0x18(%ebx),%eax
80103714: 89 04 24 mov %eax,(%esp)
80103717: e8 54 0b 00 00 call 80104270 <memset>
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
8010371c: 8b 43 18 mov 0x18(%ebx),%eax
8010371f: ba 1b 00 00 00 mov $0x1b,%edx
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
80103724: b9 23 00 00 00 mov $0x23,%ecx
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
80103729: 66 89 50 3c mov %dx,0x3c(%eax)
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
8010372d: 8b 43 18 mov 0x18(%ebx),%eax
80103730: 66 89 48 2c mov %cx,0x2c(%eax)
p->tf->es = p->tf->ds;
80103734: 8b 43 18 mov 0x18(%ebx),%eax
80103737: 0f b7 50 2c movzwl 0x2c(%eax),%edx
8010373b: 66 89 50 28 mov %dx,0x28(%eax)
p->tf->ss = p->tf->ds;
8010373f: 8b 43 18 mov 0x18(%ebx),%eax
80103742: 0f b7 50 2c movzwl 0x2c(%eax),%edx
80103746: 66 89 50 48 mov %dx,0x48(%eax)
p->tf->eflags = FL_IF;
8010374a: 8b 43 18 mov 0x18(%ebx),%eax
8010374d: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax)
p->tf->esp = PGSIZE;
80103754: 8b 43 18 mov 0x18(%ebx),%eax
80103757: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax)
p->tf->eip = 0; // beginning of initcode.S
8010375e: 8b 43 18 mov 0x18(%ebx),%eax
80103761: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax)
safestrcpy(p->name, "initcode", sizeof(p->name));
80103768: 8d 43 6c lea 0x6c(%ebx),%eax
8010376b: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80103772: 00
80103773: c7 44 24 04 c5 73 10 movl $0x801073c5,0x4(%esp)
8010377a: 80
8010377b: 89 04 24 mov %eax,(%esp)
8010377e: e8 cd 0c 00 00 call 80104450 <safestrcpy>
p->cwd = namei("/");
80103783: c7 04 24 ce 73 10 80 movl $0x801073ce,(%esp)
8010378a: e8 61 e7 ff ff call 80101ef0 <namei>
8010378f: 89 43 68 mov %eax,0x68(%ebx)
acquire(&ptable.lock);
80103792: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103799: e8 92 09 00 00 call 80104130 <acquire>
p->state = RUNNABLE;
8010379e: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx)
release(&ptable.lock);
801037a5: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
801037ac: e8 6f 0a 00 00 call 80104220 <release>
}
801037b1: 83 c4 14 add $0x14,%esp
801037b4: 5b pop %ebx
801037b5: 5d pop %ebp
801037b6: c3 ret
panic("userinit: out of memory?");
801037b7: c7 04 24 ac 73 10 80 movl $0x801073ac,(%esp)
801037be: e8 9d cb ff ff call 80100360 <panic>
801037c3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801037c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801037d0 <growproc>:
{
801037d0: 55 push %ebp
801037d1: 89 e5 mov %esp,%ebp
801037d3: 56 push %esi
801037d4: 53 push %ebx
801037d5: 83 ec 10 sub $0x10,%esp
801037d8: 8b 75 08 mov 0x8(%ebp),%esi
struct proc *curproc = myproc();
801037db: e8 b0 fe ff ff call 80103690 <myproc>
if(n > 0){
801037e0: 83 fe 00 cmp $0x0,%esi
struct proc *curproc = myproc();
801037e3: 89 c3 mov %eax,%ebx
sz = curproc->sz;
801037e5: 8b 00 mov (%eax),%eax
if(n > 0){
801037e7: 7e 2f jle 80103818 <growproc+0x48>
if((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0)
801037e9: 01 c6 add %eax,%esi
801037eb: 89 74 24 08 mov %esi,0x8(%esp)
801037ef: 89 44 24 04 mov %eax,0x4(%esp)
801037f3: 8b 43 04 mov 0x4(%ebx),%eax
801037f6: 89 04 24 mov %eax,(%esp)
801037f9: e8 e2 30 00 00 call 801068e0 <allocuvm>
801037fe: 85 c0 test %eax,%eax
80103800: 74 36 je 80103838 <growproc+0x68>
curproc->sz = sz;
80103802: 89 03 mov %eax,(%ebx)
switchuvm(curproc);
80103804: 89 1c 24 mov %ebx,(%esp)
80103807: e8 84 2e 00 00 call 80106690 <switchuvm>
return 0;
8010380c: 31 c0 xor %eax,%eax
}
8010380e: 83 c4 10 add $0x10,%esp
80103811: 5b pop %ebx
80103812: 5e pop %esi
80103813: 5d pop %ebp
80103814: c3 ret
80103815: 8d 76 00 lea 0x0(%esi),%esi
} else if(n < 0){
80103818: 74 e8 je 80103802 <growproc+0x32>
if((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0)
8010381a: 01 c6 add %eax,%esi
8010381c: 89 74 24 08 mov %esi,0x8(%esp)
80103820: 89 44 24 04 mov %eax,0x4(%esp)
80103824: 8b 43 04 mov 0x4(%ebx),%eax
80103827: 89 04 24 mov %eax,(%esp)
8010382a: e8 a1 31 00 00 call 801069d0 <deallocuvm>
8010382f: 85 c0 test %eax,%eax
80103831: 75 cf jne 80103802 <growproc+0x32>
80103833: 90 nop
80103834: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80103838: b8 ff ff ff ff mov $0xffffffff,%eax
8010383d: eb cf jmp 8010380e <growproc+0x3e>
8010383f: 90 nop
80103840 <fork>:
{
80103840: 55 push %ebp
80103841: 89 e5 mov %esp,%ebp
80103843: 57 push %edi
80103844: 56 push %esi
80103845: 53 push %ebx
80103846: 83 ec 1c sub $0x1c,%esp
struct proc *curproc = myproc();
80103849: e8 42 fe ff ff call 80103690 <myproc>
8010384e: 89 c3 mov %eax,%ebx
if((np = allocproc()) == 0){
80103850: e8 5b fc ff ff call 801034b0 <allocproc>
80103855: 85 c0 test %eax,%eax
80103857: 89 c7 mov %eax,%edi
80103859: 89 45 e4 mov %eax,-0x1c(%ebp)
8010385c: 0f 84 bc 00 00 00 je 8010391e <fork+0xde>
if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){
80103862: 8b 03 mov (%ebx),%eax
80103864: 89 44 24 04 mov %eax,0x4(%esp)
80103868: 8b 43 04 mov 0x4(%ebx),%eax
8010386b: 89 04 24 mov %eax,(%esp)
8010386e: e8 dd 32 00 00 call 80106b50 <copyuvm>
80103873: 85 c0 test %eax,%eax
80103875: 89 47 04 mov %eax,0x4(%edi)
80103878: 0f 84 a7 00 00 00 je 80103925 <fork+0xe5>
np->sz = curproc->sz;
8010387e: 8b 03 mov (%ebx),%eax
80103880: 8b 4d e4 mov -0x1c(%ebp),%ecx
80103883: 89 01 mov %eax,(%ecx)
*np->tf = *curproc->tf;
80103885: 8b 79 18 mov 0x18(%ecx),%edi
80103888: 89 c8 mov %ecx,%eax
np->parent = curproc;
8010388a: 89 59 14 mov %ebx,0x14(%ecx)
*np->tf = *curproc->tf;
8010388d: 8b 73 18 mov 0x18(%ebx),%esi
80103890: b9 13 00 00 00 mov $0x13,%ecx
80103895: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
for(i = 0; i < NOFILE; i++)
80103897: 31 f6 xor %esi,%esi
np->tf->eax = 0;
80103899: 8b 40 18 mov 0x18(%eax),%eax
8010389c: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
801038a3: 90 nop
801038a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(curproc->ofile[i])
801038a8: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax
801038ac: 85 c0 test %eax,%eax
801038ae: 74 0f je 801038bf <fork+0x7f>
np->ofile[i] = filedup(curproc->ofile[i]);
801038b0: 89 04 24 mov %eax,(%esp)
801038b3: e8 08 d5 ff ff call 80100dc0 <filedup>
801038b8: 8b 55 e4 mov -0x1c(%ebp),%edx
801038bb: 89 44 b2 28 mov %eax,0x28(%edx,%esi,4)
for(i = 0; i < NOFILE; i++)
801038bf: 83 c6 01 add $0x1,%esi
801038c2: 83 fe 10 cmp $0x10,%esi
801038c5: 75 e1 jne 801038a8 <fork+0x68>
np->cwd = idup(curproc->cwd);
801038c7: 8b 43 68 mov 0x68(%ebx),%eax
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
801038ca: 83 c3 6c add $0x6c,%ebx
np->cwd = idup(curproc->cwd);
801038cd: 89 04 24 mov %eax,(%esp)
801038d0: e8 9b dd ff ff call 80101670 <idup>
801038d5: 8b 7d e4 mov -0x1c(%ebp),%edi
801038d8: 89 47 68 mov %eax,0x68(%edi)
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
801038db: 8d 47 6c lea 0x6c(%edi),%eax
801038de: 89 5c 24 04 mov %ebx,0x4(%esp)
801038e2: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
801038e9: 00
801038ea: 89 04 24 mov %eax,(%esp)
801038ed: e8 5e 0b 00 00 call 80104450 <safestrcpy>
pid = np->pid;
801038f2: 8b 5f 10 mov 0x10(%edi),%ebx
acquire(&ptable.lock);
801038f5: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
801038fc: e8 2f 08 00 00 call 80104130 <acquire>
np->state = RUNNABLE;
80103901: c7 47 0c 03 00 00 00 movl $0x3,0xc(%edi)
release(&ptable.lock);
80103908: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
8010390f: e8 0c 09 00 00 call 80104220 <release>
return pid;
80103914: 89 d8 mov %ebx,%eax
}
80103916: 83 c4 1c add $0x1c,%esp
80103919: 5b pop %ebx
8010391a: 5e pop %esi
8010391b: 5f pop %edi
8010391c: 5d pop %ebp
8010391d: c3 ret
return -1;
8010391e: b8 ff ff ff ff mov $0xffffffff,%eax
80103923: eb f1 jmp 80103916 <fork+0xd6>
kfree(np->kstack);
80103925: 8b 7d e4 mov -0x1c(%ebp),%edi
80103928: 8b 47 08 mov 0x8(%edi),%eax
8010392b: 89 04 24 mov %eax,(%esp)
8010392e: e8 ad e9 ff ff call 801022e0 <kfree>
return -1;
80103933: b8 ff ff ff ff mov $0xffffffff,%eax
np->kstack = 0;
80103938: c7 47 08 00 00 00 00 movl $0x0,0x8(%edi)
np->state = UNUSED;
8010393f: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi)
return -1;
80103946: eb ce jmp 80103916 <fork+0xd6>
80103948: 90 nop
80103949: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103950 <scheduler>:
{
80103950: 55 push %ebp
80103951: 89 e5 mov %esp,%ebp
80103953: 57 push %edi
80103954: 56 push %esi
80103955: 53 push %ebx
80103956: 83 ec 1c sub $0x1c,%esp
struct cpu *c = mycpu();
80103959: e8 92 fc ff ff call 801035f0 <mycpu>
8010395e: 89 c6 mov %eax,%esi
c->proc = 0;
80103960: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax)
80103967: 00 00 00
8010396a: 8d 78 04 lea 0x4(%eax),%edi
8010396d: 8d 76 00 lea 0x0(%esi),%esi
asm volatile("sti");
80103970: fb sti
acquire(&ptable.lock);
80103971: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103978: bb 54 2d 11 80 mov $0x80112d54,%ebx
acquire(&ptable.lock);
8010397d: e8 ae 07 00 00 call 80104130 <acquire>
80103982: eb 0f jmp 80103993 <scheduler+0x43>
80103984: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103988: 83 eb 80 sub $0xffffff80,%ebx
8010398b: 81 fb 54 4d 11 80 cmp $0x80114d54,%ebx
80103991: 74 45 je 801039d8 <scheduler+0x88>
if(p->state != RUNNABLE)
80103993: 83 7b 0c 03 cmpl $0x3,0xc(%ebx)
80103997: 75 ef jne 80103988 <scheduler+0x38>
c->proc = p;
80103999: 89 9e ac 00 00 00 mov %ebx,0xac(%esi)
switchuvm(p);
8010399f: 89 1c 24 mov %ebx,(%esp)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801039a2: 83 eb 80 sub $0xffffff80,%ebx
switchuvm(p);
801039a5: e8 e6 2c 00 00 call 80106690 <switchuvm>
swtch(&(c->scheduler), p->context);
801039aa: 8b 43 9c mov -0x64(%ebx),%eax
p->state = RUNNING;
801039ad: c7 43 8c 04 00 00 00 movl $0x4,-0x74(%ebx)
swtch(&(c->scheduler), p->context);
801039b4: 89 3c 24 mov %edi,(%esp)
801039b7: 89 44 24 04 mov %eax,0x4(%esp)
801039bb: e8 eb 0a 00 00 call 801044ab <swtch>
switchkvm();
801039c0: e8 ab 2c 00 00 call 80106670 <switchkvm>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801039c5: 81 fb 54 4d 11 80 cmp $0x80114d54,%ebx
c->proc = 0;
801039cb: c7 86 ac 00 00 00 00 movl $0x0,0xac(%esi)
801039d2: 00 00 00
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801039d5: 75 bc jne 80103993 <scheduler+0x43>
801039d7: 90 nop
release(&ptable.lock);
801039d8: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
801039df: e8 3c 08 00 00 call 80104220 <release>
}
801039e4: eb 8a jmp 80103970 <scheduler+0x20>
801039e6: 8d 76 00 lea 0x0(%esi),%esi
801039e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801039f0 <sched>:
{
801039f0: 55 push %ebp
801039f1: 89 e5 mov %esp,%ebp
801039f3: 56 push %esi
801039f4: 53 push %ebx
801039f5: 83 ec 10 sub $0x10,%esp
struct proc *p = myproc();
801039f8: e8 93 fc ff ff call 80103690 <myproc>
if(!holding(&ptable.lock))
801039fd: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
struct proc *p = myproc();
80103a04: 89 c3 mov %eax,%ebx
if(!holding(&ptable.lock))
80103a06: e8 b5 06 00 00 call 801040c0 <holding>
80103a0b: 85 c0 test %eax,%eax
80103a0d: 74 4f je 80103a5e <sched+0x6e>
if(mycpu()->ncli != 1)
80103a0f: e8 dc fb ff ff call 801035f0 <mycpu>
80103a14: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax)
80103a1b: 75 65 jne 80103a82 <sched+0x92>
if(p->state == RUNNING)
80103a1d: 83 7b 0c 04 cmpl $0x4,0xc(%ebx)
80103a21: 74 53 je 80103a76 <sched+0x86>
asm volatile("pushfl; popl %0" : "=r" (eflags));
80103a23: 9c pushf
80103a24: 58 pop %eax
if(readeflags()&FL_IF)
80103a25: f6 c4 02 test $0x2,%ah
80103a28: 75 40 jne 80103a6a <sched+0x7a>
intena = mycpu()->intena;
80103a2a: e8 c1 fb ff ff call 801035f0 <mycpu>
swtch(&p->context, mycpu()->scheduler);
80103a2f: 83 c3 1c add $0x1c,%ebx
intena = mycpu()->intena;
80103a32: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi
swtch(&p->context, mycpu()->scheduler);
80103a38: e8 b3 fb ff ff call 801035f0 <mycpu>
80103a3d: 8b 40 04 mov 0x4(%eax),%eax
80103a40: 89 1c 24 mov %ebx,(%esp)
80103a43: 89 44 24 04 mov %eax,0x4(%esp)
80103a47: e8 5f 0a 00 00 call 801044ab <swtch>
mycpu()->intena = intena;
80103a4c: e8 9f fb ff ff call 801035f0 <mycpu>
80103a51: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax)
}
80103a57: 83 c4 10 add $0x10,%esp
80103a5a: 5b pop %ebx
80103a5b: 5e pop %esi
80103a5c: 5d pop %ebp
80103a5d: c3 ret
panic("sched ptable.lock");
80103a5e: c7 04 24 d0 73 10 80 movl $0x801073d0,(%esp)
80103a65: e8 f6 c8 ff ff call 80100360 <panic>
panic("sched interruptible");
80103a6a: c7 04 24 fc 73 10 80 movl $0x801073fc,(%esp)
80103a71: e8 ea c8 ff ff call 80100360 <panic>
panic("sched running");
80103a76: c7 04 24 ee 73 10 80 movl $0x801073ee,(%esp)
80103a7d: e8 de c8 ff ff call 80100360 <panic>
panic("sched locks");
80103a82: c7 04 24 e2 73 10 80 movl $0x801073e2,(%esp)
80103a89: e8 d2 c8 ff ff call 80100360 <panic>
80103a8e: 66 90 xchg %ax,%ax
80103a90 <exit>:
{
80103a90: 55 push %ebp
80103a91: 89 e5 mov %esp,%ebp
80103a93: 56 push %esi
if(curproc == initproc)
80103a94: 31 f6 xor %esi,%esi
{
80103a96: 53 push %ebx
80103a97: 83 ec 10 sub $0x10,%esp
struct proc *curproc = myproc();
80103a9a: e8 f1 fb ff ff call 80103690 <myproc>
if(curproc == initproc)
80103a9f: 3b 05 b8 a5 10 80 cmp 0x8010a5b8,%eax
struct proc *curproc = myproc();
80103aa5: 89 c3 mov %eax,%ebx
if(curproc == initproc)
80103aa7: 0f 84 ea 00 00 00 je 80103b97 <exit+0x107>
80103aad: 8d 76 00 lea 0x0(%esi),%esi
if(curproc->ofile[fd]){
80103ab0: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax
80103ab4: 85 c0 test %eax,%eax
80103ab6: 74 10 je 80103ac8 <exit+0x38>
fileclose(curproc->ofile[fd]);
80103ab8: 89 04 24 mov %eax,(%esp)
80103abb: e8 50 d3 ff ff call 80100e10 <fileclose>
curproc->ofile[fd] = 0;
80103ac0: c7 44 b3 28 00 00 00 movl $0x0,0x28(%ebx,%esi,4)
80103ac7: 00
for(fd = 0; fd < NOFILE; fd++){
80103ac8: 83 c6 01 add $0x1,%esi
80103acb: 83 fe 10 cmp $0x10,%esi
80103ace: 75 e0 jne 80103ab0 <exit+0x20>
begin_op();
80103ad0: e8 2b f0 ff ff call 80102b00 <begin_op>
iput(curproc->cwd);
80103ad5: 8b 43 68 mov 0x68(%ebx),%eax
80103ad8: 89 04 24 mov %eax,(%esp)
80103adb: e8 e0 dc ff ff call 801017c0 <iput>
end_op();
80103ae0: e8 8b f0 ff ff call 80102b70 <end_op>
curproc->cwd = 0;
80103ae5: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
acquire(&ptable.lock);
80103aec: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103af3: e8 38 06 00 00 call 80104130 <acquire>
wakeup1(curproc->parent);
80103af8: 8b 43 14 mov 0x14(%ebx),%eax
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103afb: ba 54 2d 11 80 mov $0x80112d54,%edx
80103b00: eb 11 jmp 80103b13 <exit+0x83>
80103b02: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103b08: 83 ea 80 sub $0xffffff80,%edx
80103b0b: 81 fa 54 4d 11 80 cmp $0x80114d54,%edx
80103b11: 74 1d je 80103b30 <exit+0xa0>
if(p->state == SLEEPING && p->chan == chan)
80103b13: 83 7a 0c 02 cmpl $0x2,0xc(%edx)
80103b17: 75 ef jne 80103b08 <exit+0x78>
80103b19: 3b 42 20 cmp 0x20(%edx),%eax
80103b1c: 75 ea jne 80103b08 <exit+0x78>
p->state = RUNNABLE;
80103b1e: c7 42 0c 03 00 00 00 movl $0x3,0xc(%edx)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103b25: 83 ea 80 sub $0xffffff80,%edx
80103b28: 81 fa 54 4d 11 80 cmp $0x80114d54,%edx
80103b2e: 75 e3 jne 80103b13 <exit+0x83>
p->parent = initproc;
80103b30: a1 b8 a5 10 80 mov 0x8010a5b8,%eax
80103b35: b9 54 2d 11 80 mov $0x80112d54,%ecx
80103b3a: eb 0f jmp 80103b4b <exit+0xbb>
80103b3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103b40: 83 e9 80 sub $0xffffff80,%ecx
80103b43: 81 f9 54 4d 11 80 cmp $0x80114d54,%ecx
80103b49: 74 34 je 80103b7f <exit+0xef>
if(p->parent == curproc){
80103b4b: 39 59 14 cmp %ebx,0x14(%ecx)
80103b4e: 75 f0 jne 80103b40 <exit+0xb0>
if(p->state == ZOMBIE)
80103b50: 83 79 0c 05 cmpl $0x5,0xc(%ecx)
p->parent = initproc;
80103b54: 89 41 14 mov %eax,0x14(%ecx)
if(p->state == ZOMBIE)
80103b57: 75 e7 jne 80103b40 <exit+0xb0>
80103b59: ba 54 2d 11 80 mov $0x80112d54,%edx
80103b5e: eb 0b jmp 80103b6b <exit+0xdb>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103b60: 83 ea 80 sub $0xffffff80,%edx
80103b63: 81 fa 54 4d 11 80 cmp $0x80114d54,%edx
80103b69: 74 d5 je 80103b40 <exit+0xb0>
if(p->state == SLEEPING && p->chan == chan)
80103b6b: 83 7a 0c 02 cmpl $0x2,0xc(%edx)
80103b6f: 75 ef jne 80103b60 <exit+0xd0>
80103b71: 3b 42 20 cmp 0x20(%edx),%eax
80103b74: 75 ea jne 80103b60 <exit+0xd0>
p->state = RUNNABLE;
80103b76: c7 42 0c 03 00 00 00 movl $0x3,0xc(%edx)
80103b7d: eb e1 jmp 80103b60 <exit+0xd0>
curproc->state = ZOMBIE;
80103b7f: c7 43 0c 05 00 00 00 movl $0x5,0xc(%ebx)
sched();
80103b86: e8 65 fe ff ff call 801039f0 <sched>
panic("zombie exit");
80103b8b: c7 04 24 1d 74 10 80 movl $0x8010741d,(%esp)
80103b92: e8 c9 c7 ff ff call 80100360 <panic>
panic("init exiting");
80103b97: c7 04 24 10 74 10 80 movl $0x80107410,(%esp)
80103b9e: e8 bd c7 ff ff call 80100360 <panic>
80103ba3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103bb0 <yield>:
{
80103bb0: 55 push %ebp
80103bb1: 89 e5 mov %esp,%ebp
80103bb3: 83 ec 18 sub $0x18,%esp
acquire(&ptable.lock); //DOC: yieldlock
80103bb6: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103bbd: e8 6e 05 00 00 call 80104130 <acquire>
myproc()->state = RUNNABLE;
80103bc2: e8 c9 fa ff ff call 80103690 <myproc>
80103bc7: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
sched();
80103bce: e8 1d fe ff ff call 801039f0 <sched>
release(&ptable.lock);
80103bd3: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103bda: e8 41 06 00 00 call 80104220 <release>
}
80103bdf: c9 leave
80103be0: c3 ret
80103be1: eb 0d jmp 80103bf0 <sleep>
80103be3: 90 nop
80103be4: 90 nop
80103be5: 90 nop
80103be6: 90 nop
80103be7: 90 nop
80103be8: 90 nop
80103be9: 90 nop
80103bea: 90 nop
80103beb: 90 nop
80103bec: 90 nop
80103bed: 90 nop
80103bee: 90 nop
80103bef: 90 nop
80103bf0 <sleep>:
{
80103bf0: 55 push %ebp
80103bf1: 89 e5 mov %esp,%ebp
80103bf3: 57 push %edi
80103bf4: 56 push %esi
80103bf5: 53 push %ebx
80103bf6: 83 ec 1c sub $0x1c,%esp
80103bf9: 8b 7d 08 mov 0x8(%ebp),%edi
80103bfc: 8b 75 0c mov 0xc(%ebp),%esi
struct proc *p = myproc();
80103bff: e8 8c fa ff ff call 80103690 <myproc>
if(p == 0)
80103c04: 85 c0 test %eax,%eax
struct proc *p = myproc();
80103c06: 89 c3 mov %eax,%ebx
if(p == 0)
80103c08: 0f 84 7c 00 00 00 je 80103c8a <sleep+0x9a>
if(lk == 0)
80103c0e: 85 f6 test %esi,%esi
80103c10: 74 6c je 80103c7e <sleep+0x8e>
if(lk != &ptable.lock){ //DOC: sleeplock0
80103c12: 81 fe 20 2d 11 80 cmp $0x80112d20,%esi
80103c18: 74 46 je 80103c60 <sleep+0x70>
acquire(&ptable.lock); //DOC: sleeplock1
80103c1a: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103c21: e8 0a 05 00 00 call 80104130 <acquire>
release(lk);
80103c26: 89 34 24 mov %esi,(%esp)
80103c29: e8 f2 05 00 00 call 80104220 <release>
p->chan = chan;
80103c2e: 89 7b 20 mov %edi,0x20(%ebx)
p->state = SLEEPING;
80103c31: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx)
sched();
80103c38: e8 b3 fd ff ff call 801039f0 <sched>
p->chan = 0;
80103c3d: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
release(&ptable.lock);
80103c44: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103c4b: e8 d0 05 00 00 call 80104220 <release>
acquire(lk);
80103c50: 89 75 08 mov %esi,0x8(%ebp)
}
80103c53: 83 c4 1c add $0x1c,%esp
80103c56: 5b pop %ebx
80103c57: 5e pop %esi
80103c58: 5f pop %edi
80103c59: 5d pop %ebp
acquire(lk);
80103c5a: e9 d1 04 00 00 jmp 80104130 <acquire>
80103c5f: 90 nop
p->chan = chan;
80103c60: 89 78 20 mov %edi,0x20(%eax)
p->state = SLEEPING;
80103c63: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax)
sched();
80103c6a: e8 81 fd ff ff call 801039f0 <sched>
p->chan = 0;
80103c6f: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
}
80103c76: 83 c4 1c add $0x1c,%esp
80103c79: 5b pop %ebx
80103c7a: 5e pop %esi
80103c7b: 5f pop %edi
80103c7c: 5d pop %ebp
80103c7d: c3 ret
panic("sleep without lk");
80103c7e: c7 04 24 2f 74 10 80 movl $0x8010742f,(%esp)
80103c85: e8 d6 c6 ff ff call 80100360 <panic>
panic("sleep");
80103c8a: c7 04 24 29 74 10 80 movl $0x80107429,(%esp)
80103c91: e8 ca c6 ff ff call 80100360 <panic>
80103c96: 8d 76 00 lea 0x0(%esi),%esi
80103c99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103ca0 <wait>:
{
80103ca0: 55 push %ebp
80103ca1: 89 e5 mov %esp,%ebp
80103ca3: 56 push %esi
80103ca4: 53 push %ebx
80103ca5: 83 ec 10 sub $0x10,%esp
struct proc *curproc = myproc();
80103ca8: e8 e3 f9 ff ff call 80103690 <myproc>
acquire(&ptable.lock);
80103cad: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
struct proc *curproc = myproc();
80103cb4: 89 c6 mov %eax,%esi
acquire(&ptable.lock);
80103cb6: e8 75 04 00 00 call 80104130 <acquire>
havekids = 0;
80103cbb: 31 c0 xor %eax,%eax
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cbd: bb 54 2d 11 80 mov $0x80112d54,%ebx
80103cc2: eb 0f jmp 80103cd3 <wait+0x33>
80103cc4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103cc8: 83 eb 80 sub $0xffffff80,%ebx
80103ccb: 81 fb 54 4d 11 80 cmp $0x80114d54,%ebx
80103cd1: 74 1d je 80103cf0 <wait+0x50>
if(p->parent != curproc)
80103cd3: 39 73 14 cmp %esi,0x14(%ebx)
80103cd6: 75 f0 jne 80103cc8 <wait+0x28>
if(p->state == ZOMBIE){
80103cd8: 83 7b 0c 05 cmpl $0x5,0xc(%ebx)
80103cdc: 74 2f je 80103d0d <wait+0x6d>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cde: 83 eb 80 sub $0xffffff80,%ebx
havekids = 1;
80103ce1: b8 01 00 00 00 mov $0x1,%eax
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103ce6: 81 fb 54 4d 11 80 cmp $0x80114d54,%ebx
80103cec: 75 e5 jne 80103cd3 <wait+0x33>
80103cee: 66 90 xchg %ax,%ax
if(!havekids || curproc->killed){
80103cf0: 85 c0 test %eax,%eax
80103cf2: 74 6e je 80103d62 <wait+0xc2>
80103cf4: 8b 46 24 mov 0x24(%esi),%eax
80103cf7: 85 c0 test %eax,%eax
80103cf9: 75 67 jne 80103d62 <wait+0xc2>
sleep(curproc, &ptable.lock); //DOC: wait-sleep
80103cfb: c7 44 24 04 20 2d 11 movl $0x80112d20,0x4(%esp)
80103d02: 80
80103d03: 89 34 24 mov %esi,(%esp)
80103d06: e8 e5 fe ff ff call 80103bf0 <sleep>
}
80103d0b: eb ae jmp 80103cbb <wait+0x1b>
kfree(p->kstack);
80103d0d: 8b 43 08 mov 0x8(%ebx),%eax
pid = p->pid;
80103d10: 8b 73 10 mov 0x10(%ebx),%esi
kfree(p->kstack);
80103d13: 89 04 24 mov %eax,(%esp)
80103d16: e8 c5 e5 ff ff call 801022e0 <kfree>
freevm(p->pgdir);
80103d1b: 8b 43 04 mov 0x4(%ebx),%eax
p->kstack = 0;
80103d1e: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
freevm(p->pgdir);
80103d25: 89 04 24 mov %eax,(%esp)
80103d28: e8 c3 2c 00 00 call 801069f0 <freevm>
release(&ptable.lock);
80103d2d: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
p->pid = 0;
80103d34: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
p->parent = 0;
80103d3b: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
p->name[0] = 0;
80103d42: c6 43 6c 00 movb $0x0,0x6c(%ebx)
p->killed = 0;
80103d46: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
p->state = UNUSED;
80103d4d: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
release(&ptable.lock);
80103d54: e8 c7 04 00 00 call 80104220 <release>
}
80103d59: 83 c4 10 add $0x10,%esp
return pid;
80103d5c: 89 f0 mov %esi,%eax
}
80103d5e: 5b pop %ebx
80103d5f: 5e pop %esi
80103d60: 5d pop %ebp
80103d61: c3 ret
release(&ptable.lock);
80103d62: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103d69: e8 b2 04 00 00 call 80104220 <release>
}
80103d6e: 83 c4 10 add $0x10,%esp
return -1;
80103d71: b8 ff ff ff ff mov $0xffffffff,%eax
}
80103d76: 5b pop %ebx
80103d77: 5e pop %esi
80103d78: 5d pop %ebp
80103d79: c3 ret
80103d7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103d80 <wakeup>:
}
// Wake up all processes sleeping on chan.
void
wakeup(void *chan)
{
80103d80: 55 push %ebp
80103d81: 89 e5 mov %esp,%ebp
80103d83: 53 push %ebx
80103d84: 83 ec 14 sub $0x14,%esp
80103d87: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ptable.lock);
80103d8a: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103d91: e8 9a 03 00 00 call 80104130 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103d96: b8 54 2d 11 80 mov $0x80112d54,%eax
80103d9b: eb 0d jmp 80103daa <wakeup+0x2a>
80103d9d: 8d 76 00 lea 0x0(%esi),%esi
80103da0: 83 e8 80 sub $0xffffff80,%eax
80103da3: 3d 54 4d 11 80 cmp $0x80114d54,%eax
80103da8: 74 1e je 80103dc8 <wakeup+0x48>
if(p->state == SLEEPING && p->chan == chan)
80103daa: 83 78 0c 02 cmpl $0x2,0xc(%eax)
80103dae: 75 f0 jne 80103da0 <wakeup+0x20>
80103db0: 3b 58 20 cmp 0x20(%eax),%ebx
80103db3: 75 eb jne 80103da0 <wakeup+0x20>
p->state = RUNNABLE;
80103db5: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103dbc: 83 e8 80 sub $0xffffff80,%eax
80103dbf: 3d 54 4d 11 80 cmp $0x80114d54,%eax
80103dc4: 75 e4 jne 80103daa <wakeup+0x2a>
80103dc6: 66 90 xchg %ax,%ax
wakeup1(chan);
release(&ptable.lock);
80103dc8: c7 45 08 20 2d 11 80 movl $0x80112d20,0x8(%ebp)
}
80103dcf: 83 c4 14 add $0x14,%esp
80103dd2: 5b pop %ebx
80103dd3: 5d pop %ebp
release(&ptable.lock);
80103dd4: e9 47 04 00 00 jmp 80104220 <release>
80103dd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103de0 <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)
{
80103de0: 55 push %ebp
80103de1: 89 e5 mov %esp,%ebp
80103de3: 53 push %ebx
80103de4: 83 ec 14 sub $0x14,%esp
80103de7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *p;
acquire(&ptable.lock);
80103dea: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103df1: e8 3a 03 00 00 call 80104130 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103df6: b8 54 2d 11 80 mov $0x80112d54,%eax
80103dfb: eb 0d jmp 80103e0a <kill+0x2a>
80103dfd: 8d 76 00 lea 0x0(%esi),%esi
80103e00: 83 e8 80 sub $0xffffff80,%eax
80103e03: 3d 54 4d 11 80 cmp $0x80114d54,%eax
80103e08: 74 36 je 80103e40 <kill+0x60>
if(p->pid == pid){
80103e0a: 39 58 10 cmp %ebx,0x10(%eax)
80103e0d: 75 f1 jne 80103e00 <kill+0x20>
p->killed = 1;
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
80103e0f: 83 78 0c 02 cmpl $0x2,0xc(%eax)
p->killed = 1;
80103e13: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
if(p->state == SLEEPING)
80103e1a: 74 14 je 80103e30 <kill+0x50>
p->state = RUNNABLE;
release(&ptable.lock);
80103e1c: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103e23: e8 f8 03 00 00 call 80104220 <release>
return 0;
}
}
release(&ptable.lock);
return -1;
}
80103e28: 83 c4 14 add $0x14,%esp
return 0;
80103e2b: 31 c0 xor %eax,%eax
}
80103e2d: 5b pop %ebx
80103e2e: 5d pop %ebp
80103e2f: c3 ret
p->state = RUNNABLE;
80103e30: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
80103e37: eb e3 jmp 80103e1c <kill+0x3c>
80103e39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
release(&ptable.lock);
80103e40: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp)
80103e47: e8 d4 03 00 00 call 80104220 <release>
}
80103e4c: 83 c4 14 add $0x14,%esp
return -1;
80103e4f: b8 ff ff ff ff mov $0xffffffff,%eax
}
80103e54: 5b pop %ebx
80103e55: 5d pop %ebp
80103e56: c3 ret
80103e57: 89 f6 mov %esi,%esi
80103e59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103e60 <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)
{
80103e60: 55 push %ebp
80103e61: 89 e5 mov %esp,%ebp
80103e63: 57 push %edi
80103e64: 56 push %esi
80103e65: 53 push %ebx
80103e66: bb c0 2d 11 80 mov $0x80112dc0,%ebx
80103e6b: 83 ec 4c sub $0x4c,%esp
80103e6e: 8d 75 e8 lea -0x18(%ebp),%esi
80103e71: eb 20 jmp 80103e93 <procdump+0x33>
80103e73: 90 nop
80103e74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p->state == SLEEPING){
getcallerpcs((uint*)p->context->ebp+2, pc);
for(i=0; i<10 && pc[i] != 0; i++)
cprintf(" %p", pc[i]);
}
cprintf("\n");
80103e78: c7 04 24 67 78 10 80 movl $0x80107867,(%esp)
80103e7f: e8 cc c7 ff ff call 80100650 <cprintf>
80103e84: 83 eb 80 sub $0xffffff80,%ebx
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103e87: 81 fb c0 4d 11 80 cmp $0x80114dc0,%ebx
80103e8d: 0f 84 8d 00 00 00 je 80103f20 <procdump+0xc0>
if(p->state == UNUSED)
80103e93: 8b 43 a0 mov -0x60(%ebx),%eax
80103e96: 85 c0 test %eax,%eax
80103e98: 74 ea je 80103e84 <procdump+0x24>
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80103e9a: 83 f8 05 cmp $0x5,%eax
state = "???";
80103e9d: ba 40 74 10 80 mov $0x80107440,%edx
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80103ea2: 77 11 ja 80103eb5 <procdump+0x55>
80103ea4: 8b 14 85 a0 74 10 80 mov -0x7fef8b60(,%eax,4),%edx
state = "???";
80103eab: b8 40 74 10 80 mov $0x80107440,%eax
80103eb0: 85 d2 test %edx,%edx
80103eb2: 0f 44 d0 cmove %eax,%edx
cprintf("%d %s %s", p->pid, state, p->name);
80103eb5: 8b 43 a4 mov -0x5c(%ebx),%eax
80103eb8: 89 5c 24 0c mov %ebx,0xc(%esp)
80103ebc: 89 54 24 08 mov %edx,0x8(%esp)
80103ec0: c7 04 24 44 74 10 80 movl $0x80107444,(%esp)
80103ec7: 89 44 24 04 mov %eax,0x4(%esp)
80103ecb: e8 80 c7 ff ff call 80100650 <cprintf>
if(p->state == SLEEPING){
80103ed0: 83 7b a0 02 cmpl $0x2,-0x60(%ebx)
80103ed4: 75 a2 jne 80103e78 <procdump+0x18>
getcallerpcs((uint*)p->context->ebp+2, pc);
80103ed6: 8d 45 c0 lea -0x40(%ebp),%eax
80103ed9: 89 44 24 04 mov %eax,0x4(%esp)
80103edd: 8b 43 b0 mov -0x50(%ebx),%eax
80103ee0: 8d 7d c0 lea -0x40(%ebp),%edi
80103ee3: 8b 40 0c mov 0xc(%eax),%eax
80103ee6: 83 c0 08 add $0x8,%eax
80103ee9: 89 04 24 mov %eax,(%esp)
80103eec: e8 6f 01 00 00 call 80104060 <getcallerpcs>
80103ef1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(i=0; i<10 && pc[i] != 0; i++)
80103ef8: 8b 17 mov (%edi),%edx
80103efa: 85 d2 test %edx,%edx
80103efc: 0f 84 76 ff ff ff je 80103e78 <procdump+0x18>
cprintf(" %p", pc[i]);
80103f02: 89 54 24 04 mov %edx,0x4(%esp)
80103f06: 83 c7 04 add $0x4,%edi
80103f09: c7 04 24 81 6e 10 80 movl $0x80106e81,(%esp)
80103f10: e8 3b c7 ff ff call 80100650 <cprintf>
for(i=0; i<10 && pc[i] != 0; i++)
80103f15: 39 f7 cmp %esi,%edi
80103f17: 75 df jne 80103ef8 <procdump+0x98>
80103f19: e9 5a ff ff ff jmp 80103e78 <procdump+0x18>
80103f1e: 66 90 xchg %ax,%ax
}
}
80103f20: 83 c4 4c add $0x4c,%esp
80103f23: 5b pop %ebx
80103f24: 5e pop %esi
80103f25: 5f pop %edi
80103f26: 5d pop %ebp
80103f27: c3 ret
80103f28: 66 90 xchg %ax,%ax
80103f2a: 66 90 xchg %ax,%ax
80103f2c: 66 90 xchg %ax,%ax
80103f2e: 66 90 xchg %ax,%ax
80103f30 <initsleeplock>:
#include "spinlock.h"
#include "sleeplock.h"
void
initsleeplock(struct sleeplock *lk, char *name)
{
80103f30: 55 push %ebp
80103f31: 89 e5 mov %esp,%ebp
80103f33: 53 push %ebx
80103f34: 83 ec 14 sub $0x14,%esp
80103f37: 8b 5d 08 mov 0x8(%ebp),%ebx
initlock(&lk->lk, "sleep lock");
80103f3a: c7 44 24 04 b8 74 10 movl $0x801074b8,0x4(%esp)
80103f41: 80
80103f42: 8d 43 04 lea 0x4(%ebx),%eax
80103f45: 89 04 24 mov %eax,(%esp)
80103f48: e8 f3 00 00 00 call 80104040 <initlock>
lk->name = name;
80103f4d: 8b 45 0c mov 0xc(%ebp),%eax
lk->locked = 0;
80103f50: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
80103f56: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
lk->name = name;
80103f5d: 89 43 38 mov %eax,0x38(%ebx)
}
80103f60: 83 c4 14 add $0x14,%esp
80103f63: 5b pop %ebx
80103f64: 5d pop %ebp
80103f65: c3 ret
80103f66: 8d 76 00 lea 0x0(%esi),%esi
80103f69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103f70 <acquiresleep>:
void
acquiresleep(struct sleeplock *lk)
{
80103f70: 55 push %ebp
80103f71: 89 e5 mov %esp,%ebp
80103f73: 56 push %esi
80103f74: 53 push %ebx
80103f75: 83 ec 10 sub $0x10,%esp
80103f78: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
80103f7b: 8d 73 04 lea 0x4(%ebx),%esi
80103f7e: 89 34 24 mov %esi,(%esp)
80103f81: e8 aa 01 00 00 call 80104130 <acquire>
while (lk->locked) {
80103f86: 8b 13 mov (%ebx),%edx
80103f88: 85 d2 test %edx,%edx
80103f8a: 74 16 je 80103fa2 <acquiresleep+0x32>
80103f8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
sleep(lk, &lk->lk);
80103f90: 89 74 24 04 mov %esi,0x4(%esp)
80103f94: 89 1c 24 mov %ebx,(%esp)
80103f97: e8 54 fc ff ff call 80103bf0 <sleep>
while (lk->locked) {
80103f9c: 8b 03 mov (%ebx),%eax
80103f9e: 85 c0 test %eax,%eax
80103fa0: 75 ee jne 80103f90 <acquiresleep+0x20>
}
lk->locked = 1;
80103fa2: c7 03 01 00 00 00 movl $0x1,(%ebx)
lk->pid = myproc()->pid;
80103fa8: e8 e3 f6 ff ff call 80103690 <myproc>
80103fad: 8b 40 10 mov 0x10(%eax),%eax
80103fb0: 89 43 3c mov %eax,0x3c(%ebx)
release(&lk->lk);
80103fb3: 89 75 08 mov %esi,0x8(%ebp)
}
80103fb6: 83 c4 10 add $0x10,%esp
80103fb9: 5b pop %ebx
80103fba: 5e pop %esi
80103fbb: 5d pop %ebp
release(&lk->lk);
80103fbc: e9 5f 02 00 00 jmp 80104220 <release>
80103fc1: eb 0d jmp 80103fd0 <releasesleep>
80103fc3: 90 nop
80103fc4: 90 nop
80103fc5: 90 nop
80103fc6: 90 nop
80103fc7: 90 nop
80103fc8: 90 nop
80103fc9: 90 nop
80103fca: 90 nop
80103fcb: 90 nop
80103fcc: 90 nop
80103fcd: 90 nop
80103fce: 90 nop
80103fcf: 90 nop
80103fd0 <releasesleep>:
void
releasesleep(struct sleeplock *lk)
{
80103fd0: 55 push %ebp
80103fd1: 89 e5 mov %esp,%ebp
80103fd3: 56 push %esi
80103fd4: 53 push %ebx
80103fd5: 83 ec 10 sub $0x10,%esp
80103fd8: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
80103fdb: 8d 73 04 lea 0x4(%ebx),%esi
80103fde: 89 34 24 mov %esi,(%esp)
80103fe1: e8 4a 01 00 00 call 80104130 <acquire>
lk->locked = 0;
80103fe6: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
80103fec: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
wakeup(lk);
80103ff3: 89 1c 24 mov %ebx,(%esp)
80103ff6: e8 85 fd ff ff call 80103d80 <wakeup>
release(&lk->lk);
80103ffb: 89 75 08 mov %esi,0x8(%ebp)
}
80103ffe: 83 c4 10 add $0x10,%esp
80104001: 5b pop %ebx
80104002: 5e pop %esi
80104003: 5d pop %ebp
release(&lk->lk);
80104004: e9 17 02 00 00 jmp 80104220 <release>
80104009: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104010 <holdingsleep>:
int
holdingsleep(struct sleeplock *lk)
{
80104010: 55 push %ebp
80104011: 89 e5 mov %esp,%ebp
80104013: 56 push %esi
80104014: 53 push %ebx
80104015: 83 ec 10 sub $0x10,%esp
80104018: 8b 5d 08 mov 0x8(%ebp),%ebx
int r;
acquire(&lk->lk);
8010401b: 8d 73 04 lea 0x4(%ebx),%esi
8010401e: 89 34 24 mov %esi,(%esp)
80104021: e8 0a 01 00 00 call 80104130 <acquire>
r = lk->locked;
80104026: 8b 1b mov (%ebx),%ebx
release(&lk->lk);
80104028: 89 34 24 mov %esi,(%esp)
8010402b: e8 f0 01 00 00 call 80104220 <release>
return r;
}
80104030: 83 c4 10 add $0x10,%esp
80104033: 89 d8 mov %ebx,%eax
80104035: 5b pop %ebx
80104036: 5e pop %esi
80104037: 5d pop %ebp
80104038: c3 ret
80104039: 66 90 xchg %ax,%ax
8010403b: 66 90 xchg %ax,%ax
8010403d: 66 90 xchg %ax,%ax
8010403f: 90 nop
80104040 <initlock>:
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
80104040: 55 push %ebp
80104041: 89 e5 mov %esp,%ebp
80104043: 8b 45 08 mov 0x8(%ebp),%eax
lk->name = name;
80104046: 8b 55 0c mov 0xc(%ebp),%edx
lk->locked = 0;
80104049: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->name = name;
8010404f: 89 50 04 mov %edx,0x4(%eax)
lk->cpu = 0;
80104052: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
80104059: 5d pop %ebp
8010405a: c3 ret
8010405b: 90 nop
8010405c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104060 <getcallerpcs>:
}
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104060: 55 push %ebp
80104061: 89 e5 mov %esp,%ebp
uint *ebp;
int i;
ebp = (uint*)v - 2;
80104063: 8b 45 08 mov 0x8(%ebp),%eax
{
80104066: 8b 4d 0c mov 0xc(%ebp),%ecx
80104069: 53 push %ebx
ebp = (uint*)v - 2;
8010406a: 8d 50 f8 lea -0x8(%eax),%edx
for(i = 0; i < 10; i++){
8010406d: 31 c0 xor %eax,%eax
8010406f: 90 nop
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104070: 8d 9a 00 00 00 80 lea -0x80000000(%edx),%ebx
80104076: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx
8010407c: 77 1a ja 80104098 <getcallerpcs+0x38>
break;
pcs[i] = ebp[1]; // saved %eip
8010407e: 8b 5a 04 mov 0x4(%edx),%ebx
80104081: 89 1c 81 mov %ebx,(%ecx,%eax,4)
for(i = 0; i < 10; i++){
80104084: 83 c0 01 add $0x1,%eax
ebp = (uint*)ebp[0]; // saved %ebp
80104087: 8b 12 mov (%edx),%edx
for(i = 0; i < 10; i++){
80104089: 83 f8 0a cmp $0xa,%eax
8010408c: 75 e2 jne 80104070 <getcallerpcs+0x10>
}
for(; i < 10; i++)
pcs[i] = 0;
}
8010408e: 5b pop %ebx
8010408f: 5d pop %ebp
80104090: c3 ret
80104091: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
pcs[i] = 0;
80104098: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
for(; i < 10; i++)
8010409f: 83 c0 01 add $0x1,%eax
801040a2: 83 f8 0a cmp $0xa,%eax
801040a5: 74 e7 je 8010408e <getcallerpcs+0x2e>
pcs[i] = 0;
801040a7: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
for(; i < 10; i++)
801040ae: 83 c0 01 add $0x1,%eax
801040b1: 83 f8 0a cmp $0xa,%eax
801040b4: 75 e2 jne 80104098 <getcallerpcs+0x38>
801040b6: eb d6 jmp 8010408e <getcallerpcs+0x2e>
801040b8: 90 nop
801040b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801040c0 <holding>:
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
801040c0: 55 push %ebp
return lock->locked && lock->cpu == mycpu();
801040c1: 31 c0 xor %eax,%eax
{
801040c3: 89 e5 mov %esp,%ebp
801040c5: 53 push %ebx
801040c6: 83 ec 04 sub $0x4,%esp
801040c9: 8b 55 08 mov 0x8(%ebp),%edx
return lock->locked && lock->cpu == mycpu();
801040cc: 8b 0a mov (%edx),%ecx
801040ce: 85 c9 test %ecx,%ecx
801040d0: 74 10 je 801040e2 <holding+0x22>
801040d2: 8b 5a 08 mov 0x8(%edx),%ebx
801040d5: e8 16 f5 ff ff call 801035f0 <mycpu>
801040da: 39 c3 cmp %eax,%ebx
801040dc: 0f 94 c0 sete %al
801040df: 0f b6 c0 movzbl %al,%eax
}
801040e2: 83 c4 04 add $0x4,%esp
801040e5: 5b pop %ebx
801040e6: 5d pop %ebp
801040e7: c3 ret
801040e8: 90 nop
801040e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801040f0 <pushcli>:
// it takes two popcli to undo two pushcli. Also, if interrupts
// are off, then pushcli, popcli leaves them off.
void
pushcli(void)
{
801040f0: 55 push %ebp
801040f1: 89 e5 mov %esp,%ebp
801040f3: 53 push %ebx
801040f4: 83 ec 04 sub $0x4,%esp
801040f7: 9c pushf
801040f8: 5b pop %ebx
asm volatile("cli");
801040f9: fa cli
int eflags;
eflags = readeflags();
cli();
if(mycpu()->ncli == 0)
801040fa: e8 f1 f4 ff ff call 801035f0 <mycpu>
801040ff: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax
80104105: 85 c0 test %eax,%eax
80104107: 75 11 jne 8010411a <pushcli+0x2a>
mycpu()->intena = eflags & FL_IF;
80104109: e8 e2 f4 ff ff call 801035f0 <mycpu>
8010410e: 81 e3 00 02 00 00 and $0x200,%ebx
80104114: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax)
mycpu()->ncli += 1;
8010411a: e8 d1 f4 ff ff call 801035f0 <mycpu>
8010411f: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax)
}
80104126: 83 c4 04 add $0x4,%esp
80104129: 5b pop %ebx
8010412a: 5d pop %ebp
8010412b: c3 ret
8010412c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104130 <acquire>:
{
80104130: 55 push %ebp
80104131: 89 e5 mov %esp,%ebp
80104133: 53 push %ebx
80104134: 83 ec 14 sub $0x14,%esp
pushcli(); // disable interrupts to avoid deadlock.
80104137: e8 b4 ff ff ff call 801040f0 <pushcli>
if(holding(lk))
8010413c: 8b 55 08 mov 0x8(%ebp),%edx
return lock->locked && lock->cpu == mycpu();
8010413f: 8b 02 mov (%edx),%eax
80104141: 85 c0 test %eax,%eax
80104143: 75 43 jne 80104188 <acquire+0x58>
asm volatile("lock; xchgl %0, %1" :
80104145: b9 01 00 00 00 mov $0x1,%ecx
8010414a: eb 07 jmp 80104153 <acquire+0x23>
8010414c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104150: 8b 55 08 mov 0x8(%ebp),%edx
80104153: 89 c8 mov %ecx,%eax
80104155: f0 87 02 lock xchg %eax,(%edx)
while(xchg(&lk->locked, 1) != 0)
80104158: 85 c0 test %eax,%eax
8010415a: 75 f4 jne 80104150 <acquire+0x20>
__sync_synchronize();
8010415c: 0f ae f0 mfence
lk->cpu = mycpu();
8010415f: 8b 5d 08 mov 0x8(%ebp),%ebx
80104162: e8 89 f4 ff ff call 801035f0 <mycpu>
80104167: 89 43 08 mov %eax,0x8(%ebx)
getcallerpcs(&lk, lk->pcs);
8010416a: 8b 45 08 mov 0x8(%ebp),%eax
8010416d: 83 c0 0c add $0xc,%eax
80104170: 89 44 24 04 mov %eax,0x4(%esp)
80104174: 8d 45 08 lea 0x8(%ebp),%eax
80104177: 89 04 24 mov %eax,(%esp)
8010417a: e8 e1 fe ff ff call 80104060 <getcallerpcs>
}
8010417f: 83 c4 14 add $0x14,%esp
80104182: 5b pop %ebx
80104183: 5d pop %ebp
80104184: c3 ret
80104185: 8d 76 00 lea 0x0(%esi),%esi
return lock->locked && lock->cpu == mycpu();
80104188: 8b 5a 08 mov 0x8(%edx),%ebx
8010418b: e8 60 f4 ff ff call 801035f0 <mycpu>
if(holding(lk))
80104190: 39 c3 cmp %eax,%ebx
80104192: 74 05 je 80104199 <acquire+0x69>
80104194: 8b 55 08 mov 0x8(%ebp),%edx
80104197: eb ac jmp 80104145 <acquire+0x15>
panic("acquire");
80104199: c7 04 24 c3 74 10 80 movl $0x801074c3,(%esp)
801041a0: e8 bb c1 ff ff call 80100360 <panic>
801041a5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801041a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801041b0 <popcli>:
void
popcli(void)
{
801041b0: 55 push %ebp
801041b1: 89 e5 mov %esp,%ebp
801041b3: 83 ec 18 sub $0x18,%esp
asm volatile("pushfl; popl %0" : "=r" (eflags));
801041b6: 9c pushf
801041b7: 58 pop %eax
if(readeflags()&FL_IF)
801041b8: f6 c4 02 test $0x2,%ah
801041bb: 75 49 jne 80104206 <popcli+0x56>
panic("popcli - interruptible");
if(--mycpu()->ncli < 0)
801041bd: e8 2e f4 ff ff call 801035f0 <mycpu>
801041c2: 8b 88 a4 00 00 00 mov 0xa4(%eax),%ecx
801041c8: 8d 51 ff lea -0x1(%ecx),%edx
801041cb: 85 d2 test %edx,%edx
801041cd: 89 90 a4 00 00 00 mov %edx,0xa4(%eax)
801041d3: 78 25 js 801041fa <popcli+0x4a>
panic("popcli");
if(mycpu()->ncli == 0 && mycpu()->intena)
801041d5: e8 16 f4 ff ff call 801035f0 <mycpu>
801041da: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx
801041e0: 85 d2 test %edx,%edx
801041e2: 74 04 je 801041e8 <popcli+0x38>
sti();
}
801041e4: c9 leave
801041e5: c3 ret
801041e6: 66 90 xchg %ax,%ax
if(mycpu()->ncli == 0 && mycpu()->intena)
801041e8: e8 03 f4 ff ff call 801035f0 <mycpu>
801041ed: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax
801041f3: 85 c0 test %eax,%eax
801041f5: 74 ed je 801041e4 <popcli+0x34>
asm volatile("sti");
801041f7: fb sti
}
801041f8: c9 leave
801041f9: c3 ret
panic("popcli");
801041fa: c7 04 24 e2 74 10 80 movl $0x801074e2,(%esp)
80104201: e8 5a c1 ff ff call 80100360 <panic>
panic("popcli - interruptible");
80104206: c7 04 24 cb 74 10 80 movl $0x801074cb,(%esp)
8010420d: e8 4e c1 ff ff call 80100360 <panic>
80104212: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104220 <release>:
{
80104220: 55 push %ebp
80104221: 89 e5 mov %esp,%ebp
80104223: 56 push %esi
80104224: 53 push %ebx
80104225: 83 ec 10 sub $0x10,%esp
80104228: 8b 5d 08 mov 0x8(%ebp),%ebx
return lock->locked && lock->cpu == mycpu();
8010422b: 8b 03 mov (%ebx),%eax
8010422d: 85 c0 test %eax,%eax
8010422f: 75 0f jne 80104240 <release+0x20>
panic("release");
80104231: c7 04 24 e9 74 10 80 movl $0x801074e9,(%esp)
80104238: e8 23 c1 ff ff call 80100360 <panic>
8010423d: 8d 76 00 lea 0x0(%esi),%esi
return lock->locked && lock->cpu == mycpu();
80104240: 8b 73 08 mov 0x8(%ebx),%esi
80104243: e8 a8 f3 ff ff call 801035f0 <mycpu>
if(!holding(lk))
80104248: 39 c6 cmp %eax,%esi
8010424a: 75 e5 jne 80104231 <release+0x11>
lk->pcs[0] = 0;
8010424c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
lk->cpu = 0;
80104253: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
__sync_synchronize();
8010425a: 0f ae f0 mfence
asm volatile("movl $0, %0" : "+m" (lk->locked) : );
8010425d: c7 03 00 00 00 00 movl $0x0,(%ebx)
}
80104263: 83 c4 10 add $0x10,%esp
80104266: 5b pop %ebx
80104267: 5e pop %esi
80104268: 5d pop %ebp
popcli();
80104269: e9 42 ff ff ff jmp 801041b0 <popcli>
8010426e: 66 90 xchg %ax,%ax
80104270 <memset>:
#include "types.h"
#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
80104270: 55 push %ebp
80104271: 89 e5 mov %esp,%ebp
80104273: 8b 55 08 mov 0x8(%ebp),%edx
80104276: 57 push %edi
80104277: 8b 4d 10 mov 0x10(%ebp),%ecx
8010427a: 53 push %ebx
if ((int)dst%4 == 0 && n%4 == 0){
8010427b: f6 c2 03 test $0x3,%dl
8010427e: 75 05 jne 80104285 <memset+0x15>
80104280: f6 c1 03 test $0x3,%cl
80104283: 74 13 je 80104298 <memset+0x28>
asm volatile("cld; rep stosb" :
80104285: 89 d7 mov %edx,%edi
80104287: 8b 45 0c mov 0xc(%ebp),%eax
8010428a: fc cld
8010428b: f3 aa rep stos %al,%es:(%edi)
c &= 0xFF;
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
} else
stosb(dst, c, n);
return dst;
}
8010428d: 5b pop %ebx
8010428e: 89 d0 mov %edx,%eax
80104290: 5f pop %edi
80104291: 5d pop %ebp
80104292: c3 ret
80104293: 90 nop
80104294: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
c &= 0xFF;
80104298: 0f b6 7d 0c movzbl 0xc(%ebp),%edi
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
8010429c: c1 e9 02 shr $0x2,%ecx
8010429f: 89 f8 mov %edi,%eax
801042a1: 89 fb mov %edi,%ebx
801042a3: c1 e0 18 shl $0x18,%eax
801042a6: c1 e3 10 shl $0x10,%ebx
801042a9: 09 d8 or %ebx,%eax
801042ab: 09 f8 or %edi,%eax
801042ad: c1 e7 08 shl $0x8,%edi
801042b0: 09 f8 or %edi,%eax
asm volatile("cld; rep stosl" :
801042b2: 89 d7 mov %edx,%edi
801042b4: fc cld
801042b5: f3 ab rep stos %eax,%es:(%edi)
}
801042b7: 5b pop %ebx
801042b8: 89 d0 mov %edx,%eax
801042ba: 5f pop %edi
801042bb: 5d pop %ebp
801042bc: c3 ret
801042bd: 8d 76 00 lea 0x0(%esi),%esi
801042c0 <memcmp>:
int
memcmp(const void *v1, const void *v2, uint n)
{
801042c0: 55 push %ebp
801042c1: 89 e5 mov %esp,%ebp
801042c3: 8b 45 10 mov 0x10(%ebp),%eax
801042c6: 57 push %edi
801042c7: 56 push %esi
801042c8: 8b 75 0c mov 0xc(%ebp),%esi
801042cb: 53 push %ebx
801042cc: 8b 5d 08 mov 0x8(%ebp),%ebx
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
801042cf: 85 c0 test %eax,%eax
801042d1: 8d 78 ff lea -0x1(%eax),%edi
801042d4: 74 26 je 801042fc <memcmp+0x3c>
if(*s1 != *s2)
801042d6: 0f b6 03 movzbl (%ebx),%eax
801042d9: 31 d2 xor %edx,%edx
801042db: 0f b6 0e movzbl (%esi),%ecx
801042de: 38 c8 cmp %cl,%al
801042e0: 74 16 je 801042f8 <memcmp+0x38>
801042e2: eb 24 jmp 80104308 <memcmp+0x48>
801042e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801042e8: 0f b6 44 13 01 movzbl 0x1(%ebx,%edx,1),%eax
801042ed: 83 c2 01 add $0x1,%edx
801042f0: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
801042f4: 38 c8 cmp %cl,%al
801042f6: 75 10 jne 80104308 <memcmp+0x48>
while(n-- > 0){
801042f8: 39 fa cmp %edi,%edx
801042fa: 75 ec jne 801042e8 <memcmp+0x28>
return *s1 - *s2;
s1++, s2++;
}
return 0;
}
801042fc: 5b pop %ebx
return 0;
801042fd: 31 c0 xor %eax,%eax
}
801042ff: 5e pop %esi
80104300: 5f pop %edi
80104301: 5d pop %ebp
80104302: c3 ret
80104303: 90 nop
80104304: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104308: 5b pop %ebx
return *s1 - *s2;
80104309: 29 c8 sub %ecx,%eax
}
8010430b: 5e pop %esi
8010430c: 5f pop %edi
8010430d: 5d pop %ebp
8010430e: c3 ret
8010430f: 90 nop
80104310 <memmove>:
void*
memmove(void *dst, const void *src, uint n)
{
80104310: 55 push %ebp
80104311: 89 e5 mov %esp,%ebp
80104313: 57 push %edi
80104314: 8b 45 08 mov 0x8(%ebp),%eax
80104317: 56 push %esi
80104318: 8b 75 0c mov 0xc(%ebp),%esi
8010431b: 53 push %ebx
8010431c: 8b 5d 10 mov 0x10(%ebp),%ebx
const char *s;
char *d;
s = src;
d = dst;
if(s < d && s + n > d){
8010431f: 39 c6 cmp %eax,%esi
80104321: 73 35 jae 80104358 <memmove+0x48>
80104323: 8d 0c 1e lea (%esi,%ebx,1),%ecx
80104326: 39 c8 cmp %ecx,%eax
80104328: 73 2e jae 80104358 <memmove+0x48>
s += n;
d += n;
while(n-- > 0)
8010432a: 85 db test %ebx,%ebx
d += n;
8010432c: 8d 3c 18 lea (%eax,%ebx,1),%edi
while(n-- > 0)
8010432f: 8d 53 ff lea -0x1(%ebx),%edx
80104332: 74 1b je 8010434f <memmove+0x3f>
80104334: f7 db neg %ebx
80104336: 8d 34 19 lea (%ecx,%ebx,1),%esi
80104339: 01 fb add %edi,%ebx
8010433b: 90 nop
8010433c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*--d = *--s;
80104340: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
80104344: 88 0c 13 mov %cl,(%ebx,%edx,1)
while(n-- > 0)
80104347: 83 ea 01 sub $0x1,%edx
8010434a: 83 fa ff cmp $0xffffffff,%edx
8010434d: 75 f1 jne 80104340 <memmove+0x30>
} else
while(n-- > 0)
*d++ = *s++;
return dst;
}
8010434f: 5b pop %ebx
80104350: 5e pop %esi
80104351: 5f pop %edi
80104352: 5d pop %ebp
80104353: c3 ret
80104354: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(n-- > 0)
80104358: 31 d2 xor %edx,%edx
8010435a: 85 db test %ebx,%ebx
8010435c: 74 f1 je 8010434f <memmove+0x3f>
8010435e: 66 90 xchg %ax,%ax
*d++ = *s++;
80104360: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
80104364: 88 0c 10 mov %cl,(%eax,%edx,1)
80104367: 83 c2 01 add $0x1,%edx
while(n-- > 0)
8010436a: 39 da cmp %ebx,%edx
8010436c: 75 f2 jne 80104360 <memmove+0x50>
}
8010436e: 5b pop %ebx
8010436f: 5e pop %esi
80104370: 5f pop %edi
80104371: 5d pop %ebp
80104372: c3 ret
80104373: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104379: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104380 <memcpy>:
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
80104380: 55 push %ebp
80104381: 89 e5 mov %esp,%ebp
return memmove(dst, src, n);
}
80104383: 5d pop %ebp
return memmove(dst, src, n);
80104384: eb 8a jmp 80104310 <memmove>
80104386: 8d 76 00 lea 0x0(%esi),%esi
80104389: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104390 <strncmp>:
int
strncmp(const char *p, const char *q, uint n)
{
80104390: 55 push %ebp
80104391: 89 e5 mov %esp,%ebp
80104393: 56 push %esi
80104394: 8b 75 10 mov 0x10(%ebp),%esi
80104397: 53 push %ebx
80104398: 8b 4d 08 mov 0x8(%ebp),%ecx
8010439b: 8b 5d 0c mov 0xc(%ebp),%ebx
while(n > 0 && *p && *p == *q)
8010439e: 85 f6 test %esi,%esi
801043a0: 74 30 je 801043d2 <strncmp+0x42>
801043a2: 0f b6 01 movzbl (%ecx),%eax
801043a5: 84 c0 test %al,%al
801043a7: 74 2f je 801043d8 <strncmp+0x48>
801043a9: 0f b6 13 movzbl (%ebx),%edx
801043ac: 38 d0 cmp %dl,%al
801043ae: 75 46 jne 801043f6 <strncmp+0x66>
801043b0: 8d 51 01 lea 0x1(%ecx),%edx
801043b3: 01 ce add %ecx,%esi
801043b5: eb 14 jmp 801043cb <strncmp+0x3b>
801043b7: 90 nop
801043b8: 0f b6 02 movzbl (%edx),%eax
801043bb: 84 c0 test %al,%al
801043bd: 74 31 je 801043f0 <strncmp+0x60>
801043bf: 0f b6 19 movzbl (%ecx),%ebx
801043c2: 83 c2 01 add $0x1,%edx
801043c5: 38 d8 cmp %bl,%al
801043c7: 75 17 jne 801043e0 <strncmp+0x50>
n--, p++, q++;
801043c9: 89 cb mov %ecx,%ebx
while(n > 0 && *p && *p == *q)
801043cb: 39 f2 cmp %esi,%edx
n--, p++, q++;
801043cd: 8d 4b 01 lea 0x1(%ebx),%ecx
while(n > 0 && *p && *p == *q)
801043d0: 75 e6 jne 801043b8 <strncmp+0x28>
if(n == 0)
return 0;
return (uchar)*p - (uchar)*q;
}
801043d2: 5b pop %ebx
return 0;
801043d3: 31 c0 xor %eax,%eax
}
801043d5: 5e pop %esi
801043d6: 5d pop %ebp
801043d7: c3 ret
801043d8: 0f b6 1b movzbl (%ebx),%ebx
while(n > 0 && *p && *p == *q)
801043db: 31 c0 xor %eax,%eax
801043dd: 8d 76 00 lea 0x0(%esi),%esi
return (uchar)*p - (uchar)*q;
801043e0: 0f b6 d3 movzbl %bl,%edx
801043e3: 29 d0 sub %edx,%eax
}
801043e5: 5b pop %ebx
801043e6: 5e pop %esi
801043e7: 5d pop %ebp
801043e8: c3 ret
801043e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801043f0: 0f b6 5b 01 movzbl 0x1(%ebx),%ebx
801043f4: eb ea jmp 801043e0 <strncmp+0x50>
while(n > 0 && *p && *p == *q)
801043f6: 89 d3 mov %edx,%ebx
801043f8: eb e6 jmp 801043e0 <strncmp+0x50>
801043fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104400 <strncpy>:
char*
strncpy(char *s, const char *t, int n)
{
80104400: 55 push %ebp
80104401: 89 e5 mov %esp,%ebp
80104403: 8b 45 08 mov 0x8(%ebp),%eax
80104406: 56 push %esi
80104407: 8b 4d 10 mov 0x10(%ebp),%ecx
8010440a: 53 push %ebx
8010440b: 8b 5d 0c mov 0xc(%ebp),%ebx
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
8010440e: 89 c2 mov %eax,%edx
80104410: eb 19 jmp 8010442b <strncpy+0x2b>
80104412: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104418: 83 c3 01 add $0x1,%ebx
8010441b: 0f b6 4b ff movzbl -0x1(%ebx),%ecx
8010441f: 83 c2 01 add $0x1,%edx
80104422: 84 c9 test %cl,%cl
80104424: 88 4a ff mov %cl,-0x1(%edx)
80104427: 74 09 je 80104432 <strncpy+0x32>
80104429: 89 f1 mov %esi,%ecx
8010442b: 85 c9 test %ecx,%ecx
8010442d: 8d 71 ff lea -0x1(%ecx),%esi
80104430: 7f e6 jg 80104418 <strncpy+0x18>
;
while(n-- > 0)
80104432: 31 c9 xor %ecx,%ecx
80104434: 85 f6 test %esi,%esi
80104436: 7e 0f jle 80104447 <strncpy+0x47>
*s++ = 0;
80104438: c6 04 0a 00 movb $0x0,(%edx,%ecx,1)
8010443c: 89 f3 mov %esi,%ebx
8010443e: 83 c1 01 add $0x1,%ecx
80104441: 29 cb sub %ecx,%ebx
while(n-- > 0)
80104443: 85 db test %ebx,%ebx
80104445: 7f f1 jg 80104438 <strncpy+0x38>
return os;
}
80104447: 5b pop %ebx
80104448: 5e pop %esi
80104449: 5d pop %ebp
8010444a: c3 ret
8010444b: 90 nop
8010444c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104450 <safestrcpy>:
// Like strncpy but guaranteed to NUL-terminate.
char*
safestrcpy(char *s, const char *t, int n)
{
80104450: 55 push %ebp
80104451: 89 e5 mov %esp,%ebp
80104453: 8b 4d 10 mov 0x10(%ebp),%ecx
80104456: 56 push %esi
80104457: 8b 45 08 mov 0x8(%ebp),%eax
8010445a: 53 push %ebx
8010445b: 8b 55 0c mov 0xc(%ebp),%edx
char *os;
os = s;
if(n <= 0)
8010445e: 85 c9 test %ecx,%ecx
80104460: 7e 26 jle 80104488 <safestrcpy+0x38>
80104462: 8d 74 0a ff lea -0x1(%edx,%ecx,1),%esi
80104466: 89 c1 mov %eax,%ecx
80104468: eb 17 jmp 80104481 <safestrcpy+0x31>
8010446a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return os;
while(--n > 0 && (*s++ = *t++) != 0)
80104470: 83 c2 01 add $0x1,%edx
80104473: 0f b6 5a ff movzbl -0x1(%edx),%ebx
80104477: 83 c1 01 add $0x1,%ecx
8010447a: 84 db test %bl,%bl
8010447c: 88 59 ff mov %bl,-0x1(%ecx)
8010447f: 74 04 je 80104485 <safestrcpy+0x35>
80104481: 39 f2 cmp %esi,%edx
80104483: 75 eb jne 80104470 <safestrcpy+0x20>
;
*s = 0;
80104485: c6 01 00 movb $0x0,(%ecx)
return os;
}
80104488: 5b pop %ebx
80104489: 5e pop %esi
8010448a: 5d pop %ebp
8010448b: c3 ret
8010448c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104490 <strlen>:
int
strlen(const char *s)
{
80104490: 55 push %ebp
int n;
for(n = 0; s[n]; n++)
80104491: 31 c0 xor %eax,%eax
{
80104493: 89 e5 mov %esp,%ebp
80104495: 8b 55 08 mov 0x8(%ebp),%edx
for(n = 0; s[n]; n++)
80104498: 80 3a 00 cmpb $0x0,(%edx)
8010449b: 74 0c je 801044a9 <strlen+0x19>
8010449d: 8d 76 00 lea 0x0(%esi),%esi
801044a0: 83 c0 01 add $0x1,%eax
801044a3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
801044a7: 75 f7 jne 801044a0 <strlen+0x10>
;
return n;
}
801044a9: 5d pop %ebp
801044aa: c3 ret
801044ab <swtch>:
# Save current register context in old
# and then load register context from new.
.globl swtch
swtch:
movl 4(%esp), %eax
801044ab: 8b 44 24 04 mov 0x4(%esp),%eax
movl 8(%esp), %edx
801044af: 8b 54 24 08 mov 0x8(%esp),%edx
# Save old callee-save registers
pushl %ebp
801044b3: 55 push %ebp
pushl %ebx
801044b4: 53 push %ebx
pushl %esi
801044b5: 56 push %esi
pushl %edi
801044b6: 57 push %edi
# Switch stacks
movl %esp, (%eax)
801044b7: 89 20 mov %esp,(%eax)
movl %edx, %esp
801044b9: 89 d4 mov %edx,%esp
# Load new callee-save registers
popl %edi
801044bb: 5f pop %edi
popl %esi
801044bc: 5e pop %esi
popl %ebx
801044bd: 5b pop %ebx
popl %ebp
801044be: 5d pop %ebp
ret
801044bf: c3 ret
801044c0 <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)
{
801044c0: 55 push %ebp
801044c1: 89 e5 mov %esp,%ebp
801044c3: 8b 45 08 mov 0x8(%ebp),%eax
//struct proc *curproc = myproc();
if(addr >= STACKTOP || addr+4 > STACKTOP) //LAB3 changes
801044c6: 3d f8 ff ff 7f cmp $0x7ffffff8,%eax
801044cb: 77 0b ja 801044d8 <fetchint+0x18>
return -1;
*ip = *(int*)(addr);
801044cd: 8b 10 mov (%eax),%edx
801044cf: 8b 45 0c mov 0xc(%ebp),%eax
801044d2: 89 10 mov %edx,(%eax)
return 0;
801044d4: 31 c0 xor %eax,%eax
}
801044d6: 5d pop %ebp
801044d7: c3 ret
return -1;
801044d8: b8 ff ff ff ff mov $0xffffffff,%eax
}
801044dd: 5d pop %ebp
801044de: c3 ret
801044df: 90 nop
801044e0 <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)
{
801044e0: 55 push %ebp
801044e1: 89 e5 mov %esp,%ebp
801044e3: 53 push %ebx
801044e4: 83 ec 04 sub $0x4,%esp
801044e7: 8b 5d 08 mov 0x8(%ebp),%ebx
char *s, *ep;
struct proc *curproc = myproc();
801044ea: e8 a1 f1 ff ff call 80103690 <myproc>
if(addr >= STACKTOP) //LAB 3 changes
801044ef: 81 fb fb ff ff 7f cmp $0x7ffffffb,%ebx
801044f5: 77 25 ja 8010451c <fetchstr+0x3c>
return -1;
*pp = (char*)addr;
801044f7: 8b 4d 0c mov 0xc(%ebp),%ecx
801044fa: 89 da mov %ebx,%edx
801044fc: 89 19 mov %ebx,(%ecx)
ep = (char*)curproc->sz; //LAB 3 changes
801044fe: 8b 00 mov (%eax),%eax
for(s = *pp; s < ep; s++){
80104500: 39 c3 cmp %eax,%ebx
80104502: 73 18 jae 8010451c <fetchstr+0x3c>
if(*s == 0)
80104504: 80 3b 00 cmpb $0x0,(%ebx)
80104507: 75 0c jne 80104515 <fetchstr+0x35>
80104509: eb 1d jmp 80104528 <fetchstr+0x48>
8010450b: 90 nop
8010450c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104510: 80 3a 00 cmpb $0x0,(%edx)
80104513: 74 13 je 80104528 <fetchstr+0x48>
for(s = *pp; s < ep; s++){
80104515: 83 c2 01 add $0x1,%edx
80104518: 39 d0 cmp %edx,%eax
8010451a: 77 f4 ja 80104510 <fetchstr+0x30>
return s - *pp;
}
return -1;
}
8010451c: 83 c4 04 add $0x4,%esp
return -1;
8010451f: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104524: 5b pop %ebx
80104525: 5d pop %ebp
80104526: c3 ret
80104527: 90 nop
80104528: 83 c4 04 add $0x4,%esp
return s - *pp;
8010452b: 89 d0 mov %edx,%eax
8010452d: 29 d8 sub %ebx,%eax
}
8010452f: 5b pop %ebx
80104530: 5d pop %ebp
80104531: c3 ret
80104532: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104539: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104540 <argint>:
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
80104540: 55 push %ebp
80104541: 89 e5 mov %esp,%ebp
80104543: 83 ec 08 sub $0x8,%esp
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
80104546: e8 45 f1 ff ff call 80103690 <myproc>
8010454b: 8b 55 08 mov 0x8(%ebp),%edx
8010454e: 8b 40 18 mov 0x18(%eax),%eax
80104551: 8b 40 44 mov 0x44(%eax),%eax
80104554: 8d 44 90 04 lea 0x4(%eax,%edx,4),%eax
if(addr >= STACKTOP || addr+4 > STACKTOP) //LAB3 changes
80104558: 3d f8 ff ff 7f cmp $0x7ffffff8,%eax
8010455d: 77 11 ja 80104570 <argint+0x30>
*ip = *(int*)(addr);
8010455f: 8b 10 mov (%eax),%edx
80104561: 8b 45 0c mov 0xc(%ebp),%eax
80104564: 89 10 mov %edx,(%eax)
return 0;
80104566: 31 c0 xor %eax,%eax
}
80104568: c9 leave
80104569: c3 ret
8010456a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80104570: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104575: c9 leave
80104576: c3 ret
80104577: 89 f6 mov %esi,%esi
80104579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104580 <argptr>:
// Fetch the nth word-sized system call argument as a pointer
// to a block of memory of size bytes. Check that the pointer
// lies within the process address space.
int
argptr(int n, char **pp, int size)
{
80104580: 55 push %ebp
80104581: 89 e5 mov %esp,%ebp
80104583: 53 push %ebx
80104584: 83 ec 24 sub $0x24,%esp
80104587: 8b 5d 10 mov 0x10(%ebp),%ebx
int i;
//struct proc *curproc = myproc();
if(argint(n, &i) < 0)
8010458a: 8d 45 f4 lea -0xc(%ebp),%eax
8010458d: 89 44 24 04 mov %eax,0x4(%esp)
80104591: 8b 45 08 mov 0x8(%ebp),%eax
80104594: 89 04 24 mov %eax,(%esp)
80104597: e8 a4 ff ff ff call 80104540 <argint>
8010459c: 85 c0 test %eax,%eax
8010459e: 78 28 js 801045c8 <argptr+0x48>
return -1;
if(size < 0 || (uint)i >= STACKTOP || (uint)i+size > STACKTOP) //lab 3 changes
801045a0: 85 db test %ebx,%ebx
801045a2: 78 24 js 801045c8 <argptr+0x48>
801045a4: 8b 45 f4 mov -0xc(%ebp),%eax
801045a7: 3d fb ff ff 7f cmp $0x7ffffffb,%eax
801045ac: 77 1a ja 801045c8 <argptr+0x48>
801045ae: 01 c3 add %eax,%ebx
801045b0: 81 fb fc ff ff 7f cmp $0x7ffffffc,%ebx
801045b6: 77 10 ja 801045c8 <argptr+0x48>
return -1;
*pp = (char*)i;
801045b8: 8b 55 0c mov 0xc(%ebp),%edx
801045bb: 89 02 mov %eax,(%edx)
return 0;
}
801045bd: 83 c4 24 add $0x24,%esp
return 0;
801045c0: 31 c0 xor %eax,%eax
}
801045c2: 5b pop %ebx
801045c3: 5d pop %ebp
801045c4: c3 ret
801045c5: 8d 76 00 lea 0x0(%esi),%esi
801045c8: 83 c4 24 add $0x24,%esp
return -1;
801045cb: b8 ff ff ff ff mov $0xffffffff,%eax
}
801045d0: 5b pop %ebx
801045d1: 5d pop %ebp
801045d2: c3 ret
801045d3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801045d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801045e0 <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)
{
801045e0: 55 push %ebp
801045e1: 89 e5 mov %esp,%ebp
801045e3: 83 ec 28 sub $0x28,%esp
int addr;
if(argint(n, &addr) < 0)
801045e6: 8d 45 f4 lea -0xc(%ebp),%eax
801045e9: 89 44 24 04 mov %eax,0x4(%esp)
801045ed: 8b 45 08 mov 0x8(%ebp),%eax
801045f0: 89 04 24 mov %eax,(%esp)
801045f3: e8 48 ff ff ff call 80104540 <argint>
801045f8: 85 c0 test %eax,%eax
801045fa: 78 14 js 80104610 <argstr+0x30>
return -1;
return fetchstr(addr, pp);
801045fc: 8b 45 0c mov 0xc(%ebp),%eax
801045ff: 89 44 24 04 mov %eax,0x4(%esp)
80104603: 8b 45 f4 mov -0xc(%ebp),%eax
80104606: 89 04 24 mov %eax,(%esp)
80104609: e8 d2 fe ff ff call 801044e0 <fetchstr>
}
8010460e: c9 leave
8010460f: c3 ret
return -1;
80104610: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104615: c9 leave
80104616: c3 ret
80104617: 89 f6 mov %esi,%esi
80104619: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104620 <syscall>:
[SYS_close] sys_close,
};
void
syscall(void)
{
80104620: 55 push %ebp
80104621: 89 e5 mov %esp,%ebp
80104623: 56 push %esi
80104624: 53 push %ebx
80104625: 83 ec 10 sub $0x10,%esp
int num;
struct proc *curproc = myproc();
80104628: e8 63 f0 ff ff call 80103690 <myproc>
num = curproc->tf->eax;
8010462d: 8b 70 18 mov 0x18(%eax),%esi
struct proc *curproc = myproc();
80104630: 89 c3 mov %eax,%ebx
num = curproc->tf->eax;
80104632: 8b 46 1c mov 0x1c(%esi),%eax
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
80104635: 8d 50 ff lea -0x1(%eax),%edx
80104638: 83 fa 14 cmp $0x14,%edx
8010463b: 77 1b ja 80104658 <syscall+0x38>
8010463d: 8b 14 85 20 75 10 80 mov -0x7fef8ae0(,%eax,4),%edx
80104644: 85 d2 test %edx,%edx
80104646: 74 10 je 80104658 <syscall+0x38>
curproc->tf->eax = syscalls[num]();
80104648: ff d2 call *%edx
8010464a: 89 46 1c mov %eax,0x1c(%esi)
} else {
cprintf("%d %s: unknown sys call %d\n",
curproc->pid, curproc->name, num);
curproc->tf->eax = -1;
}
}
8010464d: 83 c4 10 add $0x10,%esp
80104650: 5b pop %ebx
80104651: 5e pop %esi
80104652: 5d pop %ebp
80104653: c3 ret
80104654: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cprintf("%d %s: unknown sys call %d\n",
80104658: 89 44 24 0c mov %eax,0xc(%esp)
curproc->pid, curproc->name, num);
8010465c: 8d 43 6c lea 0x6c(%ebx),%eax
8010465f: 89 44 24 08 mov %eax,0x8(%esp)
cprintf("%d %s: unknown sys call %d\n",
80104663: 8b 43 10 mov 0x10(%ebx),%eax
80104666: c7 04 24 f1 74 10 80 movl $0x801074f1,(%esp)
8010466d: 89 44 24 04 mov %eax,0x4(%esp)
80104671: e8 da bf ff ff call 80100650 <cprintf>
curproc->tf->eax = -1;
80104676: 8b 43 18 mov 0x18(%ebx),%eax
80104679: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax)
}
80104680: 83 c4 10 add $0x10,%esp
80104683: 5b pop %ebx
80104684: 5e pop %esi
80104685: 5d pop %ebp
80104686: c3 ret
80104687: 66 90 xchg %ax,%ax
80104689: 66 90 xchg %ax,%ax
8010468b: 66 90 xchg %ax,%ax
8010468d: 66 90 xchg %ax,%ax
8010468f: 90 nop
80104690 <fdalloc>:
// Allocate a file descriptor for the given file.
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
80104690: 55 push %ebp
80104691: 89 e5 mov %esp,%ebp
80104693: 53 push %ebx
80104694: 89 c3 mov %eax,%ebx
80104696: 83 ec 04 sub $0x4,%esp
int fd;
struct proc *curproc = myproc();
80104699: e8 f2 ef ff ff call 80103690 <myproc>
for(fd = 0; fd < NOFILE; fd++){
8010469e: 31 d2 xor %edx,%edx
if(curproc->ofile[fd] == 0){
801046a0: 8b 4c 90 28 mov 0x28(%eax,%edx,4),%ecx
801046a4: 85 c9 test %ecx,%ecx
801046a6: 74 18 je 801046c0 <fdalloc+0x30>
for(fd = 0; fd < NOFILE; fd++){
801046a8: 83 c2 01 add $0x1,%edx
801046ab: 83 fa 10 cmp $0x10,%edx
801046ae: 75 f0 jne 801046a0 <fdalloc+0x10>
curproc->ofile[fd] = f;
return fd;
}
}
return -1;
}
801046b0: 83 c4 04 add $0x4,%esp
return -1;
801046b3: b8 ff ff ff ff mov $0xffffffff,%eax
}
801046b8: 5b pop %ebx
801046b9: 5d pop %ebp
801046ba: c3 ret
801046bb: 90 nop
801046bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
curproc->ofile[fd] = f;
801046c0: 89 5c 90 28 mov %ebx,0x28(%eax,%edx,4)
}
801046c4: 83 c4 04 add $0x4,%esp
return fd;
801046c7: 89 d0 mov %edx,%eax
}
801046c9: 5b pop %ebx
801046ca: 5d pop %ebp
801046cb: c3 ret
801046cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801046d0 <create>:
return -1;
}
static struct inode*
create(char *path, short type, short major, short minor)
{
801046d0: 55 push %ebp
801046d1: 89 e5 mov %esp,%ebp
801046d3: 57 push %edi
801046d4: 56 push %esi
801046d5: 53 push %ebx
801046d6: 83 ec 4c sub $0x4c,%esp
801046d9: 89 4d c0 mov %ecx,-0x40(%ebp)
801046dc: 8b 4d 08 mov 0x8(%ebp),%ecx
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
801046df: 8d 5d da lea -0x26(%ebp),%ebx
801046e2: 89 5c 24 04 mov %ebx,0x4(%esp)
801046e6: 89 04 24 mov %eax,(%esp)
{
801046e9: 89 55 c4 mov %edx,-0x3c(%ebp)
801046ec: 89 4d bc mov %ecx,-0x44(%ebp)
if((dp = nameiparent(path, name)) == 0)
801046ef: e8 1c d8 ff ff call 80101f10 <nameiparent>
801046f4: 85 c0 test %eax,%eax
801046f6: 89 c7 mov %eax,%edi
801046f8: 0f 84 da 00 00 00 je 801047d8 <create+0x108>
return 0;
ilock(dp);
801046fe: 89 04 24 mov %eax,(%esp)
80104701: e8 9a cf ff ff call 801016a0 <ilock>
if((ip = dirlookup(dp, name, &off)) != 0){
80104706: 8d 45 d4 lea -0x2c(%ebp),%eax
80104709: 89 44 24 08 mov %eax,0x8(%esp)
8010470d: 89 5c 24 04 mov %ebx,0x4(%esp)
80104711: 89 3c 24 mov %edi,(%esp)
80104714: e8 97 d4 ff ff call 80101bb0 <dirlookup>
80104719: 85 c0 test %eax,%eax
8010471b: 89 c6 mov %eax,%esi
8010471d: 74 41 je 80104760 <create+0x90>
iunlockput(dp);
8010471f: 89 3c 24 mov %edi,(%esp)
80104722: e8 d9 d1 ff ff call 80101900 <iunlockput>
ilock(ip);
80104727: 89 34 24 mov %esi,(%esp)
8010472a: e8 71 cf ff ff call 801016a0 <ilock>
if(type == T_FILE && ip->type == T_FILE)
8010472f: 66 83 7d c4 02 cmpw $0x2,-0x3c(%ebp)
80104734: 75 12 jne 80104748 <create+0x78>
80104736: 66 83 7e 50 02 cmpw $0x2,0x50(%esi)
8010473b: 89 f0 mov %esi,%eax
8010473d: 75 09 jne 80104748 <create+0x78>
panic("create: dirlink");
iunlockput(dp);
return ip;
}
8010473f: 83 c4 4c add $0x4c,%esp
80104742: 5b pop %ebx
80104743: 5e pop %esi
80104744: 5f pop %edi
80104745: 5d pop %ebp
80104746: c3 ret
80104747: 90 nop
iunlockput(ip);
80104748: 89 34 24 mov %esi,(%esp)
8010474b: e8 b0 d1 ff ff call 80101900 <iunlockput>
}
80104750: 83 c4 4c add $0x4c,%esp
return 0;
80104753: 31 c0 xor %eax,%eax
}
80104755: 5b pop %ebx
80104756: 5e pop %esi
80104757: 5f pop %edi
80104758: 5d pop %ebp
80104759: c3 ret
8010475a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if((ip = ialloc(dp->dev, type)) == 0)
80104760: 0f bf 45 c4 movswl -0x3c(%ebp),%eax
80104764: 89 44 24 04 mov %eax,0x4(%esp)
80104768: 8b 07 mov (%edi),%eax
8010476a: 89 04 24 mov %eax,(%esp)
8010476d: e8 9e cd ff ff call 80101510 <ialloc>
80104772: 85 c0 test %eax,%eax
80104774: 89 c6 mov %eax,%esi
80104776: 0f 84 bf 00 00 00 je 8010483b <create+0x16b>
ilock(ip);
8010477c: 89 04 24 mov %eax,(%esp)
8010477f: e8 1c cf ff ff call 801016a0 <ilock>
ip->major = major;
80104784: 0f b7 45 c0 movzwl -0x40(%ebp),%eax
80104788: 66 89 46 52 mov %ax,0x52(%esi)
ip->minor = minor;
8010478c: 0f b7 45 bc movzwl -0x44(%ebp),%eax
80104790: 66 89 46 54 mov %ax,0x54(%esi)
ip->nlink = 1;
80104794: b8 01 00 00 00 mov $0x1,%eax
80104799: 66 89 46 56 mov %ax,0x56(%esi)
iupdate(ip);
8010479d: 89 34 24 mov %esi,(%esp)
801047a0: e8 3b ce ff ff call 801015e0 <iupdate>
if(type == T_DIR){ // Create . and .. entries.
801047a5: 66 83 7d c4 01 cmpw $0x1,-0x3c(%ebp)
801047aa: 74 34 je 801047e0 <create+0x110>
if(dirlink(dp, name, ip->inum) < 0)
801047ac: 8b 46 04 mov 0x4(%esi),%eax
801047af: 89 5c 24 04 mov %ebx,0x4(%esp)
801047b3: 89 3c 24 mov %edi,(%esp)
801047b6: 89 44 24 08 mov %eax,0x8(%esp)
801047ba: e8 51 d6 ff ff call 80101e10 <dirlink>
801047bf: 85 c0 test %eax,%eax
801047c1: 78 6c js 8010482f <create+0x15f>
iunlockput(dp);
801047c3: 89 3c 24 mov %edi,(%esp)
801047c6: e8 35 d1 ff ff call 80101900 <iunlockput>
}
801047cb: 83 c4 4c add $0x4c,%esp
return ip;
801047ce: 89 f0 mov %esi,%eax
}
801047d0: 5b pop %ebx
801047d1: 5e pop %esi
801047d2: 5f pop %edi
801047d3: 5d pop %ebp
801047d4: c3 ret
801047d5: 8d 76 00 lea 0x0(%esi),%esi
return 0;
801047d8: 31 c0 xor %eax,%eax
801047da: e9 60 ff ff ff jmp 8010473f <create+0x6f>
801047df: 90 nop
dp->nlink++; // for ".."
801047e0: 66 83 47 56 01 addw $0x1,0x56(%edi)
iupdate(dp);
801047e5: 89 3c 24 mov %edi,(%esp)
801047e8: e8 f3 cd ff ff call 801015e0 <iupdate>
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
801047ed: 8b 46 04 mov 0x4(%esi),%eax
801047f0: c7 44 24 04 94 75 10 movl $0x80107594,0x4(%esp)
801047f7: 80
801047f8: 89 34 24 mov %esi,(%esp)
801047fb: 89 44 24 08 mov %eax,0x8(%esp)
801047ff: e8 0c d6 ff ff call 80101e10 <dirlink>
80104804: 85 c0 test %eax,%eax
80104806: 78 1b js 80104823 <create+0x153>
80104808: 8b 47 04 mov 0x4(%edi),%eax
8010480b: c7 44 24 04 93 75 10 movl $0x80107593,0x4(%esp)
80104812: 80
80104813: 89 34 24 mov %esi,(%esp)
80104816: 89 44 24 08 mov %eax,0x8(%esp)
8010481a: e8 f1 d5 ff ff call 80101e10 <dirlink>
8010481f: 85 c0 test %eax,%eax
80104821: 79 89 jns 801047ac <create+0xdc>
panic("create dots");
80104823: c7 04 24 87 75 10 80 movl $0x80107587,(%esp)
8010482a: e8 31 bb ff ff call 80100360 <panic>
panic("create: dirlink");
8010482f: c7 04 24 96 75 10 80 movl $0x80107596,(%esp)
80104836: e8 25 bb ff ff call 80100360 <panic>
panic("create: ialloc");
8010483b: c7 04 24 78 75 10 80 movl $0x80107578,(%esp)
80104842: e8 19 bb ff ff call 80100360 <panic>
80104847: 89 f6 mov %esi,%esi
80104849: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104850 <argfd.constprop.0>:
argfd(int n, int *pfd, struct file **pf)
80104850: 55 push %ebp
80104851: 89 e5 mov %esp,%ebp
80104853: 56 push %esi
80104854: 89 c6 mov %eax,%esi
80104856: 53 push %ebx
80104857: 89 d3 mov %edx,%ebx
80104859: 83 ec 20 sub $0x20,%esp
if(argint(n, &fd) < 0)
8010485c: 8d 45 f4 lea -0xc(%ebp),%eax
8010485f: 89 44 24 04 mov %eax,0x4(%esp)
80104863: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010486a: e8 d1 fc ff ff call 80104540 <argint>
8010486f: 85 c0 test %eax,%eax
80104871: 78 2d js 801048a0 <argfd.constprop.0+0x50>
if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0)
80104873: 83 7d f4 0f cmpl $0xf,-0xc(%ebp)
80104877: 77 27 ja 801048a0 <argfd.constprop.0+0x50>
80104879: e8 12 ee ff ff call 80103690 <myproc>
8010487e: 8b 55 f4 mov -0xc(%ebp),%edx
80104881: 8b 44 90 28 mov 0x28(%eax,%edx,4),%eax
80104885: 85 c0 test %eax,%eax
80104887: 74 17 je 801048a0 <argfd.constprop.0+0x50>
if(pfd)
80104889: 85 f6 test %esi,%esi
8010488b: 74 02 je 8010488f <argfd.constprop.0+0x3f>
*pfd = fd;
8010488d: 89 16 mov %edx,(%esi)
if(pf)
8010488f: 85 db test %ebx,%ebx
80104891: 74 1d je 801048b0 <argfd.constprop.0+0x60>
*pf = f;
80104893: 89 03 mov %eax,(%ebx)
return 0;
80104895: 31 c0 xor %eax,%eax
}
80104897: 83 c4 20 add $0x20,%esp
8010489a: 5b pop %ebx
8010489b: 5e pop %esi
8010489c: 5d pop %ebp
8010489d: c3 ret
8010489e: 66 90 xchg %ax,%ax
801048a0: 83 c4 20 add $0x20,%esp
return -1;
801048a3: b8 ff ff ff ff mov $0xffffffff,%eax
}
801048a8: 5b pop %ebx
801048a9: 5e pop %esi
801048aa: 5d pop %ebp
801048ab: c3 ret
801048ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
801048b0: 31 c0 xor %eax,%eax
801048b2: eb e3 jmp 80104897 <argfd.constprop.0+0x47>
801048b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801048ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801048c0 <sys_dup>:
{
801048c0: 55 push %ebp
if(argfd(0, 0, &f) < 0)
801048c1: 31 c0 xor %eax,%eax
{
801048c3: 89 e5 mov %esp,%ebp
801048c5: 53 push %ebx
801048c6: 83 ec 24 sub $0x24,%esp
if(argfd(0, 0, &f) < 0)
801048c9: 8d 55 f4 lea -0xc(%ebp),%edx
801048cc: e8 7f ff ff ff call 80104850 <argfd.constprop.0>
801048d1: 85 c0 test %eax,%eax
801048d3: 78 23 js 801048f8 <sys_dup+0x38>
if((fd=fdalloc(f)) < 0)
801048d5: 8b 45 f4 mov -0xc(%ebp),%eax
801048d8: e8 b3 fd ff ff call 80104690 <fdalloc>
801048dd: 85 c0 test %eax,%eax
801048df: 89 c3 mov %eax,%ebx
801048e1: 78 15 js 801048f8 <sys_dup+0x38>
filedup(f);
801048e3: 8b 45 f4 mov -0xc(%ebp),%eax
801048e6: 89 04 24 mov %eax,(%esp)
801048e9: e8 d2 c4 ff ff call 80100dc0 <filedup>
return fd;
801048ee: 89 d8 mov %ebx,%eax
}
801048f0: 83 c4 24 add $0x24,%esp
801048f3: 5b pop %ebx
801048f4: 5d pop %ebp
801048f5: c3 ret
801048f6: 66 90 xchg %ax,%ax
return -1;
801048f8: b8 ff ff ff ff mov $0xffffffff,%eax
801048fd: eb f1 jmp 801048f0 <sys_dup+0x30>
801048ff: 90 nop
80104900 <sys_read>:
{
80104900: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104901: 31 c0 xor %eax,%eax
{
80104903: 89 e5 mov %esp,%ebp
80104905: 83 ec 28 sub $0x28,%esp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104908: 8d 55 ec lea -0x14(%ebp),%edx
8010490b: e8 40 ff ff ff call 80104850 <argfd.constprop.0>
80104910: 85 c0 test %eax,%eax
80104912: 78 54 js 80104968 <sys_read+0x68>
80104914: 8d 45 f0 lea -0x10(%ebp),%eax
80104917: 89 44 24 04 mov %eax,0x4(%esp)
8010491b: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80104922: e8 19 fc ff ff call 80104540 <argint>
80104927: 85 c0 test %eax,%eax
80104929: 78 3d js 80104968 <sys_read+0x68>
8010492b: 8b 45 f0 mov -0x10(%ebp),%eax
8010492e: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104935: 89 44 24 08 mov %eax,0x8(%esp)
80104939: 8d 45 f4 lea -0xc(%ebp),%eax
8010493c: 89 44 24 04 mov %eax,0x4(%esp)
80104940: e8 3b fc ff ff call 80104580 <argptr>
80104945: 85 c0 test %eax,%eax
80104947: 78 1f js 80104968 <sys_read+0x68>
return fileread(f, p, n);
80104949: 8b 45 f0 mov -0x10(%ebp),%eax
8010494c: 89 44 24 08 mov %eax,0x8(%esp)
80104950: 8b 45 f4 mov -0xc(%ebp),%eax
80104953: 89 44 24 04 mov %eax,0x4(%esp)
80104957: 8b 45 ec mov -0x14(%ebp),%eax
8010495a: 89 04 24 mov %eax,(%esp)
8010495d: e8 be c5 ff ff call 80100f20 <fileread>
}
80104962: c9 leave
80104963: c3 ret
80104964: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80104968: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010496d: c9 leave
8010496e: c3 ret
8010496f: 90 nop
80104970 <sys_write>:
{
80104970: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104971: 31 c0 xor %eax,%eax
{
80104973: 89 e5 mov %esp,%ebp
80104975: 83 ec 28 sub $0x28,%esp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104978: 8d 55 ec lea -0x14(%ebp),%edx
8010497b: e8 d0 fe ff ff call 80104850 <argfd.constprop.0>
80104980: 85 c0 test %eax,%eax
80104982: 78 54 js 801049d8 <sys_write+0x68>
80104984: 8d 45 f0 lea -0x10(%ebp),%eax
80104987: 89 44 24 04 mov %eax,0x4(%esp)
8010498b: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80104992: e8 a9 fb ff ff call 80104540 <argint>
80104997: 85 c0 test %eax,%eax
80104999: 78 3d js 801049d8 <sys_write+0x68>
8010499b: 8b 45 f0 mov -0x10(%ebp),%eax
8010499e: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801049a5: 89 44 24 08 mov %eax,0x8(%esp)
801049a9: 8d 45 f4 lea -0xc(%ebp),%eax
801049ac: 89 44 24 04 mov %eax,0x4(%esp)
801049b0: e8 cb fb ff ff call 80104580 <argptr>
801049b5: 85 c0 test %eax,%eax
801049b7: 78 1f js 801049d8 <sys_write+0x68>
return filewrite(f, p, n);
801049b9: 8b 45 f0 mov -0x10(%ebp),%eax
801049bc: 89 44 24 08 mov %eax,0x8(%esp)
801049c0: 8b 45 f4 mov -0xc(%ebp),%eax
801049c3: 89 44 24 04 mov %eax,0x4(%esp)
801049c7: 8b 45 ec mov -0x14(%ebp),%eax
801049ca: 89 04 24 mov %eax,(%esp)
801049cd: e8 ee c5 ff ff call 80100fc0 <filewrite>
}
801049d2: c9 leave
801049d3: c3 ret
801049d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
801049d8: b8 ff ff ff ff mov $0xffffffff,%eax
}
801049dd: c9 leave
801049de: c3 ret
801049df: 90 nop
801049e0 <sys_close>:
{
801049e0: 55 push %ebp
801049e1: 89 e5 mov %esp,%ebp
801049e3: 83 ec 28 sub $0x28,%esp
if(argfd(0, &fd, &f) < 0)
801049e6: 8d 55 f4 lea -0xc(%ebp),%edx
801049e9: 8d 45 f0 lea -0x10(%ebp),%eax
801049ec: e8 5f fe ff ff call 80104850 <argfd.constprop.0>
801049f1: 85 c0 test %eax,%eax
801049f3: 78 23 js 80104a18 <sys_close+0x38>
myproc()->ofile[fd] = 0;
801049f5: e8 96 ec ff ff call 80103690 <myproc>
801049fa: 8b 55 f0 mov -0x10(%ebp),%edx
801049fd: c7 44 90 28 00 00 00 movl $0x0,0x28(%eax,%edx,4)
80104a04: 00
fileclose(f);
80104a05: 8b 45 f4 mov -0xc(%ebp),%eax
80104a08: 89 04 24 mov %eax,(%esp)
80104a0b: e8 00 c4 ff ff call 80100e10 <fileclose>
return 0;
80104a10: 31 c0 xor %eax,%eax
}
80104a12: c9 leave
80104a13: c3 ret
80104a14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80104a18: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104a1d: c9 leave
80104a1e: c3 ret
80104a1f: 90 nop
80104a20 <sys_fstat>:
{
80104a20: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80104a21: 31 c0 xor %eax,%eax
{
80104a23: 89 e5 mov %esp,%ebp
80104a25: 83 ec 28 sub $0x28,%esp
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80104a28: 8d 55 f0 lea -0x10(%ebp),%edx
80104a2b: e8 20 fe ff ff call 80104850 <argfd.constprop.0>
80104a30: 85 c0 test %eax,%eax
80104a32: 78 34 js 80104a68 <sys_fstat+0x48>
80104a34: 8d 45 f4 lea -0xc(%ebp),%eax
80104a37: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
80104a3e: 00
80104a3f: 89 44 24 04 mov %eax,0x4(%esp)
80104a43: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104a4a: e8 31 fb ff ff call 80104580 <argptr>
80104a4f: 85 c0 test %eax,%eax
80104a51: 78 15 js 80104a68 <sys_fstat+0x48>
return filestat(f, st);
80104a53: 8b 45 f4 mov -0xc(%ebp),%eax
80104a56: 89 44 24 04 mov %eax,0x4(%esp)
80104a5a: 8b 45 f0 mov -0x10(%ebp),%eax
80104a5d: 89 04 24 mov %eax,(%esp)
80104a60: e8 6b c4 ff ff call 80100ed0 <filestat>
}
80104a65: c9 leave
80104a66: c3 ret
80104a67: 90 nop
return -1;
80104a68: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104a6d: c9 leave
80104a6e: c3 ret
80104a6f: 90 nop
80104a70 <sys_link>:
{
80104a70: 55 push %ebp
80104a71: 89 e5 mov %esp,%ebp
80104a73: 57 push %edi
80104a74: 56 push %esi
80104a75: 53 push %ebx
80104a76: 83 ec 3c sub $0x3c,%esp
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
80104a79: 8d 45 d4 lea -0x2c(%ebp),%eax
80104a7c: 89 44 24 04 mov %eax,0x4(%esp)
80104a80: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104a87: e8 54 fb ff ff call 801045e0 <argstr>
80104a8c: 85 c0 test %eax,%eax
80104a8e: 0f 88 e6 00 00 00 js 80104b7a <sys_link+0x10a>
80104a94: 8d 45 d0 lea -0x30(%ebp),%eax
80104a97: 89 44 24 04 mov %eax,0x4(%esp)
80104a9b: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104aa2: e8 39 fb ff ff call 801045e0 <argstr>
80104aa7: 85 c0 test %eax,%eax
80104aa9: 0f 88 cb 00 00 00 js 80104b7a <sys_link+0x10a>
begin_op();
80104aaf: e8 4c e0 ff ff call 80102b00 <begin_op>
if((ip = namei(old)) == 0){
80104ab4: 8b 45 d4 mov -0x2c(%ebp),%eax
80104ab7: 89 04 24 mov %eax,(%esp)
80104aba: e8 31 d4 ff ff call 80101ef0 <namei>
80104abf: 85 c0 test %eax,%eax
80104ac1: 89 c3 mov %eax,%ebx
80104ac3: 0f 84 ac 00 00 00 je 80104b75 <sys_link+0x105>
ilock(ip);
80104ac9: 89 04 24 mov %eax,(%esp)
80104acc: e8 cf cb ff ff call 801016a0 <ilock>
if(ip->type == T_DIR){
80104ad1: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104ad6: 0f 84 91 00 00 00 je 80104b6d <sys_link+0xfd>
ip->nlink++;
80104adc: 66 83 43 56 01 addw $0x1,0x56(%ebx)
if((dp = nameiparent(new, name)) == 0)
80104ae1: 8d 7d da lea -0x26(%ebp),%edi
iupdate(ip);
80104ae4: 89 1c 24 mov %ebx,(%esp)
80104ae7: e8 f4 ca ff ff call 801015e0 <iupdate>
iunlock(ip);
80104aec: 89 1c 24 mov %ebx,(%esp)
80104aef: e8 8c cc ff ff call 80101780 <iunlock>
if((dp = nameiparent(new, name)) == 0)
80104af4: 8b 45 d0 mov -0x30(%ebp),%eax
80104af7: 89 7c 24 04 mov %edi,0x4(%esp)
80104afb: 89 04 24 mov %eax,(%esp)
80104afe: e8 0d d4 ff ff call 80101f10 <nameiparent>
80104b03: 85 c0 test %eax,%eax
80104b05: 89 c6 mov %eax,%esi
80104b07: 74 4f je 80104b58 <sys_link+0xe8>
ilock(dp);
80104b09: 89 04 24 mov %eax,(%esp)
80104b0c: e8 8f cb ff ff call 801016a0 <ilock>
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
80104b11: 8b 03 mov (%ebx),%eax
80104b13: 39 06 cmp %eax,(%esi)
80104b15: 75 39 jne 80104b50 <sys_link+0xe0>
80104b17: 8b 43 04 mov 0x4(%ebx),%eax
80104b1a: 89 7c 24 04 mov %edi,0x4(%esp)
80104b1e: 89 34 24 mov %esi,(%esp)
80104b21: 89 44 24 08 mov %eax,0x8(%esp)
80104b25: e8 e6 d2 ff ff call 80101e10 <dirlink>
80104b2a: 85 c0 test %eax,%eax
80104b2c: 78 22 js 80104b50 <sys_link+0xe0>
iunlockput(dp);
80104b2e: 89 34 24 mov %esi,(%esp)
80104b31: e8 ca cd ff ff call 80101900 <iunlockput>
iput(ip);
80104b36: 89 1c 24 mov %ebx,(%esp)
80104b39: e8 82 cc ff ff call 801017c0 <iput>
end_op();
80104b3e: e8 2d e0 ff ff call 80102b70 <end_op>
}
80104b43: 83 c4 3c add $0x3c,%esp
return 0;
80104b46: 31 c0 xor %eax,%eax
}
80104b48: 5b pop %ebx
80104b49: 5e pop %esi
80104b4a: 5f pop %edi
80104b4b: 5d pop %ebp
80104b4c: c3 ret
80104b4d: 8d 76 00 lea 0x0(%esi),%esi
iunlockput(dp);
80104b50: 89 34 24 mov %esi,(%esp)
80104b53: e8 a8 cd ff ff call 80101900 <iunlockput>
ilock(ip);
80104b58: 89 1c 24 mov %ebx,(%esp)
80104b5b: e8 40 cb ff ff call 801016a0 <ilock>
ip->nlink--;
80104b60: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
80104b65: 89 1c 24 mov %ebx,(%esp)
80104b68: e8 73 ca ff ff call 801015e0 <iupdate>
iunlockput(ip);
80104b6d: 89 1c 24 mov %ebx,(%esp)
80104b70: e8 8b cd ff ff call 80101900 <iunlockput>
end_op();
80104b75: e8 f6 df ff ff call 80102b70 <end_op>
}
80104b7a: 83 c4 3c add $0x3c,%esp
return -1;
80104b7d: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104b82: 5b pop %ebx
80104b83: 5e pop %esi
80104b84: 5f pop %edi
80104b85: 5d pop %ebp
80104b86: c3 ret
80104b87: 89 f6 mov %esi,%esi
80104b89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104b90 <sys_unlink>:
{
80104b90: 55 push %ebp
80104b91: 89 e5 mov %esp,%ebp
80104b93: 57 push %edi
80104b94: 56 push %esi
80104b95: 53 push %ebx
80104b96: 83 ec 5c sub $0x5c,%esp
if(argstr(0, &path) < 0)
80104b99: 8d 45 c0 lea -0x40(%ebp),%eax
80104b9c: 89 44 24 04 mov %eax,0x4(%esp)
80104ba0: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104ba7: e8 34 fa ff ff call 801045e0 <argstr>
80104bac: 85 c0 test %eax,%eax
80104bae: 0f 88 76 01 00 00 js 80104d2a <sys_unlink+0x19a>
begin_op();
80104bb4: e8 47 df ff ff call 80102b00 <begin_op>
if((dp = nameiparent(path, name)) == 0){
80104bb9: 8b 45 c0 mov -0x40(%ebp),%eax
80104bbc: 8d 5d ca lea -0x36(%ebp),%ebx
80104bbf: 89 5c 24 04 mov %ebx,0x4(%esp)
80104bc3: 89 04 24 mov %eax,(%esp)
80104bc6: e8 45 d3 ff ff call 80101f10 <nameiparent>
80104bcb: 85 c0 test %eax,%eax
80104bcd: 89 45 b4 mov %eax,-0x4c(%ebp)
80104bd0: 0f 84 4f 01 00 00 je 80104d25 <sys_unlink+0x195>
ilock(dp);
80104bd6: 8b 75 b4 mov -0x4c(%ebp),%esi
80104bd9: 89 34 24 mov %esi,(%esp)
80104bdc: e8 bf ca ff ff call 801016a0 <ilock>
if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
80104be1: c7 44 24 04 94 75 10 movl $0x80107594,0x4(%esp)
80104be8: 80
80104be9: 89 1c 24 mov %ebx,(%esp)
80104bec: e8 8f cf ff ff call 80101b80 <namecmp>
80104bf1: 85 c0 test %eax,%eax
80104bf3: 0f 84 21 01 00 00 je 80104d1a <sys_unlink+0x18a>
80104bf9: c7 44 24 04 93 75 10 movl $0x80107593,0x4(%esp)
80104c00: 80
80104c01: 89 1c 24 mov %ebx,(%esp)
80104c04: e8 77 cf ff ff call 80101b80 <namecmp>
80104c09: 85 c0 test %eax,%eax
80104c0b: 0f 84 09 01 00 00 je 80104d1a <sys_unlink+0x18a>
if((ip = dirlookup(dp, name, &off)) == 0)
80104c11: 8d 45 c4 lea -0x3c(%ebp),%eax
80104c14: 89 5c 24 04 mov %ebx,0x4(%esp)
80104c18: 89 44 24 08 mov %eax,0x8(%esp)
80104c1c: 89 34 24 mov %esi,(%esp)
80104c1f: e8 8c cf ff ff call 80101bb0 <dirlookup>
80104c24: 85 c0 test %eax,%eax
80104c26: 89 c3 mov %eax,%ebx
80104c28: 0f 84 ec 00 00 00 je 80104d1a <sys_unlink+0x18a>
ilock(ip);
80104c2e: 89 04 24 mov %eax,(%esp)
80104c31: e8 6a ca ff ff call 801016a0 <ilock>
if(ip->nlink < 1)
80104c36: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx)
80104c3b: 0f 8e 24 01 00 00 jle 80104d65 <sys_unlink+0x1d5>
if(ip->type == T_DIR && !isdirempty(ip)){
80104c41: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104c46: 8d 75 d8 lea -0x28(%ebp),%esi
80104c49: 74 7d je 80104cc8 <sys_unlink+0x138>
memset(&de, 0, sizeof(de));
80104c4b: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80104c52: 00
80104c53: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80104c5a: 00
80104c5b: 89 34 24 mov %esi,(%esp)
80104c5e: e8 0d f6 ff ff call 80104270 <memset>
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80104c63: 8b 45 c4 mov -0x3c(%ebp),%eax
80104c66: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80104c6d: 00
80104c6e: 89 74 24 04 mov %esi,0x4(%esp)
80104c72: 89 44 24 08 mov %eax,0x8(%esp)
80104c76: 8b 45 b4 mov -0x4c(%ebp),%eax
80104c79: 89 04 24 mov %eax,(%esp)
80104c7c: e8 cf cd ff ff call 80101a50 <writei>
80104c81: 83 f8 10 cmp $0x10,%eax
80104c84: 0f 85 cf 00 00 00 jne 80104d59 <sys_unlink+0x1c9>
if(ip->type == T_DIR){
80104c8a: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104c8f: 0f 84 a3 00 00 00 je 80104d38 <sys_unlink+0x1a8>
iunlockput(dp);
80104c95: 8b 45 b4 mov -0x4c(%ebp),%eax
80104c98: 89 04 24 mov %eax,(%esp)
80104c9b: e8 60 cc ff ff call 80101900 <iunlockput>
ip->nlink--;
80104ca0: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
80104ca5: 89 1c 24 mov %ebx,(%esp)
80104ca8: e8 33 c9 ff ff call 801015e0 <iupdate>
iunlockput(ip);
80104cad: 89 1c 24 mov %ebx,(%esp)
80104cb0: e8 4b cc ff ff call 80101900 <iunlockput>
end_op();
80104cb5: e8 b6 de ff ff call 80102b70 <end_op>
}
80104cba: 83 c4 5c add $0x5c,%esp
return 0;
80104cbd: 31 c0 xor %eax,%eax
}
80104cbf: 5b pop %ebx
80104cc0: 5e pop %esi
80104cc1: 5f pop %edi
80104cc2: 5d pop %ebp
80104cc3: c3 ret
80104cc4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80104cc8: 83 7b 58 20 cmpl $0x20,0x58(%ebx)
80104ccc: 0f 86 79 ff ff ff jbe 80104c4b <sys_unlink+0xbb>
80104cd2: bf 20 00 00 00 mov $0x20,%edi
80104cd7: eb 15 jmp 80104cee <sys_unlink+0x15e>
80104cd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104ce0: 8d 57 10 lea 0x10(%edi),%edx
80104ce3: 3b 53 58 cmp 0x58(%ebx),%edx
80104ce6: 0f 83 5f ff ff ff jae 80104c4b <sys_unlink+0xbb>
80104cec: 89 d7 mov %edx,%edi
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80104cee: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80104cf5: 00
80104cf6: 89 7c 24 08 mov %edi,0x8(%esp)
80104cfa: 89 74 24 04 mov %esi,0x4(%esp)
80104cfe: 89 1c 24 mov %ebx,(%esp)
80104d01: e8 4a cc ff ff call 80101950 <readi>
80104d06: 83 f8 10 cmp $0x10,%eax
80104d09: 75 42 jne 80104d4d <sys_unlink+0x1bd>
if(de.inum != 0)
80104d0b: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80104d10: 74 ce je 80104ce0 <sys_unlink+0x150>
iunlockput(ip);
80104d12: 89 1c 24 mov %ebx,(%esp)
80104d15: e8 e6 cb ff ff call 80101900 <iunlockput>
iunlockput(dp);
80104d1a: 8b 45 b4 mov -0x4c(%ebp),%eax
80104d1d: 89 04 24 mov %eax,(%esp)
80104d20: e8 db cb ff ff call 80101900 <iunlockput>
end_op();
80104d25: e8 46 de ff ff call 80102b70 <end_op>
}
80104d2a: 83 c4 5c add $0x5c,%esp
return -1;
80104d2d: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104d32: 5b pop %ebx
80104d33: 5e pop %esi
80104d34: 5f pop %edi
80104d35: 5d pop %ebp
80104d36: c3 ret
80104d37: 90 nop
dp->nlink--;
80104d38: 8b 45 b4 mov -0x4c(%ebp),%eax
80104d3b: 66 83 68 56 01 subw $0x1,0x56(%eax)
iupdate(dp);
80104d40: 89 04 24 mov %eax,(%esp)
80104d43: e8 98 c8 ff ff call 801015e0 <iupdate>
80104d48: e9 48 ff ff ff jmp 80104c95 <sys_unlink+0x105>
panic("isdirempty: readi");
80104d4d: c7 04 24 b8 75 10 80 movl $0x801075b8,(%esp)
80104d54: e8 07 b6 ff ff call 80100360 <panic>
panic("unlink: writei");
80104d59: c7 04 24 ca 75 10 80 movl $0x801075ca,(%esp)
80104d60: e8 fb b5 ff ff call 80100360 <panic>
panic("unlink: nlink < 1");
80104d65: c7 04 24 a6 75 10 80 movl $0x801075a6,(%esp)
80104d6c: e8 ef b5 ff ff call 80100360 <panic>
80104d71: eb 0d jmp 80104d80 <sys_open>
80104d73: 90 nop
80104d74: 90 nop
80104d75: 90 nop
80104d76: 90 nop
80104d77: 90 nop
80104d78: 90 nop
80104d79: 90 nop
80104d7a: 90 nop
80104d7b: 90 nop
80104d7c: 90 nop
80104d7d: 90 nop
80104d7e: 90 nop
80104d7f: 90 nop
80104d80 <sys_open>:
int
sys_open(void)
{
80104d80: 55 push %ebp
80104d81: 89 e5 mov %esp,%ebp
80104d83: 57 push %edi
80104d84: 56 push %esi
80104d85: 53 push %ebx
80104d86: 83 ec 2c sub $0x2c,%esp
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
80104d89: 8d 45 e0 lea -0x20(%ebp),%eax
80104d8c: 89 44 24 04 mov %eax,0x4(%esp)
80104d90: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104d97: e8 44 f8 ff ff call 801045e0 <argstr>
80104d9c: 85 c0 test %eax,%eax
80104d9e: 0f 88 d1 00 00 00 js 80104e75 <sys_open+0xf5>
80104da4: 8d 45 e4 lea -0x1c(%ebp),%eax
80104da7: 89 44 24 04 mov %eax,0x4(%esp)
80104dab: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104db2: e8 89 f7 ff ff call 80104540 <argint>
80104db7: 85 c0 test %eax,%eax
80104db9: 0f 88 b6 00 00 00 js 80104e75 <sys_open+0xf5>
return -1;
begin_op();
80104dbf: e8 3c dd ff ff call 80102b00 <begin_op>
if(omode & O_CREATE){
80104dc4: f6 45 e5 02 testb $0x2,-0x1b(%ebp)
80104dc8: 0f 85 82 00 00 00 jne 80104e50 <sys_open+0xd0>
if(ip == 0){
end_op();
return -1;
}
} else {
if((ip = namei(path)) == 0){
80104dce: 8b 45 e0 mov -0x20(%ebp),%eax
80104dd1: 89 04 24 mov %eax,(%esp)
80104dd4: e8 17 d1 ff ff call 80101ef0 <namei>
80104dd9: 85 c0 test %eax,%eax
80104ddb: 89 c6 mov %eax,%esi
80104ddd: 0f 84 8d 00 00 00 je 80104e70 <sys_open+0xf0>
end_op();
return -1;
}
ilock(ip);
80104de3: 89 04 24 mov %eax,(%esp)
80104de6: e8 b5 c8 ff ff call 801016a0 <ilock>
if(ip->type == T_DIR && omode != O_RDONLY){
80104deb: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80104df0: 0f 84 92 00 00 00 je 80104e88 <sys_open+0x108>
end_op();
return -1;
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
80104df6: e8 55 bf ff ff call 80100d50 <filealloc>
80104dfb: 85 c0 test %eax,%eax
80104dfd: 89 c3 mov %eax,%ebx
80104dff: 0f 84 93 00 00 00 je 80104e98 <sys_open+0x118>
80104e05: e8 86 f8 ff ff call 80104690 <fdalloc>
80104e0a: 85 c0 test %eax,%eax
80104e0c: 89 c7 mov %eax,%edi
80104e0e: 0f 88 94 00 00 00 js 80104ea8 <sys_open+0x128>
fileclose(f);
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
80104e14: 89 34 24 mov %esi,(%esp)
80104e17: e8 64 c9 ff ff call 80101780 <iunlock>
end_op();
80104e1c: e8 4f dd ff ff call 80102b70 <end_op>
f->type = FD_INODE;
80104e21: c7 03 02 00 00 00 movl $0x2,(%ebx)
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
80104e27: 8b 45 e4 mov -0x1c(%ebp),%eax
f->ip = ip;
80104e2a: 89 73 10 mov %esi,0x10(%ebx)
f->off = 0;
80104e2d: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
f->readable = !(omode & O_WRONLY);
80104e34: 89 c2 mov %eax,%edx
80104e36: 83 e2 01 and $0x1,%edx
80104e39: 83 f2 01 xor $0x1,%edx
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80104e3c: a8 03 test $0x3,%al
f->readable = !(omode & O_WRONLY);
80104e3e: 88 53 08 mov %dl,0x8(%ebx)
return fd;
80104e41: 89 f8 mov %edi,%eax
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80104e43: 0f 95 43 09 setne 0x9(%ebx)
}
80104e47: 83 c4 2c add $0x2c,%esp
80104e4a: 5b pop %ebx
80104e4b: 5e pop %esi
80104e4c: 5f pop %edi
80104e4d: 5d pop %ebp
80104e4e: c3 ret
80104e4f: 90 nop
ip = create(path, T_FILE, 0, 0);
80104e50: 8b 45 e0 mov -0x20(%ebp),%eax
80104e53: 31 c9 xor %ecx,%ecx
80104e55: ba 02 00 00 00 mov $0x2,%edx
80104e5a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104e61: e8 6a f8 ff ff call 801046d0 <create>
if(ip == 0){
80104e66: 85 c0 test %eax,%eax
ip = create(path, T_FILE, 0, 0);
80104e68: 89 c6 mov %eax,%esi
if(ip == 0){
80104e6a: 75 8a jne 80104df6 <sys_open+0x76>
80104e6c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
end_op();
80104e70: e8 fb dc ff ff call 80102b70 <end_op>
}
80104e75: 83 c4 2c add $0x2c,%esp
return -1;
80104e78: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104e7d: 5b pop %ebx
80104e7e: 5e pop %esi
80104e7f: 5f pop %edi
80104e80: 5d pop %ebp
80104e81: c3 ret
80104e82: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(ip->type == T_DIR && omode != O_RDONLY){
80104e88: 8b 45 e4 mov -0x1c(%ebp),%eax
80104e8b: 85 c0 test %eax,%eax
80104e8d: 0f 84 63 ff ff ff je 80104df6 <sys_open+0x76>
80104e93: 90 nop
80104e94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
iunlockput(ip);
80104e98: 89 34 24 mov %esi,(%esp)
80104e9b: e8 60 ca ff ff call 80101900 <iunlockput>
80104ea0: eb ce jmp 80104e70 <sys_open+0xf0>
80104ea2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
fileclose(f);
80104ea8: 89 1c 24 mov %ebx,(%esp)
80104eab: e8 60 bf ff ff call 80100e10 <fileclose>
80104eb0: eb e6 jmp 80104e98 <sys_open+0x118>
80104eb2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104eb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104ec0 <sys_mkdir>:
int
sys_mkdir(void)
{
80104ec0: 55 push %ebp
80104ec1: 89 e5 mov %esp,%ebp
80104ec3: 83 ec 28 sub $0x28,%esp
char *path;
struct inode *ip;
begin_op();
80104ec6: e8 35 dc ff ff call 80102b00 <begin_op>
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
80104ecb: 8d 45 f4 lea -0xc(%ebp),%eax
80104ece: 89 44 24 04 mov %eax,0x4(%esp)
80104ed2: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104ed9: e8 02 f7 ff ff call 801045e0 <argstr>
80104ede: 85 c0 test %eax,%eax
80104ee0: 78 2e js 80104f10 <sys_mkdir+0x50>
80104ee2: 8b 45 f4 mov -0xc(%ebp),%eax
80104ee5: 31 c9 xor %ecx,%ecx
80104ee7: ba 01 00 00 00 mov $0x1,%edx
80104eec: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104ef3: e8 d8 f7 ff ff call 801046d0 <create>
80104ef8: 85 c0 test %eax,%eax
80104efa: 74 14 je 80104f10 <sys_mkdir+0x50>
end_op();
return -1;
}
iunlockput(ip);
80104efc: 89 04 24 mov %eax,(%esp)
80104eff: e8 fc c9 ff ff call 80101900 <iunlockput>
end_op();
80104f04: e8 67 dc ff ff call 80102b70 <end_op>
return 0;
80104f09: 31 c0 xor %eax,%eax
}
80104f0b: c9 leave
80104f0c: c3 ret
80104f0d: 8d 76 00 lea 0x0(%esi),%esi
end_op();
80104f10: e8 5b dc ff ff call 80102b70 <end_op>
return -1;
80104f15: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104f1a: c9 leave
80104f1b: c3 ret
80104f1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104f20 <sys_mknod>:
int
sys_mknod(void)
{
80104f20: 55 push %ebp
80104f21: 89 e5 mov %esp,%ebp
80104f23: 83 ec 28 sub $0x28,%esp
struct inode *ip;
char *path;
int major, minor;
begin_op();
80104f26: e8 d5 db ff ff call 80102b00 <begin_op>
if((argstr(0, &path)) < 0 ||
80104f2b: 8d 45 ec lea -0x14(%ebp),%eax
80104f2e: 89 44 24 04 mov %eax,0x4(%esp)
80104f32: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104f39: e8 a2 f6 ff ff call 801045e0 <argstr>
80104f3e: 85 c0 test %eax,%eax
80104f40: 78 5e js 80104fa0 <sys_mknod+0x80>
argint(1, &major) < 0 ||
80104f42: 8d 45 f0 lea -0x10(%ebp),%eax
80104f45: 89 44 24 04 mov %eax,0x4(%esp)
80104f49: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104f50: e8 eb f5 ff ff call 80104540 <argint>
if((argstr(0, &path)) < 0 ||
80104f55: 85 c0 test %eax,%eax
80104f57: 78 47 js 80104fa0 <sys_mknod+0x80>
argint(2, &minor) < 0 ||
80104f59: 8d 45 f4 lea -0xc(%ebp),%eax
80104f5c: 89 44 24 04 mov %eax,0x4(%esp)
80104f60: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80104f67: e8 d4 f5 ff ff call 80104540 <argint>
argint(1, &major) < 0 ||
80104f6c: 85 c0 test %eax,%eax
80104f6e: 78 30 js 80104fa0 <sys_mknod+0x80>
(ip = create(path, T_DEV, major, minor)) == 0){
80104f70: 0f bf 45 f4 movswl -0xc(%ebp),%eax
argint(2, &minor) < 0 ||
80104f74: ba 03 00 00 00 mov $0x3,%edx
(ip = create(path, T_DEV, major, minor)) == 0){
80104f79: 0f bf 4d f0 movswl -0x10(%ebp),%ecx
80104f7d: 89 04 24 mov %eax,(%esp)
argint(2, &minor) < 0 ||
80104f80: 8b 45 ec mov -0x14(%ebp),%eax
80104f83: e8 48 f7 ff ff call 801046d0 <create>
80104f88: 85 c0 test %eax,%eax
80104f8a: 74 14 je 80104fa0 <sys_mknod+0x80>
end_op();
return -1;
}
iunlockput(ip);
80104f8c: 89 04 24 mov %eax,(%esp)
80104f8f: e8 6c c9 ff ff call 80101900 <iunlockput>
end_op();
80104f94: e8 d7 db ff ff call 80102b70 <end_op>
return 0;
80104f99: 31 c0 xor %eax,%eax
}
80104f9b: c9 leave
80104f9c: c3 ret
80104f9d: 8d 76 00 lea 0x0(%esi),%esi
end_op();
80104fa0: e8 cb db ff ff call 80102b70 <end_op>
return -1;
80104fa5: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104faa: c9 leave
80104fab: c3 ret
80104fac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104fb0 <sys_chdir>:
int
sys_chdir(void)
{
80104fb0: 55 push %ebp
80104fb1: 89 e5 mov %esp,%ebp
80104fb3: 56 push %esi
80104fb4: 53 push %ebx
80104fb5: 83 ec 20 sub $0x20,%esp
char *path;
struct inode *ip;
struct proc *curproc = myproc();
80104fb8: e8 d3 e6 ff ff call 80103690 <myproc>
80104fbd: 89 c6 mov %eax,%esi
begin_op();
80104fbf: e8 3c db ff ff call 80102b00 <begin_op>
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
80104fc4: 8d 45 f4 lea -0xc(%ebp),%eax
80104fc7: 89 44 24 04 mov %eax,0x4(%esp)
80104fcb: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80104fd2: e8 09 f6 ff ff call 801045e0 <argstr>
80104fd7: 85 c0 test %eax,%eax
80104fd9: 78 4a js 80105025 <sys_chdir+0x75>
80104fdb: 8b 45 f4 mov -0xc(%ebp),%eax
80104fde: 89 04 24 mov %eax,(%esp)
80104fe1: e8 0a cf ff ff call 80101ef0 <namei>
80104fe6: 85 c0 test %eax,%eax
80104fe8: 89 c3 mov %eax,%ebx
80104fea: 74 39 je 80105025 <sys_chdir+0x75>
end_op();
return -1;
}
ilock(ip);
80104fec: 89 04 24 mov %eax,(%esp)
80104fef: e8 ac c6 ff ff call 801016a0 <ilock>
if(ip->type != T_DIR){
80104ff4: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
iunlockput(ip);
80104ff9: 89 1c 24 mov %ebx,(%esp)
if(ip->type != T_DIR){
80104ffc: 75 22 jne 80105020 <sys_chdir+0x70>
end_op();
return -1;
}
iunlock(ip);
80104ffe: e8 7d c7 ff ff call 80101780 <iunlock>
iput(curproc->cwd);
80105003: 8b 46 68 mov 0x68(%esi),%eax
80105006: 89 04 24 mov %eax,(%esp)
80105009: e8 b2 c7 ff ff call 801017c0 <iput>
end_op();
8010500e: e8 5d db ff ff call 80102b70 <end_op>
curproc->cwd = ip;
return 0;
80105013: 31 c0 xor %eax,%eax
curproc->cwd = ip;
80105015: 89 5e 68 mov %ebx,0x68(%esi)
}
80105018: 83 c4 20 add $0x20,%esp
8010501b: 5b pop %ebx
8010501c: 5e pop %esi
8010501d: 5d pop %ebp
8010501e: c3 ret
8010501f: 90 nop
iunlockput(ip);
80105020: e8 db c8 ff ff call 80101900 <iunlockput>
end_op();
80105025: e8 46 db ff ff call 80102b70 <end_op>
}
8010502a: 83 c4 20 add $0x20,%esp
return -1;
8010502d: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105032: 5b pop %ebx
80105033: 5e pop %esi
80105034: 5d pop %ebp
80105035: c3 ret
80105036: 8d 76 00 lea 0x0(%esi),%esi
80105039: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105040 <sys_exec>:
int
sys_exec(void)
{
80105040: 55 push %ebp
80105041: 89 e5 mov %esp,%ebp
80105043: 57 push %edi
80105044: 56 push %esi
80105045: 53 push %ebx
80105046: 81 ec ac 00 00 00 sub $0xac,%esp
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
8010504c: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax
80105052: 89 44 24 04 mov %eax,0x4(%esp)
80105056: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010505d: e8 7e f5 ff ff call 801045e0 <argstr>
80105062: 85 c0 test %eax,%eax
80105064: 0f 88 84 00 00 00 js 801050ee <sys_exec+0xae>
8010506a: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax
80105070: 89 44 24 04 mov %eax,0x4(%esp)
80105074: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010507b: e8 c0 f4 ff ff call 80104540 <argint>
80105080: 85 c0 test %eax,%eax
80105082: 78 6a js 801050ee <sys_exec+0xae>
return -1;
}
memset(argv, 0, sizeof(argv));
80105084: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
for(i=0;; i++){
8010508a: 31 db xor %ebx,%ebx
memset(argv, 0, sizeof(argv));
8010508c: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
80105093: 00
80105094: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi
8010509a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801050a1: 00
801050a2: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi
801050a8: 89 04 24 mov %eax,(%esp)
801050ab: e8 c0 f1 ff ff call 80104270 <memset>
if(i >= NELEM(argv))
return -1;
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
801050b0: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax
801050b6: 89 7c 24 04 mov %edi,0x4(%esp)
801050ba: 8d 04 98 lea (%eax,%ebx,4),%eax
801050bd: 89 04 24 mov %eax,(%esp)
801050c0: e8 fb f3 ff ff call 801044c0 <fetchint>
801050c5: 85 c0 test %eax,%eax
801050c7: 78 25 js 801050ee <sys_exec+0xae>
return -1;
if(uarg == 0){
801050c9: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
801050cf: 85 c0 test %eax,%eax
801050d1: 74 2d je 80105100 <sys_exec+0xc0>
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
801050d3: 89 74 24 04 mov %esi,0x4(%esp)
801050d7: 89 04 24 mov %eax,(%esp)
801050da: e8 01 f4 ff ff call 801044e0 <fetchstr>
801050df: 85 c0 test %eax,%eax
801050e1: 78 0b js 801050ee <sys_exec+0xae>
for(i=0;; i++){
801050e3: 83 c3 01 add $0x1,%ebx
801050e6: 83 c6 04 add $0x4,%esi
if(i >= NELEM(argv))
801050e9: 83 fb 20 cmp $0x20,%ebx
801050ec: 75 c2 jne 801050b0 <sys_exec+0x70>
return -1;
}
return exec(path, argv);
}
801050ee: 81 c4 ac 00 00 00 add $0xac,%esp
return -1;
801050f4: b8 ff ff ff ff mov $0xffffffff,%eax
}
801050f9: 5b pop %ebx
801050fa: 5e pop %esi
801050fb: 5f pop %edi
801050fc: 5d pop %ebp
801050fd: c3 ret
801050fe: 66 90 xchg %ax,%ax
return exec(path, argv);
80105100: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
80105106: 89 44 24 04 mov %eax,0x4(%esp)
8010510a: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax
argv[i] = 0;
80105110: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4)
80105117: 00 00 00 00
return exec(path, argv);
8010511b: 89 04 24 mov %eax,(%esp)
8010511e: e8 7d b8 ff ff call 801009a0 <exec>
}
80105123: 81 c4 ac 00 00 00 add $0xac,%esp
80105129: 5b pop %ebx
8010512a: 5e pop %esi
8010512b: 5f pop %edi
8010512c: 5d pop %ebp
8010512d: c3 ret
8010512e: 66 90 xchg %ax,%ax
80105130 <sys_pipe>:
int
sys_pipe(void)
{
80105130: 55 push %ebp
80105131: 89 e5 mov %esp,%ebp
80105133: 53 push %ebx
80105134: 83 ec 24 sub $0x24,%esp
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
80105137: 8d 45 ec lea -0x14(%ebp),%eax
8010513a: c7 44 24 08 08 00 00 movl $0x8,0x8(%esp)
80105141: 00
80105142: 89 44 24 04 mov %eax,0x4(%esp)
80105146: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010514d: e8 2e f4 ff ff call 80104580 <argptr>
80105152: 85 c0 test %eax,%eax
80105154: 78 6d js 801051c3 <sys_pipe+0x93>
return -1;
if(pipealloc(&rf, &wf) < 0)
80105156: 8d 45 f4 lea -0xc(%ebp),%eax
80105159: 89 44 24 04 mov %eax,0x4(%esp)
8010515d: 8d 45 f0 lea -0x10(%ebp),%eax
80105160: 89 04 24 mov %eax,(%esp)
80105163: e8 f8 df ff ff call 80103160 <pipealloc>
80105168: 85 c0 test %eax,%eax
8010516a: 78 57 js 801051c3 <sys_pipe+0x93>
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
8010516c: 8b 45 f0 mov -0x10(%ebp),%eax
8010516f: e8 1c f5 ff ff call 80104690 <fdalloc>
80105174: 85 c0 test %eax,%eax
80105176: 89 c3 mov %eax,%ebx
80105178: 78 33 js 801051ad <sys_pipe+0x7d>
8010517a: 8b 45 f4 mov -0xc(%ebp),%eax
8010517d: e8 0e f5 ff ff call 80104690 <fdalloc>
80105182: 85 c0 test %eax,%eax
80105184: 78 1a js 801051a0 <sys_pipe+0x70>
myproc()->ofile[fd0] = 0;
fileclose(rf);
fileclose(wf);
return -1;
}
fd[0] = fd0;
80105186: 8b 55 ec mov -0x14(%ebp),%edx
80105189: 89 1a mov %ebx,(%edx)
fd[1] = fd1;
8010518b: 8b 55 ec mov -0x14(%ebp),%edx
8010518e: 89 42 04 mov %eax,0x4(%edx)
return 0;
}
80105191: 83 c4 24 add $0x24,%esp
return 0;
80105194: 31 c0 xor %eax,%eax
}
80105196: 5b pop %ebx
80105197: 5d pop %ebp
80105198: c3 ret
80105199: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
myproc()->ofile[fd0] = 0;
801051a0: e8 eb e4 ff ff call 80103690 <myproc>
801051a5: c7 44 98 28 00 00 00 movl $0x0,0x28(%eax,%ebx,4)
801051ac: 00
fileclose(rf);
801051ad: 8b 45 f0 mov -0x10(%ebp),%eax
801051b0: 89 04 24 mov %eax,(%esp)
801051b3: e8 58 bc ff ff call 80100e10 <fileclose>
fileclose(wf);
801051b8: 8b 45 f4 mov -0xc(%ebp),%eax
801051bb: 89 04 24 mov %eax,(%esp)
801051be: e8 4d bc ff ff call 80100e10 <fileclose>
}
801051c3: 83 c4 24 add $0x24,%esp
return -1;
801051c6: b8 ff ff ff ff mov $0xffffffff,%eax
}
801051cb: 5b pop %ebx
801051cc: 5d pop %ebp
801051cd: c3 ret
801051ce: 66 90 xchg %ax,%ax
801051d0 <sys_shm_open>:
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
int sys_shm_open(void) {
801051d0: 55 push %ebp
801051d1: 89 e5 mov %esp,%ebp
801051d3: 83 ec 28 sub $0x28,%esp
int id;
char **pointer;
if(argint(0, &id) < 0)
801051d6: 8d 45 f0 lea -0x10(%ebp),%eax
801051d9: 89 44 24 04 mov %eax,0x4(%esp)
801051dd: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801051e4: e8 57 f3 ff ff call 80104540 <argint>
801051e9: 85 c0 test %eax,%eax
801051eb: 78 33 js 80105220 <sys_shm_open+0x50>
return -1;
if(argptr(1, (char **) (&pointer),4)<0)
801051ed: 8d 45 f4 lea -0xc(%ebp),%eax
801051f0: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
801051f7: 00
801051f8: 89 44 24 04 mov %eax,0x4(%esp)
801051fc: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105203: e8 78 f3 ff ff call 80104580 <argptr>
80105208: 85 c0 test %eax,%eax
8010520a: 78 14 js 80105220 <sys_shm_open+0x50>
return -1;
return shm_open(id, pointer);
8010520c: 8b 45 f4 mov -0xc(%ebp),%eax
8010520f: 89 44 24 04 mov %eax,0x4(%esp)
80105213: 8b 45 f0 mov -0x10(%ebp),%eax
80105216: 89 04 24 mov %eax,(%esp)
80105219: e8 f2 1b 00 00 call 80106e10 <shm_open>
}
8010521e: c9 leave
8010521f: c3 ret
return -1;
80105220: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105225: c9 leave
80105226: c3 ret
80105227: 89 f6 mov %esi,%esi
80105229: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105230 <sys_shm_close>:
int sys_shm_close(void) {
80105230: 55 push %ebp
80105231: 89 e5 mov %esp,%ebp
80105233: 83 ec 28 sub $0x28,%esp
int id;
if(argint(0, &id) < 0)
80105236: 8d 45 f4 lea -0xc(%ebp),%eax
80105239: 89 44 24 04 mov %eax,0x4(%esp)
8010523d: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105244: e8 f7 f2 ff ff call 80104540 <argint>
80105249: 85 c0 test %eax,%eax
8010524b: 78 13 js 80105260 <sys_shm_close+0x30>
return -1;
return shm_close(id);
8010524d: 8b 45 f4 mov -0xc(%ebp),%eax
80105250: 89 04 24 mov %eax,(%esp)
80105253: e8 c8 1b 00 00 call 80106e20 <shm_close>
}
80105258: c9 leave
80105259: c3 ret
8010525a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80105260: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105265: c9 leave
80105266: c3 ret
80105267: 89 f6 mov %esi,%esi
80105269: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105270 <sys_fork>:
int
sys_fork(void)
{
80105270: 55 push %ebp
80105271: 89 e5 mov %esp,%ebp
return fork();
}
80105273: 5d pop %ebp
return fork();
80105274: e9 c7 e5 ff ff jmp 80103840 <fork>
80105279: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105280 <sys_exit>:
int
sys_exit(void)
{
80105280: 55 push %ebp
80105281: 89 e5 mov %esp,%ebp
80105283: 83 ec 08 sub $0x8,%esp
exit();
80105286: e8 05 e8 ff ff call 80103a90 <exit>
return 0; // not reached
}
8010528b: 31 c0 xor %eax,%eax
8010528d: c9 leave
8010528e: c3 ret
8010528f: 90 nop
80105290 <sys_wait>:
int
sys_wait(void)
{
80105290: 55 push %ebp
80105291: 89 e5 mov %esp,%ebp
return wait();
}
80105293: 5d pop %ebp
return wait();
80105294: e9 07 ea ff ff jmp 80103ca0 <wait>
80105299: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801052a0 <sys_kill>:
int
sys_kill(void)
{
801052a0: 55 push %ebp
801052a1: 89 e5 mov %esp,%ebp
801052a3: 83 ec 28 sub $0x28,%esp
int pid;
if(argint(0, &pid) < 0)
801052a6: 8d 45 f4 lea -0xc(%ebp),%eax
801052a9: 89 44 24 04 mov %eax,0x4(%esp)
801052ad: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801052b4: e8 87 f2 ff ff call 80104540 <argint>
801052b9: 85 c0 test %eax,%eax
801052bb: 78 13 js 801052d0 <sys_kill+0x30>
return -1;
return kill(pid);
801052bd: 8b 45 f4 mov -0xc(%ebp),%eax
801052c0: 89 04 24 mov %eax,(%esp)
801052c3: e8 18 eb ff ff call 80103de0 <kill>
}
801052c8: c9 leave
801052c9: c3 ret
801052ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
801052d0: b8 ff ff ff ff mov $0xffffffff,%eax
}
801052d5: c9 leave
801052d6: c3 ret
801052d7: 89 f6 mov %esi,%esi
801052d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801052e0 <sys_getpid>:
int
sys_getpid(void)
{
801052e0: 55 push %ebp
801052e1: 89 e5 mov %esp,%ebp
801052e3: 83 ec 08 sub $0x8,%esp
return myproc()->pid;
801052e6: e8 a5 e3 ff ff call 80103690 <myproc>
801052eb: 8b 40 10 mov 0x10(%eax),%eax
}
801052ee: c9 leave
801052ef: c3 ret
801052f0 <sys_sbrk>:
int
sys_sbrk(void)
{
801052f0: 55 push %ebp
801052f1: 89 e5 mov %esp,%ebp
801052f3: 53 push %ebx
801052f4: 83 ec 24 sub $0x24,%esp
int addr;
int n;
if(argint(0, &n) < 0)
801052f7: 8d 45 f4 lea -0xc(%ebp),%eax
801052fa: 89 44 24 04 mov %eax,0x4(%esp)
801052fe: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105305: e8 36 f2 ff ff call 80104540 <argint>
8010530a: 85 c0 test %eax,%eax
8010530c: 78 22 js 80105330 <sys_sbrk+0x40>
return -1;
addr = myproc()->sz;
8010530e: e8 7d e3 ff ff call 80103690 <myproc>
if(growproc(n) < 0)
80105313: 8b 55 f4 mov -0xc(%ebp),%edx
addr = myproc()->sz;
80105316: 8b 18 mov (%eax),%ebx
if(growproc(n) < 0)
80105318: 89 14 24 mov %edx,(%esp)
8010531b: e8 b0 e4 ff ff call 801037d0 <growproc>
80105320: 85 c0 test %eax,%eax
80105322: 78 0c js 80105330 <sys_sbrk+0x40>
return -1;
return addr;
80105324: 89 d8 mov %ebx,%eax
}
80105326: 83 c4 24 add $0x24,%esp
80105329: 5b pop %ebx
8010532a: 5d pop %ebp
8010532b: c3 ret
8010532c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80105330: b8 ff ff ff ff mov $0xffffffff,%eax
80105335: eb ef jmp 80105326 <sys_sbrk+0x36>
80105337: 89 f6 mov %esi,%esi
80105339: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105340 <sys_sleep>:
int
sys_sleep(void)
{
80105340: 55 push %ebp
80105341: 89 e5 mov %esp,%ebp
80105343: 53 push %ebx
80105344: 83 ec 24 sub $0x24,%esp
int n;
uint ticks0;
if(argint(0, &n) < 0)
80105347: 8d 45 f4 lea -0xc(%ebp),%eax
8010534a: 89 44 24 04 mov %eax,0x4(%esp)
8010534e: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105355: e8 e6 f1 ff ff call 80104540 <argint>
8010535a: 85 c0 test %eax,%eax
8010535c: 78 7e js 801053dc <sys_sleep+0x9c>
return -1;
acquire(&tickslock);
8010535e: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
80105365: e8 c6 ed ff ff call 80104130 <acquire>
ticks0 = ticks;
while(ticks - ticks0 < n){
8010536a: 8b 55 f4 mov -0xc(%ebp),%edx
ticks0 = ticks;
8010536d: 8b 1d a0 55 11 80 mov 0x801155a0,%ebx
while(ticks - ticks0 < n){
80105373: 85 d2 test %edx,%edx
80105375: 75 29 jne 801053a0 <sys_sleep+0x60>
80105377: eb 4f jmp 801053c8 <sys_sleep+0x88>
80105379: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc()->killed){
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
80105380: c7 44 24 04 60 4d 11 movl $0x80114d60,0x4(%esp)
80105387: 80
80105388: c7 04 24 a0 55 11 80 movl $0x801155a0,(%esp)
8010538f: e8 5c e8 ff ff call 80103bf0 <sleep>
while(ticks - ticks0 < n){
80105394: a1 a0 55 11 80 mov 0x801155a0,%eax
80105399: 29 d8 sub %ebx,%eax
8010539b: 3b 45 f4 cmp -0xc(%ebp),%eax
8010539e: 73 28 jae 801053c8 <sys_sleep+0x88>
if(myproc()->killed){
801053a0: e8 eb e2 ff ff call 80103690 <myproc>
801053a5: 8b 40 24 mov 0x24(%eax),%eax
801053a8: 85 c0 test %eax,%eax
801053aa: 74 d4 je 80105380 <sys_sleep+0x40>
release(&tickslock);
801053ac: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
801053b3: e8 68 ee ff ff call 80104220 <release>
return -1;
801053b8: b8 ff ff ff ff mov $0xffffffff,%eax
}
release(&tickslock);
return 0;
}
801053bd: 83 c4 24 add $0x24,%esp
801053c0: 5b pop %ebx
801053c1: 5d pop %ebp
801053c2: c3 ret
801053c3: 90 nop
801053c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
release(&tickslock);
801053c8: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
801053cf: e8 4c ee ff ff call 80104220 <release>
}
801053d4: 83 c4 24 add $0x24,%esp
return 0;
801053d7: 31 c0 xor %eax,%eax
}
801053d9: 5b pop %ebx
801053da: 5d pop %ebp
801053db: c3 ret
return -1;
801053dc: b8 ff ff ff ff mov $0xffffffff,%eax
801053e1: eb da jmp 801053bd <sys_sleep+0x7d>
801053e3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801053e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801053f0 <sys_uptime>:
// return how many clock tick interrupts have occurred
// since start.
int
sys_uptime(void)
{
801053f0: 55 push %ebp
801053f1: 89 e5 mov %esp,%ebp
801053f3: 53 push %ebx
801053f4: 83 ec 14 sub $0x14,%esp
uint xticks;
acquire(&tickslock);
801053f7: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
801053fe: e8 2d ed ff ff call 80104130 <acquire>
xticks = ticks;
80105403: 8b 1d a0 55 11 80 mov 0x801155a0,%ebx
release(&tickslock);
80105409: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
80105410: e8 0b ee ff ff call 80104220 <release>
return xticks;
}
80105415: 83 c4 14 add $0x14,%esp
80105418: 89 d8 mov %ebx,%eax
8010541a: 5b pop %ebx
8010541b: 5d pop %ebp
8010541c: c3 ret
8010541d <alltraps>:
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
8010541d: 1e push %ds
pushl %es
8010541e: 06 push %es
pushl %fs
8010541f: 0f a0 push %fs
pushl %gs
80105421: 0f a8 push %gs
pushal
80105423: 60 pusha
# Set up data segments.
movw $(SEG_KDATA<<3), %ax
80105424: 66 b8 10 00 mov $0x10,%ax
movw %ax, %ds
80105428: 8e d8 mov %eax,%ds
movw %ax, %es
8010542a: 8e c0 mov %eax,%es
# Call trap(tf), where tf=%esp
pushl %esp
8010542c: 54 push %esp
call trap
8010542d: e8 de 00 00 00 call 80105510 <trap>
addl $4, %esp
80105432: 83 c4 04 add $0x4,%esp
80105435 <trapret>:
# Return falls through to trapret...
.globl trapret
trapret:
popal
80105435: 61 popa
popl %gs
80105436: 0f a9 pop %gs
popl %fs
80105438: 0f a1 pop %fs
popl %es
8010543a: 07 pop %es
popl %ds
8010543b: 1f pop %ds
addl $0x8, %esp # trapno and errcode
8010543c: 83 c4 08 add $0x8,%esp
iret
8010543f: cf iret
80105440 <tvinit>:
void
tvinit(void)
{
int i;
for(i = 0; i < 256; i++)
80105440: 31 c0 xor %eax,%eax
80105442: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
80105448: 8b 14 85 08 a0 10 80 mov -0x7fef5ff8(,%eax,4),%edx
8010544f: b9 08 00 00 00 mov $0x8,%ecx
80105454: 66 89 0c c5 a2 4d 11 mov %cx,-0x7feeb25e(,%eax,8)
8010545b: 80
8010545c: c6 04 c5 a4 4d 11 80 movb $0x0,-0x7feeb25c(,%eax,8)
80105463: 00
80105464: c6 04 c5 a5 4d 11 80 movb $0x8e,-0x7feeb25b(,%eax,8)
8010546b: 8e
8010546c: 66 89 14 c5 a0 4d 11 mov %dx,-0x7feeb260(,%eax,8)
80105473: 80
80105474: c1 ea 10 shr $0x10,%edx
80105477: 66 89 14 c5 a6 4d 11 mov %dx,-0x7feeb25a(,%eax,8)
8010547e: 80
for(i = 0; i < 256; i++)
8010547f: 83 c0 01 add $0x1,%eax
80105482: 3d 00 01 00 00 cmp $0x100,%eax
80105487: 75 bf jne 80105448 <tvinit+0x8>
{
80105489: 55 push %ebp
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
8010548a: ba 08 00 00 00 mov $0x8,%edx
{
8010548f: 89 e5 mov %esp,%ebp
80105491: 83 ec 18 sub $0x18,%esp
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
80105494: a1 08 a1 10 80 mov 0x8010a108,%eax
initlock(&tickslock, "time");
80105499: c7 44 24 04 d9 75 10 movl $0x801075d9,0x4(%esp)
801054a0: 80
801054a1: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
801054a8: 66 89 15 a2 4f 11 80 mov %dx,0x80114fa2
801054af: 66 a3 a0 4f 11 80 mov %ax,0x80114fa0
801054b5: c1 e8 10 shr $0x10,%eax
801054b8: c6 05 a4 4f 11 80 00 movb $0x0,0x80114fa4
801054bf: c6 05 a5 4f 11 80 ef movb $0xef,0x80114fa5
801054c6: 66 a3 a6 4f 11 80 mov %ax,0x80114fa6
initlock(&tickslock, "time");
801054cc: e8 6f eb ff ff call 80104040 <initlock>
}
801054d1: c9 leave
801054d2: c3 ret
801054d3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801054d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801054e0 <idtinit>:
void
idtinit(void)
{
801054e0: 55 push %ebp
pd[0] = size-1;
801054e1: b8 ff 07 00 00 mov $0x7ff,%eax
801054e6: 89 e5 mov %esp,%ebp
801054e8: 83 ec 10 sub $0x10,%esp
801054eb: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
801054ef: b8 a0 4d 11 80 mov $0x80114da0,%eax
801054f4: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
801054f8: c1 e8 10 shr $0x10,%eax
801054fb: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lidt (%0)" : : "r" (pd));
801054ff: 8d 45 fa lea -0x6(%ebp),%eax
80105502: 0f 01 18 lidtl (%eax)
lidt(idt, sizeof(idt));
}
80105505: c9 leave
80105506: c3 ret
80105507: 89 f6 mov %esi,%esi
80105509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105510 <trap>:
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
80105510: 55 push %ebp
80105511: 89 e5 mov %esp,%ebp
80105513: 57 push %edi
80105514: 56 push %esi
80105515: 53 push %ebx
80105516: 83 ec 3c sub $0x3c,%esp
80105519: 8b 5d 08 mov 0x8(%ebp),%ebx
if(tf->trapno == T_SYSCALL){
8010551c: 8b 43 30 mov 0x30(%ebx),%eax
8010551f: 83 f8 40 cmp $0x40,%eax
80105522: 0f 84 a8 01 00 00 je 801056d0 <trap+0x1c0>
if(myproc()->killed)
exit();
return;
}
switch(tf->trapno){
80105528: 83 e8 0e sub $0xe,%eax
8010552b: 83 f8 31 cmp $0x31,%eax
8010552e: 0f 87 dc 01 00 00 ja 80105710 <trap+0x200>
80105534: ff 24 85 e8 76 10 80 jmp *-0x7fef8918(,%eax,4)
8010553b: 90 nop
8010553c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
static inline uint
rcr2(void)
{
uint val;
asm volatile("movl %%cr2,%0" : "=r" (val));
80105540: 0f 20 d6 mov %cr2,%esi
lapiceoi();
break;
//lab3
case T_PGFLT:
if((rcr2() > (STACKTOP - (myproc()->numPage*PGSIZE)))) {
80105543: e8 48 e1 ff ff call 80103690 <myproc>
80105548: 8b 40 7c mov 0x7c(%eax),%eax
8010554b: f7 d8 neg %eax
8010554d: c1 e0 0c shl $0xc,%eax
80105550: 05 fc ff ff 7f add $0x7ffffffc,%eax
80105555: 39 f0 cmp %esi,%eax
80105557: 0f 82 e1 02 00 00 jb 8010583e <trap+0x32e>
panic("out of bounds");
}
else {
if(allocuvm(myproc()->pgdir, (STACKTOP - (myproc()->numPage+1) * PGSIZE), STACKTOP - (myproc()->numPage) * PGSIZE) == 0) {
8010555d: e8 2e e1 ff ff call 80103690 <myproc>
80105562: 8b 40 7c mov 0x7c(%eax),%eax
80105565: f7 d8 neg %eax
80105567: c1 e0 0c shl $0xc,%eax
8010556a: 8d b0 fc ff ff 7f lea 0x7ffffffc(%eax),%esi
80105570: e8 1b e1 ff ff call 80103690 <myproc>
80105575: 8b 40 7c mov 0x7c(%eax),%eax
80105578: f7 d0 not %eax
8010557a: c1 e0 0c shl $0xc,%eax
8010557d: 8d b8 fc ff ff 7f lea 0x7ffffffc(%eax),%edi
80105583: e8 08 e1 ff ff call 80103690 <myproc>
80105588: 89 74 24 08 mov %esi,0x8(%esp)
8010558c: 89 7c 24 04 mov %edi,0x4(%esp)
80105590: 8b 40 04 mov 0x4(%eax),%eax
80105593: 89 04 24 mov %eax,(%esp)
80105596: e8 45 13 00 00 call 801068e0 <allocuvm>
8010559b: 85 c0 test %eax,%eax
8010559d: 0f 85 fd 01 00 00 jne 801057a0 <trap+0x290>
cprintf("Allocuvm failed; # of pages allocated: %d\n", myproc()->numPage);
801055a3: e8 e8 e0 ff ff call 80103690 <myproc>
801055a8: 8b 40 7c mov 0x7c(%eax),%eax
801055ab: c7 04 24 18 76 10 80 movl $0x80107618,(%esp)
801055b2: 89 44 24 04 mov %eax,0x4(%esp)
801055b6: e8 95 b0 ff ff call 80100650 <cprintf>
exit();
801055bb: e8 d0 e4 ff ff call 80103a90 <exit>
}
// 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(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
801055c0: e8 cb e0 ff ff call 80103690 <myproc>
801055c5: 85 c0 test %eax,%eax
801055c7: 74 0c je 801055d5 <trap+0xc5>
801055c9: e8 c2 e0 ff ff call 80103690 <myproc>
801055ce: 8b 50 24 mov 0x24(%eax),%edx
801055d1: 85 d2 test %edx,%edx
801055d3: 75 4b jne 80105620 <trap+0x110>
exit();
// Force process to give up CPU on clock tick.
// If interrupts were on while locks held, would need to check nlock.
if(myproc() && myproc()->state == RUNNING &&
801055d5: e8 b6 e0 ff ff call 80103690 <myproc>
801055da: 85 c0 test %eax,%eax
801055dc: 74 0d je 801055eb <trap+0xdb>
801055de: 66 90 xchg %ax,%ax
801055e0: e8 ab e0 ff ff call 80103690 <myproc>
801055e5: 83 78 0c 04 cmpl $0x4,0xc(%eax)
801055e9: 74 4d je 80105638 <trap+0x128>
tf->trapno == T_IRQ0+IRQ_TIMER)
yield();
// Check if the process has been killed since we yielded
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
801055eb: e8 a0 e0 ff ff call 80103690 <myproc>
801055f0: 85 c0 test %eax,%eax
801055f2: 74 1d je 80105611 <trap+0x101>
801055f4: e8 97 e0 ff ff call 80103690 <myproc>
801055f9: 8b 40 24 mov 0x24(%eax),%eax
801055fc: 85 c0 test %eax,%eax
801055fe: 74 11 je 80105611 <trap+0x101>
80105600: 0f b7 43 3c movzwl 0x3c(%ebx),%eax
80105604: 83 e0 03 and $0x3,%eax
80105607: 66 83 f8 03 cmp $0x3,%ax
8010560b: 0f 84 ec 00 00 00 je 801056fd <trap+0x1ed>
exit();
}
80105611: 83 c4 3c add $0x3c,%esp
80105614: 5b pop %ebx
80105615: 5e pop %esi
80105616: 5f pop %edi
80105617: 5d pop %ebp
80105618: c3 ret
80105619: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105620: 0f b7 43 3c movzwl 0x3c(%ebx),%eax
80105624: 83 e0 03 and $0x3,%eax
80105627: 66 83 f8 03 cmp $0x3,%ax
8010562b: 75 a8 jne 801055d5 <trap+0xc5>
exit();
8010562d: e8 5e e4 ff ff call 80103a90 <exit>
80105632: eb a1 jmp 801055d5 <trap+0xc5>
80105634: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc() && myproc()->state == RUNNING &&
80105638: 83 7b 30 20 cmpl $0x20,0x30(%ebx)
8010563c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105640: 75 a9 jne 801055eb <trap+0xdb>
yield();
80105642: e8 69 e5 ff ff call 80103bb0 <yield>
80105647: eb a2 jmp 801055eb <trap+0xdb>
80105649: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(cpuid() == 0){
80105650: e8 1b e0 ff ff call 80103670 <cpuid>
80105655: 85 c0 test %eax,%eax
80105657: 0f 84 7b 01 00 00 je 801057d8 <trap+0x2c8>
8010565d: 8d 76 00 lea 0x0(%esi),%esi
lapiceoi();
80105660: e8 0b d1 ff ff call 80102770 <lapiceoi>
break;
80105665: e9 56 ff ff ff jmp 801055c0 <trap+0xb0>
8010566a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
kbdintr();
80105670: e8 4b cf ff ff call 801025c0 <kbdintr>
lapiceoi();
80105675: e8 f6 d0 ff ff call 80102770 <lapiceoi>
break;
8010567a: e9 41 ff ff ff jmp 801055c0 <trap+0xb0>
8010567f: 90 nop
uartintr();
80105680: e8 eb 02 00 00 call 80105970 <uartintr>
lapiceoi();
80105685: e8 e6 d0 ff ff call 80102770 <lapiceoi>
break;
8010568a: e9 31 ff ff ff jmp 801055c0 <trap+0xb0>
8010568f: 90 nop
cprintf("cpu%d: spurious interrupt at %x:%x\n",
80105690: 8b 7b 38 mov 0x38(%ebx),%edi
80105693: 0f b7 73 3c movzwl 0x3c(%ebx),%esi
80105697: e8 d4 df ff ff call 80103670 <cpuid>
8010569c: c7 04 24 f4 75 10 80 movl $0x801075f4,(%esp)
801056a3: 89 7c 24 0c mov %edi,0xc(%esp)
801056a7: 89 74 24 08 mov %esi,0x8(%esp)
801056ab: 89 44 24 04 mov %eax,0x4(%esp)
801056af: e8 9c af ff ff call 80100650 <cprintf>
801056b4: eb a7 jmp 8010565d <trap+0x14d>
801056b6: 66 90 xchg %ax,%ax
ideintr();
801056b8: e8 b3 c9 ff ff call 80102070 <ideintr>
801056bd: 8d 76 00 lea 0x0(%esi),%esi
lapiceoi();
801056c0: e8 ab d0 ff ff call 80102770 <lapiceoi>
break;
801056c5: e9 f6 fe ff ff jmp 801055c0 <trap+0xb0>
801056ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(myproc()->killed)
801056d0: e8 bb df ff ff call 80103690 <myproc>
801056d5: 8b 70 24 mov 0x24(%eax),%esi
801056d8: 85 f6 test %esi,%esi
801056da: 0f 85 e8 00 00 00 jne 801057c8 <trap+0x2b8>
myproc()->tf = tf;
801056e0: e8 ab df ff ff call 80103690 <myproc>
801056e5: 89 58 18 mov %ebx,0x18(%eax)
syscall();
801056e8: e8 33 ef ff ff call 80104620 <syscall>
if(myproc()->killed)
801056ed: e8 9e df ff ff call 80103690 <myproc>
801056f2: 8b 48 24 mov 0x24(%eax),%ecx
801056f5: 85 c9 test %ecx,%ecx
801056f7: 0f 84 14 ff ff ff je 80105611 <trap+0x101>
}
801056fd: 83 c4 3c add $0x3c,%esp
80105700: 5b pop %ebx
80105701: 5e pop %esi
80105702: 5f pop %edi
80105703: 5d pop %ebp
exit();
80105704: e9 87 e3 ff ff jmp 80103a90 <exit>
80105709: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc() == 0 || (tf->cs&3) == 0){
80105710: e8 7b df ff ff call 80103690 <myproc>
80105715: 85 c0 test %eax,%eax
80105717: 0f 84 eb 00 00 00 je 80105808 <trap+0x2f8>
8010571d: f6 43 3c 03 testb $0x3,0x3c(%ebx)
80105721: 0f 84 e1 00 00 00 je 80105808 <trap+0x2f8>
80105727: 0f 20 d1 mov %cr2,%ecx
cprintf("pid %d %s: trap %d err %d on cpu %d "
8010572a: 8b 53 38 mov 0x38(%ebx),%edx
8010572d: 89 4d d8 mov %ecx,-0x28(%ebp)
80105730: 89 55 dc mov %edx,-0x24(%ebp)
80105733: e8 38 df ff ff call 80103670 <cpuid>
80105738: 8b 73 30 mov 0x30(%ebx),%esi
8010573b: 89 c7 mov %eax,%edi
8010573d: 8b 43 34 mov 0x34(%ebx),%eax
80105740: 89 45 e4 mov %eax,-0x1c(%ebp)
myproc()->pid, myproc()->name, tf->trapno,
80105743: e8 48 df ff ff call 80103690 <myproc>
80105748: 89 45 e0 mov %eax,-0x20(%ebp)
8010574b: e8 40 df ff ff call 80103690 <myproc>
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105750: 8b 55 dc mov -0x24(%ebp),%edx
80105753: 89 74 24 0c mov %esi,0xc(%esp)
myproc()->pid, myproc()->name, tf->trapno,
80105757: 8b 75 e0 mov -0x20(%ebp),%esi
cprintf("pid %d %s: trap %d err %d on cpu %d "
8010575a: 8b 4d d8 mov -0x28(%ebp),%ecx
8010575d: 89 7c 24 14 mov %edi,0x14(%esp)
80105761: 89 54 24 18 mov %edx,0x18(%esp)
80105765: 8b 55 e4 mov -0x1c(%ebp),%edx
myproc()->pid, myproc()->name, tf->trapno,
80105768: 83 c6 6c add $0x6c,%esi
cprintf("pid %d %s: trap %d err %d on cpu %d "
8010576b: 89 4c 24 1c mov %ecx,0x1c(%esp)
myproc()->pid, myproc()->name, tf->trapno,
8010576f: 89 74 24 08 mov %esi,0x8(%esp)
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105773: 89 54 24 10 mov %edx,0x10(%esp)
80105777: 8b 40 10 mov 0x10(%eax),%eax
8010577a: c7 04 24 a4 76 10 80 movl $0x801076a4,(%esp)
80105781: 89 44 24 04 mov %eax,0x4(%esp)
80105785: e8 c6 ae ff ff call 80100650 <cprintf>
myproc()->killed = 1;
8010578a: e8 01 df ff ff call 80103690 <myproc>
8010578f: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
80105796: e9 25 fe ff ff jmp 801055c0 <trap+0xb0>
8010579b: 90 nop
8010579c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
myproc()->numPage += 1;
801057a0: e8 eb de ff ff call 80103690 <myproc>
801057a5: 83 40 7c 01 addl $0x1,0x7c(%eax)
cprintf("Allocuvm success; # of pages allocated: %d\n", myproc()->numPage);
801057a9: e8 e2 de ff ff call 80103690 <myproc>
801057ae: 8b 40 7c mov 0x7c(%eax),%eax
801057b1: c7 04 24 44 76 10 80 movl $0x80107644,(%esp)
801057b8: 89 44 24 04 mov %eax,0x4(%esp)
801057bc: e8 8f ae ff ff call 80100650 <cprintf>
801057c1: e9 fa fd ff ff jmp 801055c0 <trap+0xb0>
801057c6: 66 90 xchg %ax,%ax
exit();
801057c8: e8 c3 e2 ff ff call 80103a90 <exit>
801057cd: 8d 76 00 lea 0x0(%esi),%esi
801057d0: e9 0b ff ff ff jmp 801056e0 <trap+0x1d0>
801057d5: 8d 76 00 lea 0x0(%esi),%esi
acquire(&tickslock);
801057d8: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
801057df: e8 4c e9 ff ff call 80104130 <acquire>
wakeup(&ticks);
801057e4: c7 04 24 a0 55 11 80 movl $0x801155a0,(%esp)
ticks++;
801057eb: 83 05 a0 55 11 80 01 addl $0x1,0x801155a0
wakeup(&ticks);
801057f2: e8 89 e5 ff ff call 80103d80 <wakeup>
release(&tickslock);
801057f7: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp)
801057fe: e8 1d ea ff ff call 80104220 <release>
80105803: e9 55 fe ff ff jmp 8010565d <trap+0x14d>
80105808: 0f 20 d7 mov %cr2,%edi
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
8010580b: 8b 73 38 mov 0x38(%ebx),%esi
8010580e: e8 5d de ff ff call 80103670 <cpuid>
80105813: 89 7c 24 10 mov %edi,0x10(%esp)
80105817: 89 74 24 0c mov %esi,0xc(%esp)
8010581b: 89 44 24 08 mov %eax,0x8(%esp)
8010581f: 8b 43 30 mov 0x30(%ebx),%eax
80105822: c7 04 24 70 76 10 80 movl $0x80107670,(%esp)
80105829: 89 44 24 04 mov %eax,0x4(%esp)
8010582d: e8 1e ae ff ff call 80100650 <cprintf>
panic("trap");
80105832: c7 04 24 ec 75 10 80 movl $0x801075ec,(%esp)
80105839: e8 22 ab ff ff call 80100360 <panic>
panic("out of bounds");
8010583e: c7 04 24 de 75 10 80 movl $0x801075de,(%esp)
80105845: e8 16 ab ff ff call 80100360 <panic>
8010584a: 66 90 xchg %ax,%ax
8010584c: 66 90 xchg %ax,%ax
8010584e: 66 90 xchg %ax,%ax
80105850 <uartgetc>:
}
static int
uartgetc(void)
{
if(!uart)
80105850: a1 bc a5 10 80 mov 0x8010a5bc,%eax
{
80105855: 55 push %ebp
80105856: 89 e5 mov %esp,%ebp
if(!uart)
80105858: 85 c0 test %eax,%eax
8010585a: 74 14 je 80105870 <uartgetc+0x20>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010585c: ba fd 03 00 00 mov $0x3fd,%edx
80105861: ec in (%dx),%al
return -1;
if(!(inb(COM1+5) & 0x01))
80105862: a8 01 test $0x1,%al
80105864: 74 0a je 80105870 <uartgetc+0x20>
80105866: b2 f8 mov $0xf8,%dl
80105868: ec in (%dx),%al
return -1;
return inb(COM1+0);
80105869: 0f b6 c0 movzbl %al,%eax
}
8010586c: 5d pop %ebp
8010586d: c3 ret
8010586e: 66 90 xchg %ax,%ax
return -1;
80105870: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105875: 5d pop %ebp
80105876: c3 ret
80105877: 89 f6 mov %esi,%esi
80105879: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105880 <uartputc>:
if(!uart)
80105880: a1 bc a5 10 80 mov 0x8010a5bc,%eax
80105885: 85 c0 test %eax,%eax
80105887: 74 3f je 801058c8 <uartputc+0x48>
{
80105889: 55 push %ebp
8010588a: 89 e5 mov %esp,%ebp
8010588c: 56 push %esi
8010588d: be fd 03 00 00 mov $0x3fd,%esi
80105892: 53 push %ebx
if(!uart)
80105893: bb 80 00 00 00 mov $0x80,%ebx
{
80105898: 83 ec 10 sub $0x10,%esp
8010589b: eb 14 jmp 801058b1 <uartputc+0x31>
8010589d: 8d 76 00 lea 0x0(%esi),%esi
microdelay(10);
801058a0: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
801058a7: e8 e4 ce ff ff call 80102790 <microdelay>
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
801058ac: 83 eb 01 sub $0x1,%ebx
801058af: 74 07 je 801058b8 <uartputc+0x38>
801058b1: 89 f2 mov %esi,%edx
801058b3: ec in (%dx),%al
801058b4: a8 20 test $0x20,%al
801058b6: 74 e8 je 801058a0 <uartputc+0x20>
outb(COM1+0, c);
801058b8: 0f b6 45 08 movzbl 0x8(%ebp),%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801058bc: ba f8 03 00 00 mov $0x3f8,%edx
801058c1: ee out %al,(%dx)
}
801058c2: 83 c4 10 add $0x10,%esp
801058c5: 5b pop %ebx
801058c6: 5e pop %esi
801058c7: 5d pop %ebp
801058c8: f3 c3 repz ret
801058ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801058d0 <uartinit>:
{
801058d0: 55 push %ebp
801058d1: 31 c9 xor %ecx,%ecx
801058d3: 89 e5 mov %esp,%ebp
801058d5: 89 c8 mov %ecx,%eax
801058d7: 57 push %edi
801058d8: bf fa 03 00 00 mov $0x3fa,%edi
801058dd: 56 push %esi
801058de: 89 fa mov %edi,%edx
801058e0: 53 push %ebx
801058e1: 83 ec 1c sub $0x1c,%esp
801058e4: ee out %al,(%dx)
801058e5: be fb 03 00 00 mov $0x3fb,%esi
801058ea: b8 80 ff ff ff mov $0xffffff80,%eax
801058ef: 89 f2 mov %esi,%edx
801058f1: ee out %al,(%dx)
801058f2: b8 0c 00 00 00 mov $0xc,%eax
801058f7: b2 f8 mov $0xf8,%dl
801058f9: ee out %al,(%dx)
801058fa: bb f9 03 00 00 mov $0x3f9,%ebx
801058ff: 89 c8 mov %ecx,%eax
80105901: 89 da mov %ebx,%edx
80105903: ee out %al,(%dx)
80105904: b8 03 00 00 00 mov $0x3,%eax
80105909: 89 f2 mov %esi,%edx
8010590b: ee out %al,(%dx)
8010590c: b2 fc mov $0xfc,%dl
8010590e: 89 c8 mov %ecx,%eax
80105910: ee out %al,(%dx)
80105911: b8 01 00 00 00 mov $0x1,%eax
80105916: 89 da mov %ebx,%edx
80105918: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80105919: b2 fd mov $0xfd,%dl
8010591b: ec in (%dx),%al
if(inb(COM1+5) == 0xFF)
8010591c: 3c ff cmp $0xff,%al
8010591e: 74 42 je 80105962 <uartinit+0x92>
uart = 1;
80105920: c7 05 bc a5 10 80 01 movl $0x1,0x8010a5bc
80105927: 00 00 00
8010592a: 89 fa mov %edi,%edx
8010592c: ec in (%dx),%al
8010592d: b2 f8 mov $0xf8,%dl
8010592f: ec in (%dx),%al
ioapicenable(IRQ_COM1, 0);
80105930: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105937: 00
for(p="xv6...\n"; *p; p++)
80105938: bb b0 77 10 80 mov $0x801077b0,%ebx
ioapicenable(IRQ_COM1, 0);
8010593d: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80105944: e8 57 c9 ff ff call 801022a0 <ioapicenable>
for(p="xv6...\n"; *p; p++)
80105949: b8 78 00 00 00 mov $0x78,%eax
8010594e: 66 90 xchg %ax,%ax
uartputc(*p);
80105950: 89 04 24 mov %eax,(%esp)
for(p="xv6...\n"; *p; p++)
80105953: 83 c3 01 add $0x1,%ebx
uartputc(*p);
80105956: e8 25 ff ff ff call 80105880 <uartputc>
for(p="xv6...\n"; *p; p++)
8010595b: 0f be 03 movsbl (%ebx),%eax
8010595e: 84 c0 test %al,%al
80105960: 75 ee jne 80105950 <uartinit+0x80>
}
80105962: 83 c4 1c add $0x1c,%esp
80105965: 5b pop %ebx
80105966: 5e pop %esi
80105967: 5f pop %edi
80105968: 5d pop %ebp
80105969: c3 ret
8010596a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80105970 <uartintr>:
void
uartintr(void)
{
80105970: 55 push %ebp
80105971: 89 e5 mov %esp,%ebp
80105973: 83 ec 18 sub $0x18,%esp
consoleintr(uartgetc);
80105976: c7 04 24 50 58 10 80 movl $0x80105850,(%esp)
8010597d: e8 2e ae ff ff call 801007b0 <consoleintr>
}
80105982: c9 leave
80105983: c3 ret
80105984 <vector0>:
# generated by vectors.pl - do not edit
# handlers
.globl alltraps
.globl vector0
vector0:
pushl $0
80105984: 6a 00 push $0x0
pushl $0
80105986: 6a 00 push $0x0
jmp alltraps
80105988: e9 90 fa ff ff jmp 8010541d <alltraps>
8010598d <vector1>:
.globl vector1
vector1:
pushl $0
8010598d: 6a 00 push $0x0
pushl $1
8010598f: 6a 01 push $0x1
jmp alltraps
80105991: e9 87 fa ff ff jmp 8010541d <alltraps>
80105996 <vector2>:
.globl vector2
vector2:
pushl $0
80105996: 6a 00 push $0x0
pushl $2
80105998: 6a 02 push $0x2
jmp alltraps
8010599a: e9 7e fa ff ff jmp 8010541d <alltraps>
8010599f <vector3>:
.globl vector3
vector3:
pushl $0
8010599f: 6a 00 push $0x0
pushl $3
801059a1: 6a 03 push $0x3
jmp alltraps
801059a3: e9 75 fa ff ff jmp 8010541d <alltraps>
801059a8 <vector4>:
.globl vector4
vector4:
pushl $0
801059a8: 6a 00 push $0x0
pushl $4
801059aa: 6a 04 push $0x4
jmp alltraps
801059ac: e9 6c fa ff ff jmp 8010541d <alltraps>
801059b1 <vector5>:
.globl vector5
vector5:
pushl $0
801059b1: 6a 00 push $0x0
pushl $5
801059b3: 6a 05 push $0x5
jmp alltraps
801059b5: e9 63 fa ff ff jmp 8010541d <alltraps>
801059ba <vector6>:
.globl vector6
vector6:
pushl $0
801059ba: 6a 00 push $0x0
pushl $6
801059bc: 6a 06 push $0x6
jmp alltraps
801059be: e9 5a fa ff ff jmp 8010541d <alltraps>
801059c3 <vector7>:
.globl vector7
vector7:
pushl $0
801059c3: 6a 00 push $0x0
pushl $7
801059c5: 6a 07 push $0x7
jmp alltraps
801059c7: e9 51 fa ff ff jmp 8010541d <alltraps>
801059cc <vector8>:
.globl vector8
vector8:
pushl $8
801059cc: 6a 08 push $0x8
jmp alltraps
801059ce: e9 4a fa ff ff jmp 8010541d <alltraps>
801059d3 <vector9>:
.globl vector9
vector9:
pushl $0
801059d3: 6a 00 push $0x0
pushl $9
801059d5: 6a 09 push $0x9
jmp alltraps
801059d7: e9 41 fa ff ff jmp 8010541d <alltraps>
801059dc <vector10>:
.globl vector10
vector10:
pushl $10
801059dc: 6a 0a push $0xa
jmp alltraps
801059de: e9 3a fa ff ff jmp 8010541d <alltraps>
801059e3 <vector11>:
.globl vector11
vector11:
pushl $11
801059e3: 6a 0b push $0xb
jmp alltraps
801059e5: e9 33 fa ff ff jmp 8010541d <alltraps>
801059ea <vector12>:
.globl vector12
vector12:
pushl $12
801059ea: 6a 0c push $0xc
jmp alltraps
801059ec: e9 2c fa ff ff jmp 8010541d <alltraps>
801059f1 <vector13>:
.globl vector13
vector13:
pushl $13
801059f1: 6a 0d push $0xd
jmp alltraps
801059f3: e9 25 fa ff ff jmp 8010541d <alltraps>
801059f8 <vector14>:
.globl vector14
vector14:
pushl $14
801059f8: 6a 0e push $0xe
jmp alltraps
801059fa: e9 1e fa ff ff jmp 8010541d <alltraps>
801059ff <vector15>:
.globl vector15
vector15:
pushl $0
801059ff: 6a 00 push $0x0
pushl $15
80105a01: 6a 0f push $0xf
jmp alltraps
80105a03: e9 15 fa ff ff jmp 8010541d <alltraps>
80105a08 <vector16>:
.globl vector16
vector16:
pushl $0
80105a08: 6a 00 push $0x0
pushl $16
80105a0a: 6a 10 push $0x10
jmp alltraps
80105a0c: e9 0c fa ff ff jmp 8010541d <alltraps>
80105a11 <vector17>:
.globl vector17
vector17:
pushl $17
80105a11: 6a 11 push $0x11
jmp alltraps
80105a13: e9 05 fa ff ff jmp 8010541d <alltraps>
80105a18 <vector18>:
.globl vector18
vector18:
pushl $0
80105a18: 6a 00 push $0x0
pushl $18
80105a1a: 6a 12 push $0x12
jmp alltraps
80105a1c: e9 fc f9 ff ff jmp 8010541d <alltraps>
80105a21 <vector19>:
.globl vector19
vector19:
pushl $0
80105a21: 6a 00 push $0x0
pushl $19
80105a23: 6a 13 push $0x13
jmp alltraps
80105a25: e9 f3 f9 ff ff jmp 8010541d <alltraps>
80105a2a <vector20>:
.globl vector20
vector20:
pushl $0
80105a2a: 6a 00 push $0x0
pushl $20
80105a2c: 6a 14 push $0x14
jmp alltraps
80105a2e: e9 ea f9 ff ff jmp 8010541d <alltraps>
80105a33 <vector21>:
.globl vector21
vector21:
pushl $0
80105a33: 6a 00 push $0x0
pushl $21
80105a35: 6a 15 push $0x15
jmp alltraps
80105a37: e9 e1 f9 ff ff jmp 8010541d <alltraps>
80105a3c <vector22>:
.globl vector22
vector22:
pushl $0
80105a3c: 6a 00 push $0x0
pushl $22
80105a3e: 6a 16 push $0x16
jmp alltraps
80105a40: e9 d8 f9 ff ff jmp 8010541d <alltraps>
80105a45 <vector23>:
.globl vector23
vector23:
pushl $0
80105a45: 6a 00 push $0x0
pushl $23
80105a47: 6a 17 push $0x17
jmp alltraps
80105a49: e9 cf f9 ff ff jmp 8010541d <alltraps>
80105a4e <vector24>:
.globl vector24
vector24:
pushl $0
80105a4e: 6a 00 push $0x0
pushl $24
80105a50: 6a 18 push $0x18
jmp alltraps
80105a52: e9 c6 f9 ff ff jmp 8010541d <alltraps>
80105a57 <vector25>:
.globl vector25
vector25:
pushl $0
80105a57: 6a 00 push $0x0
pushl $25
80105a59: 6a 19 push $0x19
jmp alltraps
80105a5b: e9 bd f9 ff ff jmp 8010541d <alltraps>
80105a60 <vector26>:
.globl vector26
vector26:
pushl $0
80105a60: 6a 00 push $0x0
pushl $26
80105a62: 6a 1a push $0x1a
jmp alltraps
80105a64: e9 b4 f9 ff ff jmp 8010541d <alltraps>
80105a69 <vector27>:
.globl vector27
vector27:
pushl $0
80105a69: 6a 00 push $0x0
pushl $27
80105a6b: 6a 1b push $0x1b
jmp alltraps
80105a6d: e9 ab f9 ff ff jmp 8010541d <alltraps>
80105a72 <vector28>:
.globl vector28
vector28:
pushl $0
80105a72: 6a 00 push $0x0
pushl $28
80105a74: 6a 1c push $0x1c
jmp alltraps
80105a76: e9 a2 f9 ff ff jmp 8010541d <alltraps>
80105a7b <vector29>:
.globl vector29
vector29:
pushl $0
80105a7b: 6a 00 push $0x0
pushl $29
80105a7d: 6a 1d push $0x1d
jmp alltraps
80105a7f: e9 99 f9 ff ff jmp 8010541d <alltraps>
80105a84 <vector30>:
.globl vector30
vector30:
pushl $0
80105a84: 6a 00 push $0x0
pushl $30
80105a86: 6a 1e push $0x1e
jmp alltraps
80105a88: e9 90 f9 ff ff jmp 8010541d <alltraps>
80105a8d <vector31>:
.globl vector31
vector31:
pushl $0
80105a8d: 6a 00 push $0x0
pushl $31
80105a8f: 6a 1f push $0x1f
jmp alltraps
80105a91: e9 87 f9 ff ff jmp 8010541d <alltraps>
80105a96 <vector32>:
.globl vector32
vector32:
pushl $0
80105a96: 6a 00 push $0x0
pushl $32
80105a98: 6a 20 push $0x20
jmp alltraps
80105a9a: e9 7e f9 ff ff jmp 8010541d <alltraps>
80105a9f <vector33>:
.globl vector33
vector33:
pushl $0
80105a9f: 6a 00 push $0x0
pushl $33
80105aa1: 6a 21 push $0x21
jmp alltraps
80105aa3: e9 75 f9 ff ff jmp 8010541d <alltraps>
80105aa8 <vector34>:
.globl vector34
vector34:
pushl $0
80105aa8: 6a 00 push $0x0
pushl $34
80105aaa: 6a 22 push $0x22
jmp alltraps
80105aac: e9 6c f9 ff ff jmp 8010541d <alltraps>
80105ab1 <vector35>:
.globl vector35
vector35:
pushl $0
80105ab1: 6a 00 push $0x0
pushl $35
80105ab3: 6a 23 push $0x23
jmp alltraps
80105ab5: e9 63 f9 ff ff jmp 8010541d <alltraps>
80105aba <vector36>:
.globl vector36
vector36:
pushl $0
80105aba: 6a 00 push $0x0
pushl $36
80105abc: 6a 24 push $0x24
jmp alltraps
80105abe: e9 5a f9 ff ff jmp 8010541d <alltraps>
80105ac3 <vector37>:
.globl vector37
vector37:
pushl $0
80105ac3: 6a 00 push $0x0
pushl $37
80105ac5: 6a 25 push $0x25
jmp alltraps
80105ac7: e9 51 f9 ff ff jmp 8010541d <alltraps>
80105acc <vector38>:
.globl vector38
vector38:
pushl $0
80105acc: 6a 00 push $0x0
pushl $38
80105ace: 6a 26 push $0x26
jmp alltraps
80105ad0: e9 48 f9 ff ff jmp 8010541d <alltraps>
80105ad5 <vector39>:
.globl vector39
vector39:
pushl $0
80105ad5: 6a 00 push $0x0
pushl $39
80105ad7: 6a 27 push $0x27
jmp alltraps
80105ad9: e9 3f f9 ff ff jmp 8010541d <alltraps>
80105ade <vector40>:
.globl vector40
vector40:
pushl $0
80105ade: 6a 00 push $0x0
pushl $40
80105ae0: 6a 28 push $0x28
jmp alltraps
80105ae2: e9 36 f9 ff ff jmp 8010541d <alltraps>
80105ae7 <vector41>:
.globl vector41
vector41:
pushl $0
80105ae7: 6a 00 push $0x0
pushl $41
80105ae9: 6a 29 push $0x29
jmp alltraps
80105aeb: e9 2d f9 ff ff jmp 8010541d <alltraps>
80105af0 <vector42>:
.globl vector42
vector42:
pushl $0
80105af0: 6a 00 push $0x0
pushl $42
80105af2: 6a 2a push $0x2a
jmp alltraps
80105af4: e9 24 f9 ff ff jmp 8010541d <alltraps>
80105af9 <vector43>:
.globl vector43
vector43:
pushl $0
80105af9: 6a 00 push $0x0
pushl $43
80105afb: 6a 2b push $0x2b
jmp alltraps
80105afd: e9 1b f9 ff ff jmp 8010541d <alltraps>
80105b02 <vector44>:
.globl vector44
vector44:
pushl $0
80105b02: 6a 00 push $0x0
pushl $44
80105b04: 6a 2c push $0x2c
jmp alltraps
80105b06: e9 12 f9 ff ff jmp 8010541d <alltraps>
80105b0b <vector45>:
.globl vector45
vector45:
pushl $0
80105b0b: 6a 00 push $0x0
pushl $45
80105b0d: 6a 2d push $0x2d
jmp alltraps
80105b0f: e9 09 f9 ff ff jmp 8010541d <alltraps>
80105b14 <vector46>:
.globl vector46
vector46:
pushl $0
80105b14: 6a 00 push $0x0
pushl $46
80105b16: 6a 2e push $0x2e
jmp alltraps
80105b18: e9 00 f9 ff ff jmp 8010541d <alltraps>
80105b1d <vector47>:
.globl vector47
vector47:
pushl $0
80105b1d: 6a 00 push $0x0
pushl $47
80105b1f: 6a 2f push $0x2f
jmp alltraps
80105b21: e9 f7 f8 ff ff jmp 8010541d <alltraps>
80105b26 <vector48>:
.globl vector48
vector48:
pushl $0
80105b26: 6a 00 push $0x0
pushl $48
80105b28: 6a 30 push $0x30
jmp alltraps
80105b2a: e9 ee f8 ff ff jmp 8010541d <alltraps>
80105b2f <vector49>:
.globl vector49
vector49:
pushl $0
80105b2f: 6a 00 push $0x0
pushl $49
80105b31: 6a 31 push $0x31
jmp alltraps
80105b33: e9 e5 f8 ff ff jmp 8010541d <alltraps>
80105b38 <vector50>:
.globl vector50
vector50:
pushl $0
80105b38: 6a 00 push $0x0
pushl $50
80105b3a: 6a 32 push $0x32
jmp alltraps
80105b3c: e9 dc f8 ff ff jmp 8010541d <alltraps>
80105b41 <vector51>:
.globl vector51
vector51:
pushl $0
80105b41: 6a 00 push $0x0
pushl $51
80105b43: 6a 33 push $0x33
jmp alltraps
80105b45: e9 d3 f8 ff ff jmp 8010541d <alltraps>
80105b4a <vector52>:
.globl vector52
vector52:
pushl $0
80105b4a: 6a 00 push $0x0
pushl $52
80105b4c: 6a 34 push $0x34
jmp alltraps
80105b4e: e9 ca f8 ff ff jmp 8010541d <alltraps>
80105b53 <vector53>:
.globl vector53
vector53:
pushl $0
80105b53: 6a 00 push $0x0
pushl $53
80105b55: 6a 35 push $0x35
jmp alltraps
80105b57: e9 c1 f8 ff ff jmp 8010541d <alltraps>
80105b5c <vector54>:
.globl vector54
vector54:
pushl $0
80105b5c: 6a 00 push $0x0
pushl $54
80105b5e: 6a 36 push $0x36
jmp alltraps
80105b60: e9 b8 f8 ff ff jmp 8010541d <alltraps>
80105b65 <vector55>:
.globl vector55
vector55:
pushl $0
80105b65: 6a 00 push $0x0
pushl $55
80105b67: 6a 37 push $0x37
jmp alltraps
80105b69: e9 af f8 ff ff jmp 8010541d <alltraps>
80105b6e <vector56>:
.globl vector56
vector56:
pushl $0
80105b6e: 6a 00 push $0x0
pushl $56
80105b70: 6a 38 push $0x38
jmp alltraps
80105b72: e9 a6 f8 ff ff jmp 8010541d <alltraps>
80105b77 <vector57>:
.globl vector57
vector57:
pushl $0
80105b77: 6a 00 push $0x0
pushl $57
80105b79: 6a 39 push $0x39
jmp alltraps
80105b7b: e9 9d f8 ff ff jmp 8010541d <alltraps>
80105b80 <vector58>:
.globl vector58
vector58:
pushl $0
80105b80: 6a 00 push $0x0
pushl $58
80105b82: 6a 3a push $0x3a
jmp alltraps
80105b84: e9 94 f8 ff ff jmp 8010541d <alltraps>
80105b89 <vector59>:
.globl vector59
vector59:
pushl $0
80105b89: 6a 00 push $0x0
pushl $59
80105b8b: 6a 3b push $0x3b
jmp alltraps
80105b8d: e9 8b f8 ff ff jmp 8010541d <alltraps>
80105b92 <vector60>:
.globl vector60
vector60:
pushl $0
80105b92: 6a 00 push $0x0
pushl $60
80105b94: 6a 3c push $0x3c
jmp alltraps
80105b96: e9 82 f8 ff ff jmp 8010541d <alltraps>
80105b9b <vector61>:
.globl vector61
vector61:
pushl $0
80105b9b: 6a 00 push $0x0
pushl $61
80105b9d: 6a 3d push $0x3d
jmp alltraps
80105b9f: e9 79 f8 ff ff jmp 8010541d <alltraps>
80105ba4 <vector62>:
.globl vector62
vector62:
pushl $0
80105ba4: 6a 00 push $0x0
pushl $62
80105ba6: 6a 3e push $0x3e
jmp alltraps
80105ba8: e9 70 f8 ff ff jmp 8010541d <alltraps>
80105bad <vector63>:
.globl vector63
vector63:
pushl $0
80105bad: 6a 00 push $0x0
pushl $63
80105baf: 6a 3f push $0x3f
jmp alltraps
80105bb1: e9 67 f8 ff ff jmp 8010541d <alltraps>
80105bb6 <vector64>:
.globl vector64
vector64:
pushl $0
80105bb6: 6a 00 push $0x0
pushl $64
80105bb8: 6a 40 push $0x40
jmp alltraps
80105bba: e9 5e f8 ff ff jmp 8010541d <alltraps>
80105bbf <vector65>:
.globl vector65
vector65:
pushl $0
80105bbf: 6a 00 push $0x0
pushl $65
80105bc1: 6a 41 push $0x41
jmp alltraps
80105bc3: e9 55 f8 ff ff jmp 8010541d <alltraps>
80105bc8 <vector66>:
.globl vector66
vector66:
pushl $0
80105bc8: 6a 00 push $0x0
pushl $66
80105bca: 6a 42 push $0x42
jmp alltraps
80105bcc: e9 4c f8 ff ff jmp 8010541d <alltraps>
80105bd1 <vector67>:
.globl vector67
vector67:
pushl $0
80105bd1: 6a 00 push $0x0
pushl $67
80105bd3: 6a 43 push $0x43
jmp alltraps
80105bd5: e9 43 f8 ff ff jmp 8010541d <alltraps>
80105bda <vector68>:
.globl vector68
vector68:
pushl $0
80105bda: 6a 00 push $0x0
pushl $68
80105bdc: 6a 44 push $0x44
jmp alltraps
80105bde: e9 3a f8 ff ff jmp 8010541d <alltraps>
80105be3 <vector69>:
.globl vector69
vector69:
pushl $0
80105be3: 6a 00 push $0x0
pushl $69
80105be5: 6a 45 push $0x45
jmp alltraps
80105be7: e9 31 f8 ff ff jmp 8010541d <alltraps>
80105bec <vector70>:
.globl vector70
vector70:
pushl $0
80105bec: 6a 00 push $0x0
pushl $70
80105bee: 6a 46 push $0x46
jmp alltraps
80105bf0: e9 28 f8 ff ff jmp 8010541d <alltraps>
80105bf5 <vector71>:
.globl vector71
vector71:
pushl $0
80105bf5: 6a 00 push $0x0
pushl $71
80105bf7: 6a 47 push $0x47
jmp alltraps
80105bf9: e9 1f f8 ff ff jmp 8010541d <alltraps>
80105bfe <vector72>:
.globl vector72
vector72:
pushl $0
80105bfe: 6a 00 push $0x0
pushl $72
80105c00: 6a 48 push $0x48
jmp alltraps
80105c02: e9 16 f8 ff ff jmp 8010541d <alltraps>
80105c07 <vector73>:
.globl vector73
vector73:
pushl $0
80105c07: 6a 00 push $0x0
pushl $73
80105c09: 6a 49 push $0x49
jmp alltraps
80105c0b: e9 0d f8 ff ff jmp 8010541d <alltraps>
80105c10 <vector74>:
.globl vector74
vector74:
pushl $0
80105c10: 6a 00 push $0x0
pushl $74
80105c12: 6a 4a push $0x4a
jmp alltraps
80105c14: e9 04 f8 ff ff jmp 8010541d <alltraps>
80105c19 <vector75>:
.globl vector75
vector75:
pushl $0
80105c19: 6a 00 push $0x0
pushl $75
80105c1b: 6a 4b push $0x4b
jmp alltraps
80105c1d: e9 fb f7 ff ff jmp 8010541d <alltraps>
80105c22 <vector76>:
.globl vector76
vector76:
pushl $0
80105c22: 6a 00 push $0x0
pushl $76
80105c24: 6a 4c push $0x4c
jmp alltraps
80105c26: e9 f2 f7 ff ff jmp 8010541d <alltraps>
80105c2b <vector77>:
.globl vector77
vector77:
pushl $0
80105c2b: 6a 00 push $0x0
pushl $77
80105c2d: 6a 4d push $0x4d
jmp alltraps
80105c2f: e9 e9 f7 ff ff jmp 8010541d <alltraps>
80105c34 <vector78>:
.globl vector78
vector78:
pushl $0
80105c34: 6a 00 push $0x0
pushl $78
80105c36: 6a 4e push $0x4e
jmp alltraps
80105c38: e9 e0 f7 ff ff jmp 8010541d <alltraps>
80105c3d <vector79>:
.globl vector79
vector79:
pushl $0
80105c3d: 6a 00 push $0x0
pushl $79
80105c3f: 6a 4f push $0x4f
jmp alltraps
80105c41: e9 d7 f7 ff ff jmp 8010541d <alltraps>
80105c46 <vector80>:
.globl vector80
vector80:
pushl $0
80105c46: 6a 00 push $0x0
pushl $80
80105c48: 6a 50 push $0x50
jmp alltraps
80105c4a: e9 ce f7 ff ff jmp 8010541d <alltraps>
80105c4f <vector81>:
.globl vector81
vector81:
pushl $0
80105c4f: 6a 00 push $0x0
pushl $81
80105c51: 6a 51 push $0x51
jmp alltraps
80105c53: e9 c5 f7 ff ff jmp 8010541d <alltraps>
80105c58 <vector82>:
.globl vector82
vector82:
pushl $0
80105c58: 6a 00 push $0x0
pushl $82
80105c5a: 6a 52 push $0x52
jmp alltraps
80105c5c: e9 bc f7 ff ff jmp 8010541d <alltraps>
80105c61 <vector83>:
.globl vector83
vector83:
pushl $0
80105c61: 6a 00 push $0x0
pushl $83
80105c63: 6a 53 push $0x53
jmp alltraps
80105c65: e9 b3 f7 ff ff jmp 8010541d <alltraps>
80105c6a <vector84>:
.globl vector84
vector84:
pushl $0
80105c6a: 6a 00 push $0x0
pushl $84
80105c6c: 6a 54 push $0x54
jmp alltraps
80105c6e: e9 aa f7 ff ff jmp 8010541d <alltraps>
80105c73 <vector85>:
.globl vector85
vector85:
pushl $0
80105c73: 6a 00 push $0x0
pushl $85
80105c75: 6a 55 push $0x55
jmp alltraps
80105c77: e9 a1 f7 ff ff jmp 8010541d <alltraps>
80105c7c <vector86>:
.globl vector86
vector86:
pushl $0
80105c7c: 6a 00 push $0x0
pushl $86
80105c7e: 6a 56 push $0x56
jmp alltraps
80105c80: e9 98 f7 ff ff jmp 8010541d <alltraps>
80105c85 <vector87>:
.globl vector87
vector87:
pushl $0
80105c85: 6a 00 push $0x0
pushl $87
80105c87: 6a 57 push $0x57
jmp alltraps
80105c89: e9 8f f7 ff ff jmp 8010541d <alltraps>
80105c8e <vector88>:
.globl vector88
vector88:
pushl $0
80105c8e: 6a 00 push $0x0
pushl $88
80105c90: 6a 58 push $0x58
jmp alltraps
80105c92: e9 86 f7 ff ff jmp 8010541d <alltraps>
80105c97 <vector89>:
.globl vector89
vector89:
pushl $0
80105c97: 6a 00 push $0x0
pushl $89
80105c99: 6a 59 push $0x59
jmp alltraps
80105c9b: e9 7d f7 ff ff jmp 8010541d <alltraps>
80105ca0 <vector90>:
.globl vector90
vector90:
pushl $0
80105ca0: 6a 00 push $0x0
pushl $90
80105ca2: 6a 5a push $0x5a
jmp alltraps
80105ca4: e9 74 f7 ff ff jmp 8010541d <alltraps>
80105ca9 <vector91>:
.globl vector91
vector91:
pushl $0
80105ca9: 6a 00 push $0x0
pushl $91
80105cab: 6a 5b push $0x5b
jmp alltraps
80105cad: e9 6b f7 ff ff jmp 8010541d <alltraps>
80105cb2 <vector92>:
.globl vector92
vector92:
pushl $0
80105cb2: 6a 00 push $0x0
pushl $92
80105cb4: 6a 5c push $0x5c
jmp alltraps
80105cb6: e9 62 f7 ff ff jmp 8010541d <alltraps>
80105cbb <vector93>:
.globl vector93
vector93:
pushl $0
80105cbb: 6a 00 push $0x0
pushl $93
80105cbd: 6a 5d push $0x5d
jmp alltraps
80105cbf: e9 59 f7 ff ff jmp 8010541d <alltraps>
80105cc4 <vector94>:
.globl vector94
vector94:
pushl $0
80105cc4: 6a 00 push $0x0
pushl $94
80105cc6: 6a 5e push $0x5e
jmp alltraps
80105cc8: e9 50 f7 ff ff jmp 8010541d <alltraps>
80105ccd <vector95>:
.globl vector95
vector95:
pushl $0
80105ccd: 6a 00 push $0x0
pushl $95
80105ccf: 6a 5f push $0x5f
jmp alltraps
80105cd1: e9 47 f7 ff ff jmp 8010541d <alltraps>
80105cd6 <vector96>:
.globl vector96
vector96:
pushl $0
80105cd6: 6a 00 push $0x0
pushl $96
80105cd8: 6a 60 push $0x60
jmp alltraps
80105cda: e9 3e f7 ff ff jmp 8010541d <alltraps>
80105cdf <vector97>:
.globl vector97
vector97:
pushl $0
80105cdf: 6a 00 push $0x0
pushl $97
80105ce1: 6a 61 push $0x61
jmp alltraps
80105ce3: e9 35 f7 ff ff jmp 8010541d <alltraps>
80105ce8 <vector98>:
.globl vector98
vector98:
pushl $0
80105ce8: 6a 00 push $0x0
pushl $98
80105cea: 6a 62 push $0x62
jmp alltraps
80105cec: e9 2c f7 ff ff jmp 8010541d <alltraps>
80105cf1 <vector99>:
.globl vector99
vector99:
pushl $0
80105cf1: 6a 00 push $0x0
pushl $99
80105cf3: 6a 63 push $0x63
jmp alltraps
80105cf5: e9 23 f7 ff ff jmp 8010541d <alltraps>
80105cfa <vector100>:
.globl vector100
vector100:
pushl $0
80105cfa: 6a 00 push $0x0
pushl $100
80105cfc: 6a 64 push $0x64
jmp alltraps
80105cfe: e9 1a f7 ff ff jmp 8010541d <alltraps>
80105d03 <vector101>:
.globl vector101
vector101:
pushl $0
80105d03: 6a 00 push $0x0
pushl $101
80105d05: 6a 65 push $0x65
jmp alltraps
80105d07: e9 11 f7 ff ff jmp 8010541d <alltraps>
80105d0c <vector102>:
.globl vector102
vector102:
pushl $0
80105d0c: 6a 00 push $0x0
pushl $102
80105d0e: 6a 66 push $0x66
jmp alltraps
80105d10: e9 08 f7 ff ff jmp 8010541d <alltraps>
80105d15 <vector103>:
.globl vector103
vector103:
pushl $0
80105d15: 6a 00 push $0x0
pushl $103
80105d17: 6a 67 push $0x67
jmp alltraps
80105d19: e9 ff f6 ff ff jmp 8010541d <alltraps>
80105d1e <vector104>:
.globl vector104
vector104:
pushl $0
80105d1e: 6a 00 push $0x0
pushl $104
80105d20: 6a 68 push $0x68
jmp alltraps
80105d22: e9 f6 f6 ff ff jmp 8010541d <alltraps>
80105d27 <vector105>:
.globl vector105
vector105:
pushl $0
80105d27: 6a 00 push $0x0
pushl $105
80105d29: 6a 69 push $0x69
jmp alltraps
80105d2b: e9 ed f6 ff ff jmp 8010541d <alltraps>
80105d30 <vector106>:
.globl vector106
vector106:
pushl $0
80105d30: 6a 00 push $0x0
pushl $106
80105d32: 6a 6a push $0x6a
jmp alltraps
80105d34: e9 e4 f6 ff ff jmp 8010541d <alltraps>
80105d39 <vector107>:
.globl vector107
vector107:
pushl $0
80105d39: 6a 00 push $0x0
pushl $107
80105d3b: 6a 6b push $0x6b
jmp alltraps
80105d3d: e9 db f6 ff ff jmp 8010541d <alltraps>
80105d42 <vector108>:
.globl vector108
vector108:
pushl $0
80105d42: 6a 00 push $0x0
pushl $108
80105d44: 6a 6c push $0x6c
jmp alltraps
80105d46: e9 d2 f6 ff ff jmp 8010541d <alltraps>
80105d4b <vector109>:
.globl vector109
vector109:
pushl $0
80105d4b: 6a 00 push $0x0
pushl $109
80105d4d: 6a 6d push $0x6d
jmp alltraps
80105d4f: e9 c9 f6 ff ff jmp 8010541d <alltraps>
80105d54 <vector110>:
.globl vector110
vector110:
pushl $0
80105d54: 6a 00 push $0x0
pushl $110
80105d56: 6a 6e push $0x6e
jmp alltraps
80105d58: e9 c0 f6 ff ff jmp 8010541d <alltraps>
80105d5d <vector111>:
.globl vector111
vector111:
pushl $0
80105d5d: 6a 00 push $0x0
pushl $111
80105d5f: 6a 6f push $0x6f
jmp alltraps
80105d61: e9 b7 f6 ff ff jmp 8010541d <alltraps>
80105d66 <vector112>:
.globl vector112
vector112:
pushl $0
80105d66: 6a 00 push $0x0
pushl $112
80105d68: 6a 70 push $0x70
jmp alltraps
80105d6a: e9 ae f6 ff ff jmp 8010541d <alltraps>
80105d6f <vector113>:
.globl vector113
vector113:
pushl $0
80105d6f: 6a 00 push $0x0
pushl $113
80105d71: 6a 71 push $0x71
jmp alltraps
80105d73: e9 a5 f6 ff ff jmp 8010541d <alltraps>
80105d78 <vector114>:
.globl vector114
vector114:
pushl $0
80105d78: 6a 00 push $0x0
pushl $114
80105d7a: 6a 72 push $0x72
jmp alltraps
80105d7c: e9 9c f6 ff ff jmp 8010541d <alltraps>
80105d81 <vector115>:
.globl vector115
vector115:
pushl $0
80105d81: 6a 00 push $0x0
pushl $115
80105d83: 6a 73 push $0x73
jmp alltraps
80105d85: e9 93 f6 ff ff jmp 8010541d <alltraps>
80105d8a <vector116>:
.globl vector116
vector116:
pushl $0
80105d8a: 6a 00 push $0x0
pushl $116
80105d8c: 6a 74 push $0x74
jmp alltraps
80105d8e: e9 8a f6 ff ff jmp 8010541d <alltraps>
80105d93 <vector117>:
.globl vector117
vector117:
pushl $0
80105d93: 6a 00 push $0x0
pushl $117
80105d95: 6a 75 push $0x75
jmp alltraps
80105d97: e9 81 f6 ff ff jmp 8010541d <alltraps>
80105d9c <vector118>:
.globl vector118
vector118:
pushl $0
80105d9c: 6a 00 push $0x0
pushl $118
80105d9e: 6a 76 push $0x76
jmp alltraps
80105da0: e9 78 f6 ff ff jmp 8010541d <alltraps>
80105da5 <vector119>:
.globl vector119
vector119:
pushl $0
80105da5: 6a 00 push $0x0
pushl $119
80105da7: 6a 77 push $0x77
jmp alltraps
80105da9: e9 6f f6 ff ff jmp 8010541d <alltraps>
80105dae <vector120>:
.globl vector120
vector120:
pushl $0
80105dae: 6a 00 push $0x0
pushl $120
80105db0: 6a 78 push $0x78
jmp alltraps
80105db2: e9 66 f6 ff ff jmp 8010541d <alltraps>
80105db7 <vector121>:
.globl vector121
vector121:
pushl $0
80105db7: 6a 00 push $0x0
pushl $121
80105db9: 6a 79 push $0x79
jmp alltraps
80105dbb: e9 5d f6 ff ff jmp 8010541d <alltraps>
80105dc0 <vector122>:
.globl vector122
vector122:
pushl $0
80105dc0: 6a 00 push $0x0
pushl $122
80105dc2: 6a 7a push $0x7a
jmp alltraps
80105dc4: e9 54 f6 ff ff jmp 8010541d <alltraps>
80105dc9 <vector123>:
.globl vector123
vector123:
pushl $0
80105dc9: 6a 00 push $0x0
pushl $123
80105dcb: 6a 7b push $0x7b
jmp alltraps
80105dcd: e9 4b f6 ff ff jmp 8010541d <alltraps>
80105dd2 <vector124>:
.globl vector124
vector124:
pushl $0
80105dd2: 6a 00 push $0x0
pushl $124
80105dd4: 6a 7c push $0x7c
jmp alltraps
80105dd6: e9 42 f6 ff ff jmp 8010541d <alltraps>
80105ddb <vector125>:
.globl vector125
vector125:
pushl $0
80105ddb: 6a 00 push $0x0
pushl $125
80105ddd: 6a 7d push $0x7d
jmp alltraps
80105ddf: e9 39 f6 ff ff jmp 8010541d <alltraps>
80105de4 <vector126>:
.globl vector126
vector126:
pushl $0
80105de4: 6a 00 push $0x0
pushl $126
80105de6: 6a 7e push $0x7e
jmp alltraps
80105de8: e9 30 f6 ff ff jmp 8010541d <alltraps>
80105ded <vector127>:
.globl vector127
vector127:
pushl $0
80105ded: 6a 00 push $0x0
pushl $127
80105def: 6a 7f push $0x7f
jmp alltraps
80105df1: e9 27 f6 ff ff jmp 8010541d <alltraps>
80105df6 <vector128>:
.globl vector128
vector128:
pushl $0
80105df6: 6a 00 push $0x0
pushl $128
80105df8: 68 80 00 00 00 push $0x80
jmp alltraps
80105dfd: e9 1b f6 ff ff jmp 8010541d <alltraps>
80105e02 <vector129>:
.globl vector129
vector129:
pushl $0
80105e02: 6a 00 push $0x0
pushl $129
80105e04: 68 81 00 00 00 push $0x81
jmp alltraps
80105e09: e9 0f f6 ff ff jmp 8010541d <alltraps>
80105e0e <vector130>:
.globl vector130
vector130:
pushl $0
80105e0e: 6a 00 push $0x0
pushl $130
80105e10: 68 82 00 00 00 push $0x82
jmp alltraps
80105e15: e9 03 f6 ff ff jmp 8010541d <alltraps>
80105e1a <vector131>:
.globl vector131
vector131:
pushl $0
80105e1a: 6a 00 push $0x0
pushl $131
80105e1c: 68 83 00 00 00 push $0x83
jmp alltraps
80105e21: e9 f7 f5 ff ff jmp 8010541d <alltraps>
80105e26 <vector132>:
.globl vector132
vector132:
pushl $0
80105e26: 6a 00 push $0x0
pushl $132
80105e28: 68 84 00 00 00 push $0x84
jmp alltraps
80105e2d: e9 eb f5 ff ff jmp 8010541d <alltraps>
80105e32 <vector133>:
.globl vector133
vector133:
pushl $0
80105e32: 6a 00 push $0x0
pushl $133
80105e34: 68 85 00 00 00 push $0x85
jmp alltraps
80105e39: e9 df f5 ff ff jmp 8010541d <alltraps>
80105e3e <vector134>:
.globl vector134
vector134:
pushl $0
80105e3e: 6a 00 push $0x0
pushl $134
80105e40: 68 86 00 00 00 push $0x86
jmp alltraps
80105e45: e9 d3 f5 ff ff jmp 8010541d <alltraps>
80105e4a <vector135>:
.globl vector135
vector135:
pushl $0
80105e4a: 6a 00 push $0x0
pushl $135
80105e4c: 68 87 00 00 00 push $0x87
jmp alltraps
80105e51: e9 c7 f5 ff ff jmp 8010541d <alltraps>
80105e56 <vector136>:
.globl vector136
vector136:
pushl $0
80105e56: 6a 00 push $0x0
pushl $136
80105e58: 68 88 00 00 00 push $0x88
jmp alltraps
80105e5d: e9 bb f5 ff ff jmp 8010541d <alltraps>
80105e62 <vector137>:
.globl vector137
vector137:
pushl $0
80105e62: 6a 00 push $0x0
pushl $137
80105e64: 68 89 00 00 00 push $0x89
jmp alltraps
80105e69: e9 af f5 ff ff jmp 8010541d <alltraps>
80105e6e <vector138>:
.globl vector138
vector138:
pushl $0
80105e6e: 6a 00 push $0x0
pushl $138
80105e70: 68 8a 00 00 00 push $0x8a
jmp alltraps
80105e75: e9 a3 f5 ff ff jmp 8010541d <alltraps>
80105e7a <vector139>:
.globl vector139
vector139:
pushl $0
80105e7a: 6a 00 push $0x0
pushl $139
80105e7c: 68 8b 00 00 00 push $0x8b
jmp alltraps
80105e81: e9 97 f5 ff ff jmp 8010541d <alltraps>
80105e86 <vector140>:
.globl vector140
vector140:
pushl $0
80105e86: 6a 00 push $0x0
pushl $140
80105e88: 68 8c 00 00 00 push $0x8c
jmp alltraps
80105e8d: e9 8b f5 ff ff jmp 8010541d <alltraps>
80105e92 <vector141>:
.globl vector141
vector141:
pushl $0
80105e92: 6a 00 push $0x0
pushl $141
80105e94: 68 8d 00 00 00 push $0x8d
jmp alltraps
80105e99: e9 7f f5 ff ff jmp 8010541d <alltraps>
80105e9e <vector142>:
.globl vector142
vector142:
pushl $0
80105e9e: 6a 00 push $0x0
pushl $142
80105ea0: 68 8e 00 00 00 push $0x8e
jmp alltraps
80105ea5: e9 73 f5 ff ff jmp 8010541d <alltraps>
80105eaa <vector143>:
.globl vector143
vector143:
pushl $0
80105eaa: 6a 00 push $0x0
pushl $143
80105eac: 68 8f 00 00 00 push $0x8f
jmp alltraps
80105eb1: e9 67 f5 ff ff jmp 8010541d <alltraps>
80105eb6 <vector144>:
.globl vector144
vector144:
pushl $0
80105eb6: 6a 00 push $0x0
pushl $144
80105eb8: 68 90 00 00 00 push $0x90
jmp alltraps
80105ebd: e9 5b f5 ff ff jmp 8010541d <alltraps>
80105ec2 <vector145>:
.globl vector145
vector145:
pushl $0
80105ec2: 6a 00 push $0x0
pushl $145
80105ec4: 68 91 00 00 00 push $0x91
jmp alltraps
80105ec9: e9 4f f5 ff ff jmp 8010541d <alltraps>
80105ece <vector146>:
.globl vector146
vector146:
pushl $0
80105ece: 6a 00 push $0x0
pushl $146
80105ed0: 68 92 00 00 00 push $0x92
jmp alltraps
80105ed5: e9 43 f5 ff ff jmp 8010541d <alltraps>
80105eda <vector147>:
.globl vector147
vector147:
pushl $0
80105eda: 6a 00 push $0x0
pushl $147
80105edc: 68 93 00 00 00 push $0x93
jmp alltraps
80105ee1: e9 37 f5 ff ff jmp 8010541d <alltraps>
80105ee6 <vector148>:
.globl vector148
vector148:
pushl $0
80105ee6: 6a 00 push $0x0
pushl $148
80105ee8: 68 94 00 00 00 push $0x94
jmp alltraps
80105eed: e9 2b f5 ff ff jmp 8010541d <alltraps>
80105ef2 <vector149>:
.globl vector149
vector149:
pushl $0
80105ef2: 6a 00 push $0x0
pushl $149
80105ef4: 68 95 00 00 00 push $0x95
jmp alltraps
80105ef9: e9 1f f5 ff ff jmp 8010541d <alltraps>
80105efe <vector150>:
.globl vector150
vector150:
pushl $0
80105efe: 6a 00 push $0x0
pushl $150
80105f00: 68 96 00 00 00 push $0x96
jmp alltraps
80105f05: e9 13 f5 ff ff jmp 8010541d <alltraps>
80105f0a <vector151>:
.globl vector151
vector151:
pushl $0
80105f0a: 6a 00 push $0x0
pushl $151
80105f0c: 68 97 00 00 00 push $0x97
jmp alltraps
80105f11: e9 07 f5 ff ff jmp 8010541d <alltraps>
80105f16 <vector152>:
.globl vector152
vector152:
pushl $0
80105f16: 6a 00 push $0x0
pushl $152
80105f18: 68 98 00 00 00 push $0x98
jmp alltraps
80105f1d: e9 fb f4 ff ff jmp 8010541d <alltraps>
80105f22 <vector153>:
.globl vector153
vector153:
pushl $0
80105f22: 6a 00 push $0x0
pushl $153
80105f24: 68 99 00 00 00 push $0x99
jmp alltraps
80105f29: e9 ef f4 ff ff jmp 8010541d <alltraps>
80105f2e <vector154>:
.globl vector154
vector154:
pushl $0
80105f2e: 6a 00 push $0x0
pushl $154
80105f30: 68 9a 00 00 00 push $0x9a
jmp alltraps
80105f35: e9 e3 f4 ff ff jmp 8010541d <alltraps>
80105f3a <vector155>:
.globl vector155
vector155:
pushl $0
80105f3a: 6a 00 push $0x0
pushl $155
80105f3c: 68 9b 00 00 00 push $0x9b
jmp alltraps
80105f41: e9 d7 f4 ff ff jmp 8010541d <alltraps>
80105f46 <vector156>:
.globl vector156
vector156:
pushl $0
80105f46: 6a 00 push $0x0
pushl $156
80105f48: 68 9c 00 00 00 push $0x9c
jmp alltraps
80105f4d: e9 cb f4 ff ff jmp 8010541d <alltraps>
80105f52 <vector157>:
.globl vector157
vector157:
pushl $0
80105f52: 6a 00 push $0x0
pushl $157
80105f54: 68 9d 00 00 00 push $0x9d
jmp alltraps
80105f59: e9 bf f4 ff ff jmp 8010541d <alltraps>
80105f5e <vector158>:
.globl vector158
vector158:
pushl $0
80105f5e: 6a 00 push $0x0
pushl $158
80105f60: 68 9e 00 00 00 push $0x9e
jmp alltraps
80105f65: e9 b3 f4 ff ff jmp 8010541d <alltraps>
80105f6a <vector159>:
.globl vector159
vector159:
pushl $0
80105f6a: 6a 00 push $0x0
pushl $159
80105f6c: 68 9f 00 00 00 push $0x9f
jmp alltraps
80105f71: e9 a7 f4 ff ff jmp 8010541d <alltraps>
80105f76 <vector160>:
.globl vector160
vector160:
pushl $0
80105f76: 6a 00 push $0x0
pushl $160
80105f78: 68 a0 00 00 00 push $0xa0
jmp alltraps
80105f7d: e9 9b f4 ff ff jmp 8010541d <alltraps>
80105f82 <vector161>:
.globl vector161
vector161:
pushl $0
80105f82: 6a 00 push $0x0
pushl $161
80105f84: 68 a1 00 00 00 push $0xa1
jmp alltraps
80105f89: e9 8f f4 ff ff jmp 8010541d <alltraps>
80105f8e <vector162>:
.globl vector162
vector162:
pushl $0
80105f8e: 6a 00 push $0x0
pushl $162
80105f90: 68 a2 00 00 00 push $0xa2
jmp alltraps
80105f95: e9 83 f4 ff ff jmp 8010541d <alltraps>
80105f9a <vector163>:
.globl vector163
vector163:
pushl $0
80105f9a: 6a 00 push $0x0
pushl $163
80105f9c: 68 a3 00 00 00 push $0xa3
jmp alltraps
80105fa1: e9 77 f4 ff ff jmp 8010541d <alltraps>
80105fa6 <vector164>:
.globl vector164
vector164:
pushl $0
80105fa6: 6a 00 push $0x0
pushl $164
80105fa8: 68 a4 00 00 00 push $0xa4
jmp alltraps
80105fad: e9 6b f4 ff ff jmp 8010541d <alltraps>
80105fb2 <vector165>:
.globl vector165
vector165:
pushl $0
80105fb2: 6a 00 push $0x0
pushl $165
80105fb4: 68 a5 00 00 00 push $0xa5
jmp alltraps
80105fb9: e9 5f f4 ff ff jmp 8010541d <alltraps>
80105fbe <vector166>:
.globl vector166
vector166:
pushl $0
80105fbe: 6a 00 push $0x0
pushl $166
80105fc0: 68 a6 00 00 00 push $0xa6
jmp alltraps
80105fc5: e9 53 f4 ff ff jmp 8010541d <alltraps>
80105fca <vector167>:
.globl vector167
vector167:
pushl $0
80105fca: 6a 00 push $0x0
pushl $167
80105fcc: 68 a7 00 00 00 push $0xa7
jmp alltraps
80105fd1: e9 47 f4 ff ff jmp 8010541d <alltraps>
80105fd6 <vector168>:
.globl vector168
vector168:
pushl $0
80105fd6: 6a 00 push $0x0
pushl $168
80105fd8: 68 a8 00 00 00 push $0xa8
jmp alltraps
80105fdd: e9 3b f4 ff ff jmp 8010541d <alltraps>
80105fe2 <vector169>:
.globl vector169
vector169:
pushl $0
80105fe2: 6a 00 push $0x0
pushl $169
80105fe4: 68 a9 00 00 00 push $0xa9
jmp alltraps
80105fe9: e9 2f f4 ff ff jmp 8010541d <alltraps>
80105fee <vector170>:
.globl vector170
vector170:
pushl $0
80105fee: 6a 00 push $0x0
pushl $170
80105ff0: 68 aa 00 00 00 push $0xaa
jmp alltraps
80105ff5: e9 23 f4 ff ff jmp 8010541d <alltraps>
80105ffa <vector171>:
.globl vector171
vector171:
pushl $0
80105ffa: 6a 00 push $0x0
pushl $171
80105ffc: 68 ab 00 00 00 push $0xab
jmp alltraps
80106001: e9 17 f4 ff ff jmp 8010541d <alltraps>
80106006 <vector172>:
.globl vector172
vector172:
pushl $0
80106006: 6a 00 push $0x0
pushl $172
80106008: 68 ac 00 00 00 push $0xac
jmp alltraps
8010600d: e9 0b f4 ff ff jmp 8010541d <alltraps>
80106012 <vector173>:
.globl vector173
vector173:
pushl $0
80106012: 6a 00 push $0x0
pushl $173
80106014: 68 ad 00 00 00 push $0xad
jmp alltraps
80106019: e9 ff f3 ff ff jmp 8010541d <alltraps>
8010601e <vector174>:
.globl vector174
vector174:
pushl $0
8010601e: 6a 00 push $0x0
pushl $174
80106020: 68 ae 00 00 00 push $0xae
jmp alltraps
80106025: e9 f3 f3 ff ff jmp 8010541d <alltraps>
8010602a <vector175>:
.globl vector175
vector175:
pushl $0
8010602a: 6a 00 push $0x0
pushl $175
8010602c: 68 af 00 00 00 push $0xaf
jmp alltraps
80106031: e9 e7 f3 ff ff jmp 8010541d <alltraps>
80106036 <vector176>:
.globl vector176
vector176:
pushl $0
80106036: 6a 00 push $0x0
pushl $176
80106038: 68 b0 00 00 00 push $0xb0
jmp alltraps
8010603d: e9 db f3 ff ff jmp 8010541d <alltraps>
80106042 <vector177>:
.globl vector177
vector177:
pushl $0
80106042: 6a 00 push $0x0
pushl $177
80106044: 68 b1 00 00 00 push $0xb1
jmp alltraps
80106049: e9 cf f3 ff ff jmp 8010541d <alltraps>
8010604e <vector178>:
.globl vector178
vector178:
pushl $0
8010604e: 6a 00 push $0x0
pushl $178
80106050: 68 b2 00 00 00 push $0xb2
jmp alltraps
80106055: e9 c3 f3 ff ff jmp 8010541d <alltraps>
8010605a <vector179>:
.globl vector179
vector179:
pushl $0
8010605a: 6a 00 push $0x0
pushl $179
8010605c: 68 b3 00 00 00 push $0xb3
jmp alltraps
80106061: e9 b7 f3 ff ff jmp 8010541d <alltraps>
80106066 <vector180>:
.globl vector180
vector180:
pushl $0
80106066: 6a 00 push $0x0
pushl $180
80106068: 68 b4 00 00 00 push $0xb4
jmp alltraps
8010606d: e9 ab f3 ff ff jmp 8010541d <alltraps>
80106072 <vector181>:
.globl vector181
vector181:
pushl $0
80106072: 6a 00 push $0x0
pushl $181
80106074: 68 b5 00 00 00 push $0xb5
jmp alltraps
80106079: e9 9f f3 ff ff jmp 8010541d <alltraps>
8010607e <vector182>:
.globl vector182
vector182:
pushl $0
8010607e: 6a 00 push $0x0
pushl $182
80106080: 68 b6 00 00 00 push $0xb6
jmp alltraps
80106085: e9 93 f3 ff ff jmp 8010541d <alltraps>
8010608a <vector183>:
.globl vector183
vector183:
pushl $0
8010608a: 6a 00 push $0x0
pushl $183
8010608c: 68 b7 00 00 00 push $0xb7
jmp alltraps
80106091: e9 87 f3 ff ff jmp 8010541d <alltraps>
80106096 <vector184>:
.globl vector184
vector184:
pushl $0
80106096: 6a 00 push $0x0
pushl $184
80106098: 68 b8 00 00 00 push $0xb8
jmp alltraps
8010609d: e9 7b f3 ff ff jmp 8010541d <alltraps>
801060a2 <vector185>:
.globl vector185
vector185:
pushl $0
801060a2: 6a 00 push $0x0
pushl $185
801060a4: 68 b9 00 00 00 push $0xb9
jmp alltraps
801060a9: e9 6f f3 ff ff jmp 8010541d <alltraps>
801060ae <vector186>:
.globl vector186
vector186:
pushl $0
801060ae: 6a 00 push $0x0
pushl $186
801060b0: 68 ba 00 00 00 push $0xba
jmp alltraps
801060b5: e9 63 f3 ff ff jmp 8010541d <alltraps>
801060ba <vector187>:
.globl vector187
vector187:
pushl $0
801060ba: 6a 00 push $0x0
pushl $187
801060bc: 68 bb 00 00 00 push $0xbb
jmp alltraps
801060c1: e9 57 f3 ff ff jmp 8010541d <alltraps>
801060c6 <vector188>:
.globl vector188
vector188:
pushl $0
801060c6: 6a 00 push $0x0
pushl $188
801060c8: 68 bc 00 00 00 push $0xbc
jmp alltraps
801060cd: e9 4b f3 ff ff jmp 8010541d <alltraps>
801060d2 <vector189>:
.globl vector189
vector189:
pushl $0
801060d2: 6a 00 push $0x0
pushl $189
801060d4: 68 bd 00 00 00 push $0xbd
jmp alltraps
801060d9: e9 3f f3 ff ff jmp 8010541d <alltraps>
801060de <vector190>:
.globl vector190
vector190:
pushl $0
801060de: 6a 00 push $0x0
pushl $190
801060e0: 68 be 00 00 00 push $0xbe
jmp alltraps
801060e5: e9 33 f3 ff ff jmp 8010541d <alltraps>
801060ea <vector191>:
.globl vector191
vector191:
pushl $0
801060ea: 6a 00 push $0x0
pushl $191
801060ec: 68 bf 00 00 00 push $0xbf
jmp alltraps
801060f1: e9 27 f3 ff ff jmp 8010541d <alltraps>
801060f6 <vector192>:
.globl vector192
vector192:
pushl $0
801060f6: 6a 00 push $0x0
pushl $192
801060f8: 68 c0 00 00 00 push $0xc0
jmp alltraps
801060fd: e9 1b f3 ff ff jmp 8010541d <alltraps>
80106102 <vector193>:
.globl vector193
vector193:
pushl $0
80106102: 6a 00 push $0x0
pushl $193
80106104: 68 c1 00 00 00 push $0xc1
jmp alltraps
80106109: e9 0f f3 ff ff jmp 8010541d <alltraps>
8010610e <vector194>:
.globl vector194
vector194:
pushl $0
8010610e: 6a 00 push $0x0
pushl $194
80106110: 68 c2 00 00 00 push $0xc2
jmp alltraps
80106115: e9 03 f3 ff ff jmp 8010541d <alltraps>
8010611a <vector195>:
.globl vector195
vector195:
pushl $0
8010611a: 6a 00 push $0x0
pushl $195
8010611c: 68 c3 00 00 00 push $0xc3
jmp alltraps
80106121: e9 f7 f2 ff ff jmp 8010541d <alltraps>
80106126 <vector196>:
.globl vector196
vector196:
pushl $0
80106126: 6a 00 push $0x0
pushl $196
80106128: 68 c4 00 00 00 push $0xc4
jmp alltraps
8010612d: e9 eb f2 ff ff jmp 8010541d <alltraps>
80106132 <vector197>:
.globl vector197
vector197:
pushl $0
80106132: 6a 00 push $0x0
pushl $197
80106134: 68 c5 00 00 00 push $0xc5
jmp alltraps
80106139: e9 df f2 ff ff jmp 8010541d <alltraps>
8010613e <vector198>:
.globl vector198
vector198:
pushl $0
8010613e: 6a 00 push $0x0
pushl $198
80106140: 68 c6 00 00 00 push $0xc6
jmp alltraps
80106145: e9 d3 f2 ff ff jmp 8010541d <alltraps>
8010614a <vector199>:
.globl vector199
vector199:
pushl $0
8010614a: 6a 00 push $0x0
pushl $199
8010614c: 68 c7 00 00 00 push $0xc7
jmp alltraps
80106151: e9 c7 f2 ff ff jmp 8010541d <alltraps>
80106156 <vector200>:
.globl vector200
vector200:
pushl $0
80106156: 6a 00 push $0x0
pushl $200
80106158: 68 c8 00 00 00 push $0xc8
jmp alltraps
8010615d: e9 bb f2 ff ff jmp 8010541d <alltraps>
80106162 <vector201>:
.globl vector201
vector201:
pushl $0
80106162: 6a 00 push $0x0
pushl $201
80106164: 68 c9 00 00 00 push $0xc9
jmp alltraps
80106169: e9 af f2 ff ff jmp 8010541d <alltraps>
8010616e <vector202>:
.globl vector202
vector202:
pushl $0
8010616e: 6a 00 push $0x0
pushl $202
80106170: 68 ca 00 00 00 push $0xca
jmp alltraps
80106175: e9 a3 f2 ff ff jmp 8010541d <alltraps>
8010617a <vector203>:
.globl vector203
vector203:
pushl $0
8010617a: 6a 00 push $0x0
pushl $203
8010617c: 68 cb 00 00 00 push $0xcb
jmp alltraps
80106181: e9 97 f2 ff ff jmp 8010541d <alltraps>
80106186 <vector204>:
.globl vector204
vector204:
pushl $0
80106186: 6a 00 push $0x0
pushl $204
80106188: 68 cc 00 00 00 push $0xcc
jmp alltraps
8010618d: e9 8b f2 ff ff jmp 8010541d <alltraps>
80106192 <vector205>:
.globl vector205
vector205:
pushl $0
80106192: 6a 00 push $0x0
pushl $205
80106194: 68 cd 00 00 00 push $0xcd
jmp alltraps
80106199: e9 7f f2 ff ff jmp 8010541d <alltraps>
8010619e <vector206>:
.globl vector206
vector206:
pushl $0
8010619e: 6a 00 push $0x0
pushl $206
801061a0: 68 ce 00 00 00 push $0xce
jmp alltraps
801061a5: e9 73 f2 ff ff jmp 8010541d <alltraps>
801061aa <vector207>:
.globl vector207
vector207:
pushl $0
801061aa: 6a 00 push $0x0
pushl $207
801061ac: 68 cf 00 00 00 push $0xcf
jmp alltraps
801061b1: e9 67 f2 ff ff jmp 8010541d <alltraps>
801061b6 <vector208>:
.globl vector208
vector208:
pushl $0
801061b6: 6a 00 push $0x0
pushl $208
801061b8: 68 d0 00 00 00 push $0xd0
jmp alltraps
801061bd: e9 5b f2 ff ff jmp 8010541d <alltraps>
801061c2 <vector209>:
.globl vector209
vector209:
pushl $0
801061c2: 6a 00 push $0x0
pushl $209
801061c4: 68 d1 00 00 00 push $0xd1
jmp alltraps
801061c9: e9 4f f2 ff ff jmp 8010541d <alltraps>
801061ce <vector210>:
.globl vector210
vector210:
pushl $0
801061ce: 6a 00 push $0x0
pushl $210
801061d0: 68 d2 00 00 00 push $0xd2
jmp alltraps
801061d5: e9 43 f2 ff ff jmp 8010541d <alltraps>
801061da <vector211>:
.globl vector211
vector211:
pushl $0
801061da: 6a 00 push $0x0
pushl $211
801061dc: 68 d3 00 00 00 push $0xd3
jmp alltraps
801061e1: e9 37 f2 ff ff jmp 8010541d <alltraps>
801061e6 <vector212>:
.globl vector212
vector212:
pushl $0
801061e6: 6a 00 push $0x0
pushl $212
801061e8: 68 d4 00 00 00 push $0xd4
jmp alltraps
801061ed: e9 2b f2 ff ff jmp 8010541d <alltraps>
801061f2 <vector213>:
.globl vector213
vector213:
pushl $0
801061f2: 6a 00 push $0x0
pushl $213
801061f4: 68 d5 00 00 00 push $0xd5
jmp alltraps
801061f9: e9 1f f2 ff ff jmp 8010541d <alltraps>
801061fe <vector214>:
.globl vector214
vector214:
pushl $0
801061fe: 6a 00 push $0x0
pushl $214
80106200: 68 d6 00 00 00 push $0xd6
jmp alltraps
80106205: e9 13 f2 ff ff jmp 8010541d <alltraps>
8010620a <vector215>:
.globl vector215
vector215:
pushl $0
8010620a: 6a 00 push $0x0
pushl $215
8010620c: 68 d7 00 00 00 push $0xd7
jmp alltraps
80106211: e9 07 f2 ff ff jmp 8010541d <alltraps>
80106216 <vector216>:
.globl vector216
vector216:
pushl $0
80106216: 6a 00 push $0x0
pushl $216
80106218: 68 d8 00 00 00 push $0xd8
jmp alltraps
8010621d: e9 fb f1 ff ff jmp 8010541d <alltraps>
80106222 <vector217>:
.globl vector217
vector217:
pushl $0
80106222: 6a 00 push $0x0
pushl $217
80106224: 68 d9 00 00 00 push $0xd9
jmp alltraps
80106229: e9 ef f1 ff ff jmp 8010541d <alltraps>
8010622e <vector218>:
.globl vector218
vector218:
pushl $0
8010622e: 6a 00 push $0x0
pushl $218
80106230: 68 da 00 00 00 push $0xda
jmp alltraps
80106235: e9 e3 f1 ff ff jmp 8010541d <alltraps>
8010623a <vector219>:
.globl vector219
vector219:
pushl $0
8010623a: 6a 00 push $0x0
pushl $219
8010623c: 68 db 00 00 00 push $0xdb
jmp alltraps
80106241: e9 d7 f1 ff ff jmp 8010541d <alltraps>
80106246 <vector220>:
.globl vector220
vector220:
pushl $0
80106246: 6a 00 push $0x0
pushl $220
80106248: 68 dc 00 00 00 push $0xdc
jmp alltraps
8010624d: e9 cb f1 ff ff jmp 8010541d <alltraps>
80106252 <vector221>:
.globl vector221
vector221:
pushl $0
80106252: 6a 00 push $0x0
pushl $221
80106254: 68 dd 00 00 00 push $0xdd
jmp alltraps
80106259: e9 bf f1 ff ff jmp 8010541d <alltraps>
8010625e <vector222>:
.globl vector222
vector222:
pushl $0
8010625e: 6a 00 push $0x0
pushl $222
80106260: 68 de 00 00 00 push $0xde
jmp alltraps
80106265: e9 b3 f1 ff ff jmp 8010541d <alltraps>
8010626a <vector223>:
.globl vector223
vector223:
pushl $0
8010626a: 6a 00 push $0x0
pushl $223
8010626c: 68 df 00 00 00 push $0xdf
jmp alltraps
80106271: e9 a7 f1 ff ff jmp 8010541d <alltraps>
80106276 <vector224>:
.globl vector224
vector224:
pushl $0
80106276: 6a 00 push $0x0
pushl $224
80106278: 68 e0 00 00 00 push $0xe0
jmp alltraps
8010627d: e9 9b f1 ff ff jmp 8010541d <alltraps>
80106282 <vector225>:
.globl vector225
vector225:
pushl $0
80106282: 6a 00 push $0x0
pushl $225
80106284: 68 e1 00 00 00 push $0xe1
jmp alltraps
80106289: e9 8f f1 ff ff jmp 8010541d <alltraps>
8010628e <vector226>:
.globl vector226
vector226:
pushl $0
8010628e: 6a 00 push $0x0
pushl $226
80106290: 68 e2 00 00 00 push $0xe2
jmp alltraps
80106295: e9 83 f1 ff ff jmp 8010541d <alltraps>
8010629a <vector227>:
.globl vector227
vector227:
pushl $0
8010629a: 6a 00 push $0x0
pushl $227
8010629c: 68 e3 00 00 00 push $0xe3
jmp alltraps
801062a1: e9 77 f1 ff ff jmp 8010541d <alltraps>
801062a6 <vector228>:
.globl vector228
vector228:
pushl $0
801062a6: 6a 00 push $0x0
pushl $228
801062a8: 68 e4 00 00 00 push $0xe4
jmp alltraps
801062ad: e9 6b f1 ff ff jmp 8010541d <alltraps>
801062b2 <vector229>:
.globl vector229
vector229:
pushl $0
801062b2: 6a 00 push $0x0
pushl $229
801062b4: 68 e5 00 00 00 push $0xe5
jmp alltraps
801062b9: e9 5f f1 ff ff jmp 8010541d <alltraps>
801062be <vector230>:
.globl vector230
vector230:
pushl $0
801062be: 6a 00 push $0x0
pushl $230
801062c0: 68 e6 00 00 00 push $0xe6
jmp alltraps
801062c5: e9 53 f1 ff ff jmp 8010541d <alltraps>
801062ca <vector231>:
.globl vector231
vector231:
pushl $0
801062ca: 6a 00 push $0x0
pushl $231
801062cc: 68 e7 00 00 00 push $0xe7
jmp alltraps
801062d1: e9 47 f1 ff ff jmp 8010541d <alltraps>
801062d6 <vector232>:
.globl vector232
vector232:
pushl $0
801062d6: 6a 00 push $0x0
pushl $232
801062d8: 68 e8 00 00 00 push $0xe8
jmp alltraps
801062dd: e9 3b f1 ff ff jmp 8010541d <alltraps>
801062e2 <vector233>:
.globl vector233
vector233:
pushl $0
801062e2: 6a 00 push $0x0
pushl $233
801062e4: 68 e9 00 00 00 push $0xe9
jmp alltraps
801062e9: e9 2f f1 ff ff jmp 8010541d <alltraps>
801062ee <vector234>:
.globl vector234
vector234:
pushl $0
801062ee: 6a 00 push $0x0
pushl $234
801062f0: 68 ea 00 00 00 push $0xea
jmp alltraps
801062f5: e9 23 f1 ff ff jmp 8010541d <alltraps>
801062fa <vector235>:
.globl vector235
vector235:
pushl $0
801062fa: 6a 00 push $0x0
pushl $235
801062fc: 68 eb 00 00 00 push $0xeb
jmp alltraps
80106301: e9 17 f1 ff ff jmp 8010541d <alltraps>
80106306 <vector236>:
.globl vector236
vector236:
pushl $0
80106306: 6a 00 push $0x0
pushl $236
80106308: 68 ec 00 00 00 push $0xec
jmp alltraps
8010630d: e9 0b f1 ff ff jmp 8010541d <alltraps>
80106312 <vector237>:
.globl vector237
vector237:
pushl $0
80106312: 6a 00 push $0x0
pushl $237
80106314: 68 ed 00 00 00 push $0xed
jmp alltraps
80106319: e9 ff f0 ff ff jmp 8010541d <alltraps>
8010631e <vector238>:
.globl vector238
vector238:
pushl $0
8010631e: 6a 00 push $0x0
pushl $238
80106320: 68 ee 00 00 00 push $0xee
jmp alltraps
80106325: e9 f3 f0 ff ff jmp 8010541d <alltraps>
8010632a <vector239>:
.globl vector239
vector239:
pushl $0
8010632a: 6a 00 push $0x0
pushl $239
8010632c: 68 ef 00 00 00 push $0xef
jmp alltraps
80106331: e9 e7 f0 ff ff jmp 8010541d <alltraps>
80106336 <vector240>:
.globl vector240
vector240:
pushl $0
80106336: 6a 00 push $0x0
pushl $240
80106338: 68 f0 00 00 00 push $0xf0
jmp alltraps
8010633d: e9 db f0 ff ff jmp 8010541d <alltraps>
80106342 <vector241>:
.globl vector241
vector241:
pushl $0
80106342: 6a 00 push $0x0
pushl $241
80106344: 68 f1 00 00 00 push $0xf1
jmp alltraps
80106349: e9 cf f0 ff ff jmp 8010541d <alltraps>
8010634e <vector242>:
.globl vector242
vector242:
pushl $0
8010634e: 6a 00 push $0x0
pushl $242
80106350: 68 f2 00 00 00 push $0xf2
jmp alltraps
80106355: e9 c3 f0 ff ff jmp 8010541d <alltraps>
8010635a <vector243>:
.globl vector243
vector243:
pushl $0
8010635a: 6a 00 push $0x0
pushl $243
8010635c: 68 f3 00 00 00 push $0xf3
jmp alltraps
80106361: e9 b7 f0 ff ff jmp 8010541d <alltraps>
80106366 <vector244>:
.globl vector244
vector244:
pushl $0
80106366: 6a 00 push $0x0
pushl $244
80106368: 68 f4 00 00 00 push $0xf4
jmp alltraps
8010636d: e9 ab f0 ff ff jmp 8010541d <alltraps>
80106372 <vector245>:
.globl vector245
vector245:
pushl $0
80106372: 6a 00 push $0x0
pushl $245
80106374: 68 f5 00 00 00 push $0xf5
jmp alltraps
80106379: e9 9f f0 ff ff jmp 8010541d <alltraps>
8010637e <vector246>:
.globl vector246
vector246:
pushl $0
8010637e: 6a 00 push $0x0
pushl $246
80106380: 68 f6 00 00 00 push $0xf6
jmp alltraps
80106385: e9 93 f0 ff ff jmp 8010541d <alltraps>
8010638a <vector247>:
.globl vector247
vector247:
pushl $0
8010638a: 6a 00 push $0x0
pushl $247
8010638c: 68 f7 00 00 00 push $0xf7
jmp alltraps
80106391: e9 87 f0 ff ff jmp 8010541d <alltraps>
80106396 <vector248>:
.globl vector248
vector248:
pushl $0
80106396: 6a 00 push $0x0
pushl $248
80106398: 68 f8 00 00 00 push $0xf8
jmp alltraps
8010639d: e9 7b f0 ff ff jmp 8010541d <alltraps>
801063a2 <vector249>:
.globl vector249
vector249:
pushl $0
801063a2: 6a 00 push $0x0
pushl $249
801063a4: 68 f9 00 00 00 push $0xf9
jmp alltraps
801063a9: e9 6f f0 ff ff jmp 8010541d <alltraps>
801063ae <vector250>:
.globl vector250
vector250:
pushl $0
801063ae: 6a 00 push $0x0
pushl $250
801063b0: 68 fa 00 00 00 push $0xfa
jmp alltraps
801063b5: e9 63 f0 ff ff jmp 8010541d <alltraps>
801063ba <vector251>:
.globl vector251
vector251:
pushl $0
801063ba: 6a 00 push $0x0
pushl $251
801063bc: 68 fb 00 00 00 push $0xfb
jmp alltraps
801063c1: e9 57 f0 ff ff jmp 8010541d <alltraps>
801063c6 <vector252>:
.globl vector252
vector252:
pushl $0
801063c6: 6a 00 push $0x0
pushl $252
801063c8: 68 fc 00 00 00 push $0xfc
jmp alltraps
801063cd: e9 4b f0 ff ff jmp 8010541d <alltraps>
801063d2 <vector253>:
.globl vector253
vector253:
pushl $0
801063d2: 6a 00 push $0x0
pushl $253
801063d4: 68 fd 00 00 00 push $0xfd
jmp alltraps
801063d9: e9 3f f0 ff ff jmp 8010541d <alltraps>
801063de <vector254>:
.globl vector254
vector254:
pushl $0
801063de: 6a 00 push $0x0
pushl $254
801063e0: 68 fe 00 00 00 push $0xfe
jmp alltraps
801063e5: e9 33 f0 ff ff jmp 8010541d <alltraps>
801063ea <vector255>:
.globl vector255
vector255:
pushl $0
801063ea: 6a 00 push $0x0
pushl $255
801063ec: 68 ff 00 00 00 push $0xff
jmp alltraps
801063f1: e9 27 f0 ff ff jmp 8010541d <alltraps>
801063f6: 66 90 xchg %ax,%ax
801063f8: 66 90 xchg %ax,%ax
801063fa: 66 90 xchg %ax,%ax
801063fc: 66 90 xchg %ax,%ax
801063fe: 66 90 xchg %ax,%ax
80106400 <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)
{
80106400: 55 push %ebp
80106401: 89 e5 mov %esp,%ebp
80106403: 57 push %edi
80106404: 56 push %esi
80106405: 89 d6 mov %edx,%esi
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80106407: c1 ea 16 shr $0x16,%edx
{
8010640a: 53 push %ebx
pde = &pgdir[PDX(va)];
8010640b: 8d 3c 90 lea (%eax,%edx,4),%edi
{
8010640e: 83 ec 1c sub $0x1c,%esp
if(*pde & PTE_P){
80106411: 8b 1f mov (%edi),%ebx
80106413: f6 c3 01 test $0x1,%bl
80106416: 74 28 je 80106440 <walkpgdir+0x40>
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
80106418: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
8010641e: 81 c3 00 00 00 80 add $0x80000000,%ebx
// 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;
}
return &pgtab[PTX(va)];
80106424: c1 ee 0a shr $0xa,%esi
}
80106427: 83 c4 1c add $0x1c,%esp
return &pgtab[PTX(va)];
8010642a: 89 f2 mov %esi,%edx
8010642c: 81 e2 fc 0f 00 00 and $0xffc,%edx
80106432: 8d 04 13 lea (%ebx,%edx,1),%eax
}
80106435: 5b pop %ebx
80106436: 5e pop %esi
80106437: 5f pop %edi
80106438: 5d pop %ebp
80106439: c3 ret
8010643a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
80106440: 85 c9 test %ecx,%ecx
80106442: 74 34 je 80106478 <walkpgdir+0x78>
80106444: e8 47 c0 ff ff call 80102490 <kalloc>
80106449: 85 c0 test %eax,%eax
8010644b: 89 c3 mov %eax,%ebx
8010644d: 74 29 je 80106478 <walkpgdir+0x78>
memset(pgtab, 0, PGSIZE);
8010644f: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80106456: 00
80106457: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010645e: 00
8010645f: 89 04 24 mov %eax,(%esp)
80106462: e8 09 de ff ff call 80104270 <memset>
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
80106467: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
8010646d: 83 c8 07 or $0x7,%eax
80106470: 89 07 mov %eax,(%edi)
80106472: eb b0 jmp 80106424 <walkpgdir+0x24>
80106474: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
}
80106478: 83 c4 1c add $0x1c,%esp
return 0;
8010647b: 31 c0 xor %eax,%eax
}
8010647d: 5b pop %ebx
8010647e: 5e pop %esi
8010647f: 5f pop %edi
80106480: 5d pop %ebp
80106481: c3 ret
80106482: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106489: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106490 <mappages>:
// Create PTEs for virtual addresses starting at va that refer to
// physical addresses starting at pa. va and size might not
// be page-aligned.
static int
mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm)
{
80106490: 55 push %ebp
80106491: 89 e5 mov %esp,%ebp
80106493: 57 push %edi
80106494: 56 push %esi
80106495: 53 push %ebx
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
80106496: 89 d3 mov %edx,%ebx
{
80106498: 83 ec 1c sub $0x1c,%esp
8010649b: 8b 7d 08 mov 0x8(%ebp),%edi
a = (char*)PGROUNDDOWN((uint)va);
8010649e: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
{
801064a4: 89 45 e0 mov %eax,-0x20(%ebp)
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
801064a7: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
801064ab: 89 45 e4 mov %eax,-0x1c(%ebp)
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
return -1;
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
801064ae: 83 4d 0c 01 orl $0x1,0xc(%ebp)
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
801064b2: 81 65 e4 00 f0 ff ff andl $0xfffff000,-0x1c(%ebp)
801064b9: 29 df sub %ebx,%edi
801064bb: eb 18 jmp 801064d5 <mappages+0x45>
801064bd: 8d 76 00 lea 0x0(%esi),%esi
if(*pte & PTE_P)
801064c0: f6 00 01 testb $0x1,(%eax)
801064c3: 75 3d jne 80106502 <mappages+0x72>
*pte = pa | perm | PTE_P;
801064c5: 0b 75 0c or 0xc(%ebp),%esi
if(a == last)
801064c8: 3b 5d e4 cmp -0x1c(%ebp),%ebx
*pte = pa | perm | PTE_P;
801064cb: 89 30 mov %esi,(%eax)
if(a == last)
801064cd: 74 29 je 801064f8 <mappages+0x68>
break;
a += PGSIZE;
801064cf: 81 c3 00 10 00 00 add $0x1000,%ebx
if((pte = walkpgdir(pgdir, a, 1)) == 0)
801064d5: 8b 45 e0 mov -0x20(%ebp),%eax
801064d8: b9 01 00 00 00 mov $0x1,%ecx
801064dd: 89 da mov %ebx,%edx
801064df: 8d 34 3b lea (%ebx,%edi,1),%esi
801064e2: e8 19 ff ff ff call 80106400 <walkpgdir>
801064e7: 85 c0 test %eax,%eax
801064e9: 75 d5 jne 801064c0 <mappages+0x30>
pa += PGSIZE;
}
return 0;
}
801064eb: 83 c4 1c add $0x1c,%esp
return -1;
801064ee: b8 ff ff ff ff mov $0xffffffff,%eax
}
801064f3: 5b pop %ebx
801064f4: 5e pop %esi
801064f5: 5f pop %edi
801064f6: 5d pop %ebp
801064f7: c3 ret
801064f8: 83 c4 1c add $0x1c,%esp
return 0;
801064fb: 31 c0 xor %eax,%eax
}
801064fd: 5b pop %ebx
801064fe: 5e pop %esi
801064ff: 5f pop %edi
80106500: 5d pop %ebp
80106501: c3 ret
panic("remap");
80106502: c7 04 24 b8 77 10 80 movl $0x801077b8,(%esp)
80106509: e8 52 9e ff ff call 80100360 <panic>
8010650e: 66 90 xchg %ax,%ax
80106510 <deallocuvm.part.0>:
// Deallocate user pages to bring the process size from oldsz to
// 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)
80106510: 55 push %ebp
80106511: 89 e5 mov %esp,%ebp
80106513: 57 push %edi
80106514: 89 c7 mov %eax,%edi
80106516: 56 push %esi
80106517: 89 d6 mov %edx,%esi
80106519: 53 push %ebx
uint a, pa;
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
8010651a: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106520: 83 ec 1c sub $0x1c,%esp
a = PGROUNDUP(newsz);
80106523: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; a < oldsz; a += PGSIZE){
80106529: 39 d3 cmp %edx,%ebx
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
8010652b: 89 4d e0 mov %ecx,-0x20(%ebp)
for(; a < oldsz; a += PGSIZE){
8010652e: 72 3b jb 8010656b <deallocuvm.part.0+0x5b>
80106530: eb 5e jmp 80106590 <deallocuvm.part.0+0x80>
80106532: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
pte = walkpgdir(pgdir, (char*)a, 0);
if(!pte)
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
else if((*pte & PTE_P) != 0){
80106538: 8b 10 mov (%eax),%edx
8010653a: f6 c2 01 test $0x1,%dl
8010653d: 74 22 je 80106561 <deallocuvm.part.0+0x51>
pa = PTE_ADDR(*pte);
if(pa == 0)
8010653f: 81 e2 00 f0 ff ff and $0xfffff000,%edx
80106545: 74 54 je 8010659b <deallocuvm.part.0+0x8b>
panic("kfree");
char *v = P2V(pa);
80106547: 81 c2 00 00 00 80 add $0x80000000,%edx
kfree(v);
8010654d: 89 14 24 mov %edx,(%esp)
80106550: 89 45 e4 mov %eax,-0x1c(%ebp)
80106553: e8 88 bd ff ff call 801022e0 <kfree>
*pte = 0;
80106558: 8b 45 e4 mov -0x1c(%ebp),%eax
8010655b: c7 00 00 00 00 00 movl $0x0,(%eax)
for(; a < oldsz; a += PGSIZE){
80106561: 81 c3 00 10 00 00 add $0x1000,%ebx
80106567: 39 f3 cmp %esi,%ebx
80106569: 73 25 jae 80106590 <deallocuvm.part.0+0x80>
pte = walkpgdir(pgdir, (char*)a, 0);
8010656b: 31 c9 xor %ecx,%ecx
8010656d: 89 da mov %ebx,%edx
8010656f: 89 f8 mov %edi,%eax
80106571: e8 8a fe ff ff call 80106400 <walkpgdir>
if(!pte)
80106576: 85 c0 test %eax,%eax
80106578: 75 be jne 80106538 <deallocuvm.part.0+0x28>
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
8010657a: 81 e3 00 00 c0 ff and $0xffc00000,%ebx
80106580: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx
for(; a < oldsz; a += PGSIZE){
80106586: 81 c3 00 10 00 00 add $0x1000,%ebx
8010658c: 39 f3 cmp %esi,%ebx
8010658e: 72 db jb 8010656b <deallocuvm.part.0+0x5b>
}
}
return newsz;
}
80106590: 8b 45 e0 mov -0x20(%ebp),%eax
80106593: 83 c4 1c add $0x1c,%esp
80106596: 5b pop %ebx
80106597: 5e pop %esi
80106598: 5f pop %edi
80106599: 5d pop %ebp
8010659a: c3 ret
panic("kfree");
8010659b: c7 04 24 a6 70 10 80 movl $0x801070a6,(%esp)
801065a2: e8 b9 9d ff ff call 80100360 <panic>
801065a7: 89 f6 mov %esi,%esi
801065a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801065b0 <seginit>:
{
801065b0: 55 push %ebp
801065b1: 89 e5 mov %esp,%ebp
801065b3: 83 ec 18 sub $0x18,%esp
c = &cpus[cpuid()];
801065b6: e8 b5 d0 ff ff call 80103670 <cpuid>
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
801065bb: 31 c9 xor %ecx,%ecx
801065bd: ba ff ff ff ff mov $0xffffffff,%edx
c = &cpus[cpuid()];
801065c2: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax
801065c8: 05 80 27 11 80 add $0x80112780,%eax
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
801065cd: 66 89 50 78 mov %dx,0x78(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
801065d1: ba ff ff ff ff mov $0xffffffff,%edx
lgdt(c->gdt, sizeof(c->gdt));
801065d6: 83 c0 70 add $0x70,%eax
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
801065d9: 66 89 48 0a mov %cx,0xa(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
801065dd: 31 c9 xor %ecx,%ecx
801065df: 66 89 50 10 mov %dx,0x10(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
801065e3: ba ff ff ff ff mov $0xffffffff,%edx
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
801065e8: 66 89 48 12 mov %cx,0x12(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
801065ec: 31 c9 xor %ecx,%ecx
801065ee: 66 89 50 18 mov %dx,0x18(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
801065f2: ba ff ff ff ff mov $0xffffffff,%edx
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
801065f7: 66 89 48 1a mov %cx,0x1a(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
801065fb: 31 c9 xor %ecx,%ecx
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
801065fd: c6 40 0d 9a movb $0x9a,0xd(%eax)
80106601: c6 40 0e cf movb $0xcf,0xe(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
80106605: c6 40 15 92 movb $0x92,0x15(%eax)
80106609: c6 40 16 cf movb $0xcf,0x16(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
8010660d: c6 40 1d fa movb $0xfa,0x1d(%eax)
80106611: c6 40 1e cf movb $0xcf,0x1e(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
80106615: c6 40 25 f2 movb $0xf2,0x25(%eax)
80106619: c6 40 26 cf movb $0xcf,0x26(%eax)
8010661d: 66 89 50 20 mov %dx,0x20(%eax)
pd[0] = size-1;
80106621: ba 2f 00 00 00 mov $0x2f,%edx
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
80106626: c6 40 0c 00 movb $0x0,0xc(%eax)
8010662a: c6 40 0f 00 movb $0x0,0xf(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
8010662e: c6 40 14 00 movb $0x0,0x14(%eax)
80106632: c6 40 17 00 movb $0x0,0x17(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
80106636: c6 40 1c 00 movb $0x0,0x1c(%eax)
8010663a: c6 40 1f 00 movb $0x0,0x1f(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
8010663e: 66 89 48 22 mov %cx,0x22(%eax)
80106642: c6 40 24 00 movb $0x0,0x24(%eax)
80106646: c6 40 27 00 movb $0x0,0x27(%eax)
8010664a: 66 89 55 f2 mov %dx,-0xe(%ebp)
pd[1] = (uint)p;
8010664e: 66 89 45 f4 mov %ax,-0xc(%ebp)
pd[2] = (uint)p >> 16;
80106652: c1 e8 10 shr $0x10,%eax
80106655: 66 89 45 f6 mov %ax,-0xa(%ebp)
asm volatile("lgdt (%0)" : : "r" (pd));
80106659: 8d 45 f2 lea -0xe(%ebp),%eax
8010665c: 0f 01 10 lgdtl (%eax)
}
8010665f: c9 leave
80106660: c3 ret
80106661: eb 0d jmp 80106670 <switchkvm>
80106663: 90 nop
80106664: 90 nop
80106665: 90 nop
80106666: 90 nop
80106667: 90 nop
80106668: 90 nop
80106669: 90 nop
8010666a: 90 nop
8010666b: 90 nop
8010666c: 90 nop
8010666d: 90 nop
8010666e: 90 nop
8010666f: 90 nop
80106670 <switchkvm>:
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106670: a1 a4 55 11 80 mov 0x801155a4,%eax
{
80106675: 55 push %ebp
80106676: 89 e5 mov %esp,%ebp
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106678: 05 00 00 00 80 add $0x80000000,%eax
}
static inline void
lcr3(uint val)
{
asm volatile("movl %0,%%cr3" : : "r" (val));
8010667d: 0f 22 d8 mov %eax,%cr3
}
80106680: 5d pop %ebp
80106681: c3 ret
80106682: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106689: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106690 <switchuvm>:
{
80106690: 55 push %ebp
80106691: 89 e5 mov %esp,%ebp
80106693: 57 push %edi
80106694: 56 push %esi
80106695: 53 push %ebx
80106696: 83 ec 1c sub $0x1c,%esp
80106699: 8b 75 08 mov 0x8(%ebp),%esi
if(p == 0)
8010669c: 85 f6 test %esi,%esi
8010669e: 0f 84 cd 00 00 00 je 80106771 <switchuvm+0xe1>
if(p->kstack == 0)
801066a4: 8b 46 08 mov 0x8(%esi),%eax
801066a7: 85 c0 test %eax,%eax
801066a9: 0f 84 da 00 00 00 je 80106789 <switchuvm+0xf9>
if(p->pgdir == 0)
801066af: 8b 7e 04 mov 0x4(%esi),%edi
801066b2: 85 ff test %edi,%edi
801066b4: 0f 84 c3 00 00 00 je 8010677d <switchuvm+0xed>
pushcli();
801066ba: e8 31 da ff ff call 801040f0 <pushcli>
mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts,
801066bf: e8 2c cf ff ff call 801035f0 <mycpu>
801066c4: 89 c3 mov %eax,%ebx
801066c6: e8 25 cf ff ff call 801035f0 <mycpu>
801066cb: 89 c7 mov %eax,%edi
801066cd: e8 1e cf ff ff call 801035f0 <mycpu>
801066d2: 83 c7 08 add $0x8,%edi
801066d5: 89 45 e4 mov %eax,-0x1c(%ebp)
801066d8: e8 13 cf ff ff call 801035f0 <mycpu>
801066dd: 8b 4d e4 mov -0x1c(%ebp),%ecx
801066e0: ba 67 00 00 00 mov $0x67,%edx
801066e5: 66 89 93 98 00 00 00 mov %dx,0x98(%ebx)
801066ec: 66 89 bb 9a 00 00 00 mov %di,0x9a(%ebx)
801066f3: c6 83 9d 00 00 00 99 movb $0x99,0x9d(%ebx)
801066fa: 83 c1 08 add $0x8,%ecx
801066fd: c1 e9 10 shr $0x10,%ecx
80106700: 83 c0 08 add $0x8,%eax
80106703: c1 e8 18 shr $0x18,%eax
80106706: 88 8b 9c 00 00 00 mov %cl,0x9c(%ebx)
8010670c: c6 83 9e 00 00 00 40 movb $0x40,0x9e(%ebx)
80106713: 88 83 9f 00 00 00 mov %al,0x9f(%ebx)
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106719: bb ff ff ff ff mov $0xffffffff,%ebx
mycpu()->gdt[SEG_TSS].s = 0;
8010671e: e8 cd ce ff ff call 801035f0 <mycpu>
80106723: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax)
mycpu()->ts.ss0 = SEG_KDATA << 3;
8010672a: e8 c1 ce ff ff call 801035f0 <mycpu>
8010672f: b9 10 00 00 00 mov $0x10,%ecx
80106734: 66 89 48 10 mov %cx,0x10(%eax)
mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE;
80106738: e8 b3 ce ff ff call 801035f0 <mycpu>
8010673d: 8b 56 08 mov 0x8(%esi),%edx
80106740: 8d 8a 00 10 00 00 lea 0x1000(%edx),%ecx
80106746: 89 48 0c mov %ecx,0xc(%eax)
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106749: e8 a2 ce ff ff call 801035f0 <mycpu>
8010674e: 66 89 58 6e mov %bx,0x6e(%eax)
asm volatile("ltr %0" : : "r" (sel));
80106752: b8 28 00 00 00 mov $0x28,%eax
80106757: 0f 00 d8 ltr %ax
lcr3(V2P(p->pgdir)); // switch to process's address space
8010675a: 8b 46 04 mov 0x4(%esi),%eax
8010675d: 05 00 00 00 80 add $0x80000000,%eax
asm volatile("movl %0,%%cr3" : : "r" (val));
80106762: 0f 22 d8 mov %eax,%cr3
}
80106765: 83 c4 1c add $0x1c,%esp
80106768: 5b pop %ebx
80106769: 5e pop %esi
8010676a: 5f pop %edi
8010676b: 5d pop %ebp
popcli();
8010676c: e9 3f da ff ff jmp 801041b0 <popcli>
panic("switchuvm: no process");
80106771: c7 04 24 be 77 10 80 movl $0x801077be,(%esp)
80106778: e8 e3 9b ff ff call 80100360 <panic>
panic("switchuvm: no pgdir");
8010677d: c7 04 24 e9 77 10 80 movl $0x801077e9,(%esp)
80106784: e8 d7 9b ff ff call 80100360 <panic>
panic("switchuvm: no kstack");
80106789: c7 04 24 d4 77 10 80 movl $0x801077d4,(%esp)
80106790: e8 cb 9b ff ff call 80100360 <panic>
80106795: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80106799: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801067a0 <inituvm>:
{
801067a0: 55 push %ebp
801067a1: 89 e5 mov %esp,%ebp
801067a3: 57 push %edi
801067a4: 56 push %esi
801067a5: 53 push %ebx
801067a6: 83 ec 1c sub $0x1c,%esp
801067a9: 8b 75 10 mov 0x10(%ebp),%esi
801067ac: 8b 45 08 mov 0x8(%ebp),%eax
801067af: 8b 7d 0c mov 0xc(%ebp),%edi
if(sz >= PGSIZE)
801067b2: 81 fe ff 0f 00 00 cmp $0xfff,%esi
{
801067b8: 89 45 e4 mov %eax,-0x1c(%ebp)
if(sz >= PGSIZE)
801067bb: 77 54 ja 80106811 <inituvm+0x71>
mem = kalloc();
801067bd: e8 ce bc ff ff call 80102490 <kalloc>
memset(mem, 0, PGSIZE);
801067c2: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801067c9: 00
801067ca: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801067d1: 00
mem = kalloc();
801067d2: 89 c3 mov %eax,%ebx
memset(mem, 0, PGSIZE);
801067d4: 89 04 24 mov %eax,(%esp)
801067d7: e8 94 da ff ff call 80104270 <memset>
mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
801067dc: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
801067e2: b9 00 10 00 00 mov $0x1000,%ecx
801067e7: 89 04 24 mov %eax,(%esp)
801067ea: 8b 45 e4 mov -0x1c(%ebp),%eax
801067ed: 31 d2 xor %edx,%edx
801067ef: c7 44 24 04 06 00 00 movl $0x6,0x4(%esp)
801067f6: 00
801067f7: e8 94 fc ff ff call 80106490 <mappages>
memmove(mem, init, sz);
801067fc: 89 75 10 mov %esi,0x10(%ebp)
801067ff: 89 7d 0c mov %edi,0xc(%ebp)
80106802: 89 5d 08 mov %ebx,0x8(%ebp)
}
80106805: 83 c4 1c add $0x1c,%esp
80106808: 5b pop %ebx
80106809: 5e pop %esi
8010680a: 5f pop %edi
8010680b: 5d pop %ebp
memmove(mem, init, sz);
8010680c: e9 ff da ff ff jmp 80104310 <memmove>
panic("inituvm: more than a page");
80106811: c7 04 24 fd 77 10 80 movl $0x801077fd,(%esp)
80106818: e8 43 9b ff ff call 80100360 <panic>
8010681d: 8d 76 00 lea 0x0(%esi),%esi
80106820 <loaduvm>:
{
80106820: 55 push %ebp
80106821: 89 e5 mov %esp,%ebp
80106823: 57 push %edi
80106824: 56 push %esi
80106825: 53 push %ebx
80106826: 83 ec 1c sub $0x1c,%esp
if((uint) addr % PGSIZE != 0)
80106829: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp)
80106830: 0f 85 98 00 00 00 jne 801068ce <loaduvm+0xae>
for(i = 0; i < sz; i += PGSIZE){
80106836: 8b 75 18 mov 0x18(%ebp),%esi
80106839: 31 db xor %ebx,%ebx
8010683b: 85 f6 test %esi,%esi
8010683d: 75 1a jne 80106859 <loaduvm+0x39>
8010683f: eb 77 jmp 801068b8 <loaduvm+0x98>
80106841: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106848: 81 c3 00 10 00 00 add $0x1000,%ebx
8010684e: 81 ee 00 10 00 00 sub $0x1000,%esi
80106854: 39 5d 18 cmp %ebx,0x18(%ebp)
80106857: 76 5f jbe 801068b8 <loaduvm+0x98>
80106859: 8b 55 0c mov 0xc(%ebp),%edx
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
8010685c: 31 c9 xor %ecx,%ecx
8010685e: 8b 45 08 mov 0x8(%ebp),%eax
80106861: 01 da add %ebx,%edx
80106863: e8 98 fb ff ff call 80106400 <walkpgdir>
80106868: 85 c0 test %eax,%eax
8010686a: 74 56 je 801068c2 <loaduvm+0xa2>
pa = PTE_ADDR(*pte);
8010686c: 8b 00 mov (%eax),%eax
n = PGSIZE;
8010686e: bf 00 10 00 00 mov $0x1000,%edi
80106873: 8b 4d 14 mov 0x14(%ebp),%ecx
pa = PTE_ADDR(*pte);
80106876: 25 00 f0 ff ff and $0xfffff000,%eax
n = PGSIZE;
8010687b: 81 fe 00 10 00 00 cmp $0x1000,%esi
80106881: 0f 42 fe cmovb %esi,%edi
if(readi(ip, P2V(pa), offset+i, n) != n)
80106884: 05 00 00 00 80 add $0x80000000,%eax
80106889: 89 44 24 04 mov %eax,0x4(%esp)
8010688d: 8b 45 10 mov 0x10(%ebp),%eax
80106890: 01 d9 add %ebx,%ecx
80106892: 89 7c 24 0c mov %edi,0xc(%esp)
80106896: 89 4c 24 08 mov %ecx,0x8(%esp)
8010689a: 89 04 24 mov %eax,(%esp)
8010689d: e8 ae b0 ff ff call 80101950 <readi>
801068a2: 39 f8 cmp %edi,%eax
801068a4: 74 a2 je 80106848 <loaduvm+0x28>
}
801068a6: 83 c4 1c add $0x1c,%esp
return -1;
801068a9: b8 ff ff ff ff mov $0xffffffff,%eax
}
801068ae: 5b pop %ebx
801068af: 5e pop %esi
801068b0: 5f pop %edi
801068b1: 5d pop %ebp
801068b2: c3 ret
801068b3: 90 nop
801068b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801068b8: 83 c4 1c add $0x1c,%esp
return 0;
801068bb: 31 c0 xor %eax,%eax
}
801068bd: 5b pop %ebx
801068be: 5e pop %esi
801068bf: 5f pop %edi
801068c0: 5d pop %ebp
801068c1: c3 ret
panic("loaduvm: address should exist");
801068c2: c7 04 24 17 78 10 80 movl $0x80107817,(%esp)
801068c9: e8 92 9a ff ff call 80100360 <panic>
panic("loaduvm: addr must be page aligned");
801068ce: c7 04 24 b8 78 10 80 movl $0x801078b8,(%esp)
801068d5: e8 86 9a ff ff call 80100360 <panic>
801068da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801068e0 <allocuvm>:
{
801068e0: 55 push %ebp
801068e1: 89 e5 mov %esp,%ebp
801068e3: 57 push %edi
801068e4: 56 push %esi
801068e5: 53 push %ebx
801068e6: 83 ec 1c sub $0x1c,%esp
801068e9: 8b 7d 10 mov 0x10(%ebp),%edi
if(newsz >= KERNBASE)
801068ec: 85 ff test %edi,%edi
801068ee: 0f 88 7e 00 00 00 js 80106972 <allocuvm+0x92>
if(newsz < oldsz)
801068f4: 3b 7d 0c cmp 0xc(%ebp),%edi
return oldsz;
801068f7: 8b 45 0c mov 0xc(%ebp),%eax
if(newsz < oldsz)
801068fa: 72 78 jb 80106974 <allocuvm+0x94>
a = PGROUNDUP(oldsz);
801068fc: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80106902: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; a < newsz; a += PGSIZE){
80106908: 39 df cmp %ebx,%edi
8010690a: 77 4a ja 80106956 <allocuvm+0x76>
8010690c: eb 72 jmp 80106980 <allocuvm+0xa0>
8010690e: 66 90 xchg %ax,%ax
memset(mem, 0, PGSIZE);
80106910: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80106917: 00
80106918: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010691f: 00
80106920: 89 04 24 mov %eax,(%esp)
80106923: e8 48 d9 ff ff call 80104270 <memset>
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
80106928: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax
8010692e: b9 00 10 00 00 mov $0x1000,%ecx
80106933: 89 04 24 mov %eax,(%esp)
80106936: 8b 45 08 mov 0x8(%ebp),%eax
80106939: 89 da mov %ebx,%edx
8010693b: c7 44 24 04 06 00 00 movl $0x6,0x4(%esp)
80106942: 00
80106943: e8 48 fb ff ff call 80106490 <mappages>
80106948: 85 c0 test %eax,%eax
8010694a: 78 44 js 80106990 <allocuvm+0xb0>
for(; a < newsz; a += PGSIZE){
8010694c: 81 c3 00 10 00 00 add $0x1000,%ebx
80106952: 39 df cmp %ebx,%edi
80106954: 76 2a jbe 80106980 <allocuvm+0xa0>
mem = kalloc();
80106956: e8 35 bb ff ff call 80102490 <kalloc>
if(mem == 0){
8010695b: 85 c0 test %eax,%eax
mem = kalloc();
8010695d: 89 c6 mov %eax,%esi
if(mem == 0){
8010695f: 75 af jne 80106910 <allocuvm+0x30>
cprintf("allocuvm out of memory\n");
80106961: c7 04 24 35 78 10 80 movl $0x80107835,(%esp)
80106968: e8 e3 9c ff ff call 80100650 <cprintf>
if(newsz >= oldsz)
8010696d: 3b 7d 0c cmp 0xc(%ebp),%edi
80106970: 77 48 ja 801069ba <allocuvm+0xda>
return 0;
80106972: 31 c0 xor %eax,%eax
}
80106974: 83 c4 1c add $0x1c,%esp
80106977: 5b pop %ebx
80106978: 5e pop %esi
80106979: 5f pop %edi
8010697a: 5d pop %ebp
8010697b: c3 ret
8010697c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80106980: 83 c4 1c add $0x1c,%esp
80106983: 89 f8 mov %edi,%eax
80106985: 5b pop %ebx
80106986: 5e pop %esi
80106987: 5f pop %edi
80106988: 5d pop %ebp
80106989: c3 ret
8010698a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cprintf("allocuvm out of memory (2)\n");
80106990: c7 04 24 4d 78 10 80 movl $0x8010784d,(%esp)
80106997: e8 b4 9c ff ff call 80100650 <cprintf>
if(newsz >= oldsz)
8010699c: 3b 7d 0c cmp 0xc(%ebp),%edi
8010699f: 76 0d jbe 801069ae <allocuvm+0xce>
801069a1: 8b 4d 0c mov 0xc(%ebp),%ecx
801069a4: 89 fa mov %edi,%edx
801069a6: 8b 45 08 mov 0x8(%ebp),%eax
801069a9: e8 62 fb ff ff call 80106510 <deallocuvm.part.0>
kfree(mem);
801069ae: 89 34 24 mov %esi,(%esp)
801069b1: e8 2a b9 ff ff call 801022e0 <kfree>
return 0;
801069b6: 31 c0 xor %eax,%eax
801069b8: eb ba jmp 80106974 <allocuvm+0x94>
801069ba: 8b 4d 0c mov 0xc(%ebp),%ecx
801069bd: 89 fa mov %edi,%edx
801069bf: 8b 45 08 mov 0x8(%ebp),%eax
801069c2: e8 49 fb ff ff call 80106510 <deallocuvm.part.0>
return 0;
801069c7: 31 c0 xor %eax,%eax
801069c9: eb a9 jmp 80106974 <allocuvm+0x94>
801069cb: 90 nop
801069cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801069d0 <deallocuvm>:
{
801069d0: 55 push %ebp
801069d1: 89 e5 mov %esp,%ebp
801069d3: 8b 55 0c mov 0xc(%ebp),%edx
801069d6: 8b 4d 10 mov 0x10(%ebp),%ecx
801069d9: 8b 45 08 mov 0x8(%ebp),%eax
if(newsz >= oldsz)
801069dc: 39 d1 cmp %edx,%ecx
801069de: 73 08 jae 801069e8 <deallocuvm+0x18>
}
801069e0: 5d pop %ebp
801069e1: e9 2a fb ff ff jmp 80106510 <deallocuvm.part.0>
801069e6: 66 90 xchg %ax,%ax
801069e8: 89 d0 mov %edx,%eax
801069ea: 5d pop %ebp
801069eb: c3 ret
801069ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801069f0 <freevm>:
// Free a page table and all the physical memory pages
// in the user part.
void
freevm(pde_t *pgdir)
{
801069f0: 55 push %ebp
801069f1: 89 e5 mov %esp,%ebp
801069f3: 56 push %esi
801069f4: 53 push %ebx
801069f5: 83 ec 10 sub $0x10,%esp
801069f8: 8b 75 08 mov 0x8(%ebp),%esi
uint i;
if(pgdir == 0)
801069fb: 85 f6 test %esi,%esi
801069fd: 74 59 je 80106a58 <freevm+0x68>
801069ff: 31 c9 xor %ecx,%ecx
80106a01: ba 00 00 00 80 mov $0x80000000,%edx
80106a06: 89 f0 mov %esi,%eax
panic("freevm: no pgdir");
deallocuvm(pgdir, KERNBASE, 0);
for(i = 0; i < NPDENTRIES; i++){
80106a08: 31 db xor %ebx,%ebx
80106a0a: e8 01 fb ff ff call 80106510 <deallocuvm.part.0>
80106a0f: eb 12 jmp 80106a23 <freevm+0x33>
80106a11: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106a18: 83 c3 01 add $0x1,%ebx
80106a1b: 81 fb 00 04 00 00 cmp $0x400,%ebx
80106a21: 74 27 je 80106a4a <freevm+0x5a>
if(pgdir[i] & PTE_P){
80106a23: 8b 14 9e mov (%esi,%ebx,4),%edx
80106a26: f6 c2 01 test $0x1,%dl
80106a29: 74 ed je 80106a18 <freevm+0x28>
char * v = P2V(PTE_ADDR(pgdir[i]));
80106a2b: 81 e2 00 f0 ff ff and $0xfffff000,%edx
for(i = 0; i < NPDENTRIES; i++){
80106a31: 83 c3 01 add $0x1,%ebx
char * v = P2V(PTE_ADDR(pgdir[i]));
80106a34: 81 c2 00 00 00 80 add $0x80000000,%edx
kfree(v);
80106a3a: 89 14 24 mov %edx,(%esp)
80106a3d: e8 9e b8 ff ff call 801022e0 <kfree>
for(i = 0; i < NPDENTRIES; i++){
80106a42: 81 fb 00 04 00 00 cmp $0x400,%ebx
80106a48: 75 d9 jne 80106a23 <freevm+0x33>
}
}
kfree((char*)pgdir);
80106a4a: 89 75 08 mov %esi,0x8(%ebp)
}
80106a4d: 83 c4 10 add $0x10,%esp
80106a50: 5b pop %ebx
80106a51: 5e pop %esi
80106a52: 5d pop %ebp
kfree((char*)pgdir);
80106a53: e9 88 b8 ff ff jmp 801022e0 <kfree>
panic("freevm: no pgdir");
80106a58: c7 04 24 69 78 10 80 movl $0x80107869,(%esp)
80106a5f: e8 fc 98 ff ff call 80100360 <panic>
80106a64: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106a6a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106a70 <setupkvm>:
{
80106a70: 55 push %ebp
80106a71: 89 e5 mov %esp,%ebp
80106a73: 56 push %esi
80106a74: 53 push %ebx
80106a75: 83 ec 10 sub $0x10,%esp
if((pgdir = (pde_t*)kalloc()) == 0)
80106a78: e8 13 ba ff ff call 80102490 <kalloc>
80106a7d: 85 c0 test %eax,%eax
80106a7f: 89 c6 mov %eax,%esi
80106a81: 74 6d je 80106af0 <setupkvm+0x80>
memset(pgdir, 0, PGSIZE);
80106a83: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80106a8a: 00
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80106a8b: bb 20 a4 10 80 mov $0x8010a420,%ebx
memset(pgdir, 0, PGSIZE);
80106a90: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106a97: 00
80106a98: 89 04 24 mov %eax,(%esp)
80106a9b: e8 d0 d7 ff ff call 80104270 <memset>
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
80106aa0: 8b 53 0c mov 0xc(%ebx),%edx
80106aa3: 8b 43 04 mov 0x4(%ebx),%eax
80106aa6: 8b 4b 08 mov 0x8(%ebx),%ecx
80106aa9: 89 54 24 04 mov %edx,0x4(%esp)
80106aad: 8b 13 mov (%ebx),%edx
80106aaf: 89 04 24 mov %eax,(%esp)
80106ab2: 29 c1 sub %eax,%ecx
80106ab4: 89 f0 mov %esi,%eax
80106ab6: e8 d5 f9 ff ff call 80106490 <mappages>
80106abb: 85 c0 test %eax,%eax
80106abd: 78 19 js 80106ad8 <setupkvm+0x68>
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80106abf: 83 c3 10 add $0x10,%ebx
80106ac2: 81 fb 60 a4 10 80 cmp $0x8010a460,%ebx
80106ac8: 72 d6 jb 80106aa0 <setupkvm+0x30>
80106aca: 89 f0 mov %esi,%eax
}
80106acc: 83 c4 10 add $0x10,%esp
80106acf: 5b pop %ebx
80106ad0: 5e pop %esi
80106ad1: 5d pop %ebp
80106ad2: c3 ret
80106ad3: 90 nop
80106ad4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
freevm(pgdir);
80106ad8: 89 34 24 mov %esi,(%esp)
80106adb: e8 10 ff ff ff call 801069f0 <freevm>
}
80106ae0: 83 c4 10 add $0x10,%esp
return 0;
80106ae3: 31 c0 xor %eax,%eax
}
80106ae5: 5b pop %ebx
80106ae6: 5e pop %esi
80106ae7: 5d pop %ebp
80106ae8: c3 ret
80106ae9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
80106af0: 31 c0 xor %eax,%eax
80106af2: eb d8 jmp 80106acc <setupkvm+0x5c>
80106af4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106afa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106b00 <kvmalloc>:
{
80106b00: 55 push %ebp
80106b01: 89 e5 mov %esp,%ebp
80106b03: 83 ec 08 sub $0x8,%esp
kpgdir = setupkvm();
80106b06: e8 65 ff ff ff call 80106a70 <setupkvm>
80106b0b: a3 a4 55 11 80 mov %eax,0x801155a4
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106b10: 05 00 00 00 80 add $0x80000000,%eax
80106b15: 0f 22 d8 mov %eax,%cr3
}
80106b18: c9 leave
80106b19: c3 ret
80106b1a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106b20 <clearpteu>:
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
80106b20: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80106b21: 31 c9 xor %ecx,%ecx
{
80106b23: 89 e5 mov %esp,%ebp
80106b25: 83 ec 18 sub $0x18,%esp
pte = walkpgdir(pgdir, uva, 0);
80106b28: 8b 55 0c mov 0xc(%ebp),%edx
80106b2b: 8b 45 08 mov 0x8(%ebp),%eax
80106b2e: e8 cd f8 ff ff call 80106400 <walkpgdir>
if(pte == 0)
80106b33: 85 c0 test %eax,%eax
80106b35: 74 05 je 80106b3c <clearpteu+0x1c>
panic("clearpteu");
*pte &= ~PTE_U;
80106b37: 83 20 fb andl $0xfffffffb,(%eax)
}
80106b3a: c9 leave
80106b3b: c3 ret
panic("clearpteu");
80106b3c: c7 04 24 7a 78 10 80 movl $0x8010787a,(%esp)
80106b43: e8 18 98 ff ff call 80100360 <panic>
80106b48: 90 nop
80106b49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106b50 <copyuvm>:
// Given a parent process's page table, create a copy
// of it for a child.
pde_t*
copyuvm(pde_t *pgdir, uint sz)
{
80106b50: 55 push %ebp
80106b51: 89 e5 mov %esp,%ebp
80106b53: 57 push %edi
80106b54: 56 push %esi
80106b55: 53 push %ebx
80106b56: 83 ec 2c sub $0x2c,%esp
pde_t *d;
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
80106b59: e8 12 ff ff ff call 80106a70 <setupkvm>
80106b5e: 85 c0 test %eax,%eax
80106b60: 89 45 e0 mov %eax,-0x20(%ebp)
80106b63: 0f 84 4c 01 00 00 je 80106cb5 <copyuvm+0x165>
return 0;
for(i = 0; i < sz; i += PGSIZE){
80106b69: 8b 45 0c mov 0xc(%ebp),%eax
80106b6c: 85 c0 test %eax,%eax
80106b6e: 0f 84 a4 00 00 00 je 80106c18 <copyuvm+0xc8>
80106b74: 31 ff xor %edi,%edi
80106b76: eb 4c jmp 80106bc4 <copyuvm+0x74>
panic("copyuvm: page not present");
pa = PTE_ADDR(*pte);
flags = PTE_FLAGS(*pte);
if((mem = kalloc()) == 0)
goto bad;
memmove(mem, (char*)P2V(pa), PGSIZE);
80106b78: 81 c6 00 00 00 80 add $0x80000000,%esi
80106b7e: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80106b85: 00
80106b86: 89 74 24 04 mov %esi,0x4(%esp)
80106b8a: 89 04 24 mov %eax,(%esp)
80106b8d: e8 7e d7 ff ff call 80104310 <memmove>
if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) {
80106b92: 8b 45 e4 mov -0x1c(%ebp),%eax
80106b95: b9 00 10 00 00 mov $0x1000,%ecx
80106b9a: 89 fa mov %edi,%edx
80106b9c: 89 44 24 04 mov %eax,0x4(%esp)
80106ba0: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80106ba6: 89 04 24 mov %eax,(%esp)
80106ba9: 8b 45 e0 mov -0x20(%ebp),%eax
80106bac: e8 df f8 ff ff call 80106490 <mappages>
80106bb1: 85 c0 test %eax,%eax
80106bb3: 0f 88 ef 00 00 00 js 80106ca8 <copyuvm+0x158>
for(i = 0; i < sz; i += PGSIZE){
80106bb9: 81 c7 00 10 00 00 add $0x1000,%edi
80106bbf: 39 7d 0c cmp %edi,0xc(%ebp)
80106bc2: 76 54 jbe 80106c18 <copyuvm+0xc8>
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
80106bc4: 8b 45 08 mov 0x8(%ebp),%eax
80106bc7: 31 c9 xor %ecx,%ecx
80106bc9: 89 fa mov %edi,%edx
80106bcb: e8 30 f8 ff ff call 80106400 <walkpgdir>
80106bd0: 85 c0 test %eax,%eax
80106bd2: 0f 84 f0 00 00 00 je 80106cc8 <copyuvm+0x178>
if(!(*pte & PTE_P))
80106bd8: 8b 00 mov (%eax),%eax
80106bda: a8 01 test $0x1,%al
80106bdc: 0f 84 da 00 00 00 je 80106cbc <copyuvm+0x16c>
pa = PTE_ADDR(*pte);
80106be2: 89 c6 mov %eax,%esi
flags = PTE_FLAGS(*pte);
80106be4: 25 ff 0f 00 00 and $0xfff,%eax
80106be9: 89 45 e4 mov %eax,-0x1c(%ebp)
pa = PTE_ADDR(*pte);
80106bec: 81 e6 00 f0 ff ff and $0xfffff000,%esi
if((mem = kalloc()) == 0)
80106bf2: e8 99 b8 ff ff call 80102490 <kalloc>
80106bf7: 85 c0 test %eax,%eax
80106bf9: 89 c3 mov %eax,%ebx
80106bfb: 0f 85 77 ff ff ff jne 80106b78 <copyuvm+0x28>
}
return d;
bad:
freevm(d);
80106c01: 8b 45 e0 mov -0x20(%ebp),%eax
80106c04: 89 04 24 mov %eax,(%esp)
80106c07: e8 e4 fd ff ff call 801069f0 <freevm>
return 0;
80106c0c: 31 c0 xor %eax,%eax
}
80106c0e: 83 c4 2c add $0x2c,%esp
80106c11: 5b pop %ebx
80106c12: 5e pop %esi
80106c13: 5f pop %edi
80106c14: 5d pop %ebp
80106c15: c3 ret
80106c16: 66 90 xchg %ax,%ax
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
80106c18: 8b 45 08 mov 0x8(%ebp),%eax
80106c1b: 31 c9 xor %ecx,%ecx
80106c1d: ba fc ff ff 7f mov $0x7ffffffc,%edx
80106c22: e8 d9 f7 ff ff call 80106400 <walkpgdir>
80106c27: 85 c0 test %eax,%eax
80106c29: 0f 84 99 00 00 00 je 80106cc8 <copyuvm+0x178>
if(!(*pte & PTE_P))
80106c2f: 8b 30 mov (%eax),%esi
80106c31: f7 c6 01 00 00 00 test $0x1,%esi
80106c37: 0f 84 7f 00 00 00 je 80106cbc <copyuvm+0x16c>
myproc()->numPage++;
80106c3d: e8 4e ca ff ff call 80103690 <myproc>
pa = PTE_ADDR(*pte);
80106c42: 89 f7 mov %esi,%edi
flags = PTE_FLAGS(*pte);
80106c44: 81 e6 ff 0f 00 00 and $0xfff,%esi
pa = PTE_ADDR(*pte);
80106c4a: 81 e7 00 f0 ff ff and $0xfffff000,%edi
myproc()->numPage++;
80106c50: 83 40 7c 01 addl $0x1,0x7c(%eax)
if((mem = kalloc()) == 0)
80106c54: e8 37 b8 ff ff call 80102490 <kalloc>
80106c59: 85 c0 test %eax,%eax
80106c5b: 89 c3 mov %eax,%ebx
80106c5d: 74 a2 je 80106c01 <copyuvm+0xb1>
memmove(mem, (char*)P2V(pa), PGSIZE);
80106c5f: 81 c7 00 00 00 80 add $0x80000000,%edi
80106c65: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80106c6c: 00
80106c6d: 89 7c 24 04 mov %edi,0x4(%esp)
80106c71: 89 04 24 mov %eax,(%esp)
80106c74: e8 97 d6 ff ff call 80104310 <memmove>
if(mappages(d, (void*)PGROUNDDOWN(i), PGSIZE, V2P(mem), flags) < 0) {
80106c79: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80106c7f: b9 00 10 00 00 mov $0x1000,%ecx
80106c84: 89 04 24 mov %eax,(%esp)
80106c87: 8b 45 e0 mov -0x20(%ebp),%eax
80106c8a: ba 00 f0 ff 7f mov $0x7ffff000,%edx
80106c8f: 89 74 24 04 mov %esi,0x4(%esp)
80106c93: e8 f8 f7 ff ff call 80106490 <mappages>
80106c98: 85 c0 test %eax,%eax
80106c9a: 78 0c js 80106ca8 <copyuvm+0x158>
80106c9c: 8b 45 e0 mov -0x20(%ebp),%eax
}
80106c9f: 83 c4 2c add $0x2c,%esp
80106ca2: 5b pop %ebx
80106ca3: 5e pop %esi
80106ca4: 5f pop %edi
80106ca5: 5d pop %ebp
80106ca6: c3 ret
80106ca7: 90 nop
kfree(mem);
80106ca8: 89 1c 24 mov %ebx,(%esp)
80106cab: e8 30 b6 ff ff call 801022e0 <kfree>
goto bad;
80106cb0: e9 4c ff ff ff jmp 80106c01 <copyuvm+0xb1>
return 0;
80106cb5: 31 c0 xor %eax,%eax
80106cb7: e9 52 ff ff ff jmp 80106c0e <copyuvm+0xbe>
panic("copyuvm: page not present");
80106cbc: c7 04 24 9e 78 10 80 movl $0x8010789e,(%esp)
80106cc3: e8 98 96 ff ff call 80100360 <panic>
panic("copyuvm: pte should exist");
80106cc8: c7 04 24 84 78 10 80 movl $0x80107884,(%esp)
80106ccf: e8 8c 96 ff ff call 80100360 <panic>
80106cd4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106cda: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106ce0 <uva2ka>:
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
80106ce0: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80106ce1: 31 c9 xor %ecx,%ecx
{
80106ce3: 89 e5 mov %esp,%ebp
80106ce5: 83 ec 08 sub $0x8,%esp
pte = walkpgdir(pgdir, uva, 0);
80106ce8: 8b 55 0c mov 0xc(%ebp),%edx
80106ceb: 8b 45 08 mov 0x8(%ebp),%eax
80106cee: e8 0d f7 ff ff call 80106400 <walkpgdir>
if((*pte & PTE_P) == 0)
80106cf3: 8b 00 mov (%eax),%eax
80106cf5: 89 c2 mov %eax,%edx
80106cf7: 83 e2 05 and $0x5,%edx
return 0;
if((*pte & PTE_U) == 0)
80106cfa: 83 fa 05 cmp $0x5,%edx
80106cfd: 75 11 jne 80106d10 <uva2ka+0x30>
return 0;
return (char*)P2V(PTE_ADDR(*pte));
80106cff: 25 00 f0 ff ff and $0xfffff000,%eax
80106d04: 05 00 00 00 80 add $0x80000000,%eax
}
80106d09: c9 leave
80106d0a: c3 ret
80106d0b: 90 nop
80106d0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
80106d10: 31 c0 xor %eax,%eax
}
80106d12: c9 leave
80106d13: c3 ret
80106d14: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106d1a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106d20 <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)
{
80106d20: 55 push %ebp
80106d21: 89 e5 mov %esp,%ebp
80106d23: 57 push %edi
80106d24: 56 push %esi
80106d25: 53 push %ebx
80106d26: 83 ec 1c sub $0x1c,%esp
80106d29: 8b 5d 14 mov 0x14(%ebp),%ebx
80106d2c: 8b 4d 0c mov 0xc(%ebp),%ecx
80106d2f: 8b 7d 10 mov 0x10(%ebp),%edi
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
80106d32: 85 db test %ebx,%ebx
80106d34: 75 3a jne 80106d70 <copyout+0x50>
80106d36: eb 68 jmp 80106da0 <copyout+0x80>
va0 = (uint)PGROUNDDOWN(va);
pa0 = uva2ka(pgdir, (char*)va0);
if(pa0 == 0)
return -1;
n = PGSIZE - (va - va0);
80106d38: 8b 4d e4 mov -0x1c(%ebp),%ecx
80106d3b: 89 f2 mov %esi,%edx
if(n > len)
n = len;
memmove(pa0 + (va - va0), buf, n);
80106d3d: 89 7c 24 04 mov %edi,0x4(%esp)
n = PGSIZE - (va - va0);
80106d41: 29 ca sub %ecx,%edx
80106d43: 81 c2 00 10 00 00 add $0x1000,%edx
80106d49: 39 da cmp %ebx,%edx
80106d4b: 0f 47 d3 cmova %ebx,%edx
memmove(pa0 + (va - va0), buf, n);
80106d4e: 29 f1 sub %esi,%ecx
80106d50: 01 c8 add %ecx,%eax
80106d52: 89 54 24 08 mov %edx,0x8(%esp)
80106d56: 89 04 24 mov %eax,(%esp)
80106d59: 89 55 e4 mov %edx,-0x1c(%ebp)
80106d5c: e8 af d5 ff ff call 80104310 <memmove>
len -= n;
buf += n;
80106d61: 8b 55 e4 mov -0x1c(%ebp),%edx
va = va0 + PGSIZE;
80106d64: 8d 8e 00 10 00 00 lea 0x1000(%esi),%ecx
buf += n;
80106d6a: 01 d7 add %edx,%edi
while(len > 0){
80106d6c: 29 d3 sub %edx,%ebx
80106d6e: 74 30 je 80106da0 <copyout+0x80>
pa0 = uva2ka(pgdir, (char*)va0);
80106d70: 8b 45 08 mov 0x8(%ebp),%eax
va0 = (uint)PGROUNDDOWN(va);
80106d73: 89 ce mov %ecx,%esi
80106d75: 81 e6 00 f0 ff ff and $0xfffff000,%esi
pa0 = uva2ka(pgdir, (char*)va0);
80106d7b: 89 74 24 04 mov %esi,0x4(%esp)
va0 = (uint)PGROUNDDOWN(va);
80106d7f: 89 4d e4 mov %ecx,-0x1c(%ebp)
pa0 = uva2ka(pgdir, (char*)va0);
80106d82: 89 04 24 mov %eax,(%esp)
80106d85: e8 56 ff ff ff call 80106ce0 <uva2ka>
if(pa0 == 0)
80106d8a: 85 c0 test %eax,%eax
80106d8c: 75 aa jne 80106d38 <copyout+0x18>
}
return 0;
}
80106d8e: 83 c4 1c add $0x1c,%esp
return -1;
80106d91: b8 ff ff ff ff mov $0xffffffff,%eax
}
80106d96: 5b pop %ebx
80106d97: 5e pop %esi
80106d98: 5f pop %edi
80106d99: 5d pop %ebp
80106d9a: c3 ret
80106d9b: 90 nop
80106d9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80106da0: 83 c4 1c add $0x1c,%esp
return 0;
80106da3: 31 c0 xor %eax,%eax
}
80106da5: 5b pop %ebx
80106da6: 5e pop %esi
80106da7: 5f pop %edi
80106da8: 5d pop %ebp
80106da9: c3 ret
80106daa: 66 90 xchg %ax,%ax
80106dac: 66 90 xchg %ax,%ax
80106dae: 66 90 xchg %ax,%ax
80106db0 <shminit>:
char *frame;
int refcnt;
} shm_pages[64];
} shm_table;
void shminit() {
80106db0: 55 push %ebp
80106db1: 89 e5 mov %esp,%ebp
80106db3: 83 ec 18 sub $0x18,%esp
int i;
initlock(&(shm_table.lock), "SHM lock");
80106db6: c7 44 24 04 dc 78 10 movl $0x801078dc,0x4(%esp)
80106dbd: 80
80106dbe: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp)
80106dc5: e8 76 d2 ff ff call 80104040 <initlock>
acquire(&(shm_table.lock));
80106dca: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp)
80106dd1: e8 5a d3 ff ff call 80104130 <acquire>
80106dd6: b8 f4 55 11 80 mov $0x801155f4,%eax
80106ddb: 90 nop
80106ddc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for (i = 0; i< 64; i++) {
shm_table.shm_pages[i].id =0;
80106de0: c7 00 00 00 00 00 movl $0x0,(%eax)
80106de6: 83 c0 0c add $0xc,%eax
shm_table.shm_pages[i].frame =0;
80106de9: c7 40 f8 00 00 00 00 movl $0x0,-0x8(%eax)
shm_table.shm_pages[i].refcnt =0;
80106df0: c7 40 fc 00 00 00 00 movl $0x0,-0x4(%eax)
for (i = 0; i< 64; i++) {
80106df7: 3d f4 58 11 80 cmp $0x801158f4,%eax
80106dfc: 75 e2 jne 80106de0 <shminit+0x30>
}
release(&(shm_table.lock));
80106dfe: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp)
80106e05: e8 16 d4 ff ff call 80104220 <release>
}
80106e0a: c9 leave
80106e0b: c3 ret
80106e0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80106e10 <shm_open>:
int shm_open(int id, char **pointer) {
80106e10: 55 push %ebp
return 0; //added to remove compiler warning -- you should decide what to return
}
80106e11: 31 c0 xor %eax,%eax
int shm_open(int id, char **pointer) {
80106e13: 89 e5 mov %esp,%ebp
}
80106e15: 5d pop %ebp
80106e16: c3 ret
80106e17: 89 f6 mov %esi,%esi
80106e19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106e20 <shm_close>:
int shm_close(int id) {
80106e20: 55 push %ebp
return 0; //added to remove compiler warning -- you should decide what to return
}
80106e21: 31 c0 xor %eax,%eax
int shm_close(int id) {
80106e23: 89 e5 mov %esp,%ebp
}
80106e25: 5d pop %ebp
80106e26: c3 ret
| 38.0004
| 124
| 0.529227
|
f420f4869aa088e9bd26eebc4aa8cf00571aee3f
| 717
|
asm
|
Assembly
|
oeis/101/A101400.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/101/A101400.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/101/A101400.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A101400: a(n) = a(n-1) + 2*a(n-2) + a(n-3) - a(n-4).
; Submitted by Jon Maiga
; 1,2,5,10,21,44,91,190,395,822,1711,3560,7409,15418,32085,66770,138949,289156,601739,1252230,2605915,5422958,11285279,23484880,48872481,101704562,211649125,440445850,916576181,1907412444,3969361531,8260316750,17189876075,35772458662,74443166031,154917642680,322386557329,670892550058,1396140141365,2905394156130,6046180431589,12582216335156,26183831213099,54489050158870,113392748488635,235972463684318,491063179607359,1021911805305760,2126617879716161,4425532206250722,9209616591381445
mov $1,1
lpb $0
sub $0,1
sub $1,$4
add $2,$1
add $4,1
add $3,$4
add $1,$3
add $4,$2
add $3,$4
sub $4,$3
add $3,$4
lpe
mov $0,$1
| 37.736842
| 487
| 0.757322
|
bf5bc7e1c23ccf6d87d41385c262a9908d814828
| 258,268
|
asm
|
Assembly
|
Dino Game.asm
|
DADi590/Chrome-Dino-Game-in-Assembly
|
f63ea3c6e1bc6292197f07ba64c215ee7d284563
|
[
"Apache-2.0"
] | null | null | null |
Dino Game.asm
|
DADi590/Chrome-Dino-Game-in-Assembly
|
f63ea3c6e1bc6292197f07ba64c215ee7d284563
|
[
"Apache-2.0"
] | null | null | null |
Dino Game.asm
|
DADi590/Chrome-Dino-Game-in-Assembly
|
f63ea3c6e1bc6292197f07ba64c215ee7d284563
|
[
"Apache-2.0"
] | 1
|
2021-11-10T02:04:33.000Z
|
2021-11-10T02:04:33.000Z
|
; Copyright 2021 DADi590
;
; Licensed to the Apache Software Foundation (ASF) under one
; or more contributor license agreements. See the NOTICE file
; distributed with this work for additional information
; regarding copyright ownership. The ASF licenses this file
; to you under the Apache License, Version 2.0 (the
; "License"); you may not use this file except in compliance
; with the License. You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing,
; software distributed under the License is distributed on an
; "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
; KIND, either express or implied. See the License for the
; specific language governing permissions and limitations
; under the License.
; Main note: this was tested with MASM 9.00.21022.08 and passed from OBJ to EXE with LINK 5.60.339 Dec 5 1994, so it
; can be compiled with it.
; Also works on a 32 bit Windows - except INT 86h doesn't seem to be emulated on Windows 7 Ultimate x86, at least (the
; program won't slow down, it's at maximum speed).
; Note: should also be compatible with MAS 6.15 (freely available from Microsoft's website - which comes with the LINK
; that was used here), since we didn't use directives newer than those used with MASM 6.
name "ProjF_AC" ; Deprecated as of MASM something, but EMU8086 is outdated (old version of FASM), so this is still used
; there.
; Small note: not much attention was paied to the stack, so probably there are bugs on that. Sooner or later the stack
; may get full because we're not clearing it in all places we should. A bit more time would be needed to transform the
; function calls into jumps or put more "mov sp, bp / push bp".
; Another small note: already happened twice a bush coming out of nowhere in the beginning of the screen --> that's not
; supposed to happen, because the vector of random has values from 80 to 255, not from 0 to 255...
; No idea hot to fix that. Should even be happening hahaha.
; And another small note: the music works only outside the emulator. It doesn't recognize a call to a custom segment or
; something like that. So with sound, the program must be assembled with MASM.
.8086
.model small
.stack 100h
.data
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Drawing arrays
;DRAW_DATA_TEMP db 0, 0, 0, 0, 0, 0
; Dinossaur (head)
DRAW_DATA_DINO_ORIGINAL db 12, 0, 21, 02, 00001100b, "#", 07
DRAW_DATA_DINOSSAUR db 12, 0, 21, 02, 00001100b, "#", 07
X_DRAW_DINOSSAUR db 00, 01, 02,02, 03, 04,04, 05,05, 06,06, 07
T_BEGIN_DRAW_DINOSSAUR db 00, -1, -01,1, -1, -1,03, -1,03, -1,03, 00
TIMES_WRITE_Y_DRAW_DINOSSAUR db 04, 05, 01,03, 05, 03,01, 03,01, 03,01, 02
; Dinossaur (head)
; Big bush
DRAW_DATA_BUSH1_ORIGINAL db 03, 0, 16, 200, 00001010b, "#", 03
DRAW_DATA_BUSH1 db 03, 0, 16, 200, 00001010b, "#", 03
X_DRAW_BUSH1 db 00, 01, 02
T_BEGIN_DRAW_BUSH1 db 00, 00, 00
TIMES_WRITE_Y_DRAW_BUSH1 db 09, 09, 09
; Bug bush
; Small bush
DRAW_DATA_BUSH2_ORIGINAL db 03, 0, 19, 140, 00001010b, "#", 03
DRAW_DATA_BUSH2 db 03, 0, 19, 140, 00001010b, "#", 03
X_DRAW_BUSH2 db 00, 01, 02
T_BEGIN_DRAW_BUSH2 db 00, 00, 00
TIMES_WRITE_Y_DRAW_BUSH2 db 06, 06, 06
; Small bush
; Bird
DRAW_DATA_BIRD_ORIGINAL db 14, 0, 8, 80, 00001110b, "#", 14
DRAW_DATA_BIRD db 14, 0, 8, 80, 00001110b, "#", 14
X_DRAW_BIRD db 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13
T_BEGIN_DRAW_BIRD db 00, 00, -1, -2, 01, -5, -4, -2, -2, -1, 00, 00, 00, 00
TIMES_WRITE_Y_DRAW_BIRD db 01, 01, 02, 04, 01, 07, 07, 05, 05, 04, 02, 01, 01, 01
; Bird
; GAME OVER
DRAW_DATA_GAMEOVER db 105, 0, 9, 05, 11001010b, " ", 0
X_DRAW_GAMEOVER db 00, 01, 02,02, 03,03, 04,04, 05,05,05, 06,06, 07,07, 08, 09, 10, 11, 12,12, 13,13, 14,14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
db 28,28,28, 29,29,29, 30,30,30, 31,31, 32,32, 33, 34, 35, 36, 37, 38, 39, 40,40, 41,41, 42,42, 43,43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53
db 54, 55, 56, 57,57,57, 58,58,58, 59,59,59, 60,60, 61,61, 62, 63, 64, 65,65, 66,66, 67,67, 68,68, 69,69
T_BEGIN_DRAW_GAMEOVER db 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00, 00, 00
db 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06, 00, 00, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01, 00, 00, 00, 03, 04, 03, 00, 00
db 00, 00, 00, 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06, 00, 00, 00, 00,04, 00,04, 00,03, 00,05, 01,06
TIMES_WRITE_Y_DRAW_GAMEOVER db 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00, 07, 07
db 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01, 00, 00, 00, 00, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05, 00, 04, 05, 03, 03, 03, 05, 04
db 00, 07, 07, 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01, 00, 07, 07, 01,01, 01,02, 01,04, 04,02, 03,01
; GAME OVER
; START
DRAW_DATA_START db 55, 0, 08, 20, 10101100b, " ", 0
X_DRAW_START db 00,00, 01,01, 02,02,02, 03,03,03, 04,04,04, 05,05, 06,06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17,17, 18,18, 19,19, 20, 21, 22, 23, 24
db 25,25, 26,26, 27,27, 28,28, 29,29, 30, 31, 32, 33, 34, 35, 36
T_BEGIN_DRAW_START db 01,05, 00,05, 00,03,06, 00,03,06, 00,03,06, 00,03, 01,04, 00, 00, 00, 00, 00, 00, 00, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00
db 00,04, 00,04, 00,03, 00,05, 01,06, 00, 00, 00, 00, 00, 00, 00
TIMES_WRITE_Y_DRAW_START db 02,01, 04,02, 01,01,01, 01,01,01, 01,01,01, 02,04, 01,02, 00, 02, 02, 07, 07, 02, 02, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07
db 01,01, 01,02, 01,04, 04,02, 03,01, 00, 02, 02, 07, 07, 02, 02
; START
; DINO GAME - unused
DRAW_DATA_DINO_GAME db 91, 0, 15, 01
X_DRAW_DINO_GAME db 00, 01, 02,02, 03,03, 04,04, 05,05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,22, 23,23, 24,24, 25,25, 26, 27, 28, 29
db 30, 31, 32, 33, 34,34, 35,35, 36,36, 37,37,37, 38,38, 39,39, 40, 41, 42, 43, 44,44, 45,45, 46,46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57
db 58, 59, 60,60,60, 61,61,61, 62,62,62, 63,63, 64,64
T_BEGIN_DRAW_DINO_GAME db 00, 00, 00,06, 00,06, 00,06, 01,05, 02, 00, 00, 00, 00, 00, 00, 01, 02, 03, 04, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01, 00, 00
db 00, 00, 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00
db 00, 00, 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06
TIMES_WRITE_Y_DRAW_DINO_GAME db 07, 07, 01,01, 01,01, 01,01, 01,01, 03, 00, 07, 07, 00, 07, 07, 01, 01, 01, 01, 07, 07, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05, 00, 00
db 00, 00, 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00
db 07, 07, 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01
; DINO GAME - unused
; Dinossaur (head) - but on the main menu
DRAW_DATA_DINOSSAUR_MAIN_MENU db 36, 0, 16, 05, 10011111b, " ", 0
X_DRAW_DINOSSAUR_MAIN_MENU db 00, 01, 02,02, 03,03, 04,04, 05,05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,22, 23,23, 24,24, 25,25, 26, 27
T_BEGIN_DRAW_DINOSSAUR_MAIN_MENU db 00, 00, 00,06, 00,06, 00,06, 01,05, 02, 00, 00, 00, 00, 00, 00, 01, 02, 03, 04, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01
TIMES_WRITE_Y_DRAW_DINOSSAUR_MAIN_MENU db 07, 07, 01,01, 01,01, 01,01, 01,01, 03, 00, 07, 07, 00, 07, 07, 01, 01, 01, 01, 07, 07, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05
; Dinossaur (head) - but on the main menu
; GAME
DRAW_DATA_GAME db 51, 0, 10, 42, 10011111b, " ", 0
X_DRAW_GAME db 00, 01, 02,02, 03,03, 04,04, 05,05,05, 06,06, 07,07, 08, 09, 10, 11, 12,12, 13,13, 14,14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,28,28
db 29,29,29, 30,30,30, 31,31, 32,32
T_BEGIN_DRAW_GAME db 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00, 00, 00, 00,03,06
db 00,03,06, 00,03,06, 00,06, 00,06
TIMES_WRITE_Y_DRAW_GAME db 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00, 07, 07, 01,01,01
db 01,01,01, 01,01,01, 01,01, 01,01
; GAME
; Drawing arrays
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PROCEDURES
JUMP_DATA_DINOSSAUR_ORIGINAL db 0, 0, 0, 0
JUMP_DATA_DINOSSAUR db 0, 0, 0, 0
DRAW_ERASE_FIGURE_data dw 0000h, 0000h, 0000h, 0000h, 0;, "#", 00001111b
ADVANCE_SCENERARIO_data_vector_positions_x_random dw 1055, 0
ADVANCE_SCENERARIO_positions_x_random db 172, 104, 95, 182, 126, 97, 96, 203, 152, 149, 80, 139, 122, 157, 209, 158, 249, 163, 237, 109, 194, 181, 98, 125, 153, 193, 120, 251, 189, 255, 226, 222, 179, 202, 112, 252, 228, 148, 200, 254, 239, 178, 85, 135, 171
db 210, 121, 211, 205, 92, 102, 188, 216, 165, 246, 89, 204, 88, 197, 115, 142, 111, 234, 105, 133, 207, 177, 156, 150, 187, 151, 247, 123, 119, 86, 108, 170, 143, 81, 128, 176, 236, 218, 232, 175, 103, 227, 223, 248, 230, 214
db 199, 124, 106, 217, 131, 241, 213, 174, 117, 107, 186, 136, 183, 225, 167, 191, 140, 90, 215, 113, 118, 184, 116, 220, 84, 82, 137, 160, 253, 91, 180, 212, 147, 130, 93, 155, 196, 192, 233, 94, 83, 243, 166, 132, 161, 129
db 221, 159, 145, 154, 185, 162, 146, 195, 250, 127, 169, 168, 110, 231, 198, 134, 99, 238, 206, 245, 240, 219, 138, 208, 100, 190, 144, 224, 244, 201, 173, 235, 141, 229, 87, 164, 114, 101, 242, 172, 160, 181, 191, 244, 115, 234
db 206, 90, 95, 130, 123, 143, 246, 103, 229, 194, 254, 161, 134, 214, 138, 226, 222, 245, 117, 135, 232, 133, 165, 184, 88, 240, 235, 162, 182, 231, 127, 237, 210, 152, 220, 252, 171, 215, 144, 241, 247, 251, 175, 196, 96, 159
db 86, 208, 190, 198, 225, 174, 238, 255, 148, 120, 118, 216, 147, 239, 164, 186, 122, 156, 99, 155, 178, 207, 157, 223, 145, 150, 183, 132, 221, 106, 94, 200, 129, 109, 121, 179, 248, 195, 108, 83, 211, 253, 219, 91, 205, 89
db 202, 158, 80, 199, 169, 81, 151, 153, 176, 110, 224, 92, 213, 188, 124, 173, 97, 189, 209, 243, 185, 204, 116, 249, 154, 227, 107, 168, 140, 136, 228, 131, 166, 87, 218, 236, 142, 217, 170, 93, 119, 163, 114, 187, 146, 201
db 212, 100, 192, 177, 137, 233, 126, 180, 105, 112, 128, 104, 193, 167, 102, 125, 84, 111, 139, 203, 250, 85, 230, 82, 113, 98, 141, 197, 101, 149, 177, 205, 160, 179, 248, 255, 209, 87, 118, 236, 194, 207, 201, 170, 138, 123
db 133, 221, 152, 119, 182, 229, 115, 157, 159, 245, 185, 193, 144, 217, 214, 134, 204, 113, 234, 156, 249, 117, 188, 184, 84, 222, 235, 112, 104, 243, 158, 89, 246, 150, 226, 242, 253, 165, 190, 108, 146, 186, 101, 254, 141, 191
db 147, 228, 181, 213, 251, 163, 128, 225, 239, 208, 211, 137, 145, 110, 187, 241, 206, 130, 196, 216, 240, 126, 149, 197, 143, 106, 161, 90, 199, 96, 135, 97, 148, 231, 136, 86, 250, 127, 154, 167, 153, 233, 218, 98, 223, 219
db 238, 155, 100, 227, 94, 82, 173, 83, 200, 93, 120, 131, 107, 198, 85, 224, 88, 116, 168, 109, 210, 175, 237, 124, 111, 169, 139, 232, 171, 166, 176, 183, 230, 162, 95, 129, 140, 164, 189, 80, 247, 195, 121, 172, 151, 174
db 180, 192, 103, 125, 132, 92, 203, 99, 202, 105, 122, 81, 244, 178, 252, 142, 102, 215, 220, 212, 114, 91, 97, 206, 252, 141, 177, 179, 205, 248, 154, 229, 183, 225, 186, 112, 81, 171, 219, 153, 201, 166, 122, 223, 181, 106
db 129, 218, 109, 176, 189, 208, 145, 149, 168, 134, 237, 182, 167, 231, 175, 151, 84, 180, 142, 190, 82, 212, 158, 140, 105, 191, 195, 86, 118, 104, 246, 245, 157, 188, 100, 170, 102, 146, 98, 222, 91, 120, 136, 244, 164, 243
db 148, 87, 95, 240, 119, 194, 235, 228, 200, 117, 174, 202, 96, 253, 165, 234, 85, 172, 178, 161, 83, 111, 185, 94, 192, 230, 220, 135, 204, 247, 159, 80, 249, 88, 187, 196, 143, 251, 131, 101, 93, 173, 236, 147, 139, 241
db 90, 116, 113, 193, 215, 216, 125, 239, 133, 108, 217, 184, 127, 138, 110, 211, 160, 103, 238, 114, 107, 92, 121, 221, 132, 156, 99, 162, 232, 214, 169, 203, 255, 163, 155, 198, 199, 89, 137, 123, 209, 233, 130, 213, 254, 152
db 227, 150, 224, 250, 128, 207, 124, 144, 126, 242, 115, 226, 210, 197, 222, 102, 221, 200, 198, 224, 121, 244, 181, 133, 164, 241, 252, 243, 255, 127, 151, 140, 81, 191, 118, 98, 138, 82, 215, 225, 150, 188, 249, 220, 120, 174
db 160, 167, 245, 185, 149, 106, 227, 111, 84, 187, 210, 155, 240, 178, 157, 152, 144, 122, 168, 93, 248, 199, 175, 238, 107, 226, 192, 203, 163, 96, 208, 137, 179, 139, 236, 216, 124, 86, 158, 89, 104, 91, 205, 197, 156, 129
db 126, 88, 100, 108, 228, 172, 99, 143, 195, 109, 113, 92, 209, 234, 239, 206, 134, 162, 154, 207, 161, 183, 146, 201, 153, 141, 119, 204, 233, 148, 186, 223, 214, 85, 90, 232, 235, 95, 132, 97, 182, 242, 230, 114, 131, 237
db 101, 211, 105, 184, 128, 253, 247, 171, 250, 219, 246, 136, 218, 194, 116, 212, 229, 173, 103, 112, 254, 87, 176, 110, 142, 169, 177, 159, 147, 130, 83, 231, 117, 193, 94, 202, 251, 123, 213, 135, 80, 115, 125, 180, 145, 217
db 170, 166, 189, 165, 190, 196, 249, 142, 141, 214, 220, 106, 189, 97, 116, 105, 158, 204, 111, 229, 88, 170, 83, 153, 89, 81, 155, 184, 95, 195, 212, 104, 80, 165, 183, 231, 129, 143, 242, 245, 110, 117, 182, 166, 145, 124
db 235, 251, 177, 186, 178, 223, 132, 85, 221, 86, 199, 248, 252, 82, 238, 222, 98, 224, 208, 176, 144, 205, 255, 109, 226, 171, 190, 202, 188, 239, 84, 93, 115, 228, 92, 173, 151, 118, 254, 128, 119, 157, 137, 227, 139, 101
db 253, 172, 219, 156, 209, 232, 185, 121, 194, 206, 169, 187, 179, 96, 135, 152, 180, 244, 241, 103, 149, 233, 213, 90, 225, 198, 247, 114, 211, 136, 250, 87, 150, 127, 203, 174, 207, 191, 146, 216, 100, 91, 167, 246, 162, 201
db 161, 125, 130, 147, 107, 120, 134, 196, 236, 138, 113, 181, 234, 131, 164, 218, 133, 175, 243, 192, 168, 154, 112, 126, 99, 200, 163, 197, 122, 123, 160, 102, 217, 140, 215, 210, 237, 230, 148, 108, 94, 159, 240, 193
;ADVANCE_SCENERARIO_positions_x_random db 80, 80, 80, 140, 240, 80, 240, 140, 140, 140, 80, 80, 240, 80, 140, 140, 250, 140, 250, 80, 80, 80, 250, 140, 240, 140, 80, 140, 240, 140, 140, 140, 240, 80, 250, 80, 250, 140, 140, 250, 250, 80, 80, 140, 80, 80, 80, 140
;ADVANCE_SCENERARIO_positions_x_random_cont db 250, 250, 80, 80, 250, 140, 80, 250, 80, 240, 240, 240, 240, 80, 240, 80, 140, 250, 240, 140, 250, 250, 140, 250, 250, 250, 140, 240, 240, 250, 240, 80, 140, 240, 240, 80, 80, 240, 250, 140, 80, 250, 240, 250, 240, 80, 240, 80
;ADVANCE_SCENERARIO_positions_x_random_cont_2 db 250, 140, 80, 250
MAIN_MENU_begin_game db "1 - Being game", "$"
MAIN_MENU_instructions db "$";"2 - Instructions", "$"
MAIN_MENU_exit db "3 - Exit", "$"
; PROCEDURES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SCORE_STR db "Score: ", "$"
SCORE dw 0, 0, 0
sb16_environment db "A220 I7 D1 H5 T6", 0
.code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; MACROS
LOAD_FIGURE_FUNCTION macro vector1, vector2, vector3, vector4
push bp
mov bp, sp
;push ax
push bx
;push cx
;push dx
;push si
;push di
lea bx, vector1
mov DRAW_ERASE_FIGURE_data[2*0], bx
lea bx, vector2
mov DRAW_ERASE_FIGURE_data[2*1], bx
lea bx, vector3
mov DRAW_ERASE_FIGURE_data[2*2], bx
lea bx, vector4
mov DRAW_ERASE_FIGURE_data[2*3], bx
;pop di
;pop si
;pop dx
;pop cx
pop bx
;pop ax
mov sp, bp
pop bp
endm
CLEAR_SCREAN macro
push bp
mov bp, sp
push ax
;push bx
;push cx
;push dx
;push si
;push di
; To clear the screen, all there is to do is reset the video mode.
; set video mode
mov ah, 0 ; ou mov ah, 0 (para por tudo a zeros e depois change a parte inferior)
mov al, 03h ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3)
int 10h ; do it!
;pop di
;pop si
;pop dx
;pop cx
;pop bx
pop ax
mov sp, bp
pop bp
endm
COPY_ARRAY macro source, destination, length
LOCAL COPY_ARRAY_loop1
push bp
mov bp, sp
push ax
push bx
;push cx
push dx
push si
;push di
mov si, 1
COPY_ARRAY_loop1:
lea bx, source
mov dl, byte ptr [bx+si-1]
lea bx, destination
mov byte ptr [bx+si-1], dl
inc si
cmp si, length
jne COPY_ARRAY_loop1
;pop di
pop si
pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
endm
SUM_32BIT macro
; To sum a number in DX:AX and another one in CX:BX.
; The add instruction adds the two values and sets the C (carry) bit to 1 or 0 depending on whether there was a carry or not.
; The adc instruction adds the two values plus the value of the carry bit (and then sets the carry bit again).
; In this way, you can add values of any size by continuing with more adc instructions.
; Add the least significant bytes first, keep the carry. Add the most significant bytes considering the carry from LSBs.
add ax, bx
adc dx, cx
endm
; MACROS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
START:
mov ax, @data
mov ds, ax
; We used direct writing to the memory because it's faster than asking BIOS to write on the screen
;mov ax, 0A000h ; Endereço da placa VGA no modo gráfico
mov ax, 0B800h ; Endereço da placa VGA no modo de texto
mov es, ax
; set video mode
mov ah, 0 ; or mov ah, 0 (to put all to zeroes and then change the inferior part)
mov al, 03h ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3)
int 10h ; do it!
; cancel blinking and enable all 16 colors:
mov ah, 10h
mov al, 03h
mov bx, 0
int 10h
; Prepare the speakers
mov ax, 10110110b
out 43h, ax
; Prepare Sound Blaster 16
; Note: the string came from executing the command "set blaster" on DOSBox
mov bx, 2
mov dx, ds
lea ax, sb16_environment
call driver:ctmidi_drv
; Initialize Sound Blaster 16
mov bx, 3
call driver:ctmidi_drv
jmp MAIN_MENU
;jmp end
begin_game:
CLEAR_SCREAN
LOAD_FIGURE_FUNCTION DRAW_DATA_START X_DRAW_START T_BEGIN_DRAW_START TIMES_WRITE_Y_DRAW_START
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
mov cx, 0020h
mov dx, 0000h
mov ah, 86h
int 15h
LOAD_FIGURE_FUNCTION DRAW_DATA_START X_DRAW_START T_BEGIN_DRAW_START TIMES_WRITE_Y_DRAW_START
mov ax, 0
mov dl, 1
call DRAW_ERASE_FIGURE_MAIN
mov ah, 02h
mov dh, 1
mov dl, 60
mov bh, 0
int 10h
mov ah, 09h
lea dx, SCORE_STR
int 21h
; Activate the columns
;in ax, 61h
;or ax, 00000011b
;out 61h, ax
; Give the song to Sound Blaster 16 for it to be pre-processes (for some reason, it has to be pre-processed again
; after the stop, even though we haven't seen that in the documentation, but ok).
; Note: both the string and the driver were included through a program called bin2db, version 3.
; This is EXACTLY equivalent to opening the file (either the MID or the DRV) with HxD (or any other hexadecimal
; editor) and copy/paste everything to byte declarations. Just the program does that automatically, which is
; infinitely easier and faster. NASM seems to have incbine, but MASM doesn't, and this is a solution.
; Another solution is to use MASM to generate an OBJ file and then link it to the final program, but we don't know
; how to do that (we think MASM will throw an error when it doesn't know where the labels come from, so there's some
; way to that which we don't know about).
mov bx, 8
mov dx, songs_midi
lea ax, queen_i_want_to_break_free
call driver:ctmidi_drv
; Play the song
mov bx, 9
call driver:ctmidi_drv
loop_principal_novo:
call DETECT_KEY
loop_principal_novo_continue:
; This is to put the BIOS stopping the program during the microseconds on CX:DX (32 bit number).
mov cx, 0000h
mov dx, 20E8h
;mov dx, 80E8h ; --> 30 FPS
;mov dx, 411Ah ; --> 60 FPS
mov ah, 86h
int 15h
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
call ADVANCE_SCENARIO
call JUMP
call PRINT_SCORE
jmp loop_principal_novo
mov ah, 07h
int 21h
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Return to the operating system - end of the program
FIM:
; Disable Sound Blaster 16
mov bx, 4
call driver:ctmidi_drv
CLEAR_SCREAN
mov al, 0 ; Return code of 0
mov ah, 4Ch ; Exit back to MS/PCDOS
int 21h
; Return to the operating system - end of the program
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PROCEDURES
MAIN_MENU:
CLEAR_SCREAN
; Load the figure's drawing vectors to the vector of drawing data of the DRAW_ERASE_FIGURE function.
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
; Copy the data from the original vetor back to the vector in use. Which means, reset the positions to the
; original ones of game. It's useful this is here too, because after a game, the values must be all reset.
COPY_ARRAY DRAW_DATA_DINO_ORIGINAL DRAW_DATA_DINOSSAUR 6
; Change the position of the figure
lea bx, DRAW_DATA_DINOSSAUR
mov byte ptr [bx+2], 5
mov byte ptr [bx+3], 20
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_DINO_ORIGINAL DRAW_DATA_DINOSSAUR 6
COPY_ARRAY JUMP_DATA_DINOSSAUR_ORIGINAL JUMP_DATA_DINOSSAUR 4
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH1 X_DRAW_BUSH1 T_BEGIN_DRAW_BUSH1 TIMES_WRITE_Y_DRAW_BUSH1
COPY_ARRAY DRAW_DATA_BUSH1_ORIGINAL DRAW_DATA_BUSH1 6
lea bx, DRAW_DATA_BUSH1
mov byte ptr [bx+2], 5
mov byte ptr [bx+3], 5
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BUSH1_ORIGINAL DRAW_DATA_BUSH1 6
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH2 X_DRAW_BUSH2 T_BEGIN_DRAW_BUSH2 TIMES_WRITE_Y_DRAW_BUSH2
COPY_ARRAY DRAW_DATA_BUSH2_ORIGINAL DRAW_DATA_BUSH2 6
lea bx, DRAW_DATA_BUSH2
mov byte ptr [bx+2], 8
mov byte ptr [bx+3], 35
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BUSH2_ORIGINAL DRAW_DATA_BUSH2 6
LOAD_FIGURE_FUNCTION DRAW_DATA_BIRD X_DRAW_BIRD T_BEGIN_DRAW_BIRD TIMES_WRITE_Y_DRAW_BIRD
COPY_ARRAY DRAW_DATA_BIRD_ORIGINAL DRAW_DATA_BIRD 6
lea bx, DRAW_DATA_BIRD
mov byte ptr [bx+2], 6
mov byte ptr [bx+3], 60
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BIRD_ORIGINAL DRAW_DATA_BIRD 6
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR_MAIN_MENU X_DRAW_DINOSSAUR_MAIN_MENU T_BEGIN_DRAW_DINOSSAUR_MAIN_MENU TIMES_WRITE_Y_DRAW_DINOSSAUR_MAIN_MENU
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_GAME X_DRAW_GAME T_BEGIN_DRAW_GAME TIMES_WRITE_Y_DRAW_GAME
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
mov ah, 02h
mov dh, 19
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_begin_game
int 21h
mov ah, 02h
mov dh, 21
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_instructions
int 21h
mov ah, 02h
mov dh, 23
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_exit
int 21h
call DETECT_KEY
mov ah, 07h
int 21h
cmp al, "1"
je begin_game
cmp al, "3"
je FIM
jmp MAIN_MENU
GAME_OVER:
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This "function" ends the game, printing GAME OVER in the center of the screen. Before getting back to the main
; menu, it waits for the user to press any key.
; NOTE: this "function" must not be called. It must be jumped to. The reason of this is written on the collision
; detection, and because of that, this "function" doesn't return. It jumps directly to another place (main menu).
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
; Disable the speakers
;in ax, 61h
;and ax, 11111100b
;out 61h, ax
LOAD_FIGURE_FUNCTION DRAW_DATA_GAMEOVER X_DRAW_GAMEOVER T_BEGIN_DRAW_GAMEOVER TIMES_WRITE_Y_DRAW_GAMEOVER
call DRAW_ERASE_FIGURE
; Stop the song
mov bx, 10
call driver:ctmidi_drv
mov ah, 07h
int 21h
jmp MAIN_MENU
PRINT_SCORE proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function prints the current user score.
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;SCORE dw 0, 0, 0
; Format:
; - Upper score 16 bits (leave on 0 - the function will take care of increasing it);
; - Lower score 16 bits (leave on 0 - the function will take care of increasing it);
; - Number to slow down the score count (leave on 0 - the function changes the number on its own).
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
;push si
;push di
; This is just to not count so fast. This way, it was decreased to half the speed
lea bx, SCORE
cmp word ptr [bx+2*2], 0
jne PRINT_SCORE_end
; Put the cursor always in the same position before beginning writting the number
mov ah, 02h
mov dh, 1
mov dl, 68
mov bh, 0
int 10h
; Get the number from the SCORE vector, sum 1 and keep the result in the vector
lea bx, SCORE
mov dx, word ptr [bx+2*0]
mov ax, word ptr [bx+2*1]
mov cx, 0
mov bx, 1
SUM_32BIT
lea bx, SCORE
mov word ptr [bx+2*0], dx
mov word ptr [bx+2*1], ax
; Display the current score
call PRINT_NUM_UNSIGNED
PRINT_SCORE_end:
; This instruction is part of the slow down of the score count
NOT word ptr [bx+2*2]
;pop di
;pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
PRINT_SCORE endp
PRINT_NUM_UNSIGNED proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; Main note: This function was copied from somewhere and wasn't completely understood. Though, it was enough to
; to be changed and improved to not throw error of overflow.
; The unsigned number to print must be in DX:AX.
; NOTE: the highest number DX:AX is 9FFFFh, which means 65359 in decimal. As of that number, the function will
; keep printing 65359 until the registers have a value below that maximum.
; Explanation of the above: the division divides the number in DX:AX by the number in BX and keeps the result
; of the division in AX, and the rest of the devision in DX. So, the number resulting from the division must
; be inside 16 bits. If it does not, an overflow error will be thrown ("Divide overflow").
; 9FFFFh / 10 = 0FFFFh, which is the maximum in 16 bit. Which means, this is dependent of the number we are
; dividing.
; This divides the number in 10 and prints each digit that resulted from the division (for example, 1234 / 10,
; prints 4; 123 / 10 and prints 3...).
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
;push si
;push di
; This is the improvement to not throw overflow on the program. If DX has 10 or above there, no matter the
; contents of AX, the division will result in a 9 bits number --> overflow error.
cmp dx, 10
jl PRINT_NUM_UNSIGNED_continue
; So when that happens, it stays on the same number. At least until it's given to the function a number with
; DX below 10.
mov ax, 0FFFFh
mov dx, 09h
PRINT_NUM_UNSIGNED_continue:
mov cx, 0
;mov dx, 0 --> We think this is here because it's not normal to print 32 bits numbers? So now it's commented out.
; Read the updated description of the function.
PRINT_NUM_UNSIGNED_label1:
cmp ax, 0
je PRINT_NUM_UNSIGNED_print1
; Base on which print the number (in this case it's base 10 - decimal -, so it's 10, but we wanted in
; hexadecimal, it would be 16 here, which would work too).
mov bx, 10
div bx
push dx
inc cx
xor dx, dx
jmp PRINT_NUM_UNSIGNED_label1
PRINT_NUM_UNSIGNED_print1:
cmp cx, 0
je PRINT_NUM_UNSIGNED_exit
pop dx
add dx, 48 ; Add the number of characters to pass from real number to string number (equivalent to add dx, "0").
; Print the string number
mov ah, 02h
int 21h
dec cx
jmp PRINT_NUM_UNSIGNED_print1
PRINT_NUM_UNSIGNED_exit:
;pop di
;pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
PRINT_NUM_UNSIGNED endp
ADVANCE_SCENARIO proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function advanced the scenario a character at a time, at each function call. When one of the objects
; disappears completely from the screen, the function puts the object back in a position much ahead, defined
; through an array of positions automatically generated externally by a website.
; We tried putting the game generating random numbers, but as the function was always called in the same period
; of time (the game doesn't request to insert anything coming from human control), nothing would stay random.
; So we generated random numbers on the Internet and put them in vectors.
; The vector has 1055 positions (separated in various because MASM doesn't allow too big instructions - "too
; complex instruction"), and with numbers actually random between 80 (minimum of the window) and 255 (8 bit
; maximum to interruption 10h, at least in case it's to be used again).
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;ADVANCE_SCENERARIO_data_vector_positions_x_random dw 1055, 0
; Format: length of the random x positions vector; current index of iterating the vector (always leave on 0 -
; this value is changed by the function).
;ADVANCE_SCENERARIO_positions_x_random db 172, 104, 95, 182, 126, 97, 96, 203, 152, 149, 80, 139, 122, 157, 209, 158, 249, 163, 237, 109, 194, 181, 98, 125, 153, 193, 120, 251, 189, 255, 226, 222, 179, 202, 112, 252, 228, 148, 200, 254, 239, 178, 85, 135, 171
; Format: in each index of the array, put a random position generated between 80 and 255. Separate in various
; arrays if necessary, and leave the declarations one after another.
;DRAW_DATA_BUSH1 db [ignorado], [ignorado], [ignorado], 200, [ignorado], 03
; Format:
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - Maximum width of the object (look for the biggest line of the object and count the number of characters on
; that line);
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
push si
push di
; Here the x position is summed with the maximum object width. If it results in 0, then it just disappeard
; completely from the screen.
; In that case, call the part of the function that changes the x position of the object. Otherwise, keep
; advancing the scenario normally.
mov al, byte ptr DRAW_DATA_BIRD[3]
add al, byte ptr DRAW_DATA_BIRD[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue1
lea di, DRAW_DATA_BIRD
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue1:
mov al, byte ptr DRAW_DATA_BUSH1[3]
add al, byte ptr DRAW_DATA_BUSH1[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue2
lea di, DRAW_DATA_BUSH1
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue2:
mov al, byte ptr DRAW_DATA_BUSH2[3]
add al, byte ptr DRAW_DATA_BUSH2[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue3
lea di, DRAW_DATA_BUSH2
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue3:
; Here is the part of the function where the scenario is advanced a character to the right.
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH1 X_DRAW_BUSH1 T_BEGIN_DRAW_BUSH1 TIMES_WRITE_Y_DRAW_BUSH1
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH2 X_DRAW_BUSH2 T_BEGIN_DRAW_BUSH2 TIMES_WRITE_Y_DRAW_BUSH2
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_BIRD X_DRAW_BIRD T_BEGIN_DRAW_BIRD TIMES_WRITE_Y_DRAW_BIRD
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
pop di
pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
ADVANCE_SCENARIO_change_x:
; This is to be used not with a jump but with a call. A call can be used with any label.
; That stores the IP on stack, makes a jump, and the Return removes the IP from the stack and jumps there.
; So it's not exclusive to procedures.
; This part of the function changes the x position of each object in the following way:
; - Gets the index of random positions vector iteration;
; - Uses that index to go get the position to put on the object;
; - Before it's set, checks if other objects are in an internal defined between its position and the position
; gotten from the random positions vetor;
; - In case any object is inside that interval, goes to the next position on the vector;
; - In case no object is inside that interval, that position is picked, the index of the vetor iteration is
; incremented, and the label returns to where it was called.
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
mov cx, word ptr [bx+2*0]
ADVANCE_SCENARIO_loop1:
;lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random --> This is in the end, so it's not needed
; This checks if it's gotten already to the end of the vector. If that's true, reset the counter to 0.
mov ax, word ptr [bx+2*1]
cmp ax, word ptr [bx+2*0]
je ADVANCE_SCENARIO_repor_contagem_pos_aleat
ADVANCE_SCENARIO_loop1_continue:
mov si, ax
lea bx, ADVANCE_SCENERARIO_positions_x_random
xor ah, ah
mov al, byte ptr [bx+si]
mov si, ax ; The gotten position remains permanently on AX register, whilst SI is used to calculate if
; the object is in the interval or not.
; Got like that because below we need an 8 bit register.
lea bx, DRAW_DATA_BIRD
mov si, ax ; Put AX back in SI
xor dh, dh ; Equivalent to mov dh, 0
mov dl, byte ptr [bx+3] ; Put in DL, the position x of the bird
sub si, dx ; Subtracts DX to SI - this checks if the object is in an interval of, in this case, 25
; characters until the position gotten from the random positions vector.
call ADVANCE_SCENARIO_abs ; If the value is negative (depends where the objects are), call the absolute
; value of the fuction
cmp si, 25 ; Here is the number of characters interval
jle ADVANCE_SCENARIO_loop1_end ; If it's up to 25 characters at most, go to the next value of the vector
lea bx, DRAW_DATA_BUSH1
mov si, ax
xor dh, dh
mov dl, byte ptr [bx+3]
sub si, dx
call ADVANCE_SCENARIO_abs
cmp si, 55
jle ADVANCE_SCENARIO_loop1_end
lea bx, DRAW_DATA_BUSH2
mov si, ax
xor dh, dh
mov dl, byte ptr [bx+3]
sub si, dx
call ADVANCE_SCENARIO_abs
cmp si, 45
jle ADVANCE_SCENARIO_loop1_end
mov bx, di ; Here the address stored on the main part of the function is reset (the address of the
; object currently being analysed).
mov byte ptr [bx+3], al ; The chosen position of the vector is put on the vector of figure data in the
; index of position x.
; Here the current iteration index of the random positions vector is incremented.
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
inc word ptr [bx+2*1]
ret ; And returnes to where this part of the function was called.
ADVANCE_SCENARIO_loop1_end:
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
inc word ptr [bx+2*1]
;loop ADVANCE_SCENARIO_loop1 --> disabled by the same reason that on the function DRAW_ERASE_FIGURE.
dec cx
jnz ADVANCE_SCENARIO_loop1
; It won't get here, supposedly, but it's just in case it does, to get back
ret
ADVANCE_SCENARIO_repor_contagem_pos_aleat:
mov word ptr [bx+2*1], 0
jmp ADVANCE_SCENARIO_loop1_continue
ADVANCE_SCENARIO_abs:
; This is to be used not as a jump but as a call.
; This part of the function calculates the absolute value of a number. First it stores it in another
; register, and then applies of the Complement of Two.
; If after that, the number is negative, return the stored value in the other register. If it's positive,
; return the new value instead.
; Note: the Complement of Two is the Complement of One adding 1 (which means negate all bits and add 1
; to the result).
mov dx, si ;store eax in ebx
neg si
jge ADVANCE_SCENARIO_abs_end
mov si, dx ;if eax is now negative, restore its saved value
ADVANCE_SCENARIO_abs_end:
ret
ADVANCE_SCENARIO endp
JUMP proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function puts the dinossaur jumping a square each time it's called. Aside from that, it tries to simulate
; the gravity, which means, when the dinossaur is finishing the climb, it starts slowing down, and when it
; starts falling, it starts accelerating.
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;JUMP_DATA_DINOSSAUR db 0, 0, 0, 0
; Format:
; - Is the dinossaur jumping? 1 if yet, 0 if not;
; - If yet, is it going up (0) or down (1)?;
; - Number of coordinates already added to jump;
; - Number of function calls ignored because of the gravity.
; Leave all on 0. The function changes the values automatically, except the first one which must be put to 1
; before calling the function to start the jump.
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
;push cx
;push dx
;push si
;push di
lea bx, JUMP_DATA_DINOSSAUR
; Check if it's to put the dinossaur jumping or not
cmp byte ptr [bx+0], 1
jne JUMP_end
; Call the gravity simulator and, if a 1 comes on AX, ignore the function call and jump directly to the end. Ou
; carry on, in case AX is 0.
call GRAVITY_SIMULATION_JUMP
cmp ax, 1
je JUMP_end
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
; Check if the dinossaur is rising or falling.
mov al, byte ptr [bx+1]
cmp byte ptr [bx+1], 0
je JUMP_subida
jne JUMP_descida
JUMP_subida:
; Check if it's already in the maximum height defined below
cmp byte ptr [bx+2], 16
jl JUMP_subida_cont1
; If it is, put int the array information of being to initiate the fall in the next function call
mov byte ptr [bx+1], 1
jmp JUMP_descida
JUMP_subida_cont1:
; Put AL to 0 and AH to -1 to decrement 1 to the current y coordinate of the dinossaur
xor al, al
mov ah, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
; Increment the number of coordinates already added
inc byte ptr [bx+2]
jmp JUMP_end
JUMP_descida:
; Check if it's gotten to the height it starts
cmp byte ptr [bx+2], 0
jg JUMP_descida_cont1
; If it has, put information in the array that is to start the rise in the next function call and also
; information to stop the jump.
mov byte ptr [bx+1], 0
mov byte ptr [bx+0], 0
jmp JUMP_end
JUMP_descida_cont1:
; Put AL to 0 and AH to -1 to increment 1 to the current y coordinate of the dinossaur
xor al, al
mov ah, 1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
; Decrement the number of coordinates already added
dec byte ptr [bx+2]
jmp JUMP_end
JUMP_end:
;pop di
;pop si
;pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
JUMP endp
GRAVITY_SIMULATION_JUMP proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function is supposed to be used only by the JUMP function.
; It simulates the gravity and tells the JUMP function to ignore the drawing of the dinossaur in various function
; calls, depending of how high the dinossaur is.
; The function needs to have in the BX register, the address of the vector of the dinossaur's jump data, and
; returns on the AX register if the function JUMP should be ignored or not.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
;push ax
;push bx
;push cx
;push dx
;push si
;push di
; Com y = 14 ou mais, ignora 2 chamadas da função
cmp byte ptr [bx+2], 14
jge GRAVITY_SIMULATION_JUMP_ignore_2
; With y = 10 or more (except 14 and above), ignores 1 function call
cmp byte ptr [bx+2], 12
jge GRAVITY_SIMULATION_JUMP_ignore_1
; In case the 2 cases above are not verified, the function call is not ignored
mov ax, 0
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_end:
;pop di
;pop si
;pop dx
;pop cx
;pop bx
;pop ax
mov sp, bp
pop bp
ret
GRAVITY_SIMULATION_JUMP_ignore_1:
; The comparision is the number of function calls to ignore (the bigger, the more time it stays in the air)
cmp byte ptr [bx+3], 1
je GRAVITY_SIMULATION_JUMP_ignore_end
; Increase the count of how many times the function was ignored if it hasn't got to the limit
inc byte ptr [bx+3]
; Here it says to ignore the function call by putting 1 in AX
mov ax, 1
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_ignore_2:
cmp byte ptr [bx+3], 2
je GRAVITY_SIMULATION_JUMP_ignore_end
inc byte ptr [bx+3]
mov ax, 1
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_ignore_end:
mov byte ptr [bx+3], 0
mov ax, 0
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP endp
DETECT_KEY proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function detects any pressed key without stopping the program, and processes it.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
;push cx
;push dx
;push si
;push di
mov ah, 01h ; This checks if there's any key in processing list (doesn't get any out of the list)
int 16h
jz DETECT_KEY_end ; This deletes the key from the buffer and goes back to the beginning of the loop, instead
; of comparing everything
mov ah, 00h ; This gets the last key on the list to the AX register and deletes it from the list
int 16h
; Key comparision
cmp ax, 3920h ; Space?
je DETECT_KEY_continue_space
cmp ax, 0231h ; 1?
je DETECT_KEY_continue_1
cmp ax, 0332h ; 2?
je DETECT_KEY_continue_2
cmp ax, 0433h ; 3?
je DETECT_KEY_continue_3
; None of the said ones? Then back to the beginning
jmp DETECT_KEY_end ; jmp loop1
DETECT_KEY_continue_space:
; Check if it's already jumping, so it's not possible to make infinite sound (which would also slow the game
; down because this has to wait a bit while playing the sound, or it would be instantaneos and it wouldn't
; be heard).
lea bx, JUMP_DATA_DINOSSAUR
cmp byte ptr [bx+0], 1
je DETECT_KEY_end
; If it's not jumping, active the jump
mov byte ptr [bx+0], 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::
; Play beep when jumping
; Could have been with the beep character, but DOSBox doesn't support that (said by one of the authors), so
; we used the PC Speaker. We also thought in keeping the speakers always On, but for some reason, this has
; interference even while not playing anything, so we put the note, activate, wait, and disable the speakers.
; In an attempt of improvement by what was told to us of starting and going instantly to the maximum and
; not being that good idea, we put this going to the maximum before activating the speakers.
; Update: we put a loop going to the wanted frequency after enabling the speakers. So it goes from 0 to the
; correct note one by one to go slower, like a sin function (but much faster on the rise).
; Update 2: we think it's the with the loop and the old way, so we left it like this becuase it doesn't need
; to be in a loop and slow then the game more than the BIOS wait time will.
; Give the PIT a frequency to put on the square waves of the speakers
mov ax, 4560 ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
out 42h, al
mov al, ah
out 42h, al
; Active the speakers
in ax, 61h
or ax, 00000011b
out 61h, ax
; Increase the frequency one by one until it gets to the wanted frequency
;mov cx, 0
;DETECT_KEY_loop1:
; ; Give the PIT a frequency to put on the square waves of the speakers
; mov ax, cx ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
; out 42h, al
; mov al, ah
; out 42h, al
;
; inc cx
; cmp cx, 4561 ; +1 than the wanted frequency to stop on the wanted one
; jne DETECT_KEY_loop1
; Wait a bit to have time to play the sound. 0000h:5000h was the time that was thought to be the best to not
; delay too much but to still be possible to hear the sound decently.
mov cx, 0000h
mov dx, 5000h
mov ah, 86h
int 15h
;mov cx, 4560
;DETECT_KEY_loop2:
; ; Give the PIT a frequency to put on the square waves of the speakers
; mov ax, cx ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
; out 42h, al
; mov al, ah
; out 42h, al
;
; loop DETECT_KEY_loop2 ; This makes it so that AX doesn't get to 0, because when CX is 0, it doesn't go
; up again
; Give a frequency to the PIT again to put on the speakers, but this time 0. This is to try to minimize the
; noise that happens.
;mov ax, 1 ; NOTE: this has to be in more than 0 or it won't work and the speakers will make VERY weird
; sounds. Must not like like 0, of being stopped haha.
;out 42h, al
;mov al, ah
;out 42h, al
; Deactive the speakers
in ax, 61h
and ax, 11111100b
out 61h, ax
; Play beep when jumping
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::
jmp DETECT_KEY_end
DETECT_KEY_continue_1:
jmp begin_game
DETECT_KEY_continue_2:
; SEM USO AINDA
jmp DETECT_KEY_end
DETECT_KEY_continue_3:
jmp FIM
DETECT_KEY_end:
;pop di
;pop si
;pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
DETECT_KEY endp
DRAW_ERASE_FIGURE_MAIN proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function should be called instead of DRAW_ERASE_FIGURE. It adds to the coordinates x and y the given
; number before calling DRAW_ERASE_FIGURE. If at least one of the numbers to add is different than 0, the function
; erases the figure in the current position, changes its coordinates and draws it again in the new place.
; In case both numbers to add are 0, the function just redraws the figure in the same place without changing
; its coordinates and without deleting it before redrawing.
; It must have on the AH register the number to add to the y coordinate and on the AL register, the number to
; add to the x coordinate, both initial coordinates of the figure (can be positive or negative - or zero).
; NOTE: this will change the initial coordinates stored on the original vectors!
; In the BL register there must be a 1 in case it's to only delete the figure in the current position, or a 0 in
; case it's to act as described above.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
;push ax
push bx
;push cx
push dx
;push si
;push di
; Check if it's to just delete
cmp dl, 1
jne DRAW_ERASE_FIGURE_MAIN_continue2
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 1
call DRAW_ERASE_FIGURE
jmp DRAW_ERASE_FIGURE_MAIN_end
DRAW_ERASE_FIGURE_MAIN_continue2:
; Check if AX is 0. If it is, jump to the immediate drawing of the figure. Otherwise, erase it first and then
; draw it in the new position.
cmp ah, 0
jne DRAW_ERASE_FIGURE_MAIN_continue
cmp al, 0
jne DRAW_ERASE_FIGURE_MAIN_continue
jmp DRAW_ERASE_FIGURE_MAIN_continue1
DRAW_ERASE_FIGURE_MAIN_continue:
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 1
call DRAW_ERASE_FIGURE
; Part in which the function changes the initial coordinates in the figure's vecotr of drawing data
mov bx, word ptr DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
add byte ptr [bx+2], ah ; --> DRAW_DATA_DINOSSAUR[2]
add byte ptr [bx+3], al ; --> DRAW_DATA_DINOSSAUR[3]
DRAW_ERASE_FIGURE_MAIN_continue1:
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 0
call DRAW_ERASE_FIGURE
DRAW_ERASE_FIGURE_MAIN_end:
;pop di
;pop si
pop dx
;pop cx
pop bx
;pop ax
mov sp, bp
pop bp
ret
DRAW_ERASE_FIGURE_MAIN endp
DRAW_ERASE_FIGURE proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function draws any figure from an initial coordinate (all defined in the follwing arrays is relative to
; the first coordinate to be easier to change the place of drawing of the figure).
; Weak points:
; - it draws only in a default color on the function --> it does now;
; - doesn't erase in case it's needed --> it does now;
; - doesn't store the used pixels by the picture in an array, so must calculate everything every time.
; Linked to this procedure is:
; - The array "DRAW_ERASE_FIGURE_data".
; Format:
; - Address of DRAW_DATA_DINOSSAUR;
; - Address of X_DRAW_DINOSSAUR;
; - Address of T_BEGIN_DRAW_DINOSSAUR;
; - Address of TIMES_WRITE_Y_DRAW_DINOSSAUR;
; - Write (0) or erase (1);
; - [X] character to use to write (default: # - number sign); --> deprecated
; - [X] color in binary (text mode: 1st 4 bits to background color, 2nd 4 bits to the character cpde / graphics
; mode: 8 bits to all colors (8 bit colors)). --> deprecated (it's now on the figure data array)
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
; It's here an example that draws the head of the dinossaur which has 4 irregularities, caused by empty places
; in the image (the eye, which is 1 character, and the mouth art, which are 3 characters).
; Format:
; - Size of the coordinate arrays;
; - Last processed index of the arrays, to keep being increased (always leave on 0 - the function takes care of it);
; - Initial y;
; - Initial x;
; - Color in binary (text mode: 1st 4 bits to background, 2nd 4 bits to character / graphics mode: 8 bits to all colors).
; - [See on the function ADVANCE_SCENARIO];
;DRAW_DATA_DINOSSAUR db 12, 0, 21, 02, 00001100b, 07
; Format: number to ---sum--- to the initial x coordinate to indicate where to draw vertically (in this case,
; the numbers that are closer together [no idea what this means XD] are drawn on the same column -
; they're drawing irregularities, like empty places)
;X_DRAW_DINOSSAUR db 00, 01, 02,02, 03, 04,04, 05,05, 06,06, 07
; Format: number to ---sum--- to the initial y coordinate to indicate where to draw vertically (in this case,
; the numbers that are closer together [no idea what this means XD] are drawn on the same column -
; they're drawing irregularities, like empty places)
; Note: the function draws from above to bottom (in each column, starts by the highest coordinate and draws down)
;T_BEGIN_DRAW_DINOSSAUR db 00, -1, -01,1, -1, -1,03, -1,03, -1,03, 00
; Format: number of characters to draw minus 1 (n-1), as of the initial coordinate defined on the array above
;TIMES_WRITE_Y_DRAW_DINOSSAUR db 03, 04, 00,02, 04, 02,00, 02,00, 02,00, 01
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
; Store the value of all registers on the stack (even of those not used - so can't forget of anything)
push ax
push bx
push cx
push dx
push si
push di
DRAW_ERASE_FIGURE_inicio:
; Compare the last processed index of the arrays with the size of the drawing arrays
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov ah, [bx+0] ; --> DRAW_DATA_DINOSSAUR[0] // Size of the arrays
mov al, [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Last processed index of the arrays
cmp al, ah
je DRAW_ERASE_FIGURE_end
xor ah, ah ; Equivalent to mov ah, 0 (aside from being faster and also takes less memory (opcode of 1 byte) -
; Stackoverflow with confirmation of the reference optimization manual of the architectures 64 IA-32 of Intel -->
; it's said on it that it's only on Intel Core that is preferable, but why not use anyways)
mov si, ax ; Index to use to know the number of characters to write. In this case, the first one (AL didn't change)
xor ch, ch
mov bx, DRAW_ERASE_FIGURE_data[2*3] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR // Address
mov cl, [bx+si] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR[bx] // Number of characters to draw is in the last drawing array (address gotten above)
cmp cx, 0
je DRAW_ERASE_FIGURE_depois_do_loop1
DRAW_ERASE_FIGURE_loop1:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
xor ah, ah
mov al, [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Current column in index
mov si, ax ; This is just to use the correct register to better understanding of the program (SI - Source INDEX / BX - Base ADDRESS)
mov dh, [bx+2] ; --> DRAW_DATA_DINOSSAUR[2] // Initial y coordinate
mov bx, DRAW_ERASE_FIGURE_data[2*2] ; --> T_BEGIN_DRAW_DINOSSAUR
add dh, [bx+si] ; --> T_BEGIN_DRAW_DINOSSAUR[bx] // Sum the initial coordinate with a number to know the coordinate where to start drawing the column
mov bx, DRAW_ERASE_FIGURE_data[2*3] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR // Address
add dh, [bx+si] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR[bx]
sub dh, cl ; Sum the coordinate where to start drawing the column with CL, to know in which current column position it's in
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov dl, [bx+3] ; --> DRAW_DATA_DINOSSAUR[3] // Initial x coordinate
mov bx, DRAW_ERASE_FIGURE_data[2*1] ; --> X_DRAW_DINOSSAUR // Address
add dl, [bx+si] ; --> X_DRAW_DINOSSAUR[bx] // Current x coordinate
; In case it's going to draw outside the screen limits, doesn't continue and go to the next character
cmp dh, 25
jge DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dh, 0
jl DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dl, 80
jge DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dl, 0
jl DRAW_ERASE_FIGURE_direto_ao_loop1
; In case it's going to draw outside the screen limits, doesn't continue and go to the next character
mov si, cx ; Store of the CX value in a non-used register
mov cx, dx
xor ax, ax
mov al, ch
mov bx, 80
mul bx
xor ch, ch
add ax, cx
mov bx, 2
mul bx
mov di, ax
;offset = (80*y + x) * 2
mov cx, si ; Put the CX value back in a non-used register
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Collision detector
; Checks if the figure is being written or erased. This can only check if if there's anything already written
; in the new dinossaur position after it's erased, or it would see itself written there (not very helpful haha).
; In case it's being erased, continue the program
cmp DRAW_ERASE_FIGURE_data[2*4], 0
jne DRAW_ERASE_FIGURE_continue1
; Check if it's the dinossaur that's being written, comparing the address of the dinossaur data vector
; (for example that one) with the first index of the functions's vector of drawing data
; If it's not the dinossaur, continue the program
lea bx, DRAW_DATA_DINOSSAUR
mov dx, DRAW_ERASE_FIGURE_data[2*0]
cmp bx, dx
jne DRAW_ERASE_FIGURE_continue1
; Checks if there's any character written on the position on which the current character of the figure
; In case there's not an hashtag already there, continue the program
cmp byte ptr es:[di], "#"
jne DRAW_ERASE_FIGURE_continue1
cmp byte ptr es:[di+1], 00001100b
je DRAW_ERASE_FIGURE_continue1
; In case all the described above happens, simulates a normal exit of the function removing everything that
; was on the stack, including the IP value previous to this function's call, and then calls the GAME_OVER function.
; This so there are no stack memory failures, since this would keep storing infinitely until the memory limit
; (in this case, it's defined as 100h in the beginning of the code).
mov sp, bp
pop bp
add sp, 2 ; This is to remove the IP stored on the stack
; A jump to not store the current IP on the stack for anything, because the game will restart
jmp GAME_OVER
DRAW_ERASE_FIGURE_continue1:
; Collision detector
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Compares if it's to erase or write
cmp DRAW_ERASE_FIGURE_data[2*4], 0
jne DRAW_ERASE_FIGURE_apagar
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov al, byte ptr [bx+4]
mov ah, [bx+5] ; Character to use to write
mov byte ptr es:[di], ah
mov byte ptr es:[di+1], al
jmp DRAW_ERASE_FIGURE_continue
DRAW_ERASE_FIGURE_apagar:
mov byte ptr es:[di], " "
mov byte ptr es:[di+1], 00000000b
DRAW_ERASE_FIGURE_continue:
DRAW_ERASE_FIGURE_direto_ao_loop1:
;loop DRAW_ERASE_FIGURE_loop1 ; loop can only jump between -128 and +127 bytes (StackOverflow) - this was
; exceeded on the DRAW_ERASE_FIGURE function. So goes a normal jump:
dec cx
jnz DRAW_ERASE_FIGURE_loop1
DRAW_ERASE_FIGURE_depois_do_loop1:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
inc byte ptr [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Increment the last processed index of the arrays
; byte ptr we think it's because if it was a word, without this statement, it would increase the next 8 bits (it
; would change a total of 16 bits), and that's an array of numbers of 8 bits, so it would change the number next,
; therefore it has to know that it's 8 bits to change the correct number and not the next one too.
; Yep, that's it. Confirmed below with move byte ptr after half an hour without knowing the problem...
; Put ALWAYS ALWAYS ALWYAS byte/word/... prt before an address with an index if the other operand doesn't say
; the type (AL/AX say byte/word by themselves, respectively; 0 doesn't say anything --> YEAH).
; In this case, MASM assumed as being a word and it wasn't working, while on EMU8086 it was assumed to be a byte
; and was working. To don't exist any confusion, DON'T FORGET OF DOING THIS!!!!!
; On MASM/TASM it's byte ptr; on NASM/YASM it's just byte. byte, word, or quad, whatever.
jmp DRAW_ERASE_FIGURE_inicio
DRAW_ERASE_FIGURE_end:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov byte ptr [bx+1], 0 ; --> DRAW_DATA_DINOSSAUR[1]
; Reset the value of all registers stored on the stack in the opposite order
pop di
pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp ; Won't do anything because we didn't use function paramters, but why not leave it here (can't forget
; if it's already here).
pop bp
; Return to the next instruction next to that in which the function was called
ret
DRAW_ERASE_FIGURE endp
; PROCEDURES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
driver segment READONLY para ; The para isn't needed because it's the default, but why not keep it.
; PS: it's mandatory to leave the driver with offset 0 for some reason we didn't understand. So that's why it's being
; put in a separate segment.
; Note: the driver seems to be activated right after it's called, so it's to put the right parameters and call it, and it
; will start automatically - it's not needed to call some sub-function or something.
; Note 2: this works because, as it was told to us, the processor will just read what's here since we jumped here -
; it's like trying to read what's in the segment data as code (which will not go very well, because they're not supposed
; to be instructions, even though the processor can't distinguish).
; Note 3: this doesn't work on Windows 7. Must not have support to Sound Blaster 16 (or any other old sound card? - no
; idea if it works with PC Speaker, but we think maybe it should, since is it not supposed for PCs to still have that?
; Even though we haven't tested).
ctmidi_drv:
db 233,173,0,67,84,77,73,68,73,0,67,114,101,97,116,105
db 118,101,32,83,111,117,110,100,32,66,108,97,115,116,101,114
db 32,49,54,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,13,10,22,1,8,8,67,114,101,97,116,105,118,101,32
db 76,111,97,100,97,98,108,101,32,77,73,68,73,32,68,114
db 105,118,101,114,44,32,32,86,101,114,115,105,111,110,32,49
db 46,50,50,13,10,67,111,112,121,114,105,103,104,116,32,40
db 99,41,32,67,114,101,97,116,105,118,101,32,84,101,99,104
db 110,111,108,111,103,121,32,76,116,100,46,44,32,49,57,57
db 48,45,49,57,57,51,46,32,32,65,108,108,32,114,105,103
db 104,116,115,32,114,101,115,101,114,118,101,100,46,13,10,26
db 156,250,30,6,80,83,81,82,87,86,85,139,236,80,140,200
db 142,216,142,192,88,131,78,18,1,199,70,12,255,255,128,62
db 111,32,0,117,36,198,6,111,32,1,251,252,129,251,40,0
db 114,5,184,0,128,235,13,131,102,18,254,209,227,255,151,140
db 32,137,70,12,198,6,111,32,0,93,94,95,90,89,91,88
db 7,31,157,203,30,6,80,83,81,82,87,86,85,140,200,142
db 216,142,192,198,6,112,32,1,128,62,110,32,1,116,108,198
db 6,110,32,1,250,140,22,138,32,137,38,136,32,140,216,142
db 208,188,220,34,251,252,131,62,151,35,1,117,3,232,198,8
db 128,62,43,35,0,116,4,255,6,117,32,161,121,32,139,22
db 123,32,3,6,115,32,131,210,0,59,6,113,32,115,5,131
db 250,1,114,17,156,255,30,132,32,198,6,112,32,0,43,6
db 113,32,131,218,0,163,121,32,137,22,123,32,250,142,22,138
db 32,139,38,136,32,198,6,110,32,0,251,128,62,112,32,0
db 116,4,176,32,230,32,93,94,95,90,89,91,88,7,31,207
db 156,30,209,227,209,227,250,80,43,192,142,216,88,137,7,137
db 87,2,31,157,195,156,30,209,227,209,227,250,43,192,142,216
db 139,7,139,87,2,31,157,195,187,8,0,232,231,255,140,203
db 59,211,117,8,61,4,1,117,3,248,235,1,249,195,161,51
db 0,195,30,6,86,87,83,82,38,129,14,220,31,3,128,128
db 62,109,32,0,116,3,233,130,0,38,129,38,220,31,255,127
db 142,218,139,240,191,236,31,232,243,1,139,215,139,247,6,31
db 232,250,1,191,224,31,232,109,0,115,28,139,216,128,63,49
db 114,21,128,63,50,119,16,138,7,180,0,44,49,38,163,62
db 35,38,131,38,220,31,254,191,231,31,232,73,0,115,60,139
db 216,128,63,71,116,12,128,63,69,116,16,128,63,66,116,20
db 235,41,38,199,6,56,35,0,0,235,16,38,199,6,56,35
db 1,0,235,7,38,199,6,56,35,2,0,38,255,54,56,35
db 38,143,6,58,35,38,131,38,220,31,253,38,161,220,31,90
db 91,95,94,7,31,195,86,87,83,81,82,185,0,0,139,215
db 38,138,5,10,192,116,32,138,28,10,219,116,26,56,216,116
db 15,11,201,116,8,185,0,0,139,250,70,235,227,70,235,231
db 185,1,0,70,71,235,217,11,201,117,3,248,235,3,139,198
db 249,90,89,91,95,94,195,6,30,232,153,0,11,192,117,0
db 31,7,195,128,62,109,32,0,116,5,184,1,0,235,59,232
db 6,17,11,192,116,3,64,235,49,232,234,1,232,5,2,11
db 192,116,5,131,192,7,235,34,232,147,1,187,8,0,232,180
db 254,163,132,32,137,22,134,32,187,8,0,140,202,184,4,1
db 232,141,254,198,6,109,32,1,43,192,195,128,62,109,32,0
db 116,44,131,78,18,1,232,159,254,114,26,187,8,0,161,132
db 32,139,22,134,32,232,104,254,131,62,62,35,0,116,3,232
db 15,19,232,169,14,198,6,109,32,0,51,192,235,3,184,1
db 0,195,156,250,232,205,1,232,124,1,232,151,1,51,192,157
db 195,184,0,128,195,129,14,222,31,7,128,128,62,109,32,0
db 116,3,233,132,0,129,38,222,31,255,127,142,218,139,240,191
db 236,31,232,120,0,139,215,139,247,6,31,232,127,0,6,86
db 176,65,232,152,0,114,34,139,216,232,170,0,114,27,128,252
db 2,117,22,36,240,60,128,119,16,60,16,114,12,168,16,117
db 8,163,125,32,131,38,222,31,254,176,80,232,111,0,114,19
db 139,216,232,129,0,114,12,163,127,32,64,163,129,32,131,38
db 222,31,251,176,73,232,85,0,114,24,139,216,232,103,0,114
db 17,37,255,0,60,9,118,2,44,6,162,131,32,131,38,222
db 31,253,161,222,31,94,7,235,3,184,255,255,195,86,87,80
db 172,10,192,116,3,170,235,248,170,88,95,94,195,86,80,139
db 242,252,172,60,96,114,5,44,32,136,68,255,10,192,117,242
db 88,94,195,252,172,174,117,4,10,192,117,248,195,30,86,6
db 31,138,224,252,172,10,192,116,9,56,224,117,247,139,198,248
db 235,1,249,94,31,195,43,210,38,138,7,67,60,32,116,60
db 60,0,116,56,177,4,211,226,60,48,114,10,60,57,119,6
db 44,48,10,208,235,22,60,97,114,6,60,122,119,2,44,97
db 60,65,114,24,60,70,119,20,44,55,10,208,38,138,7,67
db 60,32,116,4,10,192,117,204,139,194,235,1,249,195,80,83
db 81,82,187,0,0,185,0,128,176,194,186,67,0,238,186,64
db 0,236,236,138,224,236,134,224,59,195,114,2,139,216,226,232
db 131,251,240,114,3,187,255,255,137,30,113,32,137,30,115,32
db 90,89,91,88,195,80,228,97,168,16,117,250,228,97,168,16
db 116,250,226,242,88,195,199,6,170,35,0,0,199,6,161,35
db 0,0,199,6,176,35,0,1,255,54,58,35,143,6,56,35
db 232,19,0,195,232,76,15,11,192,117,10,232,37,15,198,6
db 246,34,1,51,192,195,87,86,185,8,0,139,54,56,35,209
db 230,209,230,209,230,209,230,129,198,82,35,191,66,35,252,243
db 165,94,95,195,80,232,11,15,232,55,15,184,0,0,232,202
db 2,161,113,32,232,102,4,88,195,135,22,226,34,135,6,224
db 34,51,192,195,156,250,6,87,128,62,222,34,1,116,10,131
db 62,151,35,0,116,3,232,203,255,199,6,146,35,0,0,137
db 22,53,35,163,51,35,142,194,139,248,232,191,2,129,250,84
db 77,116,3,233,191,0,61,100,104,116,3,233,183,0,232,171
db 2,232,178,2,131,248,2,114,3,233,169,0,232,167,2,163
db 159,35,232,161,2,10,228,120,42,163,155,35,198,6,237,35
db 0,199,6,178,35,0,0,235,35,52,18,134,228,202,194,232
db 210,236,202,64,168,202,198,208,220,222,216,222,206,242,64,152
db 232,200,92,246,220,246,228,43,210,232,10,3,139,14,159,35
db 131,249,65,114,3,185,65,0,139,54,8,42,73,227,10,198
db 68,9,1,3,54,6,42,226,246,198,68,9,129,139,54,8
db 42,232,56,2,61,107,114,117,60,129,250,84,77,117,54,232
db 42,2,87,6,80,82,232,54,2,137,60,140,68,2,137,68
db 4,137,84,6,90,88,7,95,246,68,9,128,117,13,232,128
db 2,198,68,9,1,3,54,6,42,235,198,199,6,146,35,1
db 0,43,192,235,3,184,1,0,95,7,157,195,184,255,255,131
db 62,146,35,0,116,17,232,250,13,232,215,13,232,183,3,184
db 1,0,232,166,1,43,192,195,128,62,150,35,1,116,249,156
db 250,232,192,254,199,6,146,35,0,0,157,195,131,62,151,35
db 1,117,13,232,189,13,184,2,0,232,127,1,51,192,235,3
db 184,1,0,195,131,62,151,35,2,117,16,232,149,13,232,61
db 0,184,1,0,232,100,1,51,192,235,3,184,1,0,195,87
db 86,6,30,139,240,142,218,185,8,0,191,3,0,209,231,209
db 231,209,231,209,231,129,199,82,35,252,243,165,31,198,6,55
db 35,1,184,3,0,232,167,0,51,192,7,94,95,195,81,83
db 86,87,156,250,131,62,146,35,0,117,3,233,135,0,161,151
db 35,163,153,35,184,2,0,232,17,1,198,6,222,34,1,255
db 54,8,42,199,6,8,42,120,38,255,54,6,42,199,6,6
db 42,14,0,139,22,53,35,161,51,35,251,232,54,254,190,238
db 35,187,120,38,139,4,137,71,10,139,68,2,137,71,12,246
db 68,9,128,117,8,131,198,10,131,195,14,235,231,198,6,223
db 34,0,199,6,182,35,255,255,255,54,180,35,199,6,180,35
db 1,0,232,193,2,128,62,223,34,1,116,2,235,244,143,6
db 180,35,143,6,6,42,143,6,8,42,198,6,222,34,0,161
db 153,35,232,150,0,157,95,94,91,89,195,161,56,35,195,156
db 250,128,62,246,34,0,116,41,131,248,3,114,12,131,248,3
db 117,26,128,62,55,35,0,116,19,232,167,12,163,56,35,232
db 116,253,232,142,12,232,54,255,51,192,235,8,184,2,0,235
db 3,184,1,0,157,195,161,62,35,195,83,156,250,128,62,246
db 34,0,116,65,11,192,116,5,131,248,1,117,51,232,115,12
db 139,30,62,35,137,30,60,35,163,62,35,232,26,12,11,192
db 116,3,64,235,7,232,28,253,11,192,116,13,80,139,30,60
db 35,137,30,62,35,232,12,253,88,80,232,225,254,88,235,8
db 184,1,0,235,3,184,1,0,157,91,195,6,87,131,62,226
db 34,0,117,9,131,62,224,34,0,117,2,235,7,196,62,224
db 34,38,137,5,163,151,35,95,7,195,38,138,5,71,11,255
db 117,9,80,140,192,5,0,16,142,192,88,195,232,235,255,138
db 240,232,230,255,138,208,232,225,255,138,224,232,220,255,195,43
db 210,42,228,232,212,255,10,192,121,86,138,224,128,228,127,232
db 200,255,10,192,120,6,208,224,209,232,235,68,138,212,138,224
db 128,228,127,232,180,255,10,192,120,21,208,224,209,232,208,202
db 208,202,138,242,128,230,192,10,230,50,214,42,246,235,33,138
db 242,138,212,138,224,128,228,127,232,143,255,208,226,208,224,209
db 232,209,202,209,202,209,202,138,238,128,229,63,10,229,51,209
db 195,3,248,131,210,0,116,10,140,192,5,0,16,74,117,250
db 142,192,195,80,86,87,6,30,60,240,117,3,232,105,12,81
db 232,87,255,139,200,50,237,232,80,255,232,91,12,226,248,89
db 31,7,95,94,88,195,83,43,201,137,14,174,35,11,210,116
db 7,209,234,209,216,65,235,245,187,128,1,131,248,19,115,3
db 184,19,0,59,195,118,28,87,139,248,65,209,232,59,195,119
db 249,43,210,151,247,247,139,194,139,215,232,40,0,163,174,35
db 139,199,95,163,157,35,184,1,0,211,224,163,172,35,186,18
db 0,184,220,52,247,54,157,35,3,210,131,208,0,232,43,0
db 232,106,0,91,195,83,81,82,43,219,11,192,116,23,11,210
db 116,19,185,0,128,209,224,114,4,59,194,114,4,11,217,43
db 194,209,233,117,240,139,195,90,89,91,195,247,38,176,35,2
db 192,128,212,0,131,210,0,10,246,116,6,184,255,255,249,235
db 13,138,194,134,224,59,6,236,34,115,3,161,236,34,195,80
db 83,81,82,86,139,216,161,117,32,139,14,115,32,247,225,247
db 243,163,119,32,163,117,32,94,90,89,91,88,195,80,83,82
db 156,250,131,62,148,35,0,116,3,232,211,255,163,115,32,199
db 6,121,32,0,0,199,6,123,32,0,0,139,30,234,34,186
db 0,0,247,243,161,113,32,139,30,115,32,137,30,232,34,80
db 186,0,0,247,243,163,228,34,137,22,230,34,88,147,163,115
db 32,176,54,186,67,0,238,235,0,235,0,160,115,32,230,64
db 235,0,235,0,138,196,230,64,235,0,235,0,198,6,247,34
db 1,157,90,91,88,195,128,62,150,35,1,117,3,233,76,1
db 198,6,150,35,1,6,139,54,8,42,198,6,236,35,0,128
db 62,222,34,1,116,19,139,14,174,35,1,14,178,35,161,172
db 35,131,208,0,163,180,35,235,6,199,6,182,35,255,255,196
db 60,246,68,9,1,117,3,233,180,0,198,6,236,35,1,131
db 124,4,0,117,6,131,124,6,0,116,26,161,180,35,41,68
db 4,131,92,6,0,120,14,116,3,233,146,0,131,124,4,0
db 116,3,233,137,0,138,68,8,162,12,42,38,246,5,128,116
db 9,232,150,253,136,68,8,162,12,42,138,92,8,138,203,128
db 251,240,115,30,42,255,128,227,15,138,135,66,35,152,163,64
db 35,81,138,14,12,42,128,225,240,36,15,10,200,136,14,12
db 42,89,138,217,131,227,112,209,235,209,235,209,235,255,151,184
db 35,246,68,9,1,116,55,128,62,222,34,1,117,18,59,124
db 10,114,13,140,193,59,76,12,114,6,128,100,9,254,235,30
db 232,92,253,11,192,117,4,11,210,116,138,1,68,4,17,84
db 6,120,130,117,9,131,124,4,0,117,3,233,119,255,128,62
db 222,34,1,117,23,139,68,4,139,84,6,11,210,117,13,11
db 192,116,9,59,6,182,35,115,3,163,182,35,246,68,9,128
db 117,12,137,60,140,68,2,3,54,6,42,233,17,255,128,62
db 222,34,1,117,6,161,182,35,163,180,35,137,60,140,68,2
db 128,62,236,35,0,117,15,198,6,223,34,1,128,62,222,34
db 1,116,3,232,206,249,7,198,6,150,35,0,195,82,232,185
db 252,138,224,232,180,252,128,62,222,34,1,116,40,131,62,64
db 35,255,116,33,131,62,170,35,0,116,23,131,62,64,35,9
db 116,16,127,10,139,22,170,35,247,218,42,226,235,4,2,38
db 170,35,232,243,8,90,195,82,232,127,252,138,224,232,122,252
db 128,62,222,34,1,116,45,131,62,64,35,255,116,38,131,62
db 170,35,0,116,23,131,62,64,35,9,116,16,127,10,139,22
db 170,35,247,218,42,226,235,4,2,38,170,35,128,252,127,119
db 3,232,204,8,90,195,232,65,252,138,224,232,60,252,131,62
db 64,35,255,116,3,232,204,8,195,232,46,252,138,224,232,41
db 252,131,62,64,35,255,116,3,232,200,8,195,232,27,252,138
db 224,131,62,64,35,255,116,3,232,212,8,195,138,224,232,9
db 252,131,62,64,35,255,116,3,232,224,8,195,232,251,251,138
db 224,232,246,251,131,62,64,35,255,116,3,232,220,8,195,138
db 217,128,227,15,208,227,42,255,255,151,200,35,195,232,218,8
db 232,252,251,232,91,252,195,232,208,251,232,205,251,195,232,201
db 251,195,195,195,195,195,195,195,195,232,190,251,6,87,140,217
db 142,193,191,10,42,185,2,0,242,174,117,19,139,223,95,7
db 6,87,232,202,251,129,235,11,42,209,227,255,151,232,35,95
db 7,232,187,251,232,26,252,195,83,81,82,199,6,164,35,1
db 0,128,62,237,35,0,116,3,233,204,0,185,4,0,209,234
db 209,216,226,250,131,208,0,131,210,0,185,36,244,11,210,117
db 25,61,36,244,119,20,61,9,61,115,3,184,9,61,145,247
db 241,145,146,232,111,252,139,209,235,39,11,210,116,26,131,250
db 1,119,5,61,54,110,118,6,186,1,0,184,230,99,209,234
db 209,216,209,233,11,210,117,246,139,208,139,194,232,70,252,43
db 210,139,202,247,38,155,35,3,192,131,210,0,139,218,139,193
db 247,38,155,35,3,195,131,210,0,86,83,82,80,139,240,139
db 194,153,185,20,0,247,241,139,216,139,198,247,241,139,211,91
db 94,147,135,214,139,14,161,35,198,6,163,35,1,11,201,116
db 36,121,7,247,217,198,6,163,35,0,129,249,128,0,115,27
db 128,62,163,35,0,116,8,3,195,19,214,226,250,235,6,43
db 195,27,214,226,250,199,6,164,35,0,0,91,94,131,62,164
db 35,0,117,3,232,111,251,161,164,35,90,89,91,195,82,232
db 168,250,138,208,232,163,250,138,224,232,158,250,163,166,35,137
db 22,168,35,232,2,255,90,195,82,57,6,161,35,116,31,139
db 208,11,210,121,2,247,218,131,250,20,118,5,184,1,0,235
db 15,163,161,35,161,166,35,139,22,168,35,232,218,254,51,192
db 90,195,82,156,250,57,6,170,35,116,30,139,208,11,210,121
db 2,247,218,131,250,12,118,5,184,1,0,235,14,163,170,35
db 232,96,6,232,77,6,232,245,248,51,192,157,90,195,83,6
db 87,187,1,0,128,62,109,32,0,116,69,156,250,252,80,139
db 216,42,255,128,227,15,138,135,66,35,152,163,64,35,191,250
db 34,138,194,170,138,193,170,88,128,62,150,35,1,116,249,138
db 14,12,42,162,12,42,138,216,131,227,112,209,235,209,235,209
db 235,191,250,34,255,151,184,35,136,14,12,42,157,187,0,0
db 139,195,95,7,91,195,51,219,232,1,0,195,83,6,87,86
db 199,6,220,34,1,0,128,62,109,32,0,116,119,139,248,139
db 194,142,192,87,190,120,38,198,68,9,1,3,249,19,195,137
db 60,137,68,2,95,38,138,5,71,235,16,38,138,5,71,168
db 128,117,248,38,138,5,71,168,128,116,73,80,139,216,42,255
db 128,227,15,138,135,66,35,152,163,64,35,88,128,62,150,35
db 1,116,249,81,138,14,12,42,162,12,42,138,200,138,216,131
db 227,112,209,235,209,235,209,235,255,151,184,35,136,14,12,42
db 89,59,60,114,182,140,192,59,68,2,115,2,226,173,199,6
db 220,34,0,0,161,220,34,94,95,7,91,195,128,100,9,254
db 195,6,87,131,62,20,35,0,117,9,131,62,18,35,0,117
db 2,235,7,196,62,18,35,38,137,5,163,148,35,95,7,195
db 80,209,232,209,232,209,232,209,232,3,208,88,131,224,15,195
db 86,87,83,81,156,250,176,0,186,67,0,238,235,0,235,0
db 228,64,134,224,228,64,134,224,251,139,62,117,32,59,62,119
db 32,116,17,119,7,51,192,186,0,0,235,94,163,232,34,186
db 0,0,235,9,59,6,232,34,118,3,71,235,239,139,14,115
db 32,43,200,163,232,34,139,193,186,0,0,137,62,119,32,139
db 216,139,199,247,38,115,32,3,195,131,210,0,139,240,139,194
db 153,139,14,234,34,247,241,139,248,139,198,247,241,139,215,163
db 238,34,137,22,240,34,139,216,139,242,43,6,242,34,27,22
db 244,34,137,30,242,34,137,54,244,34,157,89,91,95,94,195
db 30,6,80,83,81,82,87,86,85,140,200,142,216,142,192,139
db 22,125,32,131,194,4,176,130,238,235,0,235,0,235,0,235
db 0,66,236,168,4,117,3,233,48,1,198,6,49,35,1,138
db 14,131,32,232,129,1,250,140,22,16,35,137,38,14,35,140
db 216,142,208,188,14,43,251,232,50,1,252,191,64,0,232,232
db 6,114,3,233,209,0,232,200,6,128,62,43,35,0,117,11
db 198,6,43,35,1,199,6,117,32,0,0,6,87,128,62,44
db 35,0,116,47,196,62,26,35,80,161,8,35,139,22,10,35
db 64,131,210,0,59,22,6,35,114,15,59,6,4,35,118,9
db 88,199,6,12,35,1,0,235,108,163,8,35,137,22,10,35
db 88,235,5,14,7,191,0,35,137,62,38,35,140,195,137,30
db 40,35,170,232,186,254,128,62,47,35,1,117,7,161,238,34
db 139,22,240,34,171,139,194,170,131,62,30,35,0,117,9,131
db 62,32,35,0,117,2,235,22,80,255,54,40,35,255,54,38
db 35,255,54,36,35,255,54,34,35,255,30,30,35,88,128,62
db 44,35,0,116,16,139,30,38,35,131,195,4,131,22,28,35
db 0,137,30,26,35,95,7,128,62,44,35,0,116,17,131,62
db 12,35,0,116,10,198,6,50,35,1,232,243,2,235,36,79
db 11,255,116,3,233,39,255,128,62,44,35,0,116,21,80,82
db 161,26,35,139,22,28,35,232,38,254,163,26,35,137,22,28
db 35,90,88,250,139,38,14,35,142,22,16,35,198,6,49,35
db 0,138,14,131,32,232,52,0,235,24,131,62,252,34,0,117
db 12,131,62,254,34,0,117,5,232,17,0,235,5,156,255,30
db 252,34,93,94,95,90,89,91,88,7,31,207,80,176,32,128
db 62,131,32,7,118,2,230,160,230,32,88,195,80,82,156,250
db 128,249,8,115,5,186,33,0,235,6,186,161,0,128,233,8
db 184,0,1,210,228,246,212,236,235,0,235,0,34,196,238,235
db 0,235,0,157,90,88,195,80,82,156,250,128,249,8,115,5
db 186,33,0,235,6,186,161,0,128,233,8,184,0,1,210,228
db 236,235,0,235,0,10,196,238,235,0,235,0,157,90,88,195
db 83,139,30,45,35,232,61,240,140,203,59,211,117,8,61,144
db 15,117,3,248,235,1,249,91,195,80,83,81,82,156,250,160
db 131,32,60,8,115,4,4,8,235,4,44,8,4,112,42,228
db 163,45,35,139,30,45,35,232,11,240,137,22,254,34,163,252
db 34,139,30,45,35,140,202,184,144,15,232,227,239,138,14,131
db 32,128,249,8,115,5,186,33,0,235,6,186,161,0,128,233
db 8,184,0,1,210,228,236,34,196,162,42,35,138,14,131,32
db 232,57,255,198,6,48,35,1,157,90,89,91,88,195,82,156
db 250,128,62,48,35,0,116,45,232,117,255,114,40,128,62,131
db 32,8,115,5,186,33,0,235,3,186,161,0,236,10,6,42
db 35,238,139,30,45,35,139,22,254,34,161,252,34,232,128,239
db 198,6,48,35,0,157,90,195,80,156,250,199,6,121,32,0
db 0,199,6,123,32,0,0,128,62,247,34,0,117,17,161,248
db 34,57,6,113,32,115,6,161,113,32,163,248,34,235,3,161
db 115,32,232,72,247,157,88,195,128,62,109,32,0,116,31,128
db 62,131,32,255,117,5,184,1,0,235,17,135,22,20,35,135
db 6,18,35,80,43,192,232,88,252,88,51,192,235,3,184,1
db 0,195,128,62,131,32,255,117,5,184,1,0,235,5,162,47
db 35,51,192,195,81,128,62,109,32,0,116,58,128,62,131,32
db 255,117,5,184,1,0,235,44,73,137,14,4,35,137,62,6
db 35,232,60,252,163,22,35,131,192,4,163,26,35,137,22,24
db 35,131,210,0,137,22,28,35,198,6,44,35,1,198,6,43
db 35,0,51,192,235,3,184,1,0,89,195,128,62,109,32,0
db 116,32,128,62,131,32,255,117,5,184,1,0,235,18,135,22
db 32,35,135,6,30,35,135,62,36,35,135,14,34,35,51,192
db 235,3,184,1,0,195,156,250,128,62,109,32,0,116,124,131
db 62,148,35,0,117,112,131,62,125,32,255,116,14,128,62,131
db 32,255,116,7,232,229,3,114,2,235,5,184,1,0,235,84
db 161,248,34,59,6,234,34,115,5,184,1,0,235,70,6,87
db 80,196,62,22,35,161,8,35,171,161,10,35,171,88,95,7
db 248,131,62,151,35,0,117,5,232,132,2,235,10,131,62,62
db 35,0,117,3,232,120,2,115,5,184,1,0,235,22,232,90
db 2,232,180,254,184,255,255,232,87,251,232,12,254,198,6,50
db 35,0,51,192,235,8,184,1,0,235,3,184,1,0,157,195
db 131,62,148,35,0,116,8,156,250,232,4,0,51,192,157,195
db 156,250,82,131,62,151,35,0,117,9,161,113,32,232,237,245
db 232,158,2,232,1,2,43,192,232,22,251,232,48,254,6,87
db 80,128,62,50,35,1,116,7,128,62,49,35,1,116,249,198
db 6,50,35,0,250,196,62,22,35,161,8,35,171,161,10,35
db 171,88,95,7,90,157,195,0,131,62,62,35,1,116,25,161
db 125,32,131,248,255,117,5,184,1,0,235,38,232,107,3,11
db 192,116,31,184,2,0,235,26,131,62,127,32,255,117,5,184
db 3,0,235,14,232,245,2,115,5,184,4,0,235,4,51,192
db 43,192,195,131,62,62,35,0,116,5,232,109,1,235,3,232
db 73,4,195,131,62,62,35,0,116,5,232,248,0,235,3,232
db 66,6,195,131,62,62,35,0,116,18,131,62,148,35,0,117
db 7,232,139,1,51,192,235,2,51,192,235,5,232,78,3,51
db 192,195,131,62,62,35,0,116,2,235,3,232,164,3,195,80
db 160,12,42,232,178,0,88,134,224,232,172,0,134,224,232,167
db 0,195,232,234,255,195,235,250,131,62,62,35,0,116,5,232
db 240,255,235,3,232,136,9,195,10,192,116,234,232,208,255,195
db 131,62,62,35,0,116,5,232,238,255,235,3,232,228,9,195
db 232,188,255,195,131,62,62,35,0,116,3,232,242,255,195,232
db 173,255,195,131,62,62,35,0,116,5,232,242,255,235,3,232
db 62,10,195,80,160,12,42,232,78,0,88,232,74,0,195,131
db 62,62,35,0,116,5,232,234,255,235,3,232,80,10,195,80
db 160,12,42,232,50,0,88,232,46,0,195,131,62,62,35,0
db 116,3,232,234,255,195,232,102,255,195,131,62,62,35,0,116
db 5,232,242,255,235,3,232,113,10,195,131,62,62,35,0,116
db 5,232,143,243,235,0,195,0,80,82,81,156,250,232,98,1
db 157,89,90,88,195,80,83,81,82,128,62,150,35,0,116,2
db 226,247,156,250,131,62,62,35,1,117,17,131,62,151,35,0
db 117,10,128,62,15,43,1,116,3,232,131,0,184,176,0,232
db 198,255,80,176,120,232,192,255,176,0,232,187,255,88,232,183
db 255,80,176,121,232,177,255,176,0,232,172,255,88,232,168,255
db 80,176,123,232,162,255,176,0,232,157,255,88,254,192,168,15
db 116,2,235,203,157,90,89,91,88,195,80,184,176,0,232,135
db 255,80,176,7,232,129,255,176,100,232,124,255,88,254,192,168
db 15,116,2,235,233,88,195,80,82,139,22,125,32,131,194,4
db 176,131,238,66,236,36,251,238,90,88,195,80,82,139,22,125
db 32,131,194,4,176,131,238,66,236,12,4,238,90,88,195,80
db 81,82,156,250,248,128,62,15,43,1,116,91,131,62,148,35
db 1,116,84,185,2,0,81,176,255,139,22,129,32,238,185,0
db 16,236,10,192,121,5,226,249,249,235,1,248,89,115,4,226
db 229,235,42,139,22,127,32,236,52,254,117,33,176,63,139,22
db 129,32,238,185,0,16,236,10,192,121,5,226,249,249,235,13
db 139,22,127,32,236,52,254,116,3,249,235,1,248,139,22,127
db 32,236,198,6,15,43,1,139,22,127,32,236,157,90,89,88
db 195,80,81,82,156,250,248,128,62,15,43,0,116,47,131,62
db 148,35,1,116,40,185,2,0,81,176,255,139,22,129,32,238
db 185,0,16,236,10,192,121,5,226,249,249,235,1,248,89,115
db 2,226,229,139,22,127,32,236,198,6,15,43,0,157,90,89
db 88,195,81,82,80,185,0,16,139,22,129,32,236,168,64,116
db 6,226,249,249,88,235,7,88,139,22,127,32,238,248,90,89
db 195,81,82,185,0,16,139,22,129,32,236,10,192,121,2,226
db 249,139,22,127,32,236,90,89,195,80,82,139,22,129,32,236
db 10,192,121,3,248,235,1,249,90,88,195,81,82,156,250,248
db 187,0,0,80,139,208,66,176,255,238,185,0,16,226,254,236
db 176,255,238,185,0,16,236,10,192,121,3,226,249,249,74,236
db 88,114,2,235,3,187,1,0,157,90,89,195,83,161,127,32
db 128,62,14,43,1,117,2,235,18,232,191,255,11,219,116,3
db 249,235,9,198,6,14,43,1,163,127,32,248,91,195,80,81
db 82,3,22,125,32,134,224,238,185,1,0,232,135,237,66,138
db 196,238,185,3,0,232,125,237,90,89,88,195,81,82,185,0
db 1,138,224,128,228,224,139,22,125,32,236,36,224,56,196,116
db 5,226,247,249,235,1,248,90,89,195,186,0,0,184,0,1
db 232,187,255,184,96,4,232,181,255,184,128,4,232,175,255,176
db 0,232,200,255,114,35,184,255,2,232,162,255,184,33,4,232
db 156,255,176,192,232,181,255,114,16,184,96,4,232,143,255,184
db 128,4,232,137,255,43,192,235,3,184,1,0,195,186,0,0
db 184,96,4,232,120,255,184,128,4,232,114,255,186,2,0,184
db 1,5,232,105,255,184,63,4,232,99,255,199,6,16,43,6
db 0,186,0,0,184,32,1,232,84,255,184,0,8,232,78,255
db 184,32,189,232,72,255,232,1,0,195,186,0,0,184,0,166
db 232,59,255,184,10,182,232,53,255,184,11,167,232,47,255,184
db 10,183,232,41,255,184,87,168,232,35,255,184,9,184,232,29
db 255,195,186,2,0,184,48,192,232,19,255,254,196,128,252,200
db 118,246,176,0,43,219,180,192,2,167,70,70,232,255,254,67
db 131,251,18,114,241,186,0,0,184,48,192,232,240,254,254,196
db 128,252,200,118,246,176,0,43,219,180,192,2,167,70,70,232
db 220,254,67,131,251,18,114,241,186,2,0,184,0,4,232,205
db 254,184,0,5,232,199,254,6,87,140,216,142,192,252,176,255
db 185,11,0,191,66,69,243,170,95,7,195,6,87,140,223,142
db 199,252,43,192,163,18,43,198,6,3,70,32,184,48,48,185
db 8,0,191,100,68,243,171,43,192,185,8,0,191,116,68,243
db 171,43,192,185,8,0,191,132,68,243,171,43,192,185,16,0
db 191,148,68,243,171,184,0,1,185,16,0,191,180,68,243,171
db 176,255,185,11,0,191,110,69,243,170,186,0,0,184,32,189
db 232,91,254,232,20,255,95,7,195,80,81,86,138,225,172,232
db 76,254,172,138,200,128,225,192,136,141,127,69,138,200,128,225
db 63,128,233,63,246,217,136,141,171,69,128,196,32,232,46,254
db 172,128,196,32,232,39,254,172,128,196,32,232,32,254,70,172
db 128,196,96,232,24,254,94,89,88,195,81,87,86,139,62,64
db 35,138,141,100,68,136,143,44,69,177,5,42,228,211,224,139
db 240,129,198,20,49,138,68,31,152,177,4,211,224,209,227,137
db 135,22,69,209,235,138,68,4,138,100,16,37,1,1,208,224
db 10,196,136,135,99,69,42,246,138,151,212,68,138,143,223,68
db 139,251,232,116,255,138,167,121,69,138,68,4,36,15,136,133
db 215,69,10,135,44,69,232,181,253,128,193,3,131,198,6,131
db 199,11,232,84,255,131,198,6,128,193,5,131,199,11,232,72
db 255,138,167,121,69,128,196,3,138,68,4,36,15,136,133,215
db 69,10,135,44,69,232,134,253,128,193,3,131,198,6,131,199
db 11,232,37,255,94,95,89,195,81,86,198,135,44,69,48,42
db 228,45,128,0,209,224,209,224,209,224,209,224,190,20,65,3
db 240,138,68,3,128,251,7,114,3,138,68,2,138,224,37,63
db 192,136,167,127,69,44,63,246,216,136,135,171,69,128,251,6
db 117,85,138,167,223,68,186,0,0,172,232,49,253,128,196,3
db 172,232,42,253,128,236,3,128,196,32,172,232,32,253,70,185
db 2,0,128,196,32,172,232,21,253,128,196,3,172,232,14,253
db 128,236,3,226,237,128,196,96,172,232,2,253,128,196,3,172
db 232,251,252,128,236,3,138,227,128,196,192,172,36,63,10,135
db 44,69,232,233,252,235,58,138,167,223,68,186,0,0,172,70
db 232,219,252,128,196,32,172,70,232,211,252,185,2,0,128,196
db 32,172,70,232,200,252,226,246,128,196,96,172,70,232,190,252
db 138,167,3,70,128,196,192,172,10,135,44,69,36,63,232,173
db 252,94,89,195,80,83,82,186,0,0,128,38,3,70,32,160
db 3,70,180,189,232,151,252,139,30,16,43,75,128,191,66,69
db 127,119,3,232,63,0,254,203,121,242,90,91,88,195,87,43
db 219,160,23,70,60,35,114,39,60,75,119,35,42,228,44,35
db 162,23,70,139,248,138,157,4,68,10,219,116,18,129,235,128
db 0,209,227,209,227,209,227,209,227,138,159,31,65,42,255,139
db 195,11,192,95,195,81,82,128,143,66,69,128,198,135,110,69
db 255,209,227,139,135,234,68,209,235,138,204,42,246,138,151,212
db 68,138,167,223,68,128,196,128,232,35,252,138,193,128,196,16
db 232,27,252,90,89,195,87,232,148,255,117,3,233,132,0,160
db 23,70,42,228,139,248,138,133,4,68,232,139,254,138,135,254
db 69,8,6,3,70,160,24,70,232,106,0,232,63,1,128,251
db 6,116,5,128,251,8,117,80,160,23,70,42,228,139,248,138
db 133,52,68,232,80,1,114,75,138,204,42,246,138,151,212,68
db 138,167,12,70,232,199,251,138,193,128,196,16,232,191,251,128
db 251,8,117,36,160,23,70,42,228,139,248,138,133,52,68,4
db 7,232,34,1,114,29,138,204,180,167,186,0,0,232,158,251
db 138,193,128,196,16,232,150,251,160,3,70,180,189,186,0,0
db 232,139,251,95,195,87,42,228,249,209,208,139,62,64,35,209
db 231,247,165,180,68,138,196,208,232,208,232,208,232,208,232,20
db 0,42,228,139,248,209,231,139,133,25,70,95,195,42,228,3
db 193,131,248,63,118,11,11,192,120,5,184,63,0,235,2,43
db 192,131,232,63,247,216,195,81,87,86,42,246,138,151,212,68
db 81,138,143,99,69,42,237,139,249,138,141,14,70,42,237,139
db 241,89,139,251,247,198,1,0,116,21,138,133,171,69,232,188
db 255,10,133,127,69,138,167,223,68,128,196,32,232,15,251,131
db 199,11,247,198,2,0,116,21,138,133,171,69,232,158,255,10
db 133,127,69,138,167,223,68,128,196,35,232,241,250,131,199,11
db 247,198,4,0,116,21,138,133,171,69,232,128,255,10,133,127
db 69,138,167,223,68,128,196,40,232,211,250,131,199,11,247,198
db 8,0,116,21,138,133,171,69,232,98,255,10,133,127,69,138
db 167,223,68,128,196,43,232,181,250,94,95,89,195,87,139,251
db 42,228,2,133,171,69,43,201,232,66,255,10,135,127,69,138
db 167,223,68,128,251,6,117,3,128,196,3,128,196,32,186,0
db 0,232,138,250,95,195,87,138,224,42,192,209,232,209,232,209
db 227,3,135,22,69,209,235,139,62,64,35,209,231,3,133,148
db 68,191,0,3,43,199,114,42,61,0,24,245,114,36,43,210
db 247,247,208,224,208,224,138,224,42,192,139,250,209,231,11,133
db 20,43,209,227,137,135,234,68,139,14,18,43,137,143,0,69
db 209,235,95,195,6,87,140,217,142,193,139,14,16,43,138,224
db 12,128,191,66,69,242,174,116,32,139,14,16,43,176,255,191
db 66,69,242,174,116,19,139,14,16,43,176,128,191,66,69,132
db 5,117,5,71,226,249,235,3,71,235,65,86,43,246,139,14
db 16,43,191,0,69,187,66,69,139,195,80,139,5,43,6,18
db 43,153,51,194,43,194,139,208,88,59,214,118,4,139,242,139
db 195,71,71,67,73,117,227,11,246,117,3,249,235,11,45,66
db 69,139,216,232,127,253,139,195,248,94,235,7,129,239,67,69
db 139,199,248,95,7,195,42,228,249,208,224,139,30,64,35,209
db 227,137,135,180,68,209,235,195,131,62,64,35,9,116,89,180
db 16,60,42,118,8,180,48,60,84,118,2,180,32,139,30,64
db 35,136,167,100,68,86,190,66,69,139,14,16,43,42,246,172
db 36,127,58,6,64,35,117,44,139,222,129,235,67,69,136,167
db 44,69,80,138,196,138,151,212,68,138,167,223,68,128,196,160
db 10,135,215,69,232,87,249,36,48,128,196,3,10,135,237,69
db 232,75,249,88,73,117,200,94,195,6,87,131,62,64,35,9
db 116,42,139,30,64,35,136,135,132,68,10,192,117,30,140,217
db 142,193,185,11,0,191,110,69,160,64,35,242,174,117,13,139
db 223,129,235,111,69,232,205,252,11,201,117,239,95,7,195,252
db 136,38,23,70,162,24,70,139,14,16,43,128,62,64,35,9
db 117,30,232,121,252,116,89,139,216,138,135,254,69,246,208,34
db 6,3,70,162,3,70,180,189,186,0,0,232,224,248,235,64
db 6,87,140,216,142,192,160,23,70,138,38,64,35,191,55,69
db 139,14,16,43,242,174,117,38,139,223,129,235,56,69,58,167
db 66,69,116,4,227,24,235,236,139,62,64,35,128,189,132,68
db 0,116,8,139,199,136,135,110,69,235,3,232,87,252,95,7
db 195,235,148,252,136,38,23,70,10,192,116,245,162,24,70,139
db 30,64,35,138,195,60,9,117,5,232,106,252,235,97,255,6
db 18,43,232,63,254,114,88,139,216,160,64,35,134,135,66,69
db 36,127,58,6,64,35,116,13,87,139,62,64,35,138,133,116
db 68,232,70,250,95,160,24,70,232,202,252,139,200,232,7,253
db 160,23,70,136,135,55,69,232,188,253,115,7,128,143,66,69
db 128,235,28,42,246,138,151,212,68,138,204,138,167,223,68,128
db 196,128,232,41,248,138,193,12,32,128,196,16,232,31,248,195
db 252,128,252,123,114,5,232,107,251,235,34,6,87,134,196,140
db 223,142,199,191,61,70,185,3,0,242,174,139,223,95,7,117
db 12,134,196,129,235,62,70,209,227,255,151,64,70,195,252,139
db 30,64,35,136,167,116,68,6,87,140,216,142,192,128,62,64
db 35,9,116,51,139,14,16,43,160,64,35,12,128,191,66,69
db 242,174,117,8,198,69,255,255,11,201,117,244,139,14,16,43
db 191,66,69,160,64,35,242,174,117,13,139,223,129,235,67,69
db 232,98,251,11,201,117,236,95,7,195,252,87,139,62,64,35
db 131,255,9,116,68,208,228,209,192,44,128,152,209,231,137,133
db 148,68,43,219,160,64,35,58,135,66,69,117,37,138,135,55
db 69,232,242,252,114,28,138,204,138,167,223,68,128,196,128,42
db 246,138,151,212,68,232,102,247,138,193,12,32,128,196,16,232
db 92,247,67,59,30,16,43,114,203,95,195,0,3,128,7,128
db 83,89,78,84,72,58,0,77,65,80,58,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255
db 255,0,0,255,0,0,0,0,0,0,0,0,222,1,226,1
db 199,2,211,2,27,3,82,3,159,6,57,5,68,5,60,6
db 88,6,108,6,132,6,107,7,111,7,136,13,178,13,222,13
db 54,14,97,3,97,3,97,3,97,3,97,3,97,3,97,3
db 97,3,97,3,166,7,170,7,88,18,130,18,148,18,219,18
db 6,19,144,19,97,3,97,3,97,3,97,3,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,169,4,169,4,0,0
db 0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0
db 0,0,0,1,2,3,4,5,6,7,8,9,255,255,255,255
db 255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13
db 14,15,0,1,2,3,4,5,6,7,8,9,255,255,255,255
db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,12,13
db 14,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255
db 255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,1,0,0,0,0,0,0,93,11,151,11,214,11,233,11
db 252,11,12,12,28,12,47,12,61,12,60,12,71,12,78,12
db 60,12,60,12,82,12,61,12,84,12,60,12,85,12,86,12
db 87,12,60,12,88,12,89,12,110,13,204,14,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,10,0,238,35,81,47,0,0,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,0,0
db 6,0,0,0,87,1,87,1,88,1,88,1,88,1,88,1
db 89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1
db 91,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1
db 94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1
db 96,1,97,1,97,1,97,1,98,1,98,1,98,1,99,1
db 99,1,99,1,100,1,100,1,100,1,100,1,101,1,101,1
db 101,1,102,1,102,1,102,1,103,1,103,1,103,1,104,1
db 104,1,104,1,105,1,105,1,105,1,106,1,106,1,106,1
db 107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,1
db 109,1,110,1,110,1,110,1,111,1,111,1,111,1,112,1
db 112,1,112,1,113,1,113,1,113,1,114,1,114,1,114,1
db 115,1,115,1,115,1,116,1,116,1,116,1,117,1,117,1
db 117,1,118,1,118,1,118,1,119,1,119,1,119,1,120,1
db 120,1,120,1,121,1,121,1,121,1,122,1,122,1,122,1
db 123,1,123,1,123,1,124,1,124,1,124,1,125,1,125,1
db 125,1,126,1,126,1,126,1,127,1,127,1,128,1,128,1
db 128,1,129,1,129,1,129,1,130,1,130,1,130,1,131,1
db 131,1,131,1,132,1,132,1,132,1,133,1,133,1,133,1
db 134,1,134,1,135,1,135,1,135,1,136,1,136,1,136,1
db 137,1,137,1,137,1,138,1,138,1,138,1,139,1,139,1
db 139,1,140,1,140,1,141,1,141,1,141,1,142,1,142,1
db 142,1,143,1,143,1,143,1,144,1,144,1,145,1,145,1
db 145,1,146,1,146,1,146,1,147,1,147,1,147,1,148,1
db 148,1,149,1,149,1,149,1,150,1,150,1,150,1,151,1
db 151,1,151,1,152,1,152,1,153,1,153,1,153,1,154,1
db 154,1,154,1,155,1,155,1,156,1,156,1,156,1,157,1
db 157,1,157,1,158,1,158,1,158,1,159,1,159,1,160,1
db 160,1,160,1,161,1,161,1,161,1,162,1,162,1,163,1
db 163,1,163,1,164,1,164,1,165,1,165,1,165,1,166,1
db 166,1,166,1,167,1,167,1,168,1,168,1,168,1,169,1
db 169,1,169,1,170,1,170,1,171,1,171,1,171,1,172,1
db 172,1,173,1,173,1,173,1,174,1,174,1,174,1,175,1
db 175,1,176,1,176,1,176,1,177,1,177,1,178,1,178,1
db 178,1,179,1,179,1,180,1,180,1,180,1,181,1,181,1
db 182,1,182,1,182,1,183,1,183,1,184,1,184,1,184,1
db 185,1,185,1,186,1,186,1,186,1,187,1,187,1,188,1
db 188,1,188,1,189,1,189,1,190,1,190,1,190,1,191,1
db 191,1,192,1,192,1,192,1,193,1,193,1,194,1,194,1
db 194,1,195,1,195,1,196,1,196,1,196,1,197,1,197,1
db 198,1,198,1,198,1,199,1,199,1,200,1,200,1,201,1
db 201,1,201,1,202,1,202,1,203,1,203,1,203,1,204,1
db 204,1,205,1,205,1,205,1,206,1,206,1,207,1,207,1
db 208,1,208,1,208,1,209,1,209,1,210,1,210,1,211,1
db 211,1,211,1,212,1,212,1,213,1,213,1,213,1,214,1
db 214,1,215,1,215,1,216,1,216,1,216,1,217,1,217,1
db 218,1,218,1,219,1,219,1,219,1,220,1,220,1,221,1
db 221,1,222,1,222,1,222,1,223,1,223,1,224,1,224,1
db 225,1,225,1,225,1,226,1,226,1,227,1,227,1,228,1
db 228,1,229,1,229,1,229,1,230,1,230,1,231,1,231,1
db 232,1,232,1,232,1,233,1,233,1,234,1,234,1,235,1
db 235,1,236,1,236,1,236,1,237,1,237,1,238,1,238,1
db 239,1,239,1,240,1,240,1,240,1,241,1,241,1,242,1
db 242,1,243,1,243,1,244,1,244,1,245,1,245,1,245,1
db 246,1,246,1,247,1,247,1,248,1,248,1,249,1,249,1
db 250,1,250,1,250,1,251,1,251,1,252,1,252,1,253,1
db 253,1,254,1,254,1,255,1,255,1,255,1,0,2,0,2
db 1,2,1,2,2,2,2,2,3,2,3,2,4,2,4,2
db 5,2,5,2,6,2,6,2,6,2,7,2,7,2,8,2
db 8,2,9,2,9,2,10,2,10,2,11,2,11,2,12,2
db 12,2,13,2,13,2,14,2,14,2,14,2,15,2,15,2
db 16,2,16,2,17,2,17,2,18,2,18,2,19,2,19,2
db 20,2,20,2,21,2,21,2,22,2,22,2,23,2,23,2
db 24,2,24,2,25,2,25,2,26,2,26,2,26,2,27,2
db 27,2,28,2,28,2,29,2,29,2,30,2,30,2,31,2
db 31,2,32,2,32,2,33,2,33,2,34,2,34,2,35,2
db 35,2,36,2,36,2,37,2,37,2,38,2,38,2,39,2
db 39,2,40,2,40,2,41,2,41,2,42,2,42,2,43,2
db 43,2,44,2,44,2,45,2,45,2,46,2,46,2,47,2
db 47,2,48,2,48,2,49,2,49,2,50,2,50,2,51,2
db 51,2,52,2,52,2,53,2,53,2,54,2,54,2,55,2
db 55,2,56,2,56,2,57,2,57,2,58,2,59,2,59,2
db 60,2,60,2,61,2,61,2,62,2,62,2,63,2,63,2
db 64,2,64,2,65,2,65,2,66,2,66,2,67,2,67,2
db 68,2,68,2,69,2,69,2,70,2,70,2,71,2,72,2
db 72,2,73,2,73,2,74,2,74,2,75,2,75,2,76,2
db 76,2,77,2,77,2,78,2,78,2,79,2,79,2,80,2
db 81,2,81,2,82,2,82,2,83,2,83,2,84,2,84,2
db 85,2,85,2,86,2,86,2,87,2,88,2,88,2,89,2
db 89,2,90,2,90,2,91,2,91,2,92,2,92,2,93,2
db 94,2,94,2,95,2,95,2,96,2,96,2,97,2,97,2
db 98,2,98,2,99,2,100,2,100,2,101,2,101,2,102,2
db 102,2,103,2,103,2,104,2,105,2,105,2,106,2,106,2
db 107,2,107,2,108,2,108,2,109,2,110,2,110,2,111,2
db 111,2,112,2,112,2,113,2,114,2,114,2,115,2,115,2
db 116,2,116,2,117,2,117,2,118,2,119,2,119,2,120,2
db 120,2,121,2,121,2,122,2,123,2,123,2,124,2,124,2
db 125,2,125,2,126,2,127,2,127,2,128,2,128,2,129,2
db 130,2,130,2,131,2,131,2,132,2,132,2,133,2,134,2
db 134,2,135,2,135,2,136,2,137,2,137,2,138,2,138,2
db 139,2,139,2,140,2,141,2,141,2,142,2,142,2,143,2
db 144,2,144,2,145,2,145,2,146,2,147,2,147,2,148,2
db 148,2,149,2,150,2,150,2,151,2,151,2,152,2,153,2
db 153,2,154,2,154,2,155,2,156,2,156,2,157,2,157,2
db 158,2,159,2,159,2,160,2,160,2,161,2,162,2,162,2
db 163,2,163,2,164,2,165,2,165,2,166,2,166,2,167,2
db 168,2,168,2,169,2,170,2,170,2,171,2,171,2,172,2
db 173,2,173,2,20,171,255,255,15,0,20,158,255,255,0,1
db 18,25,240,240,14,1,17,0,243,244,0,0,0,0,0,0
db 0,0,0,0,18,0,255,255,0,0,18,26,255,255,0,5
db 19,27,243,245,0,1,1,0,244,245,0,0,0,0,0,0
db 0,0,0,0,49,147,253,205,1,2,114,147,253,221,0,3
db 50,21,255,36,0,1,241,2,211,243,0,0,0,0,0,0
db 0,0,0,0,49,148,223,255,1,0,114,148,223,255,0,4
db 50,18,217,41,0,2,241,2,211,185,0,0,0,0,0,0
db 0,0,0,0,16,0,255,249,14,0,16,9,255,175,0,2
db 1,16,244,233,15,1,17,1,243,201,0,0,0,0,0,0
db 0,0,0,0,179,193,223,223,0,0,243,215,220,255,0,7
db 178,23,211,211,1,2,241,128,210,243,0,0,0,0,0,0
db 0,0,0,0,0,28,239,175,1,0,2,18,255,160,0,1
db 1,1,223,34,0,0,1,4,245,213,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,15,0,2,30,255,6,0,4
db 2,37,243,245,14,0,0,3,179,245,0,0,0,0,0,0
db 0,0,0,48,0,8,255,255,0,0,0,30,156,255,0,0
db 2,28,212,247,1,0,1,0,212,247,0,0,0,0,0,0
db 0,0,0,0,48,225,251,224,14,3,50,220,244,230,0,3
db 53,148,240,243,15,2,1,1,244,245,0,0,0,0,0,0
db 0,0,0,0,18,18,223,255,1,0,23,20,223,253,0,6
db 28,11,246,252,1,6,1,0,212,245,0,0,0,0,0,0
db 0,0,0,0,128,0,255,255,14,0,128,54,255,255,0,1
db 140,92,243,245,14,1,194,0,243,245,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,14,159,255,0,0
db 2,24,245,245,1,0,1,0,245,245,0,0,0,0,0,0
db 0,0,0,0,3,18,255,255,14,1,3,210,255,254,0,1
db 5,207,248,88,15,6,1,0,243,246,0,0,0,0,0,0
db 0,0,0,0,33,28,207,239,0,0,33,18,245,230,0,1
db 36,23,245,229,1,0,1,6,196,228,0,0,0,0,0,0
db 0,0,0,0,1,158,255,239,14,0,2,158,243,239,0,2
db 1,30,247,67,14,3,17,0,243,212,0,0,0,0,0,0
db 0,0,0,0,34,82,127,191,4,7,34,82,127,159,0,6
db 34,78,115,255,5,5,225,3,115,255,0,0,0,0,0,0
db 0,0,0,0,34,82,127,191,4,7,34,82,127,159,0,6
db 33,142,115,255,5,5,226,3,115,255,0,0,0,0,0,0
db 0,0,0,0,2,72,255,191,4,0,2,72,255,158,0,2
db 2,78,243,255,5,2,1,0,244,255,0,0,0,0,0,0
db 0,0,0,0,34,91,127,191,4,0,34,92,127,159,0,0
db 33,24,115,252,5,5,225,0,116,255,0,0,0,0,0,0
db 0,0,0,0,32,67,127,191,4,0,32,18,127,159,0,0
db 33,20,115,252,5,4,225,0,116,255,0,0,0,0,0,0
db 0,0,0,0,49,37,80,255,14,4,49,0,80,255,0,5
db 50,45,255,255,15,2,177,0,85,255,0,0,0,0,0,0
db 0,0,0,0,193,69,127,255,0,0,193,104,125,255,0,2
db 193,30,116,255,1,3,193,0,116,255,0,0,0,0,0,0
db 0,0,0,0,17,33,80,255,14,4,17,0,64,255,0,4
db 19,0,255,255,15,2,209,0,85,255,0,0,0,0,0,0
db 0,0,0,0,17,0,242,255,14,0,16,28,252,255,0,5
db 18,27,241,242,14,1,1,0,212,255,0,0,0,0,0,0
db 0,0,0,0,17,8,255,255,8,0,16,40,255,255,0,3
db 1,8,244,243,8,1,2,1,244,255,0,0,0,0,0,0
db 0,0,0,0,17,18,255,255,14,0,18,30,255,255,0,5
db 19,30,243,255,14,1,1,0,211,255,0,0,0,0,0,0
db 0,0,0,0,0,37,255,255,0,0,0,33,255,255,0,5
db 1,5,240,240,1,0,1,0,244,246,0,0,0,0,0,0
db 0,0,0,0,0,8,255,255,0,0,0,5,255,255,0,2
db 1,8,240,255,1,1,2,1,244,255,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,1,0,32,8,255,255,0,0
db 33,8,240,255,0,1,34,0,243,255,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,1,0,32,8,255,255,0,0
db 33,8,240,255,0,1,34,1,243,255,0,0,0,0,0,0
db 0,0,0,0,16,28,255,255,1,0,16,8,255,255,0,0
db 20,76,240,241,0,1,24,11,240,244,0,0,0,0,0,0
db 0,0,0,0,17,0,196,239,9,0,16,143,223,239,0,7
db 16,23,239,240,9,7,209,0,227,246,0,4,0,0,0,0
db 0,0,0,0,17,2,243,239,7,5,16,161,215,239,0,3
db 16,30,229,255,6,2,209,0,227,255,0,0,0,0,0,0
db 0,0,0,0,1,30,255,239,6,0,2,0,255,239,0,0
db 1,18,240,246,7,2,2,0,244,245,0,0,0,0,0,0
db 0,0,0,0,32,28,255,255,1,0,32,23,243,255,0,2
db 35,0,243,255,1,0,34,3,255,255,0,0,0,0,0,0
db 0,0,0,0,1,28,255,247,1,0,1,30,244,247,0,2
db 1,14,242,255,0,0,2,1,245,255,0,0,0,0,0,0
db 0,0,0,0,1,28,255,247,1,0,1,30,244,247,0,2
db 1,78,242,255,0,0,2,0,245,255,0,0,0,0,0,0
db 0,0,0,0,0,33,245,239,14,2,0,29,245,239,0,2
db 0,144,243,239,14,0,0,0,245,249,0,0,0,0,0,0
db 0,0,0,0,1,25,255,247,1,0,1,19,244,247,0,2
db 1,83,242,255,0,0,2,1,245,255,0,0,0,0,0,0
db 0,0,0,0,18,31,81,242,14,0,17,0,80,246,0,1
db 18,64,79,255,15,0,18,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,31,81,210,14,0,17,0,80,211,0,1
db 19,64,79,255,15,0,19,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,30,81,242,14,0,17,0,80,249,0,1
db 17,0,79,255,15,0,17,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,31,80,210,14,0,17,0,81,211,0,1
db 16,147,79,255,15,3,18,23,95,255,0,2,0,0,0,0
db 0,0,0,0,209,30,66,243,14,4,209,0,64,244,0,1
db 210,7,79,255,15,3,209,28,79,255,0,2,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,38,223,255,0,1
db 1,28,246,255,0,1,1,0,181,245,0,0,0,0,0,0
db 0,0,0,0,16,41,143,223,0,1,16,41,161,210,0,0
db 18,41,209,210,0,0,16,6,146,210,0,0,0,0,0,0
db 0,0,0,48,17,0,244,246,7,0,18,0,252,253,0,0
db 18,30,254,255,7,0,17,0,252,255,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,241,3,64,243,0,0,0,0,0,0
db 0,0,0,0,49,30,47,255,14,0,49,30,47,255,0,0
db 49,19,32,240,15,1,241,3,32,244,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,240,1,64,243,0,0,0,0,0,0
db 0,0,0,0,0,7,79,255,6,0,0,33,79,255,0,1
db 2,19,68,198,7,2,1,8,68,198,0,0,0,0,0,0
db 0,0,0,0,80,23,127,255,0,1,80,69,127,255,0,4
db 80,82,128,255,1,4,209,1,113,255,0,0,0,0,0,0
db 0,0,0,0,17,18,79,255,0,4,17,87,79,255,0,4
db 17,75,66,242,1,2,17,3,65,243,0,0,0,0,0,0
db 0,0,0,0,192,0,95,255,0,0,192,38,79,255,0,5
db 192,19,64,240,1,2,49,0,81,244,0,0,0,0,0,0
db 0,0,0,0,18,192,255,251,1,0,18,192,255,253,0,2
db 18,192,252,253,1,3,17,0,196,105,0,4,0,0,0,0
db 0,0,0,0,1,29,127,255,14,2,1,28,85,249,0,1
db 1,16,114,239,14,1,1,4,130,252,0,0,0,0,0,0
db 0,0,0,0,1,26,241,255,14,0,2,1,115,255,0,0
db 0,0,255,255,15,1,128,0,127,255,0,2,0,0,0,0
db 0,0,0,0,1,33,241,255,14,0,2,0,116,255,0,0
db 1,158,255,255,15,1,128,0,87,247,0,2,0,0,0,0
db 0,0,0,0,208,25,255,255,6,2,16,28,78,253,0,2
db 18,20,64,215,7,1,81,3,64,216,0,0,0,0,0,0
db 0,0,0,0,1,29,241,255,14,0,2,0,116,255,0,0
db 0,94,255,255,15,1,128,0,87,247,0,2,0,0,0,0
db 0,0,0,0,1,38,127,255,14,2,1,30,116,255,0,1
db 1,20,114,255,14,1,1,0,114,255,0,0,0,0,0,0
db 0,0,0,0,1,29,127,223,14,2,1,92,116,249,0,1
db 1,18,112,239,14,1,2,3,114,252,0,0,0,0,0,0
db 0,0,0,0,1,40,127,255,14,2,1,40,85,255,0,1
db 3,83,114,231,14,1,1,1,129,248,0,0,0,0,0,0
db 0,0,0,0,209,58,83,135,7,3,17,31,64,135,0,2
db 17,23,64,167,6,1,81,2,64,168,0,0,0,0,0,0
db 0,0,0,0,209,58,83,135,7,3,17,31,64,135,0,2
db 17,23,64,167,6,1,82,2,64,168,0,0,0,0,0,0
db 0,0,0,0,128,40,255,255,15,0,128,51,255,255,0,0
db 65,72,242,249,14,0,146,0,82,249,0,0,0,0,0,0
db 0,0,0,0,128,40,255,255,15,0,128,51,255,255,0,0
db 65,8,242,249,14,0,146,0,82,249,0,0,0,0,0,0
db 0,0,0,0,16,33,95,255,14,0,16,33,95,255,0,1
db 17,15,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,1,28,241,255,14,0,2,5,115,255,0,0
db 0,64,255,255,15,1,128,0,127,255,0,2,0,0,0,0
db 0,0,0,0,16,33,95,255,14,0,16,33,95,255,0,1
db 17,15,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,17,82,95,253,14,0,17,97,95,253,0,0
db 18,151,80,235,15,1,16,2,80,248,0,0,0,0,0,0
db 0,0,0,0,2,94,159,255,1,0,2,83,114,253,0,0
db 1,87,115,204,0,0,2,2,114,188,0,0,0,0,0,0
db 0,0,0,0,1,64,95,191,4,3,1,97,95,255,0,2
db 1,77,82,240,5,2,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,1,82,111,205,0,2,1,102,111,205,0,1
db 1,72,98,207,1,2,1,2,98,207,0,0,0,0,0,0
db 0,0,0,0,1,83,111,254,0,0,1,72,109,254,0,0
db 1,83,97,252,1,1,65,0,97,252,0,0,0,0,0,0
db 0,0,0,0,2,105,95,191,4,0,1,155,95,255,0,2
db 1,79,97,255,5,1,17,0,65,255,0,0,0,0,0,0
db 0,0,0,0,129,64,255,255,0,0,129,75,255,255,0,1
db 193,91,146,246,1,3,193,0,146,247,0,0,0,0,0,0
db 0,0,0,0,0,158,60,255,6,2,2,158,60,254,0,1
db 1,158,2,255,7,4,2,0,98,255,0,0,0,0,0,0
db 0,0,0,0,145,78,95,253,14,2,145,83,95,253,0,0
db 146,85,80,235,15,1,145,0,80,248,0,0,0,0,0,0
db 0,0,0,0,16,8,95,255,14,6,0,41,95,255,0,6
db 6,192,255,255,15,6,1,5,242,246,0,6,0,0,0,0
db 0,0,0,0,16,1,255,255,14,0,16,0,255,255,0,3
db 18,0,255,226,14,0,16,0,144,249,0,3,0,0,0,0
db 0,0,0,0,32,33,127,191,4,7,32,33,127,191,0,6
db 33,19,115,249,5,5,226,1,115,249,0,0,0,0,0,0
db 0,0,0,0,32,30,159,191,14,7,32,30,159,191,0,6
db 33,19,147,249,15,5,226,1,147,249,0,0,0,0,0,0
db 0,0,0,0,16,30,79,255,14,0,16,5,79,255,0,7
db 1,94,64,247,15,7,17,0,65,247,0,0,0,0,0,0
db 0,0,0,0,2,98,108,191,4,3,2,91,108,255,0,2
db 2,84,99,250,5,2,17,64,96,250,0,0,0,0,0,0
db 0,0,0,0,16,30,255,255,14,0,16,30,255,255,0,7
db 1,94,240,247,15,7,17,0,65,247,0,0,0,0,0,0
db 0,0,0,0,16,18,255,255,14,2,16,17,255,169,0,2
db 1,68,243,231,15,1,17,0,240,198,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,4,2,32,28,255,255,0,2
db 33,24,242,245,5,2,225,0,242,245,0,0,0,0,0,0
db 0,0,0,0,32,30,95,255,4,2,32,30,95,255,0,2
db 34,94,82,245,5,2,225,0,82,245,0,0,0,0,0,0
db 0,0,0,0,1,25,83,245,10,1,3,18,83,229,0,0
db 1,8,83,229,11,1,129,0,83,245,0,0,0,0,0,0
db 0,0,0,0,17,28,63,255,0,0,17,28,255,255,0,3
db 18,28,50,245,0,2,145,0,49,229,0,0,0,0,0,0
db 0,0,0,0,18,107,255,251,0,2,18,171,255,251,0,3
db 18,146,66,245,0,2,145,0,65,245,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,241,3,64,243,0,0,0,0,0,0
db 0,0,0,0,2,40,95,239,14,0,1,28,95,239,0,0
db 1,22,81,233,15,2,1,0,81,233,0,0,0,0,0,0
db 0,0,0,0,17,33,49,241,14,0,210,0,50,241,0,1
db 81,37,63,255,15,0,209,0,20,255,0,0,0,0,0,0
db 0,0,0,0,0,33,207,237,14,1,1,33,252,237,0,0
db 6,33,245,229,15,2,2,3,196,228,0,0,0,0,0,0
db 0,0,0,0,0,0,111,239,14,1,0,41,111,239,0,0
db 2,30,99,226,15,2,1,1,96,229,0,0,0,0,0,0
db 0,0,0,0,5,33,207,239,14,0,1,33,255,239,0,0
db 1,72,244,231,15,1,1,0,195,229,0,0,0,0,0,0
db 0,0,0,0,0,28,207,238,14,0,0,28,255,238,0,2
db 1,18,244,228,15,2,1,0,244,244,0,0,0,0,0,0
db 0,0,0,0,16,1,255,255,10,0,16,1,255,255,0,0
db 17,94,241,242,10,3,209,0,242,244,0,0,0,0,0,0
db 0,0,0,0,18,31,33,245,14,4,209,3,34,245,0,1
db 82,0,3,245,15,7,209,0,34,245,0,4,0,0,0,0
db 0,0,0,0,20,0,255,255,14,2,210,8,255,253,0,1
db 80,192,244,245,15,2,209,0,243,245,0,0,0,0,0,0
db 0,0,0,0,209,29,66,243,14,4,209,0,64,244,0,1
db 210,3,79,255,15,3,209,29,79,255,0,2,0,0,0,0
db 0,0,0,0,129,72,253,254,14,4,129,94,254,254,0,3
db 130,13,244,244,15,1,193,5,180,246,0,0,0,0,0,0
db 0,0,0,0,131,102,159,255,14,2,195,83,159,255,0,0
db 131,81,149,245,15,0,193,0,148,245,0,0,0,0,0,0
db 0,0,0,0,0,50,244,148,1,0,3,22,244,7,0,4
db 2,37,243,6,0,0,192,0,243,5,0,3,0,0,0,0
db 0,0,0,0,128,128,255,255,15,2,131,24,255,255,0,3
db 130,146,243,244,14,1,129,0,244,245,0,0,0,0,0,0
db 0,0,0,0,128,0,255,255,1,0,131,82,255,38,0,2
db 129,28,245,246,0,0,129,0,244,245,0,0,0,0,0,0
db 0,0,0,0,49,38,80,255,14,4,49,0,64,255,0,5
db 48,25,255,255,15,2,177,0,85,255,0,5,0,0,0,0
db 0,0,0,0,49,28,242,255,14,4,49,3,66,255,0,5
db 48,28,242,255,15,2,178,0,82,255,0,0,0,0,0,0
db 0,0,0,0,17,97,95,255,14,0,17,97,95,255,0,1
db 17,11,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,0,0,15,255,0,0,0,0,15,255,0,0
db 2,0,5,245,1,0,2,0,245,245,0,0,0,0,0,0
db 0,0,0,0,13,116,242,243,0,0,12,94,242,245,0,1
db 6,200,242,245,0,1,2,0,244,214,0,0,0,0,0,0
db 0,0,0,0,0,0,255,239,0,0,0,192,255,239,0,0
db 5,20,244,230,1,2,130,0,246,229,0,0,0,0,0,0
db 0,0,0,0,1,3,255,255,1,0,2,19,246,255,0,0
db 1,3,248,245,1,0,129,0,213,245,0,0,0,0,0,0
db 0,0,0,0,0,64,255,255,0,0,0,192,252,255,0,7
db 0,0,252,83,1,5,0,0,196,38,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,0,252,255,0,2
db 0,0,252,83,1,2,3,0,196,38,0,0,0,0,0,0
db 0,0,0,0,16,64,255,255,1,3,16,64,255,255,0,1
db 16,64,249,249,1,1,17,0,148,245,0,6,0,0,0,0
db 0,0,0,0,0,20,240,255,14,0,0,2,240,255,0,0
db 0,2,240,255,14,0,0,5,63,255,0,0,0,0,0,0
db 0,0,0,0,49,30,66,255,15,0,49,211,66,255,0,2
db 48,19,50,255,15,2,40,8,77,255,0,0,0,0,0,0
db 0,0,0,0,4,5,73,255,14,0,2,69,153,255,0,0
db 2,5,150,255,14,1,1,5,66,159,0,0,0,0,0,0
db 0,0,0,0,0,0,240,241,14,0,0,2,240,241,0,0
db 0,2,240,241,14,0,0,8,34,242,0,0,0,0,0,0
db 0,0,0,0,192,0,13,255,15,0,192,0,14,207,0,1
db 195,0,13,255,15,1,195,0,66,251,0,0,0,0,0,0
db 0,0,0,0,15,18,204,255,1,5,15,236,252,255,0,5
db 7,151,252,17,0,5,6,0,252,5,0,0,0,0,0,0
db 0,0,0,0,2,28,159,255,14,0,2,33,31,255,0,0
db 0,0,145,241,14,0,1,0,50,50,0,0,0,0,0,0
db 0,0,0,208,0,0,240,241,14,0,0,8,242,241,0,0
db 0,8,112,241,14,0,0,13,114,242,0,0,0,0,0,0
db 0,0,0,0,0,64,255,255,0,0,0,192,252,255,0,6
db 0,0,252,83,1,4,0,0,196,38,0,0,0,0,0,0
db 0,0,0,0,0,0,11,0,168,214,76,69,0,0,0,6
db 0,0,0,0,0,0,11,0,170,210,200,183,0,0,0,6
db 0,0,0,0,38,0,0,0,240,250,240,183,3,3,14,6
db 0,0,0,0,16,194,7,35,247,224,245,65,2,2,130,7
db 0,0,0,0,242,241,10,56,136,173,244,136,2,2,2,7
db 0,0,0,0,208,194,129,35,166,224,246,65,2,2,129,7
db 0,0,0,0,64,194,0,35,245,224,56,65,0,2,5,8
db 0,0,0,0,1,194,3,35,184,224,181,65,1,2,125,10
db 0,0,0,0,64,194,0,35,245,224,56,65,0,2,241,8
db 0,0,0,0,1,179,8,193,136,24,165,80,1,0,163,10
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,131,8
db 0,0,0,0,1,179,9,193,134,24,165,80,1,0,163,10
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,3,8
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,5,8
db 0,0,0,0,4,194,12,35,197,224,246,65,0,2,5,9
db 0,0,0,0,1,194,0,35,198,224,152,65,0,2,5,8
db 0,0,0,0,1,194,130,35,246,224,213,65,1,2,131,10
db 0,0,0,0,3,191,9,255,227,208,151,80,0,0,187,10
db 0,0,0,0,14,191,7,255,181,209,21,80,1,0,187,10
db 0,0,0,0,1,191,7,193,119,209,115,80,1,0,187,10
db 0,0,0,0,14,241,199,56,149,173,120,142,0,2,2,9
db 0,0,0,0,1,191,0,255,248,210,182,80,1,0,186,10
db 0,0,0,0,10,194,199,35,149,224,120,65,0,2,124,9
db 0,0,0,0,1,191,7,193,249,212,181,80,0,0,187,9
db 0,0,0,0,209,194,5,35,231,224,101,65,1,2,157,9
db 0,0,0,0,1,254,0,56,231,169,148,130,0,2,3,8
db 0,0,0,0,1,191,0,255,231,216,148,80,0,0,187,8
db 0,0,0,0,1,191,0,255,150,216,103,80,0,0,186,8
db 0,0,0,0,1,191,0,255,180,218,38,80,0,0,186,8
db 0,0,0,0,1,191,0,193,180,219,38,80,0,0,186,8
db 0,0,0,0,149,19,129,0,231,149,1,101,0,0,14,6
db 0,0,0,0,149,19,129,0,231,149,1,101,0,0,14,6
db 0,0,0,0,16,191,0,193,150,222,103,80,0,0,186,9
db 0,0,0,0,17,191,0,255,150,223,103,80,0,0,186,9
db 0,0,0,0,0,191,14,193,88,208,220,80,2,0,186,7
db 0,0,0,0,0,191,14,255,90,210,214,80,2,0,186,7
db 0,0,0,0,82,191,7,193,73,211,4,80,3,0,187,8
db 0,0,0,0,82,191,7,193,65,212,2,80,3,0,187,8
db 0,0,0,0,0,191,14,255,90,213,214,80,1,0,186,7
db 0,0,0,0,16,191,14,193,83,214,159,80,1,0,186,7
db 0,0,0,0,17,254,0,56,245,169,117,128,0,2,2,8
db 0,0,0,0,4,194,0,35,248,224,182,65,1,2,3,8
db 0,0,0,0,4,194,0,35,248,224,183,65,1,2,3,8
db 0,0,0,0,1,191,11,193,94,216,220,80,1,0,186,7
db 0,0,0,0,0,191,7,193,92,218,220,80,1,0,186,7
db 0,0,0,0,197,213,79,0,242,244,96,122,0,0,8,6
db 0,0,0,0,197,213,79,0,242,242,96,114,0,0,8,6
db 0,0,0,0,128,129,130,131,132,0,143,135,143,137,143,139
db 143,143,142,143,144,0,0,147,0,160,0,0,0,153,154,155
db 156,157,143,143,160,161,162,163,164,165,166,0,168,0,0,0
db 0,0,0,0,47,36,67,60,60,60,48,60,52,60,55,60
db 60,64,60,67,60,60,60,60,60,48,60,60,60,67,62,67
db 67,60,60,55,53,48,60,60,79,79,60,60,91,60,53,60
db 60,79,79,0,48,48,48,48,48,48,48,48,48,48,48,48
db 48,48,48,48,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,32
db 33,34,32,33,34,48,52,50,53,49,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,255,255,255,255,255,255,255,255,255,255,255,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255
db 255,255,255,255,255,255,255,255,255,192,193,194,192,193,194,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,16,8,4,2,1,6,7,8,8,7,8,10
db 9,13,166,167,168,168,167,0,0,193,255,240,255,248,255,250
db 255,252,255,253,255,254,255,255,255,0,0,2,0,4,0,5
db 0,6,0,7,0,8,0,9,0,10,0,12,0,10,7,64
db 136,29,118,29,233,29,32,33,34,35,36,37,40,41,42,43
db 44,45,48,49,50,51,52,53
driver ends
songs_midi segment READONLY para ; The para isn't needed because it's the default, but why not keep it.
; On the other hand, the song file doesn't need to have offest 0, but was put on another segment in case more songs
; want to be used, to exist space for them - since every segment can only have 64 kB of data.
; IT would be possible to put more sons, it would be just open the files, read and put in an array, and send to the Sound
; Blaster for it to read that, but more time would be needed.
queen_i_want_to_break_free:
db 77,84,104,100,0,0,0,6,0,1,0,15,0,240,77,84
db 114,107,0,0,0,19,0,255,88,4,4,2,24,8,0,255
db 81,3,8,122,35,0,255,47,0,77,84,114,107,0,0,0
db 138,0,255,3,12,83,111,102,116,32,75,97,114,97,111,107
db 101,0,255,1,19,64,75,77,73,68,73,32,75,65,82,65
db 79,75,69,32,70,73,76,69,0,255,1,6,64,86,48,49
db 48,48,0,255,1,24,64,73,87,114,105,116,116,101,110,32
db 98,121,32,74,111,104,110,32,68,101,97,99,111,110,0,255
db 1,29,64,73,77,73,68,73,32,102,105,108,101,32,98,121
db 32,84,114,105,115,116,97,32,76,121,99,111,115,107,121,0
db 255,1,20,64,73,75,65,82,32,102,105,108,101,32,98,121
db 32,77,97,114,107,32,66,0,255,47,0,77,84,114,107,0
db 0,8,161,0,255,3,5,87,111,114,100,115,0,255,1,6
db 64,76,69,78,71,76,0,255,1,22,64,84,73,32,87,97
db 110,116,32,116,111,32,66,114,101,97,107,32,70,114,101,101
db 0,255,1,7,64,84,81,85,69,69,78,153,40,255,1,3
db 92,73,32,120,255,1,5,119,97,110,116,32,129,36,255,1
db 3,116,111,32,129,38,255,1,6,98,114,101,97,107,32,129
db 22,255,1,5,102,114,101,101,32,120,255,1,0,137,48,255
db 1,3,47,73,32,120,255,1,5,119,97,110,116,32,129,36
db 255,1,3,116,111,32,129,38,255,1,6,98,114,101,97,107
db 32,129,82,255,1,4,102,114,101,101,137,108,255,1,3,47
db 73,32,120,255,1,5,119,97,110,116,32,129,36,255,1,3
db 116,111,32,129,38,255,1,6,98,114,101,97,107,32,129,22
db 255,1,5,102,114,101,101,32,129,36,255,1,5,102,114,111
db 109,32,129,38,255,1,5,121,111,117,114,32,129,22,255,1
db 4,108,105,101,115,129,36,255,1,8,47,89,111,117,39,114
db 101,32,129,38,255,1,3,115,111,32,130,58,255,1,5,115
db 101,108,102,32,129,38,255,1,10,115,97,116,105,115,102,105
db 101,100,32,74,255,1,0,129,68,255,1,0,120,255,1,3
db 47,73,32,120,255,1,6,100,111,110,39,116,32,120,255,1
db 5,110,101,101,100,32,130,104,255,1,0,60,255,1,0,60
db 255,1,4,121,111,117,32,120,255,1,0,133,80,255,1,6
db 47,73,39,118,101,32,120,255,1,4,103,111,116,32,129,36
db 255,1,3,116,111,32,129,38,255,1,6,98,114,101,97,107
db 32,129,22,255,1,5,102,114,101,101,32,120,255,1,0,60
db 255,1,0,139,92,255,1,5,47,71,111,100,32,129,112,255
db 1,6,107,110,111,119,115,32,129,52,255,1,0,60,255,1
db 0,133,80,255,1,5,47,71,111,100,32,129,36,255,1,6
db 107,110,111,119,115,32,129,38,255,1,2,73,32,129,22,255
db 1,5,119,97,110,116,32,129,36,255,1,3,116,111,32,129
db 38,255,1,6,98,114,101,97,107,32,129,22,255,1,5,102
db 114,101,101,32,129,52,255,1,0,136,116,255,1,6,92,73
db 39,118,101,32,120,255,1,7,102,97,108,108,101,110,32,129
db 52,255,1,0,129,52,255,1,3,105,110,32,120,255,1,5
db 108,111,118,101,32,120,255,1,0,137,48,255,1,6,47,73
db 39,118,101,32,120,255,1,7,102,97,108,108,101,110,32,129
db 52,255,1,0,129,52,255,1,3,105,110,32,120,255,1,5
db 108,111,118,101,32,129,36,255,1,4,102,111,114,32,129,38
db 255,1,4,116,104,101,32,129,22,255,1,6,102,105,114,115
db 116,32,129,36,255,1,4,116,105,109,101,129,38,255,1,5
db 47,65,110,100,32,129,22,255,1,5,116,104,105,115,32,129
db 36,255,1,5,116,105,109,101,32,129,38,255,1,2,73,32
db 129,22,255,1,5,107,110,111,119,32,129,36,255,1,5,105
db 116,39,115,32,129,38,255,1,4,102,111,114,32,129,22,255
db 1,5,114,101,97,108,32,130,104,255,1,0,60,255,1,0
db 60,255,1,0,120,255,1,0,120,255,1,0,132,88,255,1
db 6,47,73,39,118,101,32,120,255,1,7,102,97,108,108,101
db 110,32,120,255,1,0,60,255,1,3,105,110,32,129,52,255
db 1,6,108,111,118,101,44,32,129,112,255,1,0,60,255,1
db 0,132,28,255,1,4,121,101,97,104,135,64,255,1,5,47
db 71,111,100,32,129,112,255,1,6,107,110,111,119,115,32,129
db 52,255,1,0,60,255,1,0,133,80,255,1,5,47,71,111
db 100,32,129,36,255,1,6,107,110,111,119,115,32,129,38,255
db 1,5,73,39,118,101,32,129,22,255,1,7,102,97,108,108
db 101,110,32,129,36,255,1,0,129,38,255,1,3,105,110,32
db 74,255,1,5,108,111,118,101,32,129,68,255,1,0,60,255
db 1,0,60,255,1,0,140,24,255,1,6,92,73,116,39,115
db 32,120,255,1,8,115,116,114,97,110,103,101,32,131,96,255
db 1,4,98,117,116,32,120,255,1,5,105,116,39,115,32,129
db 112,255,1,5,116,114,117,101,32,129,112,255,1,0,60,255
db 1,0,131,36,255,1,3,47,73,32,131,96,255,1,6,99
db 97,110,39,116,32,120,255,1,4,103,101,116,32,120,255,1
db 5,111,118,101,114,32,120,255,1,0,120,255,1,0,60,255
db 1,4,116,104,101,32,60,255,1,4,119,97,121,32,120,255
db 1,4,121,111,117,32,120,255,1,5,108,111,118,101,32,120
db 255,1,3,109,101,32,120,255,1,5,108,105,107,101,32,120
db 255,1,4,121,111,117,32,60,255,1,3,100,111,32,60,255
db 1,0,129,112,255,1,5,47,66,117,116,32,120,255,1,2
db 73,32,120,255,1,5,104,97,118,101,32,129,36,255,1,3
db 116,111,32,129,38,255,1,3,98,101,32,129,22,255,1,4
db 115,117,114,101,129,112,255,1,6,47,87,104,101,110,32,120
db 255,1,2,73,32,120,255,1,5,119,97,108,107,32,129,36
db 255,1,4,111,117,116,32,129,38,255,1,5,116,104,97,116
db 32,129,22,255,1,5,100,111,111,114,32,60,255,1,0,60
db 255,1,0,60,255,1,0,131,36,255,1,4,47,79,104,32
db 120,255,1,4,104,111,119,32,120,255,1,2,73,32,120,255
db 1,5,119,97,110,116,32,129,36,255,1,3,116,111,32,129
db 38,255,1,3,98,101,32,129,22,255,1,6,102,114,101,101
db 44,32,130,104,255,1,5,98,97,98,121,32,120,255,1,0
db 132,88,255,1,4,47,79,104,32,120,255,1,4,104,111,119
db 32,120,255,1,2,73,32,120,255,1,5,119,97,110,116,32
db 129,112,255,1,3,116,111,32,120,255,1,3,98,101,32,120
db 255,1,5,102,114,101,101,32,120,255,1,0,60,255,1,0
db 133,20,255,1,4,47,79,104,32,130,104,255,1,4,104,111
db 119,32,120,255,1,2,73,32,120,255,1,5,119,97,110,116
db 32,129,112,255,1,3,116,111,32,120,255,1,6,98,114,101
db 97,107,32,60,255,1,0,129,52,255,1,4,102,114,101,101
db 227,48,255,1,5,92,66,117,116,32,120,255,1,5,108,105
db 102,101,32,129,36,255,1,6,115,116,105,108,108,32,129,38
db 255,1,5,103,111,101,115,32,129,22,255,1,3,111,110,32
db 120,255,1,0,137,48,255,1,3,47,73,32,120,255,1,6
db 99,97,110,39,116,32,120,255,1,4,103,101,116,32,120,255
db 1,5,117,115,101,100,32,120,255,1,3,116,111,32,120,255
db 1,7,108,105,118,105,110,103,32,60,255,1,0,60,255,1
db 8,119,105,116,104,111,117,116,32,60,255,1,0,129,52,255
db 1,8,47,76,105,118,105,110,103,32,60,255,1,0,60,255
db 1,8,119,105,116,104,111,117,116,32,60,255,1,0,129,52
db 255,1,8,47,76,105,118,105,110,103,32,60,255,1,0,60
db 255,1,8,119,105,116,104,111,117,116,32,60,255,1,0,120
db 255,1,4,121,111,117,32,120,255,1,3,98,121,32,131,36
db 255,1,3,109,121,32,120,255,1,5,115,105,100,101,32,120
db 255,1,0,120,255,1,0,137,48,255,1,3,47,73,32,120
db 255,1,6,100,111,110,39,116,32,120,255,1,5,119,97,110
db 116,32,120,255,1,3,116,111,32,120,255,1,5,108,105,118
db 101,32,120,255,1,6,97,108,111,110,101,32,120,255,1,0
db 120,255,1,0,120,255,1,0,120,255,1,0,133,80,255,1
db 6,47,72,101,121,44,32,132,88,255,1,4,71,111,100,32
db 129,112,255,1,5,107,110,111,119,115,137,48,255,1,5,47
db 71,111,116,32,120,255,1,3,116,111,32,120,255,1,5,109
db 97,107,101,32,120,255,1,3,105,116,32,120,255,1,3,111
db 110,32,120,255,1,3,109,121,32,129,112,255,1,3,111,119
db 110,137,48,255,1,4,47,83,111,32,120,255,1,5,98,97
db 98,121,32,120,255,1,0,120,255,1,6,99,97,110,39,116
db 32,120,255,1,4,121,111,117,32,120,255,1,4,115,101,101
db 32,120,255,1,0,129,112,255,1,0,135,64,255,1,6,47
db 73,39,118,101,32,120,255,1,4,103,111,116,32,129,36,255
db 1,3,116,111,32,129,38,255,1,6,98,114,101,97,107,32
db 129,22,255,1,5,102,114,101,101,32,129,52,255,1,0,135
db 124,255,1,6,92,73,39,118,101,32,129,112,255,1,4,103
db 111,116,32,129,36,255,1,3,116,111,32,129,38,255,1,6
db 98,114,101,97,107,32,129,82,255,1,5,102,114,101,101,32
db 60,255,1,0,60,255,1,0,136,116,255,1,3,47,73,32
db 120,255,1,5,119,97,110,116,32,129,36,255,1,3,116,111
db 32,129,38,255,1,6,98,114,101,97,107,32,131,6,255,1
db 4,102,114,101,101,134,72,255,1,6,47,89,101,97,104,32
db 60,255,1,0,149,12,255,1,3,92,73,32,120,255,1,6
db 119,97,110,116,44,32,129,112,255,1,2,73,32,120,255,1
db 6,119,97,110,116,44,32,129,112,255,1,2,73,32,120,255
db 1,6,119,97,110,116,44,32,129,112,255,1,2,73,32,120
db 255,1,5,119,97,110,116,32,129,112,255,1,3,116,111,32
db 120,255,1,6,98,114,101,97,107,32,138,40,255,1,4,102
db 114,101,101,157,8,255,1,5,47,89,101,97,104,144,112,255
db 1,3,47,73,32,132,12,255,1,5,119,97,110,116,32,129
db 38,255,1,3,116,111,32,74,255,1,6,98,114,101,97,107
db 32,76,255,1,5,102,114,101,101,32,129,112,255,1,0,131
db 20,255,1,4,47,84,111,32,129,38,255,1,6,98,114,101
db 97,107,32,129,22,255,1,4,102,114,101,101,136,116,255,1
db 6,47,87,97,110,116,32,60,255,1,3,116,111,32,60,255
db 1,6,98,114,101,97,107,32,60,255,1,4,102,114,101,101
db 0,255,47,0,77,84,114,107,0,0,7,180,0,255,3,5
db 86,111,99,97,108,0,196,82,153,40,148,71,64,90,71,0
db 30,76,64,129,6,76,0,30,78,64,129,6,78,0,32,78
db 64,129,6,78,0,16,78,64,120,80,64,30,78,0,60,80
db 0,136,86,71,64,90,71,0,30,76,64,129,6,76,0,30
db 78,64,129,6,78,0,32,81,64,129,52,81,0,30,80,64
db 131,6,80,0,134,102,71,64,90,71,0,30,76,64,129,6
db 76,0,30,78,64,129,6,78,0,32,78,64,129,6,78,0
db 16,81,64,129,6,81,0,30,80,64,129,6,80,0,32,78
db 64,129,6,78,0,16,81,64,129,6,81,0,30,80,64,129
db 6,80,0,32,78,64,129,6,78,0,129,52,81,64,129,6
db 81,0,32,80,64,44,80,0,30,78,64,44,78,0,129,24
db 81,64,90,81,0,30,80,64,90,80,0,30,78,64,90,78
db 0,30,78,64,130,104,80,64,14,78,0,46,80,0,0,78
db 64,30,78,0,30,76,64,120,73,64,44,76,0,130,30,73
db 0,131,6,78,64,90,78,0,30,78,64,129,6,78,0,30
db 76,64,129,6,76,0,32,73,64,129,6,73,0,16,71,64
db 120,69,64,14,71,0,46,68,64,14,69,0,130,0,68,0
db 137,78,80,64,0,76,64,129,82,76,0,0,80,0,30,75
db 64,0,78,64,129,52,73,64,0,76,64,14,78,0,0,75
db 0,46,71,64,0,75,64,14,73,0,0,76,0,76,71,0
db 0,75,0,132,118,81,64,129,6,81,0,30,80,64,129,6
db 80,0,32,81,64,129,6,81,0,16,80,64,129,6,80,0
db 30,76,64,129,6,76,0,32,78,64,129,22,76,64,30,78
db 0,120,76,0,30,76,64,130,14,76,0,134,102,71,64,90
db 71,0,30,76,64,129,22,76,0,30,78,64,90,78,0,90
db 78,64,0,81,64,90,81,0,0,78,0,30,78,64,0,81
db 64,120,80,64,0,83,64,14,81,0,0,78,0,76,80,0
db 0,83,0,136,86,71,64,90,71,0,30,76,64,129,22,76
db 0,30,78,64,90,78,0,90,78,64,90,78,0,30,81,64
db 129,6,81,0,30,80,64,129,6,80,0,32,81,64,129,6
db 81,0,16,80,64,129,6,80,0,30,76,64,129,6,76,0
db 32,71,64,129,6,71,0,16,81,64,129,6,81,0,30,80
db 64,129,6,80,0,32,81,64,129,6,81,0,16,80,64,129
db 6,80,0,30,78,64,129,6,78,0,32,78,64,129,6,78
db 0,16,78,64,0,74,64,130,104,80,64,0,76,64,14,74
db 0,0,78,0,46,78,64,0,73,64,14,80,0,0,76,0
db 46,76,64,0,69,64,14,78,0,0,73,0,106,73,64,14
db 76,0,106,64,64,30,69,0,129,52,64,0,0,73,0,131
db 6,78,64,90,78,0,30,78,64,90,78,0,30,76,64,30
db 76,0,30,73,64,129,22,73,0,30,71,64,129,112,69,64
db 14,71,0,46,69,0,0,68,64,30,68,0,131,126,68,64
db 90,68,0,134,102,80,64,0,76,64,129,82,76,0,0,80
db 0,30,78,64,0,75,64,129,22,75,0,0,78,0,30,76
db 64,0,73,64,60,75,64,0,71,64,14,73,0,0,76,0
db 76,75,0,0,71,0,132,118,81,64,129,6,81,0,30,80
db 64,129,6,80,0,32,81,64,129,6,81,0,16,80,64,129
db 6,80,0,30,76,64,129,6,76,0,32,76,64,44,76,0
db 30,76,64,129,68,71,64,14,76,0,46,73,64,14,71,0
db 46,76,64,14,73,0,76,76,0,139,62,76,64,90,76,0
db 30,75,64,131,66,75,0,30,75,64,90,75,0,30,75,64
db 129,82,75,0,30,76,64,129,112,75,64,14,76,0,46,75
db 0,0,73,64,30,73,0,131,6,78,64,129,82,78,0,130
db 14,78,64,90,78,0,30,78,64,90,78,0,30,78,64,90
db 78,0,30,78,64,90,78,0,30,78,64,30,78,0,30,78
db 64,30,78,0,30,78,64,90,78,0,30,80,64,90,80,0
db 30,78,64,90,78,0,30,76,64,90,76,0,30,76,64,90
db 76,0,30,73,64,30,73,0,30,76,64,60,73,64,30,76
db 0,60,73,0,129,22,76,64,90,76,0,30,78,64,90,78
db 0,30,80,64,129,6,80,0,30,78,64,129,6,78,0,32
db 76,64,129,6,76,0,16,73,64,129,82,73,0,30,76,64
db 90,76,0,30,78,64,90,78,0,30,80,64,129,6,80,0
db 30,85,64,129,6,85,0,32,80,64,129,6,80,0,16,78
db 64,60,80,64,14,78,0,46,78,64,14,80,0,46,78,0
db 0,76,64,30,76,0,131,6,81,64,90,81,0,30,81,64
db 90,81,0,30,81,64,90,81,0,30,80,64,129,6,80,0
db 30,78,64,129,6,78,0,32,76,64,129,6,76,0,16,76
db 64,130,74,76,0,30,73,64,90,73,0,30,76,64,129,82
db 76,0,131,6,76,64,90,76,0,30,76,64,90,76,0,30
db 76,64,90,76,0,30,75,64,129,82,75,0,30,73,64,90
db 73,0,30,71,64,90,71,0,30,73,64,120,71,64,14,73
db 0,46,68,64,14,71,0,130,0,68,0,131,6,81,64,130
db 74,81,0,30,81,64,90,81,0,30,83,64,90,83,0,30
db 80,64,129,82,80,0,30,78,64,90,78,0,30,80,64,60
db 78,64,14,80,0,129,8,78,0,30,78,64,132,58,78,0
db 222,118,71,64,90,71,0,30,76,64,129,6,76,0,30,78
db 64,129,6,78,0,32,78,64,129,6,78,0,16,78,64,120
db 80,64,30,78,0,60,80,0,136,86,71,64,90,71,0,30
db 71,64,90,71,0,30,71,64,90,71,0,30,73,64,90,73
db 0,30,75,64,90,75,0,30,76,64,30,76,0,30,76,64
db 30,76,0,30,76,64,30,76,0,30,75,64,129,22,75,0
db 30,75,64,30,75,0,30,75,64,30,75,0,30,75,64,30
db 75,0,30,73,64,129,22,73,0,30,73,64,30,73,0,30
db 73,64,30,73,0,30,73,64,30,73,0,30,71,64,90,71
db 0,30,73,64,120,68,64,30,73,0,129,112,68,0,129,22
db 69,64,90,69,0,30,71,64,90,71,0,30,73,64,120,76
db 64,30,73,0,133,20,76,0,131,126,81,64,0,76,64,90
db 76,0,0,81,0,30,81,64,0,76,64,90,76,0,0,81
db 0,30,81,64,0,76,64,90,76,0,0,81,0,30,81,64
db 0,76,64,90,76,0,0,81,0,30,81,64,0,78,64,90
db 78,0,0,81,0,30,81,64,0,78,64,90,78,0,0,81
db 0,30,80,64,0,71,64,104,71,0,16,71,64,0,68,64
db 30,80,0,90,73,64,0,69,64,30,68,0,0,71,0,90
db 71,64,0,68,64,30,73,0,0,69,0,130,44,71,0,0
db 68,0,131,6,80,64,129,82,80,0,131,6,80,64,0,76
db 64,129,82,76,0,0,80,0,30,75,64,0,78,64,129,82
db 78,0,0,75,0,135,94,81,64,90,81,0,30,81,64,90
db 81,0,30,80,64,90,80,0,30,76,64,90,76,0,30,76
db 64,90,76,0,30,78,64,129,82,78,0,30,76,64,130,74
db 76,0,134,102,80,64,90,80,0,30,80,64,90,80,0,30
db 80,64,90,80,0,30,80,64,90,80,0,30,80,64,90,80
db 0,30,80,64,120,78,64,30,80,0,129,82,80,64,30,78
db 0,130,44,80,0,132,118,81,64,90,81,0,30,80,64,129
db 6,80,0,30,76,64,129,6,76,0,32,78,64,129,22,76
db 64,30,78,0,120,76,0,30,76,64,131,126,76,0,131,126
db 80,64,129,82,80,0,30,83,64,129,6,83,0,30,80,64
db 129,6,80,0,32,78,64,129,6,78,0,76,76,64,60,78
db 64,14,76,0,46,76,64,30,78,0,129,112,76,0,134,102
db 80,64,90,80,0,30,83,64,129,6,83,0,30,80,64,129
db 6,80,0,32,85,64,130,104,85,0,30,80,64,134,42,80
db 0,30,78,64,60,76,64,30,78,0,129,112,76,0,146,126
db 71,64,90,71,0,30,73,64,129,82,73,0,30,71,64,90
db 71,0,30,73,64,129,82,73,0,30,71,64,90,71,0,30
db 76,64,129,82,76,0,30,71,64,90,71,0,30,80,64,129
db 82,80,0,30,76,64,90,76,0,30,78,64,138,10,78,0
db 30,76,64,137,18,76,0,141,46,180,7,110,134,72,148,83
db 64,120,180,7,90,129,82,148,83,0,133,110,180,7,70,135
db 64,7,50,120,148,80,64,131,110,80,0,30,80,64,129,6
db 80,0,32,78,64,74,76,64,16,78,0,28,76,0,32,76
db 64,0,180,7,30,129,82,148,76,0,30,76,64,129,82,76
db 0,129,66,75,64,129,6,75,0,32,73,64,129,6,73,0
db 16,71,64,0,180,7,20,129,82,148,71,0,133,110,180,7
db 10,129,52,148,71,64,30,71,0,30,73,64,30,73,0,30
db 76,64,30,76,0,30,78,64,132,72,78,0,0,255,47,0
db 77,84,114,107,0,0,16,50,0,255,3,4,66,97,115,115
db 0,194,33,0,146,52,64,90,52,0,30,52,64,30,52,0
db 30,52,64,30,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,129,22,52,64,90,52,0,30,52,64,129,82,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,47,64,90,47,0,30,44,64,90
db 44,0,30,40,64,90,40,0,134,102,52,64,90,52,0,30
db 52,64,30,52,0,30,52,64,30,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,129,22,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,30,45,0,30,45,64,30,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,129,22,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,30,45,0,30,45,64,30
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,129,22
db 45,64,90,45,0,30,45,64,90,45,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,52,64,90,52,0,30,52,64,30,52,0,30
db 52,64,30,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,129,22,52,64,90,52,0,30,47,64,90,47,0,30,44
db 64,90,44,0,30,40,64,90,40,0,134,102,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,30,45,0,30,45,64,30,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,129,22,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,30,45,0,30,45,64,30
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,129,22
db 45,64,90,45,0,30,45,64,90,45,0,129,22,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,47
db 64,90,47,0,30,47,64,90,47,0,30,47,64,90,47,0
db 30,47,64,90,47,0,30,47,64,90,47,0,30,47,64,90
db 47,0,30,47,64,90,47,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,47,64,90,47,0,30,44,64,90,44,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,44,64,90,44
db 0,30,44,64,90,44,0,30,50,64,90,50,0,30,50,64
db 90,50,0,30,44,64,30,44,0,30,45,64,90,45,0,30
db 45,64,30,45,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,49,64,90,49,0,30,49,64,90,49
db 0,30,49,64,90,49,0,30,49,64,90,49,0,30,49,64
db 90,49,0,30,49,64,90,49,0,30,49,64,90,49,0,30
db 49,64,90,49,0,30,42,64,90,42,0,30,42,64,90,42
db 0,30,42,64,90,42,0,30,42,64,90,42,0,30,42,64
db 90,42,0,30,42,64,90,42,0,30,42,64,90,42,0,30
db 42,64,90,42,0,30,45,64,129,82,45,0,30,45,64,129
db 82,45,0,30,47,64,129,82,47,0,30,47,64,129,82,47
db 0,30,49,64,90,49,0,30,49,64,90,49,0,30,49,64
db 90,49,0,30,49,64,90,49,0,30,49,64,90,49,0,129
db 22,47,64,90,47,0,129,22,45,64,130,74,45,0,30,45
db 64,90,45,0,30,47,64,129,82,47,0,30,47,64,129,82
db 47,0,30,49,64,90,49,0,30,49,64,90,49,0,30,49
db 64,90,49,0,30,49,64,90,49,0,30,49,64,90,49,0
db 129,22,47,64,90,47,0,129,22,45,64,129,82,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,47,64,129,82
db 47,0,30,47,64,129,82,47,0,30,52,64,0,40,64,90
db 40,0,0,52,0,30,52,64,0,40,64,30,40,0,0,52
db 0,30,52,64,0,40,64,30,40,0,0,52,0,30,52,64
db 0,40,64,90,40,0,0,52,0,30,52,64,0,40,64,90
db 40,0,0,52,0,129,22,52,64,90,52,0,30,47,64,90
db 47,0,30,44,64,90,44,0,30,40,64,90,40,0,134,102
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,45,64,90,45,0,30,45,64,30,45,0,30
db 45,64,30,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,129,22,45,64,90,45,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,30,45,0
db 30,45,64,30,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,129,22,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,30,52
db 0,30,52,64,30,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,129,22,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,52,64,90,52,0,30,52,64
db 30,52,0,30,52,64,30,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,129,22,52,64,90,52,0,30,47,64,90
db 47,0,30,44,64,90,44,0,30,40,64,90,40,0,134,102
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,45,64,90,45,0,30,45,64,30,45,0,30
db 45,64,30,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,129,22,45,64,90,45,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,30,45,0
db 30,45,64,30,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,129,22,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,30,52
db 0,30,52,64,30,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,129,22,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,47,64,129,82,47,0,30,47
db 64,90,47,0,30,47,64,90,47,0,30,47,64,129,82,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,45,64
db 129,82,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,129,82,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,52,64,90,52,0,30,52,64,30,52,0,30
db 52,64,30,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,129,22,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,40,64,90,40,0,30,40,64,90,40,0
db 30,44,64,90,44,0,30,44,64,90,44,0,30,50,64,90
db 50,0,30,50,64,90,50,0,30,44,64,90,44,0,30,45
db 64,90,45,0,30,47,64,129,82,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,45,64,90,45,0,30
db 45,64,130,74,45,0,30,45,64,90,45,0,30,45,64,129
db 82,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,47,64,90,47,0,30,44,64,90,44,0
db 30,40,64,90,40,0,134,102,52,64,90,52,0,30,52,64
db 30,52,0,30,52,64,30,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,129,22,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,30,52,0,30,52,64,30,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,129,22,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,30,52,0,30,52,64,30,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,129,22,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,0,178,7,110,90,146,52,0,30,52
db 64,30,52,0,30,52,64,30,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,129,22,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,0,178,7,90
db 90,146,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,0,178,7,70,90,146,52,0,30,52,64,30,52,0
db 30,52,64,30,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,129,22,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,0,178,7,50,90,146,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,0,178
db 7,30,90,146,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,0,178,7,20,90,146,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,0,178,7,10,90,146
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,178,7,0,120,146
db 52,64,90,52,0,14,178,7,2,16,146,52,64,90,52,0
db 30,52,64,90,52,0,0,255,47,0,77,84,114,107,0,0
db 41,136,0,255,3,5,68,114,117,109,115,0,201,16,0,153
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,90,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,42,64,90,42,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,30,42,0,30,42,64,30,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,90,42,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,90,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,42,64,90,42,0,30,36,64,0,42,64,0,56,64
db 0,69,64,90,69,0,0,36,0,0,42,0,0,56,0,133
db 110,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,42,64,0,36,64,0,69,64,90
db 69,0,0,36,0,0,42,0,30,42,64,90,42,0,30,42
db 64,0,38,64,0,45,64,90,45,0,0,38,0,0,42,0
db 30,42,64,0,36,64,0,69,64,90,69,0,0,36,0,0
db 42,0,30,42,64,0,36,64,0,69,64,90,69,0,0,36
db 0,0,42,0,30,42,64,90,42,0,30,42,64,0,38,64
db 0,45,64,90,45,0,0,38,0,0,42,0,30,42,64,90
db 42,0,30,42,64,0,36,64,0,69,64,90,69,0,0,36
db 0,0,42,0,30,42,64,90,42,0,30,42,64,0,38,64
db 0,45,64,90,45,0,0,38,0,0,42,0,30,42,64,0
db 36,64,0,69,64,90,69,0,0,36,0,0,42,0,30,42
db 64,0,36,64,0,69,64,90,69,0,0,36,0,0,42,0
db 30,42,64,90,42,0,30,42,64,0,38,64,0,45,64,90
db 45,0,0,38,0,0,42,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,90,42,0,0
db 36,0,134,102,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,42,64,0,36,64,0,69,64,90,69,0,0
db 36,0,0,42,0,30,42,64,90,42,0,30,42,64,0,38
db 64,0,45,64,90,45,0,0,38,0,0,42,0,30,42,64
db 0,36,64,0,69,64,90,69,0,0,36,0,0,42,0,30
db 42,64,0,36,64,0,69,64,90,69,0,0,36,0,0,42
db 0,30,42,64,90,42,0,30,42,64,0,38,64,0,45,64
db 90,45,0,0,38,0,0,42,0,30,42,64,90,42,0,30
db 42,64,0,36,64,0,69,64,90,69,0,0,36,0,0,42
db 0,30,42,64,90,42,0,30,42,64,0,38,64,0,45,64
db 90,45,0,0,38,0,0,42,0,30,42,64,0,36,64,0
db 69,64,90,69,0,0,36,0,0,42,0,30,42,64,0,36
db 64,0,69,64,90,69,0,0,36,0,0,42,0,30,42,64
db 90,42,0,30,42,64,0,38,64,0,45,64,90,45,0,0
db 38,0,0,42,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,56,64,0,69,64,90
db 69,0,0,36,0,0,42,0,0,56,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,42,64,0,38,64,90,38,0
db 0,42,0,30,42,64,0,36,64,0,56,64,0,69,64,90
db 69,0,0,42,0,0,36,0,0,56,0,30,42,64,0,36
db 64,0,56,64,0,69,64,90,69,0,0,42,0,0,36,0
db 0,56,0,30,42,64,0,38,64,90,38,0,0,42,0,30
db 42,64,0,38,64,30,38,0,30,38,64,30,42,0,30,42
db 64,30,38,0,30,38,64,30,38,0,0,42,0,30,59,64
db 0,36,64,0,54,64,0,69,64,90,69,0,0,59,0,0
db 36,0,0,54,0,129,22,59,64,0,38,64,0,54,64,90
db 54,0,0,38,0,0,59,0,30,36,64,0,69,64,90,69
db 0,0,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,0,69
db 64,90,69,0,0,36,0,30,59,64,0,36,64,0,54,64
db 0,69,64,90,69,0,0,59,0,0,36,0,0,54,0,129
db 22,59,64,0,38,64,0,54,64,90,54,0,0,38,0,0
db 59,0,30,36,64,90,36,0,30,59,64,0,36,64,0,54
db 64,0,69,64,90,69,0,0,59,0,0,36,0,0,54,0
db 129,22,59,64,0,38,64,0,54,64,90,54,0,0,38,0
db 0,59,0,30,36,64,90,36,0,30,59,64,0,36,64,0
db 54,64,0,69,64,90,69,0,0,59,0,0,36,0,0,54
db 0,129,22,59,64,0,38,64,0,54,64,90,54,0,0,38
db 0,0,59,0,129,22,59,64,0,36,64,0,54,64,0,69
db 64,90,69,0,0,59,0,0,36,0,0,54,0,129,22,59
db 64,0,38,64,0,54,64,90,54,0,0,38,0,0,59,0
db 30,36,64,0,69,64,90,69,0,0,36,0,30,59,64,0
db 36,64,0,54,64,0,69,64,90,69,0,0,59,0,0,36
db 0,0,54,0,129,22,59,64,0,38,64,0,54,64,90,54
db 0,0,38,0,0,59,0,30,69,64,0,36,64,90,36,0
db 0,69,0,30,59,64,0,36,64,0,54,64,0,69,64,90
db 69,0,0,59,0,0,36,0,0,54,0,129,22,59,64,0
db 38,64,0,54,64,90,54,0,0,38,0,0,59,0,30,36
db 64,90,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,90,36
db 0,30,59,64,0,36,64,0,54,64,0,69,64,90,69,0
db 0,59,0,0,36,0,0,54,0,129,22,59,64,0,38,64
db 0,54,64,90,54,0,0,38,0,0,59,0,30,69,64,0
db 36,64,90,36,0,0,69,0,30,59,64,0,36,64,0,54
db 64,0,69,64,90,69,0,0,59,0,0,36,0,0,54,0
db 129,22,59,64,0,38,64,0,54,64,90,54,0,0,38,0
db 0,59,0,30,36,64,90,36,0,30,59,64,0,36,64,0
db 54,64,0,69,64,90,69,0,0,59,0,0,36,0,0,54
db 0,129,22,59,64,0,38,64,0,54,64,90,54,0,0,38
db 0,0,59,0,129,22,59,64,0,36,64,0,54,64,0,69
db 64,90,69,0,0,59,0,0,36,0,0,54,0,129,22,59
db 64,0,38,64,0,54,64,90,54,0,0,38,0,0,59,0
db 30,36,64,0,69,64,90,69,0,0,36,0,30,59,64,0
db 36,64,0,54,64,0,69,64,90,69,0,0,59,0,0,36
db 0,0,54,0,129,22,59,64,0,38,64,0,54,64,90,54
db 0,0,38,0,0,59,0,30,69,64,0,36,64,90,36,0
db 0,69,0,30,59,64,0,36,64,0,54,64,0,69,64,90
db 69,0,0,59,0,0,36,0,0,54,0,129,22,59,64,0
db 38,64,0,54,64,90,54,0,0,38,0,0,59,0,30,36
db 64,90,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,0,69
db 64,90,69,0,0,36,0,30,36,64,0,54,64,0,69,64
db 0,57,64,90,57,0,0,36,0,0,54,0,0,69,0,129
db 22,38,64,0,36,64,0,54,64,0,57,64,90,57,0,0
db 38,0,0,36,0,0,54,0,30,69,64,0,36,64,90,36
db 0,0,69,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,30
db 36,64,90,36,0,30,36,64,0,54,64,0,69,64,0,59
db 64,90,59,0,0,36,0,0,54,0,0,69,0,129,22,38
db 64,0,54,64,0,59,64,90,59,0,0,54,0,0,38,0
db 129,22,59,64,0,36,64,0,54,64,0,69,64,90,69,0
db 0,59,0,0,36,0,0,54,0,129,22,59,64,0,38,64
db 0,54,64,90,54,0,0,38,0,0,59,0,30,36,64,90
db 36,0,30,36,64,0,59,64,0,57,64,14,57,0,0,57
db 64,14,57,0,2,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,59,0,0
db 36,0,0,57,64,14,57,0,0,57,64,14,57,0,2,57
db 64,14,57,0,0,57,64,14,57,0,2,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,59
db 64,0,38,64,0,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,57,64,14
db 57,0,0,57,64,14,57,0,2,38,0,0,59,0,0,57
db 64,14,57,0,0,57,64,14,57,0,2,36,64,0,57,64
db 14,57,0,0,57,64,14,57,0,2,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,36,0,0,57,64,14,57,0,0,57,64,16,36,64
db 90,36,0,14,57,0,133,96,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,0,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,42
db 0,0,57,64,14,57,0,0,57,64,16,36,64,0,42,64
db 0,69,64,0,54,64,90,54,0,0,42,0,0,69,0,0
db 36,0,30,42,64,30,42,0,30,42,64,28,57,0,2,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,90,69,0,0,42,0,0,36,0,30
db 36,64,0,42,64,0,69,64,0,54,64,90,54,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,90,42,0,30
db 36,64,0,42,64,0,69,64,0,54,64,90,54,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,90,69,0,0,42,0,0,36
db 0,30,36,64,0,42,64,0,69,64,0,54,64,90,54,0
db 0,36,0,0,42,0,0,69,0,30,42,64,90,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,42,64,90,42
db 0,30,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,42,64,30,42,0,30
db 42,64,30,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,36,64,0,42,64,0
db 69,64,0,56,64,0,57,64,14,57,0,0,57,64,14,57
db 0,2,57,64,14,57,0,0,57,64,14,57,0,2,57,64
db 14,57,0,0,57,64,14,57,0,2,56,0,0,36,0,0
db 42,0,0,69,0,0,57,64,14,57,0,0,57,64,14,57
db 0,2,42,64,0,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,57,64,14
db 57,0,0,57,64,14,57,0,2,42,0,0,57,64,14,57
db 0,0,57,64,14,57,0,2,38,64,0,42,64,0,57,64
db 14,57,0,0,57,64,14,57,0,2,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,42,0,0,38,0,0,57,64,14,57,0,0,57,64
db 14,57,0,2,42,64,0,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,57
db 64,14,57,0,0,57,64,14,57,0,2,42,0,0,57,64
db 14,57,0,0,57,64,16,57,0,0,69,64,0,42,64,0
db 36,64,90,36,0,0,42,0,0,69,0,134,102,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,0,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,57,64,14,57,0,0,57,64,14,57,0,2,42,0
db 0,57,64,14,57,0,0,57,64,16,36,64,0,42,64,0
db 69,64,90,69,0,0,42,0,0,36,0,30,42,64,30,42
db 0,30,42,64,28,57,0,2,42,0,30,38,64,0,42,64
db 0,45,64,90,45,0,0,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,90,69,0,0,42,0,0,36,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,42,64,90,42,0,30,38,64,0,42,64,0,45,64,90
db 45,0,0,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,42,64,30,42,0,30,42,64,30,42,0,30,38,64,0
db 42,64,0,45,64,90,45,0,0,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,42,64,90,42,0,30,38,64,0,42,64,0,45
db 64,90,45,0,0,42,0,0,38,0,30,42,64,90,42,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,30,42,0,30,42
db 64,30,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,30,42,0,30,42,64,30,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,90,42,0,30,38
db 64,0,42,64,90,42,0,0,38,0,30,42,64,90,42,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,42,64,30,42,0,30,42,64,30,42,0,30,38
db 64,0,42,64,0,45,64,90,45,0,0,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,42,64,90,42,0,30,38,64,0,42,64
db 0,45,64,90,45,0,0,42,0,0,38,0,30,42,64,90
db 42,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,0,45,64,90,45,0,0,42,0,0
db 38,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,36,64,0,42,64,0,69,64,90,69,0
db 0,42,0,0,36,0,30,42,64,90,42,0,30,38,64,0
db 42,64,0,45,64,90,45,0,0,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,56,64,0,69,64,90,69,0,0,36,0,0,42
db 0,0,56,0,134,102,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,0,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,42
db 0,0,57,64,14,57,0,0,57,64,16,36,64,0,42,64
db 0,69,64,0,56,64,90,56,0,0,42,0,0,69,0,0
db 36,0,30,42,64,30,42,0,30,42,64,28,57,0,2,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,0,57,64,90,56,0,0
db 69,0,0,36,0,0,42,0,30,42,64,30,42,0,30,42
db 64,30,42,0,0,57,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,0,185,7,110,90,153,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,30,42,0,30,42
db 64,30,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,0,185,7,90,90,153,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,28,42,0,32,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,0,57,64,0,185,7,70,90,153,56,0,0,69,0,0
db 36,0,0,42,0,30,42,64,30,42,0,30,42,64,30,42
db 0,0,57,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,0,185,7,50,90,153,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,0,185,7,30,90,153,56,0,0,36,0,0,42,0,0
db 69,0,30,42,64,30,42,0,30,42,64,30,42,0,30,38
db 64,0,42,64,90,42,0,0,38,0,30,36,64,0,42,64
db 0,69,64,0,56,64,90,56,0,0,36,0,0,42,0,0
db 69,0,30,36,64,0,42,64,0,69,64,0,56,64,90,56
db 0,0,36,0,0,42,0,0,69,0,30,42,64,90,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,42,64,90
db 42,0,30,36,64,0,42,64,0,69,64,0,56,64,0,185
db 7,20,90,153,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,30,42,0,30,42,64,30,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,0,57,64,14
db 57,0,0,57,64,14,57,0,2,57,64,14,57,0,0,57
db 64,14,57,0,2,57,64,14,57,0,0,57,64,14,57,0
db 2,42,0,0,57,64,14,57,0,0,57,64,16,36,64,0
db 42,64,0,69,64,0,56,64,0,185,7,10,74,153,57,0
db 16,69,0,0,36,0,0,42,0,0,56,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,14,185,7,5
db 16,153,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,42,64,90,42,0,14
db 185,7,2,16,153,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,0,255,47,0,77,84,114,107,0,0
db 61,190,0,255,3,6,71,117,105,116,97,114,0,195,29,0
db 147,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,30,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,30,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,76,64,0,71,64,0,52,64,90,52,0,0
db 64,0,0,76,0,0,71,0,129,22,76,64,0,68,64,0
db 64,64,0,52,64,90,52,0,0,76,0,0,68,0,0,64
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,30,52,64,90,52,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,30,64,64,0,76,64,0,71,64
db 0,52,64,30,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,71,64,0,76,64,0,52,64,30,52,0,0,64
db 0,0,71,0,0,76,0,30,64,64,0,76,64,0,71,64
db 0,52,64,90,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,129,22,68,64,0,64,64,0,52
db 64,0,71,64,90,71,0,0,68,0,0,64,0,0,52,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,52,64,0,64,64,0,71
db 64,0,76,64,90,76,0,0,52,0,0,64,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,30,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,30,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,76,64,0,71,64,0,52,64,90,52,0,0
db 64,0,0,76,0,0,71,0,129,22,68,64,0,64,64,0
db 52,64,0,71,64,0,76,64,90,76,0,0,52,0,0,68
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 52,64,0,64,64,0,71,64,0,76,64,90,76,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,134
db 102,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,68,64,0
db 52,64,0,71,64,90,71,0,0,64,0,0,68,0,0,52
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,64,64
db 0,76,64,0,71,64,0,52,64,90,52,0,0,64,0,0
db 76,0,0,71,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,129,22,64
db 64,0,68,64,0,52,64,0,71,64,90,71,0,0,64,0
db 0,68,0,0,52,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,68,64,0,52,64,0,71,64,90
db 71,0,0,64,0,0,68,0,0,52,0,30,64,64,0,52
db 64,0,71,64,90,71,0,0,52,0,0,64,0,30,64,64
db 0,52,64,0,71,64,90,71,0,0,52,0,0,64,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,64,64,0,76,64,0,71,64
db 0,52,64,90,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,129,22,64,64,0,68,64,0,52
db 64,0,71,64,90,71,0,0,64,0,0,68,0,0,52,0
db 30,64,64,0,52,64,0,71,64,90,71,0,0,52,0,0
db 64,0,30,64,64,0,52,64,0,71,64,90,71,0,0,52
db 0,0,64,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,64,64,0
db 76,64,0,71,64,0,52,64,90,52,0,0,64,0,0,76
db 0,0,71,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,129,22,64,64
db 0,68,64,0,52,64,0,71,64,90,71,0,0,64,0,0
db 68,0,0,52,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,64,64,0,76,64,0,71,64,0,52,64,90,52,0
db 0,64,0,0,76,0,0,71,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,129,22,64,64,0,52,64,0,71,64,0,76,64,90,76
db 0,0,64,0,0,52,0,0,71,0,30,64,64,0,52,64
db 0,71,64,0,76,64,90,76,0,0,64,0,0,52,0,0
db 71,0,30,64,64,0,52,64,0,71,64,0,76,64,0,57
db 64,90,57,0,0,71,0,0,64,0,0,52,0,0,76,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,30,69,64,0,64,64,0,57
db 64,0,52,64,30,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,64,64,0,57,64,0,52,64,30,52,0,0
db 69,0,0,64,0,0,57,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,129,22,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,90,57,0,0,64,0
db 0,69,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,30
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,30,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,129,22,69,64,0,64,64,0,57,64,0,52,64
db 90,52,0,0,69,0,0,64,0,0,57,0,30,69,64,0
db 64,64,0,57,64,90,57,0,0,64,0,0,69,0,30,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,64,64,0,71,64,0,76,64,0
db 52,64,90,52,0,0,64,0,0,71,0,0,76,0,30,76
db 64,0,71,64,0,64,64,0,52,64,30,52,0,0,76,0
db 0,71,0,0,64,0,30,76,64,0,71,64,0,64,64,0
db 52,64,30,52,0,0,76,0,0,71,0,0,64,0,30,64
db 64,0,76,64,0,71,64,0,52,64,90,52,0,0,64,0
db 0,76,0,0,71,0,30,64,64,0,71,64,0,76,64,0
db 52,64,90,52,0,0,64,0,0,71,0,0,76,0,129,22
db 64,64,0,68,64,0,52,64,0,71,64,90,71,0,0,64
db 0,0,68,0,0,52,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,52,64,0
db 71,64,90,71,0,0,52,0,0,64,0,30,64,64,0,71
db 64,0,76,64,0,52,64,90,52,0,0,64,0,0,71,0
db 0,76,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,64,64,0,76,64,0,71,64,0,52,64,90
db 52,0,0,64,0,0,76,0,0,71,0,30,64,64,0,71
db 64,0,76,64,0,52,64,90,52,0,0,64,0,0,71,0
db 0,76,0,129,22,64,64,0,68,64,0,52,64,0,71,64
db 90,71,0,0,64,0,0,68,0,0,52,0,30,64,64,0
db 52,64,0,71,64,90,71,0,0,52,0,0,64,0,30,64
db 64,0,52,64,0,71,64,90,71,0,0,52,0,0,64,0
db 30,66,64,0,59,64,0,54,64,90,54,0,0,59,0,0
db 66,0,30,66,64,0,59,64,0,54,64,90,54,0,0,59
db 0,0,66,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,54,64,0,59,64
db 0,66,64,90,66,0,0,59,0,0,54,0,30,54,64,0
db 59,64,0,66,64,90,66,0,0,59,0,0,54,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,52,64,0
db 71,64,0,76,64,90,76,0,0,64,0,0,52,0,0,71
db 0,30,64,64,0,52,64,0,71,64,0,76,64,90,76,0
db 0,64,0,0,52,0,0,71,0,30,64,64,0,52,64,0
db 71,64,0,76,64,90,76,0,0,64,0,0,52,0,0,71
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,134,102,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,129,22,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,69,64,0
db 52,64,90,52,0,0,64,0,0,76,0,0,71,0,0,69
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,90,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,129,22,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,129,22,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,129,22,76,64,0
db 71,64,0,64,64,0,52,64,90,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 90,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,0,57,64,90,57,0,0,64
db 0,0,76,0,0,71,0,0,52,0,30,69,64,0,64,64
db 0,57,64,0,52,64,0,74,64,90,74,0,0,57,0,0
db 69,0,0,64,0,0,52,0,30,69,64,0,64,64,0,57
db 64,0,52,64,0,74,64,30,74,0,0,57,0,0,69,0
db 0,64,0,0,52,0,30,69,64,0,64,64,0,57,64,0
db 52,64,0,74,64,30,74,0,0,57,0,0,69,0,0,64
db 0,0,52,0,30,69,64,0,64,64,0,57,64,0,52,64
db 0,74,64,90,74,0,0,57,0,0,69,0,0,64,0,0
db 52,0,30,69,64,0,64,64,0,57,64,0,52,64,0,74
db 64,90,74,0,0,57,0,0,69,0,0,64,0,0,52,0
db 129,22,69,64,0,64,64,0,57,64,0,52,64,0,74,64
db 90,74,0,0,57,0,0,69,0,0,64,0,0,52,0,30
db 69,64,0,64,64,0,57,64,0,74,64,90,74,0,0,69
db 0,0,64,0,0,57,0,30,69,64,0,64,64,0,57,64
db 0,52,64,0,74,64,90,74,0,0,57,0,0,69,0,0
db 64,0,0,52,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,30,69,64
db 0,64,64,0,57,64,0,52,64,30,52,0,0,69,0,0
db 64,0,0,57,0,30,69,64,0,64,64,0,57,64,0,52
db 64,30,52,0,0,69,0,0,64,0,0,57,0,30,69,64
db 0,64,64,0,57,64,0,52,64,90,52,0,0,69,0,0
db 64,0,0,57,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,129,22,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,90
db 57,0,0,64,0,0,69,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,76,64,0,71,64,0,64,64,0,52,64,90,52,0,0
db 76,0,0,71,0,0,64,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,76,64,0,71,64,0,64
db 64,0,52,64,90,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,90,52,0,0
db 76,0,0,71,0,0,64,0,129,22,71,64,0,64,64,0
db 52,64,0,68,64,90,68,0,0,71,0,0,64,0,0,52
db 0,30,71,64,0,64,64,0,52,64,90,52,0,0,64,0
db 0,71,0,30,71,64,0,64,64,0,52,64,90,52,0,0
db 64,0,0,71,0,30,76,64,0,71,64,0,64,64,0,52
db 64,90,52,0,0,76,0,0,71,0,0,64,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,76,64
db 0,71,64,0,64,64,0,52,64,90,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,90,52,0,0,76,0,0,71,0,0,64,0,129,22,71
db 64,0,64,64,0,52,64,0,68,64,90,68,0,0,71,0
db 0,64,0,0,52,0,30,71,64,0,64,64,0,52,64,90
db 52,0,0,64,0,0,71,0,30,71,64,0,64,64,0,52
db 64,90,52,0,0,64,0,0,71,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,54,64,0,59,64,0,66,64,90,66,0,0,59,0,0
db 54,0,30,54,64,0,59,64,0,66,64,90,66,0,0,59
db 0,0,54,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,64,64,0,52
db 64,0,71,64,0,76,64,90,76,0,0,64,0,0,52,0
db 0,71,0,30,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,52,64,0,64,64,0,71,64,0,76,64,90
db 76,0,0,52,0,0,64,0,0,71,0,30,52,64,0,76
db 64,0,71,64,0,64,64,0,56,64,90,56,0,0,71,0
db 0,52,0,0,76,0,0,64,0,30,52,64,0,64,64,0
db 71,64,0,76,64,0,56,64,90,56,0,0,71,0,0,52
db 0,0,64,0,0,76,0,30,52,64,0,64,64,0,76,64
db 0,71,64,0,62,64,90,62,0,0,76,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,76,64,0,71
db 64,0,62,64,90,62,0,0,76,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,76,64,0
db 56,64,30,56,0,30,57,64,30,71,0,0,76,0,0,52
db 0,0,64,0,30,52,64,0,64,64,0,71,64,0,76,64
db 30,57,0,30,57,64,30,57,0,0,76,0,0,52,0,0
db 64,0,0,71,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,30,71,64,0,66,64,0,59,64
db 90,59,0,0,66,0,0,71,0,30,71,64,0,66,64,0
db 59,64,90,59,0,0,66,0,0,71,0,30,71,64,0,66
db 64,0,59,64,90,59,0,0,66,0,0,71,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,0,66,64,0,59,64,90,59,0,0,66,0
db 0,71,0,30,57,64,90,57,0,30,57,64,0,64,64,0
db 71,64,90,71,0,0,64,0,0,57,0,30,57,64,0,64
db 64,0,71,64,90,71,0,0,64,0,0,57,0,30,57,64
db 0,64,64,0,71,64,90,71,0,0,64,0,0,57,0,30
db 57,64,0,64,64,0,71,64,90,71,0,0,64,0,0,57
db 0,30,57,64,0,64,64,0,71,64,90,71,0,0,64,0
db 0,57,0,30,57,64,0,64,64,0,71,64,90,71,0,0
db 64,0,0,57,0,30,57,64,0,64,64,0,71,64,90,71
db 0,0,64,0,0,57,0,30,57,64,0,64,64,0,71,64
db 90,71,0,0,64,0,0,57,0,30,71,64,0,66,64,0
db 59,64,90,59,0,0,66,0,0,71,0,30,71,64,0,66
db 64,0,59,64,90,59,0,0,66,0,0,71,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,0,66,64,0,59,64,90,59,0,0,66,0
db 0,71,0,30,71,64,0,66,64,0,59,64,90,59,0,0
db 66,0,0,71,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,30,57,64,90,57,0,30,57,64
db 0,64,64,0,71,64,90,71,0,0,64,0,0,57,0,30
db 57,64,0,64,64,0,71,64,90,71,0,0,64,0,0,57
db 0,30,57,64,0,64,64,0,71,64,90,71,0,0,64,0
db 0,57,0,30,57,64,0,64,64,0,71,64,90,71,0,0
db 64,0,0,57,0,30,57,64,0,64,64,0,71,64,90,71
db 0,0,64,0,0,57,0,30,57,64,0,64,64,0,71,64
db 90,71,0,0,64,0,0,57,0,30,57,64,0,64,64,0
db 71,64,90,71,0,0,64,0,0,57,0,30,57,64,0,64
db 64,0,71,64,90,71,0,0,64,0,0,57,0,30,61,64
db 0,68,64,0,73,64,90,73,0,0,68,0,0,61,0,30
db 73,64,0,68,64,0,61,64,90,61,0,0,68,0,0,73
db 0,30,61,64,0,68,64,0,73,64,90,73,0,0,68,0
db 0,61,0,30,61,64,0,68,64,0,73,64,90,73,0,0
db 68,0,0,61,0,30,61,64,0,68,64,0,73,64,90,73
db 0,0,68,0,0,61,0,30,61,64,0,68,64,0,73,64
db 90,73,0,0,68,0,0,61,0,30,61,64,0,68,64,0
db 73,64,90,73,0,0,68,0,0,61,0,30,61,64,0,68
db 64,0,73,64,90,73,0,0,68,0,0,61,0,30,66,64
db 0,61,64,0,57,64,90,57,0,0,61,0,0,66,0,30
db 57,64,0,61,64,0,66,64,90,66,0,0,61,0,0,57
db 0,30,57,64,0,61,64,0,66,64,90,66,0,0,61,0
db 0,57,0,30,57,64,0,61,64,0,66,64,90,66,0,0
db 61,0,0,57,0,30,57,64,0,61,64,0,66,64,90,66
db 0,0,61,0,0,57,0,30,57,64,0,61,64,0,66,64
db 90,66,0,0,61,0,0,57,0,30,57,64,0,61,64,0
db 66,64,90,66,0,0,61,0,0,57,0,30,57,64,0,61
db 64,0,66,64,90,66,0,0,61,0,0,57,0,30,69,64
db 0,64,64,0,57,64,90,57,0,0,64,0,0,69,0,30
db 57,64,0,64,64,0,69,64,90,69,0,0,64,0,0,57
db 0,30,57,64,0,69,64,0,64,64,90,64,0,0,69,0
db 0,57,0,30,57,64,0,64,64,0,69,64,90,69,0,0
db 64,0,0,57,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,129,22,59,64,0,66,64,0,71
db 64,90,71,0,0,66,0,0,59,0,129,22,61,64,0,68
db 64,0,73,64,90,73,0,0,68,0,0,61,0,30,61,64
db 0,68,64,0,73,64,30,68,0,30,68,64,30,68,0,0
db 73,0,0,61,0,30,61,64,0,68,64,0,73,64,90,73
db 0,0,68,0,0,61,0,30,61,64,0,68,64,0,73,64
db 0,76,64,90,76,0,0,61,0,0,68,0,0,73,0,30
db 73,64,0,68,64,0,61,64,90,61,0,0,68,0,0,73
db 0,129,22,59,64,0,66,64,0,71,64,90,71,0,0,66
db 0,0,59,0,129,22,69,64,0,64,64,0,57,64,90,57
db 0,0,64,0,0,69,0,30,57,64,0,64,64,0,69,64
db 90,69,0,0,64,0,0,57,0,30,57,64,0,69,64,0
db 64,64,90,64,0,0,69,0,0,57,0,30,57,64,0,64
db 64,0,69,64,90,69,0,0,64,0,0,57,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,90,71,0,30,59,64,0,66,64,0,71,64,90,71
db 0,0,66,0,0,59,0,30,71,64,90,71,0,30,61,64
db 0,68,64,0,73,64,90,73,0,0,68,0,0,61,0,30
db 61,64,0,68,64,0,73,64,30,68,0,30,68,64,30,68
db 0,0,73,0,0,61,0,30,61,64,0,68,64,0,73,64
db 90,73,0,0,68,0,0,61,0,30,61,64,0,68,64,0
db 73,64,0,76,64,90,76,0,0,61,0,0,68,0,0,73
db 0,30,73,64,0,68,64,0,61,64,90,61,0,0,68,0
db 0,73,0,129,22,59,64,0,66,64,0,71,64,90,71,0
db 0,66,0,0,59,0,129,22,69,64,0,64,64,0,57,64
db 90,57,0,0,64,0,0,69,0,30,57,64,0,64,64,0
db 69,64,90,69,0,0,64,0,0,57,0,30,57,64,0,69
db 64,0,64,64,90,64,0,0,69,0,0,57,0,30,57,64
db 0,64,64,0,69,64,90,69,0,0,64,0,0,57,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,90,71,0,30,59,64,0,66,64,0,71,64
db 90,71,0,0,66,0,0,59,0,30,71,64,90,71,0,30
db 71,64,0,76,64,0,52,64,0,64,64,90,64,0,0,71
db 0,0,76,0,0,52,0,30,71,64,0,76,64,0,52,64
db 0,64,64,0,59,64,30,59,0,0,52,0,0,71,0,0
db 76,0,0,64,0,30,71,64,0,76,64,0,52,64,0,64
db 64,30,64,0,0,71,0,0,76,0,0,52,0,30,71,64
db 0,76,64,0,52,64,0,64,64,0,68,64,90,68,0,0
db 52,0,0,71,0,0,76,0,0,64,0,30,71,64,0,76
db 64,0,52,64,0,64,64,90,64,0,0,71,0,0,76,0
db 0,52,0,30,76,64,90,76,0,30,71,64,0,76,64,0
db 64,64,0,52,64,90,52,0,0,71,0,0,76,0,0,64
db 0,30,71,64,0,76,64,0,64,64,0,52,64,0,69,64
db 90,69,0,0,64,0,0,71,0,0,76,0,0,52,0,30
db 71,64,0,76,64,0,64,64,0,52,64,0,69,64,90,69
db 0,0,64,0,0,71,0,0,76,0,0,52,0,30,64,64
db 0,71,64,0,76,64,0,52,64,0,68,64,0,59,64,90
db 59,0,0,71,0,0,76,0,0,64,0,0,68,0,0,52
db 0,134,102,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,64,64,0,76,64
db 0,71,64,0,52,64,90,52,0,0,64,0,0,76,0,0
db 71,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,129,22,64,64,0,68
db 64,0,52,64,0,71,64,90,71,0,0,64,0,0,68,0
db 0,52,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,129
db 22,64,64,0,68,64,0,52,64,0,71,64,90,71,0,0
db 64,0,0,68,0,0,52,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,64,64,0,76,64,0,71,64,0,52,64
db 90,52,0,0,64,0,0,76,0,0,71,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,129,22,64,64,0,68,64,0,52,64,0,71
db 64,90,71,0,0,64,0,0,68,0,0,52,0,30,64,64
db 0,52,64,0,71,64,90,71,0,0,52,0,0,64,0,30
db 64,64,0,52,64,0,71,64,90,71,0,0,52,0,0,64
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,64,64,0,76,64,0
db 71,64,0,52,64,90,52,0,0,64,0,0,76,0,0,71
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,129,22,64,64,0,68,64
db 0,52,64,0,71,64,90,71,0,0,64,0,0,68,0,0
db 52,0,30,64,64,0,52,64,0,71,64,90,71,0,0,52
db 0,0,64,0,30,64,64,0,52,64,0,71,64,90,71,0
db 0,52,0,0,64,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,30,69
db 64,0,64,64,0,57,64,0,52,64,30,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,0
db 52,64,30,52,0,0,69,0,0,64,0,0,57,0,30,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,129,22
db 69,64,0,64,64,0,57,64,0,52,64,90,52,0,0,69
db 0,0,64,0,0,57,0,30,69,64,0,64,64,0,57,64
db 90,57,0,0,64,0,0,69,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,90,52,0
db 0,69,0,0,64,0,0,57,0,30,69,64,0,64,64,0
db 57,64,0,52,64,30,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,30,52,0
db 0,69,0,0,64,0,0,57,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,90,52,0
db 0,69,0,0,64,0,0,57,0,129,22,69,64,0,64,64
db 0,57,64,0,52,64,90,52,0,0,69,0,0,64,0,0
db 57,0,30,69,64,0,64,64,0,57,64,90,57,0,0,64
db 0,0,69,0,30,64,64,0,52,64,90,52,0,0,64,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,68,64,0
db 52,64,0,71,64,90,71,0,0,64,0,0,68,0,0,52
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,64,64
db 0,76,64,0,71,64,0,52,64,90,52,0,0,64,0,0
db 76,0,0,71,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,129,22,64
db 64,0,68,64,0,52,64,0,71,64,90,71,0,0,64,0
db 0,68,0,0,52,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,54,64,0,59,64,0,66,64,90,66,0,0,59,0,0
db 54,0,30,54,64,0,59,64,0,66,64,90,66,0,0,59
db 0,0,54,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,64,64,0,52
db 64,0,71,64,0,76,64,90,76,0,0,64,0,0,52,0
db 0,71,0,30,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,76,64,90,76,0,0,52,0,0,64,0
db 0,71,0,134,102,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,64,64,0
db 76,64,0,71,64,0,52,64,90,52,0,0,64,0,0,76
db 0,0,71,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,129,22,64,64
db 0,68,64,0,52,64,0,71,64,90,71,0,0,64,0,0
db 68,0,0,52,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,64,64,0,76,64,0,71,64,0,52,64,90,52,0
db 0,64,0,0,76,0,0,71,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,129,22,64,64,0,68,64,0,52,64,0,71,64,90,71
db 0,0,64,0,0,68,0,0,52,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,64,64,0
db 52,64,0,71,64,90,71,0,0,52,0,0,64,0,30,64
db 64,0,71,64,0,76,64,0,52,64,90,52,0,0,64,0
db 0,71,0,0,76,0,30,76,64,0,71,64,0,64,64,0
db 52,64,30,52,0,0,76,0,0,71,0,0,64,0,30,76
db 64,0,71,64,0,64,64,0,52,64,30,52,0,0,76,0
db 0,71,0,0,64,0,30,64,64,0,76,64,0,71,64,0
db 52,64,90,52,0,0,64,0,0,76,0,0,71,0,30,64
db 64,0,71,64,0,76,64,0,52,64,90,52,0,0,64,0
db 0,71,0,0,76,0,129,22,64,64,0,68,64,0,52,64
db 0,71,64,90,71,0,0,64,0,0,68,0,0,52,0,30
db 64,64,0,52,64,0,71,64,90,71,0,0,52,0,0,64
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,71,64,0,76,64,0,52,64,90
db 52,0,0,64,0,0,71,0,0,76,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,64,64,0,76
db 64,0,71,64,0,52,64,90,52,0,0,64,0,0,76,0
db 0,71,0,30,64,64,0,71,64,0,76,64,0,52,64,90
db 52,0,0,64,0,0,71,0,0,76,0,129,22,64,64,0
db 68,64,0,52,64,0,71,64,90,71,0,0,64,0,0,68
db 0,0,52,0,30,64,64,0,52,64,0,71,64,90,71,0
db 0,52,0,0,64,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,57,64,0,64,64,0,52,64,30,52,0,0
db 69,0,0,57,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,30,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,57,64,0,64,64,0,52,64,90,52,0,0
db 69,0,0,57,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 129,22,69,64,0,57,64,0,64,64,0,52,64,90,52,0
db 0,69,0,0,57,0,0,64,0,30,69,64,0,57,64,0
db 64,64,90,64,0,0,57,0,0,69,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,57
db 64,0,64,64,0,52,64,30,52,0,0,69,0,0,57,0
db 0,64,0,30,69,64,0,64,64,0,57,64,0,52,64,30
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,57
db 64,0,64,64,0,52,64,90,52,0,0,69,0,0,57,0
db 0,64,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,129,22,69,64,0
db 57,64,0,64,64,0,52,64,90,52,0,0,69,0,0,57
db 0,0,64,0,30,69,64,0,57,64,0,64,64,90,64,0
db 0,57,0,0,69,0,30,64,64,0,52,64,90,52,0,0
db 64,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,64,64,0,76,64
db 0,71,64,0,52,64,90,52,0,0,64,0,0,76,0,0
db 71,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,129,22,64,64,0,68
db 64,0,52,64,0,71,64,90,71,0,0,64,0,0,68,0
db 0,52,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,129
db 22,64,64,0,68,64,0,52,64,0,71,64,90,71,0,0
db 64,0,0,68,0,0,52,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,66
db 64,0,59,64,0,54,64,0,71,64,90,71,0,0,66,0
db 0,59,0,0,54,0,30,66,64,0,59,64,0,54,64,90
db 54,0,0,59,0,0,66,0,30,66,64,0,59,64,0,54
db 64,0,71,64,90,71,0,0,66,0,0,59,0,0,54,0
db 30,66,64,0,59,64,0,54,64,90,54,0,0,59,0,0
db 66,0,30,66,64,0,59,64,0,54,64,0,71,64,90,71
db 0,0,66,0,0,59,0,0,54,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,0,71,64,90,71,0,0,66,0,0,59
db 0,0,54,0,30,52,64,0,57,64,0,64,64,90,64,0
db 0,57,0,0,52,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,30,52
db 64,0,57,64,0,64,64,90,64,0,0,57,0,0,52,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,30,52,64,0,57,64,0,64
db 64,90,64,0,0,57,0,0,52,0,30,69,64,0,64,64
db 0,57,64,0,52,64,90,52,0,0,69,0,0,64,0,0
db 57,0,30,52,64,0,57,64,0,64,64,90,64,0,0,57
db 0,0,52,0,30,69,64,0,64,64,0,57,64,0,52,64
db 90,52,0,0,69,0,0,64,0,0,57,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,64,64,0,76,64,0,71,64,0,52,64
db 90,52,0,0,64,0,0,76,0,0,71,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,129,22,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,52,64,0
db 71,64,0,57,64,90,57,0,0,64,0,0,52,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,76,64,90,76,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,76,64,30,76,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,76,64,30,76,0
db 0,52,0,0,64,0,0,71,0,30,56,64,0,68,64,0
db 64,64,0,71,64,0,76,64,90,76,0,0,64,0,0,56
db 0,0,68,0,0,71,0,30,56,64,0,71,64,0,64,64
db 0,76,64,90,76,0,0,56,0,0,71,0,0,64,0,30
db 62,64,0,74,64,0,71,64,90,71,0,0,74,0,0,62
db 0,30,62,64,0,74,64,0,64,64,0,71,64,0,76,64
db 90,76,0,0,64,0,0,62,0,0,74,0,0,71,0,30
db 56,64,0,68,64,0,64,64,0,71,64,0,76,64,90,76
db 0,0,64,0,0,56,0,0,68,0,0,71,0,30,57,64
db 0,69,64,0,64,64,0,71,64,0,76,64,90,76,0,0
db 64,0,0,57,0,0,69,0,0,71,0,30,66,64,0,59
db 64,0,54,64,90,54,0,0,59,0,0,66,0,30,66,64
db 0,59,64,0,54,64,0,71,64,90,71,0,0,66,0,0
db 59,0,0,54,0,30,66,64,0,59,64,0,54,64,90,54
db 0,0,59,0,0,66,0,30,66,64,0,59,64,0,54,64
db 0,71,64,90,71,0,0,66,0,0,59,0,0,54,0,30
db 66,64,0,59,64,0,54,64,90,54,0,0,59,0,0,66
db 0,30,66,64,0,59,64,0,54,64,0,71,64,90,71,0
db 0,66,0,0,59,0,0,54,0,30,66,64,0,59,64,0
db 54,64,90,54,0,0,59,0,0,66,0,30,66,64,0,59
db 64,0,54,64,0,71,64,90,71,0,0,66,0,0,59,0
db 0,54,0,30,52,64,0,57,64,0,64,64,90,64,0,0
db 57,0,0,52,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,30,52,64
db 0,57,64,0,64,64,90,64,0,0,57,0,0,52,0,30
db 69,64,0,64,64,0,57,64,0,52,64,90,52,0,0,69
db 0,0,64,0,0,57,0,30,52,64,0,57,64,0,64,64
db 90,64,0,0,57,0,0,52,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,52,64,0,57,64,0,64,64,90,64,0,0,57,0
db 0,52,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,52,64,0,64
db 64,0,71,64,0,76,64,90,76,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,76,64,30
db 76,0,0,52,0,0,64,0,0,71,0,14,59,64,14,59
db 0,2,52,64,0,64,64,0,71,64,0,76,64,30,76,0
db 0,52,0,0,64,0,0,71,0,0,64,64,14,64,0,16
db 52,64,0,64,64,0,71,64,0,76,64,90,76,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,76,64,90,76,0,0,52,0,0,64,0,0,71,0,129
db 22,52,64,0,64,64,0,71,64,0,76,64,90,76,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,76,64,90,76,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,76,64,0,59,64,90
db 59,0,0,71,0,0,52,0,0,64,0,0,76,0,30,52
db 64,0,64,64,0,71,64,0,76,64,90,76,0,0,52,0
db 0,64,0,0,71,0,134,102,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,0,179,7,110,90,147,68,0,0,64,0,0,71
db 0,0,52,0,30,52,64,0,64,64,0,71,64,0,68,64
db 30,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,30,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,73,64,0,69,64
db 90,69,0,0,52,0,0,64,0,0,73,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,64,64,0,71,64,0,52,64,0,68,64
db 0,179,7,90,90,147,68,0,0,64,0,0,71,0,0,52
db 0,30,52,64,0,64,64,0,71,64,0,68,64,30,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,30,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,68,64,90,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,68,64,90,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,73,64,0,69,64,90,69,0
db 0,52,0,0,64,0,0,73,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,64,64,0,71,64,0,52,64,0,68,64,0,179,7
db 70,90,147,68,0,0,64,0,0,71,0,0,52,0,30,52
db 64,0,64,64,0,71,64,0,68,64,30,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,30,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,71,64,0,68,64,90,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,71,64,0,68,64,90,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,73,64,0,69,64,90,69,0,0,52,0
db 0,64,0,0,73,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,64
db 64,0,71,64,0,52,64,0,68,64,0,179,7,50,90,147
db 68,0,0,64,0,0,71,0,0,52,0,30,52,64,0,64
db 64,0,71,64,0,68,64,30,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,30
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,68,64,90,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,68,64,90,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,73,64,0,69,64,90,69,0,0,52,0,0,64,0
db 0,73,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,64,64,0,71
db 64,0,52,64,0,68,64,0,179,7,30,90,147,68,0,0
db 64,0,0,71,0,0,52,0,30,52,64,0,64,64,0,71
db 64,0,68,64,30,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,30,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,68,64,90,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,68,64,90,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,73
db 64,0,69,64,90,69,0,0,52,0,0,64,0,0,73,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,64,64,0,71,64,0,52
db 64,0,68,64,0,179,7,20,90,147,68,0,0,64,0,0
db 71,0,0,52,0,30,52,64,0,64,64,0,71,64,0,68
db 64,30,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,30,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,71,64,0,68
db 64,90,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,71,64,0,68
db 64,90,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,73,64,0,69
db 64,90,69,0,0,52,0,0,64,0,0,73,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,64,64,0,71,64,0,52,64,0,68
db 64,0,179,7,10,90,147,68,0,0,64,0,0,71,0,0
db 52,0,30,52,64,0,64,64,0,71,64,0,68,64,30,68
db 0,0,52,0,0,64,0,0,71,0,30,52,64,0,64,64
db 0,71,64,0,68,64,30,68,0,0,52,0,0,64,0,0
db 71,0,30,52,64,0,64,64,0,71,64,0,68,64,90,68
db 0,0,52,0,0,64,0,0,71,0,30,52,64,0,64,64
db 0,71,64,0,68,64,90,68,0,0,52,0,0,64,0,0
db 71,0,14,179,7,5,16,147,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,14,179,7,2,16,147,52,64,0
db 64,64,0,73,64,0,69,64,90,69,0,0,52,0,0,64
db 0,0,73,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,0,255,47,0
db 77,84,114,107,0,0,13,84,0,255,3,11,76,101,97,100
db 32,71,117,105,116,97,114,0,192,30,129,217,64,144,93,64
db 0,85,64,0,81,64,0,74,64,0,69,64,44,69,0,0
db 81,0,0,93,0,0,85,0,0,74,0,120,92,64,0,83
db 64,0,80,64,0,71,64,0,68,64,44,68,0,0,80,0
db 0,92,0,0,83,0,0,71,0,122,88,64,0,85,64,0
db 76,64,0,74,64,0,64,64,44,64,0,0,76,0,0,88
db 0,0,85,0,0,74,0,90,90,64,0,81,64,0,78,64
db 0,66,64,0,62,64,14,62,0,0,78,0,0,90,0,0
db 81,0,0,66,0,2,92,64,0,83,64,0,80,64,0,68
db 64,0,64,64,104,64,0,0,80,0,0,92,0,0,83,0
db 0,68,0,16,90,64,0,81,64,0,78,64,0,66,64,0
db 62,64,30,66,0,0,78,0,14,90,0,16,88,64,0,76
db 64,0,64,64,30,64,0,0,88,0,0,62,0,0,81,0
db 0,76,0,30,90,64,0,80,64,0,78,64,0,66,64,0
db 59,64,30,59,0,0,78,0,0,90,0,0,80,0,0,66
db 0,30,76,64,0,88,64,0,64,64,0,57,64,44,57,0
db 0,76,0,0,88,0,0,64,0,129,8,59,64,0,66,64
db 0,76,64,0,81,64,0,85,64,0,88,64,0,93,64,2
db 93,0,0,85,0,0,81,0,0,76,0,0,88,0,12,78
db 64,0,83,64,0,87,64,0,90,64,0,95,64,133,36,59
db 0,129,22,57,64,0,64,64,0,69,64,0,73,64,30,73
db 0,0,69,0,0,57,0,0,64,0,30,57,64,0,64,64
db 0,69,64,0,73,64,28,95,0,0,83,0,0,87,0,0
db 90,0,0,78,0,2,66,0,0,73,0,0,69,0,0,57
db 0,0,64,0,30,57,64,0,64,64,0,69,64,0,73,64
db 134,102,73,0,0,57,0,0,64,0,0,69,0,30,75,64
db 0,71,64,0,66,64,0,59,64,30,59,0,0,75,0,0
db 71,0,0,66,0,30,59,64,0,66,64,0,71,64,0,75
db 64,134,42,75,0,0,59,0,0,66,0,0,71,0,30,57
db 64,0,73,64,0,69,64,0,64,64,30,64,0,0,57,0
db 0,73,0,0,69,0,30,57,64,0,73,64,0,69,64,0
db 64,64,30,64,0,0,57,0,0,73,0,0,69,0,30,73
db 64,0,69,64,0,64,64,0,57,64,133,50,64,0,0,73
db 0,0,69,0,30,69,64,0,73,64,0,76,64,44,76,0
db 16,78,64,129,22,78,0,0,73,0,0,69,0,0,57,0
db 30,61,64,0,68,64,0,71,64,0,76,64,0,80,64,135
db 34,80,0,0,71,0,0,61,0,0,68,0,0,76,0,30
db 64,64,0,61,64,0,71,64,0,54,64,130,74,71,0,30
db 70,64,90,70,0,30,70,64,90,70,0,30,66,64,90,66
db 0,0,61,0,30,61,64,90,61,0,30,66,64,0,70,64
db 90,70,0,0,54,0,0,64,0,0,66,0,30,57,64,0
db 64,64,0,69,64,0,73,64,131,66,73,0,0,57,0,0
db 64,0,0,69,0,30,75,64,0,71,64,0,66,64,0,59
db 64,131,66,59,0,0,75,0,0,71,0,0,66,0,30,61
db 64,0,68,64,0,73,64,0,76,64,131,66,76,0,0,61
db 0,0,68,0,0,73,0,30,76,64,0,73,64,0,68,64
db 0,61,64,90,61,0,0,76,0,0,73,0,0,68,0,129
db 22,59,64,0,66,64,0,71,64,0,75,64,90,75,0,0
db 59,0,0,66,0,0,71,0,129,22,57,64,0,64,64,0
db 69,64,0,73,64,131,66,73,0,0,57,0,0,64,0,0
db 69,0,30,75,64,0,71,64,0,66,64,0,59,64,131,66
db 59,0,0,75,0,0,71,0,0,66,0,30,61,64,0,68
db 64,0,73,64,0,76,64,131,66,76,0,0,61,0,0,68
db 0,0,73,0,30,76,64,0,73,64,0,68,64,0,61,64
db 90,61,0,0,76,0,0,73,0,0,68,0,129,22,59,64
db 0,66,64,0,71,64,0,75,64,90,75,0,0,59,0,0
db 66,0,0,71,0,129,22,57,64,0,64,64,0,69,64,0
db 73,64,131,66,73,0,0,57,0,0,64,0,0,69,0,30
db 75,64,0,71,64,0,66,64,0,59,64,131,66,59,0,0
db 75,0,0,71,0,0,66,0,30,52,64,0,64,64,0,71
db 64,0,76,64,136,26,76,0,0,52,0,0,64,0,0,71
db 0,130,14,71,64,90,71,0,120,76,64,60,76,0,90,78
db 64,60,78,0,104,80,64,60,80,0,129,8,80,64,129,112
db 81,64,30,80,0,90,80,64,30,81,0,129,22,80,0,0
db 79,64,14,79,0,0,78,64,14,78,0,2,77,64,14,77
db 0,0,76,64,2,76,0,132,102,71,64,90,71,0,120,76
db 64,60,76,0,90,78,64,60,78,0,104,80,64,60,80,0
db 76,80,64,120,81,64,30,80,0,30,80,64,30,81,0,60
db 80,0,30,76,64,30,76,0,30,71,64,30,71,0,90,80
db 64,120,81,64,14,80,0,46,80,64,14,81,0,16,80,0
db 30,76,64,30,76,0,30,71,64,30,71,0,30,69,64,30
db 69,0,30,68,64,129,82,68,0,0,67,64,14,67,0,0
db 66,64,2,66,0,132,72,85,64,129,96,86,64,30,85,0
db 46,85,64,28,86,0,32,85,0,30,81,64,60,81,0,14
db 76,64,60,76,0,16,74,64,60,74,0,30,73,64,30,73
db 0,30,74,64,30,74,0,30,73,64,60,73,0,30,69,64
db 2,69,0,88,64,64,129,6,64,0,0,63,64,14,63,0
db 2,62,64,14,61,64,2,61,0,14,62,0,132,28,85,64
db 60,85,0,0,86,64,44,86,0,0,85,64,44,85,0,2
db 86,64,14,86,0,16,85,64,30,85,0,30,81,64,30,81
db 0,30,76,64,30,76,0,90,80,64,30,80,0,0,81,64
db 30,81,0,0,80,64,30,80,0,0,81,64,30,81,0,0
db 80,64,30,80,0,0,81,64,30,81,0,0,80,64,14,80
db 0,16,76,64,44,76,0,30,71,64,2,71,0,74,69,64
db 90,69,0,30,68,64,131,36,68,0,0,67,64,14,67,0
db 0,66,64,14,66,0,2,65,64,14,65,0,0,64,64,2
db 64,0,131,94,176,7,100,16,144,71,64,0,75,64,0,66
db 64,0,59,64,74,58,64,0,65,64,0,70,64,0,74,64
db 16,59,0,0,66,0,0,71,0,0,75,0,0,57,64,0
db 64,64,0,69,64,0,73,64,14,58,0,0,70,0,0,74
db 0,0,65,0,0,56,64,0,63,64,0,68,64,0,72,64
db 16,57,0,0,69,0,0,73,0,0,64,0,0,55,64,0
db 62,64,0,67,64,0,71,64,14,56,0,0,68,0,0,72
db 0,0,63,0,0,54,64,0,61,64,0,66,64,0,70,64
db 16,55,0,0,67,0,0,71,0,0,62,0,0,53,64,0
db 60,64,0,65,64,0,69,64,14,54,0,0,66,0,0,70
db 0,0,61,0,0,52,64,0,59,64,0,64,64,0,68,64
db 16,53,0,0,65,0,0,69,0,0,60,0,0,51,64,0
db 58,64,0,63,64,0,67,64,14,52,0,0,64,0,0,68
db 0,0,59,0,0,50,64,0,57,64,0,62,64,0,66,64
db 16,51,0,0,63,0,0,67,0,0,58,0,0,49,64,0
db 56,64,0,61,64,0,65,64,14,50,0,0,62,0,0,66
db 0,0,57,0,0,48,64,0,55,64,0,60,64,0,64,64
db 0,176,7,115,16,144,49,0,0,61,0,0,65,0,0,56
db 0,0,78,64,0,47,64,0,54,64,0,59,64,0,63,64
db 14,48,0,0,60,0,0,64,0,0,55,0,0,46,64,0
db 53,64,0,58,64,0,62,64,16,47,0,0,59,0,0,63
db 0,0,54,0,0,45,64,0,52,64,0,57,64,0,61,64
db 14,46,0,0,58,0,0,62,0,0,53,0,0,44,64,0
db 51,64,0,56,64,0,60,64,16,45,0,0,57,0,0,61
db 0,0,52,0,0,43,64,0,50,64,0,55,64,0,59,64
db 14,44,0,0,56,0,0,60,0,0,51,0,0,42,64,0
db 49,64,0,54,64,0,58,64,16,43,0,0,55,0,0,59
db 0,0,50,0,0,41,64,0,48,64,0,53,64,0,57,64
db 14,42,0,0,54,0,0,58,0,0,49,0,0,40,64,0
db 47,64,0,52,64,0,56,64,16,41,0,0,53,0,0,57
db 0,0,48,0,0,39,64,0,46,64,0,51,64,0,55,64
db 14,40,0,0,52,0,0,56,0,0,47,0,0,38,64,0
db 45,64,0,50,64,0,54,64,16,39,0,0,51,0,0,55
db 0,0,46,0,0,37,64,0,44,64,0,49,64,0,53,64
db 14,38,0,0,50,0,0,54,0,0,45,0,0,36,64,0
db 43,64,0,48,64,0,52,64,16,37,0,0,49,0,0,53
db 0,0,44,0,0,35,64,0,42,64,0,47,64,0,51,64
db 14,36,0,0,48,0,0,52,0,0,43,0,0,34,64,0
db 41,64,0,46,64,0,50,64,16,35,0,0,47,0,0,51
db 0,0,42,0,0,33,64,0,40,64,0,45,64,0,49,64
db 14,34,0,0,46,0,0,50,0,0,41,0,16,33,0,0
db 45,0,0,49,0,0,40,0,0,80,64,0,75,64,0,71
db 64,0,66,64,0,59,64,30,78,0,90,78,64,30,80,0
db 130,28,75,0,0,78,0,0,77,64,14,77,0,2,76,64
db 14,76,0,0,75,64,2,75,0,131,80,59,0,0,66,0
db 0,71,0,30,80,64,120,81,64,30,80,0,90,81,0,0
db 80,64,14,80,0,30,76,64,14,76,0,32,71,64,14,71
db 0,16,80,64,129,6,80,0,30,76,64,14,76,0,32,71
db 64,14,71,0,16,80,64,129,22,80,0,30,76,64,30,76
db 0,30,71,64,14,71,0,30,68,64,14,68,0,32,68,64
db 30,68,0,0,69,64,30,69,0,0,70,64,30,70,0,0
db 69,64,30,69,0,0,70,64,30,70,0,0,69,64,30,69
db 0,30,68,64,30,68,0,30,64,64,30,64,0,30,59,64
db 30,59,0,30,57,64,30,57,0,30,56,64,30,56,0,90
db 67,64,2,67,0,12,69,64,129,36,69,0,2,67,64,14
db 67,0,30,64,64,30,64,0,16,62,64,14,62,0,16,59
db 64,30,59,0,14,57,64,14,57,0,32,55,64,30,55,0
db 0,52,64,131,126,51,64,14,52,0,0,50,64,16,51,0
db 0,49,64,14,50,0,0,48,64,16,49,0,0,47,64,14
db 48,0,0,46,64,16,47,0,0,45,64,14,46,0,0,44
db 64,16,45,0,0,43,64,14,44,0,0,42,64,16,43,0
db 0,41,64,14,42,0,0,40,64,16,41,0,14,40,0,235
db 0,52,64,129,82,52,0,141,46,40,64,90,40,0,30,40
db 64,30,40,0,30,40,64,30,40,0,30,38,64,90,38,0
db 30,40,64,90,40,0,129,22,38,64,90,38,0,30,38,64
db 30,38,0,30,40,64,30,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,30,40
db 0,30,40,64,30,40,0,30,38,64,90,38,0,30,40,64
db 90,40,0,129,22,40,64,90,40,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,30,40,0,30,40,64
db 30,40,0,30,38,64,90,38,0,30,40,64,90,40,0,129
db 22,40,64,90,40,0,30,38,64,90,38,0,30,40,64,90
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,38,64,90,38,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,38,64,90,38,0,30,40,64
db 90,40,0,30,40,64,90,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,129,22,38,64,90,38,0,30,38,64,30,38,0,30,40
db 64,30,40,0,30,44,64,30,44,0,30,40,64,30,40,0
db 30,40,64,90,40,0,30,40,64,30,40,0,30,40,64,30
db 40,0,30,38,64,90,38,0,30,40,64,90,40,0,129,22
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,90,40,0,30,40,64,30,40,0,30,40,64
db 30,40,0,30,40,64,90,40,0,30,40,64,90,40,0,129
db 22,40,64,90,40,0,30,40,64,90,40,0,30,40,64,90
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,40,64,90,40,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,30,40,64,90,40,0,30,40,64,30,40,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,129,22,40,64,90,40,0,30,40,64,90,40,0,30,40
db 64,90,40,0,30,40,64,90,40,0,30,44,64,30,44,0
db 30,40,64,30,40,0,30,35,64,90,35,0,30,40,64,90
db 40,0,129,22,40,64,90,40,0,30,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,30,40
db 0,30,40,64,30,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,129,22,38,64,90,38,0,30,38,64,30,38,0
db 30,40,64,30,40,0,30,44,64,30,44,0,30,40,64,30
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,35,64,90,35,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,30,40,64,0,176,7,110,90,144,40,0,30,40
db 64,30,40,0,30,40,64,30,40,0,30,40,64,90,40,0
db 30,40,64,90,40,0,129,22,38,64,90,38,0,30,38,64
db 30,38,0,30,40,64,30,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,0,176,7,90,90,144,40,0
db 30,40,64,30,40,0,30,40,64,30,40,0,30,35,64,90
db 35,0,30,40,64,90,40,0,129,22,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,0,176
db 7,70,90,144,40,0,30,32,64,90,32,0,30,35,64,90
db 35,0,30,40,64,90,40,0,129,22,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,0,176
db 7,50,90,144,40,0,30,40,64,30,40,0,30,40,64,30
db 40,0,30,40,64,90,40,0,30,40,64,90,40,0,129,22
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,0,176,7,30,90,144,40,0,30,40,64,30
db 40,0,30,40,64,30,40,0,30,40,64,90,40,0,30,40
db 64,90,40,0,129,22,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,90,40,0,30,40,64,0,176,7,20,90,144
db 40,0,30,40,64,30,40,0,30,40,64,30,40,0,30,40
db 64,90,40,0,30,40,64,90,40,0,129,22,38,64,90,38
db 0,30,38,64,30,38,0,30,40,64,30,40,0,30,44,64
db 30,44,0,30,40,64,30,40,0,30,40,64,0,176,7,10
db 90,144,40,0,30,40,64,30,40,0,30,40,64,30,40,0
db 30,40,64,90,40,0,30,40,64,90,40,0,30,176,7,5
db 120,144,40,64,90,40,0,14,176,7,2,16,144,40,64,90
db 40,0,30,40,64,90,40,0,0,255,47,0,77,84,114,107
db 0,0,5,159,0,255,3,7,83,116,114,105,110,103,115,0
db 193,44,129,255,0,145,49,64,0,56,64,0,61,64,0,64
db 64,0,68,64,135,34,68,0,0,56,0,0,49,0,0,64
db 0,30,66,64,0,59,64,0,52,64,0,42,64,131,66,59
db 0,30,58,64,131,66,58,0,0,42,0,0,61,0,0,66
db 0,0,52,0,30,61,64,0,64,64,0,69,64,0,45,64
db 131,66,45,0,0,61,0,0,64,0,0,69,0,30,47,64
db 0,63,64,0,66,64,0,71,64,131,66,71,0,0,47,0
db 0,63,0,0,66,0,30,73,64,0,68,64,0,64,64,0
db 49,64,133,50,49,0,0,73,0,0,68,0,0,64,0,30
db 47,64,0,63,64,0,66,64,0,71,64,129,82,71,0,0
db 47,0,0,63,0,0,66,0,30,61,64,0,64,64,0,69
db 64,0,45,64,131,66,45,0,0,61,0,0,64,0,0,69
db 0,30,47,64,0,63,64,0,66,64,0,71,64,131,66,71
db 0,0,47,0,0,63,0,0,66,0,30,73,64,0,68,64
db 0,64,64,0,49,64,133,50,49,0,0,73,0,0,68,0
db 0,64,0,30,47,64,0,63,64,0,66,64,0,71,64,129
db 82,71,0,0,47,0,0,63,0,0,66,0,30,61,64,0
db 64,64,0,69,64,0,45,64,131,66,45,0,0,61,0,0
db 64,0,0,69,0,30,47,64,0,63,64,0,66,64,0,71
db 64,131,66,71,0,0,47,0,0,63,0,0,66,0,30,68
db 64,0,71,64,0,76,64,0,52,64,0,40,64,136,26,40
db 0,0,76,0,0,68,0,0,71,0,0,52,0,130,14,59
db 64,90,59,0,120,64,64,60,64,0,90,66,64,60,66,0
db 104,68,64,60,68,0,129,8,68,64,129,112,69,64,30,68
db 0,90,209,0,0,145,68,64,30,69,0,129,22,68,0,0
db 67,64,14,67,0,0,66,64,14,66,0,2,65,64,14,65
db 0,0,64,64,2,64,0,132,102,59,64,90,59,0,120,64
db 64,60,64,0,90,66,64,60,66,0,104,68,64,60,68,0
db 76,68,64,120,69,64,30,68,0,30,68,64,30,69,0,60
db 68,0,30,64,64,30,64,0,30,59,64,30,59,0,90,68
db 64,120,69,64,14,68,0,46,68,64,14,69,0,16,68,0
db 30,64,64,30,64,0,30,59,64,30,59,0,30,57,64,30
db 57,0,30,56,64,129,82,56,0,0,55,64,14,55,0,0
db 54,64,2,54,0,132,72,73,64,129,96,74,64,30,73,0
db 46,73,64,28,74,0,32,73,0,30,69,64,60,69,0,14
db 64,64,60,64,0,16,62,64,60,62,0,30,61,64,30,61
db 0,30,62,64,30,62,0,30,61,64,60,61,0,30,57,64
db 2,57,0,88,52,64,129,6,52,0,0,51,64,14,51,0
db 2,50,64,14,49,64,2,49,0,14,50,0,132,28,73,64
db 60,73,0,0,74,64,44,74,0,0,73,64,44,73,0,2
db 74,64,14,74,0,16,73,64,30,73,0,30,69,64,30,69
db 0,30,64,64,30,64,0,90,68,64,30,68,0,0,69,64
db 30,69,0,0,68,64,30,68,0,0,69,64,30,69,0,0
db 68,64,30,68,0,0,69,64,30,69,0,0,68,64,14,68
db 0,16,64,64,44,64,0,30,59,64,2,59,0,74,57,64
db 90,57,0,30,56,64,131,36,56,0,0,55,64,14,55,0
db 0,54,64,14,54,0,2,53,64,14,53,0,0,52,64,2
db 52,0,133,94,66,64,129,112,68,64,30,66,0,90,66,64
db 30,68,0,130,28,66,0,0,65,64,14,65,0,2,64,64
db 14,64,0,0,63,64,2,63,0,131,110,68,64,120,69,64
db 30,68,0,90,69,0,0,68,64,14,68,0,30,64,64,14
db 64,0,32,59,64,14,59,0,16,68,64,129,6,68,0,30
db 64,64,14,64,0,32,59,64,14,59,0,16,68,64,129,22
db 68,0,30,64,64,30,64,0,30,59,64,14,59,0,30,56
db 64,14,56,0,32,56,64,30,56,0,0,57,64,30,57,0
db 0,58,64,30,58,0,0,57,64,30,57,0,0,58,64,30
db 58,0,0,57,64,30,57,0,30,57,64,30,57,0,30,52
db 64,30,52,0,30,47,64,30,47,0,30,45,64,30,45,0
db 30,44,64,30,44,0,90,55,64,2,55,0,12,57,64,129
db 36,57,0,2,55,64,14,55,0,30,52,64,30,52,0,16
db 50,64,14,50,0,16,47,64,30,47,0,14,45,64,14,45
db 0,32,43,64,30,43,0,0,40,64,131,126,39,64,14,40
db 0,0,38,64,16,39,0,0,37,64,14,38,0,0,36,64
db 16,37,0,0,35,64,14,36,0,0,34,64,16,35,0,0
db 33,64,14,34,0,0,32,64,16,33,0,0,31,64,14,32
db 0,0,30,64,16,31,0,0,29,64,14,30,0,0,28,64
db 16,29,0,14,28,0,130,0,64,64,0,68,64,0,71,64
db 0,52,64,140,114,71,0,0,68,0,30,73,64,0,69,64
db 129,82,69,0,0,73,0,0,64,0,30,71,64,0,68,64
db 0,64,64,142,98,64,0,0,52,0,0,71,0,0,68,0
db 30,64,64,0,61,64,0,45,64,140,114,64,0,30,66,64
db 129,82,66,0,0,45,0,0,61,0,30,68,64,0,64,64
db 0,52,64,142,98,52,0,0,64,0,0,68,0,30,66,64
db 0,63,64,0,47,64,135,34,47,0,0,63,0,0,66,0
db 30,45,64,0,61,64,0,64,64,0,69,64,135,34,69,0
db 0,45,0,0,61,0,0,64,0,30,68,64,0,64,64,0
db 59,64,0,52,64,142,98,52,0,0,68,0,0,64,0,0
db 59,0,30,66,64,0,63,64,0,47,64,135,34,47,0,0
db 63,0,0,66,0,30,61,64,0,64,64,0,69,64,0,57
db 64,135,34,57,0,0,61,0,0,64,0,0,69,0,30,68
db 64,0,71,64,0,76,64,0,64,64,136,26,64,0,0,68
db 0,0,71,0,0,76,0,134,102,83,64,139,32,71,64,131
db 66,83,0,135,94,59,64,130,74,71,0,139,62,71,64,90
db 59,0,135,94,59,64,129,82,71,0,141,16,59,0,145,14
db 83,64,131,66,83,0,130,14,83,64,129,82,83,0,133,110
db 83,64,0,177,7,110,131,66,145,83,0,131,126,83,64,0
db 177,7,90,131,66,145,83,0,131,126,71,64,0,177,7,70
db 131,66,145,71,0,131,126,59,64,0,177,7,50,131,66,145
db 59,0,131,126,177,7,30,135,64,7,20,135,64,7,10,0
db 255,47,0,77,84,114,107,0,0,0,28,0,255,3,20,43
db 61,43,61,43,61,43,61,43,61,43,61,43,61,43,61,43
db 61,43,61,0,255,47,0,77,84,114,107,0,0,2,226,0
db 255,3,12,72,97,114,109,111,110,121,32,76,101,97,100,0
db 206,84,130,189,104,158,59,64,90,59,0,120,64,64,60,64
db 0,90,66,64,60,66,0,104,68,64,60,68,0,129,8,68
db 64,129,112,69,64,30,68,0,90,222,0,0,158,68,64,30
db 69,0,129,22,68,0,0,67,64,14,67,0,0,66,64,14
db 66,0,2,65,64,14,65,0,0,64,64,2,64,0,132,102
db 59,64,90,59,0,120,64,64,60,64,0,90,66,64,60,66
db 0,104,68,64,60,68,0,76,68,64,120,69,64,30,68,0
db 30,68,64,30,69,0,60,68,0,30,64,64,30,64,0,30
db 59,64,30,59,0,90,68,64,120,69,64,14,68,0,46,68
db 64,14,69,0,16,68,0,30,64,64,30,64,0,30,59,64
db 30,59,0,30,57,64,30,57,0,30,56,64,129,82,56,0
db 0,55,64,14,55,0,0,54,64,2,54,0,132,72,73,64
db 129,96,74,64,30,73,0,46,73,64,28,74,0,32,73,0
db 30,69,64,60,69,0,14,64,64,60,64,0,16,62,64,60
db 62,0,30,61,64,30,61,0,30,62,64,30,62,0,30,61
db 64,60,61,0,30,57,64,2,57,0,88,52,64,129,6,52
db 0,0,51,64,14,51,0,2,50,64,14,49,64,2,49,0
db 14,50,0,132,28,73,64,60,73,0,0,74,64,44,74,0
db 0,73,64,44,73,0,2,74,64,14,74,0,16,73,64,30
db 73,0,30,69,64,30,69,0,30,64,64,30,64,0,90,68
db 64,30,68,0,0,69,64,30,69,0,0,68,64,30,68,0
db 0,69,64,30,69,0,0,68,64,30,68,0,0,69,64,30
db 69,0,0,68,64,14,68,0,16,64,64,44,64,0,30,59
db 64,2,59,0,74,57,64,90,57,0,30,56,64,131,36,56
db 0,0,55,64,14,55,0,0,54,64,14,54,0,2,53,64
db 14,53,0,0,52,64,2,52,0,133,94,66,64,129,112,68
db 64,30,66,0,90,66,64,30,68,0,130,28,66,0,0,65
db 64,14,65,0,2,64,64,14,64,0,0,63,64,2,63,0
db 131,110,68,64,120,69,64,30,68,0,90,69,0,0,68,64
db 14,68,0,30,64,64,14,64,0,32,59,64,14,59,0,16
db 68,64,129,6,68,0,30,64,64,14,64,0,32,59,64,14
db 59,0,16,68,64,129,22,68,0,30,64,64,30,64,0,30
db 59,64,14,59,0,30,56,64,14,56,0,32,56,64,30,56
db 0,0,57,64,30,57,0,0,58,64,30,58,0,0,57,64
db 30,57,0,0,58,64,30,58,0,0,57,64,30,57,0,30
db 57,64,30,57,0,30,52,64,30,52,0,30,47,64,30,47
db 0,30,45,64,30,45,0,30,44,64,30,44,0,90,55,64
db 2,55,0,12,57,64,129,36,57,0,2,55,64,14,55,0
db 30,52,64,30,52,0,16,50,64,14,50,0,16,47,64,30
db 47,0,14,45,64,14,45,0,32,43,64,30,43,0,0,40
db 64,131,126,39,64,14,40,0,0,38,64,16,39,0,0,37
db 64,14,38,0,0,36,64,16,37,0,0,35,64,14,36,0
db 0,34,64,16,35,0,0,33,64,14,34,0,0,32,64,16
db 33,0,0,31,64,14,32,0,0,30,64,16,31,0,0,29
db 64,14,30,0,0,28,64,16,29,0,14,28,0,0,255,47
db 0,77,84,114,107,0,0,0,28,0,255,3,20,73,32,87
db 97,110,116,32,116,111,32,66,114,101,97,107,32,70,114,101
db 101,0,255,47,0,77,84,114,107,0,0,0,13,0,255,3
db 5,81,85,69,69,78,0,255,47,0,77,84,114,107,0,0
db 0,20,0,255,3,12,83,101,113,117,101,110,99,101,100,32
db 98,121,0,255,47,0,77,84,114,107,0,0,0,22,0,255
db 3,14,84,114,105,115,116,97,32,76,121,99,111,115,107,121
db 0,255,47,0,10
songs_midi ends
END START
| 48.328593
| 275
| 0.599006
|
72081df22d1ce76f693385a34ab5bb19210ed299
| 712
|
asm
|
Assembly
|
oeis/331/A331794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/331/A331794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/331/A331794.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A331794: a(n) = Sum_{k=0..n} n^k * binomial(n+1,k) * binomial(n+1,k+1).
; Submitted by Christian Krause
; 1,4,33,400,6285,120456,2714173,70129984,2040655401,65956468600,2342384363561,90607200956064,3789863084012629,170370561866229648,8188781210421259365,418938023982360898816,22724122083014879989905,1302374806940392958470104,78626687855773733962122097,4986596926549498901318584800,331416333796884477330909808221,23031193209092734205352522336880,1670158273341887283946985630306253,126153649300616526069440564758715520,9908597897355503614924333721622938425,808021148363552815421706625640489273776
mov $1,$0
add $0,1
seq $1,99169 ; a(n) = (1/n) * Sum_{k=0..n-1} C(n,k) * C(n,k+1) * (n-1)^k.
mul $1,$0
mov $0,$1
| 71.2
| 491
| 0.817416
|
61f30368629a2ef4de2f740112b376ae922494b8
| 1,214
|
asm
|
Assembly
|
src/asm/win64/readm34t.asm
|
Pantarheon/libkoliba
|
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
|
[
"BSD-3-Clause"
] | null | null | null |
src/asm/win64/readm34t.asm
|
Pantarheon/libkoliba
|
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
|
[
"BSD-3-Clause"
] | null | null | null |
src/asm/win64/readm34t.asm
|
Pantarheon/libkoliba
|
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
|
[
"BSD-3-Clause"
] | null | null | null |
;; readm34t.asm
;;
;; Copyright 2021 G. Adam Stanislav
;; All rights reserved
;;
;; nasm -f win64 readm34t.asm
section .text
default rel
EXTERN KOLIBA_ScanM34tFormat, KOLIBA_ResetMatrix
EXTERN KOLIBA_ReadDoublesFromOpenFile, fopen, fclose
GLOBAL KOLIBA_ReadM34tFromOpenFile, KOLIBA_ReadM34tFromNamedFile
KOLIBA_ReadM34tFromOpenFile:
; On Entry:
;
; RCX = address of output KOLIBA_MATRIX
; RDX = handle of FILE to read from
;
; On Exit:
;
; RAX = KOLIBA_MATRIX on success, NULL on failure
mov r8d, 12
lea r9, [KOLIBA_ScanM34tFormat]
lea r10, [KOLIBA_ResetMatrix]
jmp KOLIBA_ReadDoublesFromOpenFile
align 16, int3
KOLIBA_ReadM34tFromNamedFile:
; On Entry:
;
; RCX = address of KOLIBA_MATRIX to read to
; RDX = file name to read from.
push rbx
sub rsp, 6*8
sub eax, eax
mov rbx, rcx
jrcxz .done
mov rcx, rdx
lea rdx, [rsp+40]
jrcxz .done
mov dword [rdx], 'rb'
call fopen
test rax, rax
mov rcx, rbx
mov rdx, rax
je .done
mov rbx, rdx
call KOLIBA_ReadM34tFromOpenFile
mov rcx, rbx
mov rbx, rax
call fclose
mov rax, rbx
.done:
add rsp, 6*8
pop rbx
ret
section .drectve info
db '-export:KOLIBA_ReadM34tFromOpenFile '
db '-export:KOLIBA_ReadM34tFromNamedFile '
| 15.564103
| 64
| 0.73229
|
a8dbd00d1058fb6bbd01b49b44e5d669add5ac09
| 742
|
asm
|
Assembly
|
example/example2.asm
|
Benni3D/MicroVM-8
|
6929dfe20ff2598688ef0a2b02f6c599e8e25419
|
[
"Apache-2.0"
] | 1
|
2018-02-01T17:45:36.000Z
|
2018-02-01T17:45:36.000Z
|
example/example2.asm
|
Benni3D/MicroVM-8
|
6929dfe20ff2598688ef0a2b02f6c599e8e25419
|
[
"Apache-2.0"
] | null | null | null |
example/example2.asm
|
Benni3D/MicroVM-8
|
6929dfe20ff2598688ef0a2b02f6c599e8e25419
|
[
"Apache-2.0"
] | null | null | null |
; Move 10 to register a
; and print the value of it to console
mov %a, $21
prints [100]
printi %a
printc $13
printc $13
; If you need register a,
; but if you need also the value of it,
; you can push the register to the stack
push %a
; Work a litle with register a
mov %a, $55
add %a, $71
div %a, $3
prints [180]
printi %a
printc $13
printc $13
; If you need the old value of register a,
; get it from the stack with popping it.
; And print the value of register a.
pop %a
prints [100]
printi %a
printc $13
; Close the program
exit
; Data down here
.space $100
.def "Original value of register a: ", $0
.space $180
.def "New value of a: ", $0
; Assemble it like in example1.asm and execute it
| 17.666667
| 49
| 0.650943
|
cf9e2f02b06fc2e5ad056b4e0b82ca5742aa0eb5
| 928
|
asm
|
Assembly
|
samples/a8/sound/mod/arrays5.asm
|
zbyti/Mad-Pascal
|
546cae9724828f93047080109488be7d0d07d47e
|
[
"MIT"
] | 1
|
2021-12-15T23:47:19.000Z
|
2021-12-15T23:47:19.000Z
|
samples/a8/sound/mod/arrays5.asm
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
samples/a8/sound/mod/arrays5.asm
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
effect
:256 dta [#&$e0] ;>>2
// finetune +0
tidl dta l(\
56/6,\
60/6,\
63/6,\
67/6,\
71/6,\
75/6,\
80/6,\
85/6,\
90/6,\
95/6,\
101/6,\
107/6,\
113/6,\
120/6,\
127/6,\
135/6,\
143/6,\
151/6,\
160/6,\
170/6,\
180/6,\
190/6,\
202/6,\
214/6,\
226/6,\
240/6,\
254/6,\
269/6,\
285/6,\
302/6,\
320/6,\
339/6,\
360/6,\
381/6,\
404/6,\
428/6,\
453/6,\
480/6,\
508/6,\
538/6,\
570/6,\
604/6,\
640/6,\
678/6,\
720/6,\
762/6,\
808/6,\
856/6)
tidh dta h(\
56/6,\
60/6,\
63/6,\
67/6,\
71/6,\
75/6,\
80/6,\
85/6,\
90/6,\
95/6,\
101/6,\
107/6,\
113/6,\
120/6,\
127/6,\
135/6,\
143/6,\
151/6,\
160/6,\
170/6,\
180/6,\
190/6,\
202/6,\
214/6,\
226/6,\
240/6,\
254/6,\
269/6,\
285/6,\
302/6,\
320/6,\
339/6,\
360/6,\
381/6,\
404/6,\
428/6,\
453/6,\
480/6,\
508/6,\
538/6,\
570/6,\
604/6,\
640/6,\
678/6,\
720/6,\
762/6,\
808/6,\
856/6)
| 8.672897
| 23
| 0.435345
|
0d24620039161b044b401cc684459ebfa47801cf
| 1,884
|
asm
|
Assembly
|
CODE/ELECTRONIC_SCALE/Beeper.asm
|
ZSAIm/-_STM8S-
|
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
|
[
"Apache-2.0"
] | 1
|
2019-04-01T11:29:58.000Z
|
2019-04-01T11:29:58.000Z
|
CODE/ELECTRONIC_SCALE/Beeper.asm
|
ZSAIm/ELECTRONIC_SCALE-STM8S_ASM
|
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
|
[
"Apache-2.0"
] | null | null | null |
CODE/ELECTRONIC_SCALE/Beeper.asm
|
ZSAIm/ELECTRONIC_SCALE-STM8S_ASM
|
2e8f931f2ea11a8e7dc8cb9655589d6c3d0ddd06
|
[
"Apache-2.0"
] | null | null | null |
stm8/
#include "Beeper.inc"
segment 'rom'
INTEL
.Beeper_Init.W
push CC
push A
pushw X
ldw X, #10000
ldw ADC_THRESHOLD_QUOTIENT, X
mov KEYBOARD_THRESHOLD_BUF_S4, #1
mov KEYBOARD_THRESHOLD_BUF_S3, #0
mov KEYBOARD_THRESHOLD_BUF_S2, #0
mov KEYBOARD_THRESHOLD_BUF_S1, #0
mov KEYBOARD_THRESHOLD_BUF_S0, #0
;mov CHAR_THRESHOLD5, #'1'
;mov CHAR_THRESHOLD4, #'0'
;mov CHAR_THRESHOLD3, #'0'
;mov CHAR_THRESHOLD2, #'0'
;mov CHAR_THRESHOLD1, #'0'
;mov CHAR_THRESHOLD0, #'0'
; PD4 : output
bset PD_DDR, #4
bset PD_CR1, #4
bset CLK_ICKR, #3
wait_LSI_ready:
btjf CLK_ICKR, #4, wait_LSI_ready
; measure LSI clock frequency
;bset AWU_CSR, #0
;ld A, #3EH
;ld AWU_APR, A
ld A, #05H
ld BEEP_CSR, A
;bset BEEP_CSR, #5
popw X
pop A
pop CC
ret
;***********************************************************
;name : ThresholdCheck()
;fun :
;params :
; IN : X : quotient (mass)
; Y : remainder (mass)
; OUT : NULL
;***********************************************************
.ThresholdCheck.W
push CC
push A
pushw X
pushw Y
btjt NET_BUF2,#7,no_exceed_threshold
; ----------
; HIGH STACK
;+4 XL - QUOTIENT
;+3 XH - QUOTIENT
;+2 YL - REMAINDER
;+1 YH - REMAINDER
; LOW STACK
; ----------
ldw X, ADC_THRESHOLD_QUOTIENT
cpw X, (3,SP)
jrnc no_exceed_threshold
exceed_threshold:
btjt BEEP_CSR, #5, threshold_check_exit
bset BEEP_CSR, #5
jra threshold_check_exit
no_exceed_threshold:
jreq exceed_threshold
bres BEEP_CSR, #5
threshold_check_exit:
popw Y
popw X
pop A
pop CC
ret
end
| 15.966102
| 60
| 0.518047
|
8897a78d01328a7f66cd67e1ed561924cb564f4b
| 445
|
asm
|
Assembly
|
oeis/084/A084675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/084/A084675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/084/A084675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A084675: Product of the first n digits of the Golden Ratio phi = 1.6180339... (treating 0's as if they were 1's).
; Submitted by Jamie Morken(s1.)
; 1,6,6,48,48,144,432,3888,31104,248832,1741824,6967296,62705664,501645312,4514807808,18059231232,144473849856,577895399424,4623163195392,9246326390784,9246326390784,36985305563136
seq $0,11551 ; Decimal expansion of phi truncated to n places.
seq $0,51801 ; Product of the nonzero digits of n.
| 63.571429
| 180
| 0.782022
|
b1d315b20f6a8cedf15dd8a74e781b9176616b24
| 1,748
|
asm
|
Assembly
|
Irvine/Examples/ch06/32 bit/Finite.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
Irvine/Examples/ch06/32 bit/Finite.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
Irvine/Examples/ch06/32 bit/Finite.asm
|
alieonsido/ASM_TESTING
|
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
|
[
"Apache-2.0"
] | null | null | null |
; Finite State Machine (Finite.asm)
; This program implements a finite state machine that
; accepts an integer with an optional leading sign.
INCLUDE Irvine32.inc
ENTER_KEY = 13
.data
InvalidInputMsg BYTE "Invalid input",13,10,0
.code
main PROC
call Clrscr
StateA:
call Getnext ; read next char into AL
cmp al,'+' ; leading + sign?
je StateB ; go to State B
cmp al,'-' ; leading - sign?
je StateB ; go to State B
call IsDigit ; ZF = 1 if AL contains a digit
jz StateC ; go to State C
call DisplayErrorMsg ; invalid input found
jmp Quit
StateB:
call Getnext ; read next char into AL
call IsDigit ; ZF = 1 if AL contains a digit
jz StateC
call DisplayErrorMsg ; invalid input found
jmp Quit
StateC:
call Getnext ; read next char into AL
call IsDigit ; ZF = 1 if AL contains a digit
jz StateC
cmp al,ENTER_KEY ; Enter key pressed?
je Quit ; yes: quit
call DisplayErrorMsg ; no: invalid input found
jmp Quit
Quit:
call Crlf
exit
main ENDP
;-----------------------------------------------
Getnext PROC
;
; Reads a character from standard input.
; Receives: nothing
; Returns: AL contains the character
;-----------------------------------------------
call ReadChar ; input from keyboard
call WriteChar ; echo on screen
ret
Getnext ENDP
;-----------------------------------------------
DisplayErrorMsg PROC
;
; Displays an error message indicating that
; the input stream contains illegal input.
; Receives: nothing.
; Returns: nothing
;-----------------------------------------------
push edx
mov edx,OFFSET InvalidInputMsg
call WriteString
pop edx
ret
DisplayErrorMsg ENDP
END main
| 23.621622
| 53
| 0.606407
|
0cdd265f838f289080f7d08447a7fd7a3826fc3e
| 221
|
asm
|
Assembly
|
programs/oeis/116/A116729.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/116/A116729.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/116/A116729.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A116729: Duplicate of A048840.
; 1,2,5,12,22,34,48,64,82,102,124,148,174,202,232,264,298,334,372,412,454,498,544,592,642,694,748,804,862,922
mov $2,$0
mul $0,3
trn $0,7
add $0,1
mov $1,$0
mov $3,$2
mul $3,$2
add $1,$3
| 18.416667
| 109
| 0.647059
|
bbc3548c5317b4080d821d072a20d37a82b8e512
| 39,614
|
asm
|
Assembly
|
functional-if/hashmap-graalvm/results/4-assembler/functional-hashmap-raw.asm
|
stephanrauh/GraalVM-Test
|
7fbf69ac10c4a36176bc4cad4e4be03b04b116ec
|
[
"Apache-2.0"
] | null | null | null |
functional-if/hashmap-graalvm/results/4-assembler/functional-hashmap-raw.asm
|
stephanrauh/GraalVM-Test
|
7fbf69ac10c4a36176bc4cad4e4be03b04b116ec
|
[
"Apache-2.0"
] | null | null | null |
functional-if/hashmap-graalvm/results/4-assembler/functional-hashmap-raw.asm
|
stephanrauh/GraalVM-Test
|
7fbf69ac10c4a36176bc4cad4e4be03b04b116ec
|
[
"Apache-2.0"
] | null | null | null |
Could not load hsdis-amd64.dylib; library not loadable; PrintAssembly is disabled
Compiled method (JVMCI) 212 22 java.lang.StringLatin1::equals (36 bytes)
total in heap [0x0000000116ef0f10,0x0000000116ef1398] = 1160
relocation [0x0000000116ef1078,0x0000000116ef1088] = 16
main code [0x0000000116ef10a0,0x0000000116ef118f] = 239
stub code [0x0000000116ef118f,0x0000000116ef1190] = 1
metadata [0x0000000116ef1190,0x0000000116ef1198] = 8
scopes data [0x0000000116ef1198,0x0000000116ef1200] = 104
scopes pcs [0x0000000116ef1200,0x0000000116ef1370] = 368
dependencies [0x0000000116ef1370,0x0000000116ef1378] = 8
nul chk table [0x0000000116ef1378,0x0000000116ef1388] = 16
JVMCI data [0x0000000116ef1388,0x0000000116ef1398] = 16
ImmutableOopMap{rdx=Oop rsi=Oop }pc offsets: 16 198 226 Compiled method (JVMCI) 214 23 java.lang.StringLatin1::hashCode (42 bytes)
total in heap [0x0000000116ef1690,0x0000000116ef1aa0] = 1040
relocation [0x0000000116ef17f8,0x0000000116ef1808] = 16
main code [0x0000000116ef1820,0x0000000116ef18cc] = 172
stub code [0x0000000116ef18cc,0x0000000116ef18d0] = 4
metadata [0x0000000116ef18d0,0x0000000116ef18d8] = 8
scopes data [0x0000000116ef18d8,0x0000000116ef1938] = 96
scopes pcs [0x0000000116ef1938,0x0000000116ef1a78] = 320
dependencies [0x0000000116ef1a78,0x0000000116ef1a80] = 8
nul chk table [0x0000000116ef1a80,0x0000000116ef1a90] = 16
JVMCI data [0x0000000116ef1a90,0x0000000116ef1aa0] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16 159 Compiled method (JVMCI) 214 24 java.lang.StringLatin1::indexOf (61 bytes)
total in heap [0x0000000116ef1b10,0x0000000116ef1db8] = 680
relocation [0x0000000116ef1c78,0x0000000116ef1c88] = 16
main code [0x0000000116ef1ca0,0x0000000116ef1d3e] = 158
stub code [0x0000000116ef1d3e,0x0000000116ef1d40] = 2
metadata [0x0000000116ef1d40,0x0000000116ef1d48] = 8
scopes data [0x0000000116ef1d48,0x0000000116ef1d60] = 24
scopes pcs [0x0000000116ef1d60,0x0000000116ef1d90] = 48
dependencies [0x0000000116ef1d90,0x0000000116ef1d98] = 8
nul chk table [0x0000000116ef1d98,0x0000000116ef1da8] = 16
JVMCI data [0x0000000116ef1da8,0x0000000116ef1db8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 55 Compiled method (JVMCI) 215 34 java.lang.Object::<init> (1 bytes)
total in heap [0x0000000116ef1e10,0x0000000116ef2028] = 536
relocation [0x0000000116ef1f78,0x0000000116ef1f80] = 8
main code [0x0000000116ef1f80,0x0000000116ef1fdb] = 91
stub code [0x0000000116ef1fdb,0x0000000116ef1fe0] = 5
metadata [0x0000000116ef1fe0,0x0000000116ef1fe8] = 8
scopes data [0x0000000116ef1fe8,0x0000000116ef1ff0] = 8
scopes pcs [0x0000000116ef1ff0,0x0000000116ef2010] = 32
dependencies [0x0000000116ef2010,0x0000000116ef2018] = 8
JVMCI data [0x0000000116ef2018,0x0000000116ef2028] = 16
Compiled method (JVMCI) 215 26 java.lang.ref.Reference::reachabilityFence (1 bytes)
total in heap [0x0000000116ef2090,0x0000000116ef2260] = 464
relocation [0x0000000116ef21f8,0x0000000116ef2200] = 8
main code [0x0000000116ef2200,0x0000000116ef221b] = 27
stub code [0x0000000116ef221b,0x0000000116ef2220] = 5
scopes data [0x0000000116ef2220,0x0000000116ef2228] = 8
scopes pcs [0x0000000116ef2228,0x0000000116ef2248] = 32
dependencies [0x0000000116ef2248,0x0000000116ef2250] = 8
JVMCI data [0x0000000116ef2250,0x0000000116ef2260] = 16
Running the benchmark with a cold JVM
Compiled method (JVMCI) 217 25 jdk.internal.jimage.ImageStringsReader::unmaskedHashCode (173 bytes)
total in heap [0x0000000116ef2890,0x0000000116ef2e80] = 1520
relocation [0x0000000116ef29f8,0x0000000116ef2a08] = 16
main code [0x0000000116ef2a20,0x0000000116ef2b60] = 320
metadata [0x0000000116ef2b60,0x0000000116ef2b88] = 40
scopes data [0x0000000116ef2b88,0x0000000116ef2c30] = 168
scopes pcs [0x0000000116ef2c30,0x0000000116ef2e50] = 544
dependencies [0x0000000116ef2e50,0x0000000116ef2e58] = 8
nul chk table [0x0000000116ef2e58,0x0000000116ef2e70] = 24
JVMCI data [0x0000000116ef2e70,0x0000000116ef2e80] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16
ImmutableOopMap{rax=NarrowOop rsi=Oop }pc offsets: 24
ImmutableOopMap{rsi=Oop }pc offsets: 277 307 Compiled method (JVMCI) 217 27 java.lang.String::hashCode (49 bytes)
total in heap [0x0000000116ef2e90,0x0000000116ef33e0] = 1360
relocation [0x0000000116ef2ff8,0x0000000116ef3008] = 16
main code [0x0000000116ef3020,0x0000000116ef3160] = 320
metadata [0x0000000116ef3160,0x0000000116ef3178] = 24
scopes data [0x0000000116ef3178,0x0000000116ef3218] = 160
scopes pcs [0x0000000116ef3218,0x0000000116ef33b8] = 416
dependencies [0x0000000116ef33b8,0x0000000116ef33c0] = 8
nul chk table [0x0000000116ef33c0,0x0000000116ef33d0] = 16
JVMCI data [0x0000000116ef33d0,0x0000000116ef33e0] = 16
ImmutableOopMap{rsi=Oop r10=NarrowOop }pc offsets: 114
ImmutableOopMap{rsi=Oop }pc offsets: 275
ImmutableOopMap{rsi=Oop r10=Oop }pc offsets: 307 Compiled method (JVMCI) 218 28 java.nio.Buffer::hasRemaining (17 bytes)
total in heap [0x0000000116ef2590,0x0000000116ef2870] = 736
relocation [0x0000000116ef26f8,0x0000000116ef2708] = 16
main code [0x0000000116ef2720,0x0000000116ef27bc] = 156
stub code [0x0000000116ef27bc,0x0000000116ef27c0] = 4
metadata [0x0000000116ef27c0,0x0000000116ef27c8] = 8
scopes data [0x0000000116ef27c8,0x0000000116ef27e8] = 32
scopes pcs [0x0000000116ef27e8,0x0000000116ef2858] = 112
dependencies [0x0000000116ef2858,0x0000000116ef2860] = 8
JVMCI data [0x0000000116ef2860,0x0000000116ef2870] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 143 Compiled method (JVMCI) 219 29 ! java.nio.DirectByteBuffer::get (28 bytes)
total in heap [0x0000000116ef3410,0x0000000116ef3778] = 872
relocation [0x0000000116ef3578,0x0000000116ef3588] = 16
main code [0x0000000116ef35a0,0x0000000116ef364d] = 173
stub code [0x0000000116ef364d,0x0000000116ef3650] = 3
metadata [0x0000000116ef3650,0x0000000116ef3668] = 24
scopes data [0x0000000116ef3668,0x0000000116ef36b0] = 72
scopes pcs [0x0000000116ef36b0,0x0000000116ef3760] = 176
dependencies [0x0000000116ef3760,0x0000000116ef3768] = 8
JVMCI data [0x0000000116ef3768,0x0000000116ef3778] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 160 Compiled method (JVMCI) 220 30 java.nio.Buffer::nextGetIndex (31 bytes)
total in heap [0x0000000116ef3790,0x0000000116ef3aa8] = 792
relocation [0x0000000116ef38f8,0x0000000116ef3908] = 16
main code [0x0000000116ef3920,0x0000000116ef39c1] = 161
stub code [0x0000000116ef39c1,0x0000000116ef39c8] = 7
metadata [0x0000000116ef39c8,0x0000000116ef39d0] = 8
scopes data [0x0000000116ef39d0,0x0000000116ef3a00] = 48
scopes pcs [0x0000000116ef3a00,0x0000000116ef3a90] = 144
dependencies [0x0000000116ef3a90,0x0000000116ef3a98] = 8
JVMCI data [0x0000000116ef3a98,0x0000000116ef3aa8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 148 Compiled method (JVMCI) 220 31 java.nio.DirectByteBuffer::ix (10 bytes)
total in heap [0x0000000116ef2290,0x0000000116ef24d8] = 584
relocation [0x0000000116ef23f8,0x0000000116ef2400] = 8
main code [0x0000000116ef2400,0x0000000116ef2462] = 98
stub code [0x0000000116ef2462,0x0000000116ef2468] = 6
metadata [0x0000000116ef2468,0x0000000116ef2470] = 8
scopes data [0x0000000116ef2470,0x0000000116ef2480] = 16
scopes pcs [0x0000000116ef2480,0x0000000116ef24c0] = 64
dependencies [0x0000000116ef24c0,0x0000000116ef24c8] = 8
JVMCI data [0x0000000116ef24c8,0x0000000116ef24d8] = 16
Compiled method (JVMCI) 220 32 jdk.internal.misc.Unsafe::getByte (7 bytes)
total in heap [0x0000000116ef3b10,0x0000000116ef3d38] = 552
relocation [0x0000000116ef3c78,0x0000000116ef3c80] = 8
main code [0x0000000116ef3c80,0x0000000116ef3cde] = 94
stub code [0x0000000116ef3cde,0x0000000116ef3ce0] = 2
metadata [0x0000000116ef3ce0,0x0000000116ef3ce8] = 8
scopes data [0x0000000116ef3ce8,0x0000000116ef3cf0] = 8
scopes pcs [0x0000000116ef3cf0,0x0000000116ef3d20] = 48
dependencies [0x0000000116ef3d20,0x0000000116ef3d28] = 8
JVMCI data [0x0000000116ef3d28,0x0000000116ef3d38] = 16
Compiled method (JVMCI) 234 36 java.lang.StringLatin1::lastIndexOf (40 bytes)
total in heap [0x0000000116ef4090,0x0000000116ef4608] = 1400
relocation [0x0000000116ef41f8,0x0000000116ef4210] = 24
main code [0x0000000116ef4220,0x0000000116ef4361] = 321
stub code [0x0000000116ef4361,0x0000000116ef4368] = 7
metadata [0x0000000116ef4368,0x0000000116ef4378] = 16
scopes data [0x0000000116ef4378,0x0000000116ef43f0] = 120
scopes pcs [0x0000000116ef43f0,0x0000000116ef45e0] = 496
dependencies [0x0000000116ef45e0,0x0000000116ef45e8] = 8
nul chk table [0x0000000116ef45e8,0x0000000116ef45f8] = 16
JVMCI data [0x0000000116ef45f8,0x0000000116ef4608] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 28 252 280 308 Compiled method (JVMCI) 237 35 java.util.HashMap$Node::<init> (26 bytes)
total in heap [0x0000000116ef5110,0x0000000116ef56d0] = 1472
relocation [0x0000000116ef5278,0x0000000116ef5290] = 24
main code [0x0000000116ef52a0,0x0000000116ef5585] = 741
stub code [0x0000000116ef5585,0x0000000116ef5588] = 3
metadata [0x0000000116ef5588,0x0000000116ef5598] = 16
scopes data [0x0000000116ef5598,0x0000000116ef55b8] = 32
scopes pcs [0x0000000116ef55b8,0x0000000116ef56b8] = 256
dependencies [0x0000000116ef56b8,0x0000000116ef56c0] = 8
JVMCI data [0x0000000116ef56c0,0x0000000116ef56d0] = 16
Compiled method (JVMCI) 243 38 jdk.internal.jimage.ImageStringsReader::charsFromByteBufferLength (47 bytes)
total in heap [0x0000000116ef5710,0x0000000116ef5da8] = 1688
relocation [0x0000000116ef5878,0x0000000116ef5890] = 24
main code [0x0000000116ef58a0,0x0000000116ef5a09] = 361
stub code [0x0000000116ef5a09,0x0000000116ef5a10] = 7
oops [0x0000000116ef5a10,0x0000000116ef5a18] = 8
metadata [0x0000000116ef5a18,0x0000000116ef5a48] = 48
scopes data [0x0000000116ef5a48,0x0000000116ef5b10] = 200
scopes pcs [0x0000000116ef5b10,0x0000000116ef5d80] = 624
dependencies [0x0000000116ef5d80,0x0000000116ef5d88] = 8
nul chk table [0x0000000116ef5d88,0x0000000116ef5d98] = 16
JVMCI data [0x0000000116ef5d98,0x0000000116ef5da8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16 163 256 284 312 348 Compiled method (JVMCI) 244 37 java.util.HashMap::newNode (13 bytes)
total in heap [0x0000000116ef5e10,0x0000000116ef6130] = 800
relocation [0x0000000116ef5f78,0x0000000116ef5f90] = 24
main code [0x0000000116ef5fa0,0x0000000116ef60ae] = 270
stub code [0x0000000116ef60ae,0x0000000116ef60b0] = 2
metadata [0x0000000116ef60b0,0x0000000116ef60c0] = 16
scopes data [0x0000000116ef60c0,0x0000000116ef60d8] = 24
scopes pcs [0x0000000116ef60d8,0x0000000116ef6118] = 64
dependencies [0x0000000116ef6118,0x0000000116ef6120] = 8
JVMCI data [0x0000000116ef6120,0x0000000116ef6130] = 16
ImmutableOopMap{rcx=Oop r8=Oop r9=Oop }pc offsets: 224 257 Compiled method (JVMCI) 247 39 jdk.internal.jimage.ImageStringsReader::charsFromByteBuffer (186 bytes)
total in heap [0x0000000116ef6510,0x0000000116ef6c48] = 1848
relocation [0x0000000116ef6678,0x0000000116ef6690] = 24
main code [0x0000000116ef66a0,0x0000000116ef6830] = 400
oops [0x0000000116ef6830,0x0000000116ef6838] = 8
metadata [0x0000000116ef6838,0x0000000116ef6868] = 48
scopes data [0x0000000116ef6868,0x0000000116ef6968] = 256
scopes pcs [0x0000000116ef6968,0x0000000116ef6c18] = 688
dependencies [0x0000000116ef6c18,0x0000000116ef6c20] = 8
nul chk table [0x0000000116ef6c20,0x0000000116ef6c38] = 24
JVMCI data [0x0000000116ef6c38,0x0000000116ef6c48] = 16
ImmutableOopMap{rdx=Oop rsi=Oop }pc offsets: 16 92 192 275 305 333 371 Compiled method (JVMCI) 247 40 java.lang.StringUTF16::compress (50 bytes)
total in heap [0x0000000116ef6c90,0x0000000116ef7010] = 896
relocation [0x0000000116ef6df8,0x0000000116ef6e00] = 8
main code [0x0000000116ef6e00,0x0000000116ef6f64] = 356
stub code [0x0000000116ef6f64,0x0000000116ef6f68] = 4
metadata [0x0000000116ef6f68,0x0000000116ef6f70] = 8
scopes data [0x0000000116ef6f70,0x0000000116ef6f90] = 32
scopes pcs [0x0000000116ef6f90,0x0000000116ef6fe0] = 80
dependencies [0x0000000116ef6fe0,0x0000000116ef6fe8] = 8
nul chk table [0x0000000116ef6fe8,0x0000000116ef7000] = 24
JVMCI data [0x0000000116ef7000,0x0000000116ef7010] = 16
ImmutableOopMap{rcx=Oop rsi=Oop }pc offsets: 16 18 343 Compiled method (JVMCI) 247 41 java.util.HashMap::afterNodeInsertion (1 bytes)
total in heap [0x0000000116ef6190,0x0000000116ef63a0] = 528
relocation [0x0000000116ef62f8,0x0000000116ef6300] = 8
main code [0x0000000116ef6300,0x0000000116ef635b] = 91
stub code [0x0000000116ef635b,0x0000000116ef6360] = 5
scopes data [0x0000000116ef6360,0x0000000116ef6368] = 8
scopes pcs [0x0000000116ef6368,0x0000000116ef6388] = 32
dependencies [0x0000000116ef6388,0x0000000116ef6390] = 8
JVMCI data [0x0000000116ef6390,0x0000000116ef63a0] = 16
Compiled method (JVMCI) 247 42 java.lang.String::coder (15 bytes)
total in heap [0x0000000116ef7090,0x0000000116ef72b8] = 552
relocation [0x0000000116ef71f8,0x0000000116ef7200] = 8
main code [0x0000000116ef7200,0x0000000116ef725f] = 95
stub code [0x0000000116ef725f,0x0000000116ef7260] = 1
metadata [0x0000000116ef7260,0x0000000116ef7268] = 8
scopes data [0x0000000116ef7268,0x0000000116ef7270] = 8
scopes pcs [0x0000000116ef7270,0x0000000116ef72a0] = 48
dependencies [0x0000000116ef72a0,0x0000000116ef72a8] = 8
JVMCI data [0x0000000116ef72a8,0x0000000116ef72b8] = 16
Compiled method (JVMCI) 277 43 % java.util.HashMap::resize @ 151 (356 bytes)
total in heap [0x0000000116ef9090,0x0000000116efb870] = 10208
relocation [0x0000000116ef91f8,0x0000000116ef9278] = 128
main code [0x0000000116ef9280,0x0000000116efa841] = 5569
stub code [0x0000000116efa841,0x0000000116efa848] = 7
metadata [0x0000000116efa848,0x0000000116efa870] = 40
scopes data [0x0000000116efa870,0x0000000116efac28] = 952
scopes pcs [0x0000000116efac28,0x0000000116efb7f8] = 3024
dependencies [0x0000000116efb7f8,0x0000000116efb800] = 8
nul chk table [0x0000000116efb800,0x0000000116efb820] = 32
speculations [0x0000000116efb820,0x0000000116efb860] = 64
JVMCI data [0x0000000116efb860,0x0000000116efb870] = 16
ImmutableOopMap{rbx=Oop r8=Oop r11=Oop [24]=Oop }pc offsets: 282
ImmutableOopMap{r8=Oop r14=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 749
ImmutableOopMap{rax=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 782
ImmutableOopMap{rax=Oop rcx=Oop rdx=Oop rbx=Oop r8=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 898
ImmutableOopMap{rax=Oop rcx=Oop rbp=Oop rsi=Oop r10=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 912
ImmutableOopMap{r14=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 2027
ImmutableOopMap{rax=Oop rbx=Oop r14=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 2129
ImmutableOopMap{rax=Oop rcx=Oop rdx=Oop r8=Oop r14=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 3010
ImmutableOopMap{rax=Oop rbp=Oop rsi=Oop r10=Oop r14=Oop [8]=Oop [16]=Oop [24]=Oop }pc offsets: 3024
ImmutableOopMap{rcx=Oop r10=Oop r11=Oop [16]=Oop }pc offsets: 4977
ImmutableOopMap{r10=Oop [16]=Oop [24]=Oop }pc offsets: 5024
ImmutableOopMap{r14=Oop [16]=Oop [24]=Oop }pc offsets: 5091
ImmutableOopMap{r8=Oop r14=Oop [16]=Oop [24]=Oop }pc offsets: 5132
ImmutableOopMap{rax=Oop rbx=Oop r8=Oop r10=Oop r11=Oop }pc offsets: 5209
ImmutableOopMap{rax=Oop rcx=Oop r8=Oop r10=Oop r11=Oop r14=Oop [16]=Oop }pc offsets: 5249
ImmutableOopMap{rax=Oop rbx=Oop r14=Oop [16]=Oop [24]=Oop }pc offsets: 5277
ImmutableOopMap{r10=Oop r11=Oop [16]=Oop }pc offsets: 5328
ImmutableOopMap{rax=Oop rcx=Oop r8=Oop r10=Oop r11=Oop r14=Oop [16]=Oop }pc offsets: 5370
ImmutableOopMap{rax=Oop rcx=Oop rbx=Oop r8=Oop r10=Oop [16]=Oop [24]=Oop }pc offsets: 5405
ImmutableOopMap{rcx=Oop r10=Oop r14=Oop [16]=Oop [24]=Oop }pc offsets: 5447
ImmutableOopMap{rax=Oop rcx=Oop rbx=Oop r8=Oop r10=Oop r11=Oop [16]=Oop }pc offsets: 5489
ImmutableOopMap{r10=Oop [16]=Oop [24]=Oop }pc offsets: 5525
ImmutableOopMap{rcx=Oop r10=Oop r14=Oop [16]=Oop [24]=Oop }pc offsets: 5556 Compiled method (JVMCI) 283 44 java.util.HashMap::hash (20 bytes)
total in heap [0x0000000116ef8a90,0x0000000116ef9010] = 1408
relocation [0x0000000116ef8bf8,0x0000000116ef8c08] = 16
main code [0x0000000116ef8c20,0x0000000116ef8d37] = 279
stub code [0x0000000116ef8d37,0x0000000116ef8d38] = 1
metadata [0x0000000116ef8d38,0x0000000116ef8d60] = 40
scopes data [0x0000000116ef8d60,0x0000000116ef8e10] = 176
scopes pcs [0x0000000116ef8e10,0x0000000116ef8fe0] = 464
dependencies [0x0000000116ef8fe0,0x0000000116ef8fe8] = 8
nul chk table [0x0000000116ef8fe8,0x0000000116ef9000] = 24
JVMCI data [0x0000000116ef9000,0x0000000116ef9010] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16
ImmutableOopMap{}pc offsets: 106
ImmutableOopMap{rsi=Oop r11=NarrowOop }pc offsets: 116
ImmutableOopMap{rsi=Oop }pc offsets: 234
ImmutableOopMap{rsi=Oop r11=Oop }pc offsets: 266 Compiled method (JVMCI) 289 56 java.lang.String::isLatin1 (19 bytes)
total in heap [0x0000000116efca10,0x0000000116efccd8] = 712
relocation [0x0000000116efcb78,0x0000000116efcb88] = 16
main code [0x0000000116efcba0,0x0000000116efcc3a] = 154
stub code [0x0000000116efcc3a,0x0000000116efcc40] = 6
metadata [0x0000000116efcc40,0x0000000116efcc48] = 8
scopes data [0x0000000116efcc48,0x0000000116efcc60] = 24
scopes pcs [0x0000000116efcc60,0x0000000116efccc0] = 96
dependencies [0x0000000116efccc0,0x0000000116efccc8] = 8
JVMCI data [0x0000000116efccc8,0x0000000116efccd8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 141 Compiled method (JVMCI) 290 57 java.lang.String::length (11 bytes)
total in heap [0x0000000116efcf10,0x0000000116efd1a8] = 664
relocation [0x0000000116efd078,0x0000000116efd080] = 8
main code [0x0000000116efd080,0x0000000116efd0ff] = 127
stub code [0x0000000116efd0ff,0x0000000116efd100] = 1
metadata [0x0000000116efd100,0x0000000116efd110] = 16
scopes data [0x0000000116efd110,0x0000000116efd130] = 32
scopes pcs [0x0000000116efd130,0x0000000116efd180] = 80
dependencies [0x0000000116efd180,0x0000000116efd188] = 8
nul chk table [0x0000000116efd188,0x0000000116efd198] = 16
JVMCI data [0x0000000116efd198,0x0000000116efd1a8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 83 Compiled method (JVMCI) 293 63 java.lang.String::charAt (25 bytes)
total in heap [0x0000000116efe190,0x0000000116efe558] = 968
relocation [0x0000000116efe2f8,0x0000000116efe308] = 16
main code [0x0000000116efe320,0x0000000116efe3fb] = 219
stub code [0x0000000116efe3fb,0x0000000116efe400] = 5
metadata [0x0000000116efe400,0x0000000116efe418] = 24
scopes data [0x0000000116efe418,0x0000000116efe460] = 72
scopes pcs [0x0000000116efe460,0x0000000116efe530] = 208
dependencies [0x0000000116efe530,0x0000000116efe538] = 8
nul chk table [0x0000000116efe538,0x0000000116efe548] = 16
JVMCI data [0x0000000116efe548,0x0000000116efe558] = 16
ImmutableOopMap{rax=NarrowOop rsi=Oop }pc offsets: 103
ImmutableOopMap{rsi=Oop }pc offsets: 182 Compiled method (JVMCI) 294 64 java.lang.StringLatin1::charAt (28 bytes)
total in heap [0x0000000116efe590,0x0000000116efe870] = 736
relocation [0x0000000116efe6f8,0x0000000116efe700] = 8
main code [0x0000000116efe700,0x0000000116efe77d] = 125
stub code [0x0000000116efe77d,0x0000000116efe780] = 3
metadata [0x0000000116efe780,0x0000000116efe788] = 8
scopes data [0x0000000116efe788,0x0000000116efe7b8] = 48
scopes pcs [0x0000000116efe7b8,0x0000000116efe848] = 144
dependencies [0x0000000116efe848,0x0000000116efe850] = 8
nul chk table [0x0000000116efe850,0x0000000116efe860] = 16
JVMCI data [0x0000000116efe860,0x0000000116efe870] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 24 96 Compiled method (JVMCI) 303 68 java.lang.String::regionMatches (187 bytes)
total in heap [0x0000000116efee90,0x0000000116eff730] = 2208
relocation [0x0000000116efeff8,0x0000000116eff008] = 16
main code [0x0000000116eff020,0x0000000116eff25c] = 572
stub code [0x0000000116eff25c,0x0000000116eff260] = 4
metadata [0x0000000116eff260,0x0000000116eff280] = 32
scopes data [0x0000000116eff280,0x0000000116eff3a8] = 296
scopes pcs [0x0000000116eff3a8,0x0000000116eff6f8] = 848
dependencies [0x0000000116eff6f8,0x0000000116eff700] = 8
nul chk table [0x0000000116eff700,0x0000000116eff720] = 32
JVMCI data [0x0000000116eff720,0x0000000116eff730] = 16
ImmutableOopMap{rsi=Oop r10=Oop }pc offsets: 83
ImmutableOopMap{rbx=NarrowOop rsi=Oop r10=Oop r11=NarrowOop }pc offsets: 112
ImmutableOopMap{rbx=NarrowOop rsi=Oop r11=NarrowOop [0]=Oop }pc offsets: 156
ImmutableOopMap{rsi=Oop r11=Oop }pc offsets: 402
ImmutableOopMap{rbx=Oop r11=Oop }pc offsets: 450 Compiled method (JVMCI) 303 69 java.util.Objects::requireNonNull (14 bytes)
total in heap [0x0000000116eff790,0x0000000116eff9b8] = 552
relocation [0x0000000116eff8f8,0x0000000116eff900] = 8
main code [0x0000000116eff900,0x0000000116eff934] = 52
stub code [0x0000000116eff934,0x0000000116eff938] = 4
metadata [0x0000000116eff938,0x0000000116eff940] = 8
scopes data [0x0000000116eff940,0x0000000116eff950] = 16
scopes pcs [0x0000000116eff950,0x0000000116eff990] = 64
dependencies [0x0000000116eff990,0x0000000116eff998] = 8
nul chk table [0x0000000116eff998,0x0000000116eff9a8] = 16
JVMCI data [0x0000000116eff9a8,0x0000000116eff9b8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16 Compiled method (JVMCI) 312 70 java.lang.StringLatin1::replace (196 bytes)
total in heap [0x0000000116f01510,0x0000000116f02020] = 2832
relocation [0x0000000116f01678,0x0000000116f016a8] = 48
main code [0x0000000116f016c0,0x0000000116f01a5e] = 926
stub code [0x0000000116f01a5e,0x0000000116f01a60] = 2
metadata [0x0000000116f01a60,0x0000000116f01a78] = 24
scopes data [0x0000000116f01a78,0x0000000116f01ba8] = 304
scopes pcs [0x0000000116f01ba8,0x0000000116f01ff8] = 1104
dependencies [0x0000000116f01ff8,0x0000000116f02000] = 8
nul chk table [0x0000000116f02000,0x0000000116f02010] = 16
JVMCI data [0x0000000116f02010,0x0000000116f02020] = 16
ImmutableOopMap{r10=Oop }pc offsets: 38 624
ImmutableOopMap{rdx=Oop }pc offsets: 665
ImmutableOopMap{rdx=Oop r10=Oop }pc offsets: 717
ImmutableOopMap{r10=Oop }pc offsets: 745
ImmutableOopMap{rdx=Oop }pc offsets: 773
ImmutableOopMap{r10=Oop }pc offsets: 801 829 857
ImmutableOopMap{rdx=Oop r10=Oop }pc offsets: 885 913 Compiled method (JVMCI) 313 67 jdk.internal.org.objectweb.asm.ByteVector::putUTF8 (142 bytes)
total in heap [0x0000000116f02810,0x0000000116f03608] = 3576
relocation [0x0000000116f02978,0x0000000116f029a0] = 40
main code [0x0000000116f029a0,0x0000000116f02f64] = 1476
stub code [0x0000000116f02f64,0x0000000116f02f68] = 4
metadata [0x0000000116f02f68,0x0000000116f02fb0] = 72
scopes data [0x0000000116f02fb0,0x0000000116f03180] = 464
scopes pcs [0x0000000116f03180,0x0000000116f035d0] = 1104
dependencies [0x0000000116f035d0,0x0000000116f035d8] = 8
nul chk table [0x0000000116f035d8,0x0000000116f035f8] = 32
JVMCI data [0x0000000116f035f8,0x0000000116f03608] = 16
ImmutableOopMap{rdx=Oop rsi=Oop }pc offsets: 80
ImmutableOopMap{rdx=Oop rsi=Oop [32]=NarrowOop }pc offsets: 94
ImmutableOopMap{rdx=Oop rsi=Oop rdi=NarrowOop [32]=NarrowOop }pc offsets: 127
ImmutableOopMap{r11=Oop [16]=Oop [24]=Oop [32]=NarrowOop }pc offsets: 992
ImmutableOopMap{r11=Oop r13=Oop [16]=Oop }pc offsets: 1207
ImmutableOopMap{r11=Oop [16]=Oop }pc offsets: 1254 1290
ImmutableOopMap{r11=Oop r13=Oop [16]=Oop }pc offsets: 1324
ImmutableOopMap{rdx=Oop r11=Oop }pc offsets: 1392
ImmutableOopMap{r11=Oop [16]=Oop }pc offsets: 1430 Time elapsed: 67.672 ms result=100
Warmup phase
Compiled method (JVMCI) 345 103 java.lang.Integer::intValue (5 bytes)
total in heap [0x0000000116f09210,0x0000000116f09438] = 552
relocation [0x0000000116f09378,0x0000000116f09380] = 8
main code [0x0000000116f09380,0x0000000116f093de] = 94
stub code [0x0000000116f093de,0x0000000116f093e0] = 2
metadata [0x0000000116f093e0,0x0000000116f093e8] = 8
scopes data [0x0000000116f093e8,0x0000000116f093f0] = 8
scopes pcs [0x0000000116f093f0,0x0000000116f09420] = 48
dependencies [0x0000000116f09420,0x0000000116f09428] = 8
JVMCI data [0x0000000116f09428,0x0000000116f09438] = 16
Compiled method (JVMCI) 352 104 java.util.HashMap::getNode (148 bytes)
total in heap [0x0000000116f09d90,0x0000000116f0a900] = 2928
relocation [0x0000000116f09ef8,0x0000000116f09f38] = 64
constants [0x0000000116f09f40,0x0000000116f09f60] = 32
main code [0x0000000116f09f60,0x0000000116f0a344] = 996
stub code [0x0000000116f0a344,0x0000000116f0a348] = 4
metadata [0x0000000116f0a348,0x0000000116f0a378] = 48
scopes data [0x0000000116f0a378,0x0000000116f0a4d0] = 344
scopes pcs [0x0000000116f0a4d0,0x0000000116f0a8b0] = 992
dependencies [0x0000000116f0a8b0,0x0000000116f0a8b8] = 8
nul chk table [0x0000000116f0a8b8,0x0000000116f0a8f0] = 56
JVMCI data [0x0000000116f0a8f0,0x0000000116f0a900] = 16
ImmutableOopMap{rcx=Oop rbx=Oop rsi=Oop r10=NarrowOop r11=Oop }pc offsets: 175
ImmutableOopMap{rcx=Oop rbx=Oop rsi=Oop r10=NarrowOop r11=NarrowOop }pc offsets: 420
ImmutableOopMap{rcx=Oop rbx=Oop rsi=Oop r9=NarrowOop r10=NarrowOop r11=NarrowOop }pc offsets: 436
ImmutableOopMap{rdx=Oop rbp=Oop rsi=NarrowOop }pc offsets: 595 606
ImmutableOopMap{rdx=Oop rbp=Oop }pc offsets: 616
ImmutableOopMap{rbp=Oop r10=Oop [0]=Oop }pc offsets: 648
ImmutableOopMap{[0]=Oop [8]=Oop }pc offsets: 684
ImmutableOopMap{rcx=Oop rsi=Oop }pc offsets: 849
ImmutableOopMap{rdx=Oop [8]=Oop }pc offsets: 892
ImmutableOopMap{rbx=Oop [8]=Oop }pc offsets: 940 Compiled method (JVMCI) 356 105 java.lang.Integer::valueOf (32 bytes)
total in heap [0x0000000116f09690,0x0000000116f09a28] = 920
relocation [0x0000000116f097f8,0x0000000116f09810] = 24
main code [0x0000000116f09820,0x0000000116f09932] = 274
stub code [0x0000000116f09932,0x0000000116f09938] = 6
metadata [0x0000000116f09938,0x0000000116f09948] = 16
scopes data [0x0000000116f09948,0x0000000116f09970] = 40
scopes pcs [0x0000000116f09970,0x0000000116f09a10] = 160
dependencies [0x0000000116f09a10,0x0000000116f09a18] = 8
JVMCI data [0x0000000116f09a18,0x0000000116f09a28] = 16
ImmutableOopMap{}pc offsets: 195 233 261 Compiled method (JVMCI) 365 106 java.util.HashMap::get (23 bytes)
total in heap [0x0000000116f0af90,0x0000000116f0bec8] = 3896
relocation [0x0000000116f0b0f8,0x0000000116f0b138] = 64
constants [0x0000000116f0b140,0x0000000116f0b160] = 32
main code [0x0000000116f0b160,0x0000000116f0b639] = 1241
stub code [0x0000000116f0b639,0x0000000116f0b640] = 7
metadata [0x0000000116f0b640,0x0000000116f0b698] = 88
scopes data [0x0000000116f0b698,0x0000000116f0b8f8] = 608
scopes pcs [0x0000000116f0b8f8,0x0000000116f0be78] = 1408
dependencies [0x0000000116f0be78,0x0000000116f0be80] = 8
nul chk table [0x0000000116f0be80,0x0000000116f0beb8] = 56
JVMCI data [0x0000000116f0beb8,0x0000000116f0bec8] = 16
ImmutableOopMap{rdx=Oop rsi=Oop [16]=Oop }pc offsets: 85
ImmutableOopMap{[8]=Oop [16]=Oop }pc offsets: 454
ImmutableOopMap{rdx=Oop r11=NarrowOop [8]=Oop [16]=Oop }pc offsets: 487
ImmutableOopMap{rdx=Oop rbx=Oop rsi=Oop r9=NarrowOop r11=NarrowOop [16]=Oop }pc offsets: 668
ImmutableOopMap{rdx=Oop rbx=Oop rsi=Oop rdi=NarrowOop r9=NarrowOop r11=NarrowOop [16]=Oop }pc offsets: 684
ImmutableOopMap{rdx=Oop rbp=Oop rsi=NarrowOop [16]=Oop }pc offsets: 851 862
ImmutableOopMap{rdx=Oop rbp=Oop [16]=Oop }pc offsets: 872
ImmutableOopMap{[8]=Oop [16]=Oop }pc offsets: 932
ImmutableOopMap{rsi=Oop [16]=Oop }pc offsets: 1032
ImmutableOopMap{rdx=Oop [16]=Oop }pc offsets: 1089
ImmutableOopMap{rbx=Oop [16]=Oop }pc offsets: 1125
ImmutableOopMap{rdx=Oop rsi=Oop }pc offsets: 1158
ImmutableOopMap{rsi=Oop r11=Oop [16]=Oop }pc offsets: 1195 Compiled method (JVMCI) 368 107 java.lang.Integer::hashCode (8 bytes)
total in heap [0x0000000116f09a90,0x0000000116f09cb8] = 552
relocation [0x0000000116f09bf8,0x0000000116f09c00] = 8
main code [0x0000000116f09c00,0x0000000116f09c5e] = 94
stub code [0x0000000116f09c5e,0x0000000116f09c60] = 2
metadata [0x0000000116f09c60,0x0000000116f09c68] = 8
scopes data [0x0000000116f09c68,0x0000000116f09c70] = 8
scopes pcs [0x0000000116f09c70,0x0000000116f09ca0] = 48
dependencies [0x0000000116f09ca0,0x0000000116f09ca8] = 8
JVMCI data [0x0000000116f09ca8,0x0000000116f09cb8] = 16
Compiled method (JVMCI) 368 108 java.lang.Integer::hashCode (2 bytes)
total in heap [0x0000000116f0ad90,0x0000000116f0af78] = 488
relocation [0x0000000116f0aef8,0x0000000116f0af00] = 8
main code [0x0000000116f0af00,0x0000000116f0af1d] = 29
stub code [0x0000000116f0af1d,0x0000000116f0af20] = 3
metadata [0x0000000116f0af20,0x0000000116f0af28] = 8
scopes data [0x0000000116f0af28,0x0000000116f0af30] = 8
scopes pcs [0x0000000116f0af30,0x0000000116f0af60] = 48
dependencies [0x0000000116f0af60,0x0000000116f0af68] = 8
JVMCI data [0x0000000116f0af68,0x0000000116f0af78] = 16
Compiled method (JVMCI) 370 109 java.util.Optional::ofNullable (15 bytes)
total in heap [0x0000000116f0bf10,0x0000000116f0c1f0] = 736
relocation [0x0000000116f0c078,0x0000000116f0c090] = 24
main code [0x0000000116f0c0a0,0x0000000116f0c152] = 178
stub code [0x0000000116f0c152,0x0000000116f0c158] = 6
metadata [0x0000000116f0c158,0x0000000116f0c168] = 16
scopes data [0x0000000116f0c168,0x0000000116f0c178] = 16
scopes pcs [0x0000000116f0c178,0x0000000116f0c1c8] = 80
dependencies [0x0000000116f0c1c8,0x0000000116f0c1d0] = 8
nul chk table [0x0000000116f0c1d0,0x0000000116f0c1e0] = 16
JVMCI data [0x0000000116f0c1e0,0x0000000116f0c1f0] = 16
ImmutableOopMap{r10=Oop }pc offsets: 19 132 165 Compiled method (JVMCI) 372 110 java.lang.invoke.DirectMethodHandle::internalMemberName (8 bytes)
total in heap [0x0000000116f0a910,0x0000000116f0abd8] = 712
relocation [0x0000000116f0aa78,0x0000000116f0aa88] = 16
main code [0x0000000116f0aaa0,0x0000000116f0aaff] = 95
stub code [0x0000000116f0aaff,0x0000000116f0ab00] = 1
metadata [0x0000000116f0ab00,0x0000000116f0ab10] = 16
scopes data [0x0000000116f0ab10,0x0000000116f0ab30] = 32
scopes pcs [0x0000000116f0ab30,0x0000000116f0abb0] = 128
dependencies [0x0000000116f0abb0,0x0000000116f0abb8] = 8
nul chk table [0x0000000116f0abb8,0x0000000116f0abc8] = 16
JVMCI data [0x0000000116f0abc8,0x0000000116f0abd8] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16 82 Compiled method (JVMCI) 373 111 java.lang.invoke.Invokers$Holder::linkToTargetMethod (9 bytes)
total in heap [0x0000000116f0c490,0x0000000116f0c7a8] = 792
relocation [0x0000000116f0c5f8,0x0000000116f0c618] = 32
main code [0x0000000116f0c620,0x0000000116f0c6a0] = 128
stub code [0x0000000116f0c6a0,0x0000000116f0c6b0] = 16
metadata [0x0000000116f0c6b0,0x0000000116f0c6c0] = 16
scopes data [0x0000000116f0c6c0,0x0000000116f0c6f0] = 48
scopes pcs [0x0000000116f0c6f0,0x0000000116f0c780] = 144
dependencies [0x0000000116f0c780,0x0000000116f0c788] = 8
nul chk table [0x0000000116f0c788,0x0000000116f0c798] = 16
JVMCI data [0x0000000116f0c798,0x0000000116f0c7a8] = 16
ImmutableOopMap{rdx=Oop }pc offsets: 19
ImmutableOopMap{}pc offsets: 44
ImmutableOopMap{rdx=Oop }pc offsets: 91 Compiled method (JVMCI) 374 112 java.lang.invoke.DirectMethodHandle$Holder::invokeStatic (14 bytes)
total in heap [0x0000000116f0c810,0x0000000116f0cb50] = 832
relocation [0x0000000116f0c978,0x0000000116f0c998] = 32
main code [0x0000000116f0c9a0,0x0000000116f0ca20] = 128
stub code [0x0000000116f0ca20,0x0000000116f0ca30] = 16
metadata [0x0000000116f0ca30,0x0000000116f0ca48] = 24
scopes data [0x0000000116f0ca48,0x0000000116f0ca88] = 64
scopes pcs [0x0000000116f0ca88,0x0000000116f0cb28] = 160
dependencies [0x0000000116f0cb28,0x0000000116f0cb30] = 8
nul chk table [0x0000000116f0cb30,0x0000000116f0cb40] = 16
JVMCI data [0x0000000116f0cb40,0x0000000116f0cb50] = 16
ImmutableOopMap{rsi=Oop }pc offsets: 16
ImmutableOopMap{}pc offsets: 52
ImmutableOopMap{rsi=Oop }pc offsets: 99 Compiled method (JVMCI) 383 113 FunctionalHashMap::max100 (32 bytes)
total in heap [0x0000000116f0d110,0x0000000116f0dca0] = 2960
relocation [0x0000000116f0d278,0x0000000116f0d2b0] = 56
main code [0x0000000116f0d2c0,0x0000000116f0d680] = 960
stub code [0x0000000116f0d680,0x0000000116f0d690] = 16
oops [0x0000000116f0d690,0x0000000116f0d6a0] = 16
metadata [0x0000000116f0d6a0,0x0000000116f0d6f8] = 88
scopes data [0x0000000116f0d6f8,0x0000000116f0d8a0] = 424
scopes pcs [0x0000000116f0d8a0,0x0000000116f0dc60] = 960
dependencies [0x0000000116f0dc60,0x0000000116f0dc68] = 8
nul chk table [0x0000000116f0dc68,0x0000000116f0dc90] = 40
JVMCI data [0x0000000116f0dc90,0x0000000116f0dca0] = 16
ImmutableOopMap{rsi=NarrowOop }pc offsets: 93
ImmutableOopMap{rax=Oop }pc offsets: 342
ImmutableOopMap{rsi=NarrowOop r11=Oop }pc offsets: 468 479
ImmutableOopMap{r11=Oop }pc offsets: 489
ImmutableOopMap{[8]=Oop [16]=Oop }pc offsets: 636
ImmutableOopMap{r9=NarrowOop [16]=Oop }pc offsets: 756
ImmutableOopMap{}pc offsets: 808
ImmutableOopMap{rsi=Oop [16]=Oop }pc offsets: 841
ImmutableOopMap{r11=Oop }pc offsets: 890
ImmutableOopMap{rax=Oop }pc offsets: 934 Compiled method (JVMCI) 385 114 FunctionalHashMap$$Lambda$20/0x0000000840067440::get$Lambda (9 bytes)
total in heap [0x0000000116f0ce10,0x0000000116f0d0d0] = 704
relocation [0x0000000116f0cf78,0x0000000116f0cf90] = 24
main code [0x0000000116f0cfa0,0x0000000116f0d04b] = 171
stub code [0x0000000116f0d04b,0x0000000116f0d050] = 5
oops [0x0000000116f0d050,0x0000000116f0d058] = 8
metadata [0x0000000116f0d058,0x0000000116f0d068] = 16
scopes data [0x0000000116f0d068,0x0000000116f0d078] = 16
scopes pcs [0x0000000116f0d078,0x0000000116f0d0b8] = 64
dependencies [0x0000000116f0d0b8,0x0000000116f0d0c0] = 8
JVMCI data [0x0000000116f0d0c0,0x0000000116f0d0d0] = 16
ImmutableOopMap{}pc offsets: 125 158 Compiled method (JVMCI) 385 115 FunctionalHashMap$$Lambda$20/0x0000000840067440::<init> (10 bytes)
total in heap [0x0000000116f0c210,0x0000000116f0c440] = 560
relocation [0x0000000116f0c378,0x0000000116f0c380] = 8
main code [0x0000000116f0c380,0x0000000116f0c3de] = 94
stub code [0x0000000116f0c3de,0x0000000116f0c3e0] = 2
oops [0x0000000116f0c3e0,0x0000000116f0c3e8] = 8
metadata [0x0000000116f0c3e8,0x0000000116f0c3f0] = 8
scopes data [0x0000000116f0c3f0,0x0000000116f0c3f8] = 8
scopes pcs [0x0000000116f0c3f8,0x0000000116f0c428] = 48
dependencies [0x0000000116f0c428,0x0000000116f0c430] = 8
JVMCI data [0x0000000116f0c430,0x0000000116f0c440] = 16
Compiled method (JVMCI) 386 116 java.util.Optional::orElseGet (21 bytes)
total in heap [0x0000000116f0dd10,0x0000000116f0df88] = 632
relocation [0x0000000116f0de78,0x0000000116f0de80] = 8
main code [0x0000000116f0de80,0x0000000116f0defa] = 122
stub code [0x0000000116f0defa,0x0000000116f0df00] = 6
metadata [0x0000000116f0df00,0x0000000116f0df08] = 8
scopes data [0x0000000116f0df08,0x0000000116f0df20] = 24
scopes pcs [0x0000000116f0df20,0x0000000116f0df60] = 64
dependencies [0x0000000116f0df60,0x0000000116f0df68] = 8
nul chk table [0x0000000116f0df68,0x0000000116f0df78] = 16
JVMCI data [0x0000000116f0df78,0x0000000116f0df88] = 16
ImmutableOopMap{rax=NarrowOop rdx=Oop rsi=Oop }pc offsets: 83 Compiled method (JVMCI) 398 117 FunctionalHashMap::runTest (25 bytes)
total in heap [0x0000000116f0e710,0x0000000116f0f678] = 3944
relocation [0x0000000116f0e878,0x0000000116f0e8d8] = 96
main code [0x0000000116f0e8e0,0x0000000116f0ee40] = 1376
stub code [0x0000000116f0ee40,0x0000000116f0ee60] = 32
oops [0x0000000116f0ee60,0x0000000116f0ee70] = 16
metadata [0x0000000116f0ee70,0x0000000116f0eed0] = 96
scopes data [0x0000000116f0eed0,0x0000000116f0f0c0] = 496
scopes pcs [0x0000000116f0f0c0,0x0000000116f0f630] = 1392
dependencies [0x0000000116f0f630,0x0000000116f0f638] = 8
nul chk table [0x0000000116f0f638,0x0000000116f0f668] = 48
JVMCI data [0x0000000116f0f668,0x0000000116f0f678] = 16
ImmutableOopMap{rdx=NarrowOop r11=Oop [16]=Oop }pc offsets: 152
ImmutableOopMap{rsi=Oop [16]=Oop }pc offsets: 376 387
ImmutableOopMap{[0]=Oop [8]=Oop [16]=Oop }pc offsets: 668
ImmutableOopMap{rsi=NarrowOop [16]=Oop }pc offsets: 728
ImmutableOopMap{rsi=Oop r10=NarrowOop [16]=Oop }pc offsets: 756 767
ImmutableOopMap{rsi=Oop [16]=Oop }pc offsets: 777
ImmutableOopMap{[0]=Oop [8]=Oop [16]=Oop }pc offsets: 924
ImmutableOopMap{rbx=NarrowOop [16]=Oop }pc offsets: 1004
ImmutableOopMap{r11=NarrowOop [8]=Oop [16]=Oop }pc offsets: 1064
ImmutableOopMap{rsi=Oop [16]=Oop }pc offsets: 1146
ImmutableOopMap{[16]=Oop }pc offsets: 1174
ImmutableOopMap{[8]=Oop [16]=Oop }pc offsets: 1202
ImmutableOopMap{rsi=Oop }pc offsets: 1237
ImmutableOopMap{rdx=Oop rsi=Oop [16]=Oop }pc offsets: 1290
ImmutableOopMap{rdx=Oop rbx=Oop [16]=Oop }pc offsets: 1339 Compiled method (JVMCI) 481 118 % FunctionalHashMap::main @ 36 (72 bytes)
total in heap [0x0000000116f0f690,0x0000000116f0fbe8] = 1368
relocation [0x0000000116f0f7f8,0x0000000116f0f830] = 56
main code [0x0000000116f0f840,0x0000000116f0f9c0] = 384
stub code [0x0000000116f0f9c0,0x0000000116f0f9f0] = 48
oops [0x0000000116f0f9f0,0x0000000116f0f9f8] = 8
metadata [0x0000000116f0f9f8,0x0000000116f0fa10] = 24
scopes data [0x0000000116f0fa10,0x0000000116f0fa68] = 88
scopes pcs [0x0000000116f0fa68,0x0000000116f0fbb8] = 336
dependencies [0x0000000116f0fbb8,0x0000000116f0fbc0] = 8
speculations [0x0000000116f0fbc0,0x0000000116f0fbd8] = 24
JVMCI data [0x0000000116f0fbd8,0x0000000116f0fbe8] = 16
ImmutableOopMap{[8]=Oop }pc offsets: 108 148 196 268
ImmutableOopMap{r11=Oop }pc offsets: 296
ImmutableOopMap{[8]=Oop }pc offsets: 344 Test phase
Time elapsed: 0.007 ms result=100
| 62.286164
| 179
| 0.759454
|
7b95564d8dd4207d0f05651009a8b8360695d295
| 1,823
|
asm
|
Assembly
|
src/print.asm
|
SHARPENTIERS/z80test
|
efa6938278080b915f8f69270e0ce4aee15d8d9a
|
[
"MIT"
] | 2
|
2021-12-05T03:16:26.000Z
|
2021-12-05T09:05:36.000Z
|
src/print.asm
|
SHARPENTIERS/z80test
|
efa6938278080b915f8f69270e0ce4aee15d8d9a
|
[
"MIT"
] | 1
|
2021-12-05T22:09:16.000Z
|
2021-12-05T22:09:16.000Z
|
src/print.asm
|
SHARPENTIERS/z80test
|
efa6938278080b915f8f69270e0ce4aee15d8d9a
|
[
"MIT"
] | 1
|
2021-12-05T11:16:28.000Z
|
2021-12-05T11:16:28.000Z
|
; Simple printing module.
;
; Copyright (C) 2012 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
; Modified for SHARP MZ-80K series.
; call アドレスの次の内容を print / Print the following contents of the call address
print: ex (sp),hl
call printhl
ex (sp),hl
ret
; HL の示すアドレスの内容を print / Print the contents of the address indicated by HL
printhl:
.loop ld a,(hl)
inc hl
or a
ret z
call printchr
jr .loop
; A の内容を 10 進表示 / Decimal representation of the contents of A
printdeca: ld h,a
ld b,-100
call .digit
ld b,-10
call .digit
ld b,-1
.digit ld a,h
ld l,'0'-1
.loop inc l
add a,b
jr c,.loop
sub b
ld h,a
ld a,l
jr printchr
printcrc: ld b,4
; HL の挿す内容を 16進表示 / Hexadecimal display of HL insertion contents
printhexs:
.loop ld a,(hl)
inc hl
call printhexa
djnz .loop
ret
printhexa: push af
rrca
rrca
rrca
rrca
call .nibble
pop af
.nibble or 0xf0
daa
add a,0xa0
adc a,0x40
; 1 文字表示 / Print one character
; in: a = ascii code
printchr: push iy
push bc
push de
push hl
call 0x0012 ; print 1char
pop hl
pop de
pop bc
pop iy
ret
; EOF ;
| 22.231707
| 79
| 0.434449
|
0495611924716289f6cc6007f36a2d7a86c2a316
| 6,425
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_2023_177.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_2023_177.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_2023_177.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 %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x156c1, %rsi
lea addresses_UC_ht+0x16fc1, %rdi
nop
and $4948, %r9
mov $84, %rcx
rep movsb
nop
nop
nop
nop
nop
and %r12, %r12
lea addresses_UC_ht+0x138c1, %rsi
lea addresses_D_ht+0x12dc1, %rdi
inc %r12
mov $100, %rcx
rep movsq
nop
nop
nop
nop
mfence
lea addresses_WT_ht+0x1cbc1, %r13
nop
xor $21758, %r12
and $0xffffffffffffffc0, %r13
movntdqa (%r13), %xmm1
vpextrq $1, %xmm1, %rsi
nop
nop
add %r13, %r13
lea addresses_UC_ht+0x1dbc1, %rsi
lea addresses_WT_ht+0x17141, %rdi
clflush (%rdi)
nop
nop
nop
nop
add %r9, %r9
mov $9, %rcx
rep movsw
nop
add %r12, %r12
lea addresses_WT_ht+0x141, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
add %r14, %r14
and $0xffffffffffffffc0, %rsi
vmovaps (%rsi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r12
nop
nop
nop
add %r13, %r13
lea addresses_WC_ht+0x14d61, %r12
nop
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
movups %xmm4, (%r12)
nop
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_WT_ht+0x126c1, %rsi
lea addresses_WC_ht+0x14065, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $13661, %r12
mov $16, %rcx
rep movsw
nop
nop
sub $41063, %rcx
lea addresses_WC_ht+0xee81, %rsi
lea addresses_WT_ht+0x2b61, %rdi
nop
nop
nop
sub %r15, %r15
mov $56, %rcx
rep movsb
nop
nop
and %r9, %r9
lea addresses_normal_ht+0x83c1, %r13
and %r14, %r14
movb (%r13), %cl
nop
xor %r13, %r13
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %r9
push %rbx
push %rdi
push %rdx
push %rsi
// Faulty Load
mov $0x668ef10000000bc1, %rsi
nop
dec %rbx
movb (%rsi), %r8b
lea oracles, %r9
and $0xff, %r8
shlq $12, %r8
mov (%r9,%r8,1), %r8
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %r9
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'00': 2023}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 37.794118
| 2,999
| 0.66179
|
0251344fb243a524a7c443ddeb35673528ef5b03
| 1,803
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_85_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_85_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_85_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_PSE+0x14f1d, %rdx
nop
nop
nop
nop
nop
and $61891, %rcx
mov $0x5152535455565758, %r11
movq %r11, %xmm2
movaps %xmm2, (%rdx)
nop
nop
nop
nop
add $64989, %rdx
// Store
lea addresses_A+0x9ef5, %rcx
nop
nop
nop
dec %r9
movb $0x51, (%rcx)
nop
nop
nop
nop
add $31957, %r9
// Store
lea addresses_D+0x816d, %rbx
nop
sub %rbp, %rbp
movw $0x5152, (%rbx)
nop
nop
nop
and $39671, %r9
// Faulty Load
lea addresses_RW+0x1e869, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
inc %rbp
vmovups (%rdx), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rbx
lea oracles, %rdx
and $0xff, %rbx
shlq $12, %rbx
mov (%rdx,%rbx,1), %rbx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_RW', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'32': 85}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 19.387097
| 254
| 0.6467
|
a10981cf19cc94d1d75efce17c6cf4b865b4ff1d
| 5,163
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_943.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_943.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_943.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 %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xe069, %rsi
lea addresses_UC_ht+0x18c69, %rdi
nop
nop
nop
nop
cmp %rbp, %rbp
mov $81, %rcx
rep movsq
and %rbp, %rbp
lea addresses_D_ht+0x13f09, %rax
clflush (%rax)
nop
nop
nop
xor $57744, %r8
movups (%rax), %xmm6
vpextrq $1, %xmm6, %r14
nop
lfence
lea addresses_WT_ht+0x130e9, %rcx
nop
nop
lfence
mov $0x6162636465666768, %rax
movq %rax, %xmm5
movups %xmm5, (%rcx)
nop
nop
cmp $19442, %rsi
lea addresses_UC_ht+0xf269, %rax
nop
nop
nop
nop
nop
cmp $55037, %rdi
movb (%rax), %cl
nop
nop
nop
nop
cmp $59720, %r8
lea addresses_A_ht+0x120c8, %rcx
nop
sub $35739, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm6
vmovups %ymm6, (%rcx)
nop
nop
nop
xor $39627, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %rax
push %rcx
push %rsi
// Faulty Load
lea addresses_D+0x108e9, %rcx
nop
nop
nop
nop
sub $34686, %r11
mov (%rcx), %ax
lea oracles, %r10
and $0xff, %rax
shlq $12, %rax
mov (%r10,%rax,1), %rax
pop %rsi
pop %rcx
pop %rax
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'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
*/
| 44.508621
| 2,999
| 0.661437
|
381cb957865a005516d3363191b5e0b1fa1b3b7e
| 969
|
asm
|
Assembly
|
IV Semester/Microprocessor_Lab/3A_Prime_Or_Not/3A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | 2
|
2021-05-05T15:10:45.000Z
|
2021-06-14T20:24:50.000Z
|
IV Semester/Microprocessor_Lab/3A_Prime_Or_Not/3A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | null | null | null |
IV Semester/Microprocessor_Lab/3A_Prime_Or_Not/3A.asm
|
ckraju/CSE-Lab-Manual
|
f28b8b5c6468500970aad28a66ea84d8356c92e7
|
[
"MIT"
] | null | null | null |
.model small
.data
msg_1 db 10,13,'Enter a 8 bit number: $'
num db ?
msg_prime db 10,13,'This number is prime!$'
msg_nprime db 10,13,'This number is not a prime$'
.code
mov AX,@data
mov DS,AX
lea dx,msg_1 ;Display message
call printf
call read_8bit ;reading 8 bit number
mov cl,num ;counter as num-1
dec cl
loop1: ;for(i=num-1; i>=1; i--)
cmp cl,01h ;if i == 1 return as prime
JE Prime
mov ax,0000h
mov al,num
div cl ;num/i
cmp ah,00h ;if num%i == 0 return not a prime
JE Not_Prime
loop loop1
Prime:
lea dx,msg_prime
jmp exit
Not_Prime:
lea DX,msg_nprime
exit:
call printf
mov AH,4Ch
int 21h
;procedure to read 8 bit number
read_8bit proc near
mov AH,01h ;reading 1st nibble
int 21h
sub AL,30h
mov BL,AL
mov AH,01h ;reading 2nd Nibble
int 21h
sub AL,30h
mov AH,BL
AAD ;ASCCI adjust before division
mov num,AL
ret
read_8bit endp
;procedure to print string
printf proc near
mov ah,09h
int 21h
ret
printf endp
end
| 15.380952
| 49
| 0.69969
|
c022d09d640079e28002b876e283591406f16e1e
| 5,377
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1832.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_1832.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_1832.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x18a, %rsi
nop
dec %r11
mov (%rsi), %di
nop
sub $14133, %r13
lea addresses_WC_ht+0x196ca, %rsi
lea addresses_A_ht+0x718a, %rdi
nop
xor $63746, %r10
mov $26, %rcx
rep movsl
nop
nop
nop
sub %r10, %r10
lea addresses_A_ht+0xb34a, %r13
nop
nop
nop
nop
and $60065, %rdi
movups (%r13), %xmm6
vpextrq $1, %xmm6, %rsi
nop
nop
cmp $64536, %r13
lea addresses_UC_ht+0xbea, %rsi
lea addresses_A_ht+0x1453a, %rdi
nop
nop
cmp $9917, %rbx
mov $71, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $39468, %r13
lea addresses_UC_ht+0x10b4a, %rsi
lea addresses_D_ht+0x67d2, %rdi
nop
nop
and %rbx, %rbx
mov $14, %rcx
rep movsb
nop
nop
cmp $36373, %rbx
lea addresses_UC_ht+0x1c0a, %r10
nop
nop
add %rdi, %rdi
movb (%r10), %r11b
inc %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rax
push %rbx
push %rcx
// Faulty Load
lea addresses_PSE+0x7d8a, %r12
nop
nop
nop
sub %rax, %rax
mov (%r12), %r10d
lea oracles, %rax
and $0xff, %r10
shlq $12, %r10
mov (%rax,%r10,1), %r10
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 45.184874
| 2,999
| 0.659847
|
839843591218e61f8d2b11014a8f0db5f9b9f2a9
| 49
|
asm
|
Assembly
|
study/ret.asm
|
caio-vinicius/libasm
|
f8e22fa21f79cdee80de6eb9ee72e3414054c804
|
[
"MIT"
] | null | null | null |
study/ret.asm
|
caio-vinicius/libasm
|
f8e22fa21f79cdee80de6eb9ee72e3414054c804
|
[
"MIT"
] | null | null | null |
study/ret.asm
|
caio-vinicius/libasm
|
f8e22fa21f79cdee80de6eb9ee72e3414054c804
|
[
"MIT"
] | null | null | null |
section .text
global ret
ret:
mov eax, 7
ret
| 7
| 13
| 0.673469
|
31fd45481039cd31f390427fd79474016d244a10
| 8,295
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_3549_590.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_3549_590.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_3549_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 %r12
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1904a, %rbp
nop
nop
nop
nop
nop
sub $20193, %r12
mov $0x6162636465666768, %r15
movq %r15, (%rbp)
nop
nop
nop
nop
xor %r9, %r9
lea addresses_WT_ht+0x7144, %rsi
nop
and $12007, %rdx
mov $0x6162636465666768, %r8
movq %r8, %xmm7
movups %xmm7, (%rsi)
add %rdx, %rdx
lea addresses_WC_ht+0x1b764, %r8
nop
nop
nop
nop
nop
add $53330, %r15
mov $0x6162636465666768, %r12
movq %r12, (%r8)
nop
nop
nop
nop
sub $14706, %r8
lea addresses_normal_ht+0x94c4, %r8
nop
nop
nop
add $3522, %r15
mov (%r8), %r12d
nop
nop
add $24142, %r8
lea addresses_D_ht+0x1a9a2, %rsi
clflush (%rsi)
nop
nop
dec %r8
movb (%rsi), %r12b
nop
nop
nop
nop
nop
inc %r15
lea addresses_WT_ht+0xd384, %rsi
lea addresses_WC_ht+0x10cc4, %rdi
nop
nop
nop
nop
cmp $47951, %r9
mov $112, %rcx
rep movsb
nop
nop
nop
sub $39468, %r12
lea addresses_WC_ht+0x13784, %r8
nop
nop
cmp %rbp, %rbp
movl $0x61626364, (%r8)
nop
nop
dec %r9
lea addresses_normal_ht+0x1ddbc, %rdx
clflush (%rdx)
nop
nop
nop
xor $63274, %rsi
mov (%rdx), %r12
nop
cmp $14889, %r15
lea addresses_normal_ht+0x1d872, %rsi
lea addresses_D_ht+0x58c4, %rdi
nop
nop
nop
nop
xor %rbp, %rbp
mov $74, %rcx
rep movsb
add $41532, %rsi
lea addresses_normal_ht+0x44d0, %r12
nop
nop
nop
nop
nop
cmp $61071, %rsi
mov (%r12), %dx
nop
nop
nop
nop
nop
sub $22394, %rbp
lea addresses_D_ht+0xc5c4, %rsi
nop
nop
cmp $6658, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
and $0xffffffffffffffc0, %rsi
movaps %xmm7, (%rsi)
nop
nop
add $39308, %rdi
lea addresses_A_ht+0x10ec4, %rsi
lea addresses_WT_ht+0x1c2ec, %rdi
nop
nop
nop
dec %r12
mov $116, %rcx
rep movsq
and $50686, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r8
push %r9
push %rbp
push %rdi
push %rsi
// Load
mov $0xba4, %r8
lfence
movb (%r8), %r10b
nop
nop
nop
nop
nop
xor $29200, %rdi
// Load
lea addresses_UC+0x95c4, %r10
nop
nop
nop
add %r9, %r9
mov (%r10), %r14w
nop
nop
nop
nop
nop
xor $27008, %rdi
// Store
mov $0x56ca0b00000007c4, %r10
nop
and $21423, %r14
mov $0x5152535455565758, %rbp
movq %rbp, (%r10)
// Exception!!!
mov (0), %r9
nop
nop
nop
nop
xor $27231, %rsi
// Load
lea addresses_RW+0xa5c4, %r10
nop
nop
add %rbp, %rbp
movups (%r10), %xmm6
vpextrq $0, %xmm6, %r9
nop
cmp $22688, %rsi
// Store
lea addresses_WC+0x16c5a, %rsi
nop
nop
nop
inc %r14
mov $0x5152535455565758, %r9
movq %r9, (%rsi)
nop
nop
nop
nop
nop
cmp %rbp, %rbp
// Faulty Load
lea addresses_US+0x115c4, %r10
nop
add %rdi, %rdi
mov (%r10), %r9
lea oracles, %r10
and $0xff, %r9
shlq $12, %r9
mov (%r10,%r9,1), %r9
pop %rsi
pop %rdi
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'00': 3549}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 30.384615
| 2,999
| 0.653406
|
9fc7302421ccabb119bcf372f2245d52a810da6a
| 684
|
asm
|
Assembly
|
oeis/174/A174687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/174/A174687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/174/A174687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A174687: Central coefficients T(2n,n) of the Catalan triangle A033184.
; Submitted by Jamie Morken(s3)
; 1,2,9,48,275,1638,9996,62016,389367,2466750,15737865,100975680,650872404,4211628008,27341497800,177996090624,1161588834303,7596549816030,49772989810635,326658445806000,2147042307851595,14130873926790390,93115841412899760,614265689787160320,4056255950045422500,26809847562154337928,177349970171819554956,1174105900546396874112,7778530411333396100664,51567898966285508521200,342083970650885005051344,2270592737556481254478848,15079348869377692177337103,100195425187663904084619486
mov $2,$0
mul $0,2
add $2,1
sub $1,$2
bin $1,$0
mul $1,$2
mov $3,1
add $3,$0
div $1,$3
mov $0,$1
| 45.6
| 480
| 0.842105
|
06ea6c0d8c705368a38846151a60b2b9d72ac6ed
| 4,909
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2_notsx.log_250_680.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2_notsx.log_250_680.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2_notsx.log_250_680.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x84ab, %rdi
nop
nop
nop
xor $2755, %r10
movb $0x61, (%rdi)
sub $26063, %rdi
lea addresses_WT_ht+0x1ed6f, %rsi
lea addresses_WC_ht+0x13c7, %rdi
nop
sub $65210, %r10
mov $24, %rcx
rep movsl
nop
nop
add $39609, %r10
lea addresses_A_ht+0x22f, %rbp
nop
nop
nop
add %rbx, %rbx
vmovups (%rbp), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
nop
nop
nop
and $36263, %rax
lea addresses_WT_ht+0x1d8f, %rcx
nop
nop
nop
cmp $34088, %r10
mov (%rcx), %rax
nop
nop
nop
and $12908, %rax
lea addresses_normal_ht+0x14647, %rax
nop
nop
and %rbx, %rbx
mov (%rax), %r10w
nop
nop
nop
nop
sub $54770, %r10
lea addresses_WC_ht+0xaf8f, %rcx
nop
nop
add %rsi, %rsi
movb (%rcx), %bl
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_normal_ht+0xf96f, %rsi
lea addresses_UC_ht+0x1016f, %rdi
sub $12418, %r15
mov $6, %rcx
rep movsb
nop
nop
add %rcx, %rcx
lea addresses_normal_ht+0x1856f, %r15
nop
cmp $10094, %rbx
mov (%r15), %bp
nop
nop
nop
nop
add $17539, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_A+0xcfc9, %rax
nop
nop
nop
nop
inc %rsi
movb $0x51, (%rax)
and %rdx, %rdx
// REPMOV
lea addresses_UC+0x3e2f, %rsi
lea addresses_A+0x1a79f, %rdi
nop
nop
nop
nop
dec %rbp
mov $76, %rcx
rep movsb
nop
nop
nop
nop
add %rsi, %rsi
// Store
mov $0x76f, %rdi
nop
nop
nop
nop
nop
sub %rax, %rax
movw $0x5152, (%rdi)
and $45208, %rbp
// Load
lea addresses_D+0x129af, %rdx
nop
nop
nop
nop
sub $50731, %rcx
mov (%rdx), %bp
nop
nop
nop
add $52672, %rcx
// Store
lea addresses_normal+0x1e56f, %rdi
nop
nop
nop
sub $5558, %rdx
mov $0x5152535455565758, %r15
movq %r15, (%rdi)
nop
nop
nop
nop
nop
cmp $6046, %r15
// Faulty Load
lea addresses_normal+0x1e56f, %rdi
sub %rax, %rax
mov (%rdi), %ebp
lea oracles, %rcx
and $0xff, %rbp
shlq $12, %rbp
mov (%rcx,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'58': 250}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 23.046948
| 749
| 0.647382
|
0799e8a3c932d63c20e4a638ae0757dc56feac44
| 263
|
asm
|
Assembly
|
nop/nop.asm
|
zettsu-t/cPlusPlusFriend
|
5399065abe2c0eda2b9aec26e6435d8c27cda9cd
|
[
"MIT"
] | 9
|
2017-04-15T00:05:14.000Z
|
2021-01-10T05:11:14.000Z
|
nop/nop.asm
|
zettsu-t/cPlusPlusFriend
|
5399065abe2c0eda2b9aec26e6435d8c27cda9cd
|
[
"MIT"
] | null | null | null |
nop/nop.asm
|
zettsu-t/cPlusPlusFriend
|
5399065abe2c0eda2b9aec26e6435d8c27cda9cd
|
[
"MIT"
] | 1
|
2018-02-23T22:47:08.000Z
|
2018-02-23T22:47:08.000Z
|
bits 64
section .text
nop ; 90
xchg rax, rax ; 48 90
db 0x48 ; 48 87 c0
db 0x87
db 0xc0
xchg rcx, rcx ; 48 87 c9
xchg rdx, rdx ; 48 87 d2
xchg rbx, rbx ; 48 87 db
| 23.909091
| 34
| 0.410646
|
f0844e972ac2b2f43ba5be714c634651ce9aa49e
| 337
|
asm
|
Assembly
|
programs/oeis/190/A190153.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/190/A190153.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/190/A190153.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A190153: Row sums of the triangle A190152.
; 1,2,12,65,351,1897,10252,55405,299426,1618192,8745217,47261895,255418101,1380359512,7459895657,40315615410,217878227876,1177482265857,6363483400447,34390259761825,185855747875876,1004422742303477,5428215467030962
mul $0,2
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $1,$3
add $3,$2
lpe
| 28.083333
| 214
| 0.774481
|
1b94d6d577bef9349eb0d66ad7dfe37dec4b154e
| 725
|
asm
|
Assembly
|
oeis/077/A077262.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/077/A077262.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/077/A077262.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A077262: Second member of the Diophantine pair (m,k) that satisfies 5*(m^2 + m) = k^2 + k; a(n) = k.
; 0,5,14,99,260,1785,4674,32039,83880,574925,1505174,10316619,27009260,185124225,484661514,3321919439,8696898000,59609425685,156059502494,1069647742899,2800374146900,19194049946505,50250675141714,344423251294199,901711778403960,6180424473349085,16180561336129574,110903217268989339,290348392271928380,1990077486368459025,5210090499558581274,35710491537363273119,93491280599782534560,640798770186170457125,1677632960296527040814,11498667371813704955139,30103902004737704200100,206335213922460518735385
add $0,1
mul $0,3
sub $0,2
mov $1,4
mov $2,3
lpb $0
sub $0,2
add $2,$1
add $1,$2
lpe
sub $1,$2
mov $0,$1
div $0,2
| 42.647059
| 500
| 0.809655
|
f5909c94da8db372e6e38dd4e6d8862d43aef913
| 2,508
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_11_1125.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_11_1125.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_11_1125.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r8
push %rax
push %rbp
push %rbx
// Store
lea addresses_normal+0x1a645, %rax
nop
add $50763, %r11
movw $0x5152, (%rax)
nop
nop
and %r11, %r11
// Store
lea addresses_RW+0x9d35, %r8
nop
nop
nop
nop
dec %r12
movb $0x51, (%r8)
nop
and $48696, %rax
// Load
lea addresses_D+0x98f9, %rax
nop
nop
xor $37856, %r15
mov (%rax), %r8w
and %rbp, %rbp
// Store
lea addresses_UC+0x1c521, %rax
xor $22623, %rbp
mov $0x5152535455565758, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%rax)
nop
nop
nop
nop
inc %r12
// Load
mov $0x8a4fd0000000321, %r11
add %r12, %r12
mov (%r11), %ax
nop
nop
sub $10029, %r12
// Store
lea addresses_PSE+0x19d21, %r11
clflush (%r11)
nop
nop
nop
cmp $40052, %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm0
vmovups %ymm0, (%r11)
nop
nop
nop
nop
nop
add $14014, %rax
// Load
lea addresses_UC+0x1c521, %rbp
nop
nop
nop
nop
add %r11, %r11
vmovups (%rbp), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r8
nop
nop
and $10683, %r12
// Faulty Load
lea addresses_UC+0x1c521, %rbx
and $23554, %r12
mov (%rbx), %rax
lea oracles, %r15
and $0xff, %rax
shlq $12, %rax
mov (%r15,%rax,1), %rax
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'58': 11}
58 58 58 58 58 58 58 58 58 58 58
*/
| 19.59375
| 125
| 0.634769
|
70a3793a229a08d6d3afecbc48dd15b448bcaf7f
| 174
|
asm
|
Assembly
|
data/pokemon/dex_entries/latios.asm
|
AtmaBuster/pokeplat-gen2
|
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
|
[
"blessing"
] | 6
|
2021-06-19T06:41:19.000Z
|
2022-02-15T17:12:33.000Z
|
data/pokemon/dex_entries/latios.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | null | null | null |
data/pokemon/dex_entries/latios.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | 3
|
2021-01-15T18:45:40.000Z
|
2021-10-16T03:35:27.000Z
|
db "EON@" ; species name
db "It is highly"
next "intelligent and"
next "understands human"
page "speech. It is a"
next "kind #MON that"
next "dislikes fighting.@"
| 17.4
| 27
| 0.666667
|
6e2a0ce1a90646bd50eef25ff330d5fc9ce18f30
| 729
|
asm
|
Assembly
|
Laboratorio/Relatorio_08/Resposta Rel_08/prog18.asm
|
0Augusto/hello-world
|
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
|
[
"Apache-2.0"
] | 1
|
2022-03-03T17:22:30.000Z
|
2022-03-03T17:22:30.000Z
|
Laboratorio/Relatorio_08/Resposta Rel_08/prog18.asm
|
0Augusto/hello-world
|
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
|
[
"Apache-2.0"
] | null | null | null |
Laboratorio/Relatorio_08/Resposta Rel_08/prog18.asm
|
0Augusto/hello-world
|
9fd2c7b00a6c3cbe696f7eff8db4e89a8d7b4ae2
|
[
"Apache-2.0"
] | null | null | null |
# Variaveis associadas aos registradores:
# endBase -> $16
# x -> $17
# y -> $18
.data
x: .word -1
.text
.globl main
main:
addi $8, $0, 0x1001 # t0 = 0x00001001
sll $16, $8, 0x10 # endBase = 0x10010000
lw $17, 0x0($16) # x = mem[0 + endBase]
slt $8, $0, $17 # if (0 < x) t0 = 1; else t0 = 0;
beq $8, $0, xMenorIgual # if (t1 == 0) goto xMenorIgual
xMaior:
mult $17, $17 # x²
mflo $8 # t0 = x²
mult $8, $17 # x³
mflo $8 # t0 = x³
addi $18, $8, 0x1 # y = x³ + 1
j fim # goto fim
xMenorIgual:
mult $17, $17 # x²
mflo $8 # t0 = x²
mult $8, $8 # x⁴
mflo $8 # t0 = x³
addi $18, $8, -1 # y = x³ - 1
fim:
sw $18, 0x4($16) # mem[4 + endBase] = y
| 19.702703
| 60
| 0.489712
|
5841e0c52c088a410c0385ae44afa249b13482c8
| 739
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/target/yaz180/device/pca9665/pca9665_write_indirect.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/target/yaz180/device/pca9665/pca9665_write_indirect.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/target/yaz180/device/pca9665/pca9665_write_indirect.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
INCLUDE "config_private.inc"
SECTION code_driver
PUBLIC pca9665_write_indirect
;Do a write to the indirect registers
;input BC = device addr | indirect register address (ddd.....:......rr)
;input A = byte to write
.pca9665_write_indirect
push af ;preserve the byte to write
ld a,c ;prepare indirect address in A
and $07 ;ensure upper bits are zero
ld c,__IO_I2C_PORT_IPTR
out (c),a ;write the indirect address to the __IO_I2C_PORT_IPTR
pop af ;recover the byte to write
ld c,__IO_I2C_PORT_IDATA ;prepare device and indirect register address
out (c),a ;write the byte to the indirect register
ret
| 32.130435
| 77
| 0.633288
|
232a1f0cd14caf232fab7a4378f352f5f90e9032
| 680
|
asm
|
Assembly
|
oeis/033/A033590.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/033/A033590.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/033/A033590.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A033590: a(n) = (2*n-1)*(3*n-1)*(4*n-1)*(5*n-1).
; Submitted by Jamie Morken(s4)
; 1,24,945,6160,21945,57456,124729,238680,417105,680680,1052961,1560384,2232265,3100800,4201065,5571016,7251489,9286200,11721745,14607600,17996121,21942544,26504985,31744440,37724785,44512776,52178049,60793120,70433385,81177120,93105481,106302504,120855105,136853080,154389105,173558736,194460409,217195440,241868025,268585240,297457041,328596264,362118625,398142720,436790025,478184896,522454569,569729160,620141665,673827960,730926801,791579824,855931545,924129360,996323545,1072667256,1153316529
mov $1,$0
mul $1,2
mul $1,$0
mov $2,4
mul $2,$0
sub $2,1
sub $0,$2
mul $0,$2
add $1,$0
mul $0,$1
| 45.333333
| 498
| 0.786765
|
70644298ce528f168419dc3545db02eb341f687f
| 545
|
asm
|
Assembly
|
oeis/123/A123579.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/123/A123579.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/123/A123579.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A123579: The Kruskal-Macaulay function M_3(n).
; Submitted by Jamie Morken(s2)
; 0,1,2,3,3,4,5,5,6,6,6,7,8,8,9,9,9,10,10,10,10,11,12,12,13,13,13,14,14,14,14,15,15,15,15,15,16,17,17,18,18,18,19,19,19,19,20,20,20,20,20,21,21,21,21,21,21,22,23,23,24,24,24,25,25,25,25,26,26,26,26,26,27,27,27
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,56558 ; Third tetrahedral coordinate, i.e., tetrahedron with T(t,n,k)=k; succession of growing finite triangles with increasing values towards bottom right.
sub $0,$2
add $1,2
lpe
mov $0,$1
div $0,2
| 36.333333
| 209
| 0.669725
|
f61abb68522ecb0988980e49a1019930b2cd37e6
| 560
|
asm
|
Assembly
|
programs/oeis/285/A285738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/285/A285738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/285/A285738.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A285738: Greatest prime less than 2*n^2 for n > 1, a(1) = 1.
; 1,7,17,31,47,71,97,127,157,199,241,283,337,389,449,509,577,647,719,797,881,967,1051,1151,1249,1327,1453,1567,1669,1789,1913,2039,2161,2311,2447,2591,2731,2887,3041,3191,3361,3527,3697,3863,4049,4231,4409,4603,4801
max $2,$0
add $2,1
pow $2,2
add $2,1
lpb $2
min $0,0
sub $2,1
mov $1,$2
mul $5,$2
mov $3,$5
max $3,0
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
trn $4,6
cmp $4,$0
mul $2,$4
mov $5,2
lpe
mul $1,2
add $1,1
mov $0,$1
| 22.4
| 215
| 0.635714
|
83f7e4b45429c75c68bb899e7585f1b899d81e9a
| 1,966
|
asm
|
Assembly
|
c2000/C2000Ware_1_00_06_00/libraries/boot_rom/f2806x/v1_1/rom_sources/source/Vectors_Boot.asm
|
ramok/Themis_ForHPSDR
|
d0f323a843ac0a488ef816ccb7c828032855a40a
|
[
"Unlicense"
] | null | null | null |
c2000/C2000Ware_1_00_06_00/libraries/boot_rom/f2806x/v1_1/rom_sources/source/Vectors_Boot.asm
|
ramok/Themis_ForHPSDR
|
d0f323a843ac0a488ef816ccb7c828032855a40a
|
[
"Unlicense"
] | null | null | null |
c2000/C2000Ware_1_00_06_00/libraries/boot_rom/f2806x/v1_1/rom_sources/source/Vectors_Boot.asm
|
ramok/Themis_ForHPSDR
|
d0f323a843ac0a488ef816ccb7c828032855a40a
|
[
"Unlicense"
] | 1
|
2021-07-21T08:10:37.000Z
|
2021-07-21T08:10:37.000Z
|
;; TI File $Revision: /main/4 $
;; Checkin $Date: March 8, 2011 15:18:39 $
;;###########################################################################
;;
;; FILE: Vectors_Boot.h
;;
;; TITLE: Boot Rom vector table.
;;
;; Functions:
;;
;; This section of code populates the vector table in the boot ROM. The reset
;; vector at 0x3FFFC0 points to the entry into the boot loader functions (InitBoot())
;; The rest of the vectors are populated for test purposes only.
;;
;;###########################################################################
;; $TI Release: TMS320x2806x Boot ROM V1.0 $
;; $Release Date: October 21, 2010 $
;;###########################################################################
;-----------------------------------------------------------
; The vector table located in boot ROM at 0x3F FFC0 - 0x3F FFFF
; will be filled with the following data.
;
; Only the reset vector, which points to the InitBoot
; routine will be used during normal operation. The remaining
; vectors are set for internal testing purposes and will not be
; fetched from this location during normal operation.
;
; On reset vector is always fetched from this table.
;
;----------------------------------------------------------
.ref _InitBoot
.ref _ITRAPIsr
.sect ".BootVecs"
.long _InitBoot ;Reset
.long 0x000042
.long 0x000044
.long 0x000046
.long 0x000048
.long 0x00004a
.long 0x00004c
.long 0x00004e
.long 0x000050
.long 0x000052
.long 0x000054
.long 0x000056
.long 0x000058
.long 0x00005a
.long 0x00005c
.long 0x00005e
.long 0x000060
.long 0x000062
.long 0x000064
.long _ITRAPIsr ;ITRAP
.long 0x000068
.long 0x00006a
.long 0x00006c
.long 0x00006e
.long 0x000070
.long 0x000072
.long 0x000074
.long 0x000076
.long 0x000078
.long 0x00007a
.long 0x00007c
.long 0x00007e
| 29.343284
| 85
| 0.542218
|
a1fd68b379ea34adf91164b43fa1800d0a11d13d
| 6,277
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1161.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1161.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1161.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rax
push %rbp
push %rdi
push %rdx
// Store
lea addresses_UC+0x1e138, %r10
and %rdi, %rdi
movw $0x5152, (%r10)
nop
nop
nop
nop
nop
inc %r10
// Store
lea addresses_WC+0x18848, %r10
nop
nop
nop
nop
cmp $52771, %rdx
movl $0x51525354, (%r10)
nop
nop
nop
nop
nop
and $47356, %rdi
// Store
lea addresses_WC+0x1d3b8, %rbp
and %rdi, %rdi
mov $0x5152535455565758, %rax
movq %rax, %xmm2
movups %xmm2, (%rbp)
nop
nop
add $56102, %rdi
// Store
lea addresses_UC+0x1e138, %r15
nop
nop
nop
mfence
mov $0x5152535455565758, %rax
movq %rax, %xmm2
vmovups %ymm2, (%r15)
xor %r11, %r11
// Store
lea addresses_RW+0x19138, %rax
nop
nop
nop
xor %rdi, %rdi
movw $0x5152, (%rax)
nop
nop
sub %r15, %r15
// Store
mov $0x938, %r11
nop
nop
nop
nop
nop
add %rax, %rax
mov $0x5152535455565758, %r10
movq %r10, (%r11)
nop
nop
nop
nop
add $28044, %r15
// Store
lea addresses_RW+0xcf78, %rax
nop
nop
xor %r11, %r11
movb $0x51, (%rax)
nop
nop
nop
nop
nop
and %r11, %r11
// Store
lea addresses_WC+0x18938, %rdx
nop
nop
and %r15, %r15
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
movups %xmm1, (%rdx)
nop
nop
xor %rdx, %rdx
// Store
mov $0xad3500000000bb8, %r11
nop
nop
nop
nop
xor $48092, %rdi
movw $0x5152, (%r11)
nop
nop
nop
nop
and %r11, %r11
// Load
lea addresses_normal+0x11c10, %r15
clflush (%r15)
nop
nop
nop
add %r11, %r11
mov (%r15), %r10w
nop
nop
nop
add $63450, %rbp
// Faulty Load
lea addresses_UC+0x1e138, %rbp
nop
and %rdi, %rdi
movaps (%rbp), %xmm4
vpextrq $1, %xmm4, %r15
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rdx
pop %rdi
pop %rbp
pop %rax
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.872222
| 2,999
| 0.650629
|
7cee05152894689631ef5d0c4f76d4bdbc68eb8d
| 3,300
|
asm
|
Assembly
|
Assignment-2/Assignment2.asm
|
RaviSriTejaKuriseti/COL216
|
f2c764fa3158f482b815fdc0a1a1d8c242adde2e
|
[
"MIT"
] | 1
|
2021-03-17T13:36:37.000Z
|
2021-03-17T13:36:37.000Z
|
Assignment-2/Assignment2.asm
|
RaviSriTejaKuriseti/COL216
|
f2c764fa3158f482b815fdc0a1a1d8c242adde2e
|
[
"MIT"
] | null | null | null |
Assignment-2/Assignment2.asm
|
RaviSriTejaKuriseti/COL216
|
f2c764fa3158f482b815fdc0a1a1d8c242adde2e
|
[
"MIT"
] | null | null | null |
.data
msg1: .asciiz "Please input the postfix expression\n"
msg2: .asciiz "Value of the expression is = "
msg3: .asciiz "Oops! It's an invalid postfix expression"
stringSpace: .space 100
stack: .word 50
.text
## t0 - strt address, s1-length of string,t1--first while itr,t2--value,t3--string itr,t4-top index of stack
.globl main
main:
li $v0, 4
la $a0, msg1
syscall #asks for input
li $v0, 8 #takes input string
la $a0, stringSpace # load byte space into address
li $a1, 100 # allot the byte space for string
move $t0, $a0 # save string start address to t0
syscall
addi $s1, $s1,0 #initializes $s0 to length--0
addi $s7, $zero,0
addi $t2, $zero,0
addi $t3 ,$zero, 0
addi $s5,$t0,0 #Store string start address for future use
li $s6,1
stringWhile:
lb $t1, 0($t0) # initialize the count to zero
beqz $t1, precursor # goes to checkvalid after loop ends
addi $t0, $t0,1 #iterating over string
addi $s1, $s1,1 #incements length
j stringWhile
precursor:
addi $s2, $s1,-1
add $t3 ,$zero,$s5
addi $t2,$t2,0
j checkvalid
checkvalid:
beq $t2,$s2,checkvalue
lb $t5, 0($t3)
li $t6, '0'
sge $t7,$t5,$t6
li $t6, '9'
sle $t8,$t5,$t6
and $t7,$t7,$t8
beq $t7,$zero,Symbol
j NotSymbol
NotSymbol:
addi $s7, $s7, 1
addi $t3, $t3, 1
addi $t2, $t2, 1
j checkvalid
Symbol:
addi $s7, $s7,-2
blt $s7,$zero,invalid
addi $s7, $s7,1
addi $t3, $t3, 1
addi $t2, $t2, 1
j checkvalid
checkvalue:
li $s6,1
bne $s7,$s6,invalid
j proceed
proceed:
addi $t2 ,$zero, 0
addi $t3,$zero, 0
addi $t4,$zero, 0
la $a0, stack # load byte space into address
li $a1, 200 # allot the byte space for stack
move $t4, $a0 # save stack start address to t4
j evalWhile
evalWhile:
beq $t3, $s1, final
lb $t5, stringSpace($t3) # erroprone
li $t6, '0'
sge $t7,$t5,$t6
li $t6, '9'
sle $t8,$t5,$t6
and $t7,$t7,$t8
beq $t7, $zero ,Else
addi $t5,$t5,-48 # where $t0 contains the ascii digit .
sw $t5,0($t4) #errror prone
addi $t4, $t4, 4
addi $t3, $t3, 1
j evalWhile
Else:
li $t6, '*'
beq $t5, $t6, star
li $t6, '-'
beq $t5, $t6, minus
addi $t4, $t4, -8
lw $t7, 0($t4)
addi $t4, $t4, 4
lw $t8, 0($t4)
add $t7,$t7,$t8
addi $t4, $t4, -4
sw $t7,0($t4)
addi $t4, $t4, 4
addi $t3, $t3, 1
j evalWhile
star:
addi $t4, $t4, -8
lw $t7, 0($t4)
addi $t4, $t4, 4
lw $t8, 0($t4)
mul $t7,$t7,$t8
addi $t4, $t4, -4
sw $t7,0($t4)
addi $t4, $t4, 4
addi $t3, $t3, 1
j evalWhile
minus:
addi $t4, $t4, -8
lw $t7, 0($t4)
addi $t4, $t4, 4
lw $t8, 0($t4)
sub $t7,$t7,$t8
addi $t4, $t4, -4
sw $t7,0($t4)
addi $t4, $t4, 4
addi $t3, $t3, 1
j evalWhile
final:
lw $t8, 0($t4)
li $v0, 4
la $a0, msg2
syscall # prints the msg2
li $v0, 1
move $a0, $t8
syscall # prints the answer
li $v0, 10
syscall
invalid:
li $v0, 4
la $a0, msg3
syscall # prints the msg3
li $v0, 10
syscall
| 15.277778
| 109
| 0.529697
|
45c27f675020b911c022bd6dd4416fbb157ccfe9
| 336
|
asm
|
Assembly
|
programs/oeis/346/A346197.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/346/A346197.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/346/A346197.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A346197: a(n) is the minimum number of pebbles such that any assignment of those pebbles on K_5 is a next-player winning game in the two-player impartial (n+1,n) pebbling game.
; 7,15,21,27,33,39,47,53,59,67,73,79,87,93,99,107,113,119,127,133,139
sub $0,3
mov $2,20
mul $2,$0
sub $2,$0
add $0,$2
div $0,6
add $0,10
mul $0,2
add $0,7
| 25.846154
| 178
| 0.690476
|
7c3fc41168a9515144d09c8cce18a3231675287b
| 353
|
asm
|
Assembly
|
programs/oeis/084/A084515.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/084/A084515.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/084/A084515.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A084515: Partial sums of A084516.
; 0,1,3,6,9,12,16,20,24,28,32,36,40,44,48,52,56,60,64,69,74,79,84,89,94,99,104,109,114,119,124,129,134,139,144,149,154,159,164,169,174,179,184,189,194,199,204,209,214,219,224,229,234,239,244,249,254,259,264,269
mov $1,$0
mul $1,2
trn $1,1
mov $2,$0
sub $0,7
trn $0,11
trn $2,2
add $0,$2
trn $0,3
add $1,$2
add $0,$1
| 23.533333
| 210
| 0.657224
|
c7298459ec11142d3fa98ffadf3508ebd0a21f94
| 1,261
|
asm
|
Assembly
|
oeis/210/A210474.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/210/A210474.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/210/A210474.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A210474: The number of different lattice paths from (0,0) to (2n,0) using steps of S={(i,i) or (i,-i): i=1,2,...,n} with j flaws(j=1,2,...,n-1), where the j flaws is the sum of lengths of down steps below the x-axis. (For down steps that are partly above and partly below the x-axis we just count the part below the x-axis.) This number is independent of the number of flaws.
; Submitted by Christian Krause
; 1,0,4,24,156,1072,7668,56520,426380,3276384,25556196,201828728,1610647932,12968268432,105219588308,859440482856,7061361325164,58320764249280,483922589498820,4032178320794328,33723925620989532,283021269941508336,2382598282012764084,20114924440891152264,170263249754724688716,1444672226956014457632,12285268627688876358308,104687918453120151276600,893803593618100836867900,7644774922317017409058640,65495792061677568222720660,562007422072690386019509480,4829573600082634421333208620
mov $6,$0
mov $8,2
lpb $8
mov $0,$6
mov $2,0
mov $5,0
sub $8,1
add $0,$8
sub $0,1
mov $1,1
mov $3,$0
mov $4,1
lpb $3
mul $4,$3
sub $3,1
mul $4,$3
add $5,$1
add $1,1
div $4,2
div $4,$5
mul $4,4
add $2,$4
lpe
mov $0,$2
add $0,1
mov $9,$8
mul $9,$0
add $7,$9
lpe
min $6,1
mul $6,$0
mov $0,$7
sub $0,$6
| 33.184211
| 482
| 0.713719
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.