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
6ec5aadf99b00dbc3faa1fa0bbc4f4b8795956a1
177
asm
Assembly
data/pokemon/dex_entries/jabetta.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/jabetta.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/jabetta.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "FLYINGFISH@" ; species name db "It often settles" next "territorial feuds" next "with a duel." page "Their fights may" next "damage nearby" next "coral reefs.@"
17.7
32
0.677966
b258df3d809f9c2fbb605285e0c829c084ead6f3
486
asm
Assembly
programs/oeis/266/A266180.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/266/A266180.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/266/A266180.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A266180: Decimal representation of the n-th iteration of the "Rule 6" elementary cellular automaton starting with a single ON (black) cell. ; 1,6,16,96,256,1536,4096,24576,65536,393216,1048576,6291456,16777216,100663296,268435456,1610612736,4294967296,25769803776,68719476736,412316860416,1099511627776,6597069766656,17592186044416,105553116266496,281474976710656,1688849860263936,4503599627370496 mov $1,4 pow $1,$0 mov $2,$0 mod $2,2 add $2,2 mul $1,$2 div $1,10 mul $1,5 add $1,1
37.384615
257
0.796296
149f23133b9f8840ee5726e9a0b1f220b6a92cc4
648
asm
Assembly
oeis/157/A157857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/157/A157857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/157/A157857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A157857: a(n) = 3600*n^2 - n. ; 3599,14398,32397,57596,89995,129594,176393,230392,291591,359990,435589,518388,608387,705586,809985,921584,1040383,1166382,1299581,1439980,1587579,1742378,1904377,2073576,2249975,2433574,2624373,2822372,3027571,3239970,3459569,3686368,3920367,4161566,4409965,4665564,4928363,5198362,5475561,5759960,6051559,6350358,6656357,6969556,7289955,7617554,7952353,8294352,8643551,8999950,9363549,9734348,10112347,10497546,10889945,11289544,11696343,12110342,12531541,12959940,13395539,13838338,14288337 mul $0,1728000 add $0,1727760 mov $2,$0 mul $2,$0 mul $2,2 mov $0,$2 sub $0,5970309235200 div $0,1658880000 add $0,3599
49.846154
494
0.813272
6cf75751c7e97cd739eedafd0199670280a62711
9,564
asm
Assembly
legacy/FencingRecv.asm
davidsmakerworks/fencing-score-recv
35a3c771c2d919737432a1975074210b0b8ff5f0
[ "MIT" ]
null
null
null
legacy/FencingRecv.asm
davidsmakerworks/fencing-score-recv
35a3c771c2d919737432a1975074210b0b8ff5f0
[ "MIT" ]
null
null
null
legacy/FencingRecv.asm
davidsmakerworks/fencing-score-recv
35a3c771c2d919737432a1975074210b0b8ff5f0
[ "MIT" ]
null
null
null
/* * FencingRecv.asm * * Receives signal from scoring box using nRF24L01+ transceiver module * * Configuration is located at beginning of CSEG * * Global registers: * r24 = bit flags to indicate interrupt source * r25 = watchdog counter value * * Set ATtiny2313 fuses: * * CKDIV8: disabled * SUT_CKSEL: INTRCOSC_4MHZ_14CK_65MS * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */ .include "tn2313def.inc" .include "nRF24L01P.inc" /* Define pins for RF module functions */ .equ RF_CE = PORTD0 .equ RF_CSN = PORTD1 .equ RF_IRQ = PORTD2 /* Define watchdog counter start value */ .equ WD_COUNT = 0x4D // Approximately 5 seconds at 4 MHz CLKio, prescaler = CLKio/1024, T0max = TOP /* Define RF module address length */ .equ ADDR_LEN = 0x05 // 5-byte address length /* Define payload width */ .equ PAYLOAD_WIDTH = 0x01 /* Channel and address are stored in RAM in case they need to be changed during execution */ .dseg Channel: .byte 0x01 Addr: .byte 0x05 .cseg .org 0x0000 rjmp Reset /* Wake up on INT0 (RF module external interrupt) */ .org INT0addr rjmp RFInt /* Handle watchdog register when LEDs are on */ .org OVF0addr rjmp TimerTickInt .org INT_VECTORS_SIZE /* CONFIG STARTS HERE */ CHANNEL_PM: // RF channel, padded to word boundary .db 0x0C, 0x00 ADDR_PM: // RF module address, MSByte first, padded to word boundary .db 0x50, 0x46, 0x46, 0x43, 0xBB, 0x00 /* CONFIG ENDS HERE */ Reset: /* Disable MCU interrupts during initialization */ cli /* Initlaize stack pointer */ ldi r16, RAMEND out SPL, r16 /* Set DO, SCK, and LED control lines on PORTB to outputs */ ldi r16, (1<<PORTB7)|(1<<PORTB6)|(1<<PORTB3)|(1<<PORTB2)|(1<<PORTB1)|(1<<PORTB0) out DDRB, r16 /* Set CE and CSN lines on PORTD to outputs */ ldi r16, (1<<PORTD0)|(1<<PORTD1)|(1<<PORTD5) // REMOVETHIS D5 out DDRD, r16 /* Get initial channel value from program memory and store it in RAM */ ldi ZL, low(CHANNEL_PM<<1) ldi ZH, high(CHANNEL_PM<<1) ldi XL, low(Channel) ldi XH, high(Channel) lpm r16, Z st X, r16 /* Get initial address value (5 bytes) from program memory and store it in RAM */ ldi ZL, low(ADDR_PM<<1) ldi ZH, high(ADDR_PM<<1) ldi XL, low(Addr) ldi XH, high(Addr) rcall InitAddr /* Deactivate chip select on RF module */ sbi PORTD, RF_CSN /* Set receive payload width to 1 byte */ ldi r17, RX_PW_P0 ldi r18, PAYLOAD_WIDTH rcall SetRegisterSingle /* Set address width to 5 bytes */ ldi r17, SETUP_AW ldi r18, AW_5 rcall SetRegisterSingle /* Set RF channel to initial value */ ldi r17, RF_CH ldi XL, low(Channel) ldi XH, high(Channel) ld r18, X rcall SetRegisterSingle /* Set RF power to 0 dBm and data rate to 1 mBit/sec */ ldi r17, RF_SETUP ldi r18, RF_PWR_0DBM rcall SetRegisterSingle /* Enable receive pipe 0 only */ ldi r17, EN_RXADDR ldi r18, (1<<ERX_P0) rcall SetRegisterSingle /* Set receive address on pipe 0 */ ldi r17, RX_ADDR_P0 ldi r18, ADDR_LEN ldi XL, low(Addr) ldi XH, high(Addr) rcall SetRegisterMulti /* Mask transmit-related RF module interrupts, enable CRC, and power up RF module in receive mode */ ldi r17, CONFIG ldi r18, (1<<MASK_TX_DS)|(1<<MASK_MAX_RT)|(1<<EN_CRC)|(1<<PWR_UP)|(1<<PRIM_RX) rcall SetRegisterSingle /* Clear any pending interrupts on RF module */ ldi r17, STATUS ldi r18, (1<<TX_DS)|(1<<MAX_RT)|(1<<RX_DR) rcall SetRegisterSingle /* * Set INT0 external interrupt to occur on low logic level (default behavior - included for clarity/future use) * Set Idle sleep mode (default behavior - included for clarity/future use) * Enable MCU sleep mode * */ ldi r16, (1<<SE)|(0<<SM1)|(0<<SM0)|(0<<ISC01)|(0<<ISC00) out MCUCR, r16 /* Enable INT0 external interrupt */ ldi r16, (1<<INT0) out GIMSK, r16 /* Enable Timer0 overflow interrupt */ ldi r16, (1<<TOIE0) out TIMSK, r16 /* Clear interrupt flag register */ clr r24 /* Enable MCU global interrupts */ sei /* Activate RF module chip enable */ sbi PORTD, RF_CE Loop: /* Wait for interrupt (RF module or timer tick) */ sleep /* Clear interrupts while routine is executing */ cli /* If bit 1 in r24 is clear, that means this is a timer tick. Jump to Continue and don't get RF payload */ sbrc r24, 1 rjmp Continue /* Get payload byte from RF module */ rcall GetPayload /* Discard unused input bits */ andi r16, 0b00001111 /* If the packet was 0 (i.e., all lights off) stop the watchdog counter */ breq StopTm StartTm: /* If the packet was not 0 (i.e., lights turned on) start the watchdog counter and jump to SetLEDs */ rcall StartTimer rjmp SetLEDs StopTm: rcall StopTimer SetLEDs: /* Turn on LEDs based on received data */ out PORTB, r16 /* Clear RF module interrupt */ ldi r17, STATUS ldi r18, (1<<RX_DR) rcall SetRegisterSingle Continue: /* Clear interrupt source register, re-enable interrupts and repeat loop */ clr r24 sei rjmp Loop /* * GetPayload * * Inputs: * * None * * Outputs: * * r16 = payload from nRF24L01+ (byte) * */ GetPayload: cbi PORTD, RF_CSN ldi r16, R_RX_PAYLOAD rcall SPITransfer ldi r16, SPI_NOP rcall SPITransfer sbi PORTD, RF_CSN ret /* * SetRegisterSingle * * Inputs: * * r17 = register to set * r18 = desired register value (byte) * */ SetRegisterSingle: push r16 cbi PORTD, RF_CSN ldi r16, W_REGISTER add r16, r17 rcall SPITransfer mov r16, r18 rcall SPITransfer sbi PORTD, RF_CSN pop r16 ret /* * SetRegisterMulti * * Inputs: * * r17 = register to set * r18 = number of bytes in register value * XH:XL = address of register value * * NOTE: Register value is stored in RAM with MSByte first. Value is sent to RF module with LSByte first. * */ SetRegisterMulti: push r16 cbi PORTD, RF_CSN ldi r16, W_REGISTER add r16, r17 rcall SPITransfer add XL, r18 brcc SetRMLoop inc XH SetRMLoop: ld r16, -X rcall SPITransfer dec r18 brne SetRMLoop sbi PORTD, RF_CSN pop r16 ret /* * GetRegisterSingle * * Inputs: * * r17 = register to retrieve * * Outputs: * * r16 = register value (byte) * */ GetRegisterSingle: push r16 cbi PORTD, RF_CSN ldi r16, R_REGISTER add r16, r17 rcall SPITransfer ldi r16, SPI_NOP rcall SPITransfer sbi PORTD, RF_CSN pop r16 ret /* * GetRegisterMulti * * Inputs: * * r17 = register to get * r18 = number of bytes in register value * XH:XL = address of register value * * NOTE: Register value is stored in RAM with MSByte first. Value is received RF module with LSByte first. * */ GetRegisterMulti: push r16 cbi PORTD, RF_CSN ldi r16, R_REGISTER add r16, r17 rcall SPITransfer add XL, r18 brcc GetRMLoop inc XH GetRMLoop: ldi r16, SPI_NOP rcall SPITransfer st -X, r16 dec r18 brne GetRMLoop sbi PORTD, RF_CSN pop r16 ret /* * SPITransfer * * Inputs: * * r16 = data (byte) to transmit on SPI bus * * Outputs: * * r16 = data (byte) received from SPI bus * */ SPITransfer: out USIDR, r16 ldi r16, (1<<USIOIF) out USISR, r16 ldi r16, (1<<USIWM0)|(1<<USICS1)|(1<<USICLK)|(1<<USITC) SPITransferLoop: out USICR, r16 sbis USISR, USIOIF rjmp SPITransferLoop in r16, USIDR ret /* * * StartTimer * * Inputs: None * * Outputs: None * */ StartTimer: push r16 /* Initialize watchdog value to turn off LEDs if they are on for an unexpectedly long time */ ldi r25, WD_COUNT /* Reset Timer0 value */ ldi r16, 0x00 out TCNT0, r16 /* Start Timer0 with CLKio/1024 prescaling factor */ ldi r16, (1<<CS02)|(1<<CS00) out TCCR0B, r16 pop r16 ret /* * * StopTimer * * Inputs: None * * Outputs: None * */ StopTimer: /* Stop Timer0 (i.e., no clock source) */ push r16 ldi r16, (0<<CS02)|(0<<CS00) out TCCR0B, r16 pop r16 ret /* * * RFInt * * Inputs: None * * Outputs: r24 = bit 0 set to signify RF module (i.e., external INT0) * */ RFInt: push r1 in r1, SREG sbr r24, 0b01 out SREG, r1 pop r1 reti /* * * TimerTickInt * * Inputs: None * * Outputs: r24 = bit 1 set to signify timer tick interrupt * */ TimerTickInt: push r1 in r1, SREG sbr r24, 0b10 dec r25 brne TimeOK /* Turn off LEDs and stop timer if watchdog counter has expired */ push r16 ldi r16, 0b00000000 out PORTB, r16 rcall StopTimer pop r16 TimeOK: out SREG, r1 pop r1 reti /* * * InitAddr * * Inputs: * r17 = number of bytes in address * ZH:ZL = program memory address of initial value * XH:XL = RAM address to store value * */ InitAddr: push r16 push r17 ldi r17, ADDR_LEN InitAddrLoop: lpm r16, Z+ st X+, r16 dec r17 brne InitAddrLoop pop r17 pop r16 ret
19.128
112
0.693225
b0bda8eb61f1ae135777e4c530c8b60ddbbfea0e
1,070
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_2_858.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_2_858.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_2_858.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 %r12 push %r13 push %rax push %rbp push %rcx push %rdx // Store lea addresses_normal+0x1ef42, %rax clflush (%rax) nop nop nop nop xor %rdx, %rdx mov $0x5152535455565758, %r10 movq %r10, %xmm2 vmovups %ymm2, (%rax) nop nop nop nop add %r13, %r13 // Faulty Load lea addresses_US+0x15d71, %rcx nop nop nop nop and $20081, %rbp movups (%rcx), %xmm4 vpextrq $1, %xmm4, %r12 lea oracles, %rcx and $0xff, %r12 shlq $12, %r12 mov (%rcx,%r12,1), %r12 pop %rdx pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 2} 00 00 */
16.461538
126
0.654206
b0fcb9eee2f8f37f419f2edeb947aba7974cbc45
738
asm
Assembly
oeis/109/A109438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/109/A109438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/109/A109438.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A109438: a(n) = 5a(n-1) - 5a(n-2) + a(n-3) + 2*(-1)^(n+1), alternatively a(n) = 3a(n-1) + 3a(n-2) - a(n-3). ; 1,5,18,68,253,945,3526,13160,49113,183293,684058,2552940,9527701,35557865,132703758,495257168,1848324913,6898042485,25743845026,96077337620,358565505453,1338184684193,4994173231318,18638508241080,69559859733001,259600930690925,968843863030698,3615774521431868,13494254222696773,50361242369355225,187950715254724126,701441618649541280,2617815759343440993,9769821418724222693,36461469915553449778,136076058243489576420,507842763058404855901,1895294993990129847185,7073337212902114532838 lpb $0 mov $2,$0 sub $0,1 seq $2,105968 ; a(n) = 4*a(n-1) - a(n-2) - 2*(-1)^n, a(0) = 1, a(1) = 4. add $1,$2 lpe add $1,1 mov $0,$1
61.5
486
0.753388
0ef5723a0b29f763c1c43af9f371b8bfce077970
865
asm
Assembly
src/classes/intro-systems/assembly1/prework/binary_convert.asm
ggilmore/csi
e05958cbb89f1d4b7ade4b0c21072adf848f241f
[ "MIT" ]
1
2021-08-21T03:22:50.000Z
2021-08-21T03:22:50.000Z
src/classes/intro-systems/assembly1/prework/binary_convert.asm
ggilmore/csi
e05958cbb89f1d4b7ade4b0c21072adf848f241f
[ "MIT" ]
null
null
null
src/classes/intro-systems/assembly1/prework/binary_convert.asm
ggilmore/csi
e05958cbb89f1d4b7ade4b0c21072adf848f241f
[ "MIT" ]
null
null
null
section .text global binary_convert binary_convert: xor rax, rax ; result = 0 xor rsi, rsi ; i = 0 jmp test grow_number: shl rax, 1 ; result *= 2 loop: movzx rdx, byte [rdi + rsi]; c = *rdi + i - QUESTION: "I notice that I have to specify ; that I only want a single 'byte' here. An ascii character can be specified in a single byte. ; Why is there extra junk when I move a 'word' or a 'qword' into rdx that makes the comparsion fail?" cmp rdx, 0x31 ; c != '1' ? jne increment add rax, 0x1 ; set lowest order bit to 1 increment: inc rsi ; i++ test: movzx rdx, byte [rdi + rsi]; c = *rdi + i cmp rdx, 0x00 ; c != '\0' ? jne grow_number ret
27.03125
132
0.501734
c15e288268700216d8170c6212b0562d8ccdd356
2,785
asm
Assembly
DCS216 Operating System/ep3/kernel/kernel.asm
Lan-Jing/Courses
540db9499b8725ca5b82a2c4e7a3da09f73c0efa
[ "MIT" ]
1
2021-12-17T23:09:00.000Z
2021-12-17T23:09:00.000Z
DCS216 Operating System/ep3/kernel/kernel.asm
Lan-Jing/Courses
540db9499b8725ca5b82a2c4e7a3da09f73c0efa
[ "MIT" ]
null
null
null
DCS216 Operating System/ep3/kernel/kernel.asm
Lan-Jing/Courses
540db9499b8725ca5b82a2c4e7a3da09f73c0efa
[ "MIT" ]
1
2021-08-03T23:42:06.000Z
2021-08-03T23:42:06.000Z
; a kernel(monitor now) that provides program options; org 0x100 SECTION monitor align=16 ;========================================= set_seg: mov ax, cs mov ds, ax mov es, ax cli mov ss, ax mov ax, 0x1000 mov sp, ax mov bp, ax sti print_hint: call clear_screen .set_cursor: mov ah, 0x02 mov bh, 0x00 mov dh, 0x00 mov dl, 0x00 int 0x10 ; set cursor position cld mov si, message mov ah, 0x0e ; set bios function .print_loop: lodsb ; load chars to al one at a time cmp al, 0x00 je .print_done int 0x10 ; bios call jmp .print_loop .print_done: .get_loadeeSeg: mov ax, [program_absPos] mov dx, [program_absPos + 2] mov bx, 16 div bx ; shift 4 bits right to get segment index; mov word[program_segPos], dx mov word[program_segPos + 2], ax .get_input: call keyboard_input ; get keyboard input and place it in al .handle_input: cmp al, 0x30 jz .get_input cmp al, 0x35 ; only 1-4 valid jge .get_input ; get back to the beginning mov bl, 0x30 .select_program: inc bl cmp al, bl jnz .select_program sub bl, 0x30 add bl, 0x02 call read_floppy call clear_screen .handle_control: jmp far [program_segPos] ; handle control to the user program SECTION helper align=16 ;========================================= keyboard_input: mov ah, 0x00 int 0x16 ; read a char from keyboard press ret read_floppy: mov ah, 0x02 mov al, 0x01 ; only read one sector mov ch, 0x00 ; cylinder zero mov cl, bl ; get sector index from reg bx, assuming in one sector mov dh, 0x00 ; head zero mov dl, 0x00 ; drive number, 0 and 1 for floppy mov bx, [program_segPos + 2] mov es, bx ; set es = future ds xor bx, bx ; set offset of the target memory address int 0x13 ; call interupt ret clear_screen: mov ax, 0x0700 ; scoll the whole window mov bh, 0x07 ; white on black mov cx, 0x0000 ; mov dx, 0x184f ; corner coordinates of the window int 0x10 ; clear screen for user program ret SECTION data align=16 ;========================================= data: message db "A basic monitor", 0xD, 0xA db "Press keyboard to run corresponding programs", 0xD, 0xA, db " output string and length 1", 0xD, 0xA, db " stoneUR.com 2", 0xD, 0xA, db " stoneDL.com 3", 0xD, 0xA, " stoneDR.com 4", 0XD, 0xA, 0x00 program_absPos dd 0x10000 ; preset program_segPos dw 0x0, 0x0 ; computed later
25.09009
88
0.561939
3a9d0d404273441981c9bd238eec8bedb4edf19a
71
asm
Assembly
src/main/fragment/mos6502-common/vwsm1_ge_vwsc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwsm1_ge_vwsc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwsm1_ge_vwsc1_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {m1} cmp #<{c1} lda {m1}+1 sbc #>{c1} bvc !+ eor #$80 !: bpl {la1}
7.888889
10
0.492958
9d9c85fa6ec7727e9d59db99f5e3e6831f2f3847
1,332
asm
Assembly
programs/oeis/260/A260878.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/260/A260878.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/260/A260878.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A260878: Number of set partitions of {1, 2, ..., 2*n} with sizes in {[n, n], [2n]}. ; 2,2,4,11,36,127,463,1717,6436,24311,92379,352717,1352079,5200301,20058301,77558761,300540196,1166803111,4537567651,17672631901,68923264411,269128937221,1052049481861,4116715363801,16123801841551,63205303218877,247959266474053,973469712824057,3824345300380221,15033633249770521,59132290782430713,232714176627630545,916312070471295268,3609714217008132871,14226520737620288371,56093138908331422717,221256270138418389603,873065282167813104917,3446310324346630677301,13608507434599516007801,53753604366668088230811,212392290424395860814421,839455243105945545123661,3318776542511877736535401,13124252690842425594480901,51913710643776705684835561,205397724721029574666088521,812850570172585125274307761,3217533506933149454210801551,12738806129490428451365214301,50445672272782096667406248629,199804427433372226016001220057,791532924062974587678774064069,3136262529306125724764953838761,12428892245768720464809261509161,49263609265046928387789436527217,195295022443578894680165266232893,774327632846470705223111406467257,3070609578529107968988200404956361,12178349853827309571919303301013361,48307454420181661301946569760686329,191645966716130525165099506263706417,760401738905937245009910944207609329 sub $2,$0 bin $2,$0 gcd $1,$2 add $1,1 mov $0,$1
148
1,195
0.904655
e2be19d938abc735735bb6b8052fffc401209d5f
183
asm
Assembly
solutions/32 - Creative Writhing/size-6_speed-283.asm
dpflug/7billionhumans
52750eadf63584e2920f143d766e2fd9fb98472d
[ "MIT" ]
null
null
null
solutions/32 - Creative Writhing/size-6_speed-283.asm
dpflug/7billionhumans
52750eadf63584e2920f143d766e2fd9fb98472d
[ "MIT" ]
null
null
null
solutions/32 - Creative Writhing/size-6_speed-283.asm
dpflug/7billionhumans
52750eadf63584e2920f143d766e2fd9fb98472d
[ "MIT" ]
null
null
null
-- 7 Billion Humans (2144) -- -- 32: Creative Writhing -- -- Author: dpflug -- Size: 6 -- Speed: 283 a: step nw,w,sw,n,s,ne,e,se if c < 99: pickup c write 99 drop endif jump a
10.166667
29
0.606557
32363fe26ffb1111457c09d147ac137f0de09f1b
327
asm
Assembly
oeis/021/A021863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021863: Decimal expansion of 1/859. ; Submitted by Jon Maiga ; 0,0,1,1,6,4,1,4,4,3,5,3,8,9,9,8,8,3,5,8,5,5,6,4,6,1,0,0,1,1,6,4,1,4,4,3,5,3,8,9,9,8,8,3,5,8,5,5,6,4,6,1,0,0,1,1,6,4,1,4,4,3,5,3,8,9,9,8,8,3,5,8,5,5,6,4,6,1,0,0,1,1,6,4,1,4,4,3,5,3,8,9,9,8,8,3,5,8,5,5 add $0,1 mov $2,10 pow $2,$0 div $2,859 mov $0,$2 mod $0,10
29.727273
201
0.556575
43ec91d838a07f43a7090838c5770813ed1336dd
960
asm
Assembly
programs/oeis/195/A195119.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/195/A195119.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195119.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A195119: a(n) = 2*n - floor(n*sqrt(2)). ; 0,1,2,2,3,3,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,15,15,16,16,17,17,18,19,19,20,20,21,22,22,23,23,24,25,25,26,26,27,27,28,29,29,30,30,31,32,32,33,33,34,34,35,36,36,37,37,38,39,39,40,40,41,42,42,43,43,44,44,45,46,46,47,47,48,49,49,50,50,51,51,52,53,53,54,54,55,56,56,57,57,58,58,59,60,60,61,61,62,63,63,64,64,65,66,66,67,67,68,68,69,70,70,71,71,72,73,73,74,74,75,75,76,77,77,78,78,79,80,80,81,81,82,83,83,84,84,85,85,86,87,87,88,88,89,90,90,91,91,92,92,93,94,94,95,95,96,97,97,98,98,99,99,100,101,101,102,102,103,104,104,105,105,106,107,107,108,108,109,109,110,111,111,112,112,113,114,114,115,115,116,116,117,118,118,119,119,120,121,121,122,122,123,124,124,125,125,126,126,127,128,128,129,129,130,131,131,132,132,133,133,134,135,135,136,136,137,138,138,139,139,140,141,141,142,142,143,143,144,145,145,146,146 lpb $0 sub $0,1 add $1,1 add $2,1 add $3,$0 lpe lpb $3 sub $1,1 add $2,1 sub $3,$2 lpe
64
815
0.661458
37b210c0f246e319e0ff9dfc739697c798a05de2
9,560
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xca.log_21829_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xca.log_21829_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xca.log_21829_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x6321, %r13 nop nop nop nop sub $53104, %r12 movb $0x61, (%r13) nop sub %r12, %r12 lea addresses_UC_ht+0x7865, %r10 nop cmp %rbp, %rbp and $0xffffffffffffffc0, %r10 movaps (%r10), %xmm4 vpextrq $1, %xmm4, %rsi nop cmp %rcx, %rcx lea addresses_D_ht+0x17cd1, %r12 nop and %r15, %r15 mov (%r12), %esi nop nop nop nop nop and $59219, %r12 lea addresses_WT_ht+0x1b99, %r10 nop nop nop dec %rsi movw $0x6162, (%r10) nop inc %r15 lea addresses_D_ht+0x70d9, %rsi lea addresses_A_ht+0xfc79, %rdi nop nop nop nop add $57241, %r15 mov $17, %rcx rep movsl nop nop nop nop add $41364, %rsi lea addresses_normal_ht+0x14501, %r13 nop nop nop xor $61763, %r15 movups (%r13), %xmm6 vpextrq $1, %xmm6, %rsi lfence lea addresses_UC_ht+0x150f9, %rsi lea addresses_normal_ht+0x1c9a9, %rdi nop nop sub $13541, %r10 mov $69, %rcx rep movsq cmp %r15, %r15 lea addresses_A_ht+0xf479, %r15 nop nop and $5424, %r12 mov (%r15), %r10d xor %rbp, %rbp lea addresses_A_ht+0xc079, %rdi and $14839, %r15 mov $0x6162636465666768, %r13 movq %r13, (%rdi) nop add $43291, %rbp lea addresses_A_ht+0x13479, %rdi clflush (%rdi) nop nop inc %rsi movups (%rdi), %xmm6 vpextrq $1, %xmm6, %r12 cmp $27141, %r13 lea addresses_normal_ht+0x36d9, %rbp nop nop nop add %rsi, %rsi mov (%rbp), %di nop dec %rdi lea addresses_normal_ht+0x7a91, %rbp nop nop xor $17604, %rcx movb $0x61, (%rbp) nop nop add %r10, %r10 lea addresses_D_ht+0x1d479, %r12 inc %rdi movb (%r12), %r13b nop nop nop xor $62877, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi // Load lea addresses_D+0x16a79, %r13 nop and %r14, %r14 vmovups (%r13), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rbp nop nop nop nop xor $43634, %r9 // Store mov $0x2453610000000279, %r15 nop nop cmp %rcx, %rcx movb $0x51, (%r15) nop xor $8416, %rcx // Store mov $0x479, %rbp nop nop nop nop add %r15, %r15 movb $0x51, (%rbp) nop nop nop nop sub %rcx, %rcx // Store lea addresses_WT+0x2389, %rbp xor %r15, %r15 movl $0x51525354, (%rbp) nop nop and %r13, %r13 // Store lea addresses_US+0xf479, %r14 nop nop nop nop nop xor %r9, %r9 mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovups %ymm4, (%r14) nop sub $41342, %rdi // Faulty Load lea addresses_US+0xf479, %rcx nop nop nop nop nop sub $22149, %r13 mov (%rcx), %r15d lea oracles, %r14 and $0xff, %r15 shlq $12, %r15 mov (%r14,%r15,1), %r15 pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': True, 'congruent': 8}} {'8c': 14, '0c': 16, 'e0': 12, '72': 18, '42': 19, 'e8': 22, 'ae': 16, 'd8': 14, '6e': 15, '98': 26, '6a': 13, 'ea': 13, 'b8': 24, 'e4': 17, '51': 18, '46': 17, '1e': 10, 'a2': 12, 'c2': 29, '08': 8, 'ce': 15, '4c': 16, '64': 13, '68': 8, '88': 30, '66': 10, 'ec': 13, 'f4': 18, 'd4': 14, '4e': 18, '28': 16, '80': 19, '3a': 13, 'b2': 19, 'ca': 18, '0a': 14, 'be': 11, 'fc': 14, '9c': 15, '84': 20, '2c': 16, 'c8': 16, '60': 22, '90': 17, 'da': 18, 'ee': 13, 'c6': 18, 'aa': 12, '56': 19, '36': 21, '54': 14, '2e': 24, 'e6': 19, 'f8': 14, 'd0': 23, 'fa': 22, '18': 9, 'ac': 26, '76': 16, '8a': 17, '7c': 23, '02': 23, '92': 20, '26': 12, '3c': 15, '30': 14, '1c': 17, '06': 24, '24': 11, '44': 16, 'a6': 18, '5a': 18, '5c': 15, 'a8': 21, '62': 12, 'c4': 18, '00': 18, '04': 17, '4a': 10, 'c0': 25, '58': 19697, '74': 19, '16': 14, '52': 9, 'ba': 15, '38': 21, '32': 13, '8e': 10, '7a': 14, '82': 14, 'a0': 11, '70': 12, '7e': 19, '1a': 16, 'e2': 21, '40': 19, '78': 20, 'dc': 13, 'f2': 13, '6c': 6, '20': 19, 'd2': 15, '94': 16, '5e': 18, 'd6': 20, 'b6': 18, '48': 16, '50': 16, '34': 16, 'bc': 17, 'de': 20, 'b0': 16, '9e': 13, 'b4': 24, '86': 20, 'cc': 11, 'fe': 16, 'a4': 17, '22': 26, '3e': 25, '2a': 20, 'f0': 10, '14': 12, '9a': 24, '96': 15, '10': 18, '0e': 13, '12': 17, 'f6': 15} 58 58 ec 54 2c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 1e 58 58 64 58 58 58 60 58 58 58 58 58 58 58 4e 58 58 58 58 58 5a bc 58 58 58 58 58 02 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5a 58 58 58 58 58 58 58 58 58 58 58 58 1c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 6e 58 58 58 58 58 58 cc 58 58 58 58 58 58 58 58 58 58 58 34 58 58 58 58 58 58 58 58 58 58 58 58 58 58 c4 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 14 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 72 58 58 58 58 58 58 58 58 58 58 58 58 74 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 e6 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 98 46 58 58 58 58 58 58 58 58 00 50 58 58 58 58 58 58 58 5c 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 d8 58 58 58 58 58 58 fc 58 58 58 1c 58 58 58 58 58 58 58 42 58 58 58 58 58 b8 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 fe 58 58 58 be 58 58 58 58 58 1a 58 58 58 58 58 06 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5a 58 58 58 58 58 ea 58 58 58 58 58 58 70 58 40 58 e0 58 d4 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 9a 58 58 58 58 58 58 58 82 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 1e 58 58 58 58 58 58 58 1c 58 58 58 58 58 58 58 d4 58 58 58 58 58 58 58 58 fa 58 58 58 58 58 cc 58 58 58 58 58 58 58 58 ae 58 58 58 58 2e 58 58 58 da 58 58 58 58 58 58 58 58 06 58 58 58 58 58 58 58 58 58 58 00 f0 58 58 fc 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 36 58 58 58 58 58 58 58 58 58 44 58 58 58 58 58 58 58 58 58 58 c6 58 58 04 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 f0 58 58 58 58 58 58 58 58 58 58 58 58 ac 1a 58 58 58 58 58 58 72 04 58 58 58 58 58 58 58 58 58 58 58 58 58 ee 58 58 58 58 58 58 58 54 58 58 58 58 58 58 fc 58 58 58 58 58 58 58 58 58 92 58 58 58 58 58 58 58 bc 58 58 58 58 58 58 58 58 58 58 8a 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 c0 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 de 58 58 58 58 58 58 58 58 58 58 58 58 d6 58 e8 58 58 58 58 f6 58 58 58 58 52 58 58 58 58 58 58 58 a2 58 58 58 5e e8 34 58 2a 58 de 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 2c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 70 58 58 58 58 58 58 58 58 58 58 06 58 58 58 58 58 58 58 20 58 58 58 58 8e 58 58 58 84 58 58 58 58 58 58 58 58 58 58 58 d4 58 58 58 a8 58 58 58 58 58 58 58 58 58 58 58 58 b8 58 58 58 84 aa 58 58 58 58 58 58 58 58 58 58 f4 58 58 58 58 58 58 58 58 7e 58 58 58 58 90 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 b0 58 58 4e 58 58 58 58 58 58 60 58 58 58 2a 58 58 58 58 84 58 58 58 58 58 58 58 58 58 24 58 58 58 58 58 58 58 02 58 58 58 58 58 58 58 58 76 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 9a 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
38.704453
2,999
0.616527
68fe2a22d65e914f30fe153f507a7d20e9bea545
2,418
asm
Assembly
final practice/f_2017/question1/question1.asm
ConstantinCezB/Computer-Architecture-assembly
24ddc05c96d2be019c77e914a3b1146352b4088e
[ "Apache-2.0" ]
null
null
null
final practice/f_2017/question1/question1.asm
ConstantinCezB/Computer-Architecture-assembly
24ddc05c96d2be019c77e914a3b1146352b4088e
[ "Apache-2.0" ]
null
null
null
final practice/f_2017/question1/question1.asm
ConstantinCezB/Computer-Architecture-assembly
24ddc05c96d2be019c77e914a3b1146352b4088e
[ "Apache-2.0" ]
null
null
null
; AddTwo.asm - adds two 32-bit integers. ; Chapter 3 example include Irvine32.inc .data var BYTE "return: ", 0 var1 BYTE "push: ", 0 .code main proc ; creating the registors needed mov ebx, 3 ;this represents the n mov ecx, 1 ;this represents the k mov eax, 0 ;this is the total sum call Recu call WriteDec CALL Crlf exit main ENDP ;push ebx ;return n * fun(n-1) Recu PROC ;============================================================================================== This part is for tracing only ;pop eax ;push eax ;mov edx, OFFSET var1 ;call WriteString ;call WriteDec ;CALL Crlf ;CALL Crlf ;MOV eax, ebx ;call WriteDec ;CALL Crlf ;MOV eax, ecx ;call WriteDec ;CALL Crlf ;CALL Crlf ;=========================================================================================== left call ;pushing the variables needed in the stack push ebx push ecx ;if the base case is reached then just call the ret part with the ans cmp ebx, ecx je endRecursion cmp ecx, 0 je endRecursion ;modifying the variables needed using the registers dec ebx CALL Recu ;============================================================================================ right call ;pushing the variables needed in the stack pop ecx pop ebx push ebx push ecx ;if the base case is reached then just call the ret part with the ans cmp ebx, ecx je endRecursion cmp ecx, 0 je endRecursion ;modifying the variables needed using the registers dec ebx dec ecx CALL Recu ;=========================================================================================== end endRecursion: ;take the value of the answer and then return it. ;the answer will be stored in the pop ecx pop ebx ; comparing to take into account what should be added (this should be used if we only want the end of the recursion tree) cmp ebx, ecx je calculate cmp ecx, 0 je calculate jmp finishLine calculate: INC EAX finishLine: ;============================================================================================== This part is for tracing only ;pop eax ;push eax ;mov edx, OFFSET var ;call WriteString ;call WriteDec ;CALL Crlf ;CALL Crlf ;MOV eax, ebx ;call WriteDec ;CALL Crlf ;MOV eax, ecx ;call WriteDec ;CALL Crlf ;CALL Crlf ret Recu ENDP END main
20.491525
125
0.545906
335ce7ec07ec330ef19eea3a54376b4fbdb41f62
402
asm
Assembly
programs/oeis/145/A145608.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/145/A145608.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/145/A145608.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A145608: Numbers a(n)=k such that (1/3)*(5*(2k+1)^2-2) is A057080(n)^2 ; 0,3,27,216,1704,13419,105651,831792,6548688,51557715,405913035,3195746568,25160059512,198084729531,1559517776739,12278057484384,96664942098336,761041479302307,5991666892320123,47172293659258680 add $0,1 mov $1,1 lpb $0 sub $0,1 add $1,$2 add $1,$2 add $1,$2 add $3,$1 sub $3,1 add $3,$1 mov $2,$3 lpe sub $1,1
23.647059
195
0.696517
914f84bb401539bba7331e64fdba03af25d78820
338
asm
Assembly
programs/oeis/071/A071986.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071986.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071986.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071986: Parity of the prime-counting function pi(n). ; 0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1 mov $1,$0 seq $1,62298 ; Number of nonprimes <= n. add $0,$1 sub $0,1 mod $0,2
37.555556
201
0.559172
0cf137dd98c3c1a5ecfbd43238b4f97ca41fdd53
1,142
asm
Assembly
SumoBot_Code_Dev/SumoBot_Maze/asm/src/sumomaze_boardtest.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
5
2017-04-17T15:11:40.000Z
2021-12-13T23:52:09.000Z
SumoBot_Code_Dev/SumoBot_Maze/asm/src/sumomaze_boardtest.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
null
null
null
SumoBot_Code_Dev/SumoBot_Maze/asm/src/sumomaze_boardtest.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
null
null
null
/* * Sumo Maze Bot Board Test Code * * org: 01/24/2015 * rev: * auth: Nels "Chip" Pearson * * Target: Sumo Maze Bot Board, 20MHz, ATmega164P, Sumo Bot base * * Dependentcies * * Resources * SRAM * * IO * */ .equ SMB_STATUS_LED = PORTD2 .DSEG smb_led1_toggle: .BYTE 1 .CSEG /* * PWM Test..Disable Demo service when using this function. */ smb_set_pwm: lds R16, floor_det_status andi R16, FLOOR_DET_CENTER ; test center only brne smbs_skip00 ldi r18, high(PWM_R_MED_R) ldi r17, low(PWM_R_MED_R) call pwm_set_right ret ; smbs_skip00: call pwm_stop_right call pwm_stop_left ret /* * LED control functions. */ smb_led1_on: sbi DDRD, SMB_STATUS_LED sbi PORTD, SMB_STATUS_LED ret smb_led1_off: cbi PORTD, SMB_STATUS_LED ; D2 OFF ret /* * Timer1 test */ smb_timer1_intr: ; Save SREG push r0 in r0, SREG push r0 ; push r16 ; lds r16, smb_led1_toggle tst r16 breq smb_ti_skip00 call smb_led1_on clr r16 rjmp smb_ti_update ; smb_ti_skip00: call smb_led1_off ldi r16, 1 ; smb_ti_update: sts smb_led1_toggle, r16 ; pop r16 ; Restore SREG pop r0 out SREG, r0 pop r0 ; reti
12.977273
64
0.696147
e8ddbc1f0a1a5573baae77bf50aee121ca76f899
1,146
asm
Assembly
unittests/ASM/Primary/Primary_B8_2.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/Primary/Primary_B8_2.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/Primary/Primary_B8_2.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "RAX": "0x0000000044434241", "RBX": "0x0000000044434241", "RCX": "0x0000000044434241", "RDX": "0x0000000044434241", "RBP": "0x0000000044434241", "RSI": "0x0000000044434241", "RDI": "0x0000000044434241", "RSP": "0x0000000044434241", "R8": "0x0000000044434241", "R9": "0x0000000044434241", "R10": "0x0000000044434241", "R11": "0x0000000044434241", "R12": "0x0000000044434241", "R13": "0x0000000044434241", "R14": "0x0000000044434241", "R15": "0x0000000044434241" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rax, -1 mov rbx, -1 mov rcx, -1 mov rdx, -1 mov rbp, -1 mov rsi, -1 mov rdi, -1 mov rsp, -1 mov r8, -1 mov r9, -1 mov r10, -1 mov r11, -1 mov r12, -1 mov r13, -1 mov r14, -1 mov r15, -1 mov eax, 0x44434241 mov ebx, 0x44434241 mov ecx, 0x44434241 mov edx, 0x44434241 mov ebp, 0x44434241 mov esi, 0x44434241 mov edi, 0x44434241 mov esp, 0x44434241 mov r8d, 0x44434241 mov r9d, 0x44434241 mov r10d, 0x44434241 mov r11d, 0x44434241 mov r12d, 0x44434241 mov r13d, 0x44434241 mov r14d, 0x44434241 mov r15d, 0x44434241 hlt
18.483871
32
0.663176
d95b44ce34275e5cb15b92cfb901603cba1617f3
376
asm
Assembly
wof/lcs/123p/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/123p/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/123p/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 0017A8 rts [123p+ 1] 0017AE rts [123p+ 1] 00B442 move.b #$1, ($1,A0) 00B448 rts [123p+ 1] 01BA38 move.b #$1, ($1,A0) [123p+ C0] 01BA3E move.b #$2, ($29,A0) [123p+ 1] 01BA58 subq.b #1, ($1f,A0) [123p+ 1] 05E5D6 bne $5e5da [123p+ 1, enemy+ 1] copyright zengfr site:http://github.com/zengfr/romhack
28.923077
54
0.625
f4654829daa1b386685ddaebc9b621b6dada2903
1,416
asm
Assembly
programs/oeis/292/A292620.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/292/A292620.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/292/A292620.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A292620: a(n) = a(n-1) + a(floor(log_2(n))), with a(1) = 1. ; 1,2,3,5,7,9,11,14,17,20,23,26,29,32,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,122,129,136,143,150,157,164,171,178,185,192,199,206,213,220,227,234,241,248,255,262,269,276,283,290,297,304,311,318,325,332,339,348,357,366,375,384,393,402,411,420,429,438,447,456,465,474,483,492,501,510,519,528,537,546,555,564,573,582,591,600,609,618,627,636,645,654,663,672,681,690,699,708,717,726,735,744,753,762,771,780,789,798,807,816,825,834,843,852,861,870,879,888,897,906,915,926,937,948,959,970,981,992,1003,1014,1025,1036,1047,1058,1069,1080,1091,1102,1113,1124,1135,1146,1157,1168,1179,1190,1201,1212,1223,1234,1245,1256,1267,1278,1289,1300,1311,1322,1333,1344,1355,1366,1377,1388,1399,1410,1421,1432,1443,1454,1465,1476,1487,1498,1509,1520,1531,1542,1553,1564,1575,1586,1597,1608,1619,1630,1641,1652,1663,1674,1685,1696,1707,1718,1729,1740,1751,1762,1773,1784,1795,1806,1817,1828,1839,1850,1861,1872,1883,1894,1905,1916,1927,1938,1949,1960,1971,1982,1993,2004,2015,2026,2037,2048,2059,2070,2081,2092,2103,2114,2125,2136,2147,2158,2169,2180,2191,2202,2213,2224,2235,2246,2257,2268 mov $7,$0 mov $9,$0 add $9,1 lpb $9,1 clr $0,7 mov $0,$7 sub $9,1 sub $0,$9 mov $3,1 mov $5,1 lpb $0,1 sub $0,1 sub $0,$3 mov $1,$0 mov $0,2 add $1,3 log $1,2 mov $5,$1 trn $1,3 lpe add $1,$5 add $8,$1 lpe mov $1,$8
50.571429
1,084
0.69209
bf58eff1343c8cdbdec23e2f7c5136f1977798f4
296
asm
Assembly
programs/oeis/004/A004277.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/004/A004277.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/004/A004277.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A004277: 1 together with positive even numbers. ; 1,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132 pow $1,$0 add $1,$0 add $1,$0
42.285714
214
0.675676
4b71ea54f7a2f98f1edeee4d8fa688f9f895bacf
481
asm
Assembly
programs/oeis/346/A346403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/346/A346403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/346/A346403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A346403: a(1)=1; for n>1, a(n) gives the sum of the exponents in the different ways to write n as n = x^y, 2 <= x, 1 <= y. ; 1,1,1,3,1,1,1,4,3,1,1,1,1,1,1,7,1,1,1,1,1,1,1,1,3,1,4,1,1,1,1,6,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7,1,1,1,1,1,1 seq $0,52409 ; a(n) = largest integer power m for which a representation of the form n = k^m exists (for some k). seq $0,39653 ; a(0) = 0; for n > 0, a(n) = sigma(n)-1. add $0,1
68.714286
176
0.573805
066ff91b2dad93ea6beda50c25b2ece90f335e8c
185
asm
Assembly
data/pokemon/dex_entries/blissey.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/blissey.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/blissey.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "HAPPINESS@" ; species name db "Biting into one" next "of the delicious" next "eggs that BLISSEY" page "provides will make" next "everyone around" next "smile with joy.@"
18.5
31
0.691892
964555b02d2f5dc9029c196cd4a91c32508ee506
6,749
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_975.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_notsx.log_21829_975.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_notsx.log_21829_975.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x194b2, %rsi lea addresses_normal_ht+0x1ee1e, %rdi cmp %r13, %r13 mov $103, %rcx rep movsq nop nop sub %r10, %r10 lea addresses_normal_ht+0x18f32, %r14 nop nop nop nop sub %rax, %rax movw $0x6162, (%r14) nop nop nop nop nop add $40560, %r10 lea addresses_WT_ht+0x4332, %rsi lea addresses_normal_ht+0x12f1a, %rdi clflush (%rdi) nop nop nop nop xor $14019, %rbx mov $51, %rcx rep movsw nop sub %rsi, %rsi lea addresses_D_ht+0xe052, %rdi nop add $19412, %rax movups (%rdi), %xmm4 vpextrq $0, %xmm4, %r14 nop nop nop nop add $6424, %rax lea addresses_A_ht+0x13d32, %rsi lea addresses_D_ht+0x15432, %rdi nop nop nop xor $56855, %r10 mov $13, %rcx rep movsw nop nop nop nop nop sub %r13, %r13 lea addresses_normal_ht+0x2132, %rcx sub %rax, %rax mov (%rcx), %si nop nop nop lfence pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x1dc32, %r12 nop nop nop nop nop cmp %r11, %r11 movw $0x5152, (%r12) nop xor %r9, %r9 // REPMOV lea addresses_PSE+0x6642, %rsi lea addresses_A+0x7332, %rdi and %r11, %r11 mov $87, %rcx rep movsb nop inc %rsi // Store lea addresses_normal+0x17c8, %rcx nop nop sub $55335, %r11 movw $0x5152, (%rcx) nop nop nop dec %r15 // Store lea addresses_WT+0x18932, %r12 nop nop dec %rcx movb $0x51, (%r12) dec %r12 // REPMOV lea addresses_normal+0x7de2, %rsi lea addresses_D+0x19132, %rdi nop sub %r11, %r11 mov $86, %rcx rep movsb nop nop nop inc %rcx // Faulty Load lea addresses_WT+0x18932, %rcx nop add %r11, %r11 mov (%rcx), %r15 lea oracles, %r11 and $0xff, %r15 shlq $12, %r15 mov (%r11,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_PSE'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_normal'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}} {'51': 21829} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
35.898936
2,999
0.657875
dddfc217cd2f2a65c0eed2e5dd56b492f98115bc
337
asm
Assembly
programs/oeis/087/A087281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/087/A087281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/087/A087281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A087281: a(n) = Lucas(7*n). ; 2,29,843,24476,710647,20633239,599074578,17393796001,505019158607,14662949395604,425730551631123,12360848946698171,358890350005878082,10420180999117162549,302544139324403592003,8784200221406821330636,255044350560122222180447,7405070366464951264563599 mul $0,7 seq $0,258160 ; a(n) = 8*Lucas(n). div $0,8
48.142857
252
0.824926
77679505ac00b2f3f3b09ab16ad2409c761b47fd
4,527
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_624.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_0xca_notsx.log_21829_624.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_0xca_notsx.log_21829_624.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 %r14 push %r8 push %r9 push %rax push %rbp push %rbx push %rdx // Store lea addresses_normal+0x1c860, %r8 xor $5319, %rdx mov $0x5152535455565758, %rax movq %rax, %xmm3 movups %xmm3, (%r8) nop and $51597, %rax // Store lea addresses_US+0x1cfe0, %rbp clflush (%rbp) nop nop nop nop nop add %r14, %r14 movw $0x5152, (%rbp) nop nop cmp $60074, %r8 // Store lea addresses_A+0x1f0a0, %rdx nop nop cmp %r8, %r8 mov $0x5152535455565758, %r14 movq %r14, %xmm0 movups %xmm0, (%rdx) nop nop nop nop nop sub $30970, %rbx // Faulty Load lea addresses_normal+0xa7e0, %rbp sub $26632, %r14 mov (%rbp), %r8d lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rdx pop %rbx pop %rbp pop %rax pop %r9 pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': True, 'AVXalign': True, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
54.542169
2,999
0.659377
4f8fa9111b2851b92a0dc0081a994c9fbfb077cd
292
asm
Assembly
programs/oeis/122/A122229.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/122/A122229.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/122/A122229.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A122229: a(n) = A014486(A122228(n)). ; 0,2,12,56,228,920,3684,14744,58980,235928,943716,3774872,15099492,60397976,241591908,966367640,3865470564,15461882264,61847529060,247390116248,989560464996,3958241859992,15832967439972 mov $1,4 pow $1,$0 mul $1,6 div $1,20 mul $1,6 div $1,4 mul $1,2
26.545455
186
0.760274
829ba5442a8b85c7a2804d9cb765c6c1cb46bd23
12,019
asm
Assembly
src/test/ref/examples/mega65/helloworld-mega65.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/examples/mega65/helloworld-mega65.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/examples/mega65/helloworld-mega65.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Hello World for MEGA 65 - using stdio.h and conio.h /// @file /// Functions for performing input and output. .cpu _45gs02 // MEGA65 platform PRG executable starting in MEGA65 mode. .file [name="helloworld-mega65.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$2001] .segmentdef Code [start=$2017] .segmentdef Data [startAfter="Code"] .segment Basic .byte $0a, $20, $0a, $00, $fe, $02, $20, $30, $00 // 10 BANK 0 .byte $15, $20, $14, $00, $9e, $20 // 20 SYS .text toIntString(__start) // NNNN .byte $00, $00, $00 // /// Map 2nd KB of colour RAM $DC00-$DFFF (hiding CIA's) .const CRAM2K = 1 .const LIGHT_BLUE = $e .const STACK_BASE = $103 /// I/O Personality selection .label IO_KEY = $d02f /// C65 Banking Register .label IO_BANK = $d030 /// Color Ram .label COLORRAM = $d800 /// Default address of screen character matrix .label DEFAULT_SCREEN = $800 // The number of bytes on the screen // The current cursor x-position .label conio_cursor_x = $d // The current cursor y-position .label conio_cursor_y = 8 // The current text cursor line start .label conio_line_text = $b // The current color cursor line start .label conio_line_color = 9 .segment Code __start: { // __ma char conio_cursor_x = 0 ldz #0 stz.z conio_cursor_x // __ma char conio_cursor_y = 0 stz.z conio_cursor_y // __ma char *conio_line_text = CONIO_SCREEN_TEXT lda #<DEFAULT_SCREEN sta.z conio_line_text lda #>DEFAULT_SCREEN sta.z conio_line_text+1 // __ma char *conio_line_color = CONIO_SCREEN_COLORS lda #<COLORRAM sta.z conio_line_color lda #>COLORRAM sta.z conio_line_color+1 // #pragma constructor_for(conio_mega65_init, cputc, clrscr, cscroll) jsr conio_mega65_init jsr main rts } // Enable 2K Color ROM conio_mega65_init: { // Position cursor at current line .label BASIC_CURSOR_LINE = $eb // asm sei // memoryRemap(0,0,0) // Map memory to BANK 0 : 0x00XXXX - giving access to I/O jsr memoryRemap // *IO_KEY = 0x47 // Enable the VIC 4 ldz #$47 stz IO_KEY // *IO_KEY = 0x53 ldz #$53 stz IO_KEY // *IO_BANK |= CRAM2K // Enable 2K Color RAM lda #CRAM2K ora IO_BANK sta IO_BANK // char line = *BASIC_CURSOR_LINE+1 lda.z BASIC_CURSOR_LINE inc // if(line>=CONIO_HEIGHT) cmp #$19 bcc __b1 lda #$19-1 __b1: // gotoxy(0, line) jsr gotoxy // } rts } // Output one character at the current cursor position // Moves the cursor forward. Scrolls the entire screen if needed // void cputc(__register(A) char c) cputc: { .const OFFSET_STACK_C = 0 tsx lda STACK_BASE+OFFSET_STACK_C,x // if(c=='\n') cmp #'\n' beq __b1 // conio_line_text[conio_cursor_x] = c ldz conio_cursor_x sta (conio_line_text),z // conio_line_color[conio_cursor_x] = conio_textcolor lda #LIGHT_BLUE sta (conio_line_color),z // if(++conio_cursor_x==CONIO_WIDTH) inc.z conio_cursor_x ldz #$50 cpz.z conio_cursor_x bne __breturn // cputln() jsr cputln __breturn: // } rts __b1: // cputln() jsr cputln rts } main: { // printf("hello world!") jsr printf_str // } rts .segment Data s: .text "hello world!" .byte 0 } .segment Code // Remap some of the eight 8K memory blocks in the 64K address space of the 6502 to point somewhere else in the first 1MB memory space of the MEGA65. // After the remapping the CPU will access the mapped memory whenever it uses instructions that access a remapped block. // See section 2.3.4 in http://www.zimmers.net/cbmpics/cbm/c65/c65manual.txt for a description of the CPU memory remapper of the C65. // remapBlocks: Indicates which 8K blocks of the 6502 address space to remap. Each bit represents one 8K block // - bit 0 Memory block $0000-$1fff. Use constant MEMORYBLOCK_0000. // - bit 1 Memory block $2000-$3fff. Use constant MEMORYBLOCK_2000. // - bit 2 Memory block $4000-$5fff. Use constant MEMORYBLOCK_4000. // - bit 3 Memory block $6000-$7fff. Use constant MEMORYBLOCK_6000. // - bit 4 Memory block $8000-$9fff. Use constant MEMORYBLOCK_8000. // - bit 5 Memory block $a000-$bfff. Use constant MEMORYBLOCK_A000. // - bit 6 Memory block $c000-$dfff. Use constant MEMORYBLOCK_C000. // - bit 7 Memory block $e000-$ffff. Use constant MEMORYBLOCK_E000. // lowerPageOffset: Offset that will be added to any remapped blocks in the lower 32K of memory (block 0-3). // The offset is a page offset (meaning it is multiplied by 0x100). Only the lower 12bits of the passed value is used. // - If block 0 ($0000-$1fff) is remapped it will point to lowerPageOffset*$100. // - If block 1 ($2000-$3fff) is remapped it will point to lowerPageOffset*$100 + $2000. // - If block 2 ($4000-$5fff) is remapped it will point to lowerPageOffset*$100 + $4000. // - If block 3 ($6000-$7fff) is remapped it will point to lowerPageOffset*$100 + $6000. // upperPageOffset: Offset that will be added to any remapped blocks in the upper 32K of memory (block 4-7). // The offset is a page offset (meaning it is multiplied by 0x100). Only the lower 12bits of the passed value is used. // - If block 4 ($8000-$9fff) is remapped it will point to upperPageOffset*$100 + $8000 // - If block 5 ($a000-$bfff) is remapped it will point to upperPageOffset*$100 + $a000. // - If block 6 ($c000-$dfff) is remapped it will point to upperPageOffset*$100 + $c000. // - If block 7 ($e000-$ffff) is remapped it will point to upperPageOffset*$100 + $e000. // void memoryRemap(char remapBlocks, unsigned int lowerPageOffset, unsigned int upperPageOffset) memoryRemap: { .label aVal = $19 .label xVal = $18 .label yVal = $17 .label zVal = $16 // char aVal = BYTE0(lowerPageOffset) // lower blocks offset page low ldz #0 stz.z aVal // char xVal = (remapBlocks << 4) | (BYTE1(lowerPageOffset) & 0xf) // lower blocks to map + lower blocks offset high nibble stz.z xVal // char yVal = BYTE0(upperPageOffset) // upper blocks offset page stz.z yVal // char zVal = (remapBlocks & 0xf0) | (BYTE1(upperPageOffset) & 0xf) // upper blocks to map + upper blocks offset page high nibble stz.z zVal // asm lda aVal ldx xVal ldy yVal map eom // } rts } // Set the cursor to the specified position // void gotoxy(char x, __register(A) char y) gotoxy: { .const x = 0 .label __5 = $14 .label __6 = $10 .label __7 = $10 .label line_offset = $10 .label __8 = $12 .label __9 = $10 // if(y>CONIO_HEIGHT) cmp #$19+1 bcc __b2 lda #0 __b2: // conio_cursor_x = x ldz #x stz.z conio_cursor_x // conio_cursor_y = y sta.z conio_cursor_y // unsigned int line_offset = (unsigned int)y*CONIO_WIDTH sta.z __7 lda #0 sta.z __7+1 lda.z __7 asl sta.z __8 lda.z __7+1 rol sta.z __8+1 asl.z __8 rol.z __8+1 clc lda.z __9 adc.z __8 sta.z __9 lda.z __9+1 adc.z __8+1 sta.z __9+1 asw line_offset asw line_offset asw line_offset asw line_offset // CONIO_SCREEN_TEXT + line_offset lda.z line_offset clc adc #<DEFAULT_SCREEN sta.z __5 lda.z line_offset+1 adc #>DEFAULT_SCREEN sta.z __5+1 // conio_line_text = CONIO_SCREEN_TEXT + line_offset lda.z __5 sta.z conio_line_text lda.z __5+1 sta.z conio_line_text+1 // CONIO_SCREEN_COLORS + line_offset lda.z __6 clc adc #<COLORRAM sta.z __6 lda.z __6+1 adc #>COLORRAM sta.z __6+1 // conio_line_color = CONIO_SCREEN_COLORS + line_offset lda.z __6 sta.z conio_line_color lda.z __6+1 sta.z conio_line_color+1 // } rts } // Print a newline cputln: { // conio_line_text += CONIO_WIDTH lda #$50 clc adc.z conio_line_text sta.z conio_line_text bcc !+ inc.z conio_line_text+1 !: // conio_line_color += CONIO_WIDTH lda #$50 clc adc.z conio_line_color sta.z conio_line_color bcc !+ inc.z conio_line_color+1 !: // conio_cursor_x = 0 ldz #0 stz.z conio_cursor_x // conio_cursor_y++; inc.z conio_cursor_y // cscroll() jsr cscroll // } rts } /// Print a NUL-terminated string // void printf_str(void (*putc)(char), __zp($e) const char *s) printf_str: { .label s = $e lda #<main.s sta.z s lda #>main.s sta.z s+1 __b1: // while(c=*s++) ldy #0 lda (s),y inw.z s cmp #0 bne __b2 // } rts __b2: // putc(c) pha jsr cputc pla jmp __b1 } // Scroll the entire screen if the cursor is beyond the last line cscroll: { // if(conio_cursor_y==CONIO_HEIGHT) ldz #$19 cpz.z conio_cursor_y bne __breturn // memcpy(CONIO_SCREEN_TEXT, CONIO_SCREEN_TEXT+CONIO_WIDTH, CONIO_BYTES-CONIO_WIDTH) lda #<DEFAULT_SCREEN sta.z memcpy.destination lda #>DEFAULT_SCREEN sta.z memcpy.destination+1 lda #<DEFAULT_SCREEN+$50 sta.z memcpy.source lda #>DEFAULT_SCREEN+$50 sta.z memcpy.source+1 jsr memcpy // memcpy(CONIO_SCREEN_COLORS, CONIO_SCREEN_COLORS+CONIO_WIDTH, CONIO_BYTES-CONIO_WIDTH) lda #<COLORRAM sta.z memcpy.destination lda #>COLORRAM sta.z memcpy.destination+1 lda #<COLORRAM+$50 sta.z memcpy.source lda #>COLORRAM+$50 sta.z memcpy.source+1 jsr memcpy // memset(CONIO_SCREEN_TEXT+CONIO_BYTES-CONIO_WIDTH, ' ', CONIO_WIDTH) ldz #' ' lda #<DEFAULT_SCREEN+$19*$50-$50 sta.z memset.str lda #>DEFAULT_SCREEN+$19*$50-$50 sta.z memset.str+1 jsr memset // memset(CONIO_SCREEN_COLORS+CONIO_BYTES-CONIO_WIDTH, conio_textcolor, CONIO_WIDTH) ldz #LIGHT_BLUE lda #<COLORRAM+$19*$50-$50 sta.z memset.str lda #>COLORRAM+$19*$50-$50 sta.z memset.str+1 jsr memset // conio_line_text -= CONIO_WIDTH sec lda.z conio_line_text sbc #$50 sta.z conio_line_text lda.z conio_line_text+1 sbc #0 sta.z conio_line_text+1 // conio_line_color -= CONIO_WIDTH sec lda.z conio_line_color sbc #$50 sta.z conio_line_color lda.z conio_line_color+1 sbc #0 sta.z conio_line_color+1 // conio_cursor_y--; dec.z conio_cursor_y __breturn: // } rts } // Copy block of memory (forwards) // Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination. // void * memcpy(__zp(4) void *destination, __zp(2) void *source, unsigned int num) memcpy: { .label src_end = 6 .label dst = 4 .label src = 2 .label source = 2 .label destination = 4 // char* src_end = (char*)source+num lda.z source clc adc #<$19*$50-$50 sta.z src_end lda.z source+1 adc #>$19*$50-$50 sta.z src_end+1 __b1: // while(src!=src_end) lda.z src+1 cmp.z src_end+1 bne __b2 lda.z src cmp.z src_end bne __b2 // } rts __b2: // *dst++ = *src++ ldy #0 lda (src),y sta (dst),y // *dst++ = *src++; inw.z dst inw.z src jmp __b1 } // Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str. // void * memset(__zp(2) void *str, __register(Z) char c, unsigned int num) memset: { .label end = 4 .label dst = 2 .label str = 2 // char* end = (char*)str + num lda #$50 clc adc.z str sta.z end lda #0 adc.z str+1 sta.z end+1 __b2: // for(char* dst = str; dst!=end; dst++) lda.z dst+1 cmp.z end+1 bne __b3 lda.z dst cmp.z end bne __b3 // } rts __b3: // *dst = c tza ldy #0 sta (dst),y // for(char* dst = str; dst!=end; dst++) inw.z dst jmp __b2 }
27.192308
149
0.635827
7dc9dba67487434cbb9d08c79a25e0282bafe147
627
asm
Assembly
oeis/304/A304167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/304/A304167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/304/A304167.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A304167: a(n) = 3^n - 2^(n-1) + 2 (n>=1). ; 4,9,25,75,229,699,2125,6435,19429,58539,176125,529395,1590229,4774779,14332525,43013955,129074629,387289419,1161999325,3486260115,10459304629,31378962459,94138984525,282421147875,847271832229,2541832273899,7625530376125,22876658237235,68630108929429,205890595223739,617672322542125,1853018041368195,5559056271588229,16677173109731979,50031527919130525,150094600937260755,450283837171520629,1350851580234038619,4052554878141069325,12157664909301114915,36472995277659158629,109418986932489103659 mov $2,$0 add $0,1 mov $1,3 pow $1,$0 mov $3,2 pow $3,$2 sub $1,$3 add $1,2 mov $0,$1
48.230769
495
0.819777
8ba371e7bba73791da7a46e4689dec1b7ffbb0d8
196
asm
Assembly
libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_fx_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_fx_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_fx_di.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void bit_fx_di(void *effect) SECTION code_clib SECTION code_sound_bit PUBLIC _bit_fx_di EXTERN asm_bit_fx_di _bit_fx_di: pop af pop hl push hl push af jp asm_bit_fx_di
9.8
30
0.72449
e50cc2289fab5dc36fc544bf605ec1a651501e0f
397
asm
Assembly
programs/oeis/265/A265743.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/265/A265743.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/265/A265743.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A265743: a(n) = number of terms of A005187 needed to sum to n using the greedy algorithm. ; 0,1,2,1,1,2,3,1,1,2,1,1,2,3,2,1,1,2,1,1,2,3,1,1,2,1,1,2,3,2,2,1,1,2,1,1,2,3,1,1,2,1,1,2,3,2,1,1,2,1,1,2,3,1,1,2,1,1,2,3,2,2,3,1,1,2,1,1,2,3,1,1,2,1,1,2,3,2,1,1,2,1,1,2,3,1,1,2,1,1,2,3,2,2,1,1,2,1,1,2 lpb $0 mov $2,$0 seq $2,215020 ; a(n) = log_2( A182105(n) ). mov $0,$2 add $1,1 lpe mov $0,$1
36.090909
201
0.554156
64f56e0fb19b28fc9767511c4ef5af29aad405e5
55,816
asm
Assembly
ioq3/build/release-js-js/missionpack/game/g_missile.asm
RawTechnique/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
1
2021-12-31T10:26:58.000Z
2021-12-31T10:26:58.000Z
ioq3/build/release-js-js/missionpack/game/g_missile.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
28
2019-03-05T20:45:07.000Z
2019-03-05T20:45:57.000Z
ioq3/build/release-js-js/missionpack/game/g_missile.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
null
null
null
export G_BounceMissile code proc G_BounceMissile 48 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRLP4 16 ADDRGP4 level+36 INDIRI4 CVIF4 4 ADDRGP4 level+32 INDIRI4 ADDRGP4 level+36 INDIRI4 SUBI4 CVIF4 4 ADDRFP4 4 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ADDF4 CVFI4 4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRLP4 16 INDIRI4 ARGI4 ADDRLP4 0 ARGP4 ADDRGP4 BG_EvaluateTrajectoryDelta CALLV pop ADDRLP4 20 ADDRLP4 0 INDIRF4 ASGNF4 ADDRLP4 28 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ASGNP4 ADDRLP4 12 ADDRLP4 20 INDIRF4 ADDRLP4 28 INDIRP4 INDIRF4 MULF4 ADDRLP4 0+4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 28 ADDP4 INDIRF4 MULF4 ADDF4 ADDRLP4 0+8 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 ADDRLP4 20 INDIRF4 ADDRLP4 28 INDIRP4 INDIRF4 CNSTF4 3221225472 ADDRLP4 12 INDIRF4 MULF4 MULF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 40 ADDP4 ADDRLP4 0+4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 28 ADDP4 INDIRF4 CNSTF4 3221225472 ADDRLP4 12 INDIRF4 MULF4 MULF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 44 ADDP4 ADDRLP4 0+8 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 CNSTF4 3221225472 ADDRLP4 12 INDIRF4 MULF4 MULF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 CNSTI4 32 BANDI4 CNSTI4 0 EQI4 $61 ADDRLP4 32 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 32 INDIRP4 CNSTF4 1059481190 ADDRLP4 32 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 36 ADDRFP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 36 INDIRP4 CNSTF4 1059481190 ADDRLP4 36 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 40 ADDRFP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 40 INDIRP4 CNSTF4 1059481190 ADDRLP4 40 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRFP4 4 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 CNSTF4 1045220557 LEF4 $63 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 ARGP4 ADDRLP4 44 ADDRGP4 VectorLength CALLF4 ASGNF4 ADDRLP4 44 INDIRF4 CNSTF4 1109393408 GEF4 $63 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 84 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 4 DIVI4 ASGNI4 ADDRGP4 $53 JUMPV LABELV $63 LABELV $61 ADDRLP4 32 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ASGNP4 ADDRLP4 32 INDIRP4 ADDRLP4 32 INDIRP4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRLP4 36 ADDRFP4 0 INDIRP4 CNSTI4 492 ADDP4 ASGNP4 ADDRLP4 36 INDIRP4 ADDRLP4 36 INDIRP4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 28 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRLP4 40 ADDRFP4 0 INDIRP4 CNSTI4 496 ADDP4 ASGNP4 ADDRLP4 40 INDIRP4 ADDRLP4 40 INDIRP4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 ASGNI4 LABELV $53 endproc G_BounceMissile 48 12 export G_ExplodeMissile proc G_ExplodeMissile 44 24 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 level+32 INDIRI4 ARGI4 ADDRLP4 0 ARGP4 ADDRGP4 BG_EvaluateTrajectory CALLV pop ADDRLP4 0 ADDRLP4 0 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0+4 ADDRLP4 0+4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0+8 ADDRLP4 0+8 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 0 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRLP4 24 CNSTF4 0 ASGNF4 ADDRLP4 12+4 ADDRLP4 24 INDIRF4 ASGNF4 ADDRLP4 12 ADDRLP4 24 INDIRF4 ASGNF4 ADDRLP4 12+8 CNSTF4 1065353216 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 12 ARGP4 ADDRLP4 28 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 51 ARGI4 ADDRLP4 28 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 556 ADDP4 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 740 ADDP4 INDIRI4 CNSTI4 0 EQI4 $75 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 740 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRP4 CNSTI4 744 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 752 ADDP4 INDIRI4 ARGI4 ADDRLP4 36 ADDRGP4 G_RadiusDamage CALLI4 ASGNI4 ADDRLP4 36 INDIRI4 CNSTI4 0 EQI4 $77 ADDRLP4 40 CNSTI4 812 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities+516 ADDP4 INDIRP4 CNSTI4 716 ADDP4 ASGNP4 ADDRLP4 40 INDIRP4 ADDRLP4 40 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $77 LABELV $75 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop LABELV $67 endproc G_ExplodeMissile 44 24 proc ProximityMine_Explode 0 4 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 G_ExplodeMissile CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $81 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 ARGP4 ADDRGP4 G_FreeEntity CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 CNSTP4 0 ASGNP4 LABELV $81 LABELV $80 endproc ProximityMine_Explode 0 4 proc ProximityMine_Die 0 0 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 ProximityMine_Explode ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $83 endproc ProximityMine_Die 0 0 export ProximityMine_Trigger proc ProximityMine_Trigger 44 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRFP4 4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $86 ADDRGP4 $85 JUMPV LABELV $86 ADDRLP4 20 CNSTI4 24 ASGNI4 ADDRLP4 0 ADDRFP4 0 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRF4 ADDRFP4 4 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 28 CNSTI4 28 ASGNI4 ADDRLP4 0+4 ADDRFP4 0 INDIRP4 ADDRLP4 28 INDIRI4 ADDP4 INDIRF4 ADDRFP4 4 INDIRP4 ADDRLP4 28 INDIRI4 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 32 CNSTI4 32 ASGNI4 ADDRLP4 0+8 ADDRFP4 0 INDIRP4 ADDRLP4 32 INDIRI4 ADDP4 INDIRF4 ADDRFP4 4 INDIRP4 ADDRLP4 32 INDIRI4 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 0 ARGP4 ADDRLP4 36 ADDRGP4 VectorLength CALLF4 ASGNF4 ADDRLP4 36 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 CNSTI4 744 ADDP4 INDIRI4 CVIF4 4 LEF4 $90 ADDRGP4 $85 JUMPV LABELV $90 ADDRGP4 g_gametype+12 INDIRI4 CNSTI4 3 LTI4 $92 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 CNSTI4 204 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 616 ADDP4 INDIRI4 NEI4 $95 ADDRGP4 $85 JUMPV LABELV $95 LABELV $92 ADDRFP4 4 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 40 ADDRGP4 CanDamage CALLI4 ASGNI4 ADDRLP4 40 INDIRI4 CNSTI4 0 NEI4 $97 ADDRGP4 $85 JUMPV LABELV $97 ADDRLP4 12 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 ASGNP4 ADDRLP4 12 INDIRP4 CNSTI4 156 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 12 INDIRP4 ARGP4 CNSTI4 67 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRLP4 12 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 500 ADDI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 G_FreeEntity CALLV pop LABELV $85 endproc ProximityMine_Trigger 44 12 proc ProximityMine_Activate 16 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 ProximityMine_Explode ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 ADDRGP4 g_proxMineTimeout+12 INDIRI4 ADDI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 732 ADDP4 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 728 ADDP4 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 712 ADDP4 ADDRGP4 ProximityMine_Die ASGNP4 ADDRGP4 $103 ARGP4 ADDRLP4 8 ADDRGP4 G_SoundIndex CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 156 ADDP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRLP4 12 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 12 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $104 ASGNP4 ADDRLP4 4 ADDRFP4 0 INDIRP4 CNSTI4 744 ADDP4 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 436 ADDP4 ADDRLP4 4 INDIRF4 NEGF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 440 ADDP4 ADDRLP4 4 INDIRF4 NEGF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 444 ADDP4 ADDRLP4 4 INDIRF4 NEGF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 448 ADDP4 ADDRLP4 4 INDIRF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 452 ADDP4 ADDRLP4 4 INDIRF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 456 ADDP4 ADDRLP4 4 INDIRF4 ASGNF4 ADDRLP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 460 ADDP4 CNSTI4 1073741824 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 700 ADDP4 ADDRGP4 ProximityMine_Trigger ASGNP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 LABELV $100 endproc ProximityMine_Activate 16 8 proc ProximityMine_ExplodeOnPlayer 16 32 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 INDIRP4 ASGNP4 ADDRLP4 4 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 104 ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 -3 BANDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 836 ADDP4 INDIRI4 ADDRGP4 level+32 INDIRI4 LEI4 $106 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 12 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 ASGNP4 ADDRLP4 12 INDIRP4 ARGP4 ADDRLP4 12 INDIRP4 ARGP4 ADDRGP4 vec3_origin ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 CNSTI4 1000 ARGI4 CNSTI4 4 ARGI4 CNSTI4 27 ARGI4 ADDRGP4 G_Damage CALLV pop ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 836 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 20 ADDP4 ARGP4 CNSTI4 72 ARGI4 ADDRGP4 G_TempEntity CALLP4 pop ADDRGP4 $107 JUMPV LABELV $106 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRLP4 8 ADDRFP4 0 INDIRP4 CNSTI4 424 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRI4 CNSTI4 -2 BANDI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 25 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 G_ExplodeMissile CALLV pop LABELV $107 LABELV $105 endproc ProximityMine_ExplodeOnPlayer 16 32 proc ProximityMine_Player 20 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 CNSTI4 128 BANDI4 CNSTI4 0 EQI4 $110 ADDRGP4 $109 JUMPV LABELV $110 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 66 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRFP4 4 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 CNSTI4 2 BANDI4 CNSTI4 0 EQI4 $112 ADDRLP4 0 CNSTI4 740 ASGNI4 ADDRLP4 4 ADDRFP4 4 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 ADDRLP4 0 INDIRI4 ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 INDIRI4 ADDRFP4 0 INDIRP4 ADDRLP4 0 INDIRI4 ADDP4 INDIRI4 ADDI4 ASGNI4 ADDRLP4 8 ADDRFP4 4 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 CNSTI4 744 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 CNSTF4 1069547520 ADDRLP4 8 INDIRP4 INDIRI4 CVIF4 4 MULF4 CVFI4 4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_FreeEntity ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 ASGNI4 ADDRGP4 $109 JUMPV LABELV $112 ADDRLP4 0 ADDRFP4 4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 104 ADDP4 ASGNP4 ADDRLP4 0 INDIRP4 ADDRLP4 0 INDIRP4 INDIRI4 CNSTI4 2 BORI4 ASGNI4 ADDRFP4 4 INDIRP4 CNSTI4 768 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 4 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 128 BORI4 ASGNI4 ADDRLP4 8 ADDRFP4 0 INDIRP4 CNSTI4 424 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRI4 CNSTI4 1 BORI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 16 CNSTF4 0 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 44 ADDP4 ADDRLP4 16 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 40 ADDP4 ADDRLP4 16 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 ADDRLP4 16 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 ProximityMine_ExplodeOnPlayer ASGNP4 ADDRFP4 4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 836 ADDP4 INDIRI4 ADDRGP4 level+32 INDIRI4 LEI4 $115 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 2000 ADDI4 ASGNI4 ADDRGP4 $116 JUMPV LABELV $115 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 10000 ADDI4 ASGNI4 LABELV $116 LABELV $109 endproc ProximityMine_Player 20 12 export G_MissileImpact proc G_MissileImpact 96 32 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRLP4 0 CNSTI4 812 ADDRFP4 4 INDIRP4 CNSTI4 52 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities ADDP4 ASGNP4 ADDRLP4 48 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 732 ADDP4 INDIRI4 ADDRLP4 48 INDIRI4 NEI4 $121 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 CNSTI4 48 BANDI4 ADDRLP4 48 INDIRI4 EQI4 $121 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 ARGP4 ADDRGP4 G_BounceMissile CALLV pop ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 44 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRGP4 $120 JUMPV LABELV $121 ADDRLP4 0 INDIRP4 CNSTI4 732 ADDP4 INDIRI4 CNSTI4 0 EQI4 $123 ADDRFP4 0 INDIRP4 CNSTI4 192 ADDP4 INDIRI4 CNSTI4 12 EQI4 $125 ADDRLP4 52 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 ASGNP4 ADDRLP4 52 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $127 ADDRLP4 52 INDIRP4 CNSTI4 836 ADDP4 INDIRI4 ADDRGP4 level+32 INDIRI4 LEI4 $127 ADDRLP4 8 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 INDIRB ASGNB 12 ADDRLP4 8 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 8 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 32 ARGP4 ADDRLP4 20 ARGP4 ADDRLP4 56 ADDRGP4 G_InvulnerabilityEffect CALLI4 ASGNI4 ADDRLP4 56 INDIRI4 CNSTI4 0 EQI4 $130 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ADDRLP4 20 INDIRB ASGNB 12 ADDRLP4 60 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 ASGNP4 ADDRLP4 44 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 32 BANDI4 ASGNI4 ADDRLP4 60 INDIRP4 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 -33 BANDI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 ARGP4 ADDRGP4 G_BounceMissile CALLV pop ADDRLP4 64 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 ASGNP4 ADDRLP4 64 INDIRP4 ADDRLP4 64 INDIRP4 INDIRI4 ADDRLP4 44 INDIRI4 BORI4 ASGNI4 LABELV $130 ADDRFP4 0 INDIRP4 CNSTI4 664 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 ADDRGP4 $120 JUMPV LABELV $127 LABELV $125 LABELV $123 ADDRLP4 0 INDIRP4 CNSTI4 732 ADDP4 INDIRI4 CNSTI4 0 EQI4 $132 ADDRFP4 0 INDIRP4 CNSTI4 736 ADDP4 INDIRI4 CNSTI4 0 EQI4 $134 ADDRLP4 0 INDIRP4 ARGP4 CNSTI4 812 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities ADDP4 ARGP4 ADDRLP4 64 ADDRGP4 LogAccuracyHit CALLI4 ASGNI4 ADDRLP4 64 INDIRI4 CNSTI4 0 EQI4 $136 ADDRLP4 68 CNSTI4 812 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities+516 ADDP4 INDIRP4 CNSTI4 716 ADDP4 ASGNP4 ADDRLP4 68 INDIRP4 ADDRLP4 68 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 4 CNSTI4 1 ASGNI4 LABELV $136 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 level+32 INDIRI4 ARGI4 ADDRLP4 52 ARGP4 ADDRGP4 BG_EvaluateTrajectoryDelta CALLV pop ADDRLP4 52 ARGP4 ADDRLP4 68 ADDRGP4 VectorLength CALLF4 ASGNF4 ADDRLP4 68 INDIRF4 CNSTF4 0 NEF4 $140 ADDRLP4 52+8 CNSTF4 1065353216 ASGNF4 LABELV $140 ADDRLP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 812 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities ADDP4 ARGP4 ADDRLP4 52 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 736 ADDP4 INDIRI4 ARGI4 CNSTI4 0 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 748 ADDP4 INDIRI4 ARGI4 ADDRGP4 G_Damage CALLV pop LABELV $134 LABELV $132 ADDRFP4 0 INDIRP4 CNSTI4 192 ADDP4 INDIRI4 CNSTI4 12 NEI4 $143 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 CNSTI4 5 EQI4 $145 ADDRGP4 $120 JUMPV LABELV $145 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 INDIRI4 CNSTI4 1 NEI4 $147 ADDRLP4 0 INDIRP4 CNSTI4 728 ADDP4 INDIRI4 CNSTI4 0 LEI4 $147 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 ProximityMine_Player CALLV pop ADDRGP4 $120 JUMPV LABELV $147 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 SnapVectorTowards CALLV pop ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 60 CNSTF4 0 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 44 ADDP4 ADDRLP4 60 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 40 ADDP4 ADDRLP4 60 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 36 ADDP4 ADDRLP4 60 INDIRF4 ASGNF4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 66 ARGI4 ADDRFP4 4 INDIRP4 CNSTI4 44 ADDP4 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 ProximityMine_Activate ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 2000 ADDI4 ASGNI4 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 116 ADDP4 ARGP4 ADDRGP4 vectoangles CALLV pop ADDRLP4 64 ADDRFP4 0 INDIRP4 CNSTI4 116 ADDP4 ASGNP4 ADDRLP4 64 INDIRP4 ADDRLP4 64 INDIRP4 INDIRF4 CNSTF4 1119092736 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 712 ADDP4 ADDRGP4 ProximityMine_Die ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 CNSTI4 436 ADDP4 CNSTF4 3229614080 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 440 ADDP4 CNSTF4 3229614080 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 444 ADDP4 CNSTF4 3229614080 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 448 ADDP4 CNSTF4 1082130432 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 452 ADDP4 CNSTF4 1082130432 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 456 ADDP4 CNSTF4 1082130432 ASGNF4 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRGP4 $120 JUMPV LABELV $143 ADDRFP4 0 INDIRP4 CNSTI4 524 ADDP4 INDIRP4 ARGP4 ADDRGP4 $152 ARGP4 ADDRLP4 52 ADDRGP4 qk_strcmp CALLI4 ASGNI4 ADDRLP4 52 INDIRI4 CNSTI4 0 NEI4 $150 ADDRLP4 72 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 56 ADDRLP4 72 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 732 ADDP4 INDIRI4 CNSTI4 0 EQI4 $153 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $153 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 80 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRLP4 56 INDIRP4 ARGP4 CNSTI4 50 ARGI4 ADDRLP4 80 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRLP4 56 INDIRP4 CNSTI4 140 ADDP4 ADDRLP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 ADDRLP4 88 CNSTF4 1056964608 ASGNF4 ADDRLP4 60 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 INDIRF4 ADDRLP4 88 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 436 ADDP4 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 448 ADDP4 INDIRF4 ADDF4 MULF4 ADDF4 ASGNF4 ADDRLP4 60+4 ADDRLP4 0 INDIRP4 CNSTI4 492 ADDP4 INDIRF4 ADDRLP4 88 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 440 ADDP4 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 452 ADDP4 INDIRF4 ADDF4 MULF4 ADDF4 ASGNF4 ADDRLP4 60+8 ADDRLP4 0 INDIRP4 CNSTI4 496 ADDP4 INDIRF4 CNSTF4 1056964608 ADDRLP4 0 INDIRP4 CNSTI4 444 ADDP4 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 456 ADDP4 INDIRF4 ADDF4 MULF4 ADDF4 ASGNF4 ADDRLP4 60 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 SnapVectorTowards CALLV pop ADDRGP4 $154 JUMPV LABELV $153 ADDRLP4 60 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 INDIRB ASGNB 12 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 84 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRLP4 56 INDIRP4 ARGP4 CNSTI4 51 ARGI4 ADDRLP4 84 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 CNSTP4 0 ASGNP4 LABELV $154 ADDRLP4 60 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 SnapVectorTowards CALLV pop ADDRLP4 56 INDIRP4 CNSTI4 556 ADDP4 CNSTI4 1 ASGNI4 ADDRLP4 56 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 0 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 11 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 60 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRLP4 56 INDIRP4 ARGP4 ADDRLP4 60 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 Weapon_HookThink ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 100 ADDI4 ASGNI4 ADDRLP4 80 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 12 ADDP4 ASGNP4 ADDRLP4 80 INDIRP4 ADDRLP4 80 INDIRP4 INDIRI4 CNSTI4 2048 BORI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 92 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRLP4 56 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRGP4 $120 JUMPV LABELV $150 ADDRLP4 0 INDIRP4 CNSTI4 732 ADDP4 INDIRI4 CNSTI4 0 EQI4 $158 ADDRLP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $158 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 60 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 50 ARGI4 ADDRLP4 60 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 140 ADDP4 ADDRLP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRGP4 $159 JUMPV LABELV $158 ADDRFP4 4 INDIRP4 CNSTI4 44 ADDP4 INDIRI4 CNSTI4 4096 BANDI4 CNSTI4 0 EQI4 $160 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 60 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 52 ARGI4 ADDRLP4 60 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRGP4 $161 JUMPV LABELV $160 ADDRFP4 4 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRLP4 60 ADDRGP4 DirToByte CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 51 ARGI4 ADDRLP4 60 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop LABELV $161 LABELV $159 ADDRFP4 0 INDIRP4 CNSTI4 556 ADDP4 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 0 ASGNI4 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ARGP4 ADDRGP4 SnapVectorTowards CALLV pop ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 740 ADDP4 INDIRI4 CNSTI4 0 EQI4 $162 ADDRFP4 4 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 740 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRP4 CNSTI4 744 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 752 ADDP4 INDIRI4 ARGI4 ADDRLP4 64 ADDRGP4 G_RadiusDamage CALLI4 ASGNI4 ADDRLP4 64 INDIRI4 CNSTI4 0 EQI4 $164 ADDRLP4 4 INDIRI4 CNSTI4 0 NEI4 $166 ADDRLP4 68 CNSTI4 812 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 MULI4 ADDRGP4 g_entities+516 ADDP4 INDIRP4 CNSTI4 716 ADDP4 ASGNP4 ADDRLP4 68 INDIRP4 ADDRLP4 68 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $166 LABELV $164 LABELV $162 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop LABELV $120 endproc G_MissileImpact 96 32 export G_RunMissile proc G_RunMissile 100 28 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 12 ADDP4 ARGP4 ADDRGP4 level+32 INDIRI4 ARGI4 ADDRLP4 60 ARGP4 ADDRGP4 BG_EvaluateTrajectory CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 664 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $171 ADDRLP4 56 ADDRFP4 0 INDIRP4 CNSTI4 664 ADDP4 INDIRP4 INDIRI4 ASGNI4 ADDRGP4 $172 JUMPV LABELV $171 ADDRFP4 0 INDIRP4 CNSTI4 192 ADDP4 INDIRI4 CNSTI4 12 NEI4 $173 ADDRFP4 0 INDIRP4 CNSTI4 756 ADDP4 INDIRI4 CNSTI4 0 EQI4 $173 ADDRLP4 56 CNSTI4 1023 ASGNI4 ADDRGP4 $174 JUMPV LABELV $173 ADDRLP4 56 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 ASGNI4 LABELV $174 LABELV $172 ADDRLP4 0 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 436 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 448 ADDP4 ARGP4 ADDRLP4 60 ARGP4 ADDRLP4 56 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 572 ADDP4 INDIRI4 ARGI4 ADDRGP4 trap_Trace CALLV pop ADDRLP4 80 CNSTI4 0 ASGNI4 ADDRLP4 0+4 INDIRI4 ADDRLP4 80 INDIRI4 NEI4 $178 ADDRLP4 0 INDIRI4 ADDRLP4 80 INDIRI4 EQI4 $175 LABELV $178 ADDRLP4 0 ARGP4 ADDRLP4 88 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ASGNP4 ADDRLP4 88 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 436 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 448 ADDP4 ARGP4 ADDRLP4 88 INDIRP4 ARGP4 ADDRLP4 56 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 572 ADDP4 INDIRI4 ARGI4 ADDRGP4 trap_Trace CALLV pop ADDRLP4 0+8 CNSTF4 0 ASGNF4 ADDRGP4 $176 JUMPV LABELV $175 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRLP4 0+12 INDIRB ASGNB 12 LABELV $176 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRLP4 0+8 INDIRF4 CNSTF4 1065353216 EQF4 $181 ADDRLP4 0+44 INDIRI4 CNSTI4 16 BANDI4 CNSTI4 0 EQI4 $184 ADDRLP4 88 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 ASGNP4 ADDRLP4 92 CNSTU4 0 ASGNU4 ADDRLP4 88 INDIRP4 CVPU4 4 ADDRLP4 92 INDIRU4 EQU4 $187 ADDRLP4 96 ADDRLP4 88 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 ASGNP4 ADDRLP4 96 INDIRP4 CVPU4 4 ADDRLP4 92 INDIRU4 EQU4 $187 ADDRLP4 96 INDIRP4 CNSTI4 760 ADDP4 INDIRP4 CVPU4 4 ADDRFP4 0 INDIRP4 CVPU4 4 NEU4 $187 ADDRFP4 0 INDIRP4 CNSTI4 600 ADDP4 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 760 ADDP4 CNSTP4 0 ASGNP4 LABELV $187 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 G_FreeEntity CALLV pop ADDRGP4 $169 JUMPV LABELV $184 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 0 ARGP4 ADDRGP4 G_MissileImpact CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 INDIRI4 CNSTI4 3 EQI4 $189 ADDRGP4 $169 JUMPV LABELV $189 LABELV $181 ADDRFP4 0 INDIRP4 CNSTI4 192 ADDP4 INDIRI4 CNSTI4 12 NEI4 $191 ADDRFP4 0 INDIRP4 CNSTI4 756 ADDP4 INDIRI4 CNSTI4 0 NEI4 $191 ADDRLP4 0 ARGP4 ADDRLP4 92 ADDRFP4 0 INDIRP4 CNSTI4 488 ADDP4 ASGNP4 ADDRLP4 92 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 436 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 448 ADDP4 ARGP4 ADDRLP4 92 INDIRP4 ARGP4 CNSTI4 1023 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 572 ADDP4 INDIRI4 ARGI4 ADDRGP4 trap_Trace CALLV pop ADDRLP4 0+4 INDIRI4 CNSTI4 0 EQI4 $197 ADDRLP4 0+52 INDIRI4 ADDRFP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRI4 EQI4 $193 LABELV $197 ADDRFP4 0 INDIRP4 CNSTI4 756 ADDP4 CNSTI4 1 ASGNI4 LABELV $193 LABELV $191 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 G_RunThink CALLV pop LABELV $169 endproc G_RunMissile 100 28 export fire_plasma proc fire_plasma 20 4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $199 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 10000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 8 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 20 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 740 ADDP4 CNSTI4 15 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 744 ADDP4 CNSTI4 20 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 8 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 9 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $198 endproc fire_plasma 20 4 export fire_grenade proc fire_grenade 20 4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $203 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 2500 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 8 ADDP4 CNSTI4 32 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 740 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 744 ADDP4 CNSTI4 150 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 5 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 5 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $202 endproc fire_grenade 20 4 export fire_bfg proc fire_bfg 20 4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $207 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 10000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 9 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 740 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 744 ADDP4 CNSTI4 120 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 12 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 13 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1157234688 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $206 endproc fire_bfg 20 4 export fire_rocket proc fire_rocket 20 4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $211 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 15000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 5 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 740 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 744 ADDP4 CNSTI4 120 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 6 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 7 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1147207680 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1147207680 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1147207680 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $210 endproc fire_rocket 20 4 export fire_grapple proc fire_grapple 20 4 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $152 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 10000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 Weapon_HookFree ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 10 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 28 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 140 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1145569280 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1145569280 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1145569280 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 760 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 RETP4 LABELV $214 endproc fire_grapple 20 4 export fire_nail proc fire_nail 120 4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 12 ADDRFP4 12 INDIRP4 ASGNP4 ADDRFP4 16 ADDRFP4 16 INDIRP4 ASGNP4 ADDRLP4 40 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 40 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $218 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 10000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 11 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 20 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 23 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 44 ADDRGP4 qk_rand CALLI4 ASGNI4 ADDRLP4 28 CNSTF4 1073741824 CNSTF4 1078530011 ADDRLP4 44 INDIRI4 CNSTI4 32767 BANDI4 CVIF4 4 CNSTF4 1191181824 DIVF4 MULF4 MULF4 ASGNF4 ADDRLP4 28 INDIRF4 ARGF4 ADDRLP4 48 ADDRGP4 qk_sin CALLF4 ASGNF4 ADDRLP4 52 ADDRGP4 qk_rand CALLI4 ASGNI4 ADDRLP4 32 CNSTF4 1098907648 CNSTF4 1140457472 ADDRLP4 48 INDIRF4 CNSTF4 1073741824 ADDRLP4 52 INDIRI4 CNSTI4 32767 BANDI4 CVIF4 4 CNSTF4 1191181824 DIVF4 CNSTF4 1056964608 SUBF4 MULF4 MULF4 MULF4 MULF4 ASGNF4 ADDRLP4 28 INDIRF4 ARGF4 ADDRLP4 56 ADDRGP4 qk_cos CALLF4 ASGNF4 ADDRLP4 60 ADDRGP4 qk_rand CALLI4 ASGNI4 ADDRLP4 28 CNSTF4 1098907648 CNSTF4 1140457472 ADDRLP4 56 INDIRF4 CNSTF4 1073741824 ADDRLP4 60 INDIRI4 CNSTI4 32767 BANDI4 CVIF4 4 CNSTF4 1191181824 DIVF4 CNSTF4 1056964608 SUBF4 MULF4 MULF4 MULF4 MULF4 ASGNF4 ADDRLP4 68 CNSTF4 1207959552 ASGNF4 ADDRLP4 4 ADDRFP4 4 INDIRP4 INDIRF4 ADDRLP4 68 INDIRF4 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 76 CNSTI4 4 ASGNI4 ADDRLP4 4+4 ADDRFP4 4 INDIRP4 ADDRLP4 76 INDIRI4 ADDP4 INDIRF4 ADDRLP4 68 INDIRF4 ADDRFP4 8 INDIRP4 ADDRLP4 76 INDIRI4 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 80 CNSTI4 8 ASGNI4 ADDRLP4 4+8 ADDRFP4 4 INDIRP4 ADDRLP4 80 INDIRI4 ADDP4 INDIRF4 CNSTF4 1207959552 ADDRFP4 8 INDIRP4 ADDRLP4 80 INDIRI4 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4 ADDRLP4 4 INDIRF4 ADDRFP4 12 INDIRP4 INDIRF4 ADDRLP4 28 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4+4 ADDRLP4 4+4 INDIRF4 ADDRFP4 12 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 ADDRLP4 28 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4+8 ADDRLP4 4+8 INDIRF4 ADDRFP4 12 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 ADDRLP4 28 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4 ADDRLP4 4 INDIRF4 ADDRFP4 16 INDIRP4 INDIRF4 ADDRLP4 32 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4+4 ADDRLP4 4+4 INDIRF4 ADDRFP4 16 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 ADDRLP4 32 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 4+8 ADDRLP4 4+8 INDIRF4 ADDRFP4 16 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 ADDRLP4 32 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 16 ADDRLP4 4 INDIRF4 ADDRFP4 4 INDIRP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 16+4 ADDRLP4 4+4 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 16+8 ADDRLP4 4+8 INDIRF4 ADDRFP4 4 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 16 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 104 ADDRGP4 qk_rand CALLI4 ASGNI4 ADDRLP4 36 CNSTF4 1155596288 ADDRLP4 104 INDIRI4 CNSTI4 32767 BANDI4 CVIF4 4 CNSTF4 1191181824 DIVF4 MULF4 CNSTF4 1141555200 ADDF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ADDRLP4 16 INDIRF4 ADDRLP4 36 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ADDRLP4 16+4 INDIRF4 ADDRLP4 36 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ADDRLP4 16+8 INDIRF4 ADDRLP4 36 INDIRF4 MULF4 ASGNF4 ADDRLP4 108 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 108 INDIRP4 ADDRLP4 108 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 112 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 112 INDIRP4 ADDRLP4 112 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 116 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 116 INDIRP4 ADDRLP4 116 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $217 endproc fire_nail 120 4 export fire_prox proc fire_prox 20 4 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop ADDRLP4 4 ADDRGP4 G_Spawn CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 524 ADDP4 ADDRGP4 $238 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 3000 ADDI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 G_ExplodeMissile ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 3 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 424 ADDP4 CNSTI4 128 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 192 ADDP4 CNSTI4 12 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 8 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 600 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 740 ADDP4 CNSTI4 100 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 744 ADDP4 CNSTI4 150 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 748 ADDP4 CNSTI4 25 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 752 ADDP4 CNSTI4 25 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 572 ADDP4 CNSTI4 100663297 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 664 ADDP4 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 756 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 204 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 616 ADDP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 CNSTI4 5 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 50 SUBI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 CNSTI4 4 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 CNSTF4 1143930880 ADDRFP4 8 INDIRP4 CNSTI4 8 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 8 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 ASGNP4 ADDRLP4 8 INDIRP4 ADDRLP4 8 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 12 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 ASGNP4 ADDRLP4 12 INDIRP4 ADDRLP4 12 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ADDRLP4 16 INDIRP4 INDIRF4 CVFI4 4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ADDRFP4 4 INDIRP4 INDIRB ASGNB 12 ADDRLP4 0 INDIRP4 RETP4 LABELV $237 endproc fire_prox 20 4 import trap_SnapVector import trap_GeneticParentsAndChildSelection import trap_BotResetWeaponState import trap_BotFreeWeaponState import trap_BotAllocWeaponState import trap_BotLoadWeaponWeights import trap_BotGetWeaponInfo import trap_BotChooseBestFightWeapon import trap_BotAddAvoidSpot import trap_BotInitMoveState import trap_BotFreeMoveState import trap_BotAllocMoveState import trap_BotPredictVisiblePosition import trap_BotMovementViewTarget import trap_BotReachabilityArea import trap_BotResetLastAvoidReach import trap_BotResetAvoidReach import trap_BotMoveInDirection import trap_BotMoveToGoal import trap_BotResetMoveState import trap_BotFreeGoalState import trap_BotAllocGoalState import trap_BotMutateGoalFuzzyLogic import trap_BotSaveGoalFuzzyLogic import trap_BotInterbreedGoalFuzzyLogic import trap_BotFreeItemWeights import trap_BotLoadItemWeights import trap_BotUpdateEntityItems import trap_BotInitLevelItems import trap_BotSetAvoidGoalTime import trap_BotAvoidGoalTime import trap_BotGetLevelItemGoal import trap_BotGetMapLocationGoal import trap_BotGetNextCampSpotGoal import trap_BotItemGoalInVisButNotVisible import trap_BotTouchingGoal import trap_BotChooseNBGItem import trap_BotChooseLTGItem import trap_BotGetSecondGoal import trap_BotGetTopGoal import trap_BotGoalName import trap_BotDumpGoalStack import trap_BotDumpAvoidGoals import trap_BotEmptyGoalStack import trap_BotPopGoal import trap_BotPushGoal import trap_BotResetAvoidGoals import trap_BotRemoveFromAvoidGoals import trap_BotResetGoalState import trap_BotSetChatName import trap_BotSetChatGender import trap_BotLoadChatFile import trap_BotReplaceSynonyms import trap_UnifyWhiteSpaces import trap_BotMatchVariable import trap_BotFindMatch import trap_StringContains import trap_BotGetChatMessage import trap_BotEnterChat import trap_BotChatLength import trap_BotReplyChat import trap_BotNumInitialChats import trap_BotInitialChat import trap_BotNumConsoleMessages import trap_BotNextConsoleMessage import trap_BotRemoveConsoleMessage import trap_BotQueueConsoleMessage import trap_BotFreeChatState import trap_BotAllocChatState import trap_Characteristic_String import trap_Characteristic_BInteger import trap_Characteristic_Integer import trap_Characteristic_BFloat import trap_Characteristic_Float import trap_BotFreeCharacter import trap_BotLoadCharacter import trap_EA_ResetInput import trap_EA_GetInput import trap_EA_EndRegular import trap_EA_View import trap_EA_Move import trap_EA_DelayedJump import trap_EA_Jump import trap_EA_SelectWeapon import trap_EA_MoveRight import trap_EA_MoveLeft import trap_EA_MoveBack import trap_EA_MoveForward import trap_EA_MoveDown import trap_EA_MoveUp import trap_EA_Crouch import trap_EA_Respawn import trap_EA_Use import trap_EA_Attack import trap_EA_Talk import trap_EA_Gesture import trap_EA_Action import trap_EA_Command import trap_EA_SayTeam import trap_EA_Say import trap_AAS_PredictClientMovement import trap_AAS_Swimming import trap_AAS_AlternativeRouteGoals import trap_AAS_PredictRoute import trap_AAS_EnableRoutingArea import trap_AAS_AreaTravelTimeToGoalArea import trap_AAS_AreaReachability import trap_AAS_IntForBSPEpairKey import trap_AAS_FloatForBSPEpairKey import trap_AAS_VectorForBSPEpairKey import trap_AAS_ValueForBSPEpairKey import trap_AAS_NextBSPEntity import trap_AAS_PointContents import trap_AAS_TraceAreas import trap_AAS_PointReachabilityAreaIndex import trap_AAS_PointAreaNum import trap_AAS_Time import trap_AAS_PresenceTypeBoundingBox import trap_AAS_Initialized import trap_AAS_EntityInfo import trap_AAS_AreaInfo import trap_AAS_BBoxAreas import trap_BotUserCommand import trap_BotGetServerCommand import trap_BotGetSnapshotEntity import trap_BotLibTest import trap_BotLibUpdateEntity import trap_BotLibLoadMap import trap_BotLibStartFrame import trap_BotLibDefine import trap_BotLibVarGet import trap_BotLibVarSet import trap_BotLibShutdown import trap_BotLibSetup import trap_DebugPolygonDelete import trap_DebugPolygonCreate import trap_GetEntityToken import trap_GetUsercmd import trap_BotFreeClient import trap_BotAllocateClient import trap_EntityContact import trap_EntitiesInBox import trap_UnlinkEntity import trap_LinkEntity import trap_AreasConnected import trap_AdjustAreaPortalState import trap_InPVSIgnorePortals import trap_InPVS import trap_PointContents import trap_Trace import trap_SetBrushModel import trap_GetServerinfo import trap_SetUserinfo import trap_GetUserinfo import trap_GetConfigstring import trap_SetConfigstring import trap_SendServerCommand import trap_DropClient import trap_LocateGameData import trap_Cvar_VariableStringBuffer import trap_Cvar_VariableValue import trap_Cvar_VariableIntegerValue import trap_Cvar_Set import trap_Cvar_Update import trap_Cvar_Register import trap_SendConsoleCommand import trap_FS_Seek import trap_FS_GetFileList import trap_FS_FCloseFile import trap_FS_Write import trap_FS_Read import trap_FS_FOpenFile import trap_Args import trap_Argv import trap_Argc import trap_RealTime import trap_Milliseconds import trap_Error import trap_Print import g_proxMineTimeout import g_singlePlayer import g_enableBreath import g_enableDust import g_rankings import pmove_msec import pmove_fixed import g_smoothClients import g_blueteam import g_redteam import g_cubeTimeout import g_obeliskRespawnDelay import g_obeliskRegenAmount import g_obeliskRegenPeriod import g_obeliskHealth import g_filterBan import g_banIPs import g_teamForceBalance import g_teamAutoJoin import g_allowVote import g_blood import g_doWarmup import g_warmup import g_motd import g_synchronousClients import g_weaponTeamRespawn import g_weaponRespawn import g_debugDamage import g_debugAlloc import g_debugMove import g_inactivity import g_forcerespawn import g_quadfactor import g_knockback import g_speed import g_gravity import g_needpass import g_password import g_friendlyFire import g_capturelimit import g_timelimit import g_fraglimit import g_dmflags import g_restarted import g_maxGameClients import g_maxclients import g_cheats import g_dedicated import g_gametype import g_entities import level import Pickup_Team import CheckTeamStatus import TeamplayInfoMessage import Team_GetLocationMsg import Team_GetLocation import SelectCTFSpawnPoint import Team_FreeEntity import Team_ReturnFlag import Team_InitGame import Team_CheckHurtCarrier import Team_FragBonuses import Team_DroppedFlagThink import AddTeamScore import TeamColorString import TeamName import OtherTeam import BotTestAAS import BotAIStartFrame import BotAIShutdownClient import BotAISetupClient import BotAILoadMap import BotAIShutdown import BotAISetup import BotInterbreedEndMatch import Svcmd_BotList_f import Svcmd_AddBot_f import G_BotConnect import G_RemoveQueuedBotBegin import G_CheckBotSpawn import G_GetBotInfoByName import G_GetBotInfoByNumber import G_InitBots import Svcmd_AbortPodium_f import SpawnModelsOnVictoryPads import UpdateTournamentInfo import G_WriteSessionData import G_InitWorldSession import G_InitSessionData import G_ReadSessionData import Svcmd_GameMem_f import G_InitMemory import G_Alloc import CheckObeliskAttack import Team_CheckDroppedItem import OnSameTeam import G_RunClient import ClientEndFrame import ClientThink import ClientCommand import ClientBegin import ClientDisconnect import ClientUserinfoChanged import ClientConnect import G_Error import G_Printf import SendScoreboardMessageToAllClients import G_LogPrintf import AddTournamentQueue import G_RunThink import CheckTeamLeader import SetLeader import FindIntermissionPoint import MoveClientToIntermission import DeathmatchScoreboardMessage import G_StartKamikaze import FireWeapon import G_FilterPacket import G_ProcessIPBans import ConsoleCommand import SpotWouldTelefrag import CalculateRanks import AddScore import player_die import ClientSpawn import InitBodyQue import BeginIntermission import ClientRespawn import CopyToBodyQue import SelectSpawnPoint import SetClientViewAngle import PickTeam import TeamLeader import TeamCount import Weapon_HookThink import Weapon_HookFree import CheckGauntletAttack import SnapVectorTowards import CalcMuzzlePoint import LogAccuracyHit import DropPortalDestination import DropPortalSource import TeleportPlayer import trigger_teleporter_touch import Touch_DoorTrigger import G_RunMover import TossClientCubes import TossClientPersistantPowerups import TossClientItems import body_die import G_InvulnerabilityEffect import G_RadiusDamage import G_Damage import CanDamage import BuildShaderStateConfig import AddRemap import G_SetOrigin import G_AddEvent import G_AddPredictableEvent import vectoyaw import vtos import tv import G_TouchTriggers import G_EntitiesFree import G_FreeEntity import G_Sound import G_TempEntity import G_Spawn import G_InitGentity import G_SetMovedir import G_UseTargets import G_PickTarget import G_Find import G_KillBox import G_TeamCommand import G_SoundIndex import G_ModelIndex import SaveRegisteredItems import RegisterItem import ClearRegisteredItems import Touch_Item import Add_Ammo import ArmorIndex import Think_Weapon import FinishSpawningItem import G_SpawnItem import SetRespawn import LaunchItem import Drop_Item import PrecacheItem import UseHoldableItem import RespawnItem import G_RunItem import G_CheckTeamItems import Cmd_FollowCycle_f import SetTeam import BroadcastTeamChange import StopFollowing import Cmd_Score_f import G_NewString import G_SpawnEntitiesFromString import G_SpawnVector import G_SpawnInt import G_SpawnFloat import G_SpawnString import BG_PlayerTouchesItem import BG_PlayerStateToEntityStateExtraPolate import BG_PlayerStateToEntityState import BG_TouchJumpPad import BG_AddPredictableEventToPlayerstate import BG_EvaluateTrajectoryDelta import BG_EvaluateTrajectory import BG_CanItemBeGrabbed import BG_FindItemForHoldable import BG_FindItemForPowerup import BG_FindItemForWeapon import BG_FindItem import bg_numItems import bg_itemlist import Pmove import PM_UpdateViewAngles import Com_Printf import Com_Error import Info_NextPair import Info_Validate import Info_SetValueForKey_Big import Info_SetValueForKey import Info_RemoveKey_Big import Info_RemoveKey import Info_ValueForKey import Com_TruncateLongString import va import Q_CountChar import Q_CleanStr import Q_PrintStrlen import Q_strcat import Q_strncpyz import Q_stristr import Q_strupr import Q_strlwr import Q_stricmpn import Q_strncmp import Q_stricmp import Q_isintegral import Q_isanumber import Q_isalpha import Q_isupper import Q_islower import Q_isprint import Com_RandomBytes import Com_SkipCharset import Com_SkipTokens import Com_sprintf import Com_HexStrToInt import Parse3DMatrix import Parse2DMatrix import Parse1DMatrix import SkipRestOfLine import SkipBracedSection import COM_MatchToken import COM_ParseWarning import COM_ParseError import COM_Compress import COM_ParseExt import COM_Parse import COM_GetCurrentParseLine import COM_BeginParseSession import COM_DefaultExtension import COM_CompareExtension import COM_StripExtension import COM_GetExtension import COM_SkipPath import Com_Clamp import PerpendicularVector import AngleVectors import MatrixMultiply import MakeNormalVectors import RotateAroundDirection import RotatePointAroundVector import ProjectPointOnPlane import PlaneFromPoints import AngleDelta import AngleNormalize180 import AngleNormalize360 import AnglesSubtract import AngleSubtract import LerpAngle import AngleMod import BoundsIntersectPoint import BoundsIntersectSphere import BoundsIntersect import BoxOnPlaneSide import SetPlaneSignbits import AxisCopy import AxisClear import AnglesToAxis import vectoangles import Q_crandom import Q_random import Q_rand import Q_acos import Q_log2 import VectorRotate import Vector4Scale import VectorNormalize2 import VectorNormalize import CrossProduct import VectorInverse import VectorNormalizeFast import DistanceSquared import Distance import VectorLengthSquared import VectorLength import VectorCompare import AddPointToBounds import ClearBounds import RadiusFromBounds import NormalizeColor import ColorBytes4 import ColorBytes3 import _VectorMA import _VectorScale import _VectorCopy import _VectorAdd import _VectorSubtract import _DotProduct import ByteToDir import DirToByte import ClampShort import ClampChar import Q_rsqrt import Q_fabs import Q_isnan import axisDefault import vec3_origin import g_color_table import colorDkGrey import colorMdGrey import colorLtGrey import colorWhite import colorCyan import colorMagenta import colorYellow import colorBlue import colorGreen import colorRed import colorBlack import bytedirs import Hunk_AllocDebug import FloatSwap import LongSwap import ShortSwap import CopyLongSwap import CopyShortSwap import qk_acos import qk_fabs import qk_abs import qk_tan import qk_atan2 import qk_cos import qk_sin import qk_sqrt import qk_floor import qk_ceil import qk_memcpy import qk_memset import qk_memmove import qk_sscanf import qk_vsnprintf import qk_strtol import qk_atoi import qk_strtod import qk_atof import qk_toupper import qk_tolower import qk_strncpy import qk_strstr import qk_strrchr import qk_strchr import qk_strcmp import qk_strcpy import qk_strcat import qk_strlen import qk_rand import qk_srand import qk_qsort lit align 1 LABELV $238 byte 1 112 byte 1 114 byte 1 111 byte 1 120 byte 1 32 byte 1 109 byte 1 105 byte 1 110 byte 1 101 byte 1 0 align 1 LABELV $218 byte 1 110 byte 1 97 byte 1 105 byte 1 108 byte 1 0 align 1 LABELV $211 byte 1 114 byte 1 111 byte 1 99 byte 1 107 byte 1 101 byte 1 116 byte 1 0 align 1 LABELV $207 byte 1 98 byte 1 102 byte 1 103 byte 1 0 align 1 LABELV $203 byte 1 103 byte 1 114 byte 1 101 byte 1 110 byte 1 97 byte 1 100 byte 1 101 byte 1 0 align 1 LABELV $199 byte 1 112 byte 1 108 byte 1 97 byte 1 115 byte 1 109 byte 1 97 byte 1 0 align 1 LABELV $152 byte 1 104 byte 1 111 byte 1 111 byte 1 107 byte 1 0 align 1 LABELV $104 byte 1 112 byte 1 114 byte 1 111 byte 1 120 byte 1 109 byte 1 105 byte 1 110 byte 1 101 byte 1 95 byte 1 116 byte 1 114 byte 1 105 byte 1 103 byte 1 103 byte 1 101 byte 1 114 byte 1 0 align 1 LABELV $103 byte 1 115 byte 1 111 byte 1 117 byte 1 110 byte 1 100 byte 1 47 byte 1 119 byte 1 101 byte 1 97 byte 1 112 byte 1 111 byte 1 110 byte 1 115 byte 1 47 byte 1 112 byte 1 114 byte 1 111 byte 1 120 byte 1 109 byte 1 105 byte 1 110 byte 1 101 byte 1 47 byte 1 119 byte 1 115 byte 1 116 byte 1 98 byte 1 116 byte 1 105 byte 1 99 byte 1 107 byte 1 46 byte 1 119 byte 1 97 byte 1 118 byte 1 0
10.740042
45
0.84947
ba218d87681521cdffd5c8373b2b7cf78f50ca1c
686
asm
Assembly
oeis/100/A100308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/100/A100308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/100/A100308.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A100308: Modulo 2 binomial transform of 5^n. ; Submitted by Christian Krause ; 1,6,26,156,626,3756,16276,97656,390626,2343756,10156276,60937656,244531876,1467191256,6357828776,38146972656,152587890626,915527343756,3967285156276,23803710937656,95520019531876,573120117191256,2483520507828776,14901123046972656,59604797363671876,357628784182031256,1549724731455468776,9298348388732812656,37312603149658594376,223875618897951566256,970127681891123453776,5820766091346740722656,23283064365386962890626,139698386192321777343756,605359673500061035156276,3632158041000366210937656 mov $1,1 mov $2,$0 lpb $0 sub $0,1 mul $1,5 mov $3,$2 bin $3,$0 mod $3,2 add $1,$3 lpe mov $0,$1
42.875
496
0.833819
80c480a8944af814917e063d956fbf90c1ad8639
4,325
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_19_480.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_19_480.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_19_480.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x5e0a, %rbp nop sub $4797, %rbx mov (%rbp), %r10d nop dec %r15 lea addresses_WT_ht+0x1c4be, %rax nop nop xor %r9, %r9 movw $0x6162, (%rax) nop nop nop add %rbx, %rbx lea addresses_normal_ht+0xd10e, %rax nop nop nop nop and %r14, %r14 movl $0x61626364, (%rax) nop nop nop nop nop sub %rbx, %rbx lea addresses_WC_ht+0xb59e, %r10 nop nop nop nop inc %rax movups (%r10), %xmm2 vpextrq $1, %xmm2, %r9 nop nop nop add $32902, %rbx lea addresses_D_ht+0xad99, %rbp inc %r10 movw $0x6162, (%rbp) nop nop nop add $59905, %rbx lea addresses_WT_ht+0x162df, %rsi lea addresses_UC_ht+0x182ba, %rdi nop nop and %r14, %r14 mov $95, %rcx rep movsl nop nop nop cmp %r15, %r15 lea addresses_A_ht+0x1c0c6, %rsi nop nop nop cmp $34106, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 and $0xffffffffffffffc0, %rsi movntdq %xmm2, (%rsi) nop nop xor %rsi, %rsi lea addresses_WT_ht+0x18a1e, %rsi lea addresses_A_ht+0x847e, %rdi nop nop nop nop cmp %r9, %r9 mov $110, %rcx rep movsq nop nop nop nop inc %rdi lea addresses_WT_ht+0x1161e, %rsi lea addresses_WC_ht+0xa91e, %rdi nop nop nop nop nop inc %rbp mov $55, %rcx rep movsq nop nop nop xor %r15, %r15 lea addresses_D_ht+0x531e, %rdi nop nop nop nop dec %rax mov (%rdi), %bp nop nop nop nop and $38651, %r9 lea addresses_WT_ht+0x5476, %r9 nop nop nop nop xor $53638, %rbx movups (%r9), %xmm2 vpextrq $0, %xmm2, %r14 nop add %rbp, %rbp lea addresses_normal_ht+0xa1e, %rcx clflush (%rcx) xor $15052, %rbp mov (%rcx), %r10d nop nop nop sub %rbp, %rbp lea addresses_A_ht+0x1281e, %rsi lea addresses_D_ht+0x1221e, %rdi nop xor %r14, %r14 mov $17, %rcx rep movsl nop nop nop add %r10, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %rax push %rcx // Faulty Load mov $0xa1e, %r14 nop nop mfence movntdqa (%r14), %xmm0 vpextrq $1, %xmm0, %r13 lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rcx pop %rax pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_P', 'same': True, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 2, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 2, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'49': 17, '45': 1, '00': 1} 49 49 49 49 49 45 49 49 49 49 49 49 49 49 49 49 49 00 49 */
20.21028
148
0.649711
ba08a88517be74e13eb149324c36126e66f69d6e
100
asm
Assembly
src/main/fragment/mos6502-common/pduc1_derefidx_vbuyy=pduc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pduc1_derefidx_vbuyy=pduc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pduc1_derefidx_vbuyy=pduc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c2},y sta {c1},y lda {c2}+1,y sta {c1}+1,y lda {c2}+2,y sta {c1}+2,y lda {c2}+3,y sta {c1}+3,y
11.111111
12
0.54
82b925bc5ba0f573783b594e9f146c8d88605047
7,769
asm
Assembly
source/jni/u2/lens/asm.asm
Falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
9
2015-05-13T21:02:00.000Z
2018-04-15T16:32:27.000Z
source/jni/u2/lens/asm.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
source/jni/u2/lens/asm.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
code SEGMENT para public 'CODE' ASSUME cs:code .386 LOCALS PUBLIC _back _back dw 0,0 PUBLIC _rotpic _rotpic dw 0,0 PUBLIC _rotpic90 _rotpic90 dw 0,0 DOWORD MACRO diadd,siadd mov bx,ds:[si+(siadd)] ;4 mov al,fs:[bx+di] ;3 mov bx,ds:[si+(siadd)+2] ;4 mov ah,fs:[bx+di] ;3 or ax,dx ;2 mov es:[bp+(diadd)],ax ;5 ENDM ;=21 PUBLIC _dorow _dorow PROC FAR push bp mov bp,sp push si push di push ds mov fs,cs:_back[2] mov ax,0a000h mov es,ax mov ds,[bp+8] mov dx,[bp+14] mov dh,dl mov di,[bp+10] mov si,[bp+12] shl si,2 mov cx,ds:[si+2] mov si,ds:[si] cmp cx,4 jge @@2 jmp @@0 @@2: add di,ds:[si] mov bp,di add si,2 test bp,1 jz @@1 mov bx,ds:[si] add si,2 mov al,fs:[bx+di] or ax,dx mov es:[bp],al inc bp dec cx @@1: push cx shr cx,1 sub si,320 sub bp,320 mov ax,cx ;*1 shl cx,2 add ax,cx ;*4 shl cx,2 add ax,cx ;*16 neg ax ;bx=-count*21 add ax,OFFSET @@l jmp ax zzz=64 REPT 64 zzz=zzz-1 DOWORD 320+zzz*2,320+zzz*4 ENDM @@l: pop cx test cx,1 jz @@0 and cx,not 1 add bp,cx add cx,cx add si,cx mov bx,ds:[si+320] mov al,fs:[bx+di] or ax,dx mov es:[bp+320],al @@0: pop ds pop di pop si pop bp ret _dorow ENDP PUBLIC _dorow2 _dorow2 PROC FAR push bp mov bp,sp push si push di push ds mov fs,[bp+8] mov si,[bp+12] shl si,2 mov cx,fs:[si+2] mov si,fs:[si] or cx,cx jcxz @@0 mov ds,cs:_back[2] mov ax,0a000h mov es,ax mov dx,[bp+14] mov dh,dl mov di,[bp+10] add di,fs:[si] mov ax,di lea bp,[si+2] mov si,ax @@3: mov bx,fs:[bp+2] mov al,ds:[bx+di] or al,dl mov bx,fs:[bp] add bp,4 mov es:[bx+si],al dec cx jnz @@3 @@0: pop ds pop di pop si pop bp ret _dorow2 ENDP PUBLIC _dorow3 _dorow3 PROC FAR push bp mov bp,sp push si push di push ds mov fs,[bp+8] mov si,[bp+12] shl si,2 mov cx,fs:[si+2] mov si,fs:[si] or cx,cx jcxz @@0 mov ds,cs:_back[2] mov ax,0a000h mov es,ax mov di,[bp+10] add di,fs:[si] add si,2 @@3: mov bx,fs:[si] add si,2 mov al,ds:[bx+di] mov es:[bx+di],al dec cx jnz @@3 @@0: pop ds pop di pop si pop bp ret _dorow3 ENDP PUBLIC _setborder _setborder PROC FAR push bp mov bp,sp mov dx,3dah in al,dx mov dx,3c0h mov al,11h+32 out dx,al mov al,[bp+6] out dx,al pop bp ret _setborder ENDP PUBLIC _inittwk _inittwk PROC FAR push bp mov bp,sp push si push di push ds ;clear palette mov dx,3c8h xor al,al out dx,al inc dx mov cx,768 @@1: out dx,al loop @@1 ;400 rows mov dx,3d4h mov ax,00009h out dx,ax ;tweak mov ax,00014h out dx,ax mov ax,0e317h out dx,ax mov dx,3c4h mov ax,0604h out dx,ax ; mov dx,3c4h mov ax,0f02h out dx,ax mov ax,0a000h mov es,ax xor di,di mov cx,32768 xor ax,ax rep stosw ; ;set 4 x vertical mov dx,3d4h mov al,9 out dx,al inc dx in al,dx and al,not 31 or al,3 out dx,al ; pop ds pop di pop si pop bp ret _inittwk ENDP PUBLIC _setpalarea _setpalarea PROC FAR push bp mov bp,sp push si push di push ds lds si,[bp+6] mov ax,[bp+10] mov dx,3c8h out dx,al mov cx,[bp+12] mov ax,cx shl cx,1 add cx,ax inc dx rep outsb sti pop ds pop di pop si pop bp ret _setpalarea ENDP ALIGN 16 xpos dd 0 ypos dd 0 xadd dd 0 yadd dd 0 ZOOMXW equ 160 ZOOMYW equ 100 PUBLIC _rotate _rotate PROC FAR push bp mov bp,sp push si push di push ds mov ax,[bp+6] shl eax,16 mov cs:xpos,eax mov ax,[bp+8] shl eax,16 mov cs:ypos,eax mov ax,[bp+12] cwde shl eax,6 mov ebx,eax mov ax,[bp+10] cwde shl eax,6 mov ecx,eax mov edx,ebx mov ds,cs:_rotpic[2] cmp ecx,0 jge @@s1 neg ecx @@s1: cmp edx,0 jge @@s2 neg edx @@s2: cmp ecx,edx jle @@s3 mov ds,cs:_rotpic90[2] xchg eax,ebx neg eax mov ecx,cs:xpos mov edx,cs:ypos xchg ecx,edx neg ecx mov cs:xpos,ecx mov cs:ypos,edx @@s3: mov cs:xadd,eax mov cs:yadd,ebx xor ax,ax mov cx,word ptr cs:yadd[0] mov dx,word ptr cs:xadd[0] mov bl,byte ptr cs:yadd[2] mov bh,byte ptr cs:xadd[2] neg bh neg dx sbb bh,0 xor si,si xor di,di ;si=lowx,di=lowy,ax=y/x ;cx=addx,dx=addy,bx=yah/xah zzz=0 REPT ZOOMXW/4 add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@moda+zzz+2],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@modb+zzz+2],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@moda+zzz+6],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@modb+zzz+6],ax zzz=zzz+13 ENDM ;aspect ratio mov eax,307 mul dword ptr cs:xadd sar eax,8 mov cs:xadd,eax mov eax,307 mul dword ptr cs:yadd sar eax,8 mov cs:yadd,eax mov ax,0a000h mov es,ax mov di,-1000h mov cx,ZOOMYW @@2: mov ebx,cs:ypos add ebx,cs:yadd mov cs:ypos,ebx shr ebx,8 mov eax,cs:xpos add eax,cs:xadd mov cs:xpos,eax shr eax,16 mov bl,al mov si,bx ; mov dx,3c4h mov ax,0302h out dx,ax @@moda: zzz=1000h REPT ZOOMXW/4 mov al,ds:[si+1234h] ;4 mov ah,ds:[si+1234h] ;4 mov es:[di+zzz],ax ;5 zzz=zzz+2 ENDM mov dx,3c4h mov ax,0c02h out dx,ax @@modb: zzz=1000h REPT ZOOMXW/4 mov al,ds:[si+1234h] ;4 mov ah,ds:[si+1234h] ;4 mov es:[di+zzz],ax ;5 zzz=zzz+2 ENDM ; add di,80 dec cx jz @@1 jmp @@2 @@1: pop ds pop di pop si pop bp ret _rotate ENDP PUBLIC _rotatez _rotatez PROC FAR push bp mov bp,sp push si push di push ds mov ax,[bp+6] shl eax,16 mov cs:xpos,eax mov ax,[bp+8] shl eax,16 mov cs:ypos,eax mov ax,[bp+12] cwde shl eax,6 mov ebx,eax mov ax,[bp+10] cwde shl eax,6 mov ecx,eax mov edx,ebx mov ds,cs:_rotpic[2] cmp ecx,0 jge @@s1 neg ecx @@s1: cmp edx,0 jge @@s2 neg edx @@s2: cmp ecx,edx jle @@s3 mov ds,cs:_rotpic90[2] xchg eax,ebx neg eax mov ecx,cs:xpos mov edx,cs:ypos xchg ecx,edx neg ecx mov cs:xpos,ecx mov cs:ypos,edx @@s3: mov cs:xadd,eax mov cs:yadd,ebx xor ax,ax mov cx,word ptr cs:yadd[0] mov dx,word ptr cs:xadd[0] mov bl,byte ptr cs:yadd[2] mov bh,byte ptr cs:xadd[2] neg bh neg dx sbb bh,0 xor si,si xor di,di ;si=lowx,di=lowy,ax=y/x ;cx=addx,dx=addy,bx=yah/xah zzz=0 REPT ZOOMXW/4 add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@moda+zzz+2],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@modb+zzz+2],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@moda+zzz+6],ax add si,cx adc al,bl add di,dx adc ah,bh mov word ptr cs:[OFFSET @@modb+zzz+6],ax zzz=zzz+13 ENDM ;aspect ratio mov eax,307 mul dword ptr cs:xadd sar eax,8 mov cs:xadd,eax mov eax,307 mul dword ptr cs:yadd sar eax,8 mov cs:yadd,eax mov ax,0a000h mov es,ax mov di,-1000h mov cx,ZOOMYW @@2: mov ebx,cs:ypos add ebx,cs:yadd mov cs:ypos,ebx shr ebx,8 mov eax,cs:xpos add eax,cs:xadd mov cs:xpos,eax add cs:xadd,256 sub cs:yadd,256 shr eax,16 mov bl,al mov si,bx ; mov dx,3c4h mov ax,0302h out dx,ax @@moda: zzz=1000h REPT ZOOMXW/4 mov al,ds:[si+1234h] ;4 mov ah,ds:[si+1234h] ;4 mov es:[di+zzz],ax ;5 zzz=zzz+2 ENDM mov dx,3c4h mov ax,0c02h out dx,ax @@modb: zzz=1000h REPT ZOOMXW/4 mov al,ds:[si+1234h] ;4 mov ah,ds:[si+1234h] ;4 mov es:[di+zzz],ax ;5 zzz=zzz+2 ENDM ; add di,80 dec cx jz @@1 jmp @@2 @@1: pop ds pop di pop si pop bp ret _rotatez ENDP code ENDS END
13.70194
42
0.596216
418cdcd42f8f8383264eb9b48b8297da16bbdd71
841
asm
Assembly
programs/oeis/198/A198961.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/198/A198961.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/198/A198961.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A198961: 4*9^n-1. ; 3,35,323,2915,26243,236195,2125763,19131875,172186883,1549681955,13947137603,125524238435,1129718145923,10167463313315,91507169819843,823564528378595,7412080755407363,66708726798666275,600378541187996483,5403406870691968355,48630661836227715203,437675956526049436835,3939083608734444931523,35451752478610004383715,319065772307490039453443,2871591950767410355080995,25844327556906693195728963,232598948012160238761560675,2093390532109442148854046083,18840514788984979339686414755,169564633100864814057177732803,1526081697907783326514599595235,13734735281170049938631396357123,123612617530530449447682567214115,1112513557774774045029143104927043,10012622019972966405262287944343395,90113598179756697647360591499090563,811022383617810278826245323491815075 mov $1,9 pow $1,$0 mul $1,8 sub $1,6 div $1,2 add $1,2 mov $0,$1
76.454545
754
0.904875
574ba3377d34583c9fb21a749426b99c42848355
449
asm
Assembly
oeis/236/A236376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/236/A236376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/236/A236376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A236376: Riordan array ((1-x+x^2)/(1-x)^2, x/(1-x)^2). ; Submitted by Christian Krause ; 1,1,1,2,3,1,3,7,5,1,4,14,16,7,1,5,25,41,29,9,1,6,41,91,92,46,11,1,7,63,182,246,175,67,13,1,8,92,336,582,550,298,92,15,1,9,129,582,1254,1507,1079,469,121,17,1,10,175,957,2508,3718,3367,1925,696,154 mov $3,2 mov $4,$0 lpb $3 mov $0,$4 add $0,1 seq $0,128908 ; Riordan array (1, x/(1-x)^2). add $0,$2 sub $3,1 mov $2,$3 mul $2,$0 sub $4,$3 lpe
26.411765
198
0.596882
7ac56e181467d309b871ad99f122b0756b162287
430
asm
Assembly
programs/oeis/291/A291521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/291/A291521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/291/A291521.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A291521: The arithmetic function uhat(n,4,6). ; -11,-12,-11,-12,-11,-12,-11,-12,-11,-12,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70 mov $3,$0 mov $0,5 mov $2,$3 sub $2,5 sub $0,$2 add $0,1 lpb $0 sub $0,2 lpe sub $0,12 mov $1,$0
28.666667
281
0.530233
09adfefddf8aeb13a44dcc7503e87e55e001df56
899
asm
Assembly
oeis/208/A208264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/208/A208264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/208/A208264.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A208264: Number of n X 3 0..1 arrays with new values 0..1 introduced in row major order and no element equal to more than two of its immediate leftward or upward or left-upward diagonal neighbors. ; Submitted by Jon Maiga ; 4,25,161,1033,6631,42563,273205,1753657,11256431,72253147,463780861,2976931745,19108426759,122653794067,787294181189,5053509615817,32437632650335,208211736387083,1336476297041869,8578617726111793,55064711775022199,353451171234384835,2268743927279152021,14562687653828022233,93475455362336819791,600003307280946681403,3851320834465034503325,24720984017908373424577,158679859996283450694631,1018539470362495755434867,6537834434128008137843941,41965265295862969191978985,269368016136836848054535999 add $0,1 lpb $0 sub $0,1 add $3,4 add $1,$3 add $1,$3 mul $4,2 add $4,2 mov $2,$4 add $4,$3 add $4,$1 add $2,$4 mov $3,$2 lpe mov $0,$4 div $0,4 add $0,1
40.863636
497
0.799778
661b0688c85c0308934c47678b64de705ff0febc
2,030
asm
Assembly
ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
christopherco/RPi-UEFI
48fd8bb20dd4d45a4cf0a8970a65837e45bbaa99
[ "BSD-2-Clause" ]
93
2016-10-27T12:03:57.000Z
2022-03-29T15:22:10.000Z
ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
AidenFeng/EDKII
361f6fddc01c58ab4ebb985b6d6bb8a92ee793a7
[ "BSD-2-Clause" ]
16
2016-11-02T02:08:40.000Z
2021-06-03T21:18:06.000Z
ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.asm
AidenFeng/EDKII
361f6fddc01c58ab4ebb985b6d6bb8a92ee793a7
[ "BSD-2-Clause" ]
41
2016-11-02T00:05:02.000Z
2022-03-29T14:33:09.000Z
// // Copyright (c) 2011-2012, ARM Limited. All rights reserved. // // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at // http://opensource.org/licenses/bsd-license.php // // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // #include <AsmMacroIoLib.h> #include <Library/PcdLib.h> #include <Drivers/PL35xSmc.h> #include <AutoGen.h> INCLUDE AsmMacroIoLib.inc EXPORT PL35xSmcInitialize EXPORT PL35xSmcSetRefresh PRESERVE8 AREA ModuleInitializeSMC, CODE, READONLY // IN r1 Smc Base Address // IN r2 Smc Configuration Start Address // IN r3 Smc Configuration End Address // NOTE: This code is been called before any stack has been setup. It means some registers // could be overwritten (case of 'r0') PL35xSmcInitialize // While (SmcConfigurationStart < SmcConfigurationEnd) cmp r2, r3 blxge lr // Write to set_cycle register(holding register for NOR 1 cycle register or NAND cycle register) ldr r0, [r2, #0x4] str r0, [r1, #PL350_SMC_SET_CYCLES_OFFSET] // Write to set_opmode register(holding register for NOR 1 opomode register or NAND opmode register) ldr r0, [r2, #0x8] str r0, [r1, #PL350_SMC_SET_OPMODE_OFFSET] // Write to direct_cmd register so that the NOR 1 registers(set-cycles and opmode) are updated with holding registers ldr r0, =PL350_SMC_DIRECT_CMD_ADDR_CMD_UPDATE ldr r4, [r2, #0x0] orr r0, r0, r4 str r0, [r1, #PL350_SMC_DIRECT_CMD_OFFSET] add r2, #0xC b PL35xSmcInitialize // IN r1 Smc Base Address // IN r2 Smc Refresh Period 0 // IN r3 Smc Refresh Period 1 PL35xSmcSetRefresh str r2, [r1, #PL350_SMC_REFRESH_0_OFFSET] str r3, [r1, #PL350_SMC_REFRESH_1_OFFSET] blx lr END
32.222222
120
0.708867
4e5546ad36d8c744b69e5343378e4f5ec5e1da08
84
asm
Assembly
q4.asm
tatticoder/Simple-Code
ba7a48d12154c347cdf3a1f7ea1b46f32e1d64ba
[ "MIT" ]
null
null
null
q4.asm
tatticoder/Simple-Code
ba7a48d12154c347cdf3a1f7ea1b46f32e1d64ba
[ "MIT" ]
null
null
null
q4.asm
tatticoder/Simple-Code
ba7a48d12154c347cdf3a1f7ea1b46f32e1d64ba
[ "MIT" ]
null
null
null
.MODEL SMALL .CODE .386 .STARTUP MOV BX,2H MOV AL,2H ADD [BX],AL .EXIT END
8.4
13
0.619048
ca50c16c8bb05af1fb0b9b7087d15066ba44a9c9
250
asm
Assembly
programs/oeis/011/A011874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/011/A011874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/011/A011874.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A011874: a(n) = floor(n*(n-1)/21). ; 0,0,0,0,0,0,1,2,2,3,4,5,6,7,8,10,11,12,14,16,18,20,22,24,26,28,30,33,36,38,41,44,47,50,53,56,60,63,66,70,74,78,82,86,90,94,98,102,107,112,116,121,126,131,136,141,146,152,157,162,168 bin $0,2 mul $0,2 div $0,21
35.714286
183
0.624
005e30c9d2c651922362816252257ac00eee7b24
185
asm
Assembly
Othello/pruebaFail.asm
aeri/Senpai
966a730cd6a9b3b5eff98f99bd43a2f514f81b9e
[ "Unlicense" ]
null
null
null
Othello/pruebaFail.asm
aeri/Senpai
966a730cd6a9b3b5eff98f99bd43a2f514f81b9e
[ "Unlicense" ]
null
null
null
Othello/pruebaFail.asm
aeri/Senpai
966a730cd6a9b3b5eff98f99bd43a2f514f81b9e
[ "Unlicense" ]
1
2020-09-22T08:36:52.000Z
2020-09-22T08:36:52.000Z
.arm .global Undef .global Abort .global SWI .equ DIR, 0xc7fef94 Undef: ldr r1, =DIR mov pc,r1 Abort: mov r1,#0x55 ldr r0,[r1] str r0,[r0] mov pc,lr SWI: SWI 12 mov pc,lr .end
9.736842
19
0.659459
3c9f35cd465819ea50733c2e6d843a2e106e2cd2
353
asm
Assembly
oeis/083/A083314.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/083/A083314.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/083/A083314.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A083314: (2*4^n-(3^n-1))/2. ; Submitted by Jamie Morken(s1) ; 1,3,12,51,216,903,3732,15291,62256,252303,1019052,4105731,16511496,66311703,266043972,1066567371,4273443936,17115299103,68525766492,274296776211,1097768235576,4392816334503,17576495514612,70321672588251 mov $2,3 pow $2,$0 mov $3,4 pow $3,$0 mul $3,2 sub $3,$2 mov $0,$3 div $0,2 add $0,1
25.214286
204
0.74221
002399a37d020fa3f40ca347e675f1693c0d9504
353
asm
Assembly
programs/oeis/044/A044835.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/044/A044835.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/044/A044835.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A044835: Positive integers having more base-9 runs of even length than odd. ; 10,20,30,40,50,60,70,80,810,820,830,840,850,860,870,880,890,1620,1630,1640,1650,1660,1670,1680,1690,1700,2430,2440,2450,2460,2470,2480,2490,2500,2510,3240,3250,3260,3270,3280,3290 add $0,1 seq $0,133899 ; Numbers m such that binomial(m+9,m) mod 9 = 0. sub $0,72 mul $0,10
44.125
181
0.733711
4c0fb3e54655b525d2b6b556ba0c509d5f689aa1
874
asm
Assembly
sw/552tests/rand_simple/t_2_addi.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/rand_simple/t_2_addi.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/rand_simple/t_2_addi.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
// seed 2 lbi r0, 50 // icount 0 slbi r0, 252 // icount 1 lbi r1, 36 // icount 2 slbi r1, 87 // icount 3 lbi r2, 121 // icount 4 slbi r2, 132 // icount 5 lbi r3, 171 // icount 6 slbi r3, 81 // icount 7 lbi r4, 189 // icount 8 slbi r4, 21 // icount 9 lbi r5, 22 // icount 10 slbi r5, 41 // icount 11 lbi r6, 24 // icount 12 slbi r6, 185 // icount 13 lbi r7, 155 // icount 14 slbi r7, 188 // icount 15 addi r1, r2, 12 // icount 16 addi r1, r6, 14 // icount 17 addi r5, r5, 3 // icount 18 addi r2, r7, 1 // icount 19 addi r1, r2, 1 // icount 20 addi r3, r3, 4 // icount 21 addi r5, r3, 13 // icount 22 addi r4, r6, 13 // icount 23 addi r0, r0, 14 // icount 24 addi r4, r1, 5 // icount 25 addi r7, r7, 5 // icount 26 addi r6, r0, 10 // icount 27 addi r7, r6, 15 // icount 28 addi r3, r4, 9 // icount 29 addi r0, r7, 10 // icount 30 addi r0, r7, 2 // icount 31 halt // icount 32
24.971429
28
0.621281
fd1b640729585b36ce5d3713113e95a18e9dbac1
60
asm
Assembly
libsrc/math/mbf32/z80/mulval.asm
witchcraft2001/z88dk
11adca337a4125aff611ddfdf3fc2401e8dda5b2
[ "ClArtistic" ]
2
2019-05-06T16:26:16.000Z
2021-06-22T19:11:29.000Z
libsrc/math/mbf32/z80/mulval.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
null
null
null
libsrc/math/mbf32/z80/mulval.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
null
null
null
SECTION bss_fp_mbf32 PUBLIC MULVAL MULVAL: defb 0,0,0
7.5
21
0.733333
eb9208c73b5cd1ade54aed2d2bd1b3e0a9707c92
569,861
asm
Assembly
kernel.asm
ericong18/lab2-f17
4c31ded5a67d5c15b6f805a941f5022a8e537c6d
[ "MIT-0" ]
null
null
null
kernel.asm
ericong18/lab2-f17
4c31ded5a67d5c15b6f805a941f5022a8e537c6d
[ "MIT-0" ]
null
null
null
kernel.asm
ericong18/lab2-f17
4c31ded5a67d5c15b6f805a941f5022a8e537c6d
[ "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 20 6e 10 movl $0x80106e20,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 27 6e 10 movl $0x80106e27,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 2e 6e 10 80 movl $0x80106e2e,(%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 3f 6e 10 80 movl $0x80106e3f,(%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 46 6e 10 80 movl $0x80106e46,(%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 28 mov 0x28(%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 4d 6e 10 80 movl $0x80106e4d,(%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 07 78 10 80 movl $0x80107807,(%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 61 6e 10 80 movl $0x80106e61,(%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 12 54 00 00 call 80105820 <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 62 53 00 00 call 80105820 <uartputc> 801004be: c7 04 24 20 00 00 00 movl $0x20,(%esp) 801004c5: e8 56 53 00 00 call 80105820 <uartputc> 801004ca: c7 04 24 08 00 00 00 movl $0x8,(%esp) 801004d1: e8 4a 53 00 00 call 80105820 <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 65 6e 10 80 movl $0x80106e65,(%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 90 6e 10 80 movzbl -0x7fef9170(%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 78 6e 10 80 mov $0x80106e78,%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 7f 6e 10 80 movl $0x80106e7f,(%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 88 6e 10 movl $0x80106e88,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 3f 02 00 00 je 80100c10 <exec+0x270> 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 ff 5f 00 00 call 80106a30 <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 b9 5d 00 00 call 80106890 <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 b8 5c 00 00 call 801067d0 <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 82 5e 00 00 call 801069b0 <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, KERNBASE - PGSIZE, KERNBASE - PGSIZE + 4)) == 0) 80100b45: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100b4b: c7 44 24 08 04 f0 ff movl $0x7ffff004,0x8(%esp) 80100b52: 7f 80100b53: c7 44 24 04 00 f0 ff movl $0x7ffff000,0x4(%esp) 80100b5a: 7f 80100b5b: 89 04 24 mov %eax,(%esp) 80100b5e: e8 2d 5d 00 00 call 80106890 <allocuvm> 80100b63: 85 c0 test %eax,%eax 80100b65: 0f 84 8d 00 00 00 je 80100bf8 <exec+0x258> for(argc = 0; argv[argc]; argc++) { 80100b6b: 8b 45 0c mov 0xc(%ebp),%eax 80100b6e: 8b 00 mov (%eax),%eax 80100b70: 85 c0 test %eax,%eax 80100b72: 0f 84 9b 01 00 00 je 80100d13 <exec+0x373> 80100b78: 8b 4d 0c mov 0xc(%ebp),%ecx 80100b7b: 31 d2 xor %edx,%edx 80100b7d: bb fc ff ff 7f mov $0x7ffffffc,%ebx 80100b82: 8d 71 04 lea 0x4(%ecx),%esi 80100b85: 89 cf mov %ecx,%edi 80100b87: 89 f1 mov %esi,%ecx 80100b89: 89 d6 mov %edx,%esi 80100b8b: 89 ca mov %ecx,%edx 80100b8d: eb 27 jmp 80100bb6 <exec+0x216> 80100b8f: 90 nop 80100b90: 8b 95 e8 fe ff ff mov -0x118(%ebp),%edx ustack[3+argc] = sp; 80100b96: 8d 8d 58 ff ff ff lea -0xa8(%ebp),%ecx 80100b9c: 89 9c b5 64 ff ff ff mov %ebx,-0x9c(%ebp,%esi,4) for(argc = 0; argv[argc]; argc++) { 80100ba3: 83 c6 01 add $0x1,%esi 80100ba6: 8b 02 mov (%edx),%eax 80100ba8: 89 d7 mov %edx,%edi 80100baa: 85 c0 test %eax,%eax 80100bac: 74 7d je 80100c2b <exec+0x28b> 80100bae: 83 c2 04 add $0x4,%edx if(argc >= MAXARG) 80100bb1: 83 fe 20 cmp $0x20,%esi 80100bb4: 74 42 je 80100bf8 <exec+0x258> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100bb6: 89 04 24 mov %eax,(%esp) 80100bb9: 89 95 e8 fe ff ff mov %edx,-0x118(%ebp) 80100bbf: e8 cc 38 00 00 call 80104490 <strlen> 80100bc4: f7 d0 not %eax 80100bc6: 01 c3 add %eax,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100bc8: 8b 07 mov (%edi),%eax sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100bca: 83 e3 fc and $0xfffffffc,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100bcd: 89 04 24 mov %eax,(%esp) 80100bd0: e8 bb 38 00 00 call 80104490 <strlen> 80100bd5: 83 c0 01 add $0x1,%eax 80100bd8: 89 44 24 0c mov %eax,0xc(%esp) 80100bdc: 8b 07 mov (%edi),%eax 80100bde: 89 5c 24 04 mov %ebx,0x4(%esp) 80100be2: 89 44 24 08 mov %eax,0x8(%esp) 80100be6: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100bec: 89 04 24 mov %eax,(%esp) 80100bef: e8 0c 61 00 00 call 80106d00 <copyout> 80100bf4: 85 c0 test %eax,%eax 80100bf6: 79 98 jns 80100b90 <exec+0x1f0> freevm(pgdir); 80100bf8: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100bfe: 89 04 24 mov %eax,(%esp) 80100c01: e8 aa 5d 00 00 call 801069b0 <freevm> return -1; 80100c06: b8 ff ff ff ff mov $0xffffffff,%eax 80100c0b: e9 02 fe ff ff jmp 80100a12 <exec+0x72> end_op(); 80100c10: e8 5b 1f 00 00 call 80102b70 <end_op> cprintf("exec: fail\n"); 80100c15: c7 04 24 a1 6e 10 80 movl $0x80106ea1,(%esp) 80100c1c: e8 2f fa ff ff call 80100650 <cprintf> return -1; 80100c21: b8 ff ff ff ff mov $0xffffffff,%eax 80100c26: e9 e7 fd ff ff jmp 80100a12 <exec+0x72> 80100c2b: 89 f2 mov %esi,%edx ustack[3+argc] = 0; 80100c2d: c7 84 95 64 ff ff ff movl $0x0,-0x9c(%ebp,%edx,4) 80100c34: 00 00 00 00 ustack[2] = sp - (argc+1)*4; // argv pointer 80100c38: 8d 04 95 04 00 00 00 lea 0x4(,%edx,4),%eax ustack[1] = argc; 80100c3f: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100c45: 89 da mov %ebx,%edx 80100c47: 29 c2 sub %eax,%edx sp -= (3+argc+1) * 4; 80100c49: 83 c0 0c add $0xc,%eax 80100c4c: 29 c3 sub %eax,%ebx if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100c4e: 89 44 24 0c mov %eax,0xc(%esp) 80100c52: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100c58: 89 4c 24 08 mov %ecx,0x8(%esp) 80100c5c: 89 5c 24 04 mov %ebx,0x4(%esp) ustack[0] = 0xffffffff; // fake return PC 80100c60: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp) 80100c67: ff ff ff if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100c6a: 89 04 24 mov %eax,(%esp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100c6d: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100c73: e8 88 60 00 00 call 80106d00 <copyout> 80100c78: 85 c0 test %eax,%eax 80100c7a: 0f 88 78 ff ff ff js 80100bf8 <exec+0x258> for(last=s=path; *s; s++) 80100c80: 8b 45 08 mov 0x8(%ebp),%eax 80100c83: 0f b6 10 movzbl (%eax),%edx 80100c86: 84 d2 test %dl,%dl 80100c88: 74 19 je 80100ca3 <exec+0x303> 80100c8a: 8b 4d 08 mov 0x8(%ebp),%ecx 80100c8d: 83 c0 01 add $0x1,%eax last = s+1; 80100c90: 80 fa 2f cmp $0x2f,%dl for(last=s=path; *s; s++) 80100c93: 0f b6 10 movzbl (%eax),%edx last = s+1; 80100c96: 0f 44 c8 cmove %eax,%ecx 80100c99: 83 c0 01 add $0x1,%eax for(last=s=path; *s; s++) 80100c9c: 84 d2 test %dl,%dl 80100c9e: 75 f0 jne 80100c90 <exec+0x2f0> 80100ca0: 89 4d 08 mov %ecx,0x8(%ebp) safestrcpy(curproc->name, last, sizeof(curproc->name)); 80100ca3: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi 80100ca9: 8b 45 08 mov 0x8(%ebp),%eax 80100cac: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 80100cb3: 00 80100cb4: 89 44 24 04 mov %eax,0x4(%esp) 80100cb8: 89 f8 mov %edi,%eax 80100cba: 83 c0 70 add $0x70,%eax 80100cbd: 89 04 24 mov %eax,(%esp) 80100cc0: e8 8b 37 00 00 call 80104450 <safestrcpy> sz = PGROUNDUP(sz); 80100cc5: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax curproc->pgdir = pgdir; 80100ccb: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx oldpgdir = curproc->pgdir; 80100cd1: 8b 77 08 mov 0x8(%edi),%esi curproc->sb = 1; 80100cd4: c7 47 04 01 00 00 00 movl $0x1,0x4(%edi) sz = PGROUNDUP(sz); 80100cdb: 05 ff 0f 00 00 add $0xfff,%eax 80100ce0: 25 00 f0 ff ff and $0xfffff000,%eax 80100ce5: 89 07 mov %eax,(%edi) curproc->tf->eip = elf.entry; // main 80100ce7: 8b 47 1c mov 0x1c(%edi),%eax curproc->pgdir = pgdir; 80100cea: 89 57 08 mov %edx,0x8(%edi) curproc->tf->eip = elf.entry; // main 80100ced: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx 80100cf3: 89 50 38 mov %edx,0x38(%eax) curproc->tf->esp = sp; 80100cf6: 8b 47 1c mov 0x1c(%edi),%eax 80100cf9: 89 58 44 mov %ebx,0x44(%eax) switchuvm(curproc); 80100cfc: 89 3c 24 mov %edi,(%esp) 80100cff: e8 2c 59 00 00 call 80106630 <switchuvm> freevm(oldpgdir); 80100d04: 89 34 24 mov %esi,(%esp) 80100d07: e8 a4 5c 00 00 call 801069b0 <freevm> return 0; 80100d0c: 31 c0 xor %eax,%eax 80100d0e: e9 ff fc ff ff jmp 80100a12 <exec+0x72> for(argc = 0; argv[argc]; argc++) { 80100d13: bb fc ff ff 7f mov $0x7ffffffc,%ebx 80100d18: 31 d2 xor %edx,%edx 80100d1a: 8d 8d 58 ff ff ff lea -0xa8(%ebp),%ecx 80100d20: e9 08 ff ff ff jmp 80100c2d <exec+0x28d> 80100d25: 66 90 xchg %ax,%ax 80100d27: 66 90 xchg %ax,%ax 80100d29: 66 90 xchg %ax,%ax 80100d2b: 66 90 xchg %ax,%ax 80100d2d: 66 90 xchg %ax,%ax 80100d2f: 90 nop 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 ad 6e 10 movl $0x80106ead,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 b4 6e 10 80 movl $0x80106eb4,(%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 bc 6e 10 80 movl $0x80106ebc,(%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 c6 6e 10 80 movl $0x80106ec6,(%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 cf 6e 10 80 movl $0x80106ecf,(%esp) 801010c8: e8 93 f2 ff ff call 80100360 <panic> panic("filewrite"); 801010cd: c7 04 24 d5 6e 10 80 movl $0x80106ed5,(%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 df 6e 10 80 movl $0x80106edf,(%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 f5 6e 10 80 movl $0x80106ef5,(%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 05 6f 10 80 movl $0x80106f05,(%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 18 6f 10 80 movl $0x80106f18,(%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 2b 6f 10 movl $0x80106f2b,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 32 6f 10 movl $0x80106f32,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 98 6f 10 80 movl $0x80106f98,(%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 38 6f 10 80 movl $0x80106f38,(%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 50 6f 10 80 movl $0x80106f50,(%esp) 80101761: e8 fa eb ff ff call 80100360 <panic> panic("ilock"); 80101766: c7 04 24 4a 6f 10 80 movl $0x80106f4a,(%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 5f 6f 10 80 movl $0x80106f5f,(%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 79 6f 10 80 movl $0x80106f79,(%esp) 80101c59: e8 02 e7 ff ff call 80100360 <panic> panic("dirlookup not DIR"); 80101c5e: c7 04 24 67 6f 10 80 movl $0x80106f67,(%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 6c mov 0x6c(%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 88 6f 10 80 movl $0x80106f88,(%esp) 80101edc: e8 7f e4 ff ff call 80100360 <panic> panic("dirlink"); 80101ee1: c7 04 24 86 75 10 80 movl $0x80107586,(%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 f4 6f 10 80 movl $0x80106ff4,(%esp) 80101fd6: e8 85 e3 ff ff call 80100360 <panic> panic("idestart"); 80101fdb: c7 04 24 eb 6f 10 80 movl $0x80106feb,(%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 06 70 10 movl $0x80107006,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 0a 70 10 80 movl $0x8010700a,(%esp) 801021d2: e8 89 e1 ff ff call 80100360 <panic> panic("iderw: ide disk 1 not present"); 801021d7: c7 04 24 35 70 10 80 movl $0x80107035,(%esp) 801021de: e8 7d e1 ff ff call 80100360 <panic> panic("iderw: nothing to do"); 801021e3: c7 04 24 20 70 10 80 movl $0x80107020,(%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 54 70 10 80 movl $0x80107054,(%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 86 70 10 80 movl $0x80107086,(%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 8c 70 10 movl $0x8010708c,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 c0 71 10 80 movzbl -0x7fef8e40(%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 c0 71 10 80 movzbl -0x7fef8e40(%ecx),%edx shift ^= togglecode[data]; 8010255f: 0f b6 81 c0 70 10 80 movzbl -0x7fef8f40(%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 a0 70 10 80 mov -0x7fef8f60(,%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 c0 72 10 movl $0x801072c0,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 c4 72 10 80 movl $0x801072c4,(%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 d3 72 10 80 movl $0x801072d3,(%esp) 80102d57: e8 04 d6 ff ff call 80100360 <panic> panic("log_write outside of trans"); 80102d5c: c7 04 24 e9 72 10 80 movl $0x801072e9,(%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 04 73 10 80 movl $0x80107304,(%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 34 27 00 00 call 801054d0 <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 45 38 00 00 call 80106610 <switchkvm> seginit(); 80102dcb: e8 00 37 00 00 call 801064d0 <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 b8 3c 00 00 call 80106ac0 <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 b6 36 00 00 call 801064d0 <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 41 2a 00 00 call 80105870 <uartinit> 80102e2f: 90 nop pinit(); // process table 80102e30: e8 9b 07 00 00 call 801035d0 <pinit> shminit(); // shared memory 80102e35: e8 56 3f 00 00 call 80106d90 <shminit> tvinit(); // trap vectors 80102e3a: e8 f1 25 00 00 call 80105430 <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 18 73 10 movl $0x80107318,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 1d 73 10 movl $0x8010731d,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 5c 73 10 80 jmp *-0x7fef8ca4(,%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 22 73 10 80 movl $0x80107322,(%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 3c 73 10 80 movl $0x8010733c,(%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 70 73 10 movl $0x80107370,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 28 mov 0x28(%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 28 mov 0x28(%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 10 mov 0x10(%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 10 01 00 00 00 movl $0x1,0x10(%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 14 mov %eax,0x14(%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 0c mov %eax,0xc(%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 1c mov %edx,0x1c(%ebx) *(uint*)sp = (uint)trapret; 80103520: c7 40 14 25 54 10 80 movl $0x80105425,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 20 mov %eax,0x20(%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 20 mov 0x20(%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 10 00 00 00 00 movl $0x0,0x10(%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 75 73 10 movl $0x80107375,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 7c 73 10 80 movl $0x8010737c,(%esp) 80103651: e8 0a cd ff ff call 80100360 <panic> panic("mycpu called with interrupts enabled\n"); 80103656: c7 04 24 58 74 10 80 movl $0x80107458,(%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 58 33 00 00 call 80106a30 <setupkvm> 801036d8: 85 c0 test %eax,%eax 801036da: 89 43 08 mov %eax,0x8(%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 45 30 00 00 call 80106740 <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 1c mov 0x1c(%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 1c mov 0x1c(%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 1c mov 0x1c(%ebx),%eax 80103730: 66 89 48 2c mov %cx,0x2c(%eax) p->tf->es = p->tf->ds; 80103734: 8b 43 1c mov 0x1c(%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 1c mov 0x1c(%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 1c mov 0x1c(%ebx),%eax 8010374d: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 80103754: 8b 43 1c mov 0x1c(%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 1c mov 0x1c(%ebx),%eax 80103761: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 80103768: 8d 43 70 lea 0x70(%ebx),%eax 8010376b: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 80103772: 00 80103773: c7 44 24 04 a5 73 10 movl $0x801073a5,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 ae 73 10 80 movl $0x801073ae,(%esp) 8010378a: e8 61 e7 ff ff call 80101ef0 <namei> 8010378f: 89 43 6c mov %eax,0x6c(%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 10 03 00 00 00 movl $0x3,0x10(%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 8c 73 10 80 movl $0x8010738c,(%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 08 mov 0x8(%ebx),%eax 801037f6: 89 04 24 mov %eax,(%esp) 801037f9: e8 92 30 00 00 call 80106890 <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 24 2e 00 00 call 80106630 <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 08 mov 0x8(%ebx),%eax 80103827: 89 04 24 mov %eax,(%esp) 8010382a: e8 61 31 00 00 call 80106990 <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 c4 00 00 00 je 80103926 <fork+0xe6> if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz, curproc->sb)) == 0){ 80103862: 8b 43 04 mov 0x4(%ebx),%eax 80103865: 89 44 24 08 mov %eax,0x8(%esp) 80103869: 8b 03 mov (%ebx),%eax 8010386b: 89 44 24 04 mov %eax,0x4(%esp) 8010386f: 8b 43 08 mov 0x8(%ebx),%eax 80103872: 89 04 24 mov %eax,(%esp) 80103875: e8 96 32 00 00 call 80106b10 <copyuvm> 8010387a: 85 c0 test %eax,%eax 8010387c: 89 47 08 mov %eax,0x8(%edi) 8010387f: 0f 84 a8 00 00 00 je 8010392d <fork+0xed> np->sz = curproc->sz; 80103885: 8b 03 mov (%ebx),%eax 80103887: 8b 4d e4 mov -0x1c(%ebp),%ecx 8010388a: 89 01 mov %eax,(%ecx) *np->tf = *curproc->tf; 8010388c: 8b 79 1c mov 0x1c(%ecx),%edi 8010388f: 89 c8 mov %ecx,%eax np->parent = curproc; 80103891: 89 59 18 mov %ebx,0x18(%ecx) *np->tf = *curproc->tf; 80103894: 8b 73 1c mov 0x1c(%ebx),%esi 80103897: b9 13 00 00 00 mov $0x13,%ecx 8010389c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) for(i = 0; i < NOFILE; i++) 8010389e: 31 f6 xor %esi,%esi np->tf->eax = 0; 801038a0: 8b 40 1c mov 0x1c(%eax),%eax 801038a3: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) 801038aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(curproc->ofile[i]) 801038b0: 8b 44 b3 2c mov 0x2c(%ebx,%esi,4),%eax 801038b4: 85 c0 test %eax,%eax 801038b6: 74 0f je 801038c7 <fork+0x87> np->ofile[i] = filedup(curproc->ofile[i]); 801038b8: 89 04 24 mov %eax,(%esp) 801038bb: e8 00 d5 ff ff call 80100dc0 <filedup> 801038c0: 8b 55 e4 mov -0x1c(%ebp),%edx 801038c3: 89 44 b2 2c mov %eax,0x2c(%edx,%esi,4) for(i = 0; i < NOFILE; i++) 801038c7: 83 c6 01 add $0x1,%esi 801038ca: 83 fe 10 cmp $0x10,%esi 801038cd: 75 e1 jne 801038b0 <fork+0x70> np->cwd = idup(curproc->cwd); 801038cf: 8b 43 6c mov 0x6c(%ebx),%eax safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 801038d2: 83 c3 70 add $0x70,%ebx np->cwd = idup(curproc->cwd); 801038d5: 89 04 24 mov %eax,(%esp) 801038d8: e8 93 dd ff ff call 80101670 <idup> 801038dd: 8b 7d e4 mov -0x1c(%ebp),%edi 801038e0: 89 47 6c mov %eax,0x6c(%edi) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 801038e3: 8d 47 70 lea 0x70(%edi),%eax 801038e6: 89 5c 24 04 mov %ebx,0x4(%esp) 801038ea: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 801038f1: 00 801038f2: 89 04 24 mov %eax,(%esp) 801038f5: e8 56 0b 00 00 call 80104450 <safestrcpy> pid = np->pid; 801038fa: 8b 5f 14 mov 0x14(%edi),%ebx acquire(&ptable.lock); 801038fd: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103904: e8 27 08 00 00 call 80104130 <acquire> np->state = RUNNABLE; 80103909: c7 47 10 03 00 00 00 movl $0x3,0x10(%edi) release(&ptable.lock); 80103910: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103917: e8 04 09 00 00 call 80104220 <release> return pid; 8010391c: 89 d8 mov %ebx,%eax } 8010391e: 83 c4 1c add $0x1c,%esp 80103921: 5b pop %ebx 80103922: 5e pop %esi 80103923: 5f pop %edi 80103924: 5d pop %ebp 80103925: c3 ret return -1; 80103926: b8 ff ff ff ff mov $0xffffffff,%eax 8010392b: eb f1 jmp 8010391e <fork+0xde> kfree(np->kstack); 8010392d: 8b 7d e4 mov -0x1c(%ebp),%edi 80103930: 8b 47 0c mov 0xc(%edi),%eax 80103933: 89 04 24 mov %eax,(%esp) 80103936: e8 a5 e9 ff ff call 801022e0 <kfree> return -1; 8010393b: b8 ff ff ff ff mov $0xffffffff,%eax np->kstack = 0; 80103940: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) np->state = UNUSED; 80103947: c7 47 10 00 00 00 00 movl $0x0,0x10(%edi) return -1; 8010394e: eb ce jmp 8010391e <fork+0xde> 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 10 03 cmpl $0x3,0x10(%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 86 2c 00 00 call 80106630 <switchuvm> swtch(&(c->scheduler), p->context); 801039aa: 8b 43 a0 mov -0x60(%ebx),%eax p->state = RUNNING; 801039ad: c7 43 90 04 00 00 00 movl $0x4,-0x70(%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 4b 2c 00 00 call 80106610 <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 10 04 cmpl $0x4,0x10(%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 20 add $0x20,%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 b0 73 10 80 movl $0x801073b0,(%esp) 80103a65: e8 f6 c8 ff ff call 80100360 <panic> panic("sched interruptible"); 80103a6a: c7 04 24 dc 73 10 80 movl $0x801073dc,(%esp) 80103a71: e8 ea c8 ff ff call 80100360 <panic> panic("sched running"); 80103a76: c7 04 24 ce 73 10 80 movl $0x801073ce,(%esp) 80103a7d: e8 de c8 ff ff call 80100360 <panic> panic("sched locks"); 80103a82: c7 04 24 c2 73 10 80 movl $0x801073c2,(%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 2c mov 0x2c(%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 2c 00 00 00 movl $0x0,0x2c(%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 6c mov 0x6c(%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 6c 00 00 00 00 movl $0x0,0x6c(%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 18 mov 0x18(%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 10 02 cmpl $0x2,0x10(%edx) 80103b17: 75 ef jne 80103b08 <exit+0x78> 80103b19: 3b 42 24 cmp 0x24(%edx),%eax 80103b1c: 75 ea jne 80103b08 <exit+0x78> p->state = RUNNABLE; 80103b1e: c7 42 10 03 00 00 00 movl $0x3,0x10(%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 18 cmp %ebx,0x18(%ecx) 80103b4e: 75 f0 jne 80103b40 <exit+0xb0> if(p->state == ZOMBIE) 80103b50: 83 79 10 05 cmpl $0x5,0x10(%ecx) p->parent = initproc; 80103b54: 89 41 18 mov %eax,0x18(%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 10 02 cmpl $0x2,0x10(%edx) 80103b6f: 75 ef jne 80103b60 <exit+0xd0> 80103b71: 3b 42 24 cmp 0x24(%edx),%eax 80103b74: 75 ea jne 80103b60 <exit+0xd0> p->state = RUNNABLE; 80103b76: c7 42 10 03 00 00 00 movl $0x3,0x10(%edx) 80103b7d: eb e1 jmp 80103b60 <exit+0xd0> curproc->state = ZOMBIE; 80103b7f: c7 43 10 05 00 00 00 movl $0x5,0x10(%ebx) sched(); 80103b86: e8 65 fe ff ff call 801039f0 <sched> panic("zombie exit"); 80103b8b: c7 04 24 fd 73 10 80 movl $0x801073fd,(%esp) 80103b92: e8 c9 c7 ff ff call 80100360 <panic> panic("init exiting"); 80103b97: c7 04 24 f0 73 10 80 movl $0x801073f0,(%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 10 03 00 00 00 movl $0x3,0x10(%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 24 mov %edi,0x24(%ebx) p->state = SLEEPING; 80103c31: c7 43 10 02 00 00 00 movl $0x2,0x10(%ebx) sched(); 80103c38: e8 b3 fd ff ff call 801039f0 <sched> p->chan = 0; 80103c3d: c7 43 24 00 00 00 00 movl $0x0,0x24(%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 24 mov %edi,0x24(%eax) p->state = SLEEPING; 80103c63: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax) sched(); 80103c6a: e8 81 fd ff ff call 801039f0 <sched> p->chan = 0; 80103c6f: c7 43 24 00 00 00 00 movl $0x0,0x24(%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 0f 74 10 80 movl $0x8010740f,(%esp) 80103c85: e8 d6 c6 ff ff call 80100360 <panic> panic("sleep"); 80103c8a: c7 04 24 09 74 10 80 movl $0x80107409,(%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 18 cmp %esi,0x18(%ebx) 80103cd6: 75 f0 jne 80103cc8 <wait+0x28> if(p->state == ZOMBIE){ 80103cd8: 83 7b 10 05 cmpl $0x5,0x10(%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 28 mov 0x28(%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 0c mov 0xc(%ebx),%eax pid = p->pid; 80103d10: 8b 73 14 mov 0x14(%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 08 mov 0x8(%ebx),%eax p->kstack = 0; 80103d1e: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) freevm(p->pgdir); 80103d25: 89 04 24 mov %eax,(%esp) 80103d28: e8 83 2c 00 00 call 801069b0 <freevm> release(&ptable.lock); 80103d2d: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) p->pid = 0; 80103d34: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->parent = 0; 80103d3b: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) p->name[0] = 0; 80103d42: c6 43 70 00 movb $0x0,0x70(%ebx) p->killed = 0; 80103d46: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) p->state = UNUSED; 80103d4d: c7 43 10 00 00 00 00 movl $0x0,0x10(%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 10 02 cmpl $0x2,0x10(%eax) 80103dae: 75 f0 jne 80103da0 <wakeup+0x20> 80103db0: 3b 58 24 cmp 0x24(%eax),%ebx 80103db3: 75 eb jne 80103da0 <wakeup+0x20> p->state = RUNNABLE; 80103db5: c7 40 10 03 00 00 00 movl $0x3,0x10(%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 14 cmp %ebx,0x14(%eax) 80103e0d: 75 f1 jne 80103e00 <kill+0x20> p->killed = 1; // Wake process from sleep if necessary. if(p->state == SLEEPING) 80103e0f: 83 78 10 02 cmpl $0x2,0x10(%eax) p->killed = 1; 80103e13: c7 40 28 01 00 00 00 movl $0x1,0x28(%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 10 03 00 00 00 movl $0x3,0x10(%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 c4 2d 11 80 mov $0x80112dc4,%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 07 78 10 80 movl $0x80107807,(%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 c4 4d 11 80 cmp $0x80114dc4,%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 20 74 10 80 mov $0x80107420,%edx if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80103ea2: 77 11 ja 80103eb5 <procdump+0x55> 80103ea4: 8b 14 85 80 74 10 80 mov -0x7fef8b80(,%eax,4),%edx state = "???"; 80103eab: b8 20 74 10 80 mov $0x80107420,%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 24 74 10 80 movl $0x80107424,(%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 61 6e 10 80 movl $0x80106e61,(%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 98 74 10 movl $0x80107498,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 14 mov 0x14(%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 a3 74 10 80 movl $0x801074a3,(%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 c2 74 10 80 movl $0x801074c2,(%esp) 80104201: e8 5a c1 ff ff call 80100360 <panic> panic("popcli - interruptible"); 80104206: c7 04 24 ab 74 10 80 movl $0x801074ab,(%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 c9 74 10 80 movl $0x801074c9,(%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 >= USERSTACKTOP || addr+4 > USERSTACKTOP) 801044c6: 3d fb ff ff 7f cmp $0x7ffffffb,%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: 8b 55 08 mov 0x8(%ebp),%edx char *s, *ep; //struct proc *curproc = myproc(); if(addr >= USERSTACKTOP) 801044e6: 81 fa fe ff ff 7f cmp $0x7ffffffe,%edx 801044ec: 77 21 ja 8010450f <fetchstr+0x2f> return -1; *pp = (char*)addr; 801044ee: 8b 4d 0c mov 0xc(%ebp),%ecx 801044f1: 89 d0 mov %edx,%eax 801044f3: 89 11 mov %edx,(%ecx) ep = (char*)USERSTACKTOP; for(s = *pp; s < ep; s++){ if(*s == 0) 801044f5: 80 3a 00 cmpb $0x0,(%edx) 801044f8: 75 0b jne 80104505 <fetchstr+0x25> 801044fa: eb 1c jmp 80104518 <fetchstr+0x38> 801044fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104500: 80 38 00 cmpb $0x0,(%eax) 80104503: 74 13 je 80104518 <fetchstr+0x38> for(s = *pp; s < ep; s++){ 80104505: 83 c0 01 add $0x1,%eax 80104508: 3d ff ff ff 7f cmp $0x7fffffff,%eax 8010450d: 75 f1 jne 80104500 <fetchstr+0x20> return -1; 8010450f: b8 ff ff ff ff mov $0xffffffff,%eax return s - *pp; } return -1; } 80104514: 5d pop %ebp 80104515: c3 ret 80104516: 66 90 xchg %ax,%ax return s - *pp; 80104518: 29 d0 sub %edx,%eax } 8010451a: 5d pop %ebp 8010451b: c3 ret 8010451c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104520 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 80104520: 55 push %ebp 80104521: 89 e5 mov %esp,%ebp 80104523: 83 ec 08 sub $0x8,%esp return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80104526: e8 65 f1 ff ff call 80103690 <myproc> 8010452b: 8b 55 08 mov 0x8(%ebp),%edx 8010452e: 8b 40 1c mov 0x1c(%eax),%eax 80104531: 8b 40 44 mov 0x44(%eax),%eax 80104534: 8d 44 90 04 lea 0x4(%eax,%edx,4),%eax if(addr >= USERSTACKTOP || addr+4 > USERSTACKTOP) 80104538: 3d fb ff ff 7f cmp $0x7ffffffb,%eax 8010453d: 77 11 ja 80104550 <argint+0x30> *ip = *(int*)(addr); 8010453f: 8b 10 mov (%eax),%edx 80104541: 8b 45 0c mov 0xc(%ebp),%eax 80104544: 89 10 mov %edx,(%eax) return 0; 80104546: 31 c0 xor %eax,%eax } 80104548: c9 leave 80104549: c3 ret 8010454a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 80104550: b8 ff ff ff ff mov $0xffffffff,%eax } 80104555: c9 leave 80104556: c3 ret 80104557: 89 f6 mov %esi,%esi 80104559: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104560 <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) { 80104560: 55 push %ebp 80104561: 89 e5 mov %esp,%ebp 80104563: 53 push %ebx 80104564: 83 ec 24 sub $0x24,%esp 80104567: 8b 5d 10 mov 0x10(%ebp),%ebx int i; //struct proc *curproc = myproc(); if(argint(n, &i) < 0) 8010456a: 8d 45 f4 lea -0xc(%ebp),%eax 8010456d: 89 44 24 04 mov %eax,0x4(%esp) 80104571: 8b 45 08 mov 0x8(%ebp),%eax 80104574: 89 04 24 mov %eax,(%esp) 80104577: e8 a4 ff ff ff call 80104520 <argint> 8010457c: 85 c0 test %eax,%eax 8010457e: 78 20 js 801045a0 <argptr+0x40> return -1; if(size < 0 || (uint)i >= USERSTACKTOP || (uint)i+size > USERSTACKTOP) 80104580: 85 db test %ebx,%ebx 80104582: 78 1c js 801045a0 <argptr+0x40> 80104584: 8b 45 f4 mov -0xc(%ebp),%eax 80104587: 3d fe ff ff 7f cmp $0x7ffffffe,%eax 8010458c: 77 12 ja 801045a0 <argptr+0x40> 8010458e: 01 c3 add %eax,%ebx 80104590: 78 0e js 801045a0 <argptr+0x40> return -1; *pp = (char*)i; 80104592: 8b 55 0c mov 0xc(%ebp),%edx 80104595: 89 02 mov %eax,(%edx) return 0; 80104597: 31 c0 xor %eax,%eax } 80104599: 83 c4 24 add $0x24,%esp 8010459c: 5b pop %ebx 8010459d: 5d pop %ebp 8010459e: c3 ret 8010459f: 90 nop return -1; 801045a0: b8 ff ff ff ff mov $0xffffffff,%eax 801045a5: eb f2 jmp 80104599 <argptr+0x39> 801045a7: 89 f6 mov %esi,%esi 801045a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801045b0 <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) { 801045b0: 55 push %ebp 801045b1: 89 e5 mov %esp,%ebp 801045b3: 83 ec 28 sub $0x28,%esp int addr; if(argint(n, &addr) < 0) 801045b6: 8d 45 f4 lea -0xc(%ebp),%eax 801045b9: 89 44 24 04 mov %eax,0x4(%esp) 801045bd: 8b 45 08 mov 0x8(%ebp),%eax 801045c0: 89 04 24 mov %eax,(%esp) 801045c3: e8 58 ff ff ff call 80104520 <argint> 801045c8: 85 c0 test %eax,%eax 801045ca: 78 2b js 801045f7 <argstr+0x47> return -1; return fetchstr(addr, pp); 801045cc: 8b 55 f4 mov -0xc(%ebp),%edx if(addr >= USERSTACKTOP) 801045cf: 81 fa fe ff ff 7f cmp $0x7ffffffe,%edx 801045d5: 77 20 ja 801045f7 <argstr+0x47> *pp = (char*)addr; 801045d7: 8b 4d 0c mov 0xc(%ebp),%ecx 801045da: 89 d0 mov %edx,%eax 801045dc: 89 11 mov %edx,(%ecx) if(*s == 0) 801045de: 80 3a 00 cmpb $0x0,(%edx) 801045e1: 75 0a jne 801045ed <argstr+0x3d> 801045e3: eb 1b jmp 80104600 <argstr+0x50> 801045e5: 8d 76 00 lea 0x0(%esi),%esi 801045e8: 80 38 00 cmpb $0x0,(%eax) 801045eb: 74 13 je 80104600 <argstr+0x50> for(s = *pp; s < ep; s++){ 801045ed: 83 c0 01 add $0x1,%eax 801045f0: 3d fe ff ff 7f cmp $0x7ffffffe,%eax 801045f5: 76 f1 jbe 801045e8 <argstr+0x38> return -1; 801045f7: b8 ff ff ff ff mov $0xffffffff,%eax } 801045fc: c9 leave 801045fd: c3 ret 801045fe: 66 90 xchg %ax,%ax return s - *pp; 80104600: 29 d0 sub %edx,%eax } 80104602: c9 leave 80104603: c3 ret 80104604: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010460a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80104610 <syscall>: [SYS_shm_close] sys_shm_close }; void syscall(void) { 80104610: 55 push %ebp 80104611: 89 e5 mov %esp,%ebp 80104613: 56 push %esi 80104614: 53 push %ebx 80104615: 83 ec 10 sub $0x10,%esp int num; struct proc *curproc = myproc(); 80104618: e8 73 f0 ff ff call 80103690 <myproc> num = curproc->tf->eax; 8010461d: 8b 70 1c mov 0x1c(%eax),%esi struct proc *curproc = myproc(); 80104620: 89 c3 mov %eax,%ebx num = curproc->tf->eax; 80104622: 8b 46 1c mov 0x1c(%esi),%eax if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80104625: 8d 50 ff lea -0x1(%eax),%edx 80104628: 83 fa 16 cmp $0x16,%edx 8010462b: 77 1b ja 80104648 <syscall+0x38> 8010462d: 8b 14 85 00 75 10 80 mov -0x7fef8b00(,%eax,4),%edx 80104634: 85 d2 test %edx,%edx 80104636: 74 10 je 80104648 <syscall+0x38> curproc->tf->eax = syscalls[num](); 80104638: ff d2 call *%edx 8010463a: 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; } } 8010463d: 83 c4 10 add $0x10,%esp 80104640: 5b pop %ebx 80104641: 5e pop %esi 80104642: 5d pop %ebp 80104643: c3 ret 80104644: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cprintf("%d %s: unknown sys call %d\n", 80104648: 89 44 24 0c mov %eax,0xc(%esp) curproc->pid, curproc->name, num); 8010464c: 8d 43 70 lea 0x70(%ebx),%eax 8010464f: 89 44 24 08 mov %eax,0x8(%esp) cprintf("%d %s: unknown sys call %d\n", 80104653: 8b 43 14 mov 0x14(%ebx),%eax 80104656: c7 04 24 d1 74 10 80 movl $0x801074d1,(%esp) 8010465d: 89 44 24 04 mov %eax,0x4(%esp) 80104661: e8 ea bf ff ff call 80100650 <cprintf> curproc->tf->eax = -1; 80104666: 8b 43 1c mov 0x1c(%ebx),%eax 80104669: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } 80104670: 83 c4 10 add $0x10,%esp 80104673: 5b pop %ebx 80104674: 5e pop %esi 80104675: 5d pop %ebp 80104676: c3 ret 80104677: 66 90 xchg %ax,%ax 80104679: 66 90 xchg %ax,%ax 8010467b: 66 90 xchg %ax,%ax 8010467d: 66 90 xchg %ax,%ax 8010467f: 90 nop 80104680 <fdalloc>: // Allocate a file descriptor for the given file. // Takes over file reference from caller on success. static int fdalloc(struct file *f) { 80104680: 55 push %ebp 80104681: 89 e5 mov %esp,%ebp 80104683: 53 push %ebx 80104684: 89 c3 mov %eax,%ebx 80104686: 83 ec 04 sub $0x4,%esp int fd; struct proc *curproc = myproc(); 80104689: e8 02 f0 ff ff call 80103690 <myproc> for(fd = 0; fd < NOFILE; fd++){ 8010468e: 31 d2 xor %edx,%edx if(curproc->ofile[fd] == 0){ 80104690: 8b 4c 90 2c mov 0x2c(%eax,%edx,4),%ecx 80104694: 85 c9 test %ecx,%ecx 80104696: 74 18 je 801046b0 <fdalloc+0x30> for(fd = 0; fd < NOFILE; fd++){ 80104698: 83 c2 01 add $0x1,%edx 8010469b: 83 fa 10 cmp $0x10,%edx 8010469e: 75 f0 jne 80104690 <fdalloc+0x10> curproc->ofile[fd] = f; return fd; } } return -1; } 801046a0: 83 c4 04 add $0x4,%esp return -1; 801046a3: b8 ff ff ff ff mov $0xffffffff,%eax } 801046a8: 5b pop %ebx 801046a9: 5d pop %ebp 801046aa: c3 ret 801046ab: 90 nop 801046ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi curproc->ofile[fd] = f; 801046b0: 89 5c 90 2c mov %ebx,0x2c(%eax,%edx,4) } 801046b4: 83 c4 04 add $0x4,%esp return fd; 801046b7: 89 d0 mov %edx,%eax } 801046b9: 5b pop %ebx 801046ba: 5d pop %ebp 801046bb: c3 ret 801046bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801046c0 <create>: return -1; } static struct inode* create(char *path, short type, short major, short minor) { 801046c0: 55 push %ebp 801046c1: 89 e5 mov %esp,%ebp 801046c3: 57 push %edi 801046c4: 56 push %esi 801046c5: 53 push %ebx 801046c6: 83 ec 4c sub $0x4c,%esp 801046c9: 89 4d c0 mov %ecx,-0x40(%ebp) 801046cc: 8b 4d 08 mov 0x8(%ebp),%ecx uint off; struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 801046cf: 8d 5d da lea -0x26(%ebp),%ebx 801046d2: 89 5c 24 04 mov %ebx,0x4(%esp) 801046d6: 89 04 24 mov %eax,(%esp) { 801046d9: 89 55 c4 mov %edx,-0x3c(%ebp) 801046dc: 89 4d bc mov %ecx,-0x44(%ebp) if((dp = nameiparent(path, name)) == 0) 801046df: e8 2c d8 ff ff call 80101f10 <nameiparent> 801046e4: 85 c0 test %eax,%eax 801046e6: 89 c7 mov %eax,%edi 801046e8: 0f 84 da 00 00 00 je 801047c8 <create+0x108> return 0; ilock(dp); 801046ee: 89 04 24 mov %eax,(%esp) 801046f1: e8 aa cf ff ff call 801016a0 <ilock> if((ip = dirlookup(dp, name, &off)) != 0){ 801046f6: 8d 45 d4 lea -0x2c(%ebp),%eax 801046f9: 89 44 24 08 mov %eax,0x8(%esp) 801046fd: 89 5c 24 04 mov %ebx,0x4(%esp) 80104701: 89 3c 24 mov %edi,(%esp) 80104704: e8 a7 d4 ff ff call 80101bb0 <dirlookup> 80104709: 85 c0 test %eax,%eax 8010470b: 89 c6 mov %eax,%esi 8010470d: 74 41 je 80104750 <create+0x90> iunlockput(dp); 8010470f: 89 3c 24 mov %edi,(%esp) 80104712: e8 e9 d1 ff ff call 80101900 <iunlockput> ilock(ip); 80104717: 89 34 24 mov %esi,(%esp) 8010471a: e8 81 cf ff ff call 801016a0 <ilock> if(type == T_FILE && ip->type == T_FILE) 8010471f: 66 83 7d c4 02 cmpw $0x2,-0x3c(%ebp) 80104724: 75 12 jne 80104738 <create+0x78> 80104726: 66 83 7e 50 02 cmpw $0x2,0x50(%esi) 8010472b: 89 f0 mov %esi,%eax 8010472d: 75 09 jne 80104738 <create+0x78> panic("create: dirlink"); iunlockput(dp); return ip; } 8010472f: 83 c4 4c add $0x4c,%esp 80104732: 5b pop %ebx 80104733: 5e pop %esi 80104734: 5f pop %edi 80104735: 5d pop %ebp 80104736: c3 ret 80104737: 90 nop iunlockput(ip); 80104738: 89 34 24 mov %esi,(%esp) 8010473b: e8 c0 d1 ff ff call 80101900 <iunlockput> } 80104740: 83 c4 4c add $0x4c,%esp return 0; 80104743: 31 c0 xor %eax,%eax } 80104745: 5b pop %ebx 80104746: 5e pop %esi 80104747: 5f pop %edi 80104748: 5d pop %ebp 80104749: c3 ret 8010474a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if((ip = ialloc(dp->dev, type)) == 0) 80104750: 0f bf 45 c4 movswl -0x3c(%ebp),%eax 80104754: 89 44 24 04 mov %eax,0x4(%esp) 80104758: 8b 07 mov (%edi),%eax 8010475a: 89 04 24 mov %eax,(%esp) 8010475d: e8 ae cd ff ff call 80101510 <ialloc> 80104762: 85 c0 test %eax,%eax 80104764: 89 c6 mov %eax,%esi 80104766: 0f 84 bf 00 00 00 je 8010482b <create+0x16b> ilock(ip); 8010476c: 89 04 24 mov %eax,(%esp) 8010476f: e8 2c cf ff ff call 801016a0 <ilock> ip->major = major; 80104774: 0f b7 45 c0 movzwl -0x40(%ebp),%eax 80104778: 66 89 46 52 mov %ax,0x52(%esi) ip->minor = minor; 8010477c: 0f b7 45 bc movzwl -0x44(%ebp),%eax 80104780: 66 89 46 54 mov %ax,0x54(%esi) ip->nlink = 1; 80104784: b8 01 00 00 00 mov $0x1,%eax 80104789: 66 89 46 56 mov %ax,0x56(%esi) iupdate(ip); 8010478d: 89 34 24 mov %esi,(%esp) 80104790: e8 4b ce ff ff call 801015e0 <iupdate> if(type == T_DIR){ // Create . and .. entries. 80104795: 66 83 7d c4 01 cmpw $0x1,-0x3c(%ebp) 8010479a: 74 34 je 801047d0 <create+0x110> if(dirlink(dp, name, ip->inum) < 0) 8010479c: 8b 46 04 mov 0x4(%esi),%eax 8010479f: 89 5c 24 04 mov %ebx,0x4(%esp) 801047a3: 89 3c 24 mov %edi,(%esp) 801047a6: 89 44 24 08 mov %eax,0x8(%esp) 801047aa: e8 61 d6 ff ff call 80101e10 <dirlink> 801047af: 85 c0 test %eax,%eax 801047b1: 78 6c js 8010481f <create+0x15f> iunlockput(dp); 801047b3: 89 3c 24 mov %edi,(%esp) 801047b6: e8 45 d1 ff ff call 80101900 <iunlockput> } 801047bb: 83 c4 4c add $0x4c,%esp return ip; 801047be: 89 f0 mov %esi,%eax } 801047c0: 5b pop %ebx 801047c1: 5e pop %esi 801047c2: 5f pop %edi 801047c3: 5d pop %ebp 801047c4: c3 ret 801047c5: 8d 76 00 lea 0x0(%esi),%esi return 0; 801047c8: 31 c0 xor %eax,%eax 801047ca: e9 60 ff ff ff jmp 8010472f <create+0x6f> 801047cf: 90 nop dp->nlink++; // for ".." 801047d0: 66 83 47 56 01 addw $0x1,0x56(%edi) iupdate(dp); 801047d5: 89 3c 24 mov %edi,(%esp) 801047d8: e8 03 ce ff ff call 801015e0 <iupdate> if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 801047dd: 8b 46 04 mov 0x4(%esi),%eax 801047e0: c7 44 24 04 7c 75 10 movl $0x8010757c,0x4(%esp) 801047e7: 80 801047e8: 89 34 24 mov %esi,(%esp) 801047eb: 89 44 24 08 mov %eax,0x8(%esp) 801047ef: e8 1c d6 ff ff call 80101e10 <dirlink> 801047f4: 85 c0 test %eax,%eax 801047f6: 78 1b js 80104813 <create+0x153> 801047f8: 8b 47 04 mov 0x4(%edi),%eax 801047fb: c7 44 24 04 7b 75 10 movl $0x8010757b,0x4(%esp) 80104802: 80 80104803: 89 34 24 mov %esi,(%esp) 80104806: 89 44 24 08 mov %eax,0x8(%esp) 8010480a: e8 01 d6 ff ff call 80101e10 <dirlink> 8010480f: 85 c0 test %eax,%eax 80104811: 79 89 jns 8010479c <create+0xdc> panic("create dots"); 80104813: c7 04 24 6f 75 10 80 movl $0x8010756f,(%esp) 8010481a: e8 41 bb ff ff call 80100360 <panic> panic("create: dirlink"); 8010481f: c7 04 24 7e 75 10 80 movl $0x8010757e,(%esp) 80104826: e8 35 bb ff ff call 80100360 <panic> panic("create: ialloc"); 8010482b: c7 04 24 60 75 10 80 movl $0x80107560,(%esp) 80104832: e8 29 bb ff ff call 80100360 <panic> 80104837: 89 f6 mov %esi,%esi 80104839: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104840 <argfd.constprop.0>: argfd(int n, int *pfd, struct file **pf) 80104840: 55 push %ebp 80104841: 89 e5 mov %esp,%ebp 80104843: 56 push %esi 80104844: 89 c6 mov %eax,%esi 80104846: 53 push %ebx 80104847: 89 d3 mov %edx,%ebx 80104849: 83 ec 20 sub $0x20,%esp if(argint(n, &fd) < 0) 8010484c: 8d 45 f4 lea -0xc(%ebp),%eax 8010484f: 89 44 24 04 mov %eax,0x4(%esp) 80104853: c7 04 24 00 00 00 00 movl $0x0,(%esp) 8010485a: e8 c1 fc ff ff call 80104520 <argint> 8010485f: 85 c0 test %eax,%eax 80104861: 78 2d js 80104890 <argfd.constprop.0+0x50> if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0) 80104863: 83 7d f4 0f cmpl $0xf,-0xc(%ebp) 80104867: 77 27 ja 80104890 <argfd.constprop.0+0x50> 80104869: e8 22 ee ff ff call 80103690 <myproc> 8010486e: 8b 55 f4 mov -0xc(%ebp),%edx 80104871: 8b 44 90 2c mov 0x2c(%eax,%edx,4),%eax 80104875: 85 c0 test %eax,%eax 80104877: 74 17 je 80104890 <argfd.constprop.0+0x50> if(pfd) 80104879: 85 f6 test %esi,%esi 8010487b: 74 02 je 8010487f <argfd.constprop.0+0x3f> *pfd = fd; 8010487d: 89 16 mov %edx,(%esi) if(pf) 8010487f: 85 db test %ebx,%ebx 80104881: 74 1d je 801048a0 <argfd.constprop.0+0x60> *pf = f; 80104883: 89 03 mov %eax,(%ebx) return 0; 80104885: 31 c0 xor %eax,%eax } 80104887: 83 c4 20 add $0x20,%esp 8010488a: 5b pop %ebx 8010488b: 5e pop %esi 8010488c: 5d pop %ebp 8010488d: c3 ret 8010488e: 66 90 xchg %ax,%ax 80104890: 83 c4 20 add $0x20,%esp return -1; 80104893: b8 ff ff ff ff mov $0xffffffff,%eax } 80104898: 5b pop %ebx 80104899: 5e pop %esi 8010489a: 5d pop %ebp 8010489b: c3 ret 8010489c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return 0; 801048a0: 31 c0 xor %eax,%eax 801048a2: eb e3 jmp 80104887 <argfd.constprop.0+0x47> 801048a4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801048aa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 801048b0 <sys_dup>: { 801048b0: 55 push %ebp if(argfd(0, 0, &f) < 0) 801048b1: 31 c0 xor %eax,%eax { 801048b3: 89 e5 mov %esp,%ebp 801048b5: 53 push %ebx 801048b6: 83 ec 24 sub $0x24,%esp if(argfd(0, 0, &f) < 0) 801048b9: 8d 55 f4 lea -0xc(%ebp),%edx 801048bc: e8 7f ff ff ff call 80104840 <argfd.constprop.0> 801048c1: 85 c0 test %eax,%eax 801048c3: 78 23 js 801048e8 <sys_dup+0x38> if((fd=fdalloc(f)) < 0) 801048c5: 8b 45 f4 mov -0xc(%ebp),%eax 801048c8: e8 b3 fd ff ff call 80104680 <fdalloc> 801048cd: 85 c0 test %eax,%eax 801048cf: 89 c3 mov %eax,%ebx 801048d1: 78 15 js 801048e8 <sys_dup+0x38> filedup(f); 801048d3: 8b 45 f4 mov -0xc(%ebp),%eax 801048d6: 89 04 24 mov %eax,(%esp) 801048d9: e8 e2 c4 ff ff call 80100dc0 <filedup> return fd; 801048de: 89 d8 mov %ebx,%eax } 801048e0: 83 c4 24 add $0x24,%esp 801048e3: 5b pop %ebx 801048e4: 5d pop %ebp 801048e5: c3 ret 801048e6: 66 90 xchg %ax,%ax return -1; 801048e8: b8 ff ff ff ff mov $0xffffffff,%eax 801048ed: eb f1 jmp 801048e0 <sys_dup+0x30> 801048ef: 90 nop 801048f0 <sys_read>: { 801048f0: 55 push %ebp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 801048f1: 31 c0 xor %eax,%eax { 801048f3: 89 e5 mov %esp,%ebp 801048f5: 83 ec 28 sub $0x28,%esp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 801048f8: 8d 55 ec lea -0x14(%ebp),%edx 801048fb: e8 40 ff ff ff call 80104840 <argfd.constprop.0> 80104900: 85 c0 test %eax,%eax 80104902: 78 54 js 80104958 <sys_read+0x68> 80104904: 8d 45 f0 lea -0x10(%ebp),%eax 80104907: 89 44 24 04 mov %eax,0x4(%esp) 8010490b: c7 04 24 02 00 00 00 movl $0x2,(%esp) 80104912: e8 09 fc ff ff call 80104520 <argint> 80104917: 85 c0 test %eax,%eax 80104919: 78 3d js 80104958 <sys_read+0x68> 8010491b: 8b 45 f0 mov -0x10(%ebp),%eax 8010491e: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104925: 89 44 24 08 mov %eax,0x8(%esp) 80104929: 8d 45 f4 lea -0xc(%ebp),%eax 8010492c: 89 44 24 04 mov %eax,0x4(%esp) 80104930: e8 2b fc ff ff call 80104560 <argptr> 80104935: 85 c0 test %eax,%eax 80104937: 78 1f js 80104958 <sys_read+0x68> return fileread(f, p, n); 80104939: 8b 45 f0 mov -0x10(%ebp),%eax 8010493c: 89 44 24 08 mov %eax,0x8(%esp) 80104940: 8b 45 f4 mov -0xc(%ebp),%eax 80104943: 89 44 24 04 mov %eax,0x4(%esp) 80104947: 8b 45 ec mov -0x14(%ebp),%eax 8010494a: 89 04 24 mov %eax,(%esp) 8010494d: e8 ce c5 ff ff call 80100f20 <fileread> } 80104952: c9 leave 80104953: c3 ret 80104954: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80104958: b8 ff ff ff ff mov $0xffffffff,%eax } 8010495d: c9 leave 8010495e: c3 ret 8010495f: 90 nop 80104960 <sys_write>: { 80104960: 55 push %ebp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104961: 31 c0 xor %eax,%eax { 80104963: 89 e5 mov %esp,%ebp 80104965: 83 ec 28 sub $0x28,%esp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104968: 8d 55 ec lea -0x14(%ebp),%edx 8010496b: e8 d0 fe ff ff call 80104840 <argfd.constprop.0> 80104970: 85 c0 test %eax,%eax 80104972: 78 54 js 801049c8 <sys_write+0x68> 80104974: 8d 45 f0 lea -0x10(%ebp),%eax 80104977: 89 44 24 04 mov %eax,0x4(%esp) 8010497b: c7 04 24 02 00 00 00 movl $0x2,(%esp) 80104982: e8 99 fb ff ff call 80104520 <argint> 80104987: 85 c0 test %eax,%eax 80104989: 78 3d js 801049c8 <sys_write+0x68> 8010498b: 8b 45 f0 mov -0x10(%ebp),%eax 8010498e: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104995: 89 44 24 08 mov %eax,0x8(%esp) 80104999: 8d 45 f4 lea -0xc(%ebp),%eax 8010499c: 89 44 24 04 mov %eax,0x4(%esp) 801049a0: e8 bb fb ff ff call 80104560 <argptr> 801049a5: 85 c0 test %eax,%eax 801049a7: 78 1f js 801049c8 <sys_write+0x68> return filewrite(f, p, n); 801049a9: 8b 45 f0 mov -0x10(%ebp),%eax 801049ac: 89 44 24 08 mov %eax,0x8(%esp) 801049b0: 8b 45 f4 mov -0xc(%ebp),%eax 801049b3: 89 44 24 04 mov %eax,0x4(%esp) 801049b7: 8b 45 ec mov -0x14(%ebp),%eax 801049ba: 89 04 24 mov %eax,(%esp) 801049bd: e8 fe c5 ff ff call 80100fc0 <filewrite> } 801049c2: c9 leave 801049c3: c3 ret 801049c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 801049c8: b8 ff ff ff ff mov $0xffffffff,%eax } 801049cd: c9 leave 801049ce: c3 ret 801049cf: 90 nop 801049d0 <sys_close>: { 801049d0: 55 push %ebp 801049d1: 89 e5 mov %esp,%ebp 801049d3: 83 ec 28 sub $0x28,%esp if(argfd(0, &fd, &f) < 0) 801049d6: 8d 55 f4 lea -0xc(%ebp),%edx 801049d9: 8d 45 f0 lea -0x10(%ebp),%eax 801049dc: e8 5f fe ff ff call 80104840 <argfd.constprop.0> 801049e1: 85 c0 test %eax,%eax 801049e3: 78 23 js 80104a08 <sys_close+0x38> myproc()->ofile[fd] = 0; 801049e5: e8 a6 ec ff ff call 80103690 <myproc> 801049ea: 8b 55 f0 mov -0x10(%ebp),%edx 801049ed: c7 44 90 2c 00 00 00 movl $0x0,0x2c(%eax,%edx,4) 801049f4: 00 fileclose(f); 801049f5: 8b 45 f4 mov -0xc(%ebp),%eax 801049f8: 89 04 24 mov %eax,(%esp) 801049fb: e8 10 c4 ff ff call 80100e10 <fileclose> return 0; 80104a00: 31 c0 xor %eax,%eax } 80104a02: c9 leave 80104a03: c3 ret 80104a04: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80104a08: b8 ff ff ff ff mov $0xffffffff,%eax } 80104a0d: c9 leave 80104a0e: c3 ret 80104a0f: 90 nop 80104a10 <sys_fstat>: { 80104a10: 55 push %ebp if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80104a11: 31 c0 xor %eax,%eax { 80104a13: 89 e5 mov %esp,%ebp 80104a15: 83 ec 28 sub $0x28,%esp if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80104a18: 8d 55 f0 lea -0x10(%ebp),%edx 80104a1b: e8 20 fe ff ff call 80104840 <argfd.constprop.0> 80104a20: 85 c0 test %eax,%eax 80104a22: 78 34 js 80104a58 <sys_fstat+0x48> 80104a24: 8d 45 f4 lea -0xc(%ebp),%eax 80104a27: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp) 80104a2e: 00 80104a2f: 89 44 24 04 mov %eax,0x4(%esp) 80104a33: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104a3a: e8 21 fb ff ff call 80104560 <argptr> 80104a3f: 85 c0 test %eax,%eax 80104a41: 78 15 js 80104a58 <sys_fstat+0x48> return filestat(f, st); 80104a43: 8b 45 f4 mov -0xc(%ebp),%eax 80104a46: 89 44 24 04 mov %eax,0x4(%esp) 80104a4a: 8b 45 f0 mov -0x10(%ebp),%eax 80104a4d: 89 04 24 mov %eax,(%esp) 80104a50: e8 7b c4 ff ff call 80100ed0 <filestat> } 80104a55: c9 leave 80104a56: c3 ret 80104a57: 90 nop return -1; 80104a58: b8 ff ff ff ff mov $0xffffffff,%eax } 80104a5d: c9 leave 80104a5e: c3 ret 80104a5f: 90 nop 80104a60 <sys_link>: { 80104a60: 55 push %ebp 80104a61: 89 e5 mov %esp,%ebp 80104a63: 57 push %edi 80104a64: 56 push %esi 80104a65: 53 push %ebx 80104a66: 83 ec 3c sub $0x3c,%esp if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80104a69: 8d 45 d4 lea -0x2c(%ebp),%eax 80104a6c: 89 44 24 04 mov %eax,0x4(%esp) 80104a70: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104a77: e8 34 fb ff ff call 801045b0 <argstr> 80104a7c: 85 c0 test %eax,%eax 80104a7e: 0f 88 e6 00 00 00 js 80104b6a <sys_link+0x10a> 80104a84: 8d 45 d0 lea -0x30(%ebp),%eax 80104a87: 89 44 24 04 mov %eax,0x4(%esp) 80104a8b: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104a92: e8 19 fb ff ff call 801045b0 <argstr> 80104a97: 85 c0 test %eax,%eax 80104a99: 0f 88 cb 00 00 00 js 80104b6a <sys_link+0x10a> begin_op(); 80104a9f: e8 5c e0 ff ff call 80102b00 <begin_op> if((ip = namei(old)) == 0){ 80104aa4: 8b 45 d4 mov -0x2c(%ebp),%eax 80104aa7: 89 04 24 mov %eax,(%esp) 80104aaa: e8 41 d4 ff ff call 80101ef0 <namei> 80104aaf: 85 c0 test %eax,%eax 80104ab1: 89 c3 mov %eax,%ebx 80104ab3: 0f 84 ac 00 00 00 je 80104b65 <sys_link+0x105> ilock(ip); 80104ab9: 89 04 24 mov %eax,(%esp) 80104abc: e8 df cb ff ff call 801016a0 <ilock> if(ip->type == T_DIR){ 80104ac1: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104ac6: 0f 84 91 00 00 00 je 80104b5d <sys_link+0xfd> ip->nlink++; 80104acc: 66 83 43 56 01 addw $0x1,0x56(%ebx) if((dp = nameiparent(new, name)) == 0) 80104ad1: 8d 7d da lea -0x26(%ebp),%edi iupdate(ip); 80104ad4: 89 1c 24 mov %ebx,(%esp) 80104ad7: e8 04 cb ff ff call 801015e0 <iupdate> iunlock(ip); 80104adc: 89 1c 24 mov %ebx,(%esp) 80104adf: e8 9c cc ff ff call 80101780 <iunlock> if((dp = nameiparent(new, name)) == 0) 80104ae4: 8b 45 d0 mov -0x30(%ebp),%eax 80104ae7: 89 7c 24 04 mov %edi,0x4(%esp) 80104aeb: 89 04 24 mov %eax,(%esp) 80104aee: e8 1d d4 ff ff call 80101f10 <nameiparent> 80104af3: 85 c0 test %eax,%eax 80104af5: 89 c6 mov %eax,%esi 80104af7: 74 4f je 80104b48 <sys_link+0xe8> ilock(dp); 80104af9: 89 04 24 mov %eax,(%esp) 80104afc: e8 9f cb ff ff call 801016a0 <ilock> if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80104b01: 8b 03 mov (%ebx),%eax 80104b03: 39 06 cmp %eax,(%esi) 80104b05: 75 39 jne 80104b40 <sys_link+0xe0> 80104b07: 8b 43 04 mov 0x4(%ebx),%eax 80104b0a: 89 7c 24 04 mov %edi,0x4(%esp) 80104b0e: 89 34 24 mov %esi,(%esp) 80104b11: 89 44 24 08 mov %eax,0x8(%esp) 80104b15: e8 f6 d2 ff ff call 80101e10 <dirlink> 80104b1a: 85 c0 test %eax,%eax 80104b1c: 78 22 js 80104b40 <sys_link+0xe0> iunlockput(dp); 80104b1e: 89 34 24 mov %esi,(%esp) 80104b21: e8 da cd ff ff call 80101900 <iunlockput> iput(ip); 80104b26: 89 1c 24 mov %ebx,(%esp) 80104b29: e8 92 cc ff ff call 801017c0 <iput> end_op(); 80104b2e: e8 3d e0 ff ff call 80102b70 <end_op> } 80104b33: 83 c4 3c add $0x3c,%esp return 0; 80104b36: 31 c0 xor %eax,%eax } 80104b38: 5b pop %ebx 80104b39: 5e pop %esi 80104b3a: 5f pop %edi 80104b3b: 5d pop %ebp 80104b3c: c3 ret 80104b3d: 8d 76 00 lea 0x0(%esi),%esi iunlockput(dp); 80104b40: 89 34 24 mov %esi,(%esp) 80104b43: e8 b8 cd ff ff call 80101900 <iunlockput> ilock(ip); 80104b48: 89 1c 24 mov %ebx,(%esp) 80104b4b: e8 50 cb ff ff call 801016a0 <ilock> ip->nlink--; 80104b50: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 80104b55: 89 1c 24 mov %ebx,(%esp) 80104b58: e8 83 ca ff ff call 801015e0 <iupdate> iunlockput(ip); 80104b5d: 89 1c 24 mov %ebx,(%esp) 80104b60: e8 9b cd ff ff call 80101900 <iunlockput> end_op(); 80104b65: e8 06 e0 ff ff call 80102b70 <end_op> } 80104b6a: 83 c4 3c add $0x3c,%esp return -1; 80104b6d: b8 ff ff ff ff mov $0xffffffff,%eax } 80104b72: 5b pop %ebx 80104b73: 5e pop %esi 80104b74: 5f pop %edi 80104b75: 5d pop %ebp 80104b76: c3 ret 80104b77: 89 f6 mov %esi,%esi 80104b79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104b80 <sys_unlink>: { 80104b80: 55 push %ebp 80104b81: 89 e5 mov %esp,%ebp 80104b83: 57 push %edi 80104b84: 56 push %esi 80104b85: 53 push %ebx 80104b86: 83 ec 5c sub $0x5c,%esp if(argstr(0, &path) < 0) 80104b89: 8d 45 c0 lea -0x40(%ebp),%eax 80104b8c: 89 44 24 04 mov %eax,0x4(%esp) 80104b90: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104b97: e8 14 fa ff ff call 801045b0 <argstr> 80104b9c: 85 c0 test %eax,%eax 80104b9e: 0f 88 76 01 00 00 js 80104d1a <sys_unlink+0x19a> begin_op(); 80104ba4: e8 57 df ff ff call 80102b00 <begin_op> if((dp = nameiparent(path, name)) == 0){ 80104ba9: 8b 45 c0 mov -0x40(%ebp),%eax 80104bac: 8d 5d ca lea -0x36(%ebp),%ebx 80104baf: 89 5c 24 04 mov %ebx,0x4(%esp) 80104bb3: 89 04 24 mov %eax,(%esp) 80104bb6: e8 55 d3 ff ff call 80101f10 <nameiparent> 80104bbb: 85 c0 test %eax,%eax 80104bbd: 89 45 b4 mov %eax,-0x4c(%ebp) 80104bc0: 0f 84 4f 01 00 00 je 80104d15 <sys_unlink+0x195> ilock(dp); 80104bc6: 8b 75 b4 mov -0x4c(%ebp),%esi 80104bc9: 89 34 24 mov %esi,(%esp) 80104bcc: e8 cf ca ff ff call 801016a0 <ilock> if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 80104bd1: c7 44 24 04 7c 75 10 movl $0x8010757c,0x4(%esp) 80104bd8: 80 80104bd9: 89 1c 24 mov %ebx,(%esp) 80104bdc: e8 9f cf ff ff call 80101b80 <namecmp> 80104be1: 85 c0 test %eax,%eax 80104be3: 0f 84 21 01 00 00 je 80104d0a <sys_unlink+0x18a> 80104be9: c7 44 24 04 7b 75 10 movl $0x8010757b,0x4(%esp) 80104bf0: 80 80104bf1: 89 1c 24 mov %ebx,(%esp) 80104bf4: e8 87 cf ff ff call 80101b80 <namecmp> 80104bf9: 85 c0 test %eax,%eax 80104bfb: 0f 84 09 01 00 00 je 80104d0a <sys_unlink+0x18a> if((ip = dirlookup(dp, name, &off)) == 0) 80104c01: 8d 45 c4 lea -0x3c(%ebp),%eax 80104c04: 89 5c 24 04 mov %ebx,0x4(%esp) 80104c08: 89 44 24 08 mov %eax,0x8(%esp) 80104c0c: 89 34 24 mov %esi,(%esp) 80104c0f: e8 9c cf ff ff call 80101bb0 <dirlookup> 80104c14: 85 c0 test %eax,%eax 80104c16: 89 c3 mov %eax,%ebx 80104c18: 0f 84 ec 00 00 00 je 80104d0a <sys_unlink+0x18a> ilock(ip); 80104c1e: 89 04 24 mov %eax,(%esp) 80104c21: e8 7a ca ff ff call 801016a0 <ilock> if(ip->nlink < 1) 80104c26: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 80104c2b: 0f 8e 24 01 00 00 jle 80104d55 <sys_unlink+0x1d5> if(ip->type == T_DIR && !isdirempty(ip)){ 80104c31: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104c36: 8d 75 d8 lea -0x28(%ebp),%esi 80104c39: 74 7d je 80104cb8 <sys_unlink+0x138> memset(&de, 0, sizeof(de)); 80104c3b: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 80104c42: 00 80104c43: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 80104c4a: 00 80104c4b: 89 34 24 mov %esi,(%esp) 80104c4e: e8 1d f6 ff ff call 80104270 <memset> if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80104c53: 8b 45 c4 mov -0x3c(%ebp),%eax 80104c56: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp) 80104c5d: 00 80104c5e: 89 74 24 04 mov %esi,0x4(%esp) 80104c62: 89 44 24 08 mov %eax,0x8(%esp) 80104c66: 8b 45 b4 mov -0x4c(%ebp),%eax 80104c69: 89 04 24 mov %eax,(%esp) 80104c6c: e8 df cd ff ff call 80101a50 <writei> 80104c71: 83 f8 10 cmp $0x10,%eax 80104c74: 0f 85 cf 00 00 00 jne 80104d49 <sys_unlink+0x1c9> if(ip->type == T_DIR){ 80104c7a: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104c7f: 0f 84 a3 00 00 00 je 80104d28 <sys_unlink+0x1a8> iunlockput(dp); 80104c85: 8b 45 b4 mov -0x4c(%ebp),%eax 80104c88: 89 04 24 mov %eax,(%esp) 80104c8b: e8 70 cc ff ff call 80101900 <iunlockput> ip->nlink--; 80104c90: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 80104c95: 89 1c 24 mov %ebx,(%esp) 80104c98: e8 43 c9 ff ff call 801015e0 <iupdate> iunlockput(ip); 80104c9d: 89 1c 24 mov %ebx,(%esp) 80104ca0: e8 5b cc ff ff call 80101900 <iunlockput> end_op(); 80104ca5: e8 c6 de ff ff call 80102b70 <end_op> } 80104caa: 83 c4 5c add $0x5c,%esp return 0; 80104cad: 31 c0 xor %eax,%eax } 80104caf: 5b pop %ebx 80104cb0: 5e pop %esi 80104cb1: 5f pop %edi 80104cb2: 5d pop %ebp 80104cb3: c3 ret 80104cb4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80104cb8: 83 7b 58 20 cmpl $0x20,0x58(%ebx) 80104cbc: 0f 86 79 ff ff ff jbe 80104c3b <sys_unlink+0xbb> 80104cc2: bf 20 00 00 00 mov $0x20,%edi 80104cc7: eb 15 jmp 80104cde <sys_unlink+0x15e> 80104cc9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104cd0: 8d 57 10 lea 0x10(%edi),%edx 80104cd3: 3b 53 58 cmp 0x58(%ebx),%edx 80104cd6: 0f 83 5f ff ff ff jae 80104c3b <sys_unlink+0xbb> 80104cdc: 89 d7 mov %edx,%edi if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80104cde: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp) 80104ce5: 00 80104ce6: 89 7c 24 08 mov %edi,0x8(%esp) 80104cea: 89 74 24 04 mov %esi,0x4(%esp) 80104cee: 89 1c 24 mov %ebx,(%esp) 80104cf1: e8 5a cc ff ff call 80101950 <readi> 80104cf6: 83 f8 10 cmp $0x10,%eax 80104cf9: 75 42 jne 80104d3d <sys_unlink+0x1bd> if(de.inum != 0) 80104cfb: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80104d00: 74 ce je 80104cd0 <sys_unlink+0x150> iunlockput(ip); 80104d02: 89 1c 24 mov %ebx,(%esp) 80104d05: e8 f6 cb ff ff call 80101900 <iunlockput> iunlockput(dp); 80104d0a: 8b 45 b4 mov -0x4c(%ebp),%eax 80104d0d: 89 04 24 mov %eax,(%esp) 80104d10: e8 eb cb ff ff call 80101900 <iunlockput> end_op(); 80104d15: e8 56 de ff ff call 80102b70 <end_op> } 80104d1a: 83 c4 5c add $0x5c,%esp return -1; 80104d1d: b8 ff ff ff ff mov $0xffffffff,%eax } 80104d22: 5b pop %ebx 80104d23: 5e pop %esi 80104d24: 5f pop %edi 80104d25: 5d pop %ebp 80104d26: c3 ret 80104d27: 90 nop dp->nlink--; 80104d28: 8b 45 b4 mov -0x4c(%ebp),%eax 80104d2b: 66 83 68 56 01 subw $0x1,0x56(%eax) iupdate(dp); 80104d30: 89 04 24 mov %eax,(%esp) 80104d33: e8 a8 c8 ff ff call 801015e0 <iupdate> 80104d38: e9 48 ff ff ff jmp 80104c85 <sys_unlink+0x105> panic("isdirempty: readi"); 80104d3d: c7 04 24 a0 75 10 80 movl $0x801075a0,(%esp) 80104d44: e8 17 b6 ff ff call 80100360 <panic> panic("unlink: writei"); 80104d49: c7 04 24 b2 75 10 80 movl $0x801075b2,(%esp) 80104d50: e8 0b b6 ff ff call 80100360 <panic> panic("unlink: nlink < 1"); 80104d55: c7 04 24 8e 75 10 80 movl $0x8010758e,(%esp) 80104d5c: e8 ff b5 ff ff call 80100360 <panic> 80104d61: eb 0d jmp 80104d70 <sys_open> 80104d63: 90 nop 80104d64: 90 nop 80104d65: 90 nop 80104d66: 90 nop 80104d67: 90 nop 80104d68: 90 nop 80104d69: 90 nop 80104d6a: 90 nop 80104d6b: 90 nop 80104d6c: 90 nop 80104d6d: 90 nop 80104d6e: 90 nop 80104d6f: 90 nop 80104d70 <sys_open>: int sys_open(void) { 80104d70: 55 push %ebp 80104d71: 89 e5 mov %esp,%ebp 80104d73: 57 push %edi 80104d74: 56 push %esi 80104d75: 53 push %ebx 80104d76: 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) 80104d79: 8d 45 e0 lea -0x20(%ebp),%eax 80104d7c: 89 44 24 04 mov %eax,0x4(%esp) 80104d80: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104d87: e8 24 f8 ff ff call 801045b0 <argstr> 80104d8c: 85 c0 test %eax,%eax 80104d8e: 0f 88 d1 00 00 00 js 80104e65 <sys_open+0xf5> 80104d94: 8d 45 e4 lea -0x1c(%ebp),%eax 80104d97: 89 44 24 04 mov %eax,0x4(%esp) 80104d9b: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104da2: e8 79 f7 ff ff call 80104520 <argint> 80104da7: 85 c0 test %eax,%eax 80104da9: 0f 88 b6 00 00 00 js 80104e65 <sys_open+0xf5> return -1; begin_op(); 80104daf: e8 4c dd ff ff call 80102b00 <begin_op> if(omode & O_CREATE){ 80104db4: f6 45 e5 02 testb $0x2,-0x1b(%ebp) 80104db8: 0f 85 82 00 00 00 jne 80104e40 <sys_open+0xd0> if(ip == 0){ end_op(); return -1; } } else { if((ip = namei(path)) == 0){ 80104dbe: 8b 45 e0 mov -0x20(%ebp),%eax 80104dc1: 89 04 24 mov %eax,(%esp) 80104dc4: e8 27 d1 ff ff call 80101ef0 <namei> 80104dc9: 85 c0 test %eax,%eax 80104dcb: 89 c6 mov %eax,%esi 80104dcd: 0f 84 8d 00 00 00 je 80104e60 <sys_open+0xf0> end_op(); return -1; } ilock(ip); 80104dd3: 89 04 24 mov %eax,(%esp) 80104dd6: e8 c5 c8 ff ff call 801016a0 <ilock> if(ip->type == T_DIR && omode != O_RDONLY){ 80104ddb: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80104de0: 0f 84 92 00 00 00 je 80104e78 <sys_open+0x108> end_op(); return -1; } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 80104de6: e8 65 bf ff ff call 80100d50 <filealloc> 80104deb: 85 c0 test %eax,%eax 80104ded: 89 c3 mov %eax,%ebx 80104def: 0f 84 93 00 00 00 je 80104e88 <sys_open+0x118> 80104df5: e8 86 f8 ff ff call 80104680 <fdalloc> 80104dfa: 85 c0 test %eax,%eax 80104dfc: 89 c7 mov %eax,%edi 80104dfe: 0f 88 94 00 00 00 js 80104e98 <sys_open+0x128> fileclose(f); iunlockput(ip); end_op(); return -1; } iunlock(ip); 80104e04: 89 34 24 mov %esi,(%esp) 80104e07: e8 74 c9 ff ff call 80101780 <iunlock> end_op(); 80104e0c: e8 5f dd ff ff call 80102b70 <end_op> f->type = FD_INODE; 80104e11: c7 03 02 00 00 00 movl $0x2,(%ebx) f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); 80104e17: 8b 45 e4 mov -0x1c(%ebp),%eax f->ip = ip; 80104e1a: 89 73 10 mov %esi,0x10(%ebx) f->off = 0; 80104e1d: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) f->readable = !(omode & O_WRONLY); 80104e24: 89 c2 mov %eax,%edx 80104e26: 83 e2 01 and $0x1,%edx 80104e29: 83 f2 01 xor $0x1,%edx f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80104e2c: a8 03 test $0x3,%al f->readable = !(omode & O_WRONLY); 80104e2e: 88 53 08 mov %dl,0x8(%ebx) return fd; 80104e31: 89 f8 mov %edi,%eax f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80104e33: 0f 95 43 09 setne 0x9(%ebx) } 80104e37: 83 c4 2c add $0x2c,%esp 80104e3a: 5b pop %ebx 80104e3b: 5e pop %esi 80104e3c: 5f pop %edi 80104e3d: 5d pop %ebp 80104e3e: c3 ret 80104e3f: 90 nop ip = create(path, T_FILE, 0, 0); 80104e40: 8b 45 e0 mov -0x20(%ebp),%eax 80104e43: 31 c9 xor %ecx,%ecx 80104e45: ba 02 00 00 00 mov $0x2,%edx 80104e4a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104e51: e8 6a f8 ff ff call 801046c0 <create> if(ip == 0){ 80104e56: 85 c0 test %eax,%eax ip = create(path, T_FILE, 0, 0); 80104e58: 89 c6 mov %eax,%esi if(ip == 0){ 80104e5a: 75 8a jne 80104de6 <sys_open+0x76> 80104e5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi end_op(); 80104e60: e8 0b dd ff ff call 80102b70 <end_op> } 80104e65: 83 c4 2c add $0x2c,%esp return -1; 80104e68: b8 ff ff ff ff mov $0xffffffff,%eax } 80104e6d: 5b pop %ebx 80104e6e: 5e pop %esi 80104e6f: 5f pop %edi 80104e70: 5d pop %ebp 80104e71: c3 ret 80104e72: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(ip->type == T_DIR && omode != O_RDONLY){ 80104e78: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e7b: 85 c0 test %eax,%eax 80104e7d: 0f 84 63 ff ff ff je 80104de6 <sys_open+0x76> 80104e83: 90 nop 80104e84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi iunlockput(ip); 80104e88: 89 34 24 mov %esi,(%esp) 80104e8b: e8 70 ca ff ff call 80101900 <iunlockput> 80104e90: eb ce jmp 80104e60 <sys_open+0xf0> 80104e92: 8d b6 00 00 00 00 lea 0x0(%esi),%esi fileclose(f); 80104e98: 89 1c 24 mov %ebx,(%esp) 80104e9b: e8 70 bf ff ff call 80100e10 <fileclose> 80104ea0: eb e6 jmp 80104e88 <sys_open+0x118> 80104ea2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104ea9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104eb0 <sys_mkdir>: int sys_mkdir(void) { 80104eb0: 55 push %ebp 80104eb1: 89 e5 mov %esp,%ebp 80104eb3: 83 ec 28 sub $0x28,%esp char *path; struct inode *ip; begin_op(); 80104eb6: e8 45 dc ff ff call 80102b00 <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 80104ebb: 8d 45 f4 lea -0xc(%ebp),%eax 80104ebe: 89 44 24 04 mov %eax,0x4(%esp) 80104ec2: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104ec9: e8 e2 f6 ff ff call 801045b0 <argstr> 80104ece: 85 c0 test %eax,%eax 80104ed0: 78 2e js 80104f00 <sys_mkdir+0x50> 80104ed2: 8b 45 f4 mov -0xc(%ebp),%eax 80104ed5: 31 c9 xor %ecx,%ecx 80104ed7: ba 01 00 00 00 mov $0x1,%edx 80104edc: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104ee3: e8 d8 f7 ff ff call 801046c0 <create> 80104ee8: 85 c0 test %eax,%eax 80104eea: 74 14 je 80104f00 <sys_mkdir+0x50> end_op(); return -1; } iunlockput(ip); 80104eec: 89 04 24 mov %eax,(%esp) 80104eef: e8 0c ca ff ff call 80101900 <iunlockput> end_op(); 80104ef4: e8 77 dc ff ff call 80102b70 <end_op> return 0; 80104ef9: 31 c0 xor %eax,%eax } 80104efb: c9 leave 80104efc: c3 ret 80104efd: 8d 76 00 lea 0x0(%esi),%esi end_op(); 80104f00: e8 6b dc ff ff call 80102b70 <end_op> return -1; 80104f05: b8 ff ff ff ff mov $0xffffffff,%eax } 80104f0a: c9 leave 80104f0b: c3 ret 80104f0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104f10 <sys_mknod>: int sys_mknod(void) { 80104f10: 55 push %ebp 80104f11: 89 e5 mov %esp,%ebp 80104f13: 83 ec 28 sub $0x28,%esp struct inode *ip; char *path; int major, minor; begin_op(); 80104f16: e8 e5 db ff ff call 80102b00 <begin_op> if((argstr(0, &path)) < 0 || 80104f1b: 8d 45 ec lea -0x14(%ebp),%eax 80104f1e: 89 44 24 04 mov %eax,0x4(%esp) 80104f22: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104f29: e8 82 f6 ff ff call 801045b0 <argstr> 80104f2e: 85 c0 test %eax,%eax 80104f30: 78 5e js 80104f90 <sys_mknod+0x80> argint(1, &major) < 0 || 80104f32: 8d 45 f0 lea -0x10(%ebp),%eax 80104f35: 89 44 24 04 mov %eax,0x4(%esp) 80104f39: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80104f40: e8 db f5 ff ff call 80104520 <argint> if((argstr(0, &path)) < 0 || 80104f45: 85 c0 test %eax,%eax 80104f47: 78 47 js 80104f90 <sys_mknod+0x80> argint(2, &minor) < 0 || 80104f49: 8d 45 f4 lea -0xc(%ebp),%eax 80104f4c: 89 44 24 04 mov %eax,0x4(%esp) 80104f50: c7 04 24 02 00 00 00 movl $0x2,(%esp) 80104f57: e8 c4 f5 ff ff call 80104520 <argint> argint(1, &major) < 0 || 80104f5c: 85 c0 test %eax,%eax 80104f5e: 78 30 js 80104f90 <sys_mknod+0x80> (ip = create(path, T_DEV, major, minor)) == 0){ 80104f60: 0f bf 45 f4 movswl -0xc(%ebp),%eax argint(2, &minor) < 0 || 80104f64: ba 03 00 00 00 mov $0x3,%edx (ip = create(path, T_DEV, major, minor)) == 0){ 80104f69: 0f bf 4d f0 movswl -0x10(%ebp),%ecx 80104f6d: 89 04 24 mov %eax,(%esp) argint(2, &minor) < 0 || 80104f70: 8b 45 ec mov -0x14(%ebp),%eax 80104f73: e8 48 f7 ff ff call 801046c0 <create> 80104f78: 85 c0 test %eax,%eax 80104f7a: 74 14 je 80104f90 <sys_mknod+0x80> end_op(); return -1; } iunlockput(ip); 80104f7c: 89 04 24 mov %eax,(%esp) 80104f7f: e8 7c c9 ff ff call 80101900 <iunlockput> end_op(); 80104f84: e8 e7 db ff ff call 80102b70 <end_op> return 0; 80104f89: 31 c0 xor %eax,%eax } 80104f8b: c9 leave 80104f8c: c3 ret 80104f8d: 8d 76 00 lea 0x0(%esi),%esi end_op(); 80104f90: e8 db db ff ff call 80102b70 <end_op> return -1; 80104f95: b8 ff ff ff ff mov $0xffffffff,%eax } 80104f9a: c9 leave 80104f9b: c3 ret 80104f9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104fa0 <sys_chdir>: int sys_chdir(void) { 80104fa0: 55 push %ebp 80104fa1: 89 e5 mov %esp,%ebp 80104fa3: 56 push %esi 80104fa4: 53 push %ebx 80104fa5: 83 ec 20 sub $0x20,%esp char *path; struct inode *ip; struct proc *curproc = myproc(); 80104fa8: e8 e3 e6 ff ff call 80103690 <myproc> 80104fad: 89 c6 mov %eax,%esi begin_op(); 80104faf: e8 4c db ff ff call 80102b00 <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 80104fb4: 8d 45 f4 lea -0xc(%ebp),%eax 80104fb7: 89 44 24 04 mov %eax,0x4(%esp) 80104fbb: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80104fc2: e8 e9 f5 ff ff call 801045b0 <argstr> 80104fc7: 85 c0 test %eax,%eax 80104fc9: 78 4a js 80105015 <sys_chdir+0x75> 80104fcb: 8b 45 f4 mov -0xc(%ebp),%eax 80104fce: 89 04 24 mov %eax,(%esp) 80104fd1: e8 1a cf ff ff call 80101ef0 <namei> 80104fd6: 85 c0 test %eax,%eax 80104fd8: 89 c3 mov %eax,%ebx 80104fda: 74 39 je 80105015 <sys_chdir+0x75> end_op(); return -1; } ilock(ip); 80104fdc: 89 04 24 mov %eax,(%esp) 80104fdf: e8 bc c6 ff ff call 801016a0 <ilock> if(ip->type != T_DIR){ 80104fe4: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) iunlockput(ip); 80104fe9: 89 1c 24 mov %ebx,(%esp) if(ip->type != T_DIR){ 80104fec: 75 22 jne 80105010 <sys_chdir+0x70> end_op(); return -1; } iunlock(ip); 80104fee: e8 8d c7 ff ff call 80101780 <iunlock> iput(curproc->cwd); 80104ff3: 8b 46 6c mov 0x6c(%esi),%eax 80104ff6: 89 04 24 mov %eax,(%esp) 80104ff9: e8 c2 c7 ff ff call 801017c0 <iput> end_op(); 80104ffe: e8 6d db ff ff call 80102b70 <end_op> curproc->cwd = ip; return 0; 80105003: 31 c0 xor %eax,%eax curproc->cwd = ip; 80105005: 89 5e 6c mov %ebx,0x6c(%esi) } 80105008: 83 c4 20 add $0x20,%esp 8010500b: 5b pop %ebx 8010500c: 5e pop %esi 8010500d: 5d pop %ebp 8010500e: c3 ret 8010500f: 90 nop iunlockput(ip); 80105010: e8 eb c8 ff ff call 80101900 <iunlockput> end_op(); 80105015: e8 56 db ff ff call 80102b70 <end_op> } 8010501a: 83 c4 20 add $0x20,%esp return -1; 8010501d: b8 ff ff ff ff mov $0xffffffff,%eax } 80105022: 5b pop %ebx 80105023: 5e pop %esi 80105024: 5d pop %ebp 80105025: c3 ret 80105026: 8d 76 00 lea 0x0(%esi),%esi 80105029: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105030 <sys_exec>: int sys_exec(void) { 80105030: 55 push %ebp 80105031: 89 e5 mov %esp,%ebp 80105033: 57 push %edi 80105034: 56 push %esi 80105035: 53 push %ebx 80105036: 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){ 8010503c: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax 80105042: 89 44 24 04 mov %eax,0x4(%esp) 80105046: c7 04 24 00 00 00 00 movl $0x0,(%esp) 8010504d: e8 5e f5 ff ff call 801045b0 <argstr> 80105052: 85 c0 test %eax,%eax 80105054: 0f 88 84 00 00 00 js 801050de <sys_exec+0xae> 8010505a: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax 80105060: 89 44 24 04 mov %eax,0x4(%esp) 80105064: c7 04 24 01 00 00 00 movl $0x1,(%esp) 8010506b: e8 b0 f4 ff ff call 80104520 <argint> 80105070: 85 c0 test %eax,%eax 80105072: 78 6a js 801050de <sys_exec+0xae> return -1; } memset(argv, 0, sizeof(argv)); 80105074: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax for(i=0;; i++){ 8010507a: 31 db xor %ebx,%ebx memset(argv, 0, sizeof(argv)); 8010507c: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp) 80105083: 00 80105084: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi 8010508a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 80105091: 00 80105092: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi 80105098: 89 04 24 mov %eax,(%esp) 8010509b: e8 d0 f1 ff ff call 80104270 <memset> if(i >= NELEM(argv)) return -1; if(fetchint(uargv+4*i, (int*)&uarg) < 0) 801050a0: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax 801050a6: 89 7c 24 04 mov %edi,0x4(%esp) 801050aa: 8d 04 98 lea (%eax,%ebx,4),%eax 801050ad: 89 04 24 mov %eax,(%esp) 801050b0: e8 0b f4 ff ff call 801044c0 <fetchint> 801050b5: 85 c0 test %eax,%eax 801050b7: 78 25 js 801050de <sys_exec+0xae> return -1; if(uarg == 0){ 801050b9: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax 801050bf: 85 c0 test %eax,%eax 801050c1: 74 2d je 801050f0 <sys_exec+0xc0> argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 801050c3: 89 74 24 04 mov %esi,0x4(%esp) 801050c7: 89 04 24 mov %eax,(%esp) 801050ca: e8 11 f4 ff ff call 801044e0 <fetchstr> 801050cf: 85 c0 test %eax,%eax 801050d1: 78 0b js 801050de <sys_exec+0xae> for(i=0;; i++){ 801050d3: 83 c3 01 add $0x1,%ebx 801050d6: 83 c6 04 add $0x4,%esi if(i >= NELEM(argv)) 801050d9: 83 fb 20 cmp $0x20,%ebx 801050dc: 75 c2 jne 801050a0 <sys_exec+0x70> return -1; } return exec(path, argv); } 801050de: 81 c4 ac 00 00 00 add $0xac,%esp return -1; 801050e4: b8 ff ff ff ff mov $0xffffffff,%eax } 801050e9: 5b pop %ebx 801050ea: 5e pop %esi 801050eb: 5f pop %edi 801050ec: 5d pop %ebp 801050ed: c3 ret 801050ee: 66 90 xchg %ax,%ax return exec(path, argv); 801050f0: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 801050f6: 89 44 24 04 mov %eax,0x4(%esp) 801050fa: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax argv[i] = 0; 80105100: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4) 80105107: 00 00 00 00 return exec(path, argv); 8010510b: 89 04 24 mov %eax,(%esp) 8010510e: e8 8d b8 ff ff call 801009a0 <exec> } 80105113: 81 c4 ac 00 00 00 add $0xac,%esp 80105119: 5b pop %ebx 8010511a: 5e pop %esi 8010511b: 5f pop %edi 8010511c: 5d pop %ebp 8010511d: c3 ret 8010511e: 66 90 xchg %ax,%ax 80105120 <sys_pipe>: int sys_pipe(void) { 80105120: 55 push %ebp 80105121: 89 e5 mov %esp,%ebp 80105123: 53 push %ebx 80105124: 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) 80105127: 8d 45 ec lea -0x14(%ebp),%eax 8010512a: c7 44 24 08 08 00 00 movl $0x8,0x8(%esp) 80105131: 00 80105132: 89 44 24 04 mov %eax,0x4(%esp) 80105136: c7 04 24 00 00 00 00 movl $0x0,(%esp) 8010513d: e8 1e f4 ff ff call 80104560 <argptr> 80105142: 85 c0 test %eax,%eax 80105144: 78 6d js 801051b3 <sys_pipe+0x93> return -1; if(pipealloc(&rf, &wf) < 0) 80105146: 8d 45 f4 lea -0xc(%ebp),%eax 80105149: 89 44 24 04 mov %eax,0x4(%esp) 8010514d: 8d 45 f0 lea -0x10(%ebp),%eax 80105150: 89 04 24 mov %eax,(%esp) 80105153: e8 08 e0 ff ff call 80103160 <pipealloc> 80105158: 85 c0 test %eax,%eax 8010515a: 78 57 js 801051b3 <sys_pipe+0x93> return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 8010515c: 8b 45 f0 mov -0x10(%ebp),%eax 8010515f: e8 1c f5 ff ff call 80104680 <fdalloc> 80105164: 85 c0 test %eax,%eax 80105166: 89 c3 mov %eax,%ebx 80105168: 78 33 js 8010519d <sys_pipe+0x7d> 8010516a: 8b 45 f4 mov -0xc(%ebp),%eax 8010516d: e8 0e f5 ff ff call 80104680 <fdalloc> 80105172: 85 c0 test %eax,%eax 80105174: 78 1a js 80105190 <sys_pipe+0x70> myproc()->ofile[fd0] = 0; fileclose(rf); fileclose(wf); return -1; } fd[0] = fd0; 80105176: 8b 55 ec mov -0x14(%ebp),%edx 80105179: 89 1a mov %ebx,(%edx) fd[1] = fd1; 8010517b: 8b 55 ec mov -0x14(%ebp),%edx 8010517e: 89 42 04 mov %eax,0x4(%edx) return 0; } 80105181: 83 c4 24 add $0x24,%esp return 0; 80105184: 31 c0 xor %eax,%eax } 80105186: 5b pop %ebx 80105187: 5d pop %ebp 80105188: c3 ret 80105189: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi myproc()->ofile[fd0] = 0; 80105190: e8 fb e4 ff ff call 80103690 <myproc> 80105195: c7 44 98 2c 00 00 00 movl $0x0,0x2c(%eax,%ebx,4) 8010519c: 00 fileclose(rf); 8010519d: 8b 45 f0 mov -0x10(%ebp),%eax 801051a0: 89 04 24 mov %eax,(%esp) 801051a3: e8 68 bc ff ff call 80100e10 <fileclose> fileclose(wf); 801051a8: 8b 45 f4 mov -0xc(%ebp),%eax 801051ab: 89 04 24 mov %eax,(%esp) 801051ae: e8 5d bc ff ff call 80100e10 <fileclose> } 801051b3: 83 c4 24 add $0x24,%esp return -1; 801051b6: b8 ff ff ff ff mov $0xffffffff,%eax } 801051bb: 5b pop %ebx 801051bc: 5d pop %ebp 801051bd: c3 ret 801051be: 66 90 xchg %ax,%ax 801051c0 <sys_shm_open>: #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" int sys_shm_open(void) { 801051c0: 55 push %ebp 801051c1: 89 e5 mov %esp,%ebp 801051c3: 83 ec 28 sub $0x28,%esp int id; char **pointer; if(argint(0, &id) < 0) 801051c6: 8d 45 f0 lea -0x10(%ebp),%eax 801051c9: 89 44 24 04 mov %eax,0x4(%esp) 801051cd: c7 04 24 00 00 00 00 movl $0x0,(%esp) 801051d4: e8 47 f3 ff ff call 80104520 <argint> 801051d9: 85 c0 test %eax,%eax 801051db: 78 33 js 80105210 <sys_shm_open+0x50> return -1; if(argptr(1, (char **) (&pointer),4)<0) 801051dd: 8d 45 f4 lea -0xc(%ebp),%eax 801051e0: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp) 801051e7: 00 801051e8: 89 44 24 04 mov %eax,0x4(%esp) 801051ec: c7 04 24 01 00 00 00 movl $0x1,(%esp) 801051f3: e8 68 f3 ff ff call 80104560 <argptr> 801051f8: 85 c0 test %eax,%eax 801051fa: 78 14 js 80105210 <sys_shm_open+0x50> return -1; return shm_open(id, pointer); 801051fc: 8b 45 f4 mov -0xc(%ebp),%eax 801051ff: 89 44 24 04 mov %eax,0x4(%esp) 80105203: 8b 45 f0 mov -0x10(%ebp),%eax 80105206: 89 04 24 mov %eax,(%esp) 80105209: e8 e2 1b 00 00 call 80106df0 <shm_open> } 8010520e: c9 leave 8010520f: c3 ret return -1; 80105210: b8 ff ff ff ff mov $0xffffffff,%eax } 80105215: c9 leave 80105216: c3 ret 80105217: 89 f6 mov %esi,%esi 80105219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105220 <sys_shm_close>: int sys_shm_close(void) { 80105220: 55 push %ebp 80105221: 89 e5 mov %esp,%ebp 80105223: 83 ec 28 sub $0x28,%esp int id; if(argint(0, &id) < 0) 80105226: 8d 45 f4 lea -0xc(%ebp),%eax 80105229: 89 44 24 04 mov %eax,0x4(%esp) 8010522d: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80105234: e8 e7 f2 ff ff call 80104520 <argint> 80105239: 85 c0 test %eax,%eax 8010523b: 78 13 js 80105250 <sys_shm_close+0x30> return -1; return shm_close(id); 8010523d: 8b 45 f4 mov -0xc(%ebp),%eax 80105240: 89 04 24 mov %eax,(%esp) 80105243: e8 b8 1b 00 00 call 80106e00 <shm_close> } 80105248: c9 leave 80105249: c3 ret 8010524a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 80105250: b8 ff ff ff ff mov $0xffffffff,%eax } 80105255: c9 leave 80105256: c3 ret 80105257: 89 f6 mov %esi,%esi 80105259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105260 <sys_fork>: int sys_fork(void) { 80105260: 55 push %ebp 80105261: 89 e5 mov %esp,%ebp return fork(); } 80105263: 5d pop %ebp return fork(); 80105264: e9 d7 e5 ff ff jmp 80103840 <fork> 80105269: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105270 <sys_exit>: int sys_exit(void) { 80105270: 55 push %ebp 80105271: 89 e5 mov %esp,%ebp 80105273: 83 ec 08 sub $0x8,%esp exit(); 80105276: e8 15 e8 ff ff call 80103a90 <exit> return 0; // not reached } 8010527b: 31 c0 xor %eax,%eax 8010527d: c9 leave 8010527e: c3 ret 8010527f: 90 nop 80105280 <sys_wait>: int sys_wait(void) { 80105280: 55 push %ebp 80105281: 89 e5 mov %esp,%ebp return wait(); } 80105283: 5d pop %ebp return wait(); 80105284: e9 17 ea ff ff jmp 80103ca0 <wait> 80105289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105290 <sys_kill>: int sys_kill(void) { 80105290: 55 push %ebp 80105291: 89 e5 mov %esp,%ebp 80105293: 83 ec 28 sub $0x28,%esp int pid; if(argint(0, &pid) < 0) 80105296: 8d 45 f4 lea -0xc(%ebp),%eax 80105299: 89 44 24 04 mov %eax,0x4(%esp) 8010529d: c7 04 24 00 00 00 00 movl $0x0,(%esp) 801052a4: e8 77 f2 ff ff call 80104520 <argint> 801052a9: 85 c0 test %eax,%eax 801052ab: 78 13 js 801052c0 <sys_kill+0x30> return -1; return kill(pid); 801052ad: 8b 45 f4 mov -0xc(%ebp),%eax 801052b0: 89 04 24 mov %eax,(%esp) 801052b3: e8 28 eb ff ff call 80103de0 <kill> } 801052b8: c9 leave 801052b9: c3 ret 801052ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 801052c0: b8 ff ff ff ff mov $0xffffffff,%eax } 801052c5: c9 leave 801052c6: c3 ret 801052c7: 89 f6 mov %esi,%esi 801052c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801052d0 <sys_getpid>: int sys_getpid(void) { 801052d0: 55 push %ebp 801052d1: 89 e5 mov %esp,%ebp 801052d3: 83 ec 08 sub $0x8,%esp return myproc()->pid; 801052d6: e8 b5 e3 ff ff call 80103690 <myproc> 801052db: 8b 40 14 mov 0x14(%eax),%eax } 801052de: c9 leave 801052df: c3 ret 801052e0 <sys_sbrk>: int sys_sbrk(void) { 801052e0: 55 push %ebp 801052e1: 89 e5 mov %esp,%ebp 801052e3: 53 push %ebx 801052e4: 83 ec 24 sub $0x24,%esp int addr; int n; if(argint(0, &n) < 0) 801052e7: 8d 45 f4 lea -0xc(%ebp),%eax 801052ea: 89 44 24 04 mov %eax,0x4(%esp) 801052ee: c7 04 24 00 00 00 00 movl $0x0,(%esp) 801052f5: e8 26 f2 ff ff call 80104520 <argint> 801052fa: 85 c0 test %eax,%eax 801052fc: 78 22 js 80105320 <sys_sbrk+0x40> return -1; addr = myproc()->sz; 801052fe: e8 8d e3 ff ff call 80103690 <myproc> if(growproc(n) < 0) 80105303: 8b 55 f4 mov -0xc(%ebp),%edx addr = myproc()->sz; 80105306: 8b 18 mov (%eax),%ebx if(growproc(n) < 0) 80105308: 89 14 24 mov %edx,(%esp) 8010530b: e8 c0 e4 ff ff call 801037d0 <growproc> 80105310: 85 c0 test %eax,%eax 80105312: 78 0c js 80105320 <sys_sbrk+0x40> return -1; return addr; 80105314: 89 d8 mov %ebx,%eax } 80105316: 83 c4 24 add $0x24,%esp 80105319: 5b pop %ebx 8010531a: 5d pop %ebp 8010531b: c3 ret 8010531c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80105320: b8 ff ff ff ff mov $0xffffffff,%eax 80105325: eb ef jmp 80105316 <sys_sbrk+0x36> 80105327: 89 f6 mov %esi,%esi 80105329: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105330 <sys_sleep>: int sys_sleep(void) { 80105330: 55 push %ebp 80105331: 89 e5 mov %esp,%ebp 80105333: 53 push %ebx 80105334: 83 ec 24 sub $0x24,%esp int n; uint ticks0; if(argint(0, &n) < 0) 80105337: 8d 45 f4 lea -0xc(%ebp),%eax 8010533a: 89 44 24 04 mov %eax,0x4(%esp) 8010533e: c7 04 24 00 00 00 00 movl $0x0,(%esp) 80105345: e8 d6 f1 ff ff call 80104520 <argint> 8010534a: 85 c0 test %eax,%eax 8010534c: 78 7e js 801053cc <sys_sleep+0x9c> return -1; acquire(&tickslock); 8010534e: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 80105355: e8 d6 ed ff ff call 80104130 <acquire> ticks0 = ticks; while(ticks - ticks0 < n){ 8010535a: 8b 55 f4 mov -0xc(%ebp),%edx ticks0 = ticks; 8010535d: 8b 1d a0 55 11 80 mov 0x801155a0,%ebx while(ticks - ticks0 < n){ 80105363: 85 d2 test %edx,%edx 80105365: 75 29 jne 80105390 <sys_sleep+0x60> 80105367: eb 4f jmp 801053b8 <sys_sleep+0x88> 80105369: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(myproc()->killed){ release(&tickslock); return -1; } sleep(&ticks, &tickslock); 80105370: c7 44 24 04 60 4d 11 movl $0x80114d60,0x4(%esp) 80105377: 80 80105378: c7 04 24 a0 55 11 80 movl $0x801155a0,(%esp) 8010537f: e8 6c e8 ff ff call 80103bf0 <sleep> while(ticks - ticks0 < n){ 80105384: a1 a0 55 11 80 mov 0x801155a0,%eax 80105389: 29 d8 sub %ebx,%eax 8010538b: 3b 45 f4 cmp -0xc(%ebp),%eax 8010538e: 73 28 jae 801053b8 <sys_sleep+0x88> if(myproc()->killed){ 80105390: e8 fb e2 ff ff call 80103690 <myproc> 80105395: 8b 40 28 mov 0x28(%eax),%eax 80105398: 85 c0 test %eax,%eax 8010539a: 74 d4 je 80105370 <sys_sleep+0x40> release(&tickslock); 8010539c: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 801053a3: e8 78 ee ff ff call 80104220 <release> return -1; 801053a8: b8 ff ff ff ff mov $0xffffffff,%eax } release(&tickslock); return 0; } 801053ad: 83 c4 24 add $0x24,%esp 801053b0: 5b pop %ebx 801053b1: 5d pop %ebp 801053b2: c3 ret 801053b3: 90 nop 801053b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi release(&tickslock); 801053b8: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 801053bf: e8 5c ee ff ff call 80104220 <release> } 801053c4: 83 c4 24 add $0x24,%esp return 0; 801053c7: 31 c0 xor %eax,%eax } 801053c9: 5b pop %ebx 801053ca: 5d pop %ebp 801053cb: c3 ret return -1; 801053cc: b8 ff ff ff ff mov $0xffffffff,%eax 801053d1: eb da jmp 801053ad <sys_sleep+0x7d> 801053d3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801053d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801053e0 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 801053e0: 55 push %ebp 801053e1: 89 e5 mov %esp,%ebp 801053e3: 53 push %ebx 801053e4: 83 ec 14 sub $0x14,%esp uint xticks; acquire(&tickslock); 801053e7: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 801053ee: e8 3d ed ff ff call 80104130 <acquire> xticks = ticks; 801053f3: 8b 1d a0 55 11 80 mov 0x801155a0,%ebx release(&tickslock); 801053f9: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 80105400: e8 1b ee ff ff call 80104220 <release> return xticks; } 80105405: 83 c4 14 add $0x14,%esp 80105408: 89 d8 mov %ebx,%eax 8010540a: 5b pop %ebx 8010540b: 5d pop %ebp 8010540c: c3 ret 8010540d <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 8010540d: 1e push %ds pushl %es 8010540e: 06 push %es pushl %fs 8010540f: 0f a0 push %fs pushl %gs 80105411: 0f a8 push %gs pushal 80105413: 60 pusha # Set up data segments. movw $(SEG_KDATA<<3), %ax 80105414: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 80105418: 8e d8 mov %eax,%ds movw %ax, %es 8010541a: 8e c0 mov %eax,%es # Call trap(tf), where tf=%esp pushl %esp 8010541c: 54 push %esp call trap 8010541d: e8 de 00 00 00 call 80105500 <trap> addl $4, %esp 80105422: 83 c4 04 add $0x4,%esp 80105425 <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 80105425: 61 popa popl %gs 80105426: 0f a9 pop %gs popl %fs 80105428: 0f a1 pop %fs popl %es 8010542a: 07 pop %es popl %ds 8010542b: 1f pop %ds addl $0x8, %esp # trapno and errcode 8010542c: 83 c4 08 add $0x8,%esp iret 8010542f: cf iret 80105430 <tvinit>: void tvinit(void) { int i; for(i = 0; i < 256; i++) 80105430: 31 c0 xor %eax,%eax 80105432: 8d b6 00 00 00 00 lea 0x0(%esi),%esi SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 80105438: 8b 14 85 08 a0 10 80 mov -0x7fef5ff8(,%eax,4),%edx 8010543f: b9 08 00 00 00 mov $0x8,%ecx 80105444: 66 89 0c c5 a2 4d 11 mov %cx,-0x7feeb25e(,%eax,8) 8010544b: 80 8010544c: c6 04 c5 a4 4d 11 80 movb $0x0,-0x7feeb25c(,%eax,8) 80105453: 00 80105454: c6 04 c5 a5 4d 11 80 movb $0x8e,-0x7feeb25b(,%eax,8) 8010545b: 8e 8010545c: 66 89 14 c5 a0 4d 11 mov %dx,-0x7feeb260(,%eax,8) 80105463: 80 80105464: c1 ea 10 shr $0x10,%edx 80105467: 66 89 14 c5 a6 4d 11 mov %dx,-0x7feeb25a(,%eax,8) 8010546e: 80 for(i = 0; i < 256; i++) 8010546f: 83 c0 01 add $0x1,%eax 80105472: 3d 00 01 00 00 cmp $0x100,%eax 80105477: 75 bf jne 80105438 <tvinit+0x8> { 80105479: 55 push %ebp SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 8010547a: ba 08 00 00 00 mov $0x8,%edx { 8010547f: 89 e5 mov %esp,%ebp 80105481: 83 ec 18 sub $0x18,%esp SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80105484: a1 08 a1 10 80 mov 0x8010a108,%eax initlock(&tickslock, "time"); 80105489: c7 44 24 04 c1 75 10 movl $0x801075c1,0x4(%esp) 80105490: 80 80105491: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80105498: 66 89 15 a2 4f 11 80 mov %dx,0x80114fa2 8010549f: 66 a3 a0 4f 11 80 mov %ax,0x80114fa0 801054a5: c1 e8 10 shr $0x10,%eax 801054a8: c6 05 a4 4f 11 80 00 movb $0x0,0x80114fa4 801054af: c6 05 a5 4f 11 80 ef movb $0xef,0x80114fa5 801054b6: 66 a3 a6 4f 11 80 mov %ax,0x80114fa6 initlock(&tickslock, "time"); 801054bc: e8 7f eb ff ff call 80104040 <initlock> } 801054c1: c9 leave 801054c2: c3 ret 801054c3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801054c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801054d0 <idtinit>: void idtinit(void) { 801054d0: 55 push %ebp pd[0] = size-1; 801054d1: b8 ff 07 00 00 mov $0x7ff,%eax 801054d6: 89 e5 mov %esp,%ebp 801054d8: 83 ec 10 sub $0x10,%esp 801054db: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 801054df: b8 a0 4d 11 80 mov $0x80114da0,%eax 801054e4: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 801054e8: c1 e8 10 shr $0x10,%eax 801054eb: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 801054ef: 8d 45 fa lea -0x6(%ebp),%eax 801054f2: 0f 01 18 lidtl (%eax) lidt(idt, sizeof(idt)); } 801054f5: c9 leave 801054f6: c3 ret 801054f7: 89 f6 mov %esi,%esi 801054f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105500 <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 80105500: 55 push %ebp 80105501: 89 e5 mov %esp,%ebp 80105503: 57 push %edi 80105504: 56 push %esi 80105505: 53 push %ebx 80105506: 83 ec 3c sub $0x3c,%esp 80105509: 8b 5d 08 mov 0x8(%ebp),%ebx if(tf->trapno == T_SYSCALL){ 8010550c: 8b 43 30 mov 0x30(%ebx),%eax 8010550f: 83 f8 40 cmp $0x40,%eax 80105512: 0f 84 e0 01 00 00 je 801056f8 <trap+0x1f8> if(myproc()->killed) exit(); return; } switch(tf->trapno){ 80105518: 83 e8 0e sub $0xe,%eax 8010551b: 83 f8 31 cmp $0x31,%eax 8010551e: 77 08 ja 80105528 <trap+0x28> 80105520: ff 24 85 88 76 10 80 jmp *-0x7fef8978(,%eax,4) 80105527: 90 nop cprintf("Hello\n"); break; //PAGEBREAK: 13 default: if(myproc() == 0 || (tf->cs&3) == 0){ 80105528: e8 63 e1 ff ff call 80103690 <myproc> 8010552d: 85 c0 test %eax,%eax 8010552f: 90 nop 80105530: 0f 84 80 02 00 00 je 801057b6 <trap+0x2b6> 80105536: f6 43 3c 03 testb $0x3,0x3c(%ebx) 8010553a: 0f 84 76 02 00 00 je 801057b6 <trap+0x2b6> static inline uint rcr2(void) { uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 80105540: 0f 20 d1 mov %cr2,%ecx cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpuid(), tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80105543: 8b 53 38 mov 0x38(%ebx),%edx 80105546: 89 4d d8 mov %ecx,-0x28(%ebp) 80105549: 89 55 dc mov %edx,-0x24(%ebp) 8010554c: e8 1f e1 ff ff call 80103670 <cpuid> 80105551: 8b 73 30 mov 0x30(%ebx),%esi 80105554: 89 c7 mov %eax,%edi 80105556: 8b 43 34 mov 0x34(%ebx),%eax 80105559: 89 45 e4 mov %eax,-0x1c(%ebp) "eip 0x%x addr 0x%x--kill proc\n", myproc()->pid, myproc()->name, tf->trapno, 8010555c: e8 2f e1 ff ff call 80103690 <myproc> 80105561: 89 45 e0 mov %eax,-0x20(%ebp) 80105564: e8 27 e1 ff ff call 80103690 <myproc> cprintf("pid %d %s: trap %d err %d on cpu %d " 80105569: 8b 4d d8 mov -0x28(%ebp),%ecx 8010556c: 89 74 24 0c mov %esi,0xc(%esp) myproc()->pid, myproc()->name, tf->trapno, 80105570: 8b 75 e0 mov -0x20(%ebp),%esi cprintf("pid %d %s: trap %d err %d on cpu %d " 80105573: 8b 55 dc mov -0x24(%ebp),%edx 80105576: 89 7c 24 14 mov %edi,0x14(%esp) 8010557a: 8b 7d e4 mov -0x1c(%ebp),%edi 8010557d: 89 4c 24 1c mov %ecx,0x1c(%esp) myproc()->pid, myproc()->name, tf->trapno, 80105581: 83 c6 70 add $0x70,%esi cprintf("pid %d %s: trap %d err %d on cpu %d " 80105584: 89 54 24 18 mov %edx,0x18(%esp) 80105588: 89 7c 24 10 mov %edi,0x10(%esp) myproc()->pid, myproc()->name, tf->trapno, 8010558c: 89 74 24 08 mov %esi,0x8(%esp) cprintf("pid %d %s: trap %d err %d on cpu %d " 80105590: 8b 40 14 mov 0x14(%eax),%eax 80105593: c7 04 24 44 76 10 80 movl $0x80107644,(%esp) 8010559a: 89 44 24 04 mov %eax,0x4(%esp) 8010559e: e8 ad b0 ff ff call 80100650 <cprintf> tf->err, cpuid(), tf->eip, rcr2()); myproc()->killed = 1; 801055a3: e8 e8 e0 ff ff call 80103690 <myproc> 801055a8: c7 40 28 01 00 00 00 movl $0x1,0x28(%eax) 801055af: 90 nop } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 801055b0: e8 db e0 ff ff call 80103690 <myproc> 801055b5: 85 c0 test %eax,%eax 801055b7: 74 0c je 801055c5 <trap+0xc5> 801055b9: e8 d2 e0 ff ff call 80103690 <myproc> 801055be: 8b 50 28 mov 0x28(%eax),%edx 801055c1: 85 d2 test %edx,%edx 801055c3: 75 4b jne 80105610 <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 && 801055c5: e8 c6 e0 ff ff call 80103690 <myproc> 801055ca: 85 c0 test %eax,%eax 801055cc: 74 0d je 801055db <trap+0xdb> 801055ce: 66 90 xchg %ax,%ax 801055d0: e8 bb e0 ff ff call 80103690 <myproc> 801055d5: 83 78 10 04 cmpl $0x4,0x10(%eax) 801055d9: 74 4d je 80105628 <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) 801055db: e8 b0 e0 ff ff call 80103690 <myproc> 801055e0: 85 c0 test %eax,%eax 801055e2: 74 1d je 80105601 <trap+0x101> 801055e4: e8 a7 e0 ff ff call 80103690 <myproc> 801055e9: 8b 40 28 mov 0x28(%eax),%eax 801055ec: 85 c0 test %eax,%eax 801055ee: 74 11 je 80105601 <trap+0x101> 801055f0: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 801055f4: 83 e0 03 and $0x3,%eax 801055f7: 66 83 f8 03 cmp $0x3,%ax 801055fb: 0f 84 28 01 00 00 je 80105729 <trap+0x229> exit(); } 80105601: 83 c4 3c add $0x3c,%esp 80105604: 5b pop %ebx 80105605: 5e pop %esi 80105606: 5f pop %edi 80105607: 5d pop %ebp 80105608: c3 ret 80105609: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80105610: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 80105614: 83 e0 03 and $0x3,%eax 80105617: 66 83 f8 03 cmp $0x3,%ax 8010561b: 75 a8 jne 801055c5 <trap+0xc5> exit(); 8010561d: e8 6e e4 ff ff call 80103a90 <exit> 80105622: eb a1 jmp 801055c5 <trap+0xc5> 80105624: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(myproc() && myproc()->state == RUNNING && 80105628: 83 7b 30 20 cmpl $0x20,0x30(%ebx) 8010562c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105630: 75 a9 jne 801055db <trap+0xdb> yield(); 80105632: e8 79 e5 ff ff call 80103bb0 <yield> 80105637: eb a2 jmp 801055db <trap+0xdb> 80105639: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi uint stackPages = myproc()->sb; 80105640: e8 4b e0 ff ff call 80103690 <myproc> 80105645: 0f 20 d1 mov %cr2,%ecx if (oAddress < USERSTACKTOP - (stackPages * PGSIZE) && oAddress > PGROUNDDOWN(USERSTACKTOP - (stackPages * PGSIZE) - 1)) { 80105648: 8b 40 04 mov 0x4(%eax),%eax 8010564b: be ff ff ff 7f mov $0x7fffffff,%esi 80105650: c1 e0 0c shl $0xc,%eax 80105653: 29 c6 sub %eax,%esi 80105655: 39 ce cmp %ecx,%esi 80105657: 76 15 jbe 8010566e <trap+0x16e> 80105659: ba fe ff ff 7f mov $0x7ffffffe,%edx 8010565e: 29 c2 sub %eax,%edx 80105660: 81 e2 00 f0 ff ff and $0xfffff000,%edx 80105666: 39 ca cmp %ecx,%edx 80105668: 0f 82 02 01 00 00 jb 80105770 <trap+0x270> cprintf("Hello\n"); 8010566e: c7 04 24 de 75 10 80 movl $0x801075de,(%esp) 80105675: e8 d6 af ff ff call 80100650 <cprintf> break; 8010567a: e9 31 ff ff ff jmp 801055b0 <trap+0xb0> 8010567f: 90 nop if(cpuid() == 0){ 80105680: e8 eb df ff ff call 80103670 <cpuid> 80105685: 85 c0 test %eax,%eax 80105687: 0f 84 b3 00 00 00 je 80105740 <trap+0x240> 8010568d: 8d 76 00 lea 0x0(%esi),%esi lapiceoi(); 80105690: e8 db d0 ff ff call 80102770 <lapiceoi> break; 80105695: e9 16 ff ff ff jmp 801055b0 <trap+0xb0> 8010569a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi kbdintr(); 801056a0: e8 1b cf ff ff call 801025c0 <kbdintr> lapiceoi(); 801056a5: e8 c6 d0 ff ff call 80102770 <lapiceoi> break; 801056aa: e9 01 ff ff ff jmp 801055b0 <trap+0xb0> 801056af: 90 nop uartintr(); 801056b0: e8 5b 02 00 00 call 80105910 <uartintr> lapiceoi(); 801056b5: e8 b6 d0 ff ff call 80102770 <lapiceoi> break; 801056ba: e9 f1 fe ff ff jmp 801055b0 <trap+0xb0> 801056bf: 90 nop cprintf("cpu%d: spurious interrupt at %x:%x\n", 801056c0: 8b 7b 38 mov 0x38(%ebx),%edi 801056c3: 0f b7 73 3c movzwl 0x3c(%ebx),%esi 801056c7: e8 a4 df ff ff call 80103670 <cpuid> 801056cc: c7 04 24 ec 75 10 80 movl $0x801075ec,(%esp) 801056d3: 89 7c 24 0c mov %edi,0xc(%esp) 801056d7: 89 74 24 08 mov %esi,0x8(%esp) 801056db: 89 44 24 04 mov %eax,0x4(%esp) 801056df: e8 6c af ff ff call 80100650 <cprintf> lapiceoi(); 801056e4: e8 87 d0 ff ff call 80102770 <lapiceoi> break; 801056e9: e9 c2 fe ff ff jmp 801055b0 <trap+0xb0> 801056ee: 66 90 xchg %ax,%ax ideintr(); 801056f0: e8 7b c9 ff ff call 80102070 <ideintr> 801056f5: eb 96 jmp 8010568d <trap+0x18d> 801056f7: 90 nop 801056f8: 90 nop 801056f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(myproc()->killed) 80105700: e8 8b df ff ff call 80103690 <myproc> 80105705: 8b 70 28 mov 0x28(%eax),%esi 80105708: 85 f6 test %esi,%esi 8010570a: 75 2c jne 80105738 <trap+0x238> myproc()->tf = tf; 8010570c: e8 7f df ff ff call 80103690 <myproc> 80105711: 89 58 1c mov %ebx,0x1c(%eax) syscall(); 80105714: e8 f7 ee ff ff call 80104610 <syscall> if(myproc()->killed) 80105719: e8 72 df ff ff call 80103690 <myproc> 8010571e: 8b 48 28 mov 0x28(%eax),%ecx 80105721: 85 c9 test %ecx,%ecx 80105723: 0f 84 d8 fe ff ff je 80105601 <trap+0x101> } 80105729: 83 c4 3c add $0x3c,%esp 8010572c: 5b pop %ebx 8010572d: 5e pop %esi 8010572e: 5f pop %edi 8010572f: 5d pop %ebp exit(); 80105730: e9 5b e3 ff ff jmp 80103a90 <exit> 80105735: 8d 76 00 lea 0x0(%esi),%esi exit(); 80105738: e8 53 e3 ff ff call 80103a90 <exit> 8010573d: eb cd jmp 8010570c <trap+0x20c> 8010573f: 90 nop acquire(&tickslock); 80105740: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 80105747: e8 e4 e9 ff ff call 80104130 <acquire> wakeup(&ticks); 8010574c: c7 04 24 a0 55 11 80 movl $0x801155a0,(%esp) ticks++; 80105753: 83 05 a0 55 11 80 01 addl $0x1,0x801155a0 wakeup(&ticks); 8010575a: e8 21 e6 ff ff call 80103d80 <wakeup> release(&tickslock); 8010575f: c7 04 24 60 4d 11 80 movl $0x80114d60,(%esp) 80105766: e8 b5 ea ff ff call 80104220 <release> 8010576b: e9 1d ff ff ff jmp 8010568d <trap+0x18d> if (allocuvm(myproc()->pgdir, PGROUNDDOWN(USERSTACKTOP - (stackPages * PGSIZE)), USERSTACKTOP - (stackPages * PGSIZE)) == 0) { 80105770: e8 1b df ff ff call 80103690 <myproc> 80105775: 89 74 24 08 mov %esi,0x8(%esp) 80105779: 81 e6 00 f0 ff ff and $0xfffff000,%esi 8010577f: 89 74 24 04 mov %esi,0x4(%esp) 80105783: 8b 40 08 mov 0x8(%eax),%eax 80105786: 89 04 24 mov %eax,(%esp) 80105789: e8 02 11 00 00 call 80106890 <allocuvm> 8010578e: 85 c0 test %eax,%eax 80105790: 75 16 jne 801057a8 <trap+0x2a8> cprintf("Page allocation failed\n"); 80105792: c7 04 24 c6 75 10 80 movl $0x801075c6,(%esp) 80105799: e8 b2 ae ff ff call 80100650 <cprintf> break; 8010579e: e9 0d fe ff ff jmp 801055b0 <trap+0xb0> 801057a3: 90 nop 801057a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi myproc()->sb += 1; 801057a8: e8 e3 de ff ff call 80103690 <myproc> 801057ad: 83 40 04 01 addl $0x1,0x4(%eax) break; 801057b1: e9 fa fd ff ff jmp 801055b0 <trap+0xb0> 801057b6: 0f 20 d7 mov %cr2,%edi cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 801057b9: 8b 73 38 mov 0x38(%ebx),%esi 801057bc: e8 af de ff ff call 80103670 <cpuid> 801057c1: 89 7c 24 10 mov %edi,0x10(%esp) 801057c5: 89 74 24 0c mov %esi,0xc(%esp) 801057c9: 89 44 24 08 mov %eax,0x8(%esp) 801057cd: 8b 43 30 mov 0x30(%ebx),%eax 801057d0: c7 04 24 10 76 10 80 movl $0x80107610,(%esp) 801057d7: 89 44 24 04 mov %eax,0x4(%esp) 801057db: e8 70 ae ff ff call 80100650 <cprintf> panic("trap"); 801057e0: c7 04 24 e5 75 10 80 movl $0x801075e5,(%esp) 801057e7: e8 74 ab ff ff call 80100360 <panic> 801057ec: 66 90 xchg %ax,%ax 801057ee: 66 90 xchg %ax,%ax 801057f0 <uartgetc>: } static int uartgetc(void) { if(!uart) 801057f0: a1 bc a5 10 80 mov 0x8010a5bc,%eax { 801057f5: 55 push %ebp 801057f6: 89 e5 mov %esp,%ebp if(!uart) 801057f8: 85 c0 test %eax,%eax 801057fa: 74 14 je 80105810 <uartgetc+0x20> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801057fc: ba fd 03 00 00 mov $0x3fd,%edx 80105801: ec in (%dx),%al return -1; if(!(inb(COM1+5) & 0x01)) 80105802: a8 01 test $0x1,%al 80105804: 74 0a je 80105810 <uartgetc+0x20> 80105806: b2 f8 mov $0xf8,%dl 80105808: ec in (%dx),%al return -1; return inb(COM1+0); 80105809: 0f b6 c0 movzbl %al,%eax } 8010580c: 5d pop %ebp 8010580d: c3 ret 8010580e: 66 90 xchg %ax,%ax return -1; 80105810: b8 ff ff ff ff mov $0xffffffff,%eax } 80105815: 5d pop %ebp 80105816: c3 ret 80105817: 89 f6 mov %esi,%esi 80105819: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105820 <uartputc>: if(!uart) 80105820: a1 bc a5 10 80 mov 0x8010a5bc,%eax 80105825: 85 c0 test %eax,%eax 80105827: 74 3f je 80105868 <uartputc+0x48> { 80105829: 55 push %ebp 8010582a: 89 e5 mov %esp,%ebp 8010582c: 56 push %esi 8010582d: be fd 03 00 00 mov $0x3fd,%esi 80105832: 53 push %ebx if(!uart) 80105833: bb 80 00 00 00 mov $0x80,%ebx { 80105838: 83 ec 10 sub $0x10,%esp 8010583b: eb 14 jmp 80105851 <uartputc+0x31> 8010583d: 8d 76 00 lea 0x0(%esi),%esi microdelay(10); 80105840: c7 04 24 0a 00 00 00 movl $0xa,(%esp) 80105847: e8 44 cf ff ff call 80102790 <microdelay> for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 8010584c: 83 eb 01 sub $0x1,%ebx 8010584f: 74 07 je 80105858 <uartputc+0x38> 80105851: 89 f2 mov %esi,%edx 80105853: ec in (%dx),%al 80105854: a8 20 test $0x20,%al 80105856: 74 e8 je 80105840 <uartputc+0x20> outb(COM1+0, c); 80105858: 0f b6 45 08 movzbl 0x8(%ebp),%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010585c: ba f8 03 00 00 mov $0x3f8,%edx 80105861: ee out %al,(%dx) } 80105862: 83 c4 10 add $0x10,%esp 80105865: 5b pop %ebx 80105866: 5e pop %esi 80105867: 5d pop %ebp 80105868: f3 c3 repz ret 8010586a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105870 <uartinit>: { 80105870: 55 push %ebp 80105871: 31 c9 xor %ecx,%ecx 80105873: 89 e5 mov %esp,%ebp 80105875: 89 c8 mov %ecx,%eax 80105877: 57 push %edi 80105878: bf fa 03 00 00 mov $0x3fa,%edi 8010587d: 56 push %esi 8010587e: 89 fa mov %edi,%edx 80105880: 53 push %ebx 80105881: 83 ec 1c sub $0x1c,%esp 80105884: ee out %al,(%dx) 80105885: be fb 03 00 00 mov $0x3fb,%esi 8010588a: b8 80 ff ff ff mov $0xffffff80,%eax 8010588f: 89 f2 mov %esi,%edx 80105891: ee out %al,(%dx) 80105892: b8 0c 00 00 00 mov $0xc,%eax 80105897: b2 f8 mov $0xf8,%dl 80105899: ee out %al,(%dx) 8010589a: bb f9 03 00 00 mov $0x3f9,%ebx 8010589f: 89 c8 mov %ecx,%eax 801058a1: 89 da mov %ebx,%edx 801058a3: ee out %al,(%dx) 801058a4: b8 03 00 00 00 mov $0x3,%eax 801058a9: 89 f2 mov %esi,%edx 801058ab: ee out %al,(%dx) 801058ac: b2 fc mov $0xfc,%dl 801058ae: 89 c8 mov %ecx,%eax 801058b0: ee out %al,(%dx) 801058b1: b8 01 00 00 00 mov $0x1,%eax 801058b6: 89 da mov %ebx,%edx 801058b8: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801058b9: b2 fd mov $0xfd,%dl 801058bb: ec in (%dx),%al if(inb(COM1+5) == 0xFF) 801058bc: 3c ff cmp $0xff,%al 801058be: 74 42 je 80105902 <uartinit+0x92> uart = 1; 801058c0: c7 05 bc a5 10 80 01 movl $0x1,0x8010a5bc 801058c7: 00 00 00 801058ca: 89 fa mov %edi,%edx 801058cc: ec in (%dx),%al 801058cd: b2 f8 mov $0xf8,%dl 801058cf: ec in (%dx),%al ioapicenable(IRQ_COM1, 0); 801058d0: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 801058d7: 00 for(p="xv6...\n"; *p; p++) 801058d8: bb 50 77 10 80 mov $0x80107750,%ebx ioapicenable(IRQ_COM1, 0); 801058dd: c7 04 24 04 00 00 00 movl $0x4,(%esp) 801058e4: e8 b7 c9 ff ff call 801022a0 <ioapicenable> for(p="xv6...\n"; *p; p++) 801058e9: b8 78 00 00 00 mov $0x78,%eax 801058ee: 66 90 xchg %ax,%ax uartputc(*p); 801058f0: 89 04 24 mov %eax,(%esp) for(p="xv6...\n"; *p; p++) 801058f3: 83 c3 01 add $0x1,%ebx uartputc(*p); 801058f6: e8 25 ff ff ff call 80105820 <uartputc> for(p="xv6...\n"; *p; p++) 801058fb: 0f be 03 movsbl (%ebx),%eax 801058fe: 84 c0 test %al,%al 80105900: 75 ee jne 801058f0 <uartinit+0x80> } 80105902: 83 c4 1c add $0x1c,%esp 80105905: 5b pop %ebx 80105906: 5e pop %esi 80105907: 5f pop %edi 80105908: 5d pop %ebp 80105909: c3 ret 8010590a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105910 <uartintr>: void uartintr(void) { 80105910: 55 push %ebp 80105911: 89 e5 mov %esp,%ebp 80105913: 83 ec 18 sub $0x18,%esp consoleintr(uartgetc); 80105916: c7 04 24 f0 57 10 80 movl $0x801057f0,(%esp) 8010591d: e8 8e ae ff ff call 801007b0 <consoleintr> } 80105922: c9 leave 80105923: c3 ret 80105924 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80105924: 6a 00 push $0x0 pushl $0 80105926: 6a 00 push $0x0 jmp alltraps 80105928: e9 e0 fa ff ff jmp 8010540d <alltraps> 8010592d <vector1>: .globl vector1 vector1: pushl $0 8010592d: 6a 00 push $0x0 pushl $1 8010592f: 6a 01 push $0x1 jmp alltraps 80105931: e9 d7 fa ff ff jmp 8010540d <alltraps> 80105936 <vector2>: .globl vector2 vector2: pushl $0 80105936: 6a 00 push $0x0 pushl $2 80105938: 6a 02 push $0x2 jmp alltraps 8010593a: e9 ce fa ff ff jmp 8010540d <alltraps> 8010593f <vector3>: .globl vector3 vector3: pushl $0 8010593f: 6a 00 push $0x0 pushl $3 80105941: 6a 03 push $0x3 jmp alltraps 80105943: e9 c5 fa ff ff jmp 8010540d <alltraps> 80105948 <vector4>: .globl vector4 vector4: pushl $0 80105948: 6a 00 push $0x0 pushl $4 8010594a: 6a 04 push $0x4 jmp alltraps 8010594c: e9 bc fa ff ff jmp 8010540d <alltraps> 80105951 <vector5>: .globl vector5 vector5: pushl $0 80105951: 6a 00 push $0x0 pushl $5 80105953: 6a 05 push $0x5 jmp alltraps 80105955: e9 b3 fa ff ff jmp 8010540d <alltraps> 8010595a <vector6>: .globl vector6 vector6: pushl $0 8010595a: 6a 00 push $0x0 pushl $6 8010595c: 6a 06 push $0x6 jmp alltraps 8010595e: e9 aa fa ff ff jmp 8010540d <alltraps> 80105963 <vector7>: .globl vector7 vector7: pushl $0 80105963: 6a 00 push $0x0 pushl $7 80105965: 6a 07 push $0x7 jmp alltraps 80105967: e9 a1 fa ff ff jmp 8010540d <alltraps> 8010596c <vector8>: .globl vector8 vector8: pushl $8 8010596c: 6a 08 push $0x8 jmp alltraps 8010596e: e9 9a fa ff ff jmp 8010540d <alltraps> 80105973 <vector9>: .globl vector9 vector9: pushl $0 80105973: 6a 00 push $0x0 pushl $9 80105975: 6a 09 push $0x9 jmp alltraps 80105977: e9 91 fa ff ff jmp 8010540d <alltraps> 8010597c <vector10>: .globl vector10 vector10: pushl $10 8010597c: 6a 0a push $0xa jmp alltraps 8010597e: e9 8a fa ff ff jmp 8010540d <alltraps> 80105983 <vector11>: .globl vector11 vector11: pushl $11 80105983: 6a 0b push $0xb jmp alltraps 80105985: e9 83 fa ff ff jmp 8010540d <alltraps> 8010598a <vector12>: .globl vector12 vector12: pushl $12 8010598a: 6a 0c push $0xc jmp alltraps 8010598c: e9 7c fa ff ff jmp 8010540d <alltraps> 80105991 <vector13>: .globl vector13 vector13: pushl $13 80105991: 6a 0d push $0xd jmp alltraps 80105993: e9 75 fa ff ff jmp 8010540d <alltraps> 80105998 <vector14>: .globl vector14 vector14: pushl $14 80105998: 6a 0e push $0xe jmp alltraps 8010599a: e9 6e fa ff ff jmp 8010540d <alltraps> 8010599f <vector15>: .globl vector15 vector15: pushl $0 8010599f: 6a 00 push $0x0 pushl $15 801059a1: 6a 0f push $0xf jmp alltraps 801059a3: e9 65 fa ff ff jmp 8010540d <alltraps> 801059a8 <vector16>: .globl vector16 vector16: pushl $0 801059a8: 6a 00 push $0x0 pushl $16 801059aa: 6a 10 push $0x10 jmp alltraps 801059ac: e9 5c fa ff ff jmp 8010540d <alltraps> 801059b1 <vector17>: .globl vector17 vector17: pushl $17 801059b1: 6a 11 push $0x11 jmp alltraps 801059b3: e9 55 fa ff ff jmp 8010540d <alltraps> 801059b8 <vector18>: .globl vector18 vector18: pushl $0 801059b8: 6a 00 push $0x0 pushl $18 801059ba: 6a 12 push $0x12 jmp alltraps 801059bc: e9 4c fa ff ff jmp 8010540d <alltraps> 801059c1 <vector19>: .globl vector19 vector19: pushl $0 801059c1: 6a 00 push $0x0 pushl $19 801059c3: 6a 13 push $0x13 jmp alltraps 801059c5: e9 43 fa ff ff jmp 8010540d <alltraps> 801059ca <vector20>: .globl vector20 vector20: pushl $0 801059ca: 6a 00 push $0x0 pushl $20 801059cc: 6a 14 push $0x14 jmp alltraps 801059ce: e9 3a fa ff ff jmp 8010540d <alltraps> 801059d3 <vector21>: .globl vector21 vector21: pushl $0 801059d3: 6a 00 push $0x0 pushl $21 801059d5: 6a 15 push $0x15 jmp alltraps 801059d7: e9 31 fa ff ff jmp 8010540d <alltraps> 801059dc <vector22>: .globl vector22 vector22: pushl $0 801059dc: 6a 00 push $0x0 pushl $22 801059de: 6a 16 push $0x16 jmp alltraps 801059e0: e9 28 fa ff ff jmp 8010540d <alltraps> 801059e5 <vector23>: .globl vector23 vector23: pushl $0 801059e5: 6a 00 push $0x0 pushl $23 801059e7: 6a 17 push $0x17 jmp alltraps 801059e9: e9 1f fa ff ff jmp 8010540d <alltraps> 801059ee <vector24>: .globl vector24 vector24: pushl $0 801059ee: 6a 00 push $0x0 pushl $24 801059f0: 6a 18 push $0x18 jmp alltraps 801059f2: e9 16 fa ff ff jmp 8010540d <alltraps> 801059f7 <vector25>: .globl vector25 vector25: pushl $0 801059f7: 6a 00 push $0x0 pushl $25 801059f9: 6a 19 push $0x19 jmp alltraps 801059fb: e9 0d fa ff ff jmp 8010540d <alltraps> 80105a00 <vector26>: .globl vector26 vector26: pushl $0 80105a00: 6a 00 push $0x0 pushl $26 80105a02: 6a 1a push $0x1a jmp alltraps 80105a04: e9 04 fa ff ff jmp 8010540d <alltraps> 80105a09 <vector27>: .globl vector27 vector27: pushl $0 80105a09: 6a 00 push $0x0 pushl $27 80105a0b: 6a 1b push $0x1b jmp alltraps 80105a0d: e9 fb f9 ff ff jmp 8010540d <alltraps> 80105a12 <vector28>: .globl vector28 vector28: pushl $0 80105a12: 6a 00 push $0x0 pushl $28 80105a14: 6a 1c push $0x1c jmp alltraps 80105a16: e9 f2 f9 ff ff jmp 8010540d <alltraps> 80105a1b <vector29>: .globl vector29 vector29: pushl $0 80105a1b: 6a 00 push $0x0 pushl $29 80105a1d: 6a 1d push $0x1d jmp alltraps 80105a1f: e9 e9 f9 ff ff jmp 8010540d <alltraps> 80105a24 <vector30>: .globl vector30 vector30: pushl $0 80105a24: 6a 00 push $0x0 pushl $30 80105a26: 6a 1e push $0x1e jmp alltraps 80105a28: e9 e0 f9 ff ff jmp 8010540d <alltraps> 80105a2d <vector31>: .globl vector31 vector31: pushl $0 80105a2d: 6a 00 push $0x0 pushl $31 80105a2f: 6a 1f push $0x1f jmp alltraps 80105a31: e9 d7 f9 ff ff jmp 8010540d <alltraps> 80105a36 <vector32>: .globl vector32 vector32: pushl $0 80105a36: 6a 00 push $0x0 pushl $32 80105a38: 6a 20 push $0x20 jmp alltraps 80105a3a: e9 ce f9 ff ff jmp 8010540d <alltraps> 80105a3f <vector33>: .globl vector33 vector33: pushl $0 80105a3f: 6a 00 push $0x0 pushl $33 80105a41: 6a 21 push $0x21 jmp alltraps 80105a43: e9 c5 f9 ff ff jmp 8010540d <alltraps> 80105a48 <vector34>: .globl vector34 vector34: pushl $0 80105a48: 6a 00 push $0x0 pushl $34 80105a4a: 6a 22 push $0x22 jmp alltraps 80105a4c: e9 bc f9 ff ff jmp 8010540d <alltraps> 80105a51 <vector35>: .globl vector35 vector35: pushl $0 80105a51: 6a 00 push $0x0 pushl $35 80105a53: 6a 23 push $0x23 jmp alltraps 80105a55: e9 b3 f9 ff ff jmp 8010540d <alltraps> 80105a5a <vector36>: .globl vector36 vector36: pushl $0 80105a5a: 6a 00 push $0x0 pushl $36 80105a5c: 6a 24 push $0x24 jmp alltraps 80105a5e: e9 aa f9 ff ff jmp 8010540d <alltraps> 80105a63 <vector37>: .globl vector37 vector37: pushl $0 80105a63: 6a 00 push $0x0 pushl $37 80105a65: 6a 25 push $0x25 jmp alltraps 80105a67: e9 a1 f9 ff ff jmp 8010540d <alltraps> 80105a6c <vector38>: .globl vector38 vector38: pushl $0 80105a6c: 6a 00 push $0x0 pushl $38 80105a6e: 6a 26 push $0x26 jmp alltraps 80105a70: e9 98 f9 ff ff jmp 8010540d <alltraps> 80105a75 <vector39>: .globl vector39 vector39: pushl $0 80105a75: 6a 00 push $0x0 pushl $39 80105a77: 6a 27 push $0x27 jmp alltraps 80105a79: e9 8f f9 ff ff jmp 8010540d <alltraps> 80105a7e <vector40>: .globl vector40 vector40: pushl $0 80105a7e: 6a 00 push $0x0 pushl $40 80105a80: 6a 28 push $0x28 jmp alltraps 80105a82: e9 86 f9 ff ff jmp 8010540d <alltraps> 80105a87 <vector41>: .globl vector41 vector41: pushl $0 80105a87: 6a 00 push $0x0 pushl $41 80105a89: 6a 29 push $0x29 jmp alltraps 80105a8b: e9 7d f9 ff ff jmp 8010540d <alltraps> 80105a90 <vector42>: .globl vector42 vector42: pushl $0 80105a90: 6a 00 push $0x0 pushl $42 80105a92: 6a 2a push $0x2a jmp alltraps 80105a94: e9 74 f9 ff ff jmp 8010540d <alltraps> 80105a99 <vector43>: .globl vector43 vector43: pushl $0 80105a99: 6a 00 push $0x0 pushl $43 80105a9b: 6a 2b push $0x2b jmp alltraps 80105a9d: e9 6b f9 ff ff jmp 8010540d <alltraps> 80105aa2 <vector44>: .globl vector44 vector44: pushl $0 80105aa2: 6a 00 push $0x0 pushl $44 80105aa4: 6a 2c push $0x2c jmp alltraps 80105aa6: e9 62 f9 ff ff jmp 8010540d <alltraps> 80105aab <vector45>: .globl vector45 vector45: pushl $0 80105aab: 6a 00 push $0x0 pushl $45 80105aad: 6a 2d push $0x2d jmp alltraps 80105aaf: e9 59 f9 ff ff jmp 8010540d <alltraps> 80105ab4 <vector46>: .globl vector46 vector46: pushl $0 80105ab4: 6a 00 push $0x0 pushl $46 80105ab6: 6a 2e push $0x2e jmp alltraps 80105ab8: e9 50 f9 ff ff jmp 8010540d <alltraps> 80105abd <vector47>: .globl vector47 vector47: pushl $0 80105abd: 6a 00 push $0x0 pushl $47 80105abf: 6a 2f push $0x2f jmp alltraps 80105ac1: e9 47 f9 ff ff jmp 8010540d <alltraps> 80105ac6 <vector48>: .globl vector48 vector48: pushl $0 80105ac6: 6a 00 push $0x0 pushl $48 80105ac8: 6a 30 push $0x30 jmp alltraps 80105aca: e9 3e f9 ff ff jmp 8010540d <alltraps> 80105acf <vector49>: .globl vector49 vector49: pushl $0 80105acf: 6a 00 push $0x0 pushl $49 80105ad1: 6a 31 push $0x31 jmp alltraps 80105ad3: e9 35 f9 ff ff jmp 8010540d <alltraps> 80105ad8 <vector50>: .globl vector50 vector50: pushl $0 80105ad8: 6a 00 push $0x0 pushl $50 80105ada: 6a 32 push $0x32 jmp alltraps 80105adc: e9 2c f9 ff ff jmp 8010540d <alltraps> 80105ae1 <vector51>: .globl vector51 vector51: pushl $0 80105ae1: 6a 00 push $0x0 pushl $51 80105ae3: 6a 33 push $0x33 jmp alltraps 80105ae5: e9 23 f9 ff ff jmp 8010540d <alltraps> 80105aea <vector52>: .globl vector52 vector52: pushl $0 80105aea: 6a 00 push $0x0 pushl $52 80105aec: 6a 34 push $0x34 jmp alltraps 80105aee: e9 1a f9 ff ff jmp 8010540d <alltraps> 80105af3 <vector53>: .globl vector53 vector53: pushl $0 80105af3: 6a 00 push $0x0 pushl $53 80105af5: 6a 35 push $0x35 jmp alltraps 80105af7: e9 11 f9 ff ff jmp 8010540d <alltraps> 80105afc <vector54>: .globl vector54 vector54: pushl $0 80105afc: 6a 00 push $0x0 pushl $54 80105afe: 6a 36 push $0x36 jmp alltraps 80105b00: e9 08 f9 ff ff jmp 8010540d <alltraps> 80105b05 <vector55>: .globl vector55 vector55: pushl $0 80105b05: 6a 00 push $0x0 pushl $55 80105b07: 6a 37 push $0x37 jmp alltraps 80105b09: e9 ff f8 ff ff jmp 8010540d <alltraps> 80105b0e <vector56>: .globl vector56 vector56: pushl $0 80105b0e: 6a 00 push $0x0 pushl $56 80105b10: 6a 38 push $0x38 jmp alltraps 80105b12: e9 f6 f8 ff ff jmp 8010540d <alltraps> 80105b17 <vector57>: .globl vector57 vector57: pushl $0 80105b17: 6a 00 push $0x0 pushl $57 80105b19: 6a 39 push $0x39 jmp alltraps 80105b1b: e9 ed f8 ff ff jmp 8010540d <alltraps> 80105b20 <vector58>: .globl vector58 vector58: pushl $0 80105b20: 6a 00 push $0x0 pushl $58 80105b22: 6a 3a push $0x3a jmp alltraps 80105b24: e9 e4 f8 ff ff jmp 8010540d <alltraps> 80105b29 <vector59>: .globl vector59 vector59: pushl $0 80105b29: 6a 00 push $0x0 pushl $59 80105b2b: 6a 3b push $0x3b jmp alltraps 80105b2d: e9 db f8 ff ff jmp 8010540d <alltraps> 80105b32 <vector60>: .globl vector60 vector60: pushl $0 80105b32: 6a 00 push $0x0 pushl $60 80105b34: 6a 3c push $0x3c jmp alltraps 80105b36: e9 d2 f8 ff ff jmp 8010540d <alltraps> 80105b3b <vector61>: .globl vector61 vector61: pushl $0 80105b3b: 6a 00 push $0x0 pushl $61 80105b3d: 6a 3d push $0x3d jmp alltraps 80105b3f: e9 c9 f8 ff ff jmp 8010540d <alltraps> 80105b44 <vector62>: .globl vector62 vector62: pushl $0 80105b44: 6a 00 push $0x0 pushl $62 80105b46: 6a 3e push $0x3e jmp alltraps 80105b48: e9 c0 f8 ff ff jmp 8010540d <alltraps> 80105b4d <vector63>: .globl vector63 vector63: pushl $0 80105b4d: 6a 00 push $0x0 pushl $63 80105b4f: 6a 3f push $0x3f jmp alltraps 80105b51: e9 b7 f8 ff ff jmp 8010540d <alltraps> 80105b56 <vector64>: .globl vector64 vector64: pushl $0 80105b56: 6a 00 push $0x0 pushl $64 80105b58: 6a 40 push $0x40 jmp alltraps 80105b5a: e9 ae f8 ff ff jmp 8010540d <alltraps> 80105b5f <vector65>: .globl vector65 vector65: pushl $0 80105b5f: 6a 00 push $0x0 pushl $65 80105b61: 6a 41 push $0x41 jmp alltraps 80105b63: e9 a5 f8 ff ff jmp 8010540d <alltraps> 80105b68 <vector66>: .globl vector66 vector66: pushl $0 80105b68: 6a 00 push $0x0 pushl $66 80105b6a: 6a 42 push $0x42 jmp alltraps 80105b6c: e9 9c f8 ff ff jmp 8010540d <alltraps> 80105b71 <vector67>: .globl vector67 vector67: pushl $0 80105b71: 6a 00 push $0x0 pushl $67 80105b73: 6a 43 push $0x43 jmp alltraps 80105b75: e9 93 f8 ff ff jmp 8010540d <alltraps> 80105b7a <vector68>: .globl vector68 vector68: pushl $0 80105b7a: 6a 00 push $0x0 pushl $68 80105b7c: 6a 44 push $0x44 jmp alltraps 80105b7e: e9 8a f8 ff ff jmp 8010540d <alltraps> 80105b83 <vector69>: .globl vector69 vector69: pushl $0 80105b83: 6a 00 push $0x0 pushl $69 80105b85: 6a 45 push $0x45 jmp alltraps 80105b87: e9 81 f8 ff ff jmp 8010540d <alltraps> 80105b8c <vector70>: .globl vector70 vector70: pushl $0 80105b8c: 6a 00 push $0x0 pushl $70 80105b8e: 6a 46 push $0x46 jmp alltraps 80105b90: e9 78 f8 ff ff jmp 8010540d <alltraps> 80105b95 <vector71>: .globl vector71 vector71: pushl $0 80105b95: 6a 00 push $0x0 pushl $71 80105b97: 6a 47 push $0x47 jmp alltraps 80105b99: e9 6f f8 ff ff jmp 8010540d <alltraps> 80105b9e <vector72>: .globl vector72 vector72: pushl $0 80105b9e: 6a 00 push $0x0 pushl $72 80105ba0: 6a 48 push $0x48 jmp alltraps 80105ba2: e9 66 f8 ff ff jmp 8010540d <alltraps> 80105ba7 <vector73>: .globl vector73 vector73: pushl $0 80105ba7: 6a 00 push $0x0 pushl $73 80105ba9: 6a 49 push $0x49 jmp alltraps 80105bab: e9 5d f8 ff ff jmp 8010540d <alltraps> 80105bb0 <vector74>: .globl vector74 vector74: pushl $0 80105bb0: 6a 00 push $0x0 pushl $74 80105bb2: 6a 4a push $0x4a jmp alltraps 80105bb4: e9 54 f8 ff ff jmp 8010540d <alltraps> 80105bb9 <vector75>: .globl vector75 vector75: pushl $0 80105bb9: 6a 00 push $0x0 pushl $75 80105bbb: 6a 4b push $0x4b jmp alltraps 80105bbd: e9 4b f8 ff ff jmp 8010540d <alltraps> 80105bc2 <vector76>: .globl vector76 vector76: pushl $0 80105bc2: 6a 00 push $0x0 pushl $76 80105bc4: 6a 4c push $0x4c jmp alltraps 80105bc6: e9 42 f8 ff ff jmp 8010540d <alltraps> 80105bcb <vector77>: .globl vector77 vector77: pushl $0 80105bcb: 6a 00 push $0x0 pushl $77 80105bcd: 6a 4d push $0x4d jmp alltraps 80105bcf: e9 39 f8 ff ff jmp 8010540d <alltraps> 80105bd4 <vector78>: .globl vector78 vector78: pushl $0 80105bd4: 6a 00 push $0x0 pushl $78 80105bd6: 6a 4e push $0x4e jmp alltraps 80105bd8: e9 30 f8 ff ff jmp 8010540d <alltraps> 80105bdd <vector79>: .globl vector79 vector79: pushl $0 80105bdd: 6a 00 push $0x0 pushl $79 80105bdf: 6a 4f push $0x4f jmp alltraps 80105be1: e9 27 f8 ff ff jmp 8010540d <alltraps> 80105be6 <vector80>: .globl vector80 vector80: pushl $0 80105be6: 6a 00 push $0x0 pushl $80 80105be8: 6a 50 push $0x50 jmp alltraps 80105bea: e9 1e f8 ff ff jmp 8010540d <alltraps> 80105bef <vector81>: .globl vector81 vector81: pushl $0 80105bef: 6a 00 push $0x0 pushl $81 80105bf1: 6a 51 push $0x51 jmp alltraps 80105bf3: e9 15 f8 ff ff jmp 8010540d <alltraps> 80105bf8 <vector82>: .globl vector82 vector82: pushl $0 80105bf8: 6a 00 push $0x0 pushl $82 80105bfa: 6a 52 push $0x52 jmp alltraps 80105bfc: e9 0c f8 ff ff jmp 8010540d <alltraps> 80105c01 <vector83>: .globl vector83 vector83: pushl $0 80105c01: 6a 00 push $0x0 pushl $83 80105c03: 6a 53 push $0x53 jmp alltraps 80105c05: e9 03 f8 ff ff jmp 8010540d <alltraps> 80105c0a <vector84>: .globl vector84 vector84: pushl $0 80105c0a: 6a 00 push $0x0 pushl $84 80105c0c: 6a 54 push $0x54 jmp alltraps 80105c0e: e9 fa f7 ff ff jmp 8010540d <alltraps> 80105c13 <vector85>: .globl vector85 vector85: pushl $0 80105c13: 6a 00 push $0x0 pushl $85 80105c15: 6a 55 push $0x55 jmp alltraps 80105c17: e9 f1 f7 ff ff jmp 8010540d <alltraps> 80105c1c <vector86>: .globl vector86 vector86: pushl $0 80105c1c: 6a 00 push $0x0 pushl $86 80105c1e: 6a 56 push $0x56 jmp alltraps 80105c20: e9 e8 f7 ff ff jmp 8010540d <alltraps> 80105c25 <vector87>: .globl vector87 vector87: pushl $0 80105c25: 6a 00 push $0x0 pushl $87 80105c27: 6a 57 push $0x57 jmp alltraps 80105c29: e9 df f7 ff ff jmp 8010540d <alltraps> 80105c2e <vector88>: .globl vector88 vector88: pushl $0 80105c2e: 6a 00 push $0x0 pushl $88 80105c30: 6a 58 push $0x58 jmp alltraps 80105c32: e9 d6 f7 ff ff jmp 8010540d <alltraps> 80105c37 <vector89>: .globl vector89 vector89: pushl $0 80105c37: 6a 00 push $0x0 pushl $89 80105c39: 6a 59 push $0x59 jmp alltraps 80105c3b: e9 cd f7 ff ff jmp 8010540d <alltraps> 80105c40 <vector90>: .globl vector90 vector90: pushl $0 80105c40: 6a 00 push $0x0 pushl $90 80105c42: 6a 5a push $0x5a jmp alltraps 80105c44: e9 c4 f7 ff ff jmp 8010540d <alltraps> 80105c49 <vector91>: .globl vector91 vector91: pushl $0 80105c49: 6a 00 push $0x0 pushl $91 80105c4b: 6a 5b push $0x5b jmp alltraps 80105c4d: e9 bb f7 ff ff jmp 8010540d <alltraps> 80105c52 <vector92>: .globl vector92 vector92: pushl $0 80105c52: 6a 00 push $0x0 pushl $92 80105c54: 6a 5c push $0x5c jmp alltraps 80105c56: e9 b2 f7 ff ff jmp 8010540d <alltraps> 80105c5b <vector93>: .globl vector93 vector93: pushl $0 80105c5b: 6a 00 push $0x0 pushl $93 80105c5d: 6a 5d push $0x5d jmp alltraps 80105c5f: e9 a9 f7 ff ff jmp 8010540d <alltraps> 80105c64 <vector94>: .globl vector94 vector94: pushl $0 80105c64: 6a 00 push $0x0 pushl $94 80105c66: 6a 5e push $0x5e jmp alltraps 80105c68: e9 a0 f7 ff ff jmp 8010540d <alltraps> 80105c6d <vector95>: .globl vector95 vector95: pushl $0 80105c6d: 6a 00 push $0x0 pushl $95 80105c6f: 6a 5f push $0x5f jmp alltraps 80105c71: e9 97 f7 ff ff jmp 8010540d <alltraps> 80105c76 <vector96>: .globl vector96 vector96: pushl $0 80105c76: 6a 00 push $0x0 pushl $96 80105c78: 6a 60 push $0x60 jmp alltraps 80105c7a: e9 8e f7 ff ff jmp 8010540d <alltraps> 80105c7f <vector97>: .globl vector97 vector97: pushl $0 80105c7f: 6a 00 push $0x0 pushl $97 80105c81: 6a 61 push $0x61 jmp alltraps 80105c83: e9 85 f7 ff ff jmp 8010540d <alltraps> 80105c88 <vector98>: .globl vector98 vector98: pushl $0 80105c88: 6a 00 push $0x0 pushl $98 80105c8a: 6a 62 push $0x62 jmp alltraps 80105c8c: e9 7c f7 ff ff jmp 8010540d <alltraps> 80105c91 <vector99>: .globl vector99 vector99: pushl $0 80105c91: 6a 00 push $0x0 pushl $99 80105c93: 6a 63 push $0x63 jmp alltraps 80105c95: e9 73 f7 ff ff jmp 8010540d <alltraps> 80105c9a <vector100>: .globl vector100 vector100: pushl $0 80105c9a: 6a 00 push $0x0 pushl $100 80105c9c: 6a 64 push $0x64 jmp alltraps 80105c9e: e9 6a f7 ff ff jmp 8010540d <alltraps> 80105ca3 <vector101>: .globl vector101 vector101: pushl $0 80105ca3: 6a 00 push $0x0 pushl $101 80105ca5: 6a 65 push $0x65 jmp alltraps 80105ca7: e9 61 f7 ff ff jmp 8010540d <alltraps> 80105cac <vector102>: .globl vector102 vector102: pushl $0 80105cac: 6a 00 push $0x0 pushl $102 80105cae: 6a 66 push $0x66 jmp alltraps 80105cb0: e9 58 f7 ff ff jmp 8010540d <alltraps> 80105cb5 <vector103>: .globl vector103 vector103: pushl $0 80105cb5: 6a 00 push $0x0 pushl $103 80105cb7: 6a 67 push $0x67 jmp alltraps 80105cb9: e9 4f f7 ff ff jmp 8010540d <alltraps> 80105cbe <vector104>: .globl vector104 vector104: pushl $0 80105cbe: 6a 00 push $0x0 pushl $104 80105cc0: 6a 68 push $0x68 jmp alltraps 80105cc2: e9 46 f7 ff ff jmp 8010540d <alltraps> 80105cc7 <vector105>: .globl vector105 vector105: pushl $0 80105cc7: 6a 00 push $0x0 pushl $105 80105cc9: 6a 69 push $0x69 jmp alltraps 80105ccb: e9 3d f7 ff ff jmp 8010540d <alltraps> 80105cd0 <vector106>: .globl vector106 vector106: pushl $0 80105cd0: 6a 00 push $0x0 pushl $106 80105cd2: 6a 6a push $0x6a jmp alltraps 80105cd4: e9 34 f7 ff ff jmp 8010540d <alltraps> 80105cd9 <vector107>: .globl vector107 vector107: pushl $0 80105cd9: 6a 00 push $0x0 pushl $107 80105cdb: 6a 6b push $0x6b jmp alltraps 80105cdd: e9 2b f7 ff ff jmp 8010540d <alltraps> 80105ce2 <vector108>: .globl vector108 vector108: pushl $0 80105ce2: 6a 00 push $0x0 pushl $108 80105ce4: 6a 6c push $0x6c jmp alltraps 80105ce6: e9 22 f7 ff ff jmp 8010540d <alltraps> 80105ceb <vector109>: .globl vector109 vector109: pushl $0 80105ceb: 6a 00 push $0x0 pushl $109 80105ced: 6a 6d push $0x6d jmp alltraps 80105cef: e9 19 f7 ff ff jmp 8010540d <alltraps> 80105cf4 <vector110>: .globl vector110 vector110: pushl $0 80105cf4: 6a 00 push $0x0 pushl $110 80105cf6: 6a 6e push $0x6e jmp alltraps 80105cf8: e9 10 f7 ff ff jmp 8010540d <alltraps> 80105cfd <vector111>: .globl vector111 vector111: pushl $0 80105cfd: 6a 00 push $0x0 pushl $111 80105cff: 6a 6f push $0x6f jmp alltraps 80105d01: e9 07 f7 ff ff jmp 8010540d <alltraps> 80105d06 <vector112>: .globl vector112 vector112: pushl $0 80105d06: 6a 00 push $0x0 pushl $112 80105d08: 6a 70 push $0x70 jmp alltraps 80105d0a: e9 fe f6 ff ff jmp 8010540d <alltraps> 80105d0f <vector113>: .globl vector113 vector113: pushl $0 80105d0f: 6a 00 push $0x0 pushl $113 80105d11: 6a 71 push $0x71 jmp alltraps 80105d13: e9 f5 f6 ff ff jmp 8010540d <alltraps> 80105d18 <vector114>: .globl vector114 vector114: pushl $0 80105d18: 6a 00 push $0x0 pushl $114 80105d1a: 6a 72 push $0x72 jmp alltraps 80105d1c: e9 ec f6 ff ff jmp 8010540d <alltraps> 80105d21 <vector115>: .globl vector115 vector115: pushl $0 80105d21: 6a 00 push $0x0 pushl $115 80105d23: 6a 73 push $0x73 jmp alltraps 80105d25: e9 e3 f6 ff ff jmp 8010540d <alltraps> 80105d2a <vector116>: .globl vector116 vector116: pushl $0 80105d2a: 6a 00 push $0x0 pushl $116 80105d2c: 6a 74 push $0x74 jmp alltraps 80105d2e: e9 da f6 ff ff jmp 8010540d <alltraps> 80105d33 <vector117>: .globl vector117 vector117: pushl $0 80105d33: 6a 00 push $0x0 pushl $117 80105d35: 6a 75 push $0x75 jmp alltraps 80105d37: e9 d1 f6 ff ff jmp 8010540d <alltraps> 80105d3c <vector118>: .globl vector118 vector118: pushl $0 80105d3c: 6a 00 push $0x0 pushl $118 80105d3e: 6a 76 push $0x76 jmp alltraps 80105d40: e9 c8 f6 ff ff jmp 8010540d <alltraps> 80105d45 <vector119>: .globl vector119 vector119: pushl $0 80105d45: 6a 00 push $0x0 pushl $119 80105d47: 6a 77 push $0x77 jmp alltraps 80105d49: e9 bf f6 ff ff jmp 8010540d <alltraps> 80105d4e <vector120>: .globl vector120 vector120: pushl $0 80105d4e: 6a 00 push $0x0 pushl $120 80105d50: 6a 78 push $0x78 jmp alltraps 80105d52: e9 b6 f6 ff ff jmp 8010540d <alltraps> 80105d57 <vector121>: .globl vector121 vector121: pushl $0 80105d57: 6a 00 push $0x0 pushl $121 80105d59: 6a 79 push $0x79 jmp alltraps 80105d5b: e9 ad f6 ff ff jmp 8010540d <alltraps> 80105d60 <vector122>: .globl vector122 vector122: pushl $0 80105d60: 6a 00 push $0x0 pushl $122 80105d62: 6a 7a push $0x7a jmp alltraps 80105d64: e9 a4 f6 ff ff jmp 8010540d <alltraps> 80105d69 <vector123>: .globl vector123 vector123: pushl $0 80105d69: 6a 00 push $0x0 pushl $123 80105d6b: 6a 7b push $0x7b jmp alltraps 80105d6d: e9 9b f6 ff ff jmp 8010540d <alltraps> 80105d72 <vector124>: .globl vector124 vector124: pushl $0 80105d72: 6a 00 push $0x0 pushl $124 80105d74: 6a 7c push $0x7c jmp alltraps 80105d76: e9 92 f6 ff ff jmp 8010540d <alltraps> 80105d7b <vector125>: .globl vector125 vector125: pushl $0 80105d7b: 6a 00 push $0x0 pushl $125 80105d7d: 6a 7d push $0x7d jmp alltraps 80105d7f: e9 89 f6 ff ff jmp 8010540d <alltraps> 80105d84 <vector126>: .globl vector126 vector126: pushl $0 80105d84: 6a 00 push $0x0 pushl $126 80105d86: 6a 7e push $0x7e jmp alltraps 80105d88: e9 80 f6 ff ff jmp 8010540d <alltraps> 80105d8d <vector127>: .globl vector127 vector127: pushl $0 80105d8d: 6a 00 push $0x0 pushl $127 80105d8f: 6a 7f push $0x7f jmp alltraps 80105d91: e9 77 f6 ff ff jmp 8010540d <alltraps> 80105d96 <vector128>: .globl vector128 vector128: pushl $0 80105d96: 6a 00 push $0x0 pushl $128 80105d98: 68 80 00 00 00 push $0x80 jmp alltraps 80105d9d: e9 6b f6 ff ff jmp 8010540d <alltraps> 80105da2 <vector129>: .globl vector129 vector129: pushl $0 80105da2: 6a 00 push $0x0 pushl $129 80105da4: 68 81 00 00 00 push $0x81 jmp alltraps 80105da9: e9 5f f6 ff ff jmp 8010540d <alltraps> 80105dae <vector130>: .globl vector130 vector130: pushl $0 80105dae: 6a 00 push $0x0 pushl $130 80105db0: 68 82 00 00 00 push $0x82 jmp alltraps 80105db5: e9 53 f6 ff ff jmp 8010540d <alltraps> 80105dba <vector131>: .globl vector131 vector131: pushl $0 80105dba: 6a 00 push $0x0 pushl $131 80105dbc: 68 83 00 00 00 push $0x83 jmp alltraps 80105dc1: e9 47 f6 ff ff jmp 8010540d <alltraps> 80105dc6 <vector132>: .globl vector132 vector132: pushl $0 80105dc6: 6a 00 push $0x0 pushl $132 80105dc8: 68 84 00 00 00 push $0x84 jmp alltraps 80105dcd: e9 3b f6 ff ff jmp 8010540d <alltraps> 80105dd2 <vector133>: .globl vector133 vector133: pushl $0 80105dd2: 6a 00 push $0x0 pushl $133 80105dd4: 68 85 00 00 00 push $0x85 jmp alltraps 80105dd9: e9 2f f6 ff ff jmp 8010540d <alltraps> 80105dde <vector134>: .globl vector134 vector134: pushl $0 80105dde: 6a 00 push $0x0 pushl $134 80105de0: 68 86 00 00 00 push $0x86 jmp alltraps 80105de5: e9 23 f6 ff ff jmp 8010540d <alltraps> 80105dea <vector135>: .globl vector135 vector135: pushl $0 80105dea: 6a 00 push $0x0 pushl $135 80105dec: 68 87 00 00 00 push $0x87 jmp alltraps 80105df1: e9 17 f6 ff ff jmp 8010540d <alltraps> 80105df6 <vector136>: .globl vector136 vector136: pushl $0 80105df6: 6a 00 push $0x0 pushl $136 80105df8: 68 88 00 00 00 push $0x88 jmp alltraps 80105dfd: e9 0b f6 ff ff jmp 8010540d <alltraps> 80105e02 <vector137>: .globl vector137 vector137: pushl $0 80105e02: 6a 00 push $0x0 pushl $137 80105e04: 68 89 00 00 00 push $0x89 jmp alltraps 80105e09: e9 ff f5 ff ff jmp 8010540d <alltraps> 80105e0e <vector138>: .globl vector138 vector138: pushl $0 80105e0e: 6a 00 push $0x0 pushl $138 80105e10: 68 8a 00 00 00 push $0x8a jmp alltraps 80105e15: e9 f3 f5 ff ff jmp 8010540d <alltraps> 80105e1a <vector139>: .globl vector139 vector139: pushl $0 80105e1a: 6a 00 push $0x0 pushl $139 80105e1c: 68 8b 00 00 00 push $0x8b jmp alltraps 80105e21: e9 e7 f5 ff ff jmp 8010540d <alltraps> 80105e26 <vector140>: .globl vector140 vector140: pushl $0 80105e26: 6a 00 push $0x0 pushl $140 80105e28: 68 8c 00 00 00 push $0x8c jmp alltraps 80105e2d: e9 db f5 ff ff jmp 8010540d <alltraps> 80105e32 <vector141>: .globl vector141 vector141: pushl $0 80105e32: 6a 00 push $0x0 pushl $141 80105e34: 68 8d 00 00 00 push $0x8d jmp alltraps 80105e39: e9 cf f5 ff ff jmp 8010540d <alltraps> 80105e3e <vector142>: .globl vector142 vector142: pushl $0 80105e3e: 6a 00 push $0x0 pushl $142 80105e40: 68 8e 00 00 00 push $0x8e jmp alltraps 80105e45: e9 c3 f5 ff ff jmp 8010540d <alltraps> 80105e4a <vector143>: .globl vector143 vector143: pushl $0 80105e4a: 6a 00 push $0x0 pushl $143 80105e4c: 68 8f 00 00 00 push $0x8f jmp alltraps 80105e51: e9 b7 f5 ff ff jmp 8010540d <alltraps> 80105e56 <vector144>: .globl vector144 vector144: pushl $0 80105e56: 6a 00 push $0x0 pushl $144 80105e58: 68 90 00 00 00 push $0x90 jmp alltraps 80105e5d: e9 ab f5 ff ff jmp 8010540d <alltraps> 80105e62 <vector145>: .globl vector145 vector145: pushl $0 80105e62: 6a 00 push $0x0 pushl $145 80105e64: 68 91 00 00 00 push $0x91 jmp alltraps 80105e69: e9 9f f5 ff ff jmp 8010540d <alltraps> 80105e6e <vector146>: .globl vector146 vector146: pushl $0 80105e6e: 6a 00 push $0x0 pushl $146 80105e70: 68 92 00 00 00 push $0x92 jmp alltraps 80105e75: e9 93 f5 ff ff jmp 8010540d <alltraps> 80105e7a <vector147>: .globl vector147 vector147: pushl $0 80105e7a: 6a 00 push $0x0 pushl $147 80105e7c: 68 93 00 00 00 push $0x93 jmp alltraps 80105e81: e9 87 f5 ff ff jmp 8010540d <alltraps> 80105e86 <vector148>: .globl vector148 vector148: pushl $0 80105e86: 6a 00 push $0x0 pushl $148 80105e88: 68 94 00 00 00 push $0x94 jmp alltraps 80105e8d: e9 7b f5 ff ff jmp 8010540d <alltraps> 80105e92 <vector149>: .globl vector149 vector149: pushl $0 80105e92: 6a 00 push $0x0 pushl $149 80105e94: 68 95 00 00 00 push $0x95 jmp alltraps 80105e99: e9 6f f5 ff ff jmp 8010540d <alltraps> 80105e9e <vector150>: .globl vector150 vector150: pushl $0 80105e9e: 6a 00 push $0x0 pushl $150 80105ea0: 68 96 00 00 00 push $0x96 jmp alltraps 80105ea5: e9 63 f5 ff ff jmp 8010540d <alltraps> 80105eaa <vector151>: .globl vector151 vector151: pushl $0 80105eaa: 6a 00 push $0x0 pushl $151 80105eac: 68 97 00 00 00 push $0x97 jmp alltraps 80105eb1: e9 57 f5 ff ff jmp 8010540d <alltraps> 80105eb6 <vector152>: .globl vector152 vector152: pushl $0 80105eb6: 6a 00 push $0x0 pushl $152 80105eb8: 68 98 00 00 00 push $0x98 jmp alltraps 80105ebd: e9 4b f5 ff ff jmp 8010540d <alltraps> 80105ec2 <vector153>: .globl vector153 vector153: pushl $0 80105ec2: 6a 00 push $0x0 pushl $153 80105ec4: 68 99 00 00 00 push $0x99 jmp alltraps 80105ec9: e9 3f f5 ff ff jmp 8010540d <alltraps> 80105ece <vector154>: .globl vector154 vector154: pushl $0 80105ece: 6a 00 push $0x0 pushl $154 80105ed0: 68 9a 00 00 00 push $0x9a jmp alltraps 80105ed5: e9 33 f5 ff ff jmp 8010540d <alltraps> 80105eda <vector155>: .globl vector155 vector155: pushl $0 80105eda: 6a 00 push $0x0 pushl $155 80105edc: 68 9b 00 00 00 push $0x9b jmp alltraps 80105ee1: e9 27 f5 ff ff jmp 8010540d <alltraps> 80105ee6 <vector156>: .globl vector156 vector156: pushl $0 80105ee6: 6a 00 push $0x0 pushl $156 80105ee8: 68 9c 00 00 00 push $0x9c jmp alltraps 80105eed: e9 1b f5 ff ff jmp 8010540d <alltraps> 80105ef2 <vector157>: .globl vector157 vector157: pushl $0 80105ef2: 6a 00 push $0x0 pushl $157 80105ef4: 68 9d 00 00 00 push $0x9d jmp alltraps 80105ef9: e9 0f f5 ff ff jmp 8010540d <alltraps> 80105efe <vector158>: .globl vector158 vector158: pushl $0 80105efe: 6a 00 push $0x0 pushl $158 80105f00: 68 9e 00 00 00 push $0x9e jmp alltraps 80105f05: e9 03 f5 ff ff jmp 8010540d <alltraps> 80105f0a <vector159>: .globl vector159 vector159: pushl $0 80105f0a: 6a 00 push $0x0 pushl $159 80105f0c: 68 9f 00 00 00 push $0x9f jmp alltraps 80105f11: e9 f7 f4 ff ff jmp 8010540d <alltraps> 80105f16 <vector160>: .globl vector160 vector160: pushl $0 80105f16: 6a 00 push $0x0 pushl $160 80105f18: 68 a0 00 00 00 push $0xa0 jmp alltraps 80105f1d: e9 eb f4 ff ff jmp 8010540d <alltraps> 80105f22 <vector161>: .globl vector161 vector161: pushl $0 80105f22: 6a 00 push $0x0 pushl $161 80105f24: 68 a1 00 00 00 push $0xa1 jmp alltraps 80105f29: e9 df f4 ff ff jmp 8010540d <alltraps> 80105f2e <vector162>: .globl vector162 vector162: pushl $0 80105f2e: 6a 00 push $0x0 pushl $162 80105f30: 68 a2 00 00 00 push $0xa2 jmp alltraps 80105f35: e9 d3 f4 ff ff jmp 8010540d <alltraps> 80105f3a <vector163>: .globl vector163 vector163: pushl $0 80105f3a: 6a 00 push $0x0 pushl $163 80105f3c: 68 a3 00 00 00 push $0xa3 jmp alltraps 80105f41: e9 c7 f4 ff ff jmp 8010540d <alltraps> 80105f46 <vector164>: .globl vector164 vector164: pushl $0 80105f46: 6a 00 push $0x0 pushl $164 80105f48: 68 a4 00 00 00 push $0xa4 jmp alltraps 80105f4d: e9 bb f4 ff ff jmp 8010540d <alltraps> 80105f52 <vector165>: .globl vector165 vector165: pushl $0 80105f52: 6a 00 push $0x0 pushl $165 80105f54: 68 a5 00 00 00 push $0xa5 jmp alltraps 80105f59: e9 af f4 ff ff jmp 8010540d <alltraps> 80105f5e <vector166>: .globl vector166 vector166: pushl $0 80105f5e: 6a 00 push $0x0 pushl $166 80105f60: 68 a6 00 00 00 push $0xa6 jmp alltraps 80105f65: e9 a3 f4 ff ff jmp 8010540d <alltraps> 80105f6a <vector167>: .globl vector167 vector167: pushl $0 80105f6a: 6a 00 push $0x0 pushl $167 80105f6c: 68 a7 00 00 00 push $0xa7 jmp alltraps 80105f71: e9 97 f4 ff ff jmp 8010540d <alltraps> 80105f76 <vector168>: .globl vector168 vector168: pushl $0 80105f76: 6a 00 push $0x0 pushl $168 80105f78: 68 a8 00 00 00 push $0xa8 jmp alltraps 80105f7d: e9 8b f4 ff ff jmp 8010540d <alltraps> 80105f82 <vector169>: .globl vector169 vector169: pushl $0 80105f82: 6a 00 push $0x0 pushl $169 80105f84: 68 a9 00 00 00 push $0xa9 jmp alltraps 80105f89: e9 7f f4 ff ff jmp 8010540d <alltraps> 80105f8e <vector170>: .globl vector170 vector170: pushl $0 80105f8e: 6a 00 push $0x0 pushl $170 80105f90: 68 aa 00 00 00 push $0xaa jmp alltraps 80105f95: e9 73 f4 ff ff jmp 8010540d <alltraps> 80105f9a <vector171>: .globl vector171 vector171: pushl $0 80105f9a: 6a 00 push $0x0 pushl $171 80105f9c: 68 ab 00 00 00 push $0xab jmp alltraps 80105fa1: e9 67 f4 ff ff jmp 8010540d <alltraps> 80105fa6 <vector172>: .globl vector172 vector172: pushl $0 80105fa6: 6a 00 push $0x0 pushl $172 80105fa8: 68 ac 00 00 00 push $0xac jmp alltraps 80105fad: e9 5b f4 ff ff jmp 8010540d <alltraps> 80105fb2 <vector173>: .globl vector173 vector173: pushl $0 80105fb2: 6a 00 push $0x0 pushl $173 80105fb4: 68 ad 00 00 00 push $0xad jmp alltraps 80105fb9: e9 4f f4 ff ff jmp 8010540d <alltraps> 80105fbe <vector174>: .globl vector174 vector174: pushl $0 80105fbe: 6a 00 push $0x0 pushl $174 80105fc0: 68 ae 00 00 00 push $0xae jmp alltraps 80105fc5: e9 43 f4 ff ff jmp 8010540d <alltraps> 80105fca <vector175>: .globl vector175 vector175: pushl $0 80105fca: 6a 00 push $0x0 pushl $175 80105fcc: 68 af 00 00 00 push $0xaf jmp alltraps 80105fd1: e9 37 f4 ff ff jmp 8010540d <alltraps> 80105fd6 <vector176>: .globl vector176 vector176: pushl $0 80105fd6: 6a 00 push $0x0 pushl $176 80105fd8: 68 b0 00 00 00 push $0xb0 jmp alltraps 80105fdd: e9 2b f4 ff ff jmp 8010540d <alltraps> 80105fe2 <vector177>: .globl vector177 vector177: pushl $0 80105fe2: 6a 00 push $0x0 pushl $177 80105fe4: 68 b1 00 00 00 push $0xb1 jmp alltraps 80105fe9: e9 1f f4 ff ff jmp 8010540d <alltraps> 80105fee <vector178>: .globl vector178 vector178: pushl $0 80105fee: 6a 00 push $0x0 pushl $178 80105ff0: 68 b2 00 00 00 push $0xb2 jmp alltraps 80105ff5: e9 13 f4 ff ff jmp 8010540d <alltraps> 80105ffa <vector179>: .globl vector179 vector179: pushl $0 80105ffa: 6a 00 push $0x0 pushl $179 80105ffc: 68 b3 00 00 00 push $0xb3 jmp alltraps 80106001: e9 07 f4 ff ff jmp 8010540d <alltraps> 80106006 <vector180>: .globl vector180 vector180: pushl $0 80106006: 6a 00 push $0x0 pushl $180 80106008: 68 b4 00 00 00 push $0xb4 jmp alltraps 8010600d: e9 fb f3 ff ff jmp 8010540d <alltraps> 80106012 <vector181>: .globl vector181 vector181: pushl $0 80106012: 6a 00 push $0x0 pushl $181 80106014: 68 b5 00 00 00 push $0xb5 jmp alltraps 80106019: e9 ef f3 ff ff jmp 8010540d <alltraps> 8010601e <vector182>: .globl vector182 vector182: pushl $0 8010601e: 6a 00 push $0x0 pushl $182 80106020: 68 b6 00 00 00 push $0xb6 jmp alltraps 80106025: e9 e3 f3 ff ff jmp 8010540d <alltraps> 8010602a <vector183>: .globl vector183 vector183: pushl $0 8010602a: 6a 00 push $0x0 pushl $183 8010602c: 68 b7 00 00 00 push $0xb7 jmp alltraps 80106031: e9 d7 f3 ff ff jmp 8010540d <alltraps> 80106036 <vector184>: .globl vector184 vector184: pushl $0 80106036: 6a 00 push $0x0 pushl $184 80106038: 68 b8 00 00 00 push $0xb8 jmp alltraps 8010603d: e9 cb f3 ff ff jmp 8010540d <alltraps> 80106042 <vector185>: .globl vector185 vector185: pushl $0 80106042: 6a 00 push $0x0 pushl $185 80106044: 68 b9 00 00 00 push $0xb9 jmp alltraps 80106049: e9 bf f3 ff ff jmp 8010540d <alltraps> 8010604e <vector186>: .globl vector186 vector186: pushl $0 8010604e: 6a 00 push $0x0 pushl $186 80106050: 68 ba 00 00 00 push $0xba jmp alltraps 80106055: e9 b3 f3 ff ff jmp 8010540d <alltraps> 8010605a <vector187>: .globl vector187 vector187: pushl $0 8010605a: 6a 00 push $0x0 pushl $187 8010605c: 68 bb 00 00 00 push $0xbb jmp alltraps 80106061: e9 a7 f3 ff ff jmp 8010540d <alltraps> 80106066 <vector188>: .globl vector188 vector188: pushl $0 80106066: 6a 00 push $0x0 pushl $188 80106068: 68 bc 00 00 00 push $0xbc jmp alltraps 8010606d: e9 9b f3 ff ff jmp 8010540d <alltraps> 80106072 <vector189>: .globl vector189 vector189: pushl $0 80106072: 6a 00 push $0x0 pushl $189 80106074: 68 bd 00 00 00 push $0xbd jmp alltraps 80106079: e9 8f f3 ff ff jmp 8010540d <alltraps> 8010607e <vector190>: .globl vector190 vector190: pushl $0 8010607e: 6a 00 push $0x0 pushl $190 80106080: 68 be 00 00 00 push $0xbe jmp alltraps 80106085: e9 83 f3 ff ff jmp 8010540d <alltraps> 8010608a <vector191>: .globl vector191 vector191: pushl $0 8010608a: 6a 00 push $0x0 pushl $191 8010608c: 68 bf 00 00 00 push $0xbf jmp alltraps 80106091: e9 77 f3 ff ff jmp 8010540d <alltraps> 80106096 <vector192>: .globl vector192 vector192: pushl $0 80106096: 6a 00 push $0x0 pushl $192 80106098: 68 c0 00 00 00 push $0xc0 jmp alltraps 8010609d: e9 6b f3 ff ff jmp 8010540d <alltraps> 801060a2 <vector193>: .globl vector193 vector193: pushl $0 801060a2: 6a 00 push $0x0 pushl $193 801060a4: 68 c1 00 00 00 push $0xc1 jmp alltraps 801060a9: e9 5f f3 ff ff jmp 8010540d <alltraps> 801060ae <vector194>: .globl vector194 vector194: pushl $0 801060ae: 6a 00 push $0x0 pushl $194 801060b0: 68 c2 00 00 00 push $0xc2 jmp alltraps 801060b5: e9 53 f3 ff ff jmp 8010540d <alltraps> 801060ba <vector195>: .globl vector195 vector195: pushl $0 801060ba: 6a 00 push $0x0 pushl $195 801060bc: 68 c3 00 00 00 push $0xc3 jmp alltraps 801060c1: e9 47 f3 ff ff jmp 8010540d <alltraps> 801060c6 <vector196>: .globl vector196 vector196: pushl $0 801060c6: 6a 00 push $0x0 pushl $196 801060c8: 68 c4 00 00 00 push $0xc4 jmp alltraps 801060cd: e9 3b f3 ff ff jmp 8010540d <alltraps> 801060d2 <vector197>: .globl vector197 vector197: pushl $0 801060d2: 6a 00 push $0x0 pushl $197 801060d4: 68 c5 00 00 00 push $0xc5 jmp alltraps 801060d9: e9 2f f3 ff ff jmp 8010540d <alltraps> 801060de <vector198>: .globl vector198 vector198: pushl $0 801060de: 6a 00 push $0x0 pushl $198 801060e0: 68 c6 00 00 00 push $0xc6 jmp alltraps 801060e5: e9 23 f3 ff ff jmp 8010540d <alltraps> 801060ea <vector199>: .globl vector199 vector199: pushl $0 801060ea: 6a 00 push $0x0 pushl $199 801060ec: 68 c7 00 00 00 push $0xc7 jmp alltraps 801060f1: e9 17 f3 ff ff jmp 8010540d <alltraps> 801060f6 <vector200>: .globl vector200 vector200: pushl $0 801060f6: 6a 00 push $0x0 pushl $200 801060f8: 68 c8 00 00 00 push $0xc8 jmp alltraps 801060fd: e9 0b f3 ff ff jmp 8010540d <alltraps> 80106102 <vector201>: .globl vector201 vector201: pushl $0 80106102: 6a 00 push $0x0 pushl $201 80106104: 68 c9 00 00 00 push $0xc9 jmp alltraps 80106109: e9 ff f2 ff ff jmp 8010540d <alltraps> 8010610e <vector202>: .globl vector202 vector202: pushl $0 8010610e: 6a 00 push $0x0 pushl $202 80106110: 68 ca 00 00 00 push $0xca jmp alltraps 80106115: e9 f3 f2 ff ff jmp 8010540d <alltraps> 8010611a <vector203>: .globl vector203 vector203: pushl $0 8010611a: 6a 00 push $0x0 pushl $203 8010611c: 68 cb 00 00 00 push $0xcb jmp alltraps 80106121: e9 e7 f2 ff ff jmp 8010540d <alltraps> 80106126 <vector204>: .globl vector204 vector204: pushl $0 80106126: 6a 00 push $0x0 pushl $204 80106128: 68 cc 00 00 00 push $0xcc jmp alltraps 8010612d: e9 db f2 ff ff jmp 8010540d <alltraps> 80106132 <vector205>: .globl vector205 vector205: pushl $0 80106132: 6a 00 push $0x0 pushl $205 80106134: 68 cd 00 00 00 push $0xcd jmp alltraps 80106139: e9 cf f2 ff ff jmp 8010540d <alltraps> 8010613e <vector206>: .globl vector206 vector206: pushl $0 8010613e: 6a 00 push $0x0 pushl $206 80106140: 68 ce 00 00 00 push $0xce jmp alltraps 80106145: e9 c3 f2 ff ff jmp 8010540d <alltraps> 8010614a <vector207>: .globl vector207 vector207: pushl $0 8010614a: 6a 00 push $0x0 pushl $207 8010614c: 68 cf 00 00 00 push $0xcf jmp alltraps 80106151: e9 b7 f2 ff ff jmp 8010540d <alltraps> 80106156 <vector208>: .globl vector208 vector208: pushl $0 80106156: 6a 00 push $0x0 pushl $208 80106158: 68 d0 00 00 00 push $0xd0 jmp alltraps 8010615d: e9 ab f2 ff ff jmp 8010540d <alltraps> 80106162 <vector209>: .globl vector209 vector209: pushl $0 80106162: 6a 00 push $0x0 pushl $209 80106164: 68 d1 00 00 00 push $0xd1 jmp alltraps 80106169: e9 9f f2 ff ff jmp 8010540d <alltraps> 8010616e <vector210>: .globl vector210 vector210: pushl $0 8010616e: 6a 00 push $0x0 pushl $210 80106170: 68 d2 00 00 00 push $0xd2 jmp alltraps 80106175: e9 93 f2 ff ff jmp 8010540d <alltraps> 8010617a <vector211>: .globl vector211 vector211: pushl $0 8010617a: 6a 00 push $0x0 pushl $211 8010617c: 68 d3 00 00 00 push $0xd3 jmp alltraps 80106181: e9 87 f2 ff ff jmp 8010540d <alltraps> 80106186 <vector212>: .globl vector212 vector212: pushl $0 80106186: 6a 00 push $0x0 pushl $212 80106188: 68 d4 00 00 00 push $0xd4 jmp alltraps 8010618d: e9 7b f2 ff ff jmp 8010540d <alltraps> 80106192 <vector213>: .globl vector213 vector213: pushl $0 80106192: 6a 00 push $0x0 pushl $213 80106194: 68 d5 00 00 00 push $0xd5 jmp alltraps 80106199: e9 6f f2 ff ff jmp 8010540d <alltraps> 8010619e <vector214>: .globl vector214 vector214: pushl $0 8010619e: 6a 00 push $0x0 pushl $214 801061a0: 68 d6 00 00 00 push $0xd6 jmp alltraps 801061a5: e9 63 f2 ff ff jmp 8010540d <alltraps> 801061aa <vector215>: .globl vector215 vector215: pushl $0 801061aa: 6a 00 push $0x0 pushl $215 801061ac: 68 d7 00 00 00 push $0xd7 jmp alltraps 801061b1: e9 57 f2 ff ff jmp 8010540d <alltraps> 801061b6 <vector216>: .globl vector216 vector216: pushl $0 801061b6: 6a 00 push $0x0 pushl $216 801061b8: 68 d8 00 00 00 push $0xd8 jmp alltraps 801061bd: e9 4b f2 ff ff jmp 8010540d <alltraps> 801061c2 <vector217>: .globl vector217 vector217: pushl $0 801061c2: 6a 00 push $0x0 pushl $217 801061c4: 68 d9 00 00 00 push $0xd9 jmp alltraps 801061c9: e9 3f f2 ff ff jmp 8010540d <alltraps> 801061ce <vector218>: .globl vector218 vector218: pushl $0 801061ce: 6a 00 push $0x0 pushl $218 801061d0: 68 da 00 00 00 push $0xda jmp alltraps 801061d5: e9 33 f2 ff ff jmp 8010540d <alltraps> 801061da <vector219>: .globl vector219 vector219: pushl $0 801061da: 6a 00 push $0x0 pushl $219 801061dc: 68 db 00 00 00 push $0xdb jmp alltraps 801061e1: e9 27 f2 ff ff jmp 8010540d <alltraps> 801061e6 <vector220>: .globl vector220 vector220: pushl $0 801061e6: 6a 00 push $0x0 pushl $220 801061e8: 68 dc 00 00 00 push $0xdc jmp alltraps 801061ed: e9 1b f2 ff ff jmp 8010540d <alltraps> 801061f2 <vector221>: .globl vector221 vector221: pushl $0 801061f2: 6a 00 push $0x0 pushl $221 801061f4: 68 dd 00 00 00 push $0xdd jmp alltraps 801061f9: e9 0f f2 ff ff jmp 8010540d <alltraps> 801061fe <vector222>: .globl vector222 vector222: pushl $0 801061fe: 6a 00 push $0x0 pushl $222 80106200: 68 de 00 00 00 push $0xde jmp alltraps 80106205: e9 03 f2 ff ff jmp 8010540d <alltraps> 8010620a <vector223>: .globl vector223 vector223: pushl $0 8010620a: 6a 00 push $0x0 pushl $223 8010620c: 68 df 00 00 00 push $0xdf jmp alltraps 80106211: e9 f7 f1 ff ff jmp 8010540d <alltraps> 80106216 <vector224>: .globl vector224 vector224: pushl $0 80106216: 6a 00 push $0x0 pushl $224 80106218: 68 e0 00 00 00 push $0xe0 jmp alltraps 8010621d: e9 eb f1 ff ff jmp 8010540d <alltraps> 80106222 <vector225>: .globl vector225 vector225: pushl $0 80106222: 6a 00 push $0x0 pushl $225 80106224: 68 e1 00 00 00 push $0xe1 jmp alltraps 80106229: e9 df f1 ff ff jmp 8010540d <alltraps> 8010622e <vector226>: .globl vector226 vector226: pushl $0 8010622e: 6a 00 push $0x0 pushl $226 80106230: 68 e2 00 00 00 push $0xe2 jmp alltraps 80106235: e9 d3 f1 ff ff jmp 8010540d <alltraps> 8010623a <vector227>: .globl vector227 vector227: pushl $0 8010623a: 6a 00 push $0x0 pushl $227 8010623c: 68 e3 00 00 00 push $0xe3 jmp alltraps 80106241: e9 c7 f1 ff ff jmp 8010540d <alltraps> 80106246 <vector228>: .globl vector228 vector228: pushl $0 80106246: 6a 00 push $0x0 pushl $228 80106248: 68 e4 00 00 00 push $0xe4 jmp alltraps 8010624d: e9 bb f1 ff ff jmp 8010540d <alltraps> 80106252 <vector229>: .globl vector229 vector229: pushl $0 80106252: 6a 00 push $0x0 pushl $229 80106254: 68 e5 00 00 00 push $0xe5 jmp alltraps 80106259: e9 af f1 ff ff jmp 8010540d <alltraps> 8010625e <vector230>: .globl vector230 vector230: pushl $0 8010625e: 6a 00 push $0x0 pushl $230 80106260: 68 e6 00 00 00 push $0xe6 jmp alltraps 80106265: e9 a3 f1 ff ff jmp 8010540d <alltraps> 8010626a <vector231>: .globl vector231 vector231: pushl $0 8010626a: 6a 00 push $0x0 pushl $231 8010626c: 68 e7 00 00 00 push $0xe7 jmp alltraps 80106271: e9 97 f1 ff ff jmp 8010540d <alltraps> 80106276 <vector232>: .globl vector232 vector232: pushl $0 80106276: 6a 00 push $0x0 pushl $232 80106278: 68 e8 00 00 00 push $0xe8 jmp alltraps 8010627d: e9 8b f1 ff ff jmp 8010540d <alltraps> 80106282 <vector233>: .globl vector233 vector233: pushl $0 80106282: 6a 00 push $0x0 pushl $233 80106284: 68 e9 00 00 00 push $0xe9 jmp alltraps 80106289: e9 7f f1 ff ff jmp 8010540d <alltraps> 8010628e <vector234>: .globl vector234 vector234: pushl $0 8010628e: 6a 00 push $0x0 pushl $234 80106290: 68 ea 00 00 00 push $0xea jmp alltraps 80106295: e9 73 f1 ff ff jmp 8010540d <alltraps> 8010629a <vector235>: .globl vector235 vector235: pushl $0 8010629a: 6a 00 push $0x0 pushl $235 8010629c: 68 eb 00 00 00 push $0xeb jmp alltraps 801062a1: e9 67 f1 ff ff jmp 8010540d <alltraps> 801062a6 <vector236>: .globl vector236 vector236: pushl $0 801062a6: 6a 00 push $0x0 pushl $236 801062a8: 68 ec 00 00 00 push $0xec jmp alltraps 801062ad: e9 5b f1 ff ff jmp 8010540d <alltraps> 801062b2 <vector237>: .globl vector237 vector237: pushl $0 801062b2: 6a 00 push $0x0 pushl $237 801062b4: 68 ed 00 00 00 push $0xed jmp alltraps 801062b9: e9 4f f1 ff ff jmp 8010540d <alltraps> 801062be <vector238>: .globl vector238 vector238: pushl $0 801062be: 6a 00 push $0x0 pushl $238 801062c0: 68 ee 00 00 00 push $0xee jmp alltraps 801062c5: e9 43 f1 ff ff jmp 8010540d <alltraps> 801062ca <vector239>: .globl vector239 vector239: pushl $0 801062ca: 6a 00 push $0x0 pushl $239 801062cc: 68 ef 00 00 00 push $0xef jmp alltraps 801062d1: e9 37 f1 ff ff jmp 8010540d <alltraps> 801062d6 <vector240>: .globl vector240 vector240: pushl $0 801062d6: 6a 00 push $0x0 pushl $240 801062d8: 68 f0 00 00 00 push $0xf0 jmp alltraps 801062dd: e9 2b f1 ff ff jmp 8010540d <alltraps> 801062e2 <vector241>: .globl vector241 vector241: pushl $0 801062e2: 6a 00 push $0x0 pushl $241 801062e4: 68 f1 00 00 00 push $0xf1 jmp alltraps 801062e9: e9 1f f1 ff ff jmp 8010540d <alltraps> 801062ee <vector242>: .globl vector242 vector242: pushl $0 801062ee: 6a 00 push $0x0 pushl $242 801062f0: 68 f2 00 00 00 push $0xf2 jmp alltraps 801062f5: e9 13 f1 ff ff jmp 8010540d <alltraps> 801062fa <vector243>: .globl vector243 vector243: pushl $0 801062fa: 6a 00 push $0x0 pushl $243 801062fc: 68 f3 00 00 00 push $0xf3 jmp alltraps 80106301: e9 07 f1 ff ff jmp 8010540d <alltraps> 80106306 <vector244>: .globl vector244 vector244: pushl $0 80106306: 6a 00 push $0x0 pushl $244 80106308: 68 f4 00 00 00 push $0xf4 jmp alltraps 8010630d: e9 fb f0 ff ff jmp 8010540d <alltraps> 80106312 <vector245>: .globl vector245 vector245: pushl $0 80106312: 6a 00 push $0x0 pushl $245 80106314: 68 f5 00 00 00 push $0xf5 jmp alltraps 80106319: e9 ef f0 ff ff jmp 8010540d <alltraps> 8010631e <vector246>: .globl vector246 vector246: pushl $0 8010631e: 6a 00 push $0x0 pushl $246 80106320: 68 f6 00 00 00 push $0xf6 jmp alltraps 80106325: e9 e3 f0 ff ff jmp 8010540d <alltraps> 8010632a <vector247>: .globl vector247 vector247: pushl $0 8010632a: 6a 00 push $0x0 pushl $247 8010632c: 68 f7 00 00 00 push $0xf7 jmp alltraps 80106331: e9 d7 f0 ff ff jmp 8010540d <alltraps> 80106336 <vector248>: .globl vector248 vector248: pushl $0 80106336: 6a 00 push $0x0 pushl $248 80106338: 68 f8 00 00 00 push $0xf8 jmp alltraps 8010633d: e9 cb f0 ff ff jmp 8010540d <alltraps> 80106342 <vector249>: .globl vector249 vector249: pushl $0 80106342: 6a 00 push $0x0 pushl $249 80106344: 68 f9 00 00 00 push $0xf9 jmp alltraps 80106349: e9 bf f0 ff ff jmp 8010540d <alltraps> 8010634e <vector250>: .globl vector250 vector250: pushl $0 8010634e: 6a 00 push $0x0 pushl $250 80106350: 68 fa 00 00 00 push $0xfa jmp alltraps 80106355: e9 b3 f0 ff ff jmp 8010540d <alltraps> 8010635a <vector251>: .globl vector251 vector251: pushl $0 8010635a: 6a 00 push $0x0 pushl $251 8010635c: 68 fb 00 00 00 push $0xfb jmp alltraps 80106361: e9 a7 f0 ff ff jmp 8010540d <alltraps> 80106366 <vector252>: .globl vector252 vector252: pushl $0 80106366: 6a 00 push $0x0 pushl $252 80106368: 68 fc 00 00 00 push $0xfc jmp alltraps 8010636d: e9 9b f0 ff ff jmp 8010540d <alltraps> 80106372 <vector253>: .globl vector253 vector253: pushl $0 80106372: 6a 00 push $0x0 pushl $253 80106374: 68 fd 00 00 00 push $0xfd jmp alltraps 80106379: e9 8f f0 ff ff jmp 8010540d <alltraps> 8010637e <vector254>: .globl vector254 vector254: pushl $0 8010637e: 6a 00 push $0x0 pushl $254 80106380: 68 fe 00 00 00 push $0xfe jmp alltraps 80106385: e9 83 f0 ff ff jmp 8010540d <alltraps> 8010638a <vector255>: .globl vector255 vector255: pushl $0 8010638a: 6a 00 push $0x0 pushl $255 8010638c: 68 ff 00 00 00 push $0xff jmp alltraps 80106391: e9 77 f0 ff ff jmp 8010540d <alltraps> 80106396: 66 90 xchg %ax,%ax 80106398: 66 90 xchg %ax,%ax 8010639a: 66 90 xchg %ax,%ax 8010639c: 66 90 xchg %ax,%ax 8010639e: 66 90 xchg %ax,%ax 801063a0 <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) { 801063a0: 55 push %ebp 801063a1: 89 e5 mov %esp,%ebp 801063a3: 57 push %edi 801063a4: 56 push %esi 801063a5: 89 d6 mov %edx,%esi pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 801063a7: c1 ea 16 shr $0x16,%edx { 801063aa: 53 push %ebx pde = &pgdir[PDX(va)]; 801063ab: 8d 3c 90 lea (%eax,%edx,4),%edi { 801063ae: 83 ec 1c sub $0x1c,%esp if(*pde & PTE_P){ 801063b1: 8b 1f mov (%edi),%ebx 801063b3: f6 c3 01 test $0x1,%bl 801063b6: 74 28 je 801063e0 <walkpgdir+0x40> pgtab = (pte_t*)P2V(PTE_ADDR(*pde)); 801063b8: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 801063be: 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)]; 801063c4: c1 ee 0a shr $0xa,%esi } 801063c7: 83 c4 1c add $0x1c,%esp return &pgtab[PTX(va)]; 801063ca: 89 f2 mov %esi,%edx 801063cc: 81 e2 fc 0f 00 00 and $0xffc,%edx 801063d2: 8d 04 13 lea (%ebx,%edx,1),%eax } 801063d5: 5b pop %ebx 801063d6: 5e pop %esi 801063d7: 5f pop %edi 801063d8: 5d pop %ebp 801063d9: c3 ret 801063da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 801063e0: 85 c9 test %ecx,%ecx 801063e2: 74 34 je 80106418 <walkpgdir+0x78> 801063e4: e8 a7 c0 ff ff call 80102490 <kalloc> 801063e9: 85 c0 test %eax,%eax 801063eb: 89 c3 mov %eax,%ebx 801063ed: 74 29 je 80106418 <walkpgdir+0x78> memset(pgtab, 0, PGSIZE); 801063ef: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 801063f6: 00 801063f7: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 801063fe: 00 801063ff: 89 04 24 mov %eax,(%esp) 80106402: e8 69 de ff ff call 80104270 <memset> *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; 80106407: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 8010640d: 83 c8 07 or $0x7,%eax 80106410: 89 07 mov %eax,(%edi) 80106412: eb b0 jmp 801063c4 <walkpgdir+0x24> 80106414: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } 80106418: 83 c4 1c add $0x1c,%esp return 0; 8010641b: 31 c0 xor %eax,%eax } 8010641d: 5b pop %ebx 8010641e: 5e pop %esi 8010641f: 5f pop %edi 80106420: 5d pop %ebp 80106421: c3 ret 80106422: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106429: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106430 <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) 80106430: 55 push %ebp 80106431: 89 e5 mov %esp,%ebp 80106433: 57 push %edi 80106434: 89 c7 mov %eax,%edi 80106436: 56 push %esi 80106437: 89 d6 mov %edx,%esi 80106439: 53 push %ebx uint a, pa; if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); 8010643a: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 80106440: 83 ec 1c sub $0x1c,%esp a = PGROUNDUP(newsz); 80106443: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; a < oldsz; a += PGSIZE){ 80106449: 39 d3 cmp %edx,%ebx deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 8010644b: 89 4d e0 mov %ecx,-0x20(%ebp) for(; a < oldsz; a += PGSIZE){ 8010644e: 72 3b jb 8010648b <deallocuvm.part.0+0x5b> 80106450: eb 5e jmp 801064b0 <deallocuvm.part.0+0x80> 80106452: 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){ 80106458: 8b 10 mov (%eax),%edx 8010645a: f6 c2 01 test $0x1,%dl 8010645d: 74 22 je 80106481 <deallocuvm.part.0+0x51> pa = PTE_ADDR(*pte); if(pa == 0) 8010645f: 81 e2 00 f0 ff ff and $0xfffff000,%edx 80106465: 74 54 je 801064bb <deallocuvm.part.0+0x8b> panic("kfree"); char *v = P2V(pa); 80106467: 81 c2 00 00 00 80 add $0x80000000,%edx kfree(v); 8010646d: 89 14 24 mov %edx,(%esp) 80106470: 89 45 e4 mov %eax,-0x1c(%ebp) 80106473: e8 68 be ff ff call 801022e0 <kfree> *pte = 0; 80106478: 8b 45 e4 mov -0x1c(%ebp),%eax 8010647b: c7 00 00 00 00 00 movl $0x0,(%eax) for(; a < oldsz; a += PGSIZE){ 80106481: 81 c3 00 10 00 00 add $0x1000,%ebx 80106487: 39 f3 cmp %esi,%ebx 80106489: 73 25 jae 801064b0 <deallocuvm.part.0+0x80> pte = walkpgdir(pgdir, (char*)a, 0); 8010648b: 31 c9 xor %ecx,%ecx 8010648d: 89 da mov %ebx,%edx 8010648f: 89 f8 mov %edi,%eax 80106491: e8 0a ff ff ff call 801063a0 <walkpgdir> if(!pte) 80106496: 85 c0 test %eax,%eax 80106498: 75 be jne 80106458 <deallocuvm.part.0+0x28> a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; 8010649a: 81 e3 00 00 c0 ff and $0xffc00000,%ebx 801064a0: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx for(; a < oldsz; a += PGSIZE){ 801064a6: 81 c3 00 10 00 00 add $0x1000,%ebx 801064ac: 39 f3 cmp %esi,%ebx 801064ae: 72 db jb 8010648b <deallocuvm.part.0+0x5b> } } return newsz; } 801064b0: 8b 45 e0 mov -0x20(%ebp),%eax 801064b3: 83 c4 1c add $0x1c,%esp 801064b6: 5b pop %ebx 801064b7: 5e pop %esi 801064b8: 5f pop %edi 801064b9: 5d pop %ebp 801064ba: c3 ret panic("kfree"); 801064bb: c7 04 24 86 70 10 80 movl $0x80107086,(%esp) 801064c2: e8 99 9e ff ff call 80100360 <panic> 801064c7: 89 f6 mov %esi,%esi 801064c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801064d0 <seginit>: { 801064d0: 55 push %ebp 801064d1: 89 e5 mov %esp,%ebp 801064d3: 83 ec 18 sub $0x18,%esp c = &cpus[cpuid()]; 801064d6: e8 95 d1 ff ff call 80103670 <cpuid> c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 801064db: 31 c9 xor %ecx,%ecx 801064dd: ba ff ff ff ff mov $0xffffffff,%edx c = &cpus[cpuid()]; 801064e2: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax 801064e8: 05 80 27 11 80 add $0x80112780,%eax c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 801064ed: 66 89 50 78 mov %dx,0x78(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 801064f1: ba ff ff ff ff mov $0xffffffff,%edx lgdt(c->gdt, sizeof(c->gdt)); 801064f6: 83 c0 70 add $0x70,%eax c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 801064f9: 66 89 48 0a mov %cx,0xa(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 801064fd: 31 c9 xor %ecx,%ecx 801064ff: 66 89 50 10 mov %dx,0x10(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106503: ba ff ff ff ff mov $0xffffffff,%edx c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80106508: 66 89 48 12 mov %cx,0x12(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 8010650c: 31 c9 xor %ecx,%ecx 8010650e: 66 89 50 18 mov %dx,0x18(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80106512: ba ff ff ff ff mov $0xffffffff,%edx c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106517: 66 89 48 1a mov %cx,0x1a(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 8010651b: 31 c9 xor %ecx,%ecx c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 8010651d: c6 40 0d 9a movb $0x9a,0xd(%eax) 80106521: c6 40 0e cf movb $0xcf,0xe(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80106525: c6 40 15 92 movb $0x92,0x15(%eax) 80106529: c6 40 16 cf movb $0xcf,0x16(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 8010652d: c6 40 1d fa movb $0xfa,0x1d(%eax) 80106531: c6 40 1e cf movb $0xcf,0x1e(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80106535: c6 40 25 f2 movb $0xf2,0x25(%eax) 80106539: c6 40 26 cf movb $0xcf,0x26(%eax) 8010653d: 66 89 50 20 mov %dx,0x20(%eax) pd[0] = size-1; 80106541: ba 2f 00 00 00 mov $0x2f,%edx c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 80106546: c6 40 0c 00 movb $0x0,0xc(%eax) 8010654a: c6 40 0f 00 movb $0x0,0xf(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 8010654e: c6 40 14 00 movb $0x0,0x14(%eax) 80106552: c6 40 17 00 movb $0x0,0x17(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106556: c6 40 1c 00 movb $0x0,0x1c(%eax) 8010655a: c6 40 1f 00 movb $0x0,0x1f(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 8010655e: 66 89 48 22 mov %cx,0x22(%eax) 80106562: c6 40 24 00 movb $0x0,0x24(%eax) 80106566: c6 40 27 00 movb $0x0,0x27(%eax) 8010656a: 66 89 55 f2 mov %dx,-0xe(%ebp) pd[1] = (uint)p; 8010656e: 66 89 45 f4 mov %ax,-0xc(%ebp) pd[2] = (uint)p >> 16; 80106572: c1 e8 10 shr $0x10,%eax 80106575: 66 89 45 f6 mov %ax,-0xa(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 80106579: 8d 45 f2 lea -0xe(%ebp),%eax 8010657c: 0f 01 10 lgdtl (%eax) } 8010657f: c9 leave 80106580: c3 ret 80106581: eb 0d jmp 80106590 <mappages> 80106583: 90 nop 80106584: 90 nop 80106585: 90 nop 80106586: 90 nop 80106587: 90 nop 80106588: 90 nop 80106589: 90 nop 8010658a: 90 nop 8010658b: 90 nop 8010658c: 90 nop 8010658d: 90 nop 8010658e: 90 nop 8010658f: 90 nop 80106590 <mappages>: { 80106590: 55 push %ebp 80106591: 89 e5 mov %esp,%ebp 80106593: 57 push %edi 80106594: 56 push %esi 80106595: 53 push %ebx 80106596: 83 ec 1c sub $0x1c,%esp 80106599: 8b 45 0c mov 0xc(%ebp),%eax last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 8010659c: 8b 55 10 mov 0x10(%ebp),%edx { 8010659f: 8b 7d 14 mov 0x14(%ebp),%edi *pte = pa | perm | PTE_P; 801065a2: 83 4d 18 01 orl $0x1,0x18(%ebp) a = (char*)PGROUNDDOWN((uint)va); 801065a6: 89 c3 mov %eax,%ebx 801065a8: 81 e3 00 f0 ff ff and $0xfffff000,%ebx last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 801065ae: 8d 44 10 ff lea -0x1(%eax,%edx,1),%eax 801065b2: 29 df sub %ebx,%edi 801065b4: 89 45 e4 mov %eax,-0x1c(%ebp) 801065b7: 81 65 e4 00 f0 ff ff andl $0xfffff000,-0x1c(%ebp) 801065be: eb 15 jmp 801065d5 <mappages+0x45> if(*pte & PTE_P) 801065c0: f6 00 01 testb $0x1,(%eax) 801065c3: 75 3d jne 80106602 <mappages+0x72> *pte = pa | perm | PTE_P; 801065c5: 0b 75 18 or 0x18(%ebp),%esi if(a == last) 801065c8: 3b 5d e4 cmp -0x1c(%ebp),%ebx *pte = pa | perm | PTE_P; 801065cb: 89 30 mov %esi,(%eax) if(a == last) 801065cd: 74 29 je 801065f8 <mappages+0x68> a += PGSIZE; 801065cf: 81 c3 00 10 00 00 add $0x1000,%ebx if((pte = walkpgdir(pgdir, a, 1)) == 0) 801065d5: 8b 45 08 mov 0x8(%ebp),%eax 801065d8: b9 01 00 00 00 mov $0x1,%ecx 801065dd: 89 da mov %ebx,%edx 801065df: 8d 34 3b lea (%ebx,%edi,1),%esi 801065e2: e8 b9 fd ff ff call 801063a0 <walkpgdir> 801065e7: 85 c0 test %eax,%eax 801065e9: 75 d5 jne 801065c0 <mappages+0x30> } 801065eb: 83 c4 1c add $0x1c,%esp return -1; 801065ee: b8 ff ff ff ff mov $0xffffffff,%eax } 801065f3: 5b pop %ebx 801065f4: 5e pop %esi 801065f5: 5f pop %edi 801065f6: 5d pop %ebp 801065f7: c3 ret 801065f8: 83 c4 1c add $0x1c,%esp return 0; 801065fb: 31 c0 xor %eax,%eax } 801065fd: 5b pop %ebx 801065fe: 5e pop %esi 801065ff: 5f pop %edi 80106600: 5d pop %ebp 80106601: c3 ret panic("remap"); 80106602: c7 04 24 58 77 10 80 movl $0x80107758,(%esp) 80106609: e8 52 9d ff ff call 80100360 <panic> 8010660e: 66 90 xchg %ax,%ax 80106610 <switchkvm>: lcr3(V2P(kpgdir)); // switch to the kernel page table 80106610: a1 a4 55 11 80 mov 0x801155a4,%eax { 80106615: 55 push %ebp 80106616: 89 e5 mov %esp,%ebp lcr3(V2P(kpgdir)); // switch to the kernel page table 80106618: 05 00 00 00 80 add $0x80000000,%eax } static inline void lcr3(uint val) { asm volatile("movl %0,%%cr3" : : "r" (val)); 8010661d: 0f 22 d8 mov %eax,%cr3 } 80106620: 5d pop %ebp 80106621: c3 ret 80106622: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106629: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106630 <switchuvm>: { 80106630: 55 push %ebp 80106631: 89 e5 mov %esp,%ebp 80106633: 57 push %edi 80106634: 56 push %esi 80106635: 53 push %ebx 80106636: 83 ec 1c sub $0x1c,%esp 80106639: 8b 75 08 mov 0x8(%ebp),%esi if(p == 0) 8010663c: 85 f6 test %esi,%esi 8010663e: 0f 84 cd 00 00 00 je 80106711 <switchuvm+0xe1> if(p->kstack == 0) 80106644: 8b 46 0c mov 0xc(%esi),%eax 80106647: 85 c0 test %eax,%eax 80106649: 0f 84 da 00 00 00 je 80106729 <switchuvm+0xf9> if(p->pgdir == 0) 8010664f: 8b 7e 08 mov 0x8(%esi),%edi 80106652: 85 ff test %edi,%edi 80106654: 0f 84 c3 00 00 00 je 8010671d <switchuvm+0xed> pushcli(); 8010665a: e8 91 da ff ff call 801040f0 <pushcli> mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, 8010665f: e8 8c cf ff ff call 801035f0 <mycpu> 80106664: 89 c3 mov %eax,%ebx 80106666: e8 85 cf ff ff call 801035f0 <mycpu> 8010666b: 89 c7 mov %eax,%edi 8010666d: e8 7e cf ff ff call 801035f0 <mycpu> 80106672: 83 c7 08 add $0x8,%edi 80106675: 89 45 e4 mov %eax,-0x1c(%ebp) 80106678: e8 73 cf ff ff call 801035f0 <mycpu> 8010667d: 8b 4d e4 mov -0x1c(%ebp),%ecx 80106680: ba 67 00 00 00 mov $0x67,%edx 80106685: 66 89 93 98 00 00 00 mov %dx,0x98(%ebx) 8010668c: 66 89 bb 9a 00 00 00 mov %di,0x9a(%ebx) 80106693: c6 83 9d 00 00 00 99 movb $0x99,0x9d(%ebx) 8010669a: 83 c1 08 add $0x8,%ecx 8010669d: c1 e9 10 shr $0x10,%ecx 801066a0: 83 c0 08 add $0x8,%eax 801066a3: c1 e8 18 shr $0x18,%eax 801066a6: 88 8b 9c 00 00 00 mov %cl,0x9c(%ebx) 801066ac: c6 83 9e 00 00 00 40 movb $0x40,0x9e(%ebx) 801066b3: 88 83 9f 00 00 00 mov %al,0x9f(%ebx) mycpu()->ts.iomb = (ushort) 0xFFFF; 801066b9: bb ff ff ff ff mov $0xffffffff,%ebx mycpu()->gdt[SEG_TSS].s = 0; 801066be: e8 2d cf ff ff call 801035f0 <mycpu> 801066c3: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax) mycpu()->ts.ss0 = SEG_KDATA << 3; 801066ca: e8 21 cf ff ff call 801035f0 <mycpu> 801066cf: b9 10 00 00 00 mov $0x10,%ecx 801066d4: 66 89 48 10 mov %cx,0x10(%eax) mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE; 801066d8: e8 13 cf ff ff call 801035f0 <mycpu> 801066dd: 8b 56 0c mov 0xc(%esi),%edx 801066e0: 8d 8a 00 10 00 00 lea 0x1000(%edx),%ecx 801066e6: 89 48 0c mov %ecx,0xc(%eax) mycpu()->ts.iomb = (ushort) 0xFFFF; 801066e9: e8 02 cf ff ff call 801035f0 <mycpu> 801066ee: 66 89 58 6e mov %bx,0x6e(%eax) asm volatile("ltr %0" : : "r" (sel)); 801066f2: b8 28 00 00 00 mov $0x28,%eax 801066f7: 0f 00 d8 ltr %ax lcr3(V2P(p->pgdir)); // switch to process's address space 801066fa: 8b 46 08 mov 0x8(%esi),%eax 801066fd: 05 00 00 00 80 add $0x80000000,%eax asm volatile("movl %0,%%cr3" : : "r" (val)); 80106702: 0f 22 d8 mov %eax,%cr3 } 80106705: 83 c4 1c add $0x1c,%esp 80106708: 5b pop %ebx 80106709: 5e pop %esi 8010670a: 5f pop %edi 8010670b: 5d pop %ebp popcli(); 8010670c: e9 9f da ff ff jmp 801041b0 <popcli> panic("switchuvm: no process"); 80106711: c7 04 24 5e 77 10 80 movl $0x8010775e,(%esp) 80106718: e8 43 9c ff ff call 80100360 <panic> panic("switchuvm: no pgdir"); 8010671d: c7 04 24 89 77 10 80 movl $0x80107789,(%esp) 80106724: e8 37 9c ff ff call 80100360 <panic> panic("switchuvm: no kstack"); 80106729: c7 04 24 74 77 10 80 movl $0x80107774,(%esp) 80106730: e8 2b 9c ff ff call 80100360 <panic> 80106735: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106739: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106740 <inituvm>: { 80106740: 55 push %ebp 80106741: 89 e5 mov %esp,%ebp 80106743: 57 push %edi 80106744: 56 push %esi 80106745: 53 push %ebx 80106746: 83 ec 2c sub $0x2c,%esp 80106749: 8b 75 10 mov 0x10(%ebp),%esi 8010674c: 8b 55 08 mov 0x8(%ebp),%edx 8010674f: 8b 7d 0c mov 0xc(%ebp),%edi if(sz >= PGSIZE) 80106752: 81 fe ff 0f 00 00 cmp $0xfff,%esi 80106758: 77 64 ja 801067be <inituvm+0x7e> 8010675a: 89 55 e4 mov %edx,-0x1c(%ebp) mem = kalloc(); 8010675d: e8 2e bd ff ff call 80102490 <kalloc> memset(mem, 0, PGSIZE); 80106762: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106769: 00 8010676a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 80106771: 00 80106772: 89 04 24 mov %eax,(%esp) mem = kalloc(); 80106775: 89 c3 mov %eax,%ebx memset(mem, 0, PGSIZE); 80106777: e8 f4 da ff ff call 80104270 <memset> mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U); 8010677c: 8b 55 e4 mov -0x1c(%ebp),%edx 8010677f: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 80106785: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp) 8010678c: 00 8010678d: 89 44 24 0c mov %eax,0xc(%esp) 80106791: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106798: 00 80106799: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 801067a0: 00 801067a1: 89 14 24 mov %edx,(%esp) 801067a4: e8 e7 fd ff ff call 80106590 <mappages> memmove(mem, init, sz); 801067a9: 89 75 10 mov %esi,0x10(%ebp) 801067ac: 89 7d 0c mov %edi,0xc(%ebp) 801067af: 89 5d 08 mov %ebx,0x8(%ebp) } 801067b2: 83 c4 2c add $0x2c,%esp 801067b5: 5b pop %ebx 801067b6: 5e pop %esi 801067b7: 5f pop %edi 801067b8: 5d pop %ebp memmove(mem, init, sz); 801067b9: e9 52 db ff ff jmp 80104310 <memmove> panic("inituvm: more than a page"); 801067be: c7 04 24 9d 77 10 80 movl $0x8010779d,(%esp) 801067c5: e8 96 9b ff ff call 80100360 <panic> 801067ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801067d0 <loaduvm>: { 801067d0: 55 push %ebp 801067d1: 89 e5 mov %esp,%ebp 801067d3: 57 push %edi 801067d4: 56 push %esi 801067d5: 53 push %ebx 801067d6: 83 ec 1c sub $0x1c,%esp if((uint) addr % PGSIZE != 0) 801067d9: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp) 801067e0: 0f 85 98 00 00 00 jne 8010687e <loaduvm+0xae> for(i = 0; i < sz; i += PGSIZE){ 801067e6: 8b 75 18 mov 0x18(%ebp),%esi 801067e9: 31 db xor %ebx,%ebx 801067eb: 85 f6 test %esi,%esi 801067ed: 75 1a jne 80106809 <loaduvm+0x39> 801067ef: eb 77 jmp 80106868 <loaduvm+0x98> 801067f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801067f8: 81 c3 00 10 00 00 add $0x1000,%ebx 801067fe: 81 ee 00 10 00 00 sub $0x1000,%esi 80106804: 39 5d 18 cmp %ebx,0x18(%ebp) 80106807: 76 5f jbe 80106868 <loaduvm+0x98> 80106809: 8b 55 0c mov 0xc(%ebp),%edx if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 8010680c: 31 c9 xor %ecx,%ecx 8010680e: 8b 45 08 mov 0x8(%ebp),%eax 80106811: 01 da add %ebx,%edx 80106813: e8 88 fb ff ff call 801063a0 <walkpgdir> 80106818: 85 c0 test %eax,%eax 8010681a: 74 56 je 80106872 <loaduvm+0xa2> pa = PTE_ADDR(*pte); 8010681c: 8b 00 mov (%eax),%eax n = PGSIZE; 8010681e: bf 00 10 00 00 mov $0x1000,%edi 80106823: 8b 4d 14 mov 0x14(%ebp),%ecx pa = PTE_ADDR(*pte); 80106826: 25 00 f0 ff ff and $0xfffff000,%eax n = PGSIZE; 8010682b: 81 fe 00 10 00 00 cmp $0x1000,%esi 80106831: 0f 42 fe cmovb %esi,%edi if(readi(ip, P2V(pa), offset+i, n) != n) 80106834: 05 00 00 00 80 add $0x80000000,%eax 80106839: 89 44 24 04 mov %eax,0x4(%esp) 8010683d: 8b 45 10 mov 0x10(%ebp),%eax 80106840: 01 d9 add %ebx,%ecx 80106842: 89 7c 24 0c mov %edi,0xc(%esp) 80106846: 89 4c 24 08 mov %ecx,0x8(%esp) 8010684a: 89 04 24 mov %eax,(%esp) 8010684d: e8 fe b0 ff ff call 80101950 <readi> 80106852: 39 f8 cmp %edi,%eax 80106854: 74 a2 je 801067f8 <loaduvm+0x28> } 80106856: 83 c4 1c add $0x1c,%esp return -1; 80106859: b8 ff ff ff ff mov $0xffffffff,%eax } 8010685e: 5b pop %ebx 8010685f: 5e pop %esi 80106860: 5f pop %edi 80106861: 5d pop %ebp 80106862: c3 ret 80106863: 90 nop 80106864: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106868: 83 c4 1c add $0x1c,%esp return 0; 8010686b: 31 c0 xor %eax,%eax } 8010686d: 5b pop %ebx 8010686e: 5e pop %esi 8010686f: 5f pop %edi 80106870: 5d pop %ebp 80106871: c3 ret panic("loaduvm: address should exist"); 80106872: c7 04 24 b7 77 10 80 movl $0x801077b7,(%esp) 80106879: e8 e2 9a ff ff call 80100360 <panic> panic("loaduvm: addr must be page aligned"); 8010687e: c7 04 24 58 78 10 80 movl $0x80107858,(%esp) 80106885: e8 d6 9a ff ff call 80100360 <panic> 8010688a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106890 <allocuvm>: { 80106890: 55 push %ebp 80106891: 89 e5 mov %esp,%ebp 80106893: 57 push %edi 80106894: 56 push %esi 80106895: 53 push %ebx 80106896: 83 ec 2c sub $0x2c,%esp 80106899: 8b 7d 10 mov 0x10(%ebp),%edi if(newsz >= KERNBASE) 8010689c: 85 ff test %edi,%edi 8010689e: 0f 88 8f 00 00 00 js 80106933 <allocuvm+0xa3> if(newsz < oldsz) 801068a4: 3b 7d 0c cmp 0xc(%ebp),%edi return oldsz; 801068a7: 8b 45 0c mov 0xc(%ebp),%eax if(newsz < oldsz) 801068aa: 0f 82 85 00 00 00 jb 80106935 <allocuvm+0xa5> a = PGROUNDUP(oldsz); 801068b0: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 801068b6: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; a < newsz; a += PGSIZE){ 801068bc: 39 df cmp %ebx,%edi 801068be: 77 57 ja 80106917 <allocuvm+0x87> 801068c0: eb 7e jmp 80106940 <allocuvm+0xb0> 801068c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi memset(mem, 0, PGSIZE); 801068c8: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 801068cf: 00 801068d0: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 801068d7: 00 801068d8: 89 04 24 mov %eax,(%esp) 801068db: e8 90 d9 ff ff call 80104270 <memset> if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ 801068e0: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 801068e6: 89 44 24 0c mov %eax,0xc(%esp) 801068ea: 8b 45 08 mov 0x8(%ebp),%eax 801068ed: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp) 801068f4: 00 801068f5: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 801068fc: 00 801068fd: 89 5c 24 04 mov %ebx,0x4(%esp) 80106901: 89 04 24 mov %eax,(%esp) 80106904: e8 87 fc ff ff call 80106590 <mappages> 80106909: 85 c0 test %eax,%eax 8010690b: 78 43 js 80106950 <allocuvm+0xc0> for(; a < newsz; a += PGSIZE){ 8010690d: 81 c3 00 10 00 00 add $0x1000,%ebx 80106913: 39 df cmp %ebx,%edi 80106915: 76 29 jbe 80106940 <allocuvm+0xb0> mem = kalloc(); 80106917: e8 74 bb ff ff call 80102490 <kalloc> if(mem == 0){ 8010691c: 85 c0 test %eax,%eax mem = kalloc(); 8010691e: 89 c6 mov %eax,%esi if(mem == 0){ 80106920: 75 a6 jne 801068c8 <allocuvm+0x38> cprintf("allocuvm out of memory\n"); 80106922: c7 04 24 d5 77 10 80 movl $0x801077d5,(%esp) 80106929: e8 22 9d ff ff call 80100650 <cprintf> if(newsz >= oldsz) 8010692e: 3b 7d 0c cmp 0xc(%ebp),%edi 80106931: 77 47 ja 8010697a <allocuvm+0xea> return 0; 80106933: 31 c0 xor %eax,%eax } 80106935: 83 c4 2c add $0x2c,%esp 80106938: 5b pop %ebx 80106939: 5e pop %esi 8010693a: 5f pop %edi 8010693b: 5d pop %ebp 8010693c: c3 ret 8010693d: 8d 76 00 lea 0x0(%esi),%esi 80106940: 83 c4 2c add $0x2c,%esp 80106943: 89 f8 mov %edi,%eax 80106945: 5b pop %ebx 80106946: 5e pop %esi 80106947: 5f pop %edi 80106948: 5d pop %ebp 80106949: c3 ret 8010694a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cprintf("allocuvm out of memory (2)\n"); 80106950: c7 04 24 ed 77 10 80 movl $0x801077ed,(%esp) 80106957: e8 f4 9c ff ff call 80100650 <cprintf> if(newsz >= oldsz) 8010695c: 3b 7d 0c cmp 0xc(%ebp),%edi 8010695f: 76 0d jbe 8010696e <allocuvm+0xde> 80106961: 8b 4d 0c mov 0xc(%ebp),%ecx 80106964: 89 fa mov %edi,%edx 80106966: 8b 45 08 mov 0x8(%ebp),%eax 80106969: e8 c2 fa ff ff call 80106430 <deallocuvm.part.0> kfree(mem); 8010696e: 89 34 24 mov %esi,(%esp) 80106971: e8 6a b9 ff ff call 801022e0 <kfree> return 0; 80106976: 31 c0 xor %eax,%eax 80106978: eb bb jmp 80106935 <allocuvm+0xa5> 8010697a: 8b 4d 0c mov 0xc(%ebp),%ecx 8010697d: 89 fa mov %edi,%edx 8010697f: 8b 45 08 mov 0x8(%ebp),%eax 80106982: e8 a9 fa ff ff call 80106430 <deallocuvm.part.0> return 0; 80106987: 31 c0 xor %eax,%eax 80106989: eb aa jmp 80106935 <allocuvm+0xa5> 8010698b: 90 nop 8010698c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106990 <deallocuvm>: { 80106990: 55 push %ebp 80106991: 89 e5 mov %esp,%ebp 80106993: 8b 55 0c mov 0xc(%ebp),%edx 80106996: 8b 4d 10 mov 0x10(%ebp),%ecx 80106999: 8b 45 08 mov 0x8(%ebp),%eax if(newsz >= oldsz) 8010699c: 39 d1 cmp %edx,%ecx 8010699e: 73 08 jae 801069a8 <deallocuvm+0x18> } 801069a0: 5d pop %ebp 801069a1: e9 8a fa ff ff jmp 80106430 <deallocuvm.part.0> 801069a6: 66 90 xchg %ax,%ax 801069a8: 89 d0 mov %edx,%eax 801069aa: 5d pop %ebp 801069ab: c3 ret 801069ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801069b0 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 801069b0: 55 push %ebp 801069b1: 89 e5 mov %esp,%ebp 801069b3: 56 push %esi 801069b4: 53 push %ebx 801069b5: 83 ec 10 sub $0x10,%esp 801069b8: 8b 75 08 mov 0x8(%ebp),%esi uint i; if(pgdir == 0) 801069bb: 85 f6 test %esi,%esi 801069bd: 74 59 je 80106a18 <freevm+0x68> 801069bf: 31 c9 xor %ecx,%ecx 801069c1: ba 00 00 00 80 mov $0x80000000,%edx 801069c6: 89 f0 mov %esi,%eax panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 801069c8: 31 db xor %ebx,%ebx 801069ca: e8 61 fa ff ff call 80106430 <deallocuvm.part.0> 801069cf: eb 12 jmp 801069e3 <freevm+0x33> 801069d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801069d8: 83 c3 01 add $0x1,%ebx 801069db: 81 fb 00 04 00 00 cmp $0x400,%ebx 801069e1: 74 27 je 80106a0a <freevm+0x5a> if(pgdir[i] & PTE_P){ 801069e3: 8b 14 9e mov (%esi,%ebx,4),%edx 801069e6: f6 c2 01 test $0x1,%dl 801069e9: 74 ed je 801069d8 <freevm+0x28> char * v = P2V(PTE_ADDR(pgdir[i])); 801069eb: 81 e2 00 f0 ff ff and $0xfffff000,%edx for(i = 0; i < NPDENTRIES; i++){ 801069f1: 83 c3 01 add $0x1,%ebx char * v = P2V(PTE_ADDR(pgdir[i])); 801069f4: 81 c2 00 00 00 80 add $0x80000000,%edx kfree(v); 801069fa: 89 14 24 mov %edx,(%esp) 801069fd: e8 de b8 ff ff call 801022e0 <kfree> for(i = 0; i < NPDENTRIES; i++){ 80106a02: 81 fb 00 04 00 00 cmp $0x400,%ebx 80106a08: 75 d9 jne 801069e3 <freevm+0x33> } } kfree((char*)pgdir); 80106a0a: 89 75 08 mov %esi,0x8(%ebp) } 80106a0d: 83 c4 10 add $0x10,%esp 80106a10: 5b pop %ebx 80106a11: 5e pop %esi 80106a12: 5d pop %ebp kfree((char*)pgdir); 80106a13: e9 c8 b8 ff ff jmp 801022e0 <kfree> panic("freevm: no pgdir"); 80106a18: c7 04 24 09 78 10 80 movl $0x80107809,(%esp) 80106a1f: e8 3c 99 ff ff call 80100360 <panic> 80106a24: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106a2a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106a30 <setupkvm>: { 80106a30: 55 push %ebp 80106a31: 89 e5 mov %esp,%ebp 80106a33: 56 push %esi 80106a34: 53 push %ebx 80106a35: 83 ec 20 sub $0x20,%esp if((pgdir = (pde_t*)kalloc()) == 0) 80106a38: e8 53 ba ff ff call 80102490 <kalloc> 80106a3d: 85 c0 test %eax,%eax 80106a3f: 89 c6 mov %eax,%esi 80106a41: 74 75 je 80106ab8 <setupkvm+0x88> memset(pgdir, 0, PGSIZE); 80106a43: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106a4a: 00 for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80106a4b: bb 20 a4 10 80 mov $0x8010a420,%ebx memset(pgdir, 0, PGSIZE); 80106a50: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 80106a57: 00 80106a58: 89 04 24 mov %eax,(%esp) 80106a5b: e8 10 d8 ff ff call 80104270 <memset> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80106a60: 8b 53 0c mov 0xc(%ebx),%edx 80106a63: 8b 43 04 mov 0x4(%ebx),%eax 80106a66: 89 34 24 mov %esi,(%esp) 80106a69: 89 54 24 10 mov %edx,0x10(%esp) 80106a6d: 8b 53 08 mov 0x8(%ebx),%edx 80106a70: 89 44 24 0c mov %eax,0xc(%esp) 80106a74: 29 c2 sub %eax,%edx 80106a76: 8b 03 mov (%ebx),%eax 80106a78: 89 54 24 08 mov %edx,0x8(%esp) 80106a7c: 89 44 24 04 mov %eax,0x4(%esp) 80106a80: e8 0b fb ff ff call 80106590 <mappages> 80106a85: 85 c0 test %eax,%eax 80106a87: 78 17 js 80106aa0 <setupkvm+0x70> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80106a89: 83 c3 10 add $0x10,%ebx 80106a8c: 81 fb 60 a4 10 80 cmp $0x8010a460,%ebx 80106a92: 72 cc jb 80106a60 <setupkvm+0x30> 80106a94: 89 f0 mov %esi,%eax } 80106a96: 83 c4 20 add $0x20,%esp 80106a99: 5b pop %ebx 80106a9a: 5e pop %esi 80106a9b: 5d pop %ebp 80106a9c: c3 ret 80106a9d: 8d 76 00 lea 0x0(%esi),%esi freevm(pgdir); 80106aa0: 89 34 24 mov %esi,(%esp) 80106aa3: e8 08 ff ff ff call 801069b0 <freevm> } 80106aa8: 83 c4 20 add $0x20,%esp return 0; 80106aab: 31 c0 xor %eax,%eax } 80106aad: 5b pop %ebx 80106aae: 5e pop %esi 80106aaf: 5d pop %ebp 80106ab0: c3 ret 80106ab1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 80106ab8: 31 c0 xor %eax,%eax 80106aba: eb da jmp 80106a96 <setupkvm+0x66> 80106abc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106ac0 <kvmalloc>: { 80106ac0: 55 push %ebp 80106ac1: 89 e5 mov %esp,%ebp 80106ac3: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 80106ac6: e8 65 ff ff ff call 80106a30 <setupkvm> 80106acb: a3 a4 55 11 80 mov %eax,0x801155a4 lcr3(V2P(kpgdir)); // switch to the kernel page table 80106ad0: 05 00 00 00 80 add $0x80000000,%eax 80106ad5: 0f 22 d8 mov %eax,%cr3 } 80106ad8: c9 leave 80106ad9: c3 ret 80106ada: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106ae0 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80106ae0: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80106ae1: 31 c9 xor %ecx,%ecx { 80106ae3: 89 e5 mov %esp,%ebp 80106ae5: 83 ec 18 sub $0x18,%esp pte = walkpgdir(pgdir, uva, 0); 80106ae8: 8b 55 0c mov 0xc(%ebp),%edx 80106aeb: 8b 45 08 mov 0x8(%ebp),%eax 80106aee: e8 ad f8 ff ff call 801063a0 <walkpgdir> if(pte == 0) 80106af3: 85 c0 test %eax,%eax 80106af5: 74 05 je 80106afc <clearpteu+0x1c> panic("clearpteu"); *pte &= ~PTE_U; 80106af7: 83 20 fb andl $0xfffffffb,(%eax) } 80106afa: c9 leave 80106afb: c3 ret panic("clearpteu"); 80106afc: c7 04 24 1a 78 10 80 movl $0x8010781a,(%esp) 80106b03: e8 58 98 ff ff call 80100360 <panic> 80106b08: 90 nop 80106b09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106b10 <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz, uint sb) { 80106b10: 55 push %ebp 80106b11: 89 e5 mov %esp,%ebp 80106b13: 57 push %edi 80106b14: 56 push %esi 80106b15: 53 push %ebx 80106b16: 83 ec 2c sub $0x2c,%esp pde_t *d; pte_t *pte; uint pa, i, j, flags; char *mem; if((d = setupkvm()) == 0) 80106b19: e8 12 ff ff ff call 80106a30 <setupkvm> 80106b1e: 85 c0 test %eax,%eax 80106b20: 89 45 e0 mov %eax,-0x20(%ebp) 80106b23: 0f 84 6b 01 00 00 je 80106c94 <copyuvm+0x184> return 0; for(i = 0; i < sz; i += PGSIZE){ 80106b29: 8b 55 0c mov 0xc(%ebp),%edx 80106b2c: 85 d2 test %edx,%edx 80106b2e: 0f 84 ac 00 00 00 je 80106be0 <copyuvm+0xd0> 80106b34: 31 db xor %ebx,%ebx 80106b36: eb 51 jmp 80106b89 <copyuvm+0x79> 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); 80106b38: 81 c7 00 00 00 80 add $0x80000000,%edi 80106b3e: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106b45: 00 80106b46: 89 7c 24 04 mov %edi,0x4(%esp) 80106b4a: 89 04 24 mov %eax,(%esp) 80106b4d: e8 be d7 ff ff call 80104310 <memmove> if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) 80106b52: 8b 45 e4 mov -0x1c(%ebp),%eax 80106b55: 8d 96 00 00 00 80 lea -0x80000000(%esi),%edx 80106b5b: 89 54 24 0c mov %edx,0xc(%esp) 80106b5f: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106b66: 00 80106b67: 89 5c 24 04 mov %ebx,0x4(%esp) 80106b6b: 89 44 24 10 mov %eax,0x10(%esp) 80106b6f: 8b 45 e0 mov -0x20(%ebp),%eax 80106b72: 89 04 24 mov %eax,(%esp) 80106b75: e8 16 fa ff ff call 80106590 <mappages> 80106b7a: 85 c0 test %eax,%eax 80106b7c: 78 4d js 80106bcb <copyuvm+0xbb> for(i = 0; i < sz; i += PGSIZE){ 80106b7e: 81 c3 00 10 00 00 add $0x1000,%ebx 80106b84: 39 5d 0c cmp %ebx,0xc(%ebp) 80106b87: 76 57 jbe 80106be0 <copyuvm+0xd0> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 80106b89: 8b 45 08 mov 0x8(%ebp),%eax 80106b8c: 31 c9 xor %ecx,%ecx 80106b8e: 89 da mov %ebx,%edx 80106b90: e8 0b f8 ff ff call 801063a0 <walkpgdir> 80106b95: 85 c0 test %eax,%eax 80106b97: 0f 84 0a 01 00 00 je 80106ca7 <copyuvm+0x197> if(!(*pte & PTE_P)) 80106b9d: 8b 30 mov (%eax),%esi 80106b9f: f7 c6 01 00 00 00 test $0x1,%esi 80106ba5: 0f 84 f0 00 00 00 je 80106c9b <copyuvm+0x18b> pa = PTE_ADDR(*pte); 80106bab: 89 f7 mov %esi,%edi flags = PTE_FLAGS(*pte); 80106bad: 81 e6 ff 0f 00 00 and $0xfff,%esi 80106bb3: 89 75 e4 mov %esi,-0x1c(%ebp) pa = PTE_ADDR(*pte); 80106bb6: 81 e7 00 f0 ff ff and $0xfffff000,%edi if((mem = kalloc()) == 0) 80106bbc: e8 cf b8 ff ff call 80102490 <kalloc> 80106bc1: 85 c0 test %eax,%eax 80106bc3: 89 c6 mov %eax,%esi 80106bc5: 0f 85 6d ff ff ff jne 80106b38 <copyuvm+0x28> } return d; bad: freevm(d); 80106bcb: 8b 45 e0 mov -0x20(%ebp),%eax 80106bce: 89 04 24 mov %eax,(%esp) 80106bd1: e8 da fd ff ff call 801069b0 <freevm> return 0; 80106bd6: 31 c0 xor %eax,%eax } 80106bd8: 83 c4 2c add $0x2c,%esp 80106bdb: 5b pop %ebx 80106bdc: 5e pop %esi 80106bdd: 5f pop %edi 80106bde: 5d pop %ebp 80106bdf: c3 ret for (j = USERSTACKTOP - PGSIZE + 1; sb > 0; sb--, j -= PGSIZE){ 80106be0: 8b 45 10 mov 0x10(%ebp),%eax 80106be3: 85 c0 test %eax,%eax 80106be5: 0f 84 9e 00 00 00 je 80106c89 <copyuvm+0x179> 80106beb: bb 00 f0 ff 7f mov $0x7ffff000,%ebx 80106bf0: eb 58 jmp 80106c4a <copyuvm+0x13a> 80106bf2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi memmove(mem, (char*)P2V(pa), PGSIZE); 80106bf8: 81 c7 00 00 00 80 add $0x80000000,%edi 80106bfe: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106c05: 00 80106c06: 89 7c 24 04 mov %edi,0x4(%esp) 80106c0a: 89 04 24 mov %eax,(%esp) 80106c0d: e8 fe d6 ff ff call 80104310 <memmove> if(mappages(d, (void*)j, PGSIZE, V2P(mem), flags) < 0) 80106c12: 8b 45 e4 mov -0x1c(%ebp),%eax 80106c15: 8d 96 00 00 00 80 lea -0x80000000(%esi),%edx 80106c1b: 89 54 24 0c mov %edx,0xc(%esp) 80106c1f: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp) 80106c26: 00 80106c27: 89 5c 24 04 mov %ebx,0x4(%esp) 80106c2b: 89 44 24 10 mov %eax,0x10(%esp) 80106c2f: 8b 45 e0 mov -0x20(%ebp),%eax 80106c32: 89 04 24 mov %eax,(%esp) 80106c35: e8 56 f9 ff ff call 80106590 <mappages> 80106c3a: 85 c0 test %eax,%eax 80106c3c: 78 8d js 80106bcb <copyuvm+0xbb> for (j = USERSTACKTOP - PGSIZE + 1; sb > 0; sb--, j -= PGSIZE){ 80106c3e: 81 eb 00 10 00 00 sub $0x1000,%ebx 80106c44: 83 6d 10 01 subl $0x1,0x10(%ebp) 80106c48: 74 3f je 80106c89 <copyuvm+0x179> if((pte = walkpgdir(pgdir, (void *) j, 0)) == 0) 80106c4a: 8b 45 08 mov 0x8(%ebp),%eax 80106c4d: 31 c9 xor %ecx,%ecx 80106c4f: 89 da mov %ebx,%edx 80106c51: e8 4a f7 ff ff call 801063a0 <walkpgdir> 80106c56: 85 c0 test %eax,%eax 80106c58: 74 4d je 80106ca7 <copyuvm+0x197> if(!(*pte & PTE_P)) 80106c5a: 8b 30 mov (%eax),%esi 80106c5c: f7 c6 01 00 00 00 test $0x1,%esi 80106c62: 74 37 je 80106c9b <copyuvm+0x18b> pa = PTE_ADDR(*pte); 80106c64: 89 f7 mov %esi,%edi flags = PTE_FLAGS(*pte); 80106c66: 81 e6 ff 0f 00 00 and $0xfff,%esi 80106c6c: 89 75 e4 mov %esi,-0x1c(%ebp) pa = PTE_ADDR(*pte); 80106c6f: 81 e7 00 f0 ff ff and $0xfffff000,%edi if((mem = kalloc()) == 0) 80106c75: e8 16 b8 ff ff call 80102490 <kalloc> 80106c7a: 85 c0 test %eax,%eax 80106c7c: 89 c6 mov %eax,%esi 80106c7e: 0f 85 74 ff ff ff jne 80106bf8 <copyuvm+0xe8> 80106c84: e9 42 ff ff ff jmp 80106bcb <copyuvm+0xbb> 80106c89: 8b 45 e0 mov -0x20(%ebp),%eax } 80106c8c: 83 c4 2c add $0x2c,%esp 80106c8f: 5b pop %ebx 80106c90: 5e pop %esi 80106c91: 5f pop %edi 80106c92: 5d pop %ebp 80106c93: c3 ret return 0; 80106c94: 31 c0 xor %eax,%eax 80106c96: e9 3d ff ff ff jmp 80106bd8 <copyuvm+0xc8> panic("copyuvm: page not present"); 80106c9b: c7 04 24 3e 78 10 80 movl $0x8010783e,(%esp) 80106ca2: e8 b9 96 ff ff call 80100360 <panic> panic("copyuvm: pte should exist"); 80106ca7: c7 04 24 24 78 10 80 movl $0x80107824,(%esp) 80106cae: e8 ad 96 ff ff call 80100360 <panic> 80106cb3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106cb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106cc0 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80106cc0: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80106cc1: 31 c9 xor %ecx,%ecx { 80106cc3: 89 e5 mov %esp,%ebp 80106cc5: 83 ec 08 sub $0x8,%esp pte = walkpgdir(pgdir, uva, 0); 80106cc8: 8b 55 0c mov 0xc(%ebp),%edx 80106ccb: 8b 45 08 mov 0x8(%ebp),%eax 80106cce: e8 cd f6 ff ff call 801063a0 <walkpgdir> if((*pte & PTE_P) == 0) 80106cd3: 8b 00 mov (%eax),%eax 80106cd5: 89 c2 mov %eax,%edx 80106cd7: 83 e2 05 and $0x5,%edx return 0; if((*pte & PTE_U) == 0) 80106cda: 83 fa 05 cmp $0x5,%edx 80106cdd: 75 11 jne 80106cf0 <uva2ka+0x30> return 0; return (char*)P2V(PTE_ADDR(*pte)); 80106cdf: 25 00 f0 ff ff and $0xfffff000,%eax 80106ce4: 05 00 00 00 80 add $0x80000000,%eax } 80106ce9: c9 leave 80106cea: c3 ret 80106ceb: 90 nop 80106cec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return 0; 80106cf0: 31 c0 xor %eax,%eax } 80106cf2: c9 leave 80106cf3: c3 ret 80106cf4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106cfa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106d00 <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) { 80106d00: 55 push %ebp 80106d01: 89 e5 mov %esp,%ebp 80106d03: 57 push %edi 80106d04: 56 push %esi 80106d05: 53 push %ebx 80106d06: 83 ec 1c sub $0x1c,%esp 80106d09: 8b 5d 14 mov 0x14(%ebp),%ebx 80106d0c: 8b 4d 0c mov 0xc(%ebp),%ecx 80106d0f: 8b 7d 10 mov 0x10(%ebp),%edi char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 80106d12: 85 db test %ebx,%ebx 80106d14: 75 3a jne 80106d50 <copyout+0x50> 80106d16: eb 68 jmp 80106d80 <copyout+0x80> va0 = (uint)PGROUNDDOWN(va); pa0 = uva2ka(pgdir, (char*)va0); if(pa0 == 0) return -1; n = PGSIZE - (va - va0); 80106d18: 8b 4d e4 mov -0x1c(%ebp),%ecx 80106d1b: 89 f2 mov %esi,%edx if(n > len) n = len; memmove(pa0 + (va - va0), buf, n); 80106d1d: 89 7c 24 04 mov %edi,0x4(%esp) n = PGSIZE - (va - va0); 80106d21: 29 ca sub %ecx,%edx 80106d23: 81 c2 00 10 00 00 add $0x1000,%edx 80106d29: 39 da cmp %ebx,%edx 80106d2b: 0f 47 d3 cmova %ebx,%edx memmove(pa0 + (va - va0), buf, n); 80106d2e: 29 f1 sub %esi,%ecx 80106d30: 01 c8 add %ecx,%eax 80106d32: 89 54 24 08 mov %edx,0x8(%esp) 80106d36: 89 04 24 mov %eax,(%esp) 80106d39: 89 55 e4 mov %edx,-0x1c(%ebp) 80106d3c: e8 cf d5 ff ff call 80104310 <memmove> len -= n; buf += n; 80106d41: 8b 55 e4 mov -0x1c(%ebp),%edx va = va0 + PGSIZE; 80106d44: 8d 8e 00 10 00 00 lea 0x1000(%esi),%ecx buf += n; 80106d4a: 01 d7 add %edx,%edi while(len > 0){ 80106d4c: 29 d3 sub %edx,%ebx 80106d4e: 74 30 je 80106d80 <copyout+0x80> pa0 = uva2ka(pgdir, (char*)va0); 80106d50: 8b 45 08 mov 0x8(%ebp),%eax va0 = (uint)PGROUNDDOWN(va); 80106d53: 89 ce mov %ecx,%esi 80106d55: 81 e6 00 f0 ff ff and $0xfffff000,%esi pa0 = uva2ka(pgdir, (char*)va0); 80106d5b: 89 74 24 04 mov %esi,0x4(%esp) va0 = (uint)PGROUNDDOWN(va); 80106d5f: 89 4d e4 mov %ecx,-0x1c(%ebp) pa0 = uva2ka(pgdir, (char*)va0); 80106d62: 89 04 24 mov %eax,(%esp) 80106d65: e8 56 ff ff ff call 80106cc0 <uva2ka> if(pa0 == 0) 80106d6a: 85 c0 test %eax,%eax 80106d6c: 75 aa jne 80106d18 <copyout+0x18> } return 0; } 80106d6e: 83 c4 1c add $0x1c,%esp return -1; 80106d71: b8 ff ff ff ff mov $0xffffffff,%eax } 80106d76: 5b pop %ebx 80106d77: 5e pop %esi 80106d78: 5f pop %edi 80106d79: 5d pop %ebp 80106d7a: c3 ret 80106d7b: 90 nop 80106d7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106d80: 83 c4 1c add $0x1c,%esp return 0; 80106d83: 31 c0 xor %eax,%eax } 80106d85: 5b pop %ebx 80106d86: 5e pop %esi 80106d87: 5f pop %edi 80106d88: 5d pop %ebp 80106d89: c3 ret 80106d8a: 66 90 xchg %ax,%ax 80106d8c: 66 90 xchg %ax,%ax 80106d8e: 66 90 xchg %ax,%ax 80106d90 <shminit>: char *frame; int refcnt; } shm_pages[64]; } shm_table; void shminit() { 80106d90: 55 push %ebp 80106d91: 89 e5 mov %esp,%ebp 80106d93: 83 ec 18 sub $0x18,%esp int i; initlock(&(shm_table.lock), "SHM lock"); 80106d96: c7 44 24 04 7c 78 10 movl $0x8010787c,0x4(%esp) 80106d9d: 80 80106d9e: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp) 80106da5: e8 96 d2 ff ff call 80104040 <initlock> acquire(&(shm_table.lock)); 80106daa: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp) 80106db1: e8 7a d3 ff ff call 80104130 <acquire> 80106db6: b8 f4 55 11 80 mov $0x801155f4,%eax 80106dbb: 90 nop 80106dbc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for (i = 0; i< 64; i++) { shm_table.shm_pages[i].id =0; 80106dc0: c7 00 00 00 00 00 movl $0x0,(%eax) 80106dc6: 83 c0 0c add $0xc,%eax shm_table.shm_pages[i].frame =0; 80106dc9: c7 40 f8 00 00 00 00 movl $0x0,-0x8(%eax) shm_table.shm_pages[i].refcnt =0; 80106dd0: c7 40 fc 00 00 00 00 movl $0x0,-0x4(%eax) for (i = 0; i< 64; i++) { 80106dd7: 3d f4 58 11 80 cmp $0x801158f4,%eax 80106ddc: 75 e2 jne 80106dc0 <shminit+0x30> } release(&(shm_table.lock)); 80106dde: c7 04 24 c0 55 11 80 movl $0x801155c0,(%esp) 80106de5: e8 36 d4 ff ff call 80104220 <release> } 80106dea: c9 leave 80106deb: c3 ret 80106dec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106df0 <shm_open>: int shm_open(int id, char **pointer) { 80106df0: 55 push %ebp return 0; //added to remove compiler warning -- you should decide what to return } 80106df1: 31 c0 xor %eax,%eax int shm_open(int id, char **pointer) { 80106df3: 89 e5 mov %esp,%ebp } 80106df5: 5d pop %ebp 80106df6: c3 ret 80106df7: 89 f6 mov %esi,%esi 80106df9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106e00 <shm_close>: int shm_close(int id) { 80106e00: 55 push %ebp return 0; //added to remove compiler warning -- you should decide what to return } 80106e01: 31 c0 xor %eax,%eax int shm_close(int id) { 80106e03: 89 e5 mov %esp,%ebp } 80106e05: 5d pop %ebp 80106e06: c3 ret
38.028762
132
0.529192
6bcce79f0538c9409e849d5def2b602eab29f34c
1,275
asm
Assembly
PRG/levels/Fortress/W5Tower1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Fortress/W5Tower1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Fortress/W5Tower1.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
; Original address was $B475 ; World 5 "Sand castle" first part .word W5T2L ; Alternate level layout .word W5T2O ; Alternate object layout .byte LEVEL1_SIZE_03 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_13 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(2) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_FORTRESS | LEVEL5_TIME_300 .byte $17, $00, $44, $15, $05, $41, $10, $07, $4F, $10, $17, $4F, $10, $27, $44, $04 .byte $24, $41, $04, $0C, $41, $00, $00, $F1, $16, $08, $02, $F1, $0E, $09, $04, $F0 .byte $0D, $0A, $05, $F0, $0A, $0B, $06, $F0, $09, $00, $02, $E0, $2D, $0B, $07, $E4 .byte $24, $0A, $0C, $E0, $01, $17, $07, $E0, $09, $18, $06, $E0, $0A, $01, $0A, $E4 .byte $01, $01, $0C, $E2, $01, $01, $0E, $E4, $01, $21, $02, $C3, $04, $06, $70, $01 .byte $08, $20, $10, $0A, $21, $E0, $51, $30, $0A, $18, $E0, $01, $16, $1C, $E2, $00 .byte $01, $12, $23, $06, $10, $61, $06, $1C, $61, $15, $14, $02, $15, $1C, $02, $0A .byte $24, $E0, $01, $10, $28, $E4, $00, $00, $2E, $F1, $18, $16, $2C, $E0, $01, $17 .byte $2B, $E0, $02, $18, $2A, $E0, $03, $01, $22, $E4, $01, $01, $24, $E2, $01, $01 .byte $26, $E4, $01, $15, $23, $02, $15, $28, $02, $35, $23, $01, $48, $2C, $FA, $FF
60.714286
85
0.545882
2e5d3f5b06c44d1e4725824e0c2ab87c45cb6140
8,997
asm
Assembly
linux/contrib/libjpeg-turbo-dev/simd/x86_64/jcsample-sse2.asm
darthrake/openpnp-capture
1b2153d4b8550120c5e58a30eb85e4f3a5529a73
[ "MIT" ]
76
2017-02-20T09:35:16.000Z
2022-03-03T23:59:43.000Z
linux/contrib/libjpeg-turbo-dev/simd/x86_64/jcsample-sse2.asm
darthrake/openpnp-capture
1b2153d4b8550120c5e58a30eb85e4f3a5529a73
[ "MIT" ]
39
2017-07-17T18:10:33.000Z
2022-03-26T21:51:33.000Z
linux/contrib/libjpeg-turbo-dev/simd/x86_64/jcsample-sse2.asm
darthrake/openpnp-capture
1b2153d4b8550120c5e58a30eb85e4f3a5529a73
[ "MIT" ]
35
2017-07-04T07:31:53.000Z
2022-03-10T13:50:02.000Z
; ; jcsample.asm - downsampling (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Assembler), ; can *not* be assembled with Microsoft's MASM or any compatible ; assembler (including Borland's Turbo Assembler). ; NASM is available from http://nasm.sourceforge.net/ or ; http://sourceforge.net/project/showfiles.php?group_id=6208 ; ; [TAB8] %include "jsimdext.inc" ; -------------------------------------------------------------------------- SECTION SEG_TEXT BITS 64 ; ; Downsample pixel values of a single component. ; This version handles the common case of 2:1 horizontal and 1:1 vertical, ; without smoothing. ; ; GLOBAL(void) ; jsimd_h2v1_downsample_sse2 (JDIMENSION image_width, int max_v_samp_factor, ; JDIMENSION v_samp_factor, JDIMENSION width_blocks, ; JSAMPARRAY input_data, JSAMPARRAY output_data); ; ; r10d = JDIMENSION image_width ; r11 = int max_v_samp_factor ; r12d = JDIMENSION v_samp_factor ; r13d = JDIMENSION width_blocks ; r14 = JSAMPARRAY input_data ; r15 = JSAMPARRAY output_data align 32 global EXTN(jsimd_h2v1_downsample_sse2) EXTN(jsimd_h2v1_downsample_sse2): push rbp mov rax, rsp mov rbp, rsp collect_args 6 mov ecx, r13d shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols) jz near .return mov edx, r10d ; -- expand_right_edge push rcx shl rcx, 1 ; output_cols * 2 sub rcx, rdx jle short .expand_end mov rax, r11 test rax, rax jle short .expand_end cld mov rsi, r14 ; input_data .expandloop: push rax push rcx mov rdi, JSAMPROW [rsi] add rdi, rdx mov al, JSAMPLE [rdi-1] rep stosb pop rcx pop rax add rsi, byte SIZEOF_JSAMPROW dec rax jg short .expandloop .expand_end: pop rcx ; output_cols ; -- h2v1_downsample mov eax, r12d ; rowctr test eax, eax jle near .return mov rdx, 0x00010000 ; bias pattern movd xmm7, edx pcmpeqw xmm6, xmm6 pshufd xmm7, xmm7, 0x00 ; xmm7={0, 1, 0, 1, 0, 1, 0, 1} psrlw xmm6, BYTE_BIT ; xmm6={0xFF 0x00 0xFF 0x00 ..} mov rsi, r14 ; input_data mov rdi, r15 ; output_data .rowloop: push rcx push rdi push rsi mov rsi, JSAMPROW [rsi] ; inptr mov rdi, JSAMPROW [rdi] ; outptr cmp rcx, byte SIZEOF_XMMWORD jae short .columnloop .columnloop_r8: movdqa xmm0, XMMWORD [rsi+0*SIZEOF_XMMWORD] pxor xmm1, xmm1 mov rcx, SIZEOF_XMMWORD jmp short .downsample .columnloop: movdqa xmm0, XMMWORD [rsi+0*SIZEOF_XMMWORD] movdqa xmm1, XMMWORD [rsi+1*SIZEOF_XMMWORD] .downsample: movdqa xmm2, xmm0 movdqa xmm3, xmm1 pand xmm0, xmm6 psrlw xmm2, BYTE_BIT pand xmm1, xmm6 psrlw xmm3, BYTE_BIT paddw xmm0, xmm2 paddw xmm1, xmm3 paddw xmm0, xmm7 paddw xmm1, xmm7 psrlw xmm0, 1 psrlw xmm1, 1 packuswb xmm0, xmm1 movdqa XMMWORD [rdi+0*SIZEOF_XMMWORD], xmm0 sub rcx, byte SIZEOF_XMMWORD ; outcol add rsi, byte 2*SIZEOF_XMMWORD ; inptr add rdi, byte 1*SIZEOF_XMMWORD ; outptr cmp rcx, byte SIZEOF_XMMWORD jae short .columnloop test rcx, rcx jnz short .columnloop_r8 pop rsi pop rdi pop rcx add rsi, byte SIZEOF_JSAMPROW ; input_data add rdi, byte SIZEOF_JSAMPROW ; output_data dec rax ; rowctr jg near .rowloop .return: uncollect_args 6 pop rbp ret ; -------------------------------------------------------------------------- ; ; Downsample pixel values of a single component. ; This version handles the standard case of 2:1 horizontal and 2:1 vertical, ; without smoothing. ; ; GLOBAL(void) ; jsimd_h2v2_downsample_sse2 (JDIMENSION image_width, int max_v_samp_factor, ; JDIMENSION v_samp_factor, JDIMENSION width_blocks, ; JSAMPARRAY input_data, JSAMPARRAY output_data); ; ; r10d = JDIMENSION image_width ; r11 = int max_v_samp_factor ; r12d = JDIMENSION v_samp_factor ; r13d = JDIMENSION width_blocks ; r14 = JSAMPARRAY input_data ; r15 = JSAMPARRAY output_data align 32 global EXTN(jsimd_h2v2_downsample_sse2) EXTN(jsimd_h2v2_downsample_sse2): push rbp mov rax, rsp mov rbp, rsp collect_args 6 mov ecx, r13d shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols) jz near .return mov edx, r10d ; -- expand_right_edge push rcx shl rcx, 1 ; output_cols * 2 sub rcx, rdx jle short .expand_end mov rax, r11 test rax, rax jle short .expand_end cld mov rsi, r14 ; input_data .expandloop: push rax push rcx mov rdi, JSAMPROW [rsi] add rdi, rdx mov al, JSAMPLE [rdi-1] rep stosb pop rcx pop rax add rsi, byte SIZEOF_JSAMPROW dec rax jg short .expandloop .expand_end: pop rcx ; output_cols ; -- h2v2_downsample mov eax, r12d ; rowctr test rax, rax jle near .return mov rdx, 0x00020001 ; bias pattern movd xmm7, edx pcmpeqw xmm6, xmm6 pshufd xmm7, xmm7, 0x00 ; xmm7={1, 2, 1, 2, 1, 2, 1, 2} psrlw xmm6, BYTE_BIT ; xmm6={0xFF 0x00 0xFF 0x00 ..} mov rsi, r14 ; input_data mov rdi, r15 ; output_data .rowloop: push rcx push rdi push rsi mov rdx, JSAMPROW [rsi+0*SIZEOF_JSAMPROW] ; inptr0 mov rsi, JSAMPROW [rsi+1*SIZEOF_JSAMPROW] ; inptr1 mov rdi, JSAMPROW [rdi] ; outptr cmp rcx, byte SIZEOF_XMMWORD jae short .columnloop .columnloop_r8: movdqa xmm0, XMMWORD [rdx+0*SIZEOF_XMMWORD] movdqa xmm1, XMMWORD [rsi+0*SIZEOF_XMMWORD] pxor xmm2, xmm2 pxor xmm3, xmm3 mov rcx, SIZEOF_XMMWORD jmp short .downsample .columnloop: movdqa xmm0, XMMWORD [rdx+0*SIZEOF_XMMWORD] movdqa xmm1, XMMWORD [rsi+0*SIZEOF_XMMWORD] movdqa xmm2, XMMWORD [rdx+1*SIZEOF_XMMWORD] movdqa xmm3, XMMWORD [rsi+1*SIZEOF_XMMWORD] .downsample: movdqa xmm4, xmm0 movdqa xmm5, xmm1 pand xmm0, xmm6 psrlw xmm4, BYTE_BIT pand xmm1, xmm6 psrlw xmm5, BYTE_BIT paddw xmm0, xmm4 paddw xmm1, xmm5 movdqa xmm4, xmm2 movdqa xmm5, xmm3 pand xmm2, xmm6 psrlw xmm4, BYTE_BIT pand xmm3, xmm6 psrlw xmm5, BYTE_BIT paddw xmm2, xmm4 paddw xmm3, xmm5 paddw xmm0, xmm1 paddw xmm2, xmm3 paddw xmm0, xmm7 paddw xmm2, xmm7 psrlw xmm0, 2 psrlw xmm2, 2 packuswb xmm0, xmm2 movdqa XMMWORD [rdi+0*SIZEOF_XMMWORD], xmm0 sub rcx, byte SIZEOF_XMMWORD ; outcol add rdx, byte 2*SIZEOF_XMMWORD ; inptr0 add rsi, byte 2*SIZEOF_XMMWORD ; inptr1 add rdi, byte 1*SIZEOF_XMMWORD ; outptr cmp rcx, byte SIZEOF_XMMWORD jae near .columnloop test rcx, rcx jnz near .columnloop_r8 pop rsi pop rdi pop rcx add rsi, byte 2*SIZEOF_JSAMPROW ; input_data add rdi, byte 1*SIZEOF_JSAMPROW ; output_data dec rax ; rowctr jg near .rowloop .return: uncollect_args 6 pop rbp ret ; For some reason, the OS X linker does not honor the request to align the ; segment unless we do this. align 32
27.263636
80
0.533956
78b6ebb1583f9738de87cc6ba3f9a6a5db71babb
2,157
asm
Assembly
src/bootloader/stage2.asm
FranchuFranchu/fran-os
30e14b587dd66039511d08a54f516ad65c4375ff
[ "0BSD" ]
1
2020-10-24T17:09:05.000Z
2020-10-24T17:09:05.000Z
src/bootloader/stage2.asm
FranchuFranchu/fran-os
30e14b587dd66039511d08a54f516ad65c4375ff
[ "0BSD" ]
null
null
null
src/bootloader/stage2.asm
FranchuFranchu/fran-os
30e14b587dd66039511d08a54f516ad65c4375ff
[ "0BSD" ]
null
null
null
BITS 16 [org 0x7e00] abs_start: jmp start db "Stage 2: Loaded", 0 %include "modules/a20.asm" %include "modules/unrealmode.asm" %include "modules/ext2.asm" %include "modules/misc.asm" %include "modules/protectedmode.asm" BITS 32 %include "stage3.asm" BITS 16 drive_number db 0 KERNEL_SIZE dd 0 ; In blocks start: mov [drive_number], dl mov si, bootloader_success call print_string call enable_a20 jmp unreal_start ; It will jump back to us in_unreal: mov si, unreal_success call print_string call kernel_ext2_setup mov eax, 0 push eax jmp .postadd .read_sectors: pop eax inc eax push eax .postadd: mov si, filename mov bx, disk_buffer call kernel_ext2_load_file_inode mov edi, 1 call kernel_ext2_load_inode_block jc .done ; Copy to kernel_buffer mov ecx, 0 mov cx, [BLOCK_SIZE] mov esi, disk_buffer mov edi, kernel_buffer pop eax push eax push eax mul ecx add edi, eax pop eax .copy: mov al, [esi] mov [edi], al dec ecx inc esi inc edi cmp ecx, 0 jne .copy .done_copy: jmp .read_sectors .done: pop eax mov [KERNEL_SIZE], eax mov si, kernel_success call print_string load_kernel: mov si, kernel_success call print_string jmp pm_start filename db "kernel.bin", 0 print_string: ; Routine: output string in SI to screen mov ah, 0Eh ; int 10h 'print char' function .repeat: lodsb ; Get character from string cmp al, 0 je .done ; If char is zero, end of string int 10h ; Otherwise, print it jmp .repeat .done: ret retry_count db 0 halt: cli .halt: hlt jmp .halt ;times (($-abs_start) % 512 - 4) db 21 where_to_load equ disk_buffer bootloader_success db "Bootloader: Loaded correctly", 0xa, 0xd, 0 unreal_success db "Unreal Mode: Switched correctly", 0xa, 0xd, 0 kernel_success db "Kernel: Loaded correctly", 0xa, 0xd, 0 superblock_buffer: times 1024 db 0 disk_buffer: times 512*8 db 0 kernel_size dd 0 ; in bytes kernel_buffer: ; Stores the kernel until stage3.asm copies it times 200*1024 db 0
15.630435
65
0.673157
9bd6808b8fdbcf897bdedbf65e6b83f580c2b15a
361
asm
Assembly
programs/oeis/194/A194847.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/194/A194847.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/194/A194847.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A194847: Write n = C(i,3)+C(j,2)+C(k,1) with i>j>k>=0; sequence gives i values. ; 2,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9 mov $1,2 lpb $0 add $2,$1 sub $0,$2 trn $0,1 add $1,1 lpe mov $0,$1
30.083333
201
0.518006
4e51e6c8a9df07a8e9028550b9b789434d37e343
253
asm
Assembly
programs/oeis/339/A339048.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/339/A339048.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/339/A339048.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A339048: a(n) = 2*n^2 + 9. ; 9,11,17,27,41,59,81,107,137,171,209,251,297,347,401,459,521,587,657,731,809,891,977,1067,1161,1259,1361,1467,1577,1691,1809,1931,2057,2187,2321,2459,2601,2747,2897,3051,3209,3371,3537,3707,3881 pow $0,2 mul $0,2 add $0,9
36.142857
195
0.699605
b45fbe20a7ee4c7fbc8b07238a1a719a8a684072
1,036
asm
Assembly
engine/battle/moveEffects/reflect_light_screen_effect.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
engine/battle/moveEffects/reflect_light_screen_effect.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
engine/battle/moveEffects/reflect_light_screen_effect.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
ReflectLightScreenEffect_: ld hl, wPlayerBattleStatus3 ld de, wPlayerMoveEffect ld a, [H_WHOSETURN] and a jr z, .reflectLightScreenEffect ld hl, wEnemyBattleStatus3 ld de, wEnemyMoveEffect .reflectLightScreenEffect ld a, [de] cp LIGHT_SCREEN_EFFECT jr nz, .reflect bit HasLightScreenUp, [hl] ; is mon already protected by light screen? jr nz, .moveFailed set HasLightScreenUp, [hl] ; mon is now protected by light screen ld hl, LightScreenProtectedText jr .playAnim .reflect bit HasReflectUp, [hl] ; is mon already protected by reflect? jr nz, .moveFailed set HasReflectUp, [hl] ; mon is now protected by reflect ld hl, ReflectGainedArmorText .playAnim push hl ld hl, PlayCurrentMoveAnimation call BankswitchEtoF pop hl jp PrintText .moveFailed ld c, 50 call DelayFrames ld hl, PrintButItFailedText_ jp BankswitchEtoF LightScreenProtectedText: TX_FAR _LightScreenProtectedText db "@" ReflectGainedArmorText: TX_FAR _ReflectGainedArmorText db "@" BankswitchEtoF: ld b, BANK(BattleCore) jp Bankswitch
22.521739
71
0.785714
835160e71ee718608ffdf37f81db61d40e672e79
412
asm
Assembly
Assembler/AssemblyCode/LowLevel/ALU_AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
8
2017-04-16T16:53:03.000Z
2021-09-14T22:29:28.000Z
Assembler/AssemblyCode/LowLevel/ALU_AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
Assembler/AssemblyCode/LowLevel/ALU_AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
; Set register D to "10001111" SET A, "1000" SET B, "1111" SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A OR MOV_ALU_OUT D ; Set register E to "00001111" SET A, "0000" SET B, "1111" SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A SHL MOV_ALU_C_TO_AB A OR MOV_ALU_OUT E ; Perform the AND operation MOV_ALU_IN A, D MOV_ALU_IN B, E AND MOV_ALU_OUT F HLT
11.771429
30
0.776699
a1bd89dd2154ec9a6cfb7c9357065ddc20b4d7fe
559
asm
Assembly
programs/oeis/190/A190334.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/190/A190334.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/190/A190334.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A190334: a(n) = n + floor(n*r/t) + floor(n*s/t) where r=1, s=sqrt(3), t=1/s. ; 5,11,17,22,28,34,40,45,51,57,63,68,74,80,85,91,97,103,108,114,120,126,131,137,143,149,154,160,166,171,177,183,189,194,200,206,212,217,223,229,235,240,246,252,257,263,269,275,280,286,292,298,303,309,315,320,326,332,338,343,349,355,361,366,372,378,384,389,395,401,406,412,418,424,429,435,441,447,452,458,464,470,475,481,487,492,498,504,510,515,521,527,533,538,544,550,556,561,567,573 mov $1,$0 mul $0,2 seq $1,3512 ; A Beatty sequence: floor(n*(sqrt(3) + 2)). add $0,$1 add $0,2
62.111111
383
0.677996
58c6f102e8e04346dfd935d36bc4afc2987b8fe7
915
asm
Assembly
libs/Libmy/ASM/src/asm_utoa.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
libs/Libmy/ASM/src/asm_utoa.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
libs/Libmy/ASM/src/asm_utoa.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
; ; char *asm_utoa(unsigned long nbr, char *buf, char base) ; BITS 64 SECTION .text GLOBAL asm_utoa asm_utoa: PUSH RBX PUSH RCX PUSH RDX PUSH RDI PUSH 0 MOV RCX, -1 ; Init counter MOV RAX, RDI MOV RBX, RDX _loop_begin: XOR RDX, RDX ; Clear high bits of RDX (dividend) IDIV RBX ; Divide by 10 PUSH RDX ; Save remainder ADD BYTE [RSP], 0x30 ; Convert to printable char CMP BYTE [RSP], 0x39 ; Is lower than '9' char JLE _loop_end ADD BYTE [RSP], 0x27 ; Convert 10 to 'a' _loop_end: CMP RAX, 0 JNE _loop_begin _loop_write: ; Basic write loop INC RCX POP RDI MOV BYTE [RSI + RCX], DIL CMP DIL, 0 JNE _loop_write _end: MOV RAX, RSI POP RDI POP RDX POP RCX POP RBX RET
19.468085
82
0.525683
31e887f4215661eaaaca5408db0475b063e89163
1,007
asm
Assembly
programs/oeis/330/A330938.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/330/A330938.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/330/A330938.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A330938: Numbers that cannot be written as the sum of four proper powers. A proper power is an integer of the form a^b where a,b are integers greater than or equal to 2. ; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,22,23,27 mov $5,$0 mov $6,$0 add $6,1 lpb $6 mov $0,$5 sub $6,1 sub $0,$6 mov $8,2 mov $13,$0 lpb $8 mov $0,$13 sub $8,1 add $0,$8 sub $0,1 mov $9,$0 mov $11,2 lpb $11 mov $0,$9 sub $11,1 add $0,$11 sub $0,1 mov $2,$0 mov $4,$0 bin $4,7 mov $0,$4 lpb $2 lpb $4 trn $2,$4 mul $4,$2 lpe div $0,5040 sub $2,1 lpe mov $3,$0 mov $12,$11 lpb $12 mov $10,$3 sub $12,1 lpe lpe lpb $9 mov $9,0 sub $10,$3 lpe mov $3,$10 mov $7,$8 lpb $7 sub $7,1 mov $14,$3 lpe lpe lpb $13 mov $13,0 sub $14,$3 lpe mov $3,$14 add $3,1 add $1,$3 lpe
15.984127
171
0.450844
a99066c7b404dc79bc821dc2924c6810024b2195
479
asm
Assembly
programs/oeis/317/A317311.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/317/A317311.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/317/A317311.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A317311: Multiples of 11 and odd numbers interleaved. ; 0,1,11,3,22,5,33,7,44,9,55,11,66,13,77,15,88,17,99,19,110,21,121,23,132,25,143,27,154,29,165,31,176,33,187,35,198,37,209,39,220,41,231,43,242,45,253,47,264,49,275,51,286,53,297,55,308,57,319,59,330,61,341,63,352,65,363,67,374,69,385,71,396,73,407,75,418,77,429,79,440,81,451,83,462,85,473,87,484,89,495,91,506,93,517,95,528,97,539,99 mov $1,$0 mov $2,$0 lpb $1 add $0,$2 mul $0,5 sub $1,1 mod $1,2 lpe div $0,10
36.846154
335
0.670146
5066bdf925aede4d785f7d5752302ba11eaa0422
205
asm
Assembly
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_beepfx/_bfx_7.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_beepfx/_bfx_7.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/sound/bit/z80/asm_bit_beepfx/_bfx_7.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; BeepFX sound effect by shiru ; http://shiru.untergrund.net SECTION rodata_sound_bit PUBLIC _bfx_7 _bfx_7: ; Grab_1 defb 2 ;noise defw 1,1000,10 defb 2 ;noise defw 1,1000,1 defb 0
11.388889
30
0.678049
2e87de571c746b8c8303adf46658d9fc8e00243f
487
asm
Assembly
programs/oeis/315/A315309.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315309.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315309.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A315309: Coordination sequence Gal.4.133.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,10,16,20,26,30,36,42,46,52,56,62,66,72,78,82,88,92,98,102,108,114,118,124,128,134,138,144,150,154,160,164,170,174,180,186,190,196,200,206,210,216,222,226,232,236,242,246,252 mul $0,4 trn $0,3 mov $1,$0 lpb $0,1 sub $0,2 trn $0,5 add $1,4 add $2,1 sub $1,$2 add $1,1 mov $2,2 lpe add $1,1
28.647059
179
0.679671
d1fbb9dd8e7fa0be88089c0923972429fb7b039c
958
asm
Assembly
programs/oeis/127/A127917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/127/A127917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/127/A127917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A127917: Product of three numbers: n-th prime, previous number, and following number. ; 6,24,120,336,1320,2184,4896,6840,12144,24360,29760,50616,68880,79464,103776,148824,205320,226920,300696,357840,388944,492960,571704,704880,912576,1030200,1092624,1224936,1294920,1442784,2048256,2247960,2571216,2685480,3307800,3442800,3869736,4330584,4657296,5177544,5735160,5929560,6967680,7188864,7645176,7880400,9393720,11089344,11696856,12008760,12649104,13651680,13997280,15813000,16974336,18191184,19464840,19902240,21253656,22187760,22664904,25153464,28934136,30079920,30663984,31854696,36264360,38272416,41781576,42508200,43986624,46267920,49430496,51894744,54439560,56181504,58863480,62570376,64480800,68417520,73559640,74618040,80062560,81182304,84604080,86937864,90518400,95443536,97971720,99252384,101847096,109901760,115500816,118370280,124251000,127263024,131871720,141420240,143055144,158339880 seq $0,40 ; The prime numbers. add $0,1 bin $0,3 mul $0,6
119.75
810
0.848643
32adf62b08a9693955e07c5af24b14ab7390079c
6,090
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1189.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1189.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1189.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xf908, %rsi lea addresses_WT_ht+0x3ce8, %rdi clflush (%rdi) nop nop nop nop nop sub %r11, %r11 mov $33, %rcx rep movsw nop nop and %rdx, %rdx lea addresses_WT_ht+0xc0e8, %r13 nop nop nop add $30026, %r15 vmovups (%r13), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r11 nop nop nop nop nop inc %rdi lea addresses_WC_ht+0x1cd85, %rsi lea addresses_D_ht+0xa80c, %rdi nop sub $19508, %r8 mov $84, %rcx rep movsl nop nop nop and %r8, %r8 lea addresses_WT_ht+0x1bfe8, %rsi lea addresses_WT_ht+0x180e8, %rdi nop nop nop nop nop inc %r8 mov $38, %rcx rep movsw nop nop inc %rcx lea addresses_WT_ht+0x1b728, %r15 clflush (%r15) nop nop nop xor %rdx, %rdx mov (%r15), %si nop nop nop nop nop and %r8, %r8 lea addresses_A_ht+0xe160, %r11 nop nop nop sub $44031, %r8 mov $0x6162636465666768, %r13 movq %r13, (%r11) nop inc %rdi lea addresses_normal_ht+0xf67a, %rsi lea addresses_normal_ht+0x196e8, %rdi nop nop nop add $61642, %r11 mov $102, %rcx rep movsb inc %r15 lea addresses_UC_ht+0x1b8e8, %rcx nop nop nop nop nop and %r11, %r11 movl $0x61626364, (%rcx) nop nop cmp %rsi, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r9 push %rax push %rbp push %rbx push %rsi // Faulty Load lea addresses_A+0x1e0e8, %rax clflush (%rax) nop nop nop nop nop add $63713, %rbp mov (%rax), %r9d lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rsi pop %rbx pop %rbp pop %rax pop %r9 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
36.909091
2,999
0.661905
c36392a0f11420cada038070f693215389b1687c
583
asm
Assembly
oeis/158/A158445.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158445.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158445.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158445: 25n^2 + 5. ; 30,105,230,405,630,905,1230,1605,2030,2505,3030,3605,4230,4905,5630,6405,7230,8105,9030,10005,11030,12105,13230,14405,15630,16905,18230,19605,21030,22505,24030,25605,27230,28905,30630,32405,34230,36105,38030,40005,42030,44105,46230,48405,50630,52905,55230,57605,60030,62505,65030,67605,70230,72905,75630,78405,81230,84105,87030,90005,93030,96105,99230,102405,105630,108905,112230,115605,119030,122505,126030,129605,133230,136905,140630,144405,148230,152105,156030,160005,164030,168105,172230,176405 mov $1,2 add $1,$0 mul $1,$0 mul $1,25 add $1,30 mov $0,$1
58.3
500
0.787307
8c12518be74b082964d2dee07df0da7f98c047c6
1,108
asm
Assembly
programs/oeis/062/A062990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/062/A062990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/062/A062990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A062990: Eighth column (r=7) of FS(5) staircase array A062985. ; 5,30,110,315,771,1688,3396,6390,11385,19382,31746,50297,77415,116160,170408,245004,345933,480510,657590,887799,1183787,1560504,2035500,2629250,3365505,4271670,5379210,6724085,8347215,10294976,12619728,15380376,18642965,22481310,26977662,32223411,38319827,45378840,53523860,62890638,73628169,85899638,99883410,115774065,133783479,154141952,177099384,202926500,231916125,264384510,300672710,341148015,386205435,436269240,491794556,553269018,621214481,696188790,778787610,869646317,969441951,1078895232,1198772640,1329888560,1473107493,1629346334,1799576718,1984827435,2186186915,2404805784,2641899492,2898751014,3176713625,3477213750,3801753890,4151915625,4529362695,4935844160,5373197640,5843352636,6348333933,6890265086,7471371990,8093986535,8760550347,9473618616,10235864012,11050080690,11919188385,12846236598,13834408874,14887027173,16007556335,17199608640,18466948464,19813497032,21243337269,22760718750,24370062750,26075967395 add $0,1 lpb $0 mov $2,$0 sub $0,1 seq $2,62989 ; a(n) = C(n+6, 6) - n - 1. add $1,$2 lpe mov $0,$1
92.333333
933
0.837545
ebf11d2a6f2abd9f0393caf70c8d5ee0f2bc122c
548
asm
Assembly
programs/oeis/129/A129565.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/129/A129565.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/129/A129565.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A129565: A115359 * A000012 as infinite lower triangular matrices. ; 1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1 mov $1,1 mov $2,$0 lpb $2 mul $2,2 add $6,$2 mov $2,$1 lpb $6 add $1,2 add $3,$1 add $4,$0 mov $0,$1 mov $1,1 mov $5,$4 sub $5,1 mov $6,$3 lpe mov $4,$0 lpb $5 add $1,2 add $1,$4 mov $2,$1 add $3,4 add $4,4 add $5,1 trn $5,$3 lpe sub $3,$0 trn $3,6 mov $1,$3 sub $2,1 mov $4,0 lpe
15.222222
111
0.474453
ddf4be82be6d67b23946ae93abbcdabad5e1b8bb
175
asm
Assembly
07 - Virtual Machine Stack Arithmetic/StackArithmetic/SimpleAdd/SimpleAdd.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
2
2020-03-11T18:48:18.000Z
2020-11-07T00:24:56.000Z
07 - Virtual Machine Stack Arithmetic/StackArithmetic/SimpleAdd/SimpleAdd.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
null
null
null
07 - Virtual Machine Stack Arithmetic/StackArithmetic/SimpleAdd/SimpleAdd.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
null
null
null
//Push constant @7 D=A @SP A=M M=D @SP M=M+1 //Push constant @8 D=A @SP A=M M=D @SP M=M+1 //Add Command @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M A=M D=D+A @SP A=M M=D @SP M=M+1
5.30303
15
0.56
4359efe8b20f6b79e580a19ec51521965fc9b72a
637
asm
Assembly
oeis/124/A124848.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/124/A124848.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/124/A124848.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A124848: Triangle read by rows: T(n,k) = (k+1)*(k+2)*(k+3)*binomial(n,k)/6 (0 <= k <= n). ; Submitted by Christian Krause ; 1,1,4,1,8,10,1,12,30,20,1,16,60,80,35,1,20,100,200,175,56,1,24,150,400,525,336,84,1,28,210,700,1225,1176,588,120,1,32,280,1120,2450,3136,2352,960,165,1,36,360,1680,4410,7056,7056,4320,1485,220,1,40,450,2400,7350,14112,17640,14400,7425,2200,286,1,44,550,3300,11550,25872,38808,39600,27225,12100,3146,364,1,48,660,4400,17325,44352,77616,95040,81675,48400,18876,4368,455,1,52,780,5720,25025,72072,144144,205920,212355 lpb $0 add $2,1 sub $0,$2 mov $1,$0 lpe add $1,3 bin $1,$0 bin $2,$0 mul $1,$2 mov $0,$1
42.466667
416
0.684458
980f36243d4f4e88ffe63e58fdca420103386ae2
1,365
asm
Assembly
kernel/arch/int_stubs.asm
NineSilver/Oxyb
83c032a0a57308713532fb978cc559f75e35179e
[ "MIT" ]
2
2022-01-29T20:59:33.000Z
2022-01-29T20:59:38.000Z
kernel/arch/int_stubs.asm
NineSilver/Oxyb
83c032a0a57308713532fb978cc559f75e35179e
[ "MIT" ]
null
null
null
kernel/arch/int_stubs.asm
NineSilver/Oxyb
83c032a0a57308713532fb978cc559f75e35179e
[ "MIT" ]
null
null
null
bits 64 section .text %macro ISR_NAME 1 dq __isr_%1 %endmacro %macro ISR_ERR 1 __isr_%1: push qword %1 jmp __isr_common %endmacro %macro ISR_NOERR 1 __isr_%1: push qword 0 push qword %1 jmp __isr_common %endmacro %macro pushaq 0 push rax push rbx push rcx push rdx push rsi push rdi push rbp push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popaq 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rbp pop rdi pop rsi pop rdx pop rcx pop rbx pop rax %endmacro ISR_NOERR 0 ISR_NOERR 1 ISR_NOERR 2 ISR_NOERR 3 ISR_NOERR 4 ISR_NOERR 5 ISR_NOERR 6 ISR_NOERR 7 ISR_ERR 8 ISR_NOERR 9 ISR_ERR 10 ISR_ERR 11 ISR_ERR 12 ISR_ERR 13 ISR_ERR 14 ISR_NOERR 15 ISR_NOERR 16 ISR_ERR 17 ISR_NOERR 18 ISR_NOERR 19 ISR_NOERR 20 ISR_NOERR 21 ISR_NOERR 22 ISR_NOERR 23 ISR_NOERR 24 ISR_NOERR 25 ISR_NOERR 26 ISR_NOERR 27 ISR_NOERR 28 ISR_NOERR 29 ISR_ERR 30 ISR_NOERR 31 %assign i 32 %rep 224 ISR_NOERR i %assign i i+1 %endrep extern isr_handler __isr_common: cld pushaq mov rdi, rsp call isr_handler mov rsp, rax popaq add rsp, 16 iretq section .data global __isr_vector __isr_vector: %assign i 0 %rep 256 ISR_NAME i %assign i i+1 %endrep
11.666667
20
0.681319
9cab5be7695ff8be597ef4ad42afb588baa09a1a
9,110
asm
Assembly
asm/lab5.asm
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
asm/lab5.asm
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
asm/lab5.asm
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
; lab 5: file input / output .model TINY .code org 80h cmd_length db ? cmd_line db ? org 100h begin: jmp start_place ; ############################################## algorithms ; returns in ax count of read bytes, in cx 1 if it's the last possible reading operation read proc mov ax, 0 mov ah, 3fh mov cx, 50 ; read 50 bytes to read buf lea dx, read_buf int 21h cmp ax, cx jb read_the_last_op ; not the last possible read operation mov cx, 0 jmp read_end read_the_last_op: mov cx, 1 read_end: ret read endp handle_new_line proc cmp letters_count, 2 ja handle_end inc lines_count handle_end: mov letters_count, 0 mov cr_occured, 0 ret handle_new_line endp scan_buffer proc mov si, offset read_buf scan_loop: lodsb ; load character inc letters_count ; endline parsing cmp cr_occured, 1 ; check if carriage return occured before jne check_cr cmp al, 10 ; cmp al with \n je handle mov cr_occured, 0 ; handle \r + not \n jmp skip handle: ; handle situation "\r\n" == newline call handle_new_line jmp skip check_cr: ; check if a new char is \r and set a cr flag if it is cmp al, 13 ; cmp al with \r jne skip mov cr_occured, 1 skip: loop scan_loop ret cr_occured db 0 scan_buffer endp ; gets in bx input file desc ; returns in ax count of empty lines count_empty_lines proc push cx push dx push si fill_buffer: call read ; fill buffer with file content cmp cx, 0 ; if cx = 0, continue, else stop je continue jmp end_count continue: mov cx, buffer_size call scan_buffer ; find string ends in buffer jmp fill_buffer end_count: mov cx, ax cmp cx, 0 je if_empty_buffer call scan_buffer if_empty_buffer: pop si pop dx pop cx mov ax, lines_count ret letters_count dw 0 lines_count dw 0 read_buf db 50 dup('$') buffer_size equ 50 count_empty_lines endp ; ################################################## / algorithms ; ################################################## support prologue macro push bp mov bp, sp endm epilogue macro mov sp, bp pop bp endm ; saves common registers save_regs macro push ax push bx push cx push dx push ds push si push es push di endm ; loads common registers load_regs macro pop di pop es pop si pop ds pop dx pop cx pop bx pop ax endm ; ################################################## / support ; ################################################################### I / O ; input : al - char to output putc macro save_regs mov dl, al mov ah, 02h int 21h load_regs endm ; input : string - string adress print_string macro string save_regs mov ah, 9 mov dx, offset string int 21h load_regs endm puts macro string save_regs print_string string print_string newline load_regs endm ; prints decimal number to stdout ; input in ax print_decimal proc push ax push cx push dx push di std ; prepare string buffer to writing lea di, buffer_end-1 mov cx, 10 ; set base of calculation system base equ cx Repeat: xor dx,dx div base ; dx stores residue, ax stores quotient xchg ax,dx add al,'0' stosb ; add digit to output xchg ax,dx or ax,ax ; check if quotient is zero jne Repeat mov ah,9 lea dx,[di+1] ; output string (di + 1 is address of string start) int 21h pop di pop dx pop cx pop ax ret buffer_string db 5 dup ('$') buffer_end db '$' print_decimal endp ; ############################################################ / I / O ; ################################################## support ; opens a file with name in ds:dx ; cf = 0 if all is ok ; returns file desc in bx fopen proc push ax push cx mov ah, 3dh ; use dos int 21: open file ; mov al, 00100001b ; open file in read mode, ; allow reading only to others ; xor cx, cx ; don't use mask mov al, 02h int 21h mov bx, ax ; copy desc to bx jc error_handling ; if errors occured, handle them jmp fopen_end error_handling: cmp al, 0ch jne _not_im jmp _incorrect_mode _not_im: cmp al, 05h jne _not_ad jmp _access_denied _not_ad: cmp al, 04h jne _not_fc jmp _file_count_is_too_big _not_fc: cmp al, 03h jne _not_pnf jmp _path_dont_found _not_pnf: ; error handling _file_dont_found: puts file_dont_found jmp fopen_error_end _path_dont_found: puts path_dont_found jmp fopen_error_end _file_count_is_too_big: puts file_count_is_too_big jmp fopen_error_end _access_denied: puts access_denied jmp fopen_error_end _incorrect_mode: puts incorrect_mode jmp fopen_error_end fopen_error_end: ; set carry flag as 1 mov cx, 1 shr cx, 1 fopen_end: pop cx pop ax ret file_dont_found db "error: file do not found", '$' path_dont_found db "error: path do not found", '$' file_count_is_too_big db "error: file count is too big", '$' access_denied db "error: access denied", '$' incorrect_mode db "error: incorrect file mode", '$' fopen endp ; closes file ; input: file desc in bx fclose proc push ax mov ah, 3eh int 21h ; just close file pop ax ret fclose endp ; loads in ds:dx the first argv value get_path proc push ax push bx push cx push si push di mov cl, cmd_length ; check for emptyness cmp cl, 1 jle empty_error ; find the first param and store it mov di, offset cmd_line cld mov al, ' ' repz scasb dec di ; di stores start of the first param mov dx, di mov si, di scan: lodsb cmp al, 0dh je end_of_scan cmp al, 20h ; 20h is a space je end_of_scan ; skip chars while not space of end of line jmp scan end_of_scan: dec si mov byte ptr [si], 0 ; form good line end jmp get_path_end empty_error: puts empty_error_text mov bx, 1 shr bx, 1 get_path_end: pop di pop si pop cx pop bx pop ax ret empty_error_text db "input a file path, example: lab.com file.txt", '$' get_path endp ; ################################################## / support ; ############################################################################# main main proc call get_path jnc not_main_end jmp main_end not_main_end: puts processing_message ; open a file ; file desc will be stored in bx call fopen jc main_end call count_empty_lines puts result_message ; count of empty lines will be stored in ax ; output it call print_decimal call fclose main_end: ret processing_message db "start scanning file...", '$' result_message db "count of empty lines is:", '$' main endp ; ############################################################################# / main start_place: call main mov ax, 4C00h int 21h ; ################### additional data ; support variables newline db 0dh, 0ah, '$' end begin
22.273839
93
0.47124
5048725e8109034cdb9ea83f1ba5cb55e6000008
1,586
asm
Assembly
8051/21-26Proteous/22Trafficlight/traffic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
1
2022-01-01T11:27:43.000Z
2022-01-01T11:27:43.000Z
8051/21-26Proteous/22Trafficlight/traffic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
8051/21-26Proteous/22Trafficlight/traffic.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
ORG 00H LJMP MAIN ORG 300H TBL: DB 0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90H ;7seg data for comm. anode type ORG 30H MAIN: MOV P2,#00H MOV P3,#00H ACALL FRONT MOV DPTR,#TBL CLR A MOV 40H,#10 MOV 43H,#10 MOV 46H,#20 MOV 49H,#20 MOV R0,#35 MOV R6,#30 MOV R7,#40 X1: MOV A,40H MOV B,#10 DIV AB MOV 41H,A MOV 42H,B A1: SETB P3.0 CLR P3.1 MOV A,41H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H SETB P3.1 CLR P3.0 MOV A,42H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H SJMP X3 X2: SJMP X1 X3: MOV A,43H MOV B,#10 DIV AB MOV 44H,A MOV 45H,B SETB P3.2 CLR P3.3 MOV A,44H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H SETB P3.3 CLR P3.2 MOV A,45H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H MOV A,46H MOV B,#10 DIV AB MOV 47H,A MOV 48H,B SETB P3.4 CLR P3.5 MOV A,47H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H SETB P3.5 CLR P3.4 MOV A,48H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H MOV A,49H MOV B,#10 DIV AB MOV 50H,A MOV 51H,B SETB P3.6 CLR P3.7 MOV A,50H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H SETB P3.7 CLR P3.6 MOV A,51H MOVC A,@A+DPTR MOV P2,A ACALL DELAY MOV P3,#00H DJNZ R0,X2 MOV R0,#35 DJNZ 40H,Q1 MOV 40H,#20 Q1: DJNZ 43H,Q2 MOV 43H,#10 ACALL RIGHT Q2: DJNZ 46H,Q3 MOV 43H,#20 MOV 46H,#10 Q3: DJNZ 49H,Q4 MOV 49H,#10 ACALL BACK Q4: DJNZ R6,X4 ACALL LEFT MOV 40H,#10 MOV 43H,#10 MOV 46H,#30 X4: DJNZ R7,L1 LJMP MAIN L1: LJMP X1 DELAY: MOV R4,#5 H2:MOV R5,#0FFH H1:DJNZ R5,H1 DJNZ R4,H2 RET FRONT: MOV P1,#54H MOV P0,#02H RET RIGHT: MOV P1,#0A1H MOV P0,#02H RET BACK: MOV P1,#09H MOV P0,#05H RET LEFT: MOV P1,#4AH MOV P0,#08H RET
9.554217
87
0.687894
7e5bb0238e0ef7a0465d4e59eda19beb34a79605
7,200
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1318.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1318.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1318.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x318a, %r13 add %r11, %r11 movb (%r13), %dl nop nop nop nop inc %rax lea addresses_WT_ht+0x614a, %rsi lea addresses_UC_ht+0x1bc8a, %rdi clflush (%rsi) nop nop xor $43274, %r11 mov $68, %rcx rep movsq nop nop nop nop nop cmp %rax, %rax lea addresses_normal_ht+0x1398a, %rbp nop nop nop nop and $26701, %r13 mov (%rbp), %esi nop nop inc %r13 lea addresses_WT_ht+0x167a, %rax nop nop nop cmp $57692, %rsi movw $0x6162, (%rax) nop nop cmp %rsi, %rsi lea addresses_A_ht+0xa1d6, %rsi lea addresses_WT_ht+0x1d18a, %rdi clflush (%rsi) nop nop nop nop nop cmp $49759, %rax mov $65, %rcx rep movsq nop nop nop nop nop xor %rbp, %rbp lea addresses_D_ht+0x150a, %rdi add %rdx, %rdx mov (%rdi), %ebp nop nop and %rcx, %rcx lea addresses_UC_ht+0x2c66, %rdx nop nop cmp $8709, %rdi movl $0x61626364, (%rdx) add $19815, %rdx lea addresses_WC_ht+0x561a, %r11 nop nop nop nop nop inc %rbp movl $0x61626364, (%r11) nop nop nop xor %rdx, %rdx lea addresses_D_ht+0x9bfe, %r11 clflush (%r11) nop nop nop nop nop sub %rbp, %rbp movb $0x61, (%r11) nop nop nop nop nop cmp %rcx, %rcx lea addresses_A_ht+0x15d0a, %rsi lea addresses_A_ht+0x1a98a, %rdi cmp $20005, %rbp mov $55, %rcx rep movsl nop nop nop nop nop add $50393, %rbp lea addresses_WT_ht+0x1498a, %rsi nop nop nop nop nop sub $33135, %rdi mov $0x6162636465666768, %rax movq %rax, %xmm3 movups %xmm3, (%rsi) and %rsi, %rsi lea addresses_WT_ht+0x17376, %r13 nop nop cmp $25003, %rsi movb $0x61, (%r13) nop nop nop nop nop sub %r11, %r11 lea addresses_normal_ht+0x7512, %rax nop nop nop add $33521, %r13 mov $0x6162636465666768, %rdx movq %rdx, %xmm3 vmovups %ymm3, (%rax) nop nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi // Faulty Load lea addresses_D+0xb98a, %rsi nop nop nop nop nop xor $24005, %r15 movb (%rsi), %r9b lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'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 */
33.488372
2,999
0.657222
43c6b61a14d05c1ea5d3262700ab574987a77b5d
300
asm
Assembly
libsrc/math/mbf32/c/sccz80/log.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/math/mbf32/c/sccz80/log.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/math/mbf32/c/sccz80/log.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION code_fp_mbf32 PUBLIC log EXTERN ___mbf32_setup_single EXTERN ___mbf32_LOG EXTERN ___mbf32_return EXTERN msbios log: call ___mbf32_setup_single IF __CPU_INTEL__ call ___mbf32_LOG ELSE ld ix,___mbf32_LOG call msbios ENDIF jp ___mbf32_return
15.789474
37
0.726667
54f3f5fa14d84e1ae54c1d44c4997d208245e7aa
2,033
asm
Assembly
programs/oeis/059/A059270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/059/A059270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/059/A059270.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A059270: Numbers which are both the sum of n+1 consecutive integers and the sum of the n immediately higher consecutive integers. ; 0,3,15,42,90,165,273,420,612,855,1155,1518,1950,2457,3045,3720,4488,5355,6327,7410,8610,9933,11385,12972,14700,16575,18603,20790,23142,25665,28365,31248,34320,37587,41055,44730,48618,52725,57057,61620,66420,71463,76755,82302,88110,94185,100533,107160,114072,121275,128775,136578,144690,153117,161865,170940,180348,190095,200187,210630,221430,232593,244125,256032,268320,280995,294063,307530,321402,335685,350385,365508,381060,397047,413475,430350,447678,465465,483717,502440,521640,541323,561495,582162,603330,625005,647193,669900,693132,716895,741195,766038,791430,817377,843885,870960,898608,926835,955647,985050,1015050,1045653,1076865,1108692,1141140,1174215,1207923,1242270,1277262,1312905,1349205,1386168,1423800,1462107,1501095,1540770,1581138,1622205,1663977,1706460,1749660,1793583,1838235,1883622,1929750,1976625,2024253,2072640,2121792,2171715,2222415,2273898,2326170,2379237,2433105,2487780,2543268,2599575,2656707,2714670,2773470,2833113,2893605,2954952,3017160,3080235,3144183,3209010,3274722,3341325,3408825,3477228,3546540,3616767,3687915,3759990,3832998,3906945,3981837,4057680,4134480,4212243,4290975,4370682,4451370,4533045,4615713,4699380,4784052,4869735,4956435,5044158,5132910,5222697,5313525,5405400,5498328,5592315,5687367,5783490,5880690,5978973,6078345,6178812,6280380,6383055,6486843,6591750,6697782,6804945,6913245,7022688,7133280,7245027,7357935,7472010,7587258,7703685,7821297,7940100,8060100,8181303,8303715,8427342,8552190,8678265,8805573,8934120,9063912,9194955,9327255,9460818,9595650,9731757,9869145,10007820,10147788,10289055,10431627,10575510,10720710,10867233,11015085,11164272,11314800,11466675,11619903,11774490,11930442,12087765,12246465,12406548,12568020,12730887,12895155,13060830,13227918,13396425,13566357,13737720,13910520,14084763,14260455,14437602,14616210,14796285,14977833,15160860,15345372,15531375 mov $1,$0 add $0,1 add $1,$0 bin $0,2 mul $1,$0
225.888889
1,851
0.851451
5c2cf679a336de960e38fe1ec1ff55120abbcba0
20,960
asm
Assembly
target/cos_117/disasm/iop_overlay1/UCXFR.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
49
2020-10-09T12:29:16.000Z
2022-03-12T02:33:35.000Z
target/cos_117/disasm/iop_overlay1/UCXFR.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
1
2021-12-29T15:59:25.000Z
2021-12-29T15:59:25.000Z
target/cos_117/disasm/iop_overlay1/UCXFR.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
6
2021-04-12T06:10:32.000Z
2022-02-08T23:11:19.000Z
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0001 (0x000002) 0x2919- f:00024 d: 281 | OR[281] = A 0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0003 (0x000006) 0x291A- f:00024 d: 282 | OR[282] = A 0x0004 (0x000008) 0x100C- f:00010 d: 12 | A = 12 (0x000C) 0x0005 (0x00000A) 0x292A- f:00024 d: 298 | OR[298] = A 0x0006 (0x00000C) 0x2118- f:00020 d: 280 | A = OR[280] 0x0007 (0x00000E) 0x292B- f:00024 d: 299 | OR[299] = A 0x0008 (0x000010) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x0009 (0x000012) 0x5800- f:00054 d: 0 | B = A 0x000A (0x000014) 0x1800-0x2518 f:00014 d: 0 | A = 9496 (0x2518) 0x000C (0x000018) 0x7C09- f:00076 d: 9 | R = OR[9] 0x000D (0x00001A) 0x2006- f:00020 d: 6 | A = OR[6] 0x000E (0x00001C) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B) 0x000F (0x00001E) 0x2908- f:00024 d: 264 | OR[264] = A 0x0010 (0x000020) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0011 (0x000022) 0x291B- f:00024 d: 283 | OR[283] = A 0x0012 (0x000024) 0x211B- f:00020 d: 283 | A = OR[283] 0x0013 (0x000026) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008) 0x0014 (0x000028) 0x2908- f:00024 d: 264 | OR[264] = A 0x0015 (0x00002A) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0016 (0x00002C) 0x291C- f:00024 d: 284 | OR[284] = A 0x0017 (0x00002E) 0x211B- f:00020 d: 283 | A = OR[283] 0x0018 (0x000030) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009) 0x0019 (0x000032) 0x2908- f:00024 d: 264 | OR[264] = A 0x001A (0x000034) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x001B (0x000036) 0x291D- f:00024 d: 285 | OR[285] = A 0x001C (0x000038) 0x211B- f:00020 d: 283 | A = OR[283] 0x001D (0x00003A) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A) 0x001E (0x00003C) 0x2908- f:00024 d: 264 | OR[264] = A 0x001F (0x00003E) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0020 (0x000040) 0x291E- f:00024 d: 286 | OR[286] = A 0x0021 (0x000042) 0x211B- f:00020 d: 283 | A = OR[283] 0x0022 (0x000044) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B) 0x0023 (0x000046) 0x2908- f:00024 d: 264 | OR[264] = A 0x0024 (0x000048) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0025 (0x00004A) 0x291F- f:00024 d: 287 | OR[287] = A 0x0026 (0x00004C) 0x211B- f:00020 d: 283 | A = OR[283] 0x0027 (0x00004E) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C) 0x0028 (0x000050) 0x2908- f:00024 d: 264 | OR[264] = A 0x0029 (0x000052) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x002A (0x000054) 0x2920- f:00024 d: 288 | OR[288] = A 0x002B (0x000056) 0x211B- f:00020 d: 283 | A = OR[283] 0x002C (0x000058) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D) 0x002D (0x00005A) 0x2908- f:00024 d: 264 | OR[264] = A 0x002E (0x00005C) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x002F (0x00005E) 0x2921- f:00024 d: 289 | OR[289] = A 0x0030 (0x000060) 0x211B- f:00020 d: 283 | A = OR[283] 0x0031 (0x000062) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E) 0x0032 (0x000064) 0x2908- f:00024 d: 264 | OR[264] = A 0x0033 (0x000066) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0034 (0x000068) 0x2922- f:00024 d: 290 | OR[290] = A 0x0035 (0x00006A) 0x211C- f:00020 d: 284 | A = OR[284] 0x0036 (0x00006C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0038), A = 0 0x0037 (0x00006E) 0x7004- f:00070 d: 4 | P = P + 4 (0x003B) 0x0038 (0x000070) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0039 (0x000072) 0x2923- f:00024 d: 291 | OR[291] = A 0x003A (0x000074) 0x7010- f:00070 d: 16 | P = P + 16 (0x004A) 0x003B (0x000076) 0x211C- f:00020 d: 284 | A = OR[284] 0x003C (0x000078) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001) 0x003D (0x00007A) 0x8402- f:00102 d: 2 | P = P + 2 (0x003F), A = 0 0x003E (0x00007C) 0x7004- f:00070 d: 4 | P = P + 4 (0x0042) 0x003F (0x00007E) 0x1001- f:00010 d: 1 | A = 1 (0x0001) 0x0040 (0x000080) 0x2923- f:00024 d: 291 | OR[291] = A 0x0041 (0x000082) 0x7009- f:00070 d: 9 | P = P + 9 (0x004A) 0x0042 (0x000084) 0x211C- f:00020 d: 284 | A = OR[284] 0x0043 (0x000086) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002) 0x0044 (0x000088) 0x8402- f:00102 d: 2 | P = P + 2 (0x0046), A = 0 0x0045 (0x00008A) 0x7003- f:00070 d: 3 | P = P + 3 (0x0048) 0x0046 (0x00008C) 0x708E- f:00070 d: 142 | P = P + 142 (0x00D4) 0x0047 (0x00008E) 0x7003- f:00070 d: 3 | P = P + 3 (0x004A) 0x0048 (0x000090) 0x7C34- f:00076 d: 52 | R = OR[52] 0x0049 (0x000092) 0x0000- f:00000 d: 0 | PASS 0x004A (0x000094) 0x211D- f:00020 d: 285 | A = OR[285] 0x004B (0x000096) 0x8402- f:00102 d: 2 | P = P + 2 (0x004D), A = 0 0x004C (0x000098) 0x7006- f:00070 d: 6 | P = P + 6 (0x0052) 0x004D (0x00009A) 0x211E- f:00020 d: 286 | A = OR[286] 0x004E (0x00009C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0050), A = 0 0x004F (0x00009E) 0x7003- f:00070 d: 3 | P = P + 3 (0x0052) 0x0050 (0x0000A0) 0x7C34- f:00076 d: 52 | R = OR[52] 0x0051 (0x0000A2) 0x0000- f:00000 d: 0 | PASS 0x0052 (0x0000A4) 0x7489- f:00072 d: 137 | R = P + 137 (0x00DB) 0x0053 (0x0000A6) 0x2121- f:00020 d: 289 | A = OR[289] 0x0054 (0x0000A8) 0x2913- f:00024 d: 275 | OR[275] = A 0x0055 (0x0000AA) 0x2122- f:00020 d: 290 | A = OR[290] 0x0056 (0x0000AC) 0x2914- f:00024 d: 276 | OR[276] = A 0x0057 (0x0000AE) 0x1800-0x0FFF f:00014 d: 0 | A = 4095 (0x0FFF) 0x0059 (0x0000B2) 0x2B14- f:00025 d: 276 | OR[276] = A + OR[276] 0x005A (0x0000B4) 0x8002- f:00100 d: 2 | P = P + 2 (0x005C), C = 0 0x005B (0x0000B6) 0x2D13- f:00026 d: 275 | OR[275] = OR[275] + 1 0x005C (0x0000B8) 0x1010- f:00010 d: 16 | A = 16 (0x0010) 0x005D (0x0000BA) 0x160C- f:00013 d: 12 | A = A - 12 (0x000C) 0x005E (0x0000BC) 0x5800- f:00054 d: 0 | B = A 0x005F (0x0000BE) 0x2113- f:00020 d: 275 | A = OR[275] 0x0060 (0x0000C0) 0x4A00- f:00045 d: 0 | A = A < B 0x0061 (0x0000C2) 0x290D- f:00024 d: 269 | OR[269] = A 0x0062 (0x0000C4) 0x100C- f:00010 d: 12 | A = 12 (0x000C) 0x0063 (0x0000C6) 0x5800- f:00054 d: 0 | B = A 0x0064 (0x0000C8) 0x2113- f:00020 d: 275 | A = OR[275] 0x0065 (0x0000CA) 0x4800- f:00044 d: 0 | A = A > B 0x0066 (0x0000CC) 0x2913- f:00024 d: 275 | OR[275] = A 0x0067 (0x0000CE) 0x2114- f:00020 d: 276 | A = OR[276] 0x0068 (0x0000D0) 0x4800- f:00044 d: 0 | A = A > B 0x0069 (0x0000D2) 0x250D- f:00022 d: 269 | A = A + OR[269] 0x006A (0x0000D4) 0x2914- f:00024 d: 276 | OR[276] = A 0x006B (0x0000D6) 0x1026- f:00010 d: 38 | A = 38 (0x0026) 0x006C (0x0000D8) 0x292A- f:00024 d: 298 | OR[298] = A 0x006D (0x0000DA) 0x211D- f:00020 d: 285 | A = OR[285] 0x006E (0x0000DC) 0x292B- f:00024 d: 299 | OR[299] = A 0x006F (0x0000DE) 0x211E- f:00020 d: 286 | A = OR[286] 0x0070 (0x0000E0) 0x292C- f:00024 d: 300 | OR[300] = A 0x0071 (0x0000E2) 0x211A- f:00020 d: 282 | A = OR[282] 0x0072 (0x0000E4) 0x292D- f:00024 d: 301 | OR[301] = A 0x0073 (0x0000E6) 0x2114- f:00020 d: 276 | A = OR[276] 0x0074 (0x0000E8) 0x292E- f:00024 d: 302 | OR[302] = A 0x0075 (0x0000EA) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0076 (0x0000EC) 0x292F- f:00024 d: 303 | OR[303] = A 0x0077 (0x0000EE) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x0078 (0x0000F0) 0x5800- f:00054 d: 0 | B = A 0x0079 (0x0000F2) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x007A (0x0000F4) 0x7C09- f:00076 d: 9 | R = OR[9] 0x007B (0x0000F6) 0x211A- f:00020 d: 282 | A = OR[282] 0x007C (0x0000F8) 0x2926- f:00024 d: 294 | OR[294] = A 0x007D (0x0000FA) 0x2121- f:00020 d: 289 | A = OR[289] 0x007E (0x0000FC) 0x8402- f:00102 d: 2 | P = P + 2 (0x0080), A = 0 0x007F (0x0000FE) 0x7003- f:00070 d: 3 | P = P + 3 (0x0082) 0x0080 (0x000100) 0x2122- f:00020 d: 290 | A = OR[290] 0x0081 (0x000102) 0x8450- f:00102 d: 80 | P = P + 80 (0x00D1), A = 0 0x0082 (0x000104) 0x2126- f:00020 d: 294 | A = OR[294] 0x0083 (0x000106) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002) 0x0084 (0x000108) 0x2908- f:00024 d: 264 | OR[264] = A 0x0085 (0x00010A) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x0086 (0x00010C) 0x2927- f:00024 d: 295 | OR[295] = A 0x0087 (0x00010E) 0x2126- f:00020 d: 294 | A = OR[294] 0x0088 (0x000110) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003) 0x0089 (0x000112) 0x2908- f:00024 d: 264 | OR[264] = A 0x008A (0x000114) 0x3108- f:00030 d: 264 | A = (OR[264]) 0x008B (0x000116) 0x2928- f:00024 d: 296 | OR[296] = A 0x008C (0x000118) 0x2127- f:00020 d: 295 | A = OR[295] 0x008D (0x00011A) 0x8402- f:00102 d: 2 | P = P + 2 (0x008F), A = 0 0x008E (0x00011C) 0x7006- f:00070 d: 6 | P = P + 6 (0x0094) 0x008F (0x00011E) 0x2128- f:00020 d: 296 | A = OR[296] 0x0090 (0x000120) 0x8402- f:00102 d: 2 | P = P + 2 (0x0092), A = 0 0x0091 (0x000122) 0x7003- f:00070 d: 3 | P = P + 3 (0x0094) 0x0092 (0x000124) 0x7C34- f:00076 d: 52 | R = OR[52] 0x0093 (0x000126) 0x0000- f:00000 d: 0 | PASS 0x0094 (0x000128) 0x2121- f:00020 d: 289 | A = OR[289] 0x0095 (0x00012A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0097), A = 0 0x0096 (0x00012C) 0x7009- f:00070 d: 9 | P = P + 9 (0x009F) 0x0097 (0x00012E) 0x2122- f:00020 d: 290 | A = OR[290] 0x0098 (0x000130) 0x1E00-0x1000 f:00017 d: 0 | A = A - 4096 (0x1000) 0x009A (0x000134) 0x8002- f:00100 d: 2 | P = P + 2 (0x009C), C = 0 0x009B (0x000136) 0x7004- f:00070 d: 4 | P = P + 4 (0x009F) 0x009C (0x000138) 0x2122- f:00020 d: 290 | A = OR[290] 0x009D (0x00013A) 0x2929- f:00024 d: 297 | OR[297] = A 0x009E (0x00013C) 0x7004- f:00070 d: 4 | P = P + 4 (0x00A2) 0x009F (0x00013E) 0x1800-0x1000 f:00014 d: 0 | A = 4096 (0x1000) 0x00A1 (0x000142) 0x2929- f:00024 d: 297 | OR[297] = A 0x00A2 (0x000144) 0x1001- f:00010 d: 1 | A = 1 (0x0001) 0x00A3 (0x000146) 0x290F- f:00024 d: 271 | OR[271] = A 0x00A4 (0x000148) 0x2122- f:00020 d: 290 | A = OR[290] 0x00A5 (0x00014A) 0x2729- f:00023 d: 297 | A = A - OR[297] 0x00A6 (0x00014C) 0x2922- f:00024 d: 290 | OR[290] = A 0x00A7 (0x00014E) 0x8202- f:00101 d: 2 | P = P + 2 (0x00A9), C = 1 0x00A8 (0x000150) 0x2F21- f:00027 d: 289 | OR[289] = OR[289] - 1 0x00A9 (0x000152) 0x0810- f:00004 d: 16 | A = A > 16 (0x0010) 0x00AA (0x000154) 0x230F- f:00021 d: 271 | A = A & OR[271] 0x00AB (0x000156) 0x2129- f:00020 d: 297 | A = OR[297] 0x00AC (0x000158) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008) 0x00AD (0x00015A) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001) 0x00AE (0x00015C) 0x2929- f:00024 d: 297 | OR[297] = A 0x00AF (0x00015E) 0x2129- f:00020 d: 297 | A = OR[297] 0x00B0 (0x000160) 0x0803- f:00004 d: 3 | A = A > 3 (0x0003) 0x00B1 (0x000162) 0x2929- f:00024 d: 297 | OR[297] = A 0x00B2 (0x000164) 0x1025- f:00010 d: 37 | A = 37 (0x0025) 0x00B3 (0x000166) 0x292A- f:00024 d: 298 | OR[298] = A 0x00B4 (0x000168) 0x2123- f:00020 d: 291 | A = OR[291] 0x00B5 (0x00016A) 0x292B- f:00024 d: 299 | OR[299] = A 0x00B6 (0x00016C) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00B7 (0x00016E) 0x292C- f:00024 d: 300 | OR[300] = A 0x00B8 (0x000170) 0x211F- f:00020 d: 287 | A = OR[287] 0x00B9 (0x000172) 0x292D- f:00024 d: 301 | OR[301] = A 0x00BA (0x000174) 0x2120- f:00020 d: 288 | A = OR[288] 0x00BB (0x000176) 0x292E- f:00024 d: 302 | OR[302] = A 0x00BC (0x000178) 0x2127- f:00020 d: 295 | A = OR[295] 0x00BD (0x00017A) 0x292F- f:00024 d: 303 | OR[303] = A 0x00BE (0x00017C) 0x2128- f:00020 d: 296 | A = OR[296] 0x00BF (0x00017E) 0x2930- f:00024 d: 304 | OR[304] = A 0x00C0 (0x000180) 0x2129- f:00020 d: 297 | A = OR[297] 0x00C1 (0x000182) 0x2931- f:00024 d: 305 | OR[305] = A 0x00C2 (0x000184) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00C3 (0x000186) 0x2932- f:00024 d: 306 | OR[306] = A 0x00C4 (0x000188) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x00C5 (0x00018A) 0x5800- f:00054 d: 0 | B = A 0x00C6 (0x00018C) 0x1800-0x2518 f:00014 d: 0 | A = 9496 (0x2518) 0x00C8 (0x000190) 0x7C09- f:00076 d: 9 | R = OR[9] 0x00C9 (0x000192) 0x2120- f:00020 d: 288 | A = OR[288] 0x00CA (0x000194) 0x2529- f:00022 d: 297 | A = A + OR[297] 0x00CB (0x000196) 0x2920- f:00024 d: 288 | OR[288] = A 0x00CC (0x000198) 0x8002- f:00100 d: 2 | P = P + 2 (0x00CE), C = 0 0x00CD (0x00019A) 0x2D1F- f:00026 d: 287 | OR[287] = OR[287] + 1 0x00CE (0x00019C) 0x1004- f:00010 d: 4 | A = 4 (0x0004) 0x00CF (0x00019E) 0x2B26- f:00025 d: 294 | OR[294] = A + OR[294] 0x00D0 (0x0001A0) 0x7253- f:00071 d: 83 | P = P - 83 (0x007D) 0x00D1 (0x0001A2) 0x741F- f:00072 d: 31 | R = P + 31 (0x00F0) 0x00D2 (0x0001A4) 0x742C- f:00072 d: 44 | R = P + 44 (0x00FE) 0x00D3 (0x0001A6) 0x72CF- f:00071 d: 207 | P = P - 207 (0x0004) 0x00D4 (0x0001A8) 0x742A- f:00072 d: 42 | R = P + 42 (0x00FE) 0x00D5 (0x0001AA) 0x102A- f:00010 d: 42 | A = 42 (0x002A) 0x00D6 (0x0001AC) 0x292A- f:00024 d: 298 | OR[298] = A 0x00D7 (0x0001AE) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x00D8 (0x0001B0) 0x5800- f:00054 d: 0 | B = A 0x00D9 (0x0001B2) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00DA (0x0001B4) 0x7C09- f:00076 d: 9 | R = OR[9] 0x00DB (0x0001B6) 0x101A- f:00010 d: 26 | A = 26 (0x001A) 0x00DC (0x0001B8) 0x292A- f:00024 d: 298 | OR[298] = A 0x00DD (0x0001BA) 0x111A- f:00010 d: 282 | A = 282 (0x011A) 0x00DE (0x0001BC) 0x292B- f:00024 d: 299 | OR[299] = A 0x00DF (0x0001BE) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x00E0 (0x0001C0) 0x5800- f:00054 d: 0 | B = A 0x00E1 (0x0001C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00E2 (0x0001C4) 0x7C09- f:00076 d: 9 | R = OR[9] 0x00E3 (0x0001C6) 0x8602- f:00103 d: 2 | P = P + 2 (0x00E5), A # 0 0x00E4 (0x0001C8) 0x700B- f:00070 d: 11 | P = P + 11 (0x00EF) 0x00E5 (0x0001CA) 0x1007- f:00010 d: 7 | A = 7 (0x0007) 0x00E6 (0x0001CC) 0x292A- f:00024 d: 298 | OR[298] = A 0x00E7 (0x0001CE) 0x1001- f:00010 d: 1 | A = 1 (0x0001) 0x00E8 (0x0001D0) 0x292B- f:00024 d: 299 | OR[299] = A 0x00E9 (0x0001D2) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x00EA (0x0001D4) 0x5800- f:00054 d: 0 | B = A 0x00EB (0x0001D6) 0x1800-0x2518 f:00014 d: 0 | A = 9496 (0x2518) 0x00ED (0x0001DA) 0x7C09- f:00076 d: 9 | R = OR[9] 0x00EE (0x0001DC) 0x7213- f:00071 d: 19 | P = P - 19 (0x00DB) 0x00EF (0x0001DE) 0x0200- f:00001 d: 0 | EXIT 0x00F0 (0x0001E0) 0x211A- f:00020 d: 282 | A = OR[282] 0x00F1 (0x0001E2) 0x8602- f:00103 d: 2 | P = P + 2 (0x00F3), A # 0 0x00F2 (0x0001E4) 0x700B- f:00070 d: 11 | P = P + 11 (0x00FD) 0x00F3 (0x0001E6) 0x101B- f:00010 d: 27 | A = 27 (0x001B) 0x00F4 (0x0001E8) 0x292A- f:00024 d: 298 | OR[298] = A 0x00F5 (0x0001EA) 0x211A- f:00020 d: 282 | A = OR[282] 0x00F6 (0x0001EC) 0x292B- f:00024 d: 299 | OR[299] = A 0x00F7 (0x0001EE) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x00F8 (0x0001F0) 0x5800- f:00054 d: 0 | B = A 0x00F9 (0x0001F2) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00FA (0x0001F4) 0x7C09- f:00076 d: 9 | R = OR[9] 0x00FB (0x0001F6) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x00FC (0x0001F8) 0x291A- f:00024 d: 282 | OR[282] = A 0x00FD (0x0001FA) 0x0200- f:00001 d: 0 | EXIT 0x00FE (0x0001FC) 0x100F- f:00010 d: 15 | A = 15 (0x000F) 0x00FF (0x0001FE) 0x292A- f:00024 d: 298 | OR[298] = A 0x0100 (0x000200) 0x211B- f:00020 d: 283 | A = OR[283] 0x0101 (0x000202) 0x292B- f:00024 d: 299 | OR[299] = A 0x0102 (0x000204) 0x2119- f:00020 d: 281 | A = OR[281] 0x0103 (0x000206) 0x292C- f:00024 d: 300 | OR[300] = A 0x0104 (0x000208) 0x112A- f:00010 d: 298 | A = 298 (0x012A) 0x0105 (0x00020A) 0x5800- f:00054 d: 0 | B = A 0x0106 (0x00020C) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0107 (0x00020E) 0x7C09- f:00076 d: 9 | R = OR[9] 0x0108 (0x000210) 0x0200- f:00001 d: 0 | EXIT 0x0109 (0x000212) 0x0000- f:00000 d: 0 | PASS 0x010A (0x000214) 0x0000- f:00000 d: 0 | PASS 0x010B (0x000216) 0x0000- f:00000 d: 0 | PASS
79.695817
79
0.455725
1134e906ea348cbcc4c36c38d4c7878a96d3a5ea
203
asm
Assembly
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_key_pressed.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_key_pressed.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_key_pressed.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; int in_key_pressed(uint16_t scancode) SECTION code_input PUBLIC _in_key_pressed EXTERN asm_in_key_pressed _in_key_pressed: pop af pop hl push hl push af jp asm_in_key_pressed
10.684211
39
0.748768
8b1c9fef9714b82b6a1f378662709aa1503c967c
80
asm
Assembly
Practicas/Practica_02/codigoFuente/P2.asm
CodeRevenge/Proyecto-seminario-traductores-i
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
[ "MIT" ]
null
null
null
Practicas/Practica_02/codigoFuente/P2.asm
CodeRevenge/Proyecto-seminario-traductores-i
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
[ "MIT" ]
null
null
null
Practicas/Practica_02/codigoFuente/P2.asm
CodeRevenge/Proyecto-seminario-traductores-i
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
[ "MIT" ]
null
null
null
ORG $400 ABA ABA 15 ADCA #130 ADDD #130 ADDD 130 ADDD 256 ADDD A,23 END
8.888889
10
0.65
f05e2dbc96371e60e2fd0a9bd436ed9b97cac86b
86
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_log2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_log2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_log2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC asm_log2 EXTERN am48_log2 defc asm_log2 = am48_log2
9.555556
25
0.825581
42e26bcdf2a56ee315646372fdc057b8e7ece7e9
558
asm
Assembly
oeis/157/A157444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/157/A157444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/157/A157444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A157444: a(n) = 1331*n - 209. ; 1122,2453,3784,5115,6446,7777,9108,10439,11770,13101,14432,15763,17094,18425,19756,21087,22418,23749,25080,26411,27742,29073,30404,31735,33066,34397,35728,37059,38390,39721,41052,42383,43714,45045,46376,47707,49038,50369,51700,53031,54362,55693,57024,58355,59686,61017,62348,63679,65010,66341,67672,69003,70334,71665,72996,74327,75658,76989,78320,79651,80982,82313,83644,84975,86306,87637,88968,90299,91630,92961,94292,95623,96954,98285,99616,100947,102278,103609,104940,106271,107602,108933,110264 mul $0,1331 add $0,1122
93
500
0.804659
c3848be97137b6b839e7d5943e267495c31adfce
315
asm
Assembly
libsrc/games/c128/bit_close_ei.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/games/c128/bit_close_ei.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/games/c128/bit_close_ei.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; $Id: bit_close_ei.asm,v 1.3 2016-06-16 20:23:51 dom Exp $ ; ; TRS-80 1 bit sound functions ; ; Close sound and restore interrupts ; ; Stefano Bodrato - 8/4/2008 ; SECTION code_clib PUBLIC bit_close_ei PUBLIC _bit_close_ei EXTERN bit_close .bit_close_ei ._bit_close_ei jp bit_close
17.5
59
0.688889
10abf4213103f125a97992e1f92088bf6c29ef33
305
asm
Assembly
libsrc/_DEVELOPMENT/l/sccz80/5-z80/i64/l_i64_le.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/sccz80/crt0_longlong_z80/l_i64_le.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/sccz80/crt0_longlong_z80/l_i64_le.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_l_sccz80 PUBLIC l_i64_le EXTERN l_i64_cmp ; ;......logical operations: HL set to 0 (false) or 1 (true) .l_i64_le call l_i64_cmp ret c scf ret z ccf dec hl ret
16.052632
58
0.422951
45beff3ee000abdb1648ad1d14d2595883359b4e
596
asm
Assembly
oeis/027/A027876.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/027/A027876.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/027/A027876.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A027876: a(n) = Product_{i=1..n} (8^i - 1). ; Submitted by Christian Krause ; 1,7,441,225351,922812345,30237792108615,7926625536728661945,16623330670976050126618695,278893192683059452825059069034425,37432410397693271164043156886536608251975,40192744579703327974513031326024821900712479850425,345253046972421373486087454167687216169544498212556213551175,23725608729109172761893932652851760440319928960465005802009662144413625,13043291336835924980192290605135684592428832036326461110665998992440006142247010375 mov $1,2 lpb $0 sub $0,1 add $2,7 mul $1,$2 mul $2,8 lpe div $1,2 mov $0,$1
42.571429
432
0.852349
27276a7981a9175e5a7ff0e5ea9ea6c132802136
181
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/___hneq.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/___hneq.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/___hneq.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math16 PUBLIC ___hneq PUBLIC _isnotequalf16 EXTERN cm16_sdcc___neq defc ___hneq = cm16_sdcc___neq defc _isnotequalf16 = cm16_sdcc___neq
15.083333
41
0.740331
9f7415e18c9dcceec088d519363b1db7a14bab16
144
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w55.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w55.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w55.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_w55.asm Type: file Size: 24553 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 478CAC0F032C4EA8BFFE9BCABFC3683C8B1C52AE Description: null
20.571429
47
0.8125
605fbe6fef8cb4267d88a142879837e07ec05740
438
asm
Assembly
programs/oeis/090/A090971.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/090/A090971.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/090/A090971.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A090971: Sierpiński's triangle, read by rows, starting from 1: T(n,k) = (T(n-1,k) + T(n-1,k-1)) mod 2. ; 1,0,1,1,1,1,0,0,0,1,1,0,0,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0 add $0,1 seq $0,74909 ; Running sum of Pascal's triangle (A007318), or beheaded Pascal's triangle read by beheaded rows. mod $0,2
62.571429
201
0.59589
36945826c14397c6bcb6bc5fc60c340b7cfb4027
86
asm
Assembly
8085_programming/PROGS/3_sub.asm
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
8085_programming/PROGS/3_sub.asm
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
8085_programming/PROGS/3_sub.asm
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
MVI A, 06H ; accumulator - reg MVI B, 05H SUB B ; default storage is accumulator HLT
21.5
39
0.72093
658da604bcdf005a84539aa6bd371bf9b9dd3d4d
5,225
asm
Assembly
wof/lcs/123p/2A.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/123p/2A.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/123p/2A.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 001B7C move.l #$2000200, ($28,A0) [123p+ 7A] 001B84 addq.w #4, A7 [123p+ 28, 123p+ 2A] 007922 move.w ($6,PC,D0.w), D1 [123p+ 2A] 00795C move.b #$2, ($2a,A0) 007962 jsr $f98.w [123p+ 2A] 0079B0 move.b ($1a,PC,D0.w), ($99,A0) [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 007CB2 move.w ($6,PC,D0.w), D1 [123p+ 2A, enemy+2A] 007D44 move.b #$4, ($2a,A0) [123p+ C, 123p+ E, enemy+ C, enemy+ E] 007D4A jsr $5ebe.w [123p+ 2A, enemy+2A] 007D70 move.l #$2000000, ($28,A0) 007D78 moveq #-$10, D0 [123p+ 28, 123p+ 2A] 007FFA movea.l #$6db44, A3 [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 008230 movea.l #$6e754, A3 [123p+ 28, 123p+ 2A] 008726 movea.l #$6e754, A3 [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 008FE0 move.l #$2060000, ($28,A1) [enemy+28, enemy+2A] 008FE8 move.w A0, ($6a,A1) [123p+ 28, 123p+ 2A] 0096D2 move.l #$2040000, ($28,A0) [enemy+96] 0096DA move.l #$2060000, ($28,A1) [123p+ 28, 123p+ 2A] 00B378 bne $b400 [123p+ 28, 123p+ 2A] 01175E move.w ($6,PC,D0.w), D1 [123p+ 2A, enemy+2A] 011772 move.w ($6,PC,D0.w), D1 [123p+ 2A, enemy+2A] 0117AE move.w ($6,PC,D0.w), D1 [123p+ 2A, enemy+2A] 011AF0 move.l #$2000000, ($28,A0) 011AF8 rts [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 011D28 jmp $614c.w [123p+ 2A, enemy+2A] 0120B6 jmp $2470.w [123p+ 2A, enemy+2A] 0121D8 move.w #$200, ($2a,A0) [123p+ 18, enemy+18] 0121DE rts [123p+ 2A, enemy+2A] 01236E rts [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 0123DE move.b #$a, ($78,A0) [123p+ 28, 123p+ 2A, enemy+28, enemy+2A] 013BB8 move.l D0, ($3f24,A5) 013BBC move.l D0, ($4004,A5) 013BC0 moveq #$0, D0 017210 bne $1723e [123p+ 28, 123p+ 2A] 017224 bne $1723e [123p+ 28, 123p+ 2A] 017238 bne $1723e [123p+ 28, 123p+ 2A] 017B44 lea ($e0,A0), A0 [123p+ 28, 123p+ 2A] 01A74C dbra D7, $1a74a 01A75E dbra D4, $1a75c 01ABD0 moveq #-$10, D0 [123p+ 28, 123p+ 2A] 01ABE4 move.w ($c,PC,D0.w), D1 [123p+ 2A] 01AC78 addq.b #2, ($2a,A0) [123p+ C, 123p+ E] 01AC7C move.w #$10, D0 [123p+ 2A] 01ACE2 addq.b #2, ($2a,A0) [123p+ 1F] 01ACE6 cmpi.b #$d, (-$78,A5) [123p+ 2A] 01AE1C move.w ($12,PC,D0.w), D1 [123p+ 2A] 01AE88 move.l #$2000e00, ($28,A0) [123p+ 94] 01AE90 movea.l #$70acc, A4 [123p+ 28, 123p+ 2A] 01AECC bra $1b400 [123p+ 2A] 01AEEE move.b #$a, ($2a,A0) [123p+ 7A] 01AEF4 movea.l #$70aa0, A4 [123p+ 2A] 01AF04 move.b #$c, ($2a,A0) [123p+ A4] 01AF0A movea.l #$70984, A4 [123p+ 2A] 01AF5E move.l #$2040000, ($28,A1) [123p+ 2A] 01B026 rts [123p+ 2A] 01B070 bclr #$7, (A0) 01B1F4 move.l #$2000c06, ($28,A0) [123p+ 40] 01B1FC movea.l #$708e0, A4 [123p+ 28, 123p+ 2A] 01B2F6 movea.l #$707fe, A4 [123p+ 2A] 01B314 beq $1b31a 01B31A rts [123p+ 2A] 01B3C2 move.l #$2000e00, ($28,A0) [123p+ 94] 01B3CA movea.l #$70ad6, A4 [123p+ 28, 123p+ 2A] 01B3FA move.w D0, ($94,A0) 01B4EE rts [123p+ 2A] 01B556 move.b ($2a,A0), D0 [123p+ 68] 01B55A move.w ($12,PC,D0.w), D1 [123p+ 2A] 01B614 move.w #$200, ($2a,A0) [enemy+74] 01B61A rts [123p+ 2A] 01B626 move.w #$600, ($2a,A0) [enemy+ 0] 01B62C rts [123p+ 2A] 01B744 rts [123p+ 28, 123p+ 2A] 01BA92 jmp $305a.l [123p+ 28, 123p+ 2A] 01BAAE move.l D0, ($28,A0) 01BAB2 rts 01BAE0 bmi $1bb08 [123p+ 2A] 01BAF2 jmp $25c8.l [123p+ 2A] 01BB08 rts [123p+ 2A] 01BCB4 move.b ($2a,A0), D0 [123p+ 86] 01BCB8 move.w ($e,PC,D0.w), D1 [123p+ 2A] 01BD84 move.l #$2001000, ($28,A0) [123p+ 64, 123p+ 66] 01BD8C movea.l #$75ecc, A4 [123p+ 28, 123p+ 2A] 01BDC2 bra $1c074 [123p+ 2A] 01BDE8 move.b #$a, ($2a,A0) [123p+ 1F] 01BDEE movea.l #$75f02, A4 [123p+ 2A] 01BDFC move.b #$c, ($2a,A0) [123p+ A4] 01BE02 movea.l #$75da2, A4 [123p+ 2A] 01BE60 rts [123p+ 2A] 01BE7E bclr #$7, (A0) 01BF90 movea.l #$75ca8, A4 [123p+ 2A] 01BFAA beq $1bfb0 01BFB0 rts [123p+ 2A] 01C06E move.w D0, ($94,A0) 01C166 rts [123p+ 2A] 01C1CC move.b ($2a,A0), D0 [123p+ 68] 01C1D0 move.w ($e,PC,D0.w), D1 [123p+ 2A] 01C2CC move.w #$200, ($2a,A0) [enemy+74] 01C2D2 rts [123p+ 2A] 01C2F2 bset #$7, (A1) [123p+ 2A] 01C306 bsr $1ca26 [123p+ 2A] 01C43C rts [123p+ 28, 123p+ 2A] 01C666 rts [123p+ 28, 123p+ 2A] 01C982 move.l #$2080000, ($28,A1) [123p+ 28, 123p+ 2A] 01CB58 move.b ($2a,A0), D0 [123p+ 86] 01CB5C move.w ($e,PC,D0.w), D1 [123p+ 2A] 01CBE8 movea.l #$72d40, A4 [123p+ 28, 123p+ 2A] 01CC1E bra $1cfee [123p+ 2A] 01CC38 move.b #$a, ($2a,A0) [123p+ 7A] 01CC3E movea.l #$72f44, A4 [123p+ 2A] 01CC50 move.b #$c, ($2a,A0) [123p+ A4] 01CC56 movea.l #$72de8, A4 [123p+ 2A] 01CC94 bclr #$7, (A0) 01CE5A movea.l #$72ce2, A4 [123p+ 2A] 01CF38 rts [123p+ 2A] 01CFE4 move.w D0, ($94,A0) 01D0FA rts [123p+ 2A] 01D146 move.b ($2a,A0), D0 [123p+ 68] 01D14A move.w ($e,PC,D0.w), D1 [123p+ 2A] 01D1F2 move.w #$200, ($2a,A0) [enemy+74] 01D1F8 bset #$7, (A1) [123p+ 2A] 01D208 move.l #$2001000, ($28,A0) [123p+ A4] 01D210 movea.l #$72de8, A4 [123p+ 28, 123p+ 2A] 01D294 movea.l #$72ce2, A4 [123p+ 28, 123p+ 2A] 01D324 rts [123p+ 28, 123p+ 2A] 01EAB6 addq.w #4, A7 [123p+ 2A] 0214C6 bne $214f0 [123p+ 28, 123p+ 2A] copyright zengfr site:http://github.com/zengfr/romhack
39.885496
80
0.598852
a8d1811d6d90532f1e0b3d7aa79f3dc207aa6ee5
402
asm
Assembly
code/lab5_5.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
code/lab5_5.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
code/lab5_5.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
assume cs:code a segment dw 1, 2, 3, 4, 5, 6, 7, 8, 9, 0ah, 0bh, 0ch, 0dh, 0eh, 0fh, 0ffh a ends b segment dw 0, 0, 0, 0, 0, 0, 0, 0 b ends code segment start: mov ax,b mov ss,ax mov sp,16 ;注意这里一定要设为16,放在栈顶 mov ax,a mov ds,ax mov cx,8 mov bx,0 s: push [bx] add bx,2 loop s mov ax,4c00h int 21h code ends end start
14.357143
64
0.514925
045e89cd8757082a8c6054af19df241846f223e0
1,836
asm
Assembly
programs/oeis/102/A102446.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/102/A102446.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/102/A102446.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A102446: a(n) = a(n-1) + 4*a(n-2) for n>1, a(0) = a(1) = 2. ; 2,2,10,18,58,130,362,882,2330,5858,15178,38610,99322,253762,651050,1666098,4270298,10934690,28015882,71754642,183818170,470836738,1206109418,3089456370,7913894042,20271719522,51927295690,133014173778,340723356538,872780051650,2235673477802,5726793684402,14669487595610,37576662333218,96254612715658,246561262048530,631579712911162,1617824761105282,4144143612749930,10615442657171058,27192017108170778,69653787736855010,178421856169538122,457037007116958162,1170724431795110650,2998872460262943298,7681770187443385898,19677260028495159090,50404340778268702682,129113380892249339042,330730744005324149770,847184267574321505938,2170107243595618105018,5558844313892904128770,14239273288275376548842,36474650543846993063922,93431743696948499259290,239330345872336471514978,613057320660130468552138,1570378704149476354612050,4022607986789998228820602,10304122803387903647268802,26394554750547896562551210,67611045964099511151626418,173189264966291097401831258,443633448822689142008336930,1136390508687853531615661962,2910924303978610099649009682,7456486338730024226111657530,19100183554644464624707696258,48926128909564561529154326378,125326863128142420027985111410,321031378766400666144602416922,822338831278970346256542862562,2106464346344573010834952530250,5395819671460454395861123980498,13821677056838746439200934101498,35404955742680564022645430023490,90691663970035549779449166429482,232311486940757805870030886523442,595078142820900004987827552241370,1524324090583931228467951098335138,3904636661867531248419261307300618,10001933024203256162291065700641170,25620479671673381155968110929843642,65628211768486405805132373732408322,168110130455179930429004817451782890,430622977529125553649534312381416178 seq $0,6131 ; a(n) = a(n-1) + 4*a(n-2), a(0) = a(1) = 1. mul $0,2
306
1,706
0.909586
7fadcb9eaccb9fad6c65dedd4738c1b3fbb072ea
5,482
asm
Assembly
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1857.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1857.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1857.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1e49b, %rdi nop nop nop nop nop add $46988, %rax mov (%rdi), %bx nop nop nop nop sub %r12, %r12 lea addresses_D_ht+0xa3b, %rcx sub $26613, %r10 mov $0x6162636465666768, %r13 movq %r13, %xmm2 vmovups %ymm2, (%rcx) nop nop nop nop cmp $62079, %r10 lea addresses_A_ht+0x126d4, %rsi lea addresses_D_ht+0x1ef9b, %rdi nop nop nop xor $62231, %rax mov $126, %rcx rep movsq nop nop nop nop add %r12, %r12 lea addresses_UC_ht+0xef6f, %rsi lea addresses_WT_ht+0x15d47, %rdi clflush (%rdi) add %r10, %r10 mov $71, %rcx rep movsl nop nop and %r10, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %rax push %rbx push %rdi push %rsi // Load mov $0x2586670000000f9b, %rbx nop xor $7814, %rsi mov (%rbx), %eax nop and $48201, %rax // Load mov $0xf1b, %rbx nop nop nop nop xor %r8, %r8 movups (%rbx), %xmm3 vpextrq $0, %xmm3, %r11 nop and %rsi, %rsi // Faulty Load mov $0x2586670000000f9b, %rbx nop nop nop nop cmp %r11, %r11 vmovups (%rbx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r8 lea oracles, %r11 and $0xff, %r8 shlq $12, %r8 mov (%r11,%r8,1), %r8 pop %rsi pop %rdi pop %rbx pop %rax pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_P', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': True}} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'45': 21148, '00': 681} 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 */
41.218045
2,999
0.656512
0055fca9eb2a4ca9ce097fda2a75d8415720e575
8,214
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_1553.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_1553.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_1553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1c07b, %rsi add %r15, %r15 movb $0x61, (%rsi) nop dec %r10 lea addresses_A_ht+0xd56b, %rbp nop nop nop nop nop xor %r9, %r9 movb (%rbp), %r14b nop xor %rsi, %rsi lea addresses_UC_ht+0xec7f, %rsi lea addresses_D_ht+0x1c8eb, %rdi nop nop nop add $55009, %r10 mov $75, %rcx rep movsb nop nop nop nop add %r10, %r10 lea addresses_WC_ht+0x165b3, %rcx nop nop xor %rsi, %rsi movb (%rcx), %r9b nop cmp $46612, %r14 lea addresses_UC_ht+0x6a8b, %r12 nop nop nop and %rsi, %rsi movb $0x61, (%r12) nop nop nop nop nop xor %r12, %r12 lea addresses_normal_ht+0x636b, %rsi lea addresses_UC_ht+0x1e96b, %rdi nop nop nop nop cmp %rbp, %rbp mov $126, %rcx rep movsw cmp %r14, %r14 lea addresses_D_ht+0x1b692, %rdi dec %rbp movw $0x6162, (%rdi) nop nop nop nop nop add %r12, %r12 lea addresses_D_ht+0x11f9b, %rsi lea addresses_WC_ht+0x1096b, %rdi nop nop nop sub %r12, %r12 mov $124, %rcx rep movsq nop nop nop nop nop add %rdi, %rdi lea addresses_A_ht+0xbb6b, %rsi lea addresses_normal_ht+0x1bbd7, %rdi nop nop inc %r12 mov $2, %rcx rep movsl nop nop nop nop nop inc %rbp lea addresses_normal_ht+0x14f6b, %rsi lea addresses_normal_ht+0x104eb, %rdi nop nop xor $5410, %r9 mov $78, %rcx rep movsw cmp $36668, %r15 lea addresses_normal_ht+0xdd6b, %rbp nop nop sub $23910, %rdi movb $0x61, (%rbp) nop nop nop inc %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_A+0x554b, %r8 add $7069, %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm2 movups %xmm2, (%r8) xor $13192, %r13 // Load lea addresses_UC+0x16d6b, %r8 nop nop nop nop nop and %r11, %r11 mov (%r8), %r13d nop inc %r8 // REPMOV lea addresses_UC+0xaab, %rsi lea addresses_D+0x1e36b, %rdi sub $2657, %r8 mov $54, %rcx rep movsb nop nop xor %r10, %r10 // Store lea addresses_D+0x144ab, %rcx nop nop nop nop nop xor %rbx, %rbx movl $0x51525354, (%rcx) nop nop nop nop nop inc %rbx // Store lea addresses_RW+0x1470b, %rdi nop and %r8, %r8 movl $0x51525354, (%rdi) nop nop nop sub %r13, %r13 // Load lea addresses_normal+0x552b, %rcx and %r11, %r11 mov (%rcx), %r13w nop nop nop nop cmp %r8, %r8 // Faulty Load lea addresses_US+0x1b36b, %rax cmp $44527, %r8 movb (%rax), %r11b lea oracles, %rdi and $0xff, %r11 shlq $12, %r11 mov (%rdi,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_RW', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'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 */
31.961089
2,999
0.654005
420b2aafe6aa0a76a5eae58a8eee72457ef9be23
897
asm
Assembly
programs/oeis/044/A044911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/044/A044911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/044/A044911.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A044911: Numbers n such that base 10 run lengths alternate: odd, even, odd,... ; 1,2,3,4,5,6,7,8,9,100,111,122,133,144,155,166,177,188,199,200,211,222,233,244,255,266,277,288,299,300,311,322,333,344,355,366,377,388,399,400,411,422,433,444,455,466,477,488,499,500 mov $15,$0 mov $17,$0 add $17,1 lpb $17 mov $0,$15 sub $17,1 sub $0,$17 mov $11,$0 mov $13,2 lpb $13 clr $0,11 mov $0,$11 sub $13,1 add $0,$13 sub $0,1 lpb $0 mov $2,$0 mov $0,8 add $2,9 mov $4,$2 mov $10,9 mul $10,$2 trn $2,$10 add $2,1 sub $4,8 mov $10,$4 lpe mov $0,$10 div $0,10 mov $1,$10 sub $1,$0 trn $1,1 add $1,$2 mov $14,$13 lpb $14 mov $12,$1 sub $14,1 lpe lpe lpb $11 mov $11,0 sub $12,$1 lpe mov $1,$12 mul $1,10 add $1,1 add $16,$1 lpe mov $1,$16
16.924528
183
0.505017
58be4b1a6b77a2a43e8b19951e19c6c2b20fd897
1,978
asm
Assembly
programs/oeis/162/A162256.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/162/A162256.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/162/A162256.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A162256: a(n) = (2*n^3 + 5*n^2 - 3*n)/2. ; 2,15,45,98,180,297,455,660,918,1235,1617,2070,2600,3213,3915,4712,5610,6615,7733,8970,10332,11825,13455,15228,17150,19227,21465,23870,26448,29205,32147,35280,38610,42143,45885,49842,54020,58425,63063,67940,73062,78435,84065,89958,96120,102557,109275,116280,123578,131175,139077,147290,155820,164673,173855,183372,193230,203435,213993,224910,236192,247845,259875,272288,285090,298287,311885,325890,340308,355145,370407,386100,402230,418803,435825,453302,471240,489645,508523,527880,547722,568055,588885,610218,632060,654417,677295,700700,724638,749115,774137,799710,825840,852533,879795,907632,936050,965055,994653,1024850,1055652,1087065,1119095,1151748,1185030,1218947,1253505,1288710,1324568,1361085,1398267,1436120,1474650,1513863,1553765,1594362,1635660,1677665,1720383,1763820,1807982,1852875,1898505,1944878,1992000,2039877,2088515,2137920,2188098,2239055,2290797,2343330,2396660,2450793,2505735,2561492,2618070,2675475,2733713,2792790,2852712,2913485,2975115,3037608,3100970,3165207,3230325,3296330,3363228,3431025,3499727,3569340,3639870,3711323,3783705,3857022,3931280,4006485,4082643,4159760,4237842,4316895,4396925,4477938,4559940,4642937,4726935,4811940,4897958,4984995,5073057,5162150,5252280,5343453,5435675,5528952,5623290,5718695,5815173,5912730,6011372,6111105,6211935,6313868,6416910,6521067,6626345,6732750,6840288,6948965,7058787,7169760,7281890,7395183,7509645,7625282,7742100,7860105,7979303,8099700,8221302,8344115,8468145,8593398,8719880,8847597,8976555,9106760,9238218,9370935,9504917,9640170,9776700,9914513,10053615,10194012,10335710,10478715,10623033,10768670,10915632,11063925,11213555,11364528,11516850,11670527,11825565,11981970,12139748,12298905,12459447,12621380,12784710,12949443,13115585,13283142,13452120,13622525,13794363,13967640,14142362,14318535,14496165,14675258,14855820,15037857,15221375,15406380,15592878,15780875 mov $1,$0 mul $0,2 add $0,6 bin $0,2 sub $0,2 mul $1,$0 div $1,2 add $1,2
164.833333
1,859
0.842265
9f45cbee2ec620fb1152d4ebb57ab22062a40841
122,056
asm
Assembly
src/arts.asm
poggeroni/mips-poggers
d5752bc3ce472475c4183e3b2b4203513e3363f7
[ "MIT" ]
null
null
null
src/arts.asm
poggeroni/mips-poggers
d5752bc3ce472475c4183e3b2b4203513e3363f7
[ "MIT" ]
null
null
null
src/arts.asm
poggeroni/mips-poggers
d5752bc3ce472475c4183e3b2b4203513e3363f7
[ "MIT" ]
null
null
null
.data .globl asciin asciin: .word 32977 .globl ascii ascii: .ascii "            .:;+++++++;:.       .::;;+++;:.                   \n         .;=========+++++;:. .;=========+++;;;;;:.            \n       :+===x=++++++=====++++;;::+=========+;++++==++;:.      \n     :+====;;+======;;+;;;++++++++++;;=+;;+++==xxxxxxx=+;;.   \n    ;+====+======;;++=xX&########$X=+;:==;=$###########&&X=:  \n   +++=========;+=;x###########$=;;+=Xx+;&##########=.   .+&x.\n  ;++=========+++=###########&:       ;&+$#########;.= :+. :#$\n .+++=======;x&##############; ;$ +$X. =#;#########. : X#x .#&\n :+++=======+=xX&############;    =$X. =#;$########$:..   .$#x\n +++============++X###########; :.    +#X;++X&#######$xxx$#X; \n.+++============+==+x&#########&x=+=X#$;+====++=xxxXXXXx==+;  \n.+++=============;;+=++=x$&######&$x=+;;======++;+++++++;:.   \n:+++==============x=+;++++++++++++==+;;================+;.    \n:+++======================++++++;;;+===========xx=====xx===+. \n:+++===============================x==++++++++++++++++++++++: \n:+++==========================++++++==xxXXXXxx=========xXXXx. \n:+++=====================++++=xXXXxx=+=======xXX$&&&&&&;xX+.  \n.++++================;;+=xXXx=+++++=xxxXXXXXXXXXX$&&&&==X:    \n ++++================:XXX++;;+=xxxxxxxxXXXXXXXXXX$&&&==X=     \n ;+++===============x:Xx:+=====xxxxxxxxXXXXXXXXXX$&&&+xX=     \n :++++===============:x=:=====xxxxxxxXXXXXXXXXXX$&&&&=xX=     \n  +++++===============:X=;;+xxxxxxxxXXXXXXXXXXX$&&&&&x+Xx     \n  .++++================;xXX+;xxxxxXXXXXXXXXXX$&&&&&&&$;xx     \n   :++++================++xXx;=XXXXXXXXXXX$$&&&&&&&&&&:Xx     \n    .+++++================;+XX=+=XXXXX$$$&&&&&&&&&&&&&;Xx     \n      ;++++=================;=xXx++=$&&&&&&&&&&&&&&&&X;Xx     \n       .;++++=================++=xXx===x$&&&&&&&$Xx===XXx     \n         .;++++==================+++xXXX==+======xxXXXx=:     \n           .:;++++==================+++++++====++++++;.       \n                .::;;+==========================x==+:.        \n\n" .globl pixeln pixeln: .word 58970 .globl pixel pixel: .ascii "[?25l           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄     ▄▄▄▄▄▄▄▄▄▄▄▄▄                 \n        ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄          \n      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  \n   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀   \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀  \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n  ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n   ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n      ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    \n        ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀    \n          ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀     \n             ▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀       \n                    ▀▀▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀          \n[?25h\n" .globl blockn blockn: .word 36063 .globl block block: .ascii "             ░░░▒▒▒▒▒░░░          ░░░░░░░░                    \n          ░▒▒▒▒▒▒▒▒▒▒▒░░░░░   ░▒▒▒▒▒▒▒▒▒▒░░░░░░░░             \n       ░▒▒▒▒▒▒░░░░░▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒░░░░░▒▒▒▒░░░       \n     ░▒▒▒▒▒░░▒▒▒▒▒▒▒░░░░░░░▒▒▒▒░░▒▒░░░▒▒░░░▒░▒▒▒▓▓▓▓▓▒▒▒░░    \n    ░▒▒▒▒▒░▒▒▒▒▒▒░░▒░▒▒▓█████████▓▓▒▒░░▒▒░▒▓█████████████▓▒░  \n   ░▒▒▒▒▒▒▒▒▒▒▒░▒▒░▒███████████▓▒░░░▒▓▒░░███████████▒     ▒█▓ \n  ░▒▒▒▒▒▒▒▒▒▒▒▒░▒▒████████████░       ░█▒▓█████████░ ▒ ░▒  ░█▓\n  ▒▒▒▒▒▒▒▒▒▒░▓███████████████░ ░▓ ▒▓▓  ▒█░█████████  ░ ▓█▒  ██\n ░▒▒▒▒▒▒▒▒▒▒░▒▒▓█████████████░    ▒▓▓  ▒█░▓█████████░      ▓█▓\n ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓███████████░ ░     ▒█▓░░▒▓█████████▓▒▓▓█▓░ \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒░▒███████████▓▒▒▒▓█▓░░▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▒▒░░  \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▒▒▒▓▓████████▓▓▒░░░▒▒▒▒▒▒░░░░░░░░░░░░    \n░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒░░░▒▒▒░▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░     \n░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░  \n░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░  \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▓▓▓▒  \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▓▓███████░▓▓▒   \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▓▓▓▓▒▒▒▒░▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓████▒▒▓░    \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▓▓▓▒░░░▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓███▒▒▓▒     \n ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▓▓░▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓███▒▒▓▒     \n ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓████▒▒▓▒     \n  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▓▒░░▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓█████▓▒▓▒     \n   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▓▓▒░▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓███████▓░▓▓     \n   ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▓▓▒░▒▓▓▓▓▓▓▓▓▓▓▓▓▓██████████░▓▓     \n     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▓▓▒▒▒▓▓▓▓▓▓▓▓█████████████░▓▓     \n      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▓▓▒▒▒▒▓████████████████▓░▓▓     \n        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▓▓▓▒▒▒▒▓███████▓▓▓▒▒▒▓▓▒     \n          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▒░     \n            ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░        \n                 ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░         \n\n"
7,179.764706
55,853
0.614079
4e157f6581e1f45183ea7ced01aaef1886ed999c
4,110
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_43_1345.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_43_1345.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_43_1345.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x19d99, %r14 add $29630, %rbp mov $0x6162636465666768, %r8 movq %r8, %xmm4 movups %xmm4, (%r14) nop nop nop nop nop add %rdi, %rdi lea addresses_D_ht+0x3a79, %rsi nop nop xor $52786, %rcx vmovups (%rsi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r10 nop sub $34414, %rcx lea addresses_A_ht+0x18809, %rsi nop nop nop dec %rcx movw $0x6162, (%rsi) nop nop nop nop xor %r14, %r14 lea addresses_normal_ht+0x2479, %rdi clflush (%rdi) nop cmp %r14, %r14 movw $0x6162, (%rdi) nop nop nop nop nop sub %r8, %r8 lea addresses_A_ht+0x7479, %r14 nop nop nop cmp $12647, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 and $0xffffffffffffffc0, %r14 movaps %xmm3, (%r14) nop cmp $21804, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r15 push %rdi push %rdx // Store lea addresses_UC+0xd079, %r13 clflush (%r13) nop nop nop nop add %rdx, %rdx mov $0x5152535455565758, %r12 movq %r12, (%r13) dec %rdx // Load lea addresses_PSE+0x1c79, %rdi and %r15, %r15 vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r12 // Exception!!! nop mov (0), %rdi nop nop nop nop and %rdi, %rdi // Load lea addresses_PSE+0x1c79, %r11 nop dec %r10 mov (%r11), %r12 nop nop nop nop nop sub %r11, %r11 // Store lea addresses_A+0x1f879, %r10 clflush (%r10) xor %r11, %r11 movw $0x5152, (%r10) and %rdi, %rdi // Store lea addresses_US+0x16115, %r11 nop nop xor %rdi, %rdi movb $0x51, (%r11) nop nop xor $6275, %rdi // Store lea addresses_UC+0xcbf9, %rdx nop nop add $44706, %r10 mov $0x5152535455565758, %r13 movq %r13, %xmm0 vmovups %ymm0, (%rdx) nop nop nop nop nop dec %rdx // Load mov $0x690b4a0000000a79, %r10 nop nop nop and $22692, %rdx mov (%r10), %edi nop nop nop nop nop and $18511, %r11 // Faulty Load lea addresses_PSE+0x1c79, %r13 nop dec %rdi mov (%r13), %r10w lea oracles, %r15 and $0xff, %r10 shlq $12, %r10 mov (%r15,%r10,1), %r10 pop %rdx pop %rdi pop %r15 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}} {'33': 43} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
19.759615
129
0.641606
246870e4166212db402ce9873873fd0bb61fb4a9
402
asm
Assembly
oeis/082/A082110.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/082/A082110.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/082/A082110.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A082110: Array T(n,k) = k^2*n^2+5*k*n+1, read by antidiagonals. ; Submitted by Jon Maiga ; 1,1,1,1,7,1,1,15,15,1,1,25,37,25,1,1,37,67,67,37,1,1,51,105,127,105,51,1,1,67,151,205,205,151,67,1,1,85,205,301,337,301,205,85,1,1,105,267,415,501,501,415,267,105,1,1,127,337,547,697,751,697,547,337,127,1,1 lpb $0 add $1,1 sub $0,$1 lpe sub $1,$0 mul $1,$0 mov $0,$1 add $0,2 pow $0,2 add $0,$1 sub $0,3
25.125
208
0.629353
5f3e0a43c2e8e469bbff0923414fd4de22cf8c68
5,060
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1475.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1475.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1475.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 %r15 push %r9 push %rbx push %rsi lea addresses_WC_ht+0x16819, %r9 nop nop nop nop cmp $44795, %rsi mov $0x6162636465666768, %rbx movq %rbx, %xmm2 vmovups %ymm2, (%r9) nop sub %r15, %r15 pop %rsi pop %rbx pop %r9 pop %r15 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_UC+0x6c99, %rsi lea addresses_WT+0x3d39, %rdi sub %r11, %r11 mov $110, %rcx rep movsl nop nop nop nop nop xor $48598, %r11 // Load mov $0x50f2f10000000e19, %r15 nop nop nop xor $13116, %r8 mov (%r15), %si nop nop nop nop nop dec %rdi // Load lea addresses_RW+0x11459, %r8 nop nop nop add %r11, %r11 mov (%r8), %r15d nop nop nop nop dec %rdi // Store lea addresses_normal+0x9719, %r11 dec %rdi movl $0x51525354, (%r11) nop nop nop nop nop inc %rdi // Faulty Load lea addresses_WT+0x12f19, %r8 nop nop nop nop nop add $25574, %rcx mov (%r8), %edi lea oracles, %r15 and $0xff, %rdi shlq $12, %rdi mov (%r15,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
41.47541
2,999
0.657312
10ed9b0fdf951f4db9879fedb968bd5d416f6c96
562
asm
Assembly
oeis/060/A060787.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060787.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060787.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060787: a(n) = 18*(n-2)*(2*n-5). ; 0,18,108,270,504,810,1188,1638,2160,2754,3420,4158,4968,5850,6804,7830,8928,10098,11340,12654,14040,15498,17028,18630,20304,22050,23868,25758,27720,29754,31860,34038,36288,38610,41004,43470,46008,48618,51300,54054,56880,59778,62748,65790,68904,72090,75348,78678,82080,85554,89100,92718,96408,100170,104004,107910,111888,115938,120060,124254,128520,132858,137268,141750,146304,150930,155628,160398,165240,170154,175140,180198,185328,190530,195804,201150,206568,212058,217620,223254,228960,234738 mul $0,2 bin $0,2 mul $0,18
80.285714
496
0.791815