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
eb5b2a5a160e1e5a39a1990ca04c129bdc6520cf
635,128
asm
Assembly
kernel.asm
personalsreeharsha2002/xv6OSassign
8244e8eee5dd294e1ca474f3b25ad3e179882176
[ "MIT-0" ]
null
null
null
kernel.asm
personalsreeharsha2002/xv6OSassign
8244e8eee5dd294e1ca474f3b25ad3e179882176
[ "MIT-0" ]
null
null
null
kernel.asm
personalsreeharsha2002/xv6OSassign
8244e8eee5dd294e1ca474f3b25ad3e179882176
[ "MIT-0" ]
1
2020-11-02T17:50:03.000Z
2020-11-02T17:50:03.000Z
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # Turn on page size extension for 4Mbyte pages movl %cr4, %eax 8010000c: 0f 20 e0 mov %cr4,%eax orl $(CR4_PSE), %eax 8010000f: 83 c8 10 or $0x10,%eax movl %eax, %cr4 80100012: 0f 22 e0 mov %eax,%cr4 # Set page directory movl $(V2P_WO(entrypgdir)), %eax 80100015: b8 00 a0 10 00 mov $0x10a000,%eax movl %eax, %cr3 8010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax 8010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PG|CR0_WP), %eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax movl %eax, %cr0 80100025: 0f 22 c0 mov %eax,%cr0 # Set up the stack pointer. movl $(stack + KSTACKSIZE), %esp 80100028: bc c0 c5 10 80 mov $0x8010c5c0,%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 50 30 10 80 mov $0x80103050,%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: f3 0f 1e fb endbr32 80100044: 55 push %ebp 80100045: 89 e5 mov %esp,%ebp 80100047: 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++){ 80100048: bb f4 c5 10 80 mov $0x8010c5f4,%ebx { 8010004d: 83 ec 0c sub $0xc,%esp initlock(&bcache.lock, "bcache"); 80100050: 68 00 79 10 80 push $0x80107900 80100055: 68 c0 c5 10 80 push $0x8010c5c0 8010005a: e8 b1 4a 00 00 call 80104b10 <initlock> bcache.head.next = &bcache.head; 8010005f: 83 c4 10 add $0x10,%esp 80100062: b8 bc 0c 11 80 mov $0x80110cbc,%eax bcache.head.prev = &bcache.head; 80100067: c7 05 0c 0d 11 80 bc movl $0x80110cbc,0x80110d0c 8010006e: 0c 11 80 bcache.head.next = &bcache.head; 80100071: c7 05 10 0d 11 80 bc movl $0x80110cbc,0x80110d10 80100078: 0c 11 80 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 8010007b: eb 05 jmp 80100082 <binit+0x42> 8010007d: 8d 76 00 lea 0x0(%esi),%esi 80100080: 89 d3 mov %edx,%ebx b->next = bcache.head.next; 80100082: 89 43 54 mov %eax,0x54(%ebx) b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); 80100085: 83 ec 08 sub $0x8,%esp 80100088: 8d 43 0c lea 0xc(%ebx),%eax b->prev = &bcache.head; 8010008b: c7 43 50 bc 0c 11 80 movl $0x80110cbc,0x50(%ebx) initsleeplock(&b->lock, "buffer"); 80100092: 68 07 79 10 80 push $0x80107907 80100097: 50 push %eax 80100098: e8 33 49 00 00 call 801049d0 <initsleeplock> bcache.head.next->prev = b; 8010009d: a1 10 0d 11 80 mov 0x80110d10,%eax for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000a2: 8d 93 5c 02 00 00 lea 0x25c(%ebx),%edx 801000a8: 83 c4 10 add $0x10,%esp bcache.head.next->prev = b; 801000ab: 89 58 50 mov %ebx,0x50(%eax) bcache.head.next = b; 801000ae: 89 d8 mov %ebx,%eax 801000b0: 89 1d 10 0d 11 80 mov %ebx,0x80110d10 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000b6: 81 fb 60 0a 11 80 cmp $0x80110a60,%ebx 801000bc: 75 c2 jne 80100080 <binit+0x40> } } 801000be: 8b 5d fc mov -0x4(%ebp),%ebx 801000c1: c9 leave 801000c2: c3 ret 801000c3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801000ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801000d0 <bread>: } // Return a locked buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801000d0: f3 0f 1e fb endbr32 801000d4: 55 push %ebp 801000d5: 89 e5 mov %esp,%ebp 801000d7: 57 push %edi 801000d8: 56 push %esi 801000d9: 53 push %ebx 801000da: 83 ec 18 sub $0x18,%esp 801000dd: 8b 7d 08 mov 0x8(%ebp),%edi 801000e0: 8b 75 0c mov 0xc(%ebp),%esi acquire(&bcache.lock); 801000e3: 68 c0 c5 10 80 push $0x8010c5c0 801000e8: e8 a3 4b 00 00 call 80104c90 <acquire> for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000ed: 8b 1d 10 0d 11 80 mov 0x80110d10,%ebx 801000f3: 83 c4 10 add $0x10,%esp 801000f6: 81 fb bc 0c 11 80 cmp $0x80110cbc,%ebx 801000fc: 75 0d jne 8010010b <bread+0x3b> 801000fe: eb 20 jmp 80100120 <bread+0x50> 80100100: 8b 5b 54 mov 0x54(%ebx),%ebx 80100103: 81 fb bc 0c 11 80 cmp $0x80110cbc,%ebx 80100109: 74 15 je 80100120 <bread+0x50> if(b->dev == dev && b->blockno == blockno){ 8010010b: 3b 7b 04 cmp 0x4(%ebx),%edi 8010010e: 75 f0 jne 80100100 <bread+0x30> 80100110: 3b 73 08 cmp 0x8(%ebx),%esi 80100113: 75 eb jne 80100100 <bread+0x30> b->refcnt++; 80100115: 83 43 4c 01 addl $0x1,0x4c(%ebx) release(&bcache.lock); 80100119: eb 3f jmp 8010015a <bread+0x8a> 8010011b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010011f: 90 nop for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100120: 8b 1d 0c 0d 11 80 mov 0x80110d0c,%ebx 80100126: 81 fb bc 0c 11 80 cmp $0x80110cbc,%ebx 8010012c: 75 0d jne 8010013b <bread+0x6b> 8010012e: eb 70 jmp 801001a0 <bread+0xd0> 80100130: 8b 5b 50 mov 0x50(%ebx),%ebx 80100133: 81 fb bc 0c 11 80 cmp $0x80110cbc,%ebx 80100139: 74 65 je 801001a0 <bread+0xd0> 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 7b 04 mov %edi,0x4(%ebx) b->blockno = blockno; 8010014a: 89 73 08 mov %esi,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: 83 ec 0c sub $0xc,%esp 8010015d: 68 c0 c5 10 80 push $0x8010c5c0 80100162: e8 e9 4b 00 00 call 80104d50 <release> acquiresleep(&b->lock); 80100167: 8d 43 0c lea 0xc(%ebx),%eax 8010016a: 89 04 24 mov %eax,(%esp) 8010016d: e8 9e 48 00 00 call 80104a10 <acquiresleep> return b; 80100172: 83 c4 10 add $0x10,%esp struct buf *b; b = bget(dev, blockno); if((b->flags & B_VALID) == 0) { 80100175: f6 03 02 testb $0x2,(%ebx) 80100178: 74 0e je 80100188 <bread+0xb8> iderw(b); } return b; } 8010017a: 8d 65 f4 lea -0xc(%ebp),%esp 8010017d: 89 d8 mov %ebx,%eax 8010017f: 5b pop %ebx 80100180: 5e pop %esi 80100181: 5f pop %edi 80100182: 5d pop %ebp 80100183: c3 ret 80100184: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi iderw(b); 80100188: 83 ec 0c sub $0xc,%esp 8010018b: 53 push %ebx 8010018c: e8 ff 20 00 00 call 80102290 <iderw> 80100191: 83 c4 10 add $0x10,%esp } 80100194: 8d 65 f4 lea -0xc(%ebp),%esp 80100197: 89 d8 mov %ebx,%eax 80100199: 5b pop %ebx 8010019a: 5e pop %esi 8010019b: 5f pop %edi 8010019c: 5d pop %ebp 8010019d: c3 ret 8010019e: 66 90 xchg %ax,%ax panic("bget: no buffers"); 801001a0: 83 ec 0c sub $0xc,%esp 801001a3: 68 0e 79 10 80 push $0x8010790e 801001a8: e8 e3 01 00 00 call 80100390 <panic> 801001ad: 8d 76 00 lea 0x0(%esi),%esi 801001b0 <bwrite>: // Write b's contents to disk. Must be locked. void bwrite(struct buf *b) { 801001b0: f3 0f 1e fb endbr32 801001b4: 55 push %ebp 801001b5: 89 e5 mov %esp,%ebp 801001b7: 53 push %ebx 801001b8: 83 ec 10 sub $0x10,%esp 801001bb: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001be: 8d 43 0c lea 0xc(%ebx),%eax 801001c1: 50 push %eax 801001c2: e8 e9 48 00 00 call 80104ab0 <holdingsleep> 801001c7: 83 c4 10 add $0x10,%esp 801001ca: 85 c0 test %eax,%eax 801001cc: 74 0f je 801001dd <bwrite+0x2d> panic("bwrite"); b->flags |= B_DIRTY; 801001ce: 83 0b 04 orl $0x4,(%ebx) iderw(b); 801001d1: 89 5d 08 mov %ebx,0x8(%ebp) } 801001d4: 8b 5d fc mov -0x4(%ebp),%ebx 801001d7: c9 leave iderw(b); 801001d8: e9 b3 20 00 00 jmp 80102290 <iderw> panic("bwrite"); 801001dd: 83 ec 0c sub $0xc,%esp 801001e0: 68 1f 79 10 80 push $0x8010791f 801001e5: e8 a6 01 00 00 call 80100390 <panic> 801001ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801001f0 <brelse>: // Release a locked buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 801001f0: f3 0f 1e fb endbr32 801001f4: 55 push %ebp 801001f5: 89 e5 mov %esp,%ebp 801001f7: 56 push %esi 801001f8: 53 push %ebx 801001f9: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001fc: 8d 73 0c lea 0xc(%ebx),%esi 801001ff: 83 ec 0c sub $0xc,%esp 80100202: 56 push %esi 80100203: e8 a8 48 00 00 call 80104ab0 <holdingsleep> 80100208: 83 c4 10 add $0x10,%esp 8010020b: 85 c0 test %eax,%eax 8010020d: 74 66 je 80100275 <brelse+0x85> panic("brelse"); releasesleep(&b->lock); 8010020f: 83 ec 0c sub $0xc,%esp 80100212: 56 push %esi 80100213: e8 58 48 00 00 call 80104a70 <releasesleep> acquire(&bcache.lock); 80100218: c7 04 24 c0 c5 10 80 movl $0x8010c5c0,(%esp) 8010021f: e8 6c 4a 00 00 call 80104c90 <acquire> b->refcnt--; 80100224: 8b 43 4c mov 0x4c(%ebx),%eax if (b->refcnt == 0) { 80100227: 83 c4 10 add $0x10,%esp b->refcnt--; 8010022a: 83 e8 01 sub $0x1,%eax 8010022d: 89 43 4c mov %eax,0x4c(%ebx) if (b->refcnt == 0) { 80100230: 85 c0 test %eax,%eax 80100232: 75 2f jne 80100263 <brelse+0x73> // no one is waiting for it. b->next->prev = b->prev; 80100234: 8b 43 54 mov 0x54(%ebx),%eax 80100237: 8b 53 50 mov 0x50(%ebx),%edx 8010023a: 89 50 50 mov %edx,0x50(%eax) b->prev->next = b->next; 8010023d: 8b 43 50 mov 0x50(%ebx),%eax 80100240: 8b 53 54 mov 0x54(%ebx),%edx 80100243: 89 50 54 mov %edx,0x54(%eax) b->next = bcache.head.next; 80100246: a1 10 0d 11 80 mov 0x80110d10,%eax b->prev = &bcache.head; 8010024b: c7 43 50 bc 0c 11 80 movl $0x80110cbc,0x50(%ebx) b->next = bcache.head.next; 80100252: 89 43 54 mov %eax,0x54(%ebx) bcache.head.next->prev = b; 80100255: a1 10 0d 11 80 mov 0x80110d10,%eax 8010025a: 89 58 50 mov %ebx,0x50(%eax) bcache.head.next = b; 8010025d: 89 1d 10 0d 11 80 mov %ebx,0x80110d10 } release(&bcache.lock); 80100263: c7 45 08 c0 c5 10 80 movl $0x8010c5c0,0x8(%ebp) } 8010026a: 8d 65 f8 lea -0x8(%ebp),%esp 8010026d: 5b pop %ebx 8010026e: 5e pop %esi 8010026f: 5d pop %ebp release(&bcache.lock); 80100270: e9 db 4a 00 00 jmp 80104d50 <release> panic("brelse"); 80100275: 83 ec 0c sub $0xc,%esp 80100278: 68 26 79 10 80 push $0x80107926 8010027d: e8 0e 01 00 00 call 80100390 <panic> 80100282: 66 90 xchg %ax,%ax 80100284: 66 90 xchg %ax,%ax 80100286: 66 90 xchg %ax,%ax 80100288: 66 90 xchg %ax,%ax 8010028a: 66 90 xchg %ax,%ax 8010028c: 66 90 xchg %ax,%ax 8010028e: 66 90 xchg %ax,%ax 80100290 <consoleread>: } } int consoleread(struct inode *ip, char *dst, int n) { 80100290: f3 0f 1e fb endbr32 80100294: 55 push %ebp 80100295: 89 e5 mov %esp,%ebp 80100297: 57 push %edi 80100298: 56 push %esi 80100299: 53 push %ebx 8010029a: 83 ec 18 sub $0x18,%esp uint target; int c; iunlock(ip); 8010029d: ff 75 08 pushl 0x8(%ebp) { 801002a0: 8b 5d 10 mov 0x10(%ebp),%ebx target = n; 801002a3: 89 de mov %ebx,%esi iunlock(ip); 801002a5: e8 a6 15 00 00 call 80101850 <iunlock> acquire(&cons.lock); 801002aa: c7 04 24 20 b5 10 80 movl $0x8010b520,(%esp) 801002b1: e8 da 49 00 00 call 80104c90 <acquire> // caller gets a 0-byte result. input.r--; } break; } *dst++ = c; 801002b6: 8b 7d 0c mov 0xc(%ebp),%edi while(n > 0){ 801002b9: 83 c4 10 add $0x10,%esp *dst++ = c; 801002bc: 01 df add %ebx,%edi while(n > 0){ 801002be: 85 db test %ebx,%ebx 801002c0: 0f 8e 97 00 00 00 jle 8010035d <consoleread+0xcd> while(input.r == input.w){ 801002c6: a1 a0 0f 11 80 mov 0x80110fa0,%eax 801002cb: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax 801002d1: 74 27 je 801002fa <consoleread+0x6a> 801002d3: eb 5b jmp 80100330 <consoleread+0xa0> 801002d5: 8d 76 00 lea 0x0(%esi),%esi sleep(&input.r, &cons.lock); 801002d8: 83 ec 08 sub $0x8,%esp 801002db: 68 20 b5 10 80 push $0x8010b520 801002e0: 68 a0 0f 11 80 push $0x80110fa0 801002e5: e8 e6 3e 00 00 call 801041d0 <sleep> while(input.r == input.w){ 801002ea: a1 a0 0f 11 80 mov 0x80110fa0,%eax 801002ef: 83 c4 10 add $0x10,%esp 801002f2: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax 801002f8: 75 36 jne 80100330 <consoleread+0xa0> if(myproc()->killed){ 801002fa: e8 01 37 00 00 call 80103a00 <myproc> 801002ff: 8b 48 24 mov 0x24(%eax),%ecx 80100302: 85 c9 test %ecx,%ecx 80100304: 74 d2 je 801002d8 <consoleread+0x48> release(&cons.lock); 80100306: 83 ec 0c sub $0xc,%esp 80100309: 68 20 b5 10 80 push $0x8010b520 8010030e: e8 3d 4a 00 00 call 80104d50 <release> ilock(ip); 80100313: 5a pop %edx 80100314: ff 75 08 pushl 0x8(%ebp) 80100317: e8 54 14 00 00 call 80101770 <ilock> return -1; 8010031c: 83 c4 10 add $0x10,%esp } release(&cons.lock); ilock(ip); return target - n; } 8010031f: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 80100322: b8 ff ff ff ff mov $0xffffffff,%eax } 80100327: 5b pop %ebx 80100328: 5e pop %esi 80100329: 5f pop %edi 8010032a: 5d pop %ebp 8010032b: c3 ret 8010032c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c = input.buf[input.r++ % INPUT_BUF]; 80100330: 8d 50 01 lea 0x1(%eax),%edx 80100333: 89 15 a0 0f 11 80 mov %edx,0x80110fa0 80100339: 89 c2 mov %eax,%edx 8010033b: 83 e2 7f and $0x7f,%edx 8010033e: 0f be 8a 20 0f 11 80 movsbl -0x7feef0e0(%edx),%ecx if(c == C('D')){ // EOF 80100345: 80 f9 04 cmp $0x4,%cl 80100348: 74 38 je 80100382 <consoleread+0xf2> *dst++ = c; 8010034a: 89 d8 mov %ebx,%eax --n; 8010034c: 83 eb 01 sub $0x1,%ebx *dst++ = c; 8010034f: f7 d8 neg %eax 80100351: 88 0c 07 mov %cl,(%edi,%eax,1) if(c == '\n') 80100354: 83 f9 0a cmp $0xa,%ecx 80100357: 0f 85 61 ff ff ff jne 801002be <consoleread+0x2e> release(&cons.lock); 8010035d: 83 ec 0c sub $0xc,%esp 80100360: 68 20 b5 10 80 push $0x8010b520 80100365: e8 e6 49 00 00 call 80104d50 <release> ilock(ip); 8010036a: 58 pop %eax 8010036b: ff 75 08 pushl 0x8(%ebp) 8010036e: e8 fd 13 00 00 call 80101770 <ilock> return target - n; 80100373: 89 f0 mov %esi,%eax 80100375: 83 c4 10 add $0x10,%esp } 80100378: 8d 65 f4 lea -0xc(%ebp),%esp return target - n; 8010037b: 29 d8 sub %ebx,%eax } 8010037d: 5b pop %ebx 8010037e: 5e pop %esi 8010037f: 5f pop %edi 80100380: 5d pop %ebp 80100381: c3 ret if(n < target){ 80100382: 39 f3 cmp %esi,%ebx 80100384: 73 d7 jae 8010035d <consoleread+0xcd> input.r--; 80100386: a3 a0 0f 11 80 mov %eax,0x80110fa0 8010038b: eb d0 jmp 8010035d <consoleread+0xcd> 8010038d: 8d 76 00 lea 0x0(%esi),%esi 80100390 <panic>: { 80100390: f3 0f 1e fb endbr32 80100394: 55 push %ebp 80100395: 89 e5 mov %esp,%ebp 80100397: 56 push %esi 80100398: 53 push %ebx 80100399: 83 ec 30 sub $0x30,%esp } static inline void cli(void) { asm volatile("cli"); 8010039c: fa cli cons.locking = 0; 8010039d: c7 05 54 b5 10 80 00 movl $0x0,0x8010b554 801003a4: 00 00 00 getcallerpcs(&s, pcs); 801003a7: 8d 5d d0 lea -0x30(%ebp),%ebx 801003aa: 8d 75 f8 lea -0x8(%ebp),%esi cprintf("lapicid %d: panic: ", lapicid()); 801003ad: e8 fe 24 00 00 call 801028b0 <lapicid> 801003b2: 83 ec 08 sub $0x8,%esp 801003b5: 50 push %eax 801003b6: 68 2d 79 10 80 push $0x8010792d 801003bb: e8 f0 02 00 00 call 801006b0 <cprintf> cprintf(s); 801003c0: 58 pop %eax 801003c1: ff 75 08 pushl 0x8(%ebp) 801003c4: e8 e7 02 00 00 call 801006b0 <cprintf> cprintf("\n"); 801003c9: c7 04 24 a3 82 10 80 movl $0x801082a3,(%esp) 801003d0: e8 db 02 00 00 call 801006b0 <cprintf> getcallerpcs(&s, pcs); 801003d5: 8d 45 08 lea 0x8(%ebp),%eax 801003d8: 5a pop %edx 801003d9: 59 pop %ecx 801003da: 53 push %ebx 801003db: 50 push %eax 801003dc: e8 4f 47 00 00 call 80104b30 <getcallerpcs> for(i=0; i<10; i++) 801003e1: 83 c4 10 add $0x10,%esp cprintf(" %p", pcs[i]); 801003e4: 83 ec 08 sub $0x8,%esp 801003e7: ff 33 pushl (%ebx) 801003e9: 83 c3 04 add $0x4,%ebx 801003ec: 68 41 79 10 80 push $0x80107941 801003f1: e8 ba 02 00 00 call 801006b0 <cprintf> for(i=0; i<10; i++) 801003f6: 83 c4 10 add $0x10,%esp 801003f9: 39 f3 cmp %esi,%ebx 801003fb: 75 e7 jne 801003e4 <panic+0x54> panicked = 1; // freeze other CPU 801003fd: c7 05 58 b5 10 80 01 movl $0x1,0x8010b558 80100404: 00 00 00 for(;;) 80100407: eb fe jmp 80100407 <panic+0x77> 80100409: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100410 <consputc.part.0>: consputc(int c) 80100410: 55 push %ebp 80100411: 89 e5 mov %esp,%ebp 80100413: 57 push %edi 80100414: 56 push %esi 80100415: 53 push %ebx 80100416: 89 c3 mov %eax,%ebx 80100418: 83 ec 1c sub $0x1c,%esp if(c == BACKSPACE){ 8010041b: 3d 00 01 00 00 cmp $0x100,%eax 80100420: 0f 84 ea 00 00 00 je 80100510 <consputc.part.0+0x100> uartputc(c); 80100426: 83 ec 0c sub $0xc,%esp 80100429: 50 push %eax 8010042a: e8 d1 60 00 00 call 80106500 <uartputc> 8010042f: 83 c4 10 add $0x10,%esp asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100432: bf d4 03 00 00 mov $0x3d4,%edi 80100437: b8 0e 00 00 00 mov $0xe,%eax 8010043c: 89 fa mov %edi,%edx 8010043e: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010043f: b9 d5 03 00 00 mov $0x3d5,%ecx 80100444: 89 ca mov %ecx,%edx 80100446: ec in (%dx),%al pos = inb(CRTPORT+1) << 8; 80100447: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010044a: 89 fa mov %edi,%edx 8010044c: c1 e0 08 shl $0x8,%eax 8010044f: 89 c6 mov %eax,%esi 80100451: b8 0f 00 00 00 mov $0xf,%eax 80100456: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80100457: 89 ca mov %ecx,%edx 80100459: ec in (%dx),%al pos |= inb(CRTPORT+1); 8010045a: 0f b6 c0 movzbl %al,%eax 8010045d: 09 f0 or %esi,%eax if(c == '\n') 8010045f: 83 fb 0a cmp $0xa,%ebx 80100462: 0f 84 90 00 00 00 je 801004f8 <consputc.part.0+0xe8> else if(c == BACKSPACE){ 80100468: 81 fb 00 01 00 00 cmp $0x100,%ebx 8010046e: 74 70 je 801004e0 <consputc.part.0+0xd0> crt[pos++] = (c&0xff) | 0x0700; // black on white 80100470: 0f b6 db movzbl %bl,%ebx 80100473: 8d 70 01 lea 0x1(%eax),%esi 80100476: 80 cf 07 or $0x7,%bh 80100479: 66 89 9c 00 00 80 0b mov %bx,-0x7ff48000(%eax,%eax,1) 80100480: 80 if(pos < 0 || pos > 25*80) 80100481: 81 fe d0 07 00 00 cmp $0x7d0,%esi 80100487: 0f 8f f9 00 00 00 jg 80100586 <consputc.part.0+0x176> if((pos/80) >= 24){ // Scroll up. 8010048d: 81 fe 7f 07 00 00 cmp $0x77f,%esi 80100493: 0f 8f a7 00 00 00 jg 80100540 <consputc.part.0+0x130> 80100499: 89 f0 mov %esi,%eax 8010049b: 8d b4 36 00 80 0b 80 lea -0x7ff48000(%esi,%esi,1),%esi 801004a2: 88 45 e7 mov %al,-0x19(%ebp) 801004a5: 0f b6 fc movzbl %ah,%edi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801004a8: bb d4 03 00 00 mov $0x3d4,%ebx 801004ad: b8 0e 00 00 00 mov $0xe,%eax 801004b2: 89 da mov %ebx,%edx 801004b4: ee out %al,(%dx) 801004b5: b9 d5 03 00 00 mov $0x3d5,%ecx 801004ba: 89 f8 mov %edi,%eax 801004bc: 89 ca mov %ecx,%edx 801004be: ee out %al,(%dx) 801004bf: b8 0f 00 00 00 mov $0xf,%eax 801004c4: 89 da mov %ebx,%edx 801004c6: ee out %al,(%dx) 801004c7: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 801004cb: 89 ca mov %ecx,%edx 801004cd: ee out %al,(%dx) crt[pos] = ' ' | 0x0700; 801004ce: b8 20 07 00 00 mov $0x720,%eax 801004d3: 66 89 06 mov %ax,(%esi) } 801004d6: 8d 65 f4 lea -0xc(%ebp),%esp 801004d9: 5b pop %ebx 801004da: 5e pop %esi 801004db: 5f pop %edi 801004dc: 5d pop %ebp 801004dd: c3 ret 801004de: 66 90 xchg %ax,%ax if(pos > 0) --pos; 801004e0: 8d 70 ff lea -0x1(%eax),%esi 801004e3: 85 c0 test %eax,%eax 801004e5: 75 9a jne 80100481 <consputc.part.0+0x71> 801004e7: c6 45 e7 00 movb $0x0,-0x19(%ebp) 801004eb: be 00 80 0b 80 mov $0x800b8000,%esi 801004f0: 31 ff xor %edi,%edi 801004f2: eb b4 jmp 801004a8 <consputc.part.0+0x98> 801004f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi pos += 80 - pos%80; 801004f8: ba cd cc cc cc mov $0xcccccccd,%edx 801004fd: f7 e2 mul %edx 801004ff: c1 ea 06 shr $0x6,%edx 80100502: 8d 04 92 lea (%edx,%edx,4),%eax 80100505: c1 e0 04 shl $0x4,%eax 80100508: 8d 70 50 lea 0x50(%eax),%esi 8010050b: e9 71 ff ff ff jmp 80100481 <consputc.part.0+0x71> uartputc('\b'); uartputc(' '); uartputc('\b'); 80100510: 83 ec 0c sub $0xc,%esp 80100513: 6a 08 push $0x8 80100515: e8 e6 5f 00 00 call 80106500 <uartputc> 8010051a: c7 04 24 20 00 00 00 movl $0x20,(%esp) 80100521: e8 da 5f 00 00 call 80106500 <uartputc> 80100526: c7 04 24 08 00 00 00 movl $0x8,(%esp) 8010052d: e8 ce 5f 00 00 call 80106500 <uartputc> 80100532: 83 c4 10 add $0x10,%esp 80100535: e9 f8 fe ff ff jmp 80100432 <consputc.part.0+0x22> 8010053a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi memmove(crt, crt+80, sizeof(crt[0])*23*80); 80100540: 83 ec 04 sub $0x4,%esp pos -= 80; 80100543: 8d 5e b0 lea -0x50(%esi),%ebx memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100546: 8d b4 36 60 7f 0b 80 lea -0x7ff480a0(%esi,%esi,1),%esi 8010054d: bf 07 00 00 00 mov $0x7,%edi memmove(crt, crt+80, sizeof(crt[0])*23*80); 80100552: 68 60 0e 00 00 push $0xe60 80100557: 68 a0 80 0b 80 push $0x800b80a0 8010055c: 68 00 80 0b 80 push $0x800b8000 80100561: e8 da 48 00 00 call 80104e40 <memmove> memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100566: b8 80 07 00 00 mov $0x780,%eax 8010056b: 83 c4 0c add $0xc,%esp 8010056e: 29 d8 sub %ebx,%eax 80100570: 01 c0 add %eax,%eax 80100572: 50 push %eax 80100573: 6a 00 push $0x0 80100575: 56 push %esi 80100576: e8 25 48 00 00 call 80104da0 <memset> 8010057b: 88 5d e7 mov %bl,-0x19(%ebp) 8010057e: 83 c4 10 add $0x10,%esp 80100581: e9 22 ff ff ff jmp 801004a8 <consputc.part.0+0x98> panic("pos under/overflow"); 80100586: 83 ec 0c sub $0xc,%esp 80100589: 68 45 79 10 80 push $0x80107945 8010058e: e8 fd fd ff ff call 80100390 <panic> 80100593: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010059a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801005a0 <printint>: { 801005a0: 55 push %ebp 801005a1: 89 e5 mov %esp,%ebp 801005a3: 57 push %edi 801005a4: 56 push %esi 801005a5: 53 push %ebx 801005a6: 83 ec 2c sub $0x2c,%esp 801005a9: 89 55 d4 mov %edx,-0x2c(%ebp) if(sign && (sign = xx < 0)) 801005ac: 85 c9 test %ecx,%ecx 801005ae: 74 04 je 801005b4 <printint+0x14> 801005b0: 85 c0 test %eax,%eax 801005b2: 78 6d js 80100621 <printint+0x81> x = xx; 801005b4: 89 c1 mov %eax,%ecx 801005b6: 31 f6 xor %esi,%esi i = 0; 801005b8: 89 75 cc mov %esi,-0x34(%ebp) 801005bb: 31 db xor %ebx,%ebx 801005bd: 8d 7d d7 lea -0x29(%ebp),%edi buf[i++] = digits[x % base]; 801005c0: 89 c8 mov %ecx,%eax 801005c2: 31 d2 xor %edx,%edx 801005c4: 89 ce mov %ecx,%esi 801005c6: f7 75 d4 divl -0x2c(%ebp) 801005c9: 0f b6 92 70 79 10 80 movzbl -0x7fef8690(%edx),%edx 801005d0: 89 45 d0 mov %eax,-0x30(%ebp) 801005d3: 89 d8 mov %ebx,%eax 801005d5: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 801005d8: 8b 4d d0 mov -0x30(%ebp),%ecx 801005db: 89 75 d0 mov %esi,-0x30(%ebp) buf[i++] = digits[x % base]; 801005de: 88 14 1f mov %dl,(%edi,%ebx,1) }while((x /= base) != 0); 801005e1: 8b 75 d4 mov -0x2c(%ebp),%esi 801005e4: 39 75 d0 cmp %esi,-0x30(%ebp) 801005e7: 73 d7 jae 801005c0 <printint+0x20> 801005e9: 8b 75 cc mov -0x34(%ebp),%esi if(sign) 801005ec: 85 f6 test %esi,%esi 801005ee: 74 0c je 801005fc <printint+0x5c> buf[i++] = '-'; 801005f0: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 801005f5: 89 d8 mov %ebx,%eax buf[i++] = '-'; 801005f7: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 801005fc: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 80100600: 0f be c2 movsbl %dl,%eax if(panicked){ 80100603: 8b 15 58 b5 10 80 mov 0x8010b558,%edx 80100609: 85 d2 test %edx,%edx 8010060b: 74 03 je 80100610 <printint+0x70> asm volatile("cli"); 8010060d: fa cli for(;;) 8010060e: eb fe jmp 8010060e <printint+0x6e> 80100610: e8 fb fd ff ff call 80100410 <consputc.part.0> while(--i >= 0) 80100615: 39 fb cmp %edi,%ebx 80100617: 74 10 je 80100629 <printint+0x89> 80100619: 0f be 03 movsbl (%ebx),%eax 8010061c: 83 eb 01 sub $0x1,%ebx 8010061f: eb e2 jmp 80100603 <printint+0x63> x = -xx; 80100621: f7 d8 neg %eax 80100623: 89 ce mov %ecx,%esi 80100625: 89 c1 mov %eax,%ecx 80100627: eb 8f jmp 801005b8 <printint+0x18> } 80100629: 83 c4 2c add $0x2c,%esp 8010062c: 5b pop %ebx 8010062d: 5e pop %esi 8010062e: 5f pop %edi 8010062f: 5d pop %ebp 80100630: c3 ret 80100631: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100638: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010063f: 90 nop 80100640 <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100640: f3 0f 1e fb endbr32 80100644: 55 push %ebp 80100645: 89 e5 mov %esp,%ebp 80100647: 57 push %edi 80100648: 56 push %esi 80100649: 53 push %ebx 8010064a: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 8010064d: ff 75 08 pushl 0x8(%ebp) { 80100650: 8b 5d 10 mov 0x10(%ebp),%ebx iunlock(ip); 80100653: e8 f8 11 00 00 call 80101850 <iunlock> acquire(&cons.lock); 80100658: c7 04 24 20 b5 10 80 movl $0x8010b520,(%esp) 8010065f: e8 2c 46 00 00 call 80104c90 <acquire> for(i = 0; i < n; i++) 80100664: 83 c4 10 add $0x10,%esp 80100667: 85 db test %ebx,%ebx 80100669: 7e 24 jle 8010068f <consolewrite+0x4f> 8010066b: 8b 7d 0c mov 0xc(%ebp),%edi 8010066e: 8d 34 1f lea (%edi,%ebx,1),%esi if(panicked){ 80100671: 8b 15 58 b5 10 80 mov 0x8010b558,%edx 80100677: 85 d2 test %edx,%edx 80100679: 74 05 je 80100680 <consolewrite+0x40> 8010067b: fa cli for(;;) 8010067c: eb fe jmp 8010067c <consolewrite+0x3c> 8010067e: 66 90 xchg %ax,%ax consputc(buf[i] & 0xff); 80100680: 0f b6 07 movzbl (%edi),%eax 80100683: 83 c7 01 add $0x1,%edi 80100686: e8 85 fd ff ff call 80100410 <consputc.part.0> for(i = 0; i < n; i++) 8010068b: 39 fe cmp %edi,%esi 8010068d: 75 e2 jne 80100671 <consolewrite+0x31> release(&cons.lock); 8010068f: 83 ec 0c sub $0xc,%esp 80100692: 68 20 b5 10 80 push $0x8010b520 80100697: e8 b4 46 00 00 call 80104d50 <release> ilock(ip); 8010069c: 58 pop %eax 8010069d: ff 75 08 pushl 0x8(%ebp) 801006a0: e8 cb 10 00 00 call 80101770 <ilock> return n; } 801006a5: 8d 65 f4 lea -0xc(%ebp),%esp 801006a8: 89 d8 mov %ebx,%eax 801006aa: 5b pop %ebx 801006ab: 5e pop %esi 801006ac: 5f pop %edi 801006ad: 5d pop %ebp 801006ae: c3 ret 801006af: 90 nop 801006b0 <cprintf>: { 801006b0: f3 0f 1e fb endbr32 801006b4: 55 push %ebp 801006b5: 89 e5 mov %esp,%ebp 801006b7: 57 push %edi 801006b8: 56 push %esi 801006b9: 53 push %ebx 801006ba: 83 ec 1c sub $0x1c,%esp locking = cons.locking; 801006bd: a1 54 b5 10 80 mov 0x8010b554,%eax 801006c2: 89 45 e0 mov %eax,-0x20(%ebp) if(locking) 801006c5: 85 c0 test %eax,%eax 801006c7: 0f 85 e8 00 00 00 jne 801007b5 <cprintf+0x105> if (fmt == 0) 801006cd: 8b 45 08 mov 0x8(%ebp),%eax 801006d0: 89 45 e4 mov %eax,-0x1c(%ebp) 801006d3: 85 c0 test %eax,%eax 801006d5: 0f 84 5a 01 00 00 je 80100835 <cprintf+0x185> for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006db: 0f b6 00 movzbl (%eax),%eax 801006de: 85 c0 test %eax,%eax 801006e0: 74 36 je 80100718 <cprintf+0x68> argp = (uint*)(void*)(&fmt + 1); 801006e2: 8d 5d 0c lea 0xc(%ebp),%ebx for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006e5: 31 f6 xor %esi,%esi if(c != '%'){ 801006e7: 83 f8 25 cmp $0x25,%eax 801006ea: 74 44 je 80100730 <cprintf+0x80> if(panicked){ 801006ec: 8b 0d 58 b5 10 80 mov 0x8010b558,%ecx 801006f2: 85 c9 test %ecx,%ecx 801006f4: 74 0f je 80100705 <cprintf+0x55> 801006f6: fa cli for(;;) 801006f7: eb fe jmp 801006f7 <cprintf+0x47> 801006f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100700: b8 25 00 00 00 mov $0x25,%eax 80100705: e8 06 fd ff ff call 80100410 <consputc.part.0> for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 8010070a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010070d: 83 c6 01 add $0x1,%esi 80100710: 0f b6 04 30 movzbl (%eax,%esi,1),%eax 80100714: 85 c0 test %eax,%eax 80100716: 75 cf jne 801006e7 <cprintf+0x37> if(locking) 80100718: 8b 45 e0 mov -0x20(%ebp),%eax 8010071b: 85 c0 test %eax,%eax 8010071d: 0f 85 fd 00 00 00 jne 80100820 <cprintf+0x170> } 80100723: 8d 65 f4 lea -0xc(%ebp),%esp 80100726: 5b pop %ebx 80100727: 5e pop %esi 80100728: 5f pop %edi 80100729: 5d pop %ebp 8010072a: c3 ret 8010072b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010072f: 90 nop c = fmt[++i] & 0xff; 80100730: 8b 45 e4 mov -0x1c(%ebp),%eax 80100733: 83 c6 01 add $0x1,%esi 80100736: 0f b6 3c 30 movzbl (%eax,%esi,1),%edi if(c == 0) 8010073a: 85 ff test %edi,%edi 8010073c: 74 da je 80100718 <cprintf+0x68> switch(c){ 8010073e: 83 ff 70 cmp $0x70,%edi 80100741: 74 5a je 8010079d <cprintf+0xed> 80100743: 7f 2a jg 8010076f <cprintf+0xbf> 80100745: 83 ff 25 cmp $0x25,%edi 80100748: 0f 84 92 00 00 00 je 801007e0 <cprintf+0x130> 8010074e: 83 ff 64 cmp $0x64,%edi 80100751: 0f 85 a1 00 00 00 jne 801007f8 <cprintf+0x148> printint(*argp++, 10, 1); 80100757: 8b 03 mov (%ebx),%eax 80100759: 8d 7b 04 lea 0x4(%ebx),%edi 8010075c: b9 01 00 00 00 mov $0x1,%ecx 80100761: ba 0a 00 00 00 mov $0xa,%edx 80100766: 89 fb mov %edi,%ebx 80100768: e8 33 fe ff ff call 801005a0 <printint> break; 8010076d: eb 9b jmp 8010070a <cprintf+0x5a> switch(c){ 8010076f: 83 ff 73 cmp $0x73,%edi 80100772: 75 24 jne 80100798 <cprintf+0xe8> if((s = (char*)*argp++) == 0) 80100774: 8d 7b 04 lea 0x4(%ebx),%edi 80100777: 8b 1b mov (%ebx),%ebx 80100779: 85 db test %ebx,%ebx 8010077b: 75 55 jne 801007d2 <cprintf+0x122> s = "(null)"; 8010077d: bb 58 79 10 80 mov $0x80107958,%ebx for(; *s; s++) 80100782: b8 28 00 00 00 mov $0x28,%eax if(panicked){ 80100787: 8b 15 58 b5 10 80 mov 0x8010b558,%edx 8010078d: 85 d2 test %edx,%edx 8010078f: 74 39 je 801007ca <cprintf+0x11a> 80100791: fa cli for(;;) 80100792: eb fe jmp 80100792 <cprintf+0xe2> 80100794: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi switch(c){ 80100798: 83 ff 78 cmp $0x78,%edi 8010079b: 75 5b jne 801007f8 <cprintf+0x148> printint(*argp++, 16, 0); 8010079d: 8b 03 mov (%ebx),%eax 8010079f: 8d 7b 04 lea 0x4(%ebx),%edi 801007a2: 31 c9 xor %ecx,%ecx 801007a4: ba 10 00 00 00 mov $0x10,%edx 801007a9: 89 fb mov %edi,%ebx 801007ab: e8 f0 fd ff ff call 801005a0 <printint> break; 801007b0: e9 55 ff ff ff jmp 8010070a <cprintf+0x5a> acquire(&cons.lock); 801007b5: 83 ec 0c sub $0xc,%esp 801007b8: 68 20 b5 10 80 push $0x8010b520 801007bd: e8 ce 44 00 00 call 80104c90 <acquire> 801007c2: 83 c4 10 add $0x10,%esp 801007c5: e9 03 ff ff ff jmp 801006cd <cprintf+0x1d> 801007ca: e8 41 fc ff ff call 80100410 <consputc.part.0> for(; *s; s++) 801007cf: 83 c3 01 add $0x1,%ebx 801007d2: 0f be 03 movsbl (%ebx),%eax 801007d5: 84 c0 test %al,%al 801007d7: 75 ae jne 80100787 <cprintf+0xd7> if((s = (char*)*argp++) == 0) 801007d9: 89 fb mov %edi,%ebx 801007db: e9 2a ff ff ff jmp 8010070a <cprintf+0x5a> if(panicked){ 801007e0: 8b 3d 58 b5 10 80 mov 0x8010b558,%edi 801007e6: 85 ff test %edi,%edi 801007e8: 0f 84 12 ff ff ff je 80100700 <cprintf+0x50> 801007ee: fa cli for(;;) 801007ef: eb fe jmp 801007ef <cprintf+0x13f> 801007f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(panicked){ 801007f8: 8b 0d 58 b5 10 80 mov 0x8010b558,%ecx 801007fe: 85 c9 test %ecx,%ecx 80100800: 74 06 je 80100808 <cprintf+0x158> 80100802: fa cli for(;;) 80100803: eb fe jmp 80100803 <cprintf+0x153> 80100805: 8d 76 00 lea 0x0(%esi),%esi 80100808: b8 25 00 00 00 mov $0x25,%eax 8010080d: e8 fe fb ff ff call 80100410 <consputc.part.0> if(panicked){ 80100812: 8b 15 58 b5 10 80 mov 0x8010b558,%edx 80100818: 85 d2 test %edx,%edx 8010081a: 74 2c je 80100848 <cprintf+0x198> 8010081c: fa cli for(;;) 8010081d: eb fe jmp 8010081d <cprintf+0x16d> 8010081f: 90 nop release(&cons.lock); 80100820: 83 ec 0c sub $0xc,%esp 80100823: 68 20 b5 10 80 push $0x8010b520 80100828: e8 23 45 00 00 call 80104d50 <release> 8010082d: 83 c4 10 add $0x10,%esp } 80100830: e9 ee fe ff ff jmp 80100723 <cprintf+0x73> panic("null fmt"); 80100835: 83 ec 0c sub $0xc,%esp 80100838: 68 5f 79 10 80 push $0x8010795f 8010083d: e8 4e fb ff ff call 80100390 <panic> 80100842: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80100848: 89 f8 mov %edi,%eax 8010084a: e8 c1 fb ff ff call 80100410 <consputc.part.0> 8010084f: e9 b6 fe ff ff jmp 8010070a <cprintf+0x5a> 80100854: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010085b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010085f: 90 nop 80100860 <consoleintr>: { 80100860: f3 0f 1e fb endbr32 80100864: 55 push %ebp 80100865: 89 e5 mov %esp,%ebp 80100867: 57 push %edi 80100868: 56 push %esi int c, doprocdump = 0; 80100869: 31 f6 xor %esi,%esi { 8010086b: 53 push %ebx 8010086c: 83 ec 18 sub $0x18,%esp 8010086f: 8b 7d 08 mov 0x8(%ebp),%edi acquire(&cons.lock); 80100872: 68 20 b5 10 80 push $0x8010b520 80100877: e8 14 44 00 00 call 80104c90 <acquire> while((c = getc()) >= 0){ 8010087c: 83 c4 10 add $0x10,%esp 8010087f: eb 17 jmp 80100898 <consoleintr+0x38> switch(c){ 80100881: 83 fb 08 cmp $0x8,%ebx 80100884: 0f 84 f6 00 00 00 je 80100980 <consoleintr+0x120> 8010088a: 83 fb 10 cmp $0x10,%ebx 8010088d: 0f 85 15 01 00 00 jne 801009a8 <consoleintr+0x148> 80100893: be 01 00 00 00 mov $0x1,%esi while((c = getc()) >= 0){ 80100898: ff d7 call *%edi 8010089a: 89 c3 mov %eax,%ebx 8010089c: 85 c0 test %eax,%eax 8010089e: 0f 88 23 01 00 00 js 801009c7 <consoleintr+0x167> switch(c){ 801008a4: 83 fb 15 cmp $0x15,%ebx 801008a7: 74 77 je 80100920 <consoleintr+0xc0> 801008a9: 7e d6 jle 80100881 <consoleintr+0x21> 801008ab: 83 fb 7f cmp $0x7f,%ebx 801008ae: 0f 84 cc 00 00 00 je 80100980 <consoleintr+0x120> if(c != 0 && input.e-input.r < INPUT_BUF){ 801008b4: a1 a8 0f 11 80 mov 0x80110fa8,%eax 801008b9: 89 c2 mov %eax,%edx 801008bb: 2b 15 a0 0f 11 80 sub 0x80110fa0,%edx 801008c1: 83 fa 7f cmp $0x7f,%edx 801008c4: 77 d2 ja 80100898 <consoleintr+0x38> c = (c == '\r') ? '\n' : c; 801008c6: 8d 48 01 lea 0x1(%eax),%ecx 801008c9: 8b 15 58 b5 10 80 mov 0x8010b558,%edx 801008cf: 83 e0 7f and $0x7f,%eax input.buf[input.e++ % INPUT_BUF] = c; 801008d2: 89 0d a8 0f 11 80 mov %ecx,0x80110fa8 c = (c == '\r') ? '\n' : c; 801008d8: 83 fb 0d cmp $0xd,%ebx 801008db: 0f 84 02 01 00 00 je 801009e3 <consoleintr+0x183> input.buf[input.e++ % INPUT_BUF] = c; 801008e1: 88 98 20 0f 11 80 mov %bl,-0x7feef0e0(%eax) if(panicked){ 801008e7: 85 d2 test %edx,%edx 801008e9: 0f 85 ff 00 00 00 jne 801009ee <consoleintr+0x18e> 801008ef: 89 d8 mov %ebx,%eax 801008f1: e8 1a fb ff ff call 80100410 <consputc.part.0> if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 801008f6: 83 fb 0a cmp $0xa,%ebx 801008f9: 0f 84 0f 01 00 00 je 80100a0e <consoleintr+0x1ae> 801008ff: 83 fb 04 cmp $0x4,%ebx 80100902: 0f 84 06 01 00 00 je 80100a0e <consoleintr+0x1ae> 80100908: a1 a0 0f 11 80 mov 0x80110fa0,%eax 8010090d: 83 e8 80 sub $0xffffff80,%eax 80100910: 39 05 a8 0f 11 80 cmp %eax,0x80110fa8 80100916: 75 80 jne 80100898 <consoleintr+0x38> 80100918: e9 f6 00 00 00 jmp 80100a13 <consoleintr+0x1b3> 8010091d: 8d 76 00 lea 0x0(%esi),%esi while(input.e != input.w && 80100920: a1 a8 0f 11 80 mov 0x80110fa8,%eax 80100925: 39 05 a4 0f 11 80 cmp %eax,0x80110fa4 8010092b: 0f 84 67 ff ff ff je 80100898 <consoleintr+0x38> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 80100931: 83 e8 01 sub $0x1,%eax 80100934: 89 c2 mov %eax,%edx 80100936: 83 e2 7f and $0x7f,%edx while(input.e != input.w && 80100939: 80 ba 20 0f 11 80 0a cmpb $0xa,-0x7feef0e0(%edx) 80100940: 0f 84 52 ff ff ff je 80100898 <consoleintr+0x38> if(panicked){ 80100946: 8b 15 58 b5 10 80 mov 0x8010b558,%edx input.e--; 8010094c: a3 a8 0f 11 80 mov %eax,0x80110fa8 if(panicked){ 80100951: 85 d2 test %edx,%edx 80100953: 74 0b je 80100960 <consoleintr+0x100> 80100955: fa cli for(;;) 80100956: eb fe jmp 80100956 <consoleintr+0xf6> 80100958: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010095f: 90 nop 80100960: b8 00 01 00 00 mov $0x100,%eax 80100965: e8 a6 fa ff ff call 80100410 <consputc.part.0> while(input.e != input.w && 8010096a: a1 a8 0f 11 80 mov 0x80110fa8,%eax 8010096f: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax 80100975: 75 ba jne 80100931 <consoleintr+0xd1> 80100977: e9 1c ff ff ff jmp 80100898 <consoleintr+0x38> 8010097c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(input.e != input.w){ 80100980: a1 a8 0f 11 80 mov 0x80110fa8,%eax 80100985: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax 8010098b: 0f 84 07 ff ff ff je 80100898 <consoleintr+0x38> input.e--; 80100991: 83 e8 01 sub $0x1,%eax 80100994: a3 a8 0f 11 80 mov %eax,0x80110fa8 if(panicked){ 80100999: a1 58 b5 10 80 mov 0x8010b558,%eax 8010099e: 85 c0 test %eax,%eax 801009a0: 74 16 je 801009b8 <consoleintr+0x158> 801009a2: fa cli for(;;) 801009a3: eb fe jmp 801009a3 <consoleintr+0x143> 801009a5: 8d 76 00 lea 0x0(%esi),%esi if(c != 0 && input.e-input.r < INPUT_BUF){ 801009a8: 85 db test %ebx,%ebx 801009aa: 0f 84 e8 fe ff ff je 80100898 <consoleintr+0x38> 801009b0: e9 ff fe ff ff jmp 801008b4 <consoleintr+0x54> 801009b5: 8d 76 00 lea 0x0(%esi),%esi 801009b8: b8 00 01 00 00 mov $0x100,%eax 801009bd: e8 4e fa ff ff call 80100410 <consputc.part.0> 801009c2: e9 d1 fe ff ff jmp 80100898 <consoleintr+0x38> release(&cons.lock); 801009c7: 83 ec 0c sub $0xc,%esp 801009ca: 68 20 b5 10 80 push $0x8010b520 801009cf: e8 7c 43 00 00 call 80104d50 <release> if(doprocdump) { 801009d4: 83 c4 10 add $0x10,%esp 801009d7: 85 f6 test %esi,%esi 801009d9: 75 1d jne 801009f8 <consoleintr+0x198> } 801009db: 8d 65 f4 lea -0xc(%ebp),%esp 801009de: 5b pop %ebx 801009df: 5e pop %esi 801009e0: 5f pop %edi 801009e1: 5d pop %ebp 801009e2: c3 ret input.buf[input.e++ % INPUT_BUF] = c; 801009e3: c6 80 20 0f 11 80 0a movb $0xa,-0x7feef0e0(%eax) if(panicked){ 801009ea: 85 d2 test %edx,%edx 801009ec: 74 16 je 80100a04 <consoleintr+0x1a4> 801009ee: fa cli for(;;) 801009ef: eb fe jmp 801009ef <consoleintr+0x18f> 801009f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } 801009f8: 8d 65 f4 lea -0xc(%ebp),%esp 801009fb: 5b pop %ebx 801009fc: 5e pop %esi 801009fd: 5f pop %edi 801009fe: 5d pop %ebp procdump(); // now call procdump() wo. cons.lock held 801009ff: e9 bc 3b 00 00 jmp 801045c0 <procdump> 80100a04: b8 0a 00 00 00 mov $0xa,%eax 80100a09: e8 02 fa ff ff call 80100410 <consputc.part.0> if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 80100a0e: a1 a8 0f 11 80 mov 0x80110fa8,%eax wakeup(&input.r); 80100a13: 83 ec 0c sub $0xc,%esp input.w = input.e; 80100a16: a3 a4 0f 11 80 mov %eax,0x80110fa4 wakeup(&input.r); 80100a1b: 68 a0 0f 11 80 push $0x80110fa0 80100a20: e8 9b 3a 00 00 call 801044c0 <wakeup> 80100a25: 83 c4 10 add $0x10,%esp 80100a28: e9 6b fe ff ff jmp 80100898 <consoleintr+0x38> 80100a2d: 8d 76 00 lea 0x0(%esi),%esi 80100a30 <consoleinit>: void consoleinit(void) { 80100a30: f3 0f 1e fb endbr32 80100a34: 55 push %ebp 80100a35: 89 e5 mov %esp,%ebp 80100a37: 83 ec 10 sub $0x10,%esp initlock(&cons.lock, "console"); 80100a3a: 68 68 79 10 80 push $0x80107968 80100a3f: 68 20 b5 10 80 push $0x8010b520 80100a44: e8 c7 40 00 00 call 80104b10 <initlock> devsw[CONSOLE].write = consolewrite; devsw[CONSOLE].read = consoleread; cons.locking = 1; ioapicenable(IRQ_KBD, 0); 80100a49: 58 pop %eax 80100a4a: 5a pop %edx 80100a4b: 6a 00 push $0x0 80100a4d: 6a 01 push $0x1 devsw[CONSOLE].write = consolewrite; 80100a4f: c7 05 6c 19 11 80 40 movl $0x80100640,0x8011196c 80100a56: 06 10 80 devsw[CONSOLE].read = consoleread; 80100a59: c7 05 68 19 11 80 90 movl $0x80100290,0x80111968 80100a60: 02 10 80 cons.locking = 1; 80100a63: c7 05 54 b5 10 80 01 movl $0x1,0x8010b554 80100a6a: 00 00 00 ioapicenable(IRQ_KBD, 0); 80100a6d: e8 ce 19 00 00 call 80102440 <ioapicenable> } 80100a72: 83 c4 10 add $0x10,%esp 80100a75: c9 leave 80100a76: c3 ret 80100a77: 66 90 xchg %ax,%ax 80100a79: 66 90 xchg %ax,%ax 80100a7b: 66 90 xchg %ax,%ax 80100a7d: 66 90 xchg %ax,%ax 80100a7f: 90 nop 80100a80 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100a80: f3 0f 1e fb endbr32 80100a84: 55 push %ebp 80100a85: 89 e5 mov %esp,%ebp 80100a87: 57 push %edi 80100a88: 56 push %esi 80100a89: 53 push %ebx 80100a8a: 81 ec 0c 01 00 00 sub $0x10c,%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(); 80100a90: e8 6b 2f 00 00 call 80103a00 <myproc> 80100a95: 89 85 ec fe ff ff mov %eax,-0x114(%ebp) begin_op(); 80100a9b: e8 a0 22 00 00 call 80102d40 <begin_op> if((ip = namei(path)) == 0){ 80100aa0: 83 ec 0c sub $0xc,%esp 80100aa3: ff 75 08 pushl 0x8(%ebp) 80100aa6: e8 95 15 00 00 call 80102040 <namei> 80100aab: 83 c4 10 add $0x10,%esp 80100aae: 85 c0 test %eax,%eax 80100ab0: 0f 84 08 03 00 00 je 80100dbe <exec+0x33e> end_op(); cprintf("exec: fail\n"); return -1; } ilock(ip); 80100ab6: 83 ec 0c sub $0xc,%esp 80100ab9: 89 c3 mov %eax,%ebx 80100abb: 50 push %eax 80100abc: e8 af 0c 00 00 call 80101770 <ilock> pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf)) 80100ac1: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax 80100ac7: 6a 34 push $0x34 80100ac9: 6a 00 push $0x0 80100acb: 50 push %eax 80100acc: 53 push %ebx 80100acd: e8 9e 0f 00 00 call 80101a70 <readi> 80100ad2: 83 c4 20 add $0x20,%esp 80100ad5: 83 f8 34 cmp $0x34,%eax 80100ad8: 74 26 je 80100b00 <exec+0x80> bad: if(pgdir) freevm(pgdir); if(ip){ iunlockput(ip); 80100ada: 83 ec 0c sub $0xc,%esp 80100add: 53 push %ebx 80100ade: e8 2d 0f 00 00 call 80101a10 <iunlockput> end_op(); 80100ae3: e8 c8 22 00 00 call 80102db0 <end_op> 80100ae8: 83 c4 10 add $0x10,%esp } return -1; 80100aeb: b8 ff ff ff ff mov $0xffffffff,%eax } 80100af0: 8d 65 f4 lea -0xc(%ebp),%esp 80100af3: 5b pop %ebx 80100af4: 5e pop %esi 80100af5: 5f pop %edi 80100af6: 5d pop %ebp 80100af7: c3 ret 80100af8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100aff: 90 nop if(elf.magic != ELF_MAGIC) 80100b00: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp) 80100b07: 45 4c 46 80100b0a: 75 ce jne 80100ada <exec+0x5a> if((pgdir = setupkvm()) == 0) 80100b0c: e8 5f 6b 00 00 call 80107670 <setupkvm> 80100b11: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp) 80100b17: 85 c0 test %eax,%eax 80100b19: 74 bf je 80100ada <exec+0x5a> for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100b1b: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp) 80100b22: 00 80100b23: 8b b5 40 ff ff ff mov -0xc0(%ebp),%esi 80100b29: 0f 84 ae 02 00 00 je 80100ddd <exec+0x35d> sz = 0; 80100b2f: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp) 80100b36: 00 00 00 for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100b39: 31 ff xor %edi,%edi 80100b3b: e9 86 00 00 00 jmp 80100bc6 <exec+0x146> if(ph.type != ELF_PROG_LOAD) 80100b40: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp) 80100b47: 75 6c jne 80100bb5 <exec+0x135> if(ph.memsz < ph.filesz) 80100b49: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax 80100b4f: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax 80100b55: 0f 82 87 00 00 00 jb 80100be2 <exec+0x162> if(ph.vaddr + ph.memsz < ph.vaddr) 80100b5b: 03 85 0c ff ff ff add -0xf4(%ebp),%eax 80100b61: 72 7f jb 80100be2 <exec+0x162> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100b63: 83 ec 04 sub $0x4,%esp 80100b66: 50 push %eax 80100b67: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b6d: ff b5 f4 fe ff ff pushl -0x10c(%ebp) 80100b73: e8 18 69 00 00 call 80107490 <allocuvm> 80100b78: 83 c4 10 add $0x10,%esp 80100b7b: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp) 80100b81: 85 c0 test %eax,%eax 80100b83: 74 5d je 80100be2 <exec+0x162> if(ph.vaddr % PGSIZE != 0) 80100b85: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100b8b: a9 ff 0f 00 00 test $0xfff,%eax 80100b90: 75 50 jne 80100be2 <exec+0x162> if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100b92: 83 ec 0c sub $0xc,%esp 80100b95: ff b5 14 ff ff ff pushl -0xec(%ebp) 80100b9b: ff b5 08 ff ff ff pushl -0xf8(%ebp) 80100ba1: 53 push %ebx 80100ba2: 50 push %eax 80100ba3: ff b5 f4 fe ff ff pushl -0x10c(%ebp) 80100ba9: e8 12 68 00 00 call 801073c0 <loaduvm> 80100bae: 83 c4 20 add $0x20,%esp 80100bb1: 85 c0 test %eax,%eax 80100bb3: 78 2d js 80100be2 <exec+0x162> for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100bb5: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax 80100bbc: 83 c7 01 add $0x1,%edi 80100bbf: 83 c6 20 add $0x20,%esi 80100bc2: 39 f8 cmp %edi,%eax 80100bc4: 7e 3a jle 80100c00 <exec+0x180> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100bc6: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax 80100bcc: 6a 20 push $0x20 80100bce: 56 push %esi 80100bcf: 50 push %eax 80100bd0: 53 push %ebx 80100bd1: e8 9a 0e 00 00 call 80101a70 <readi> 80100bd6: 83 c4 10 add $0x10,%esp 80100bd9: 83 f8 20 cmp $0x20,%eax 80100bdc: 0f 84 5e ff ff ff je 80100b40 <exec+0xc0> freevm(pgdir); 80100be2: 83 ec 0c sub $0xc,%esp 80100be5: ff b5 f4 fe ff ff pushl -0x10c(%ebp) 80100beb: e8 00 6a 00 00 call 801075f0 <freevm> if(ip){ 80100bf0: 83 c4 10 add $0x10,%esp 80100bf3: e9 e2 fe ff ff jmp 80100ada <exec+0x5a> 80100bf8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100bff: 90 nop 80100c00: 8b bd f0 fe ff ff mov -0x110(%ebp),%edi 80100c06: 81 c7 ff 0f 00 00 add $0xfff,%edi 80100c0c: 81 e7 00 f0 ff ff and $0xfffff000,%edi 80100c12: 8d b7 00 20 00 00 lea 0x2000(%edi),%esi iunlockput(ip); 80100c18: 83 ec 0c sub $0xc,%esp 80100c1b: 53 push %ebx 80100c1c: e8 ef 0d 00 00 call 80101a10 <iunlockput> end_op(); 80100c21: e8 8a 21 00 00 call 80102db0 <end_op> if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100c26: 83 c4 0c add $0xc,%esp 80100c29: 56 push %esi 80100c2a: 57 push %edi 80100c2b: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi 80100c31: 57 push %edi 80100c32: e8 59 68 00 00 call 80107490 <allocuvm> 80100c37: 83 c4 10 add $0x10,%esp 80100c3a: 89 c6 mov %eax,%esi 80100c3c: 85 c0 test %eax,%eax 80100c3e: 0f 84 94 00 00 00 je 80100cd8 <exec+0x258> clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100c44: 83 ec 08 sub $0x8,%esp 80100c47: 8d 80 00 e0 ff ff lea -0x2000(%eax),%eax for(argc = 0; argv[argc]; argc++) { 80100c4d: 89 f3 mov %esi,%ebx clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100c4f: 50 push %eax 80100c50: 57 push %edi for(argc = 0; argv[argc]; argc++) { 80100c51: 31 ff xor %edi,%edi clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100c53: e8 b8 6a 00 00 call 80107710 <clearpteu> for(argc = 0; argv[argc]; argc++) { 80100c58: 8b 45 0c mov 0xc(%ebp),%eax 80100c5b: 83 c4 10 add $0x10,%esp 80100c5e: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx 80100c64: 8b 00 mov (%eax),%eax 80100c66: 85 c0 test %eax,%eax 80100c68: 0f 84 8b 00 00 00 je 80100cf9 <exec+0x279> 80100c6e: 89 b5 f0 fe ff ff mov %esi,-0x110(%ebp) 80100c74: 8b b5 f4 fe ff ff mov -0x10c(%ebp),%esi 80100c7a: eb 23 jmp 80100c9f <exec+0x21f> 80100c7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100c80: 8b 45 0c mov 0xc(%ebp),%eax ustack[3+argc] = sp; 80100c83: 89 9c bd 64 ff ff ff mov %ebx,-0x9c(%ebp,%edi,4) for(argc = 0; argv[argc]; argc++) { 80100c8a: 83 c7 01 add $0x1,%edi ustack[3+argc] = sp; 80100c8d: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx for(argc = 0; argv[argc]; argc++) { 80100c93: 8b 04 b8 mov (%eax,%edi,4),%eax 80100c96: 85 c0 test %eax,%eax 80100c98: 74 59 je 80100cf3 <exec+0x273> if(argc >= MAXARG) 80100c9a: 83 ff 20 cmp $0x20,%edi 80100c9d: 74 39 je 80100cd8 <exec+0x258> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100c9f: 83 ec 0c sub $0xc,%esp 80100ca2: 50 push %eax 80100ca3: e8 f8 42 00 00 call 80104fa0 <strlen> 80100ca8: f7 d0 not %eax 80100caa: 01 c3 add %eax,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100cac: 58 pop %eax 80100cad: 8b 45 0c mov 0xc(%ebp),%eax sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100cb0: 83 e3 fc and $0xfffffffc,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100cb3: ff 34 b8 pushl (%eax,%edi,4) 80100cb6: e8 e5 42 00 00 call 80104fa0 <strlen> 80100cbb: 83 c0 01 add $0x1,%eax 80100cbe: 50 push %eax 80100cbf: 8b 45 0c mov 0xc(%ebp),%eax 80100cc2: ff 34 b8 pushl (%eax,%edi,4) 80100cc5: 53 push %ebx 80100cc6: 56 push %esi 80100cc7: e8 a4 6b 00 00 call 80107870 <copyout> 80100ccc: 83 c4 20 add $0x20,%esp 80100ccf: 85 c0 test %eax,%eax 80100cd1: 79 ad jns 80100c80 <exec+0x200> 80100cd3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100cd7: 90 nop freevm(pgdir); 80100cd8: 83 ec 0c sub $0xc,%esp 80100cdb: ff b5 f4 fe ff ff pushl -0x10c(%ebp) 80100ce1: e8 0a 69 00 00 call 801075f0 <freevm> 80100ce6: 83 c4 10 add $0x10,%esp return -1; 80100ce9: b8 ff ff ff ff mov $0xffffffff,%eax 80100cee: e9 fd fd ff ff jmp 80100af0 <exec+0x70> 80100cf3: 8b b5 f0 fe ff ff mov -0x110(%ebp),%esi ustack[2] = sp - (argc+1)*4; // argv pointer 80100cf9: 8d 04 bd 04 00 00 00 lea 0x4(,%edi,4),%eax 80100d00: 89 d9 mov %ebx,%ecx ustack[3+argc] = 0; 80100d02: c7 84 bd 64 ff ff ff movl $0x0,-0x9c(%ebp,%edi,4) 80100d09: 00 00 00 00 ustack[2] = sp - (argc+1)*4; // argv pointer 80100d0d: 29 c1 sub %eax,%ecx sp -= (3+argc+1) * 4; 80100d0f: 83 c0 0c add $0xc,%eax ustack[1] = argc; 80100d12: 89 bd 5c ff ff ff mov %edi,-0xa4(%ebp) sp -= (3+argc+1) * 4; 80100d18: 29 c3 sub %eax,%ebx if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100d1a: 50 push %eax 80100d1b: 52 push %edx 80100d1c: 53 push %ebx 80100d1d: ff b5 f4 fe ff ff pushl -0x10c(%ebp) ustack[0] = 0xffffffff; // fake return PC 80100d23: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp) 80100d2a: ff ff ff ustack[2] = sp - (argc+1)*4; // argv pointer 80100d2d: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100d33: e8 38 6b 00 00 call 80107870 <copyout> 80100d38: 83 c4 10 add $0x10,%esp 80100d3b: 85 c0 test %eax,%eax 80100d3d: 78 99 js 80100cd8 <exec+0x258> for(last=s=path; *s; s++) 80100d3f: 8b 45 08 mov 0x8(%ebp),%eax 80100d42: 8b 55 08 mov 0x8(%ebp),%edx 80100d45: 0f b6 00 movzbl (%eax),%eax 80100d48: 84 c0 test %al,%al 80100d4a: 74 13 je 80100d5f <exec+0x2df> 80100d4c: 89 d1 mov %edx,%ecx 80100d4e: 66 90 xchg %ax,%ax if(*s == '/') 80100d50: 83 c1 01 add $0x1,%ecx 80100d53: 3c 2f cmp $0x2f,%al for(last=s=path; *s; s++) 80100d55: 0f b6 01 movzbl (%ecx),%eax if(*s == '/') 80100d58: 0f 44 d1 cmove %ecx,%edx for(last=s=path; *s; s++) 80100d5b: 84 c0 test %al,%al 80100d5d: 75 f1 jne 80100d50 <exec+0x2d0> safestrcpy(curproc->name, last, sizeof(curproc->name)); 80100d5f: 8b bd ec fe ff ff mov -0x114(%ebp),%edi 80100d65: 83 ec 04 sub $0x4,%esp 80100d68: 6a 10 push $0x10 80100d6a: 89 f8 mov %edi,%eax 80100d6c: 52 push %edx 80100d6d: 83 c0 6c add $0x6c,%eax 80100d70: 50 push %eax 80100d71: e8 ea 41 00 00 call 80104f60 <safestrcpy> curproc->pgdir = pgdir; 80100d76: 8b 8d f4 fe ff ff mov -0x10c(%ebp),%ecx oldpgdir = curproc->pgdir; 80100d7c: 89 f8 mov %edi,%eax 80100d7e: 8b 7f 04 mov 0x4(%edi),%edi curproc->sz = sz; 80100d81: 89 30 mov %esi,(%eax) curproc->pgdir = pgdir; 80100d83: 89 48 04 mov %ecx,0x4(%eax) curproc->tf->eip = elf.entry; // main 80100d86: 89 c1 mov %eax,%ecx 80100d88: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx 80100d8e: 8b 40 18 mov 0x18(%eax),%eax 80100d91: 89 50 38 mov %edx,0x38(%eax) curproc->tf->esp = sp; 80100d94: 8b 41 18 mov 0x18(%ecx),%eax 80100d97: 89 58 44 mov %ebx,0x44(%eax) curproc->priority = 3; 80100d9a: c7 81 8c 00 00 00 03 movl $0x3,0x8c(%ecx) 80100da1: 00 00 00 switchuvm(curproc); 80100da4: 89 0c 24 mov %ecx,(%esp) 80100da7: e8 84 64 00 00 call 80107230 <switchuvm> freevm(oldpgdir); 80100dac: 89 3c 24 mov %edi,(%esp) 80100daf: e8 3c 68 00 00 call 801075f0 <freevm> return 0; 80100db4: 83 c4 10 add $0x10,%esp 80100db7: 31 c0 xor %eax,%eax 80100db9: e9 32 fd ff ff jmp 80100af0 <exec+0x70> end_op(); 80100dbe: e8 ed 1f 00 00 call 80102db0 <end_op> cprintf("exec: fail\n"); 80100dc3: 83 ec 0c sub $0xc,%esp 80100dc6: 68 81 79 10 80 push $0x80107981 80100dcb: e8 e0 f8 ff ff call 801006b0 <cprintf> return -1; 80100dd0: 83 c4 10 add $0x10,%esp 80100dd3: b8 ff ff ff ff mov $0xffffffff,%eax 80100dd8: e9 13 fd ff ff jmp 80100af0 <exec+0x70> for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100ddd: 31 ff xor %edi,%edi 80100ddf: be 00 20 00 00 mov $0x2000,%esi 80100de4: e9 2f fe ff ff jmp 80100c18 <exec+0x198> 80100de9: 66 90 xchg %ax,%ax 80100deb: 66 90 xchg %ax,%ax 80100ded: 66 90 xchg %ax,%ax 80100def: 90 nop 80100df0 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100df0: f3 0f 1e fb endbr32 80100df4: 55 push %ebp 80100df5: 89 e5 mov %esp,%ebp 80100df7: 83 ec 10 sub $0x10,%esp initlock(&ftable.lock, "ftable"); 80100dfa: 68 8d 79 10 80 push $0x8010798d 80100dff: 68 c0 0f 11 80 push $0x80110fc0 80100e04: e8 07 3d 00 00 call 80104b10 <initlock> } 80100e09: 83 c4 10 add $0x10,%esp 80100e0c: c9 leave 80100e0d: c3 ret 80100e0e: 66 90 xchg %ax,%ax 80100e10 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100e10: f3 0f 1e fb endbr32 80100e14: 55 push %ebp 80100e15: 89 e5 mov %esp,%ebp 80100e17: 53 push %ebx struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100e18: bb f4 0f 11 80 mov $0x80110ff4,%ebx { 80100e1d: 83 ec 10 sub $0x10,%esp acquire(&ftable.lock); 80100e20: 68 c0 0f 11 80 push $0x80110fc0 80100e25: e8 66 3e 00 00 call 80104c90 <acquire> 80100e2a: 83 c4 10 add $0x10,%esp 80100e2d: eb 0c jmp 80100e3b <filealloc+0x2b> 80100e2f: 90 nop for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100e30: 83 c3 18 add $0x18,%ebx 80100e33: 81 fb 54 19 11 80 cmp $0x80111954,%ebx 80100e39: 74 25 je 80100e60 <filealloc+0x50> if(f->ref == 0){ 80100e3b: 8b 43 04 mov 0x4(%ebx),%eax 80100e3e: 85 c0 test %eax,%eax 80100e40: 75 ee jne 80100e30 <filealloc+0x20> f->ref = 1; release(&ftable.lock); 80100e42: 83 ec 0c sub $0xc,%esp f->ref = 1; 80100e45: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) release(&ftable.lock); 80100e4c: 68 c0 0f 11 80 push $0x80110fc0 80100e51: e8 fa 3e 00 00 call 80104d50 <release> return f; } } release(&ftable.lock); return 0; } 80100e56: 89 d8 mov %ebx,%eax return f; 80100e58: 83 c4 10 add $0x10,%esp } 80100e5b: 8b 5d fc mov -0x4(%ebp),%ebx 80100e5e: c9 leave 80100e5f: c3 ret release(&ftable.lock); 80100e60: 83 ec 0c sub $0xc,%esp return 0; 80100e63: 31 db xor %ebx,%ebx release(&ftable.lock); 80100e65: 68 c0 0f 11 80 push $0x80110fc0 80100e6a: e8 e1 3e 00 00 call 80104d50 <release> } 80100e6f: 89 d8 mov %ebx,%eax return 0; 80100e71: 83 c4 10 add $0x10,%esp } 80100e74: 8b 5d fc mov -0x4(%ebp),%ebx 80100e77: c9 leave 80100e78: c3 ret 80100e79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100e80 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80100e80: f3 0f 1e fb endbr32 80100e84: 55 push %ebp 80100e85: 89 e5 mov %esp,%ebp 80100e87: 53 push %ebx 80100e88: 83 ec 10 sub $0x10,%esp 80100e8b: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ftable.lock); 80100e8e: 68 c0 0f 11 80 push $0x80110fc0 80100e93: e8 f8 3d 00 00 call 80104c90 <acquire> if(f->ref < 1) 80100e98: 8b 43 04 mov 0x4(%ebx),%eax 80100e9b: 83 c4 10 add $0x10,%esp 80100e9e: 85 c0 test %eax,%eax 80100ea0: 7e 1a jle 80100ebc <filedup+0x3c> panic("filedup"); f->ref++; 80100ea2: 83 c0 01 add $0x1,%eax release(&ftable.lock); 80100ea5: 83 ec 0c sub $0xc,%esp f->ref++; 80100ea8: 89 43 04 mov %eax,0x4(%ebx) release(&ftable.lock); 80100eab: 68 c0 0f 11 80 push $0x80110fc0 80100eb0: e8 9b 3e 00 00 call 80104d50 <release> return f; } 80100eb5: 89 d8 mov %ebx,%eax 80100eb7: 8b 5d fc mov -0x4(%ebp),%ebx 80100eba: c9 leave 80100ebb: c3 ret panic("filedup"); 80100ebc: 83 ec 0c sub $0xc,%esp 80100ebf: 68 94 79 10 80 push $0x80107994 80100ec4: e8 c7 f4 ff ff call 80100390 <panic> 80100ec9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100ed0 <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80100ed0: f3 0f 1e fb endbr32 80100ed4: 55 push %ebp 80100ed5: 89 e5 mov %esp,%ebp 80100ed7: 57 push %edi 80100ed8: 56 push %esi 80100ed9: 53 push %ebx 80100eda: 83 ec 28 sub $0x28,%esp 80100edd: 8b 5d 08 mov 0x8(%ebp),%ebx struct file ff; acquire(&ftable.lock); 80100ee0: 68 c0 0f 11 80 push $0x80110fc0 80100ee5: e8 a6 3d 00 00 call 80104c90 <acquire> if(f->ref < 1) 80100eea: 8b 53 04 mov 0x4(%ebx),%edx 80100eed: 83 c4 10 add $0x10,%esp 80100ef0: 85 d2 test %edx,%edx 80100ef2: 0f 8e a1 00 00 00 jle 80100f99 <fileclose+0xc9> panic("fileclose"); if(--f->ref > 0){ 80100ef8: 83 ea 01 sub $0x1,%edx 80100efb: 89 53 04 mov %edx,0x4(%ebx) 80100efe: 75 40 jne 80100f40 <fileclose+0x70> release(&ftable.lock); return; } ff = *f; 80100f00: 0f b6 43 09 movzbl 0x9(%ebx),%eax f->ref = 0; f->type = FD_NONE; release(&ftable.lock); 80100f04: 83 ec 0c sub $0xc,%esp ff = *f; 80100f07: 8b 3b mov (%ebx),%edi f->type = FD_NONE; 80100f09: c7 03 00 00 00 00 movl $0x0,(%ebx) ff = *f; 80100f0f: 8b 73 0c mov 0xc(%ebx),%esi 80100f12: 88 45 e7 mov %al,-0x19(%ebp) 80100f15: 8b 43 10 mov 0x10(%ebx),%eax release(&ftable.lock); 80100f18: 68 c0 0f 11 80 push $0x80110fc0 ff = *f; 80100f1d: 89 45 e0 mov %eax,-0x20(%ebp) release(&ftable.lock); 80100f20: e8 2b 3e 00 00 call 80104d50 <release> if(ff.type == FD_PIPE) 80100f25: 83 c4 10 add $0x10,%esp 80100f28: 83 ff 01 cmp $0x1,%edi 80100f2b: 74 53 je 80100f80 <fileclose+0xb0> pipeclose(ff.pipe, ff.writable); else if(ff.type == FD_INODE){ 80100f2d: 83 ff 02 cmp $0x2,%edi 80100f30: 74 26 je 80100f58 <fileclose+0x88> begin_op(); iput(ff.ip); end_op(); } } 80100f32: 8d 65 f4 lea -0xc(%ebp),%esp 80100f35: 5b pop %ebx 80100f36: 5e pop %esi 80100f37: 5f pop %edi 80100f38: 5d pop %ebp 80100f39: c3 ret 80100f3a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi release(&ftable.lock); 80100f40: c7 45 08 c0 0f 11 80 movl $0x80110fc0,0x8(%ebp) } 80100f47: 8d 65 f4 lea -0xc(%ebp),%esp 80100f4a: 5b pop %ebx 80100f4b: 5e pop %esi 80100f4c: 5f pop %edi 80100f4d: 5d pop %ebp release(&ftable.lock); 80100f4e: e9 fd 3d 00 00 jmp 80104d50 <release> 80100f53: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100f57: 90 nop begin_op(); 80100f58: e8 e3 1d 00 00 call 80102d40 <begin_op> iput(ff.ip); 80100f5d: 83 ec 0c sub $0xc,%esp 80100f60: ff 75 e0 pushl -0x20(%ebp) 80100f63: e8 38 09 00 00 call 801018a0 <iput> end_op(); 80100f68: 83 c4 10 add $0x10,%esp } 80100f6b: 8d 65 f4 lea -0xc(%ebp),%esp 80100f6e: 5b pop %ebx 80100f6f: 5e pop %esi 80100f70: 5f pop %edi 80100f71: 5d pop %ebp end_op(); 80100f72: e9 39 1e 00 00 jmp 80102db0 <end_op> 80100f77: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100f7e: 66 90 xchg %ax,%ax pipeclose(ff.pipe, ff.writable); 80100f80: 0f be 5d e7 movsbl -0x19(%ebp),%ebx 80100f84: 83 ec 08 sub $0x8,%esp 80100f87: 53 push %ebx 80100f88: 56 push %esi 80100f89: e8 82 25 00 00 call 80103510 <pipeclose> 80100f8e: 83 c4 10 add $0x10,%esp } 80100f91: 8d 65 f4 lea -0xc(%ebp),%esp 80100f94: 5b pop %ebx 80100f95: 5e pop %esi 80100f96: 5f pop %edi 80100f97: 5d pop %ebp 80100f98: c3 ret panic("fileclose"); 80100f99: 83 ec 0c sub $0xc,%esp 80100f9c: 68 9c 79 10 80 push $0x8010799c 80100fa1: e8 ea f3 ff ff call 80100390 <panic> 80100fa6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100fad: 8d 76 00 lea 0x0(%esi),%esi 80100fb0 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80100fb0: f3 0f 1e fb endbr32 80100fb4: 55 push %ebp 80100fb5: 89 e5 mov %esp,%ebp 80100fb7: 53 push %ebx 80100fb8: 83 ec 04 sub $0x4,%esp 80100fbb: 8b 5d 08 mov 0x8(%ebp),%ebx if(f->type == FD_INODE){ 80100fbe: 83 3b 02 cmpl $0x2,(%ebx) 80100fc1: 75 2d jne 80100ff0 <filestat+0x40> ilock(f->ip); 80100fc3: 83 ec 0c sub $0xc,%esp 80100fc6: ff 73 10 pushl 0x10(%ebx) 80100fc9: e8 a2 07 00 00 call 80101770 <ilock> stati(f->ip, st); 80100fce: 58 pop %eax 80100fcf: 5a pop %edx 80100fd0: ff 75 0c pushl 0xc(%ebp) 80100fd3: ff 73 10 pushl 0x10(%ebx) 80100fd6: e8 65 0a 00 00 call 80101a40 <stati> iunlock(f->ip); 80100fdb: 59 pop %ecx 80100fdc: ff 73 10 pushl 0x10(%ebx) 80100fdf: e8 6c 08 00 00 call 80101850 <iunlock> return 0; } return -1; } 80100fe4: 8b 5d fc mov -0x4(%ebp),%ebx return 0; 80100fe7: 83 c4 10 add $0x10,%esp 80100fea: 31 c0 xor %eax,%eax } 80100fec: c9 leave 80100fed: c3 ret 80100fee: 66 90 xchg %ax,%ax 80100ff0: 8b 5d fc mov -0x4(%ebp),%ebx return -1; 80100ff3: b8 ff ff ff ff mov $0xffffffff,%eax } 80100ff8: c9 leave 80100ff9: c3 ret 80100ffa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101000 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80101000: f3 0f 1e fb endbr32 80101004: 55 push %ebp 80101005: 89 e5 mov %esp,%ebp 80101007: 57 push %edi 80101008: 56 push %esi 80101009: 53 push %ebx 8010100a: 83 ec 0c sub $0xc,%esp 8010100d: 8b 5d 08 mov 0x8(%ebp),%ebx 80101010: 8b 75 0c mov 0xc(%ebp),%esi 80101013: 8b 7d 10 mov 0x10(%ebp),%edi int r; if(f->readable == 0) 80101016: 80 7b 08 00 cmpb $0x0,0x8(%ebx) 8010101a: 74 64 je 80101080 <fileread+0x80> return -1; if(f->type == FD_PIPE) 8010101c: 8b 03 mov (%ebx),%eax 8010101e: 83 f8 01 cmp $0x1,%eax 80101021: 74 45 je 80101068 <fileread+0x68> return piperead(f->pipe, addr, n); if(f->type == FD_INODE){ 80101023: 83 f8 02 cmp $0x2,%eax 80101026: 75 5f jne 80101087 <fileread+0x87> ilock(f->ip); 80101028: 83 ec 0c sub $0xc,%esp 8010102b: ff 73 10 pushl 0x10(%ebx) 8010102e: e8 3d 07 00 00 call 80101770 <ilock> if((r = readi(f->ip, addr, f->off, n)) > 0) 80101033: 57 push %edi 80101034: ff 73 14 pushl 0x14(%ebx) 80101037: 56 push %esi 80101038: ff 73 10 pushl 0x10(%ebx) 8010103b: e8 30 0a 00 00 call 80101a70 <readi> 80101040: 83 c4 20 add $0x20,%esp 80101043: 89 c6 mov %eax,%esi 80101045: 85 c0 test %eax,%eax 80101047: 7e 03 jle 8010104c <fileread+0x4c> f->off += r; 80101049: 01 43 14 add %eax,0x14(%ebx) iunlock(f->ip); 8010104c: 83 ec 0c sub $0xc,%esp 8010104f: ff 73 10 pushl 0x10(%ebx) 80101052: e8 f9 07 00 00 call 80101850 <iunlock> return r; 80101057: 83 c4 10 add $0x10,%esp } panic("fileread"); } 8010105a: 8d 65 f4 lea -0xc(%ebp),%esp 8010105d: 89 f0 mov %esi,%eax 8010105f: 5b pop %ebx 80101060: 5e pop %esi 80101061: 5f pop %edi 80101062: 5d pop %ebp 80101063: c3 ret 80101064: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return piperead(f->pipe, addr, n); 80101068: 8b 43 0c mov 0xc(%ebx),%eax 8010106b: 89 45 08 mov %eax,0x8(%ebp) } 8010106e: 8d 65 f4 lea -0xc(%ebp),%esp 80101071: 5b pop %ebx 80101072: 5e pop %esi 80101073: 5f pop %edi 80101074: 5d pop %ebp return piperead(f->pipe, addr, n); 80101075: e9 36 26 00 00 jmp 801036b0 <piperead> 8010107a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 80101080: be ff ff ff ff mov $0xffffffff,%esi 80101085: eb d3 jmp 8010105a <fileread+0x5a> panic("fileread"); 80101087: 83 ec 0c sub $0xc,%esp 8010108a: 68 a6 79 10 80 push $0x801079a6 8010108f: e8 fc f2 ff ff call 80100390 <panic> 80101094: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010109b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010109f: 90 nop 801010a0 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 801010a0: f3 0f 1e fb endbr32 801010a4: 55 push %ebp 801010a5: 89 e5 mov %esp,%ebp 801010a7: 57 push %edi 801010a8: 56 push %esi 801010a9: 53 push %ebx 801010aa: 83 ec 1c sub $0x1c,%esp 801010ad: 8b 45 0c mov 0xc(%ebp),%eax 801010b0: 8b 75 08 mov 0x8(%ebp),%esi 801010b3: 89 45 dc mov %eax,-0x24(%ebp) 801010b6: 8b 45 10 mov 0x10(%ebp),%eax int r; if(f->writable == 0) 801010b9: 80 7e 09 00 cmpb $0x0,0x9(%esi) { 801010bd: 89 45 e4 mov %eax,-0x1c(%ebp) if(f->writable == 0) 801010c0: 0f 84 c1 00 00 00 je 80101187 <filewrite+0xe7> return -1; if(f->type == FD_PIPE) 801010c6: 8b 06 mov (%esi),%eax 801010c8: 83 f8 01 cmp $0x1,%eax 801010cb: 0f 84 c3 00 00 00 je 80101194 <filewrite+0xf4> return pipewrite(f->pipe, addr, n); if(f->type == FD_INODE){ 801010d1: 83 f8 02 cmp $0x2,%eax 801010d4: 0f 85 cc 00 00 00 jne 801011a6 <filewrite+0x106> // 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 = ((MAXOPBLOCKS-1-1-2) / 2) * 512; int i = 0; while(i < n){ 801010da: 8b 45 e4 mov -0x1c(%ebp),%eax int i = 0; 801010dd: 31 ff xor %edi,%edi while(i < n){ 801010df: 85 c0 test %eax,%eax 801010e1: 7f 34 jg 80101117 <filewrite+0x77> 801010e3: e9 98 00 00 00 jmp 80101180 <filewrite+0xe0> 801010e8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801010ef: 90 nop n1 = max; begin_op(); ilock(f->ip); if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) f->off += r; 801010f0: 01 46 14 add %eax,0x14(%esi) iunlock(f->ip); 801010f3: 83 ec 0c sub $0xc,%esp 801010f6: ff 76 10 pushl 0x10(%esi) f->off += r; 801010f9: 89 45 e0 mov %eax,-0x20(%ebp) iunlock(f->ip); 801010fc: e8 4f 07 00 00 call 80101850 <iunlock> end_op(); 80101101: e8 aa 1c 00 00 call 80102db0 <end_op> if(r < 0) break; if(r != n1) 80101106: 8b 45 e0 mov -0x20(%ebp),%eax 80101109: 83 c4 10 add $0x10,%esp 8010110c: 39 c3 cmp %eax,%ebx 8010110e: 75 60 jne 80101170 <filewrite+0xd0> panic("short filewrite"); i += r; 80101110: 01 df add %ebx,%edi while(i < n){ 80101112: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101115: 7e 69 jle 80101180 <filewrite+0xe0> int n1 = n - i; 80101117: 8b 5d e4 mov -0x1c(%ebp),%ebx 8010111a: b8 00 06 00 00 mov $0x600,%eax 8010111f: 29 fb sub %edi,%ebx if(n1 > max) 80101121: 81 fb 00 06 00 00 cmp $0x600,%ebx 80101127: 0f 4f d8 cmovg %eax,%ebx begin_op(); 8010112a: e8 11 1c 00 00 call 80102d40 <begin_op> ilock(f->ip); 8010112f: 83 ec 0c sub $0xc,%esp 80101132: ff 76 10 pushl 0x10(%esi) 80101135: e8 36 06 00 00 call 80101770 <ilock> if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 8010113a: 8b 45 dc mov -0x24(%ebp),%eax 8010113d: 53 push %ebx 8010113e: ff 76 14 pushl 0x14(%esi) 80101141: 01 f8 add %edi,%eax 80101143: 50 push %eax 80101144: ff 76 10 pushl 0x10(%esi) 80101147: e8 24 0a 00 00 call 80101b70 <writei> 8010114c: 83 c4 20 add $0x20,%esp 8010114f: 85 c0 test %eax,%eax 80101151: 7f 9d jg 801010f0 <filewrite+0x50> iunlock(f->ip); 80101153: 83 ec 0c sub $0xc,%esp 80101156: ff 76 10 pushl 0x10(%esi) 80101159: 89 45 e4 mov %eax,-0x1c(%ebp) 8010115c: e8 ef 06 00 00 call 80101850 <iunlock> end_op(); 80101161: e8 4a 1c 00 00 call 80102db0 <end_op> if(r < 0) 80101166: 8b 45 e4 mov -0x1c(%ebp),%eax 80101169: 83 c4 10 add $0x10,%esp 8010116c: 85 c0 test %eax,%eax 8010116e: 75 17 jne 80101187 <filewrite+0xe7> panic("short filewrite"); 80101170: 83 ec 0c sub $0xc,%esp 80101173: 68 af 79 10 80 push $0x801079af 80101178: e8 13 f2 ff ff call 80100390 <panic> 8010117d: 8d 76 00 lea 0x0(%esi),%esi } return i == n ? n : -1; 80101180: 89 f8 mov %edi,%eax 80101182: 3b 7d e4 cmp -0x1c(%ebp),%edi 80101185: 74 05 je 8010118c <filewrite+0xec> 80101187: b8 ff ff ff ff mov $0xffffffff,%eax } panic("filewrite"); } 8010118c: 8d 65 f4 lea -0xc(%ebp),%esp 8010118f: 5b pop %ebx 80101190: 5e pop %esi 80101191: 5f pop %edi 80101192: 5d pop %ebp 80101193: c3 ret return pipewrite(f->pipe, addr, n); 80101194: 8b 46 0c mov 0xc(%esi),%eax 80101197: 89 45 08 mov %eax,0x8(%ebp) } 8010119a: 8d 65 f4 lea -0xc(%ebp),%esp 8010119d: 5b pop %ebx 8010119e: 5e pop %esi 8010119f: 5f pop %edi 801011a0: 5d pop %ebp return pipewrite(f->pipe, addr, n); 801011a1: e9 0a 24 00 00 jmp 801035b0 <pipewrite> panic("filewrite"); 801011a6: 83 ec 0c sub $0xc,%esp 801011a9: 68 b5 79 10 80 push $0x801079b5 801011ae: e8 dd f1 ff ff call 80100390 <panic> 801011b3: 66 90 xchg %ax,%ax 801011b5: 66 90 xchg %ax,%ax 801011b7: 66 90 xchg %ax,%ax 801011b9: 66 90 xchg %ax,%ax 801011bb: 66 90 xchg %ax,%ax 801011bd: 66 90 xchg %ax,%ax 801011bf: 90 nop 801011c0 <bfree>: } // Free a disk block. static void bfree(int dev, uint b) { 801011c0: 55 push %ebp 801011c1: 89 c1 mov %eax,%ecx struct buf *bp; int bi, m; bp = bread(dev, BBLOCK(b, sb)); 801011c3: 89 d0 mov %edx,%eax 801011c5: c1 e8 0c shr $0xc,%eax 801011c8: 03 05 d8 19 11 80 add 0x801119d8,%eax { 801011ce: 89 e5 mov %esp,%ebp 801011d0: 56 push %esi 801011d1: 53 push %ebx 801011d2: 89 d3 mov %edx,%ebx bp = bread(dev, BBLOCK(b, sb)); 801011d4: 83 ec 08 sub $0x8,%esp 801011d7: 50 push %eax 801011d8: 51 push %ecx 801011d9: e8 f2 ee ff ff call 801000d0 <bread> bi = b % BPB; m = 1 << (bi % 8); 801011de: 89 d9 mov %ebx,%ecx if((bp->data[bi/8] & m) == 0) 801011e0: c1 fb 03 sar $0x3,%ebx m = 1 << (bi % 8); 801011e3: ba 01 00 00 00 mov $0x1,%edx 801011e8: 83 e1 07 and $0x7,%ecx if((bp->data[bi/8] & m) == 0) 801011eb: 81 e3 ff 01 00 00 and $0x1ff,%ebx 801011f1: 83 c4 10 add $0x10,%esp m = 1 << (bi % 8); 801011f4: d3 e2 shl %cl,%edx if((bp->data[bi/8] & m) == 0) 801011f6: 0f b6 4c 18 5c movzbl 0x5c(%eax,%ebx,1),%ecx 801011fb: 85 d1 test %edx,%ecx 801011fd: 74 25 je 80101224 <bfree+0x64> panic("freeing free block"); bp->data[bi/8] &= ~m; 801011ff: f7 d2 not %edx log_write(bp); 80101201: 83 ec 0c sub $0xc,%esp 80101204: 89 c6 mov %eax,%esi bp->data[bi/8] &= ~m; 80101206: 21 ca and %ecx,%edx 80101208: 88 54 18 5c mov %dl,0x5c(%eax,%ebx,1) log_write(bp); 8010120c: 50 push %eax 8010120d: e8 0e 1d 00 00 call 80102f20 <log_write> brelse(bp); 80101212: 89 34 24 mov %esi,(%esp) 80101215: e8 d6 ef ff ff call 801001f0 <brelse> } 8010121a: 83 c4 10 add $0x10,%esp 8010121d: 8d 65 f8 lea -0x8(%ebp),%esp 80101220: 5b pop %ebx 80101221: 5e pop %esi 80101222: 5d pop %ebp 80101223: c3 ret panic("freeing free block"); 80101224: 83 ec 0c sub $0xc,%esp 80101227: 68 bf 79 10 80 push $0x801079bf 8010122c: e8 5f f1 ff ff call 80100390 <panic> 80101231: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101238: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010123f: 90 nop 80101240 <balloc>: { 80101240: 55 push %ebp 80101241: 89 e5 mov %esp,%ebp 80101243: 57 push %edi 80101244: 56 push %esi 80101245: 53 push %ebx 80101246: 83 ec 1c sub $0x1c,%esp for(b = 0; b < sb.size; b += BPB){ 80101249: 8b 0d c0 19 11 80 mov 0x801119c0,%ecx { 8010124f: 89 45 d8 mov %eax,-0x28(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101252: 85 c9 test %ecx,%ecx 80101254: 0f 84 87 00 00 00 je 801012e1 <balloc+0xa1> 8010125a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) bp = bread(dev, BBLOCK(b, sb)); 80101261: 8b 75 dc mov -0x24(%ebp),%esi 80101264: 83 ec 08 sub $0x8,%esp 80101267: 89 f0 mov %esi,%eax 80101269: c1 f8 0c sar $0xc,%eax 8010126c: 03 05 d8 19 11 80 add 0x801119d8,%eax 80101272: 50 push %eax 80101273: ff 75 d8 pushl -0x28(%ebp) 80101276: e8 55 ee ff ff call 801000d0 <bread> 8010127b: 83 c4 10 add $0x10,%esp 8010127e: 89 45 e4 mov %eax,-0x1c(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 80101281: a1 c0 19 11 80 mov 0x801119c0,%eax 80101286: 89 45 e0 mov %eax,-0x20(%ebp) 80101289: 31 c0 xor %eax,%eax 8010128b: eb 2f jmp 801012bc <balloc+0x7c> 8010128d: 8d 76 00 lea 0x0(%esi),%esi m = 1 << (bi % 8); 80101290: 89 c1 mov %eax,%ecx 80101292: bb 01 00 00 00 mov $0x1,%ebx if((bp->data[bi/8] & m) == 0){ // Is block free? 80101297: 8b 55 e4 mov -0x1c(%ebp),%edx m = 1 << (bi % 8); 8010129a: 83 e1 07 and $0x7,%ecx 8010129d: d3 e3 shl %cl,%ebx if((bp->data[bi/8] & m) == 0){ // Is block free? 8010129f: 89 c1 mov %eax,%ecx 801012a1: c1 f9 03 sar $0x3,%ecx 801012a4: 0f b6 7c 0a 5c movzbl 0x5c(%edx,%ecx,1),%edi 801012a9: 89 fa mov %edi,%edx 801012ab: 85 df test %ebx,%edi 801012ad: 74 41 je 801012f0 <balloc+0xb0> for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 801012af: 83 c0 01 add $0x1,%eax 801012b2: 83 c6 01 add $0x1,%esi 801012b5: 3d 00 10 00 00 cmp $0x1000,%eax 801012ba: 74 05 je 801012c1 <balloc+0x81> 801012bc: 39 75 e0 cmp %esi,-0x20(%ebp) 801012bf: 77 cf ja 80101290 <balloc+0x50> brelse(bp); 801012c1: 83 ec 0c sub $0xc,%esp 801012c4: ff 75 e4 pushl -0x1c(%ebp) 801012c7: e8 24 ef ff ff call 801001f0 <brelse> for(b = 0; b < sb.size; b += BPB){ 801012cc: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp) 801012d3: 83 c4 10 add $0x10,%esp 801012d6: 8b 45 dc mov -0x24(%ebp),%eax 801012d9: 39 05 c0 19 11 80 cmp %eax,0x801119c0 801012df: 77 80 ja 80101261 <balloc+0x21> panic("balloc: out of blocks"); 801012e1: 83 ec 0c sub $0xc,%esp 801012e4: 68 d2 79 10 80 push $0x801079d2 801012e9: e8 a2 f0 ff ff call 80100390 <panic> 801012ee: 66 90 xchg %ax,%ax bp->data[bi/8] |= m; // Mark block in use. 801012f0: 8b 7d e4 mov -0x1c(%ebp),%edi log_write(bp); 801012f3: 83 ec 0c sub $0xc,%esp bp->data[bi/8] |= m; // Mark block in use. 801012f6: 09 da or %ebx,%edx 801012f8: 88 54 0f 5c mov %dl,0x5c(%edi,%ecx,1) log_write(bp); 801012fc: 57 push %edi 801012fd: e8 1e 1c 00 00 call 80102f20 <log_write> brelse(bp); 80101302: 89 3c 24 mov %edi,(%esp) 80101305: e8 e6 ee ff ff call 801001f0 <brelse> bp = bread(dev, bno); 8010130a: 58 pop %eax 8010130b: 5a pop %edx 8010130c: 56 push %esi 8010130d: ff 75 d8 pushl -0x28(%ebp) 80101310: e8 bb ed ff ff call 801000d0 <bread> memset(bp->data, 0, BSIZE); 80101315: 83 c4 0c add $0xc,%esp bp = bread(dev, bno); 80101318: 89 c3 mov %eax,%ebx memset(bp->data, 0, BSIZE); 8010131a: 8d 40 5c lea 0x5c(%eax),%eax 8010131d: 68 00 02 00 00 push $0x200 80101322: 6a 00 push $0x0 80101324: 50 push %eax 80101325: e8 76 3a 00 00 call 80104da0 <memset> log_write(bp); 8010132a: 89 1c 24 mov %ebx,(%esp) 8010132d: e8 ee 1b 00 00 call 80102f20 <log_write> brelse(bp); 80101332: 89 1c 24 mov %ebx,(%esp) 80101335: e8 b6 ee ff ff call 801001f0 <brelse> } 8010133a: 8d 65 f4 lea -0xc(%ebp),%esp 8010133d: 89 f0 mov %esi,%eax 8010133f: 5b pop %ebx 80101340: 5e pop %esi 80101341: 5f pop %edi 80101342: 5d pop %ebp 80101343: c3 ret 80101344: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010134b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010134f: 90 nop 80101350 <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) { 80101350: 55 push %ebp 80101351: 89 e5 mov %esp,%ebp 80101353: 57 push %edi 80101354: 89 c7 mov %eax,%edi 80101356: 56 push %esi struct inode *ip, *empty; acquire(&icache.lock); // Is the inode already cached? empty = 0; 80101357: 31 f6 xor %esi,%esi { 80101359: 53 push %ebx for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010135a: bb 14 1a 11 80 mov $0x80111a14,%ebx { 8010135f: 83 ec 28 sub $0x28,%esp 80101362: 89 55 e4 mov %edx,-0x1c(%ebp) acquire(&icache.lock); 80101365: 68 e0 19 11 80 push $0x801119e0 8010136a: e8 21 39 00 00 call 80104c90 <acquire> for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010136f: 8b 55 e4 mov -0x1c(%ebp),%edx acquire(&icache.lock); 80101372: 83 c4 10 add $0x10,%esp 80101375: eb 1b jmp 80101392 <iget+0x42> 80101377: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010137e: 66 90 xchg %ax,%ax if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101380: 39 3b cmp %edi,(%ebx) 80101382: 74 6c je 801013f0 <iget+0xa0> 80101384: 81 c3 90 00 00 00 add $0x90,%ebx for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010138a: 81 fb 34 36 11 80 cmp $0x80113634,%ebx 80101390: 73 26 jae 801013b8 <iget+0x68> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101392: 8b 4b 08 mov 0x8(%ebx),%ecx 80101395: 85 c9 test %ecx,%ecx 80101397: 7f e7 jg 80101380 <iget+0x30> ip->ref++; release(&icache.lock); return ip; } if(empty == 0 && ip->ref == 0) // Remember empty slot. 80101399: 85 f6 test %esi,%esi 8010139b: 75 e7 jne 80101384 <iget+0x34> 8010139d: 89 d8 mov %ebx,%eax 8010139f: 81 c3 90 00 00 00 add $0x90,%ebx 801013a5: 85 c9 test %ecx,%ecx 801013a7: 75 6e jne 80101417 <iget+0xc7> 801013a9: 89 c6 mov %eax,%esi for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801013ab: 81 fb 34 36 11 80 cmp $0x80113634,%ebx 801013b1: 72 df jb 80101392 <iget+0x42> 801013b3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801013b7: 90 nop empty = ip; } // Recycle an inode cache entry. if(empty == 0) 801013b8: 85 f6 test %esi,%esi 801013ba: 74 73 je 8010142f <iget+0xdf> ip = empty; ip->dev = dev; ip->inum = inum; ip->ref = 1; ip->valid = 0; release(&icache.lock); 801013bc: 83 ec 0c sub $0xc,%esp ip->dev = dev; 801013bf: 89 3e mov %edi,(%esi) ip->inum = inum; 801013c1: 89 56 04 mov %edx,0x4(%esi) ip->ref = 1; 801013c4: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi) ip->valid = 0; 801013cb: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi) release(&icache.lock); 801013d2: 68 e0 19 11 80 push $0x801119e0 801013d7: e8 74 39 00 00 call 80104d50 <release> return ip; 801013dc: 83 c4 10 add $0x10,%esp } 801013df: 8d 65 f4 lea -0xc(%ebp),%esp 801013e2: 89 f0 mov %esi,%eax 801013e4: 5b pop %ebx 801013e5: 5e pop %esi 801013e6: 5f pop %edi 801013e7: 5d pop %ebp 801013e8: c3 ret 801013e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 801013f0: 39 53 04 cmp %edx,0x4(%ebx) 801013f3: 75 8f jne 80101384 <iget+0x34> release(&icache.lock); 801013f5: 83 ec 0c sub $0xc,%esp ip->ref++; 801013f8: 83 c1 01 add $0x1,%ecx return ip; 801013fb: 89 de mov %ebx,%esi release(&icache.lock); 801013fd: 68 e0 19 11 80 push $0x801119e0 ip->ref++; 80101402: 89 4b 08 mov %ecx,0x8(%ebx) release(&icache.lock); 80101405: e8 46 39 00 00 call 80104d50 <release> return ip; 8010140a: 83 c4 10 add $0x10,%esp } 8010140d: 8d 65 f4 lea -0xc(%ebp),%esp 80101410: 89 f0 mov %esi,%eax 80101412: 5b pop %ebx 80101413: 5e pop %esi 80101414: 5f pop %edi 80101415: 5d pop %ebp 80101416: c3 ret for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 80101417: 81 fb 34 36 11 80 cmp $0x80113634,%ebx 8010141d: 73 10 jae 8010142f <iget+0xdf> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 8010141f: 8b 4b 08 mov 0x8(%ebx),%ecx 80101422: 85 c9 test %ecx,%ecx 80101424: 0f 8f 56 ff ff ff jg 80101380 <iget+0x30> 8010142a: e9 6e ff ff ff jmp 8010139d <iget+0x4d> panic("iget: no inodes"); 8010142f: 83 ec 0c sub $0xc,%esp 80101432: 68 e8 79 10 80 push $0x801079e8 80101437: e8 54 ef ff ff call 80100390 <panic> 8010143c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101440 <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) { 80101440: 55 push %ebp 80101441: 89 e5 mov %esp,%ebp 80101443: 57 push %edi 80101444: 56 push %esi 80101445: 89 c6 mov %eax,%esi 80101447: 53 push %ebx 80101448: 83 ec 1c sub $0x1c,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 8010144b: 83 fa 0b cmp $0xb,%edx 8010144e: 0f 86 84 00 00 00 jbe 801014d8 <bmap+0x98> if((addr = ip->addrs[bn]) == 0) ip->addrs[bn] = addr = balloc(ip->dev); return addr; } bn -= NDIRECT; 80101454: 8d 5a f4 lea -0xc(%edx),%ebx if(bn < NINDIRECT){ 80101457: 83 fb 7f cmp $0x7f,%ebx 8010145a: 0f 87 98 00 00 00 ja 801014f8 <bmap+0xb8> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101460: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax 80101466: 8b 16 mov (%esi),%edx 80101468: 85 c0 test %eax,%eax 8010146a: 74 54 je 801014c0 <bmap+0x80> ip->addrs[NDIRECT] = addr = balloc(ip->dev); bp = bread(ip->dev, addr); 8010146c: 83 ec 08 sub $0x8,%esp 8010146f: 50 push %eax 80101470: 52 push %edx 80101471: e8 5a ec ff ff call 801000d0 <bread> a = (uint*)bp->data; if((addr = a[bn]) == 0){ 80101476: 83 c4 10 add $0x10,%esp 80101479: 8d 54 98 5c lea 0x5c(%eax,%ebx,4),%edx bp = bread(ip->dev, addr); 8010147d: 89 c7 mov %eax,%edi if((addr = a[bn]) == 0){ 8010147f: 8b 1a mov (%edx),%ebx 80101481: 85 db test %ebx,%ebx 80101483: 74 1b je 801014a0 <bmap+0x60> a[bn] = addr = balloc(ip->dev); log_write(bp); } brelse(bp); 80101485: 83 ec 0c sub $0xc,%esp 80101488: 57 push %edi 80101489: e8 62 ed ff ff call 801001f0 <brelse> return addr; 8010148e: 83 c4 10 add $0x10,%esp } panic("bmap: out of range"); } 80101491: 8d 65 f4 lea -0xc(%ebp),%esp 80101494: 89 d8 mov %ebx,%eax 80101496: 5b pop %ebx 80101497: 5e pop %esi 80101498: 5f pop %edi 80101499: 5d pop %ebp 8010149a: c3 ret 8010149b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010149f: 90 nop a[bn] = addr = balloc(ip->dev); 801014a0: 8b 06 mov (%esi),%eax 801014a2: 89 55 e4 mov %edx,-0x1c(%ebp) 801014a5: e8 96 fd ff ff call 80101240 <balloc> 801014aa: 8b 55 e4 mov -0x1c(%ebp),%edx log_write(bp); 801014ad: 83 ec 0c sub $0xc,%esp a[bn] = addr = balloc(ip->dev); 801014b0: 89 c3 mov %eax,%ebx 801014b2: 89 02 mov %eax,(%edx) log_write(bp); 801014b4: 57 push %edi 801014b5: e8 66 1a 00 00 call 80102f20 <log_write> 801014ba: 83 c4 10 add $0x10,%esp 801014bd: eb c6 jmp 80101485 <bmap+0x45> 801014bf: 90 nop ip->addrs[NDIRECT] = addr = balloc(ip->dev); 801014c0: 89 d0 mov %edx,%eax 801014c2: e8 79 fd ff ff call 80101240 <balloc> 801014c7: 8b 16 mov (%esi),%edx 801014c9: 89 86 8c 00 00 00 mov %eax,0x8c(%esi) 801014cf: eb 9b jmp 8010146c <bmap+0x2c> 801014d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if((addr = ip->addrs[bn]) == 0) 801014d8: 8d 3c 90 lea (%eax,%edx,4),%edi 801014db: 8b 5f 5c mov 0x5c(%edi),%ebx 801014de: 85 db test %ebx,%ebx 801014e0: 75 af jne 80101491 <bmap+0x51> ip->addrs[bn] = addr = balloc(ip->dev); 801014e2: 8b 00 mov (%eax),%eax 801014e4: e8 57 fd ff ff call 80101240 <balloc> 801014e9: 89 47 5c mov %eax,0x5c(%edi) 801014ec: 89 c3 mov %eax,%ebx } 801014ee: 8d 65 f4 lea -0xc(%ebp),%esp 801014f1: 89 d8 mov %ebx,%eax 801014f3: 5b pop %ebx 801014f4: 5e pop %esi 801014f5: 5f pop %edi 801014f6: 5d pop %ebp 801014f7: c3 ret panic("bmap: out of range"); 801014f8: 83 ec 0c sub $0xc,%esp 801014fb: 68 f8 79 10 80 push $0x801079f8 80101500: e8 8b ee ff ff call 80100390 <panic> 80101505: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010150c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101510 <readsb>: { 80101510: f3 0f 1e fb endbr32 80101514: 55 push %ebp 80101515: 89 e5 mov %esp,%ebp 80101517: 56 push %esi 80101518: 53 push %ebx 80101519: 8b 75 0c mov 0xc(%ebp),%esi bp = bread(dev, 1); 8010151c: 83 ec 08 sub $0x8,%esp 8010151f: 6a 01 push $0x1 80101521: ff 75 08 pushl 0x8(%ebp) 80101524: e8 a7 eb ff ff call 801000d0 <bread> memmove(sb, bp->data, sizeof(*sb)); 80101529: 83 c4 0c add $0xc,%esp bp = bread(dev, 1); 8010152c: 89 c3 mov %eax,%ebx memmove(sb, bp->data, sizeof(*sb)); 8010152e: 8d 40 5c lea 0x5c(%eax),%eax 80101531: 6a 1c push $0x1c 80101533: 50 push %eax 80101534: 56 push %esi 80101535: e8 06 39 00 00 call 80104e40 <memmove> brelse(bp); 8010153a: 89 5d 08 mov %ebx,0x8(%ebp) 8010153d: 83 c4 10 add $0x10,%esp } 80101540: 8d 65 f8 lea -0x8(%ebp),%esp 80101543: 5b pop %ebx 80101544: 5e pop %esi 80101545: 5d pop %ebp brelse(bp); 80101546: e9 a5 ec ff ff jmp 801001f0 <brelse> 8010154b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010154f: 90 nop 80101550 <iinit>: { 80101550: f3 0f 1e fb endbr32 80101554: 55 push %ebp 80101555: 89 e5 mov %esp,%ebp 80101557: 53 push %ebx 80101558: bb 20 1a 11 80 mov $0x80111a20,%ebx 8010155d: 83 ec 0c sub $0xc,%esp initlock(&icache.lock, "icache"); 80101560: 68 0b 7a 10 80 push $0x80107a0b 80101565: 68 e0 19 11 80 push $0x801119e0 8010156a: e8 a1 35 00 00 call 80104b10 <initlock> for(i = 0; i < NINODE; i++) { 8010156f: 83 c4 10 add $0x10,%esp 80101572: 8d b6 00 00 00 00 lea 0x0(%esi),%esi initsleeplock(&icache.inode[i].lock, "inode"); 80101578: 83 ec 08 sub $0x8,%esp 8010157b: 68 12 7a 10 80 push $0x80107a12 80101580: 53 push %ebx 80101581: 81 c3 90 00 00 00 add $0x90,%ebx 80101587: e8 44 34 00 00 call 801049d0 <initsleeplock> for(i = 0; i < NINODE; i++) { 8010158c: 83 c4 10 add $0x10,%esp 8010158f: 81 fb 40 36 11 80 cmp $0x80113640,%ebx 80101595: 75 e1 jne 80101578 <iinit+0x28> readsb(dev, &sb); 80101597: 83 ec 08 sub $0x8,%esp 8010159a: 68 c0 19 11 80 push $0x801119c0 8010159f: ff 75 08 pushl 0x8(%ebp) 801015a2: e8 69 ff ff ff call 80101510 <readsb> cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\ 801015a7: ff 35 d8 19 11 80 pushl 0x801119d8 801015ad: ff 35 d4 19 11 80 pushl 0x801119d4 801015b3: ff 35 d0 19 11 80 pushl 0x801119d0 801015b9: ff 35 cc 19 11 80 pushl 0x801119cc 801015bf: ff 35 c8 19 11 80 pushl 0x801119c8 801015c5: ff 35 c4 19 11 80 pushl 0x801119c4 801015cb: ff 35 c0 19 11 80 pushl 0x801119c0 801015d1: 68 78 7a 10 80 push $0x80107a78 801015d6: e8 d5 f0 ff ff call 801006b0 <cprintf> } 801015db: 8b 5d fc mov -0x4(%ebp),%ebx 801015de: 83 c4 30 add $0x30,%esp 801015e1: c9 leave 801015e2: c3 ret 801015e3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801015ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801015f0 <ialloc>: { 801015f0: f3 0f 1e fb endbr32 801015f4: 55 push %ebp 801015f5: 89 e5 mov %esp,%ebp 801015f7: 57 push %edi 801015f8: 56 push %esi 801015f9: 53 push %ebx 801015fa: 83 ec 1c sub $0x1c,%esp 801015fd: 8b 45 0c mov 0xc(%ebp),%eax for(inum = 1; inum < sb.ninodes; inum++){ 80101600: 83 3d c8 19 11 80 01 cmpl $0x1,0x801119c8 { 80101607: 8b 75 08 mov 0x8(%ebp),%esi 8010160a: 89 45 e4 mov %eax,-0x1c(%ebp) for(inum = 1; inum < sb.ninodes; inum++){ 8010160d: 0f 86 8d 00 00 00 jbe 801016a0 <ialloc+0xb0> 80101613: bf 01 00 00 00 mov $0x1,%edi 80101618: eb 1d jmp 80101637 <ialloc+0x47> 8010161a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi brelse(bp); 80101620: 83 ec 0c sub $0xc,%esp for(inum = 1; inum < sb.ninodes; inum++){ 80101623: 83 c7 01 add $0x1,%edi brelse(bp); 80101626: 53 push %ebx 80101627: e8 c4 eb ff ff call 801001f0 <brelse> for(inum = 1; inum < sb.ninodes; inum++){ 8010162c: 83 c4 10 add $0x10,%esp 8010162f: 3b 3d c8 19 11 80 cmp 0x801119c8,%edi 80101635: 73 69 jae 801016a0 <ialloc+0xb0> bp = bread(dev, IBLOCK(inum, sb)); 80101637: 89 f8 mov %edi,%eax 80101639: 83 ec 08 sub $0x8,%esp 8010163c: c1 e8 03 shr $0x3,%eax 8010163f: 03 05 d4 19 11 80 add 0x801119d4,%eax 80101645: 50 push %eax 80101646: 56 push %esi 80101647: e8 84 ea ff ff call 801000d0 <bread> if(dip->type == 0){ // a free inode 8010164c: 83 c4 10 add $0x10,%esp bp = bread(dev, IBLOCK(inum, sb)); 8010164f: 89 c3 mov %eax,%ebx dip = (struct dinode*)bp->data + inum%IPB; 80101651: 89 f8 mov %edi,%eax 80101653: 83 e0 07 and $0x7,%eax 80101656: c1 e0 06 shl $0x6,%eax 80101659: 8d 4c 03 5c lea 0x5c(%ebx,%eax,1),%ecx if(dip->type == 0){ // a free inode 8010165d: 66 83 39 00 cmpw $0x0,(%ecx) 80101661: 75 bd jne 80101620 <ialloc+0x30> memset(dip, 0, sizeof(*dip)); 80101663: 83 ec 04 sub $0x4,%esp 80101666: 89 4d e0 mov %ecx,-0x20(%ebp) 80101669: 6a 40 push $0x40 8010166b: 6a 00 push $0x0 8010166d: 51 push %ecx 8010166e: e8 2d 37 00 00 call 80104da0 <memset> dip->type = type; 80101673: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80101677: 8b 4d e0 mov -0x20(%ebp),%ecx 8010167a: 66 89 01 mov %ax,(%ecx) log_write(bp); // mark it allocated on the disk 8010167d: 89 1c 24 mov %ebx,(%esp) 80101680: e8 9b 18 00 00 call 80102f20 <log_write> brelse(bp); 80101685: 89 1c 24 mov %ebx,(%esp) 80101688: e8 63 eb ff ff call 801001f0 <brelse> return iget(dev, inum); 8010168d: 83 c4 10 add $0x10,%esp } 80101690: 8d 65 f4 lea -0xc(%ebp),%esp return iget(dev, inum); 80101693: 89 fa mov %edi,%edx } 80101695: 5b pop %ebx return iget(dev, inum); 80101696: 89 f0 mov %esi,%eax } 80101698: 5e pop %esi 80101699: 5f pop %edi 8010169a: 5d pop %ebp return iget(dev, inum); 8010169b: e9 b0 fc ff ff jmp 80101350 <iget> panic("ialloc: no inodes"); 801016a0: 83 ec 0c sub $0xc,%esp 801016a3: 68 18 7a 10 80 push $0x80107a18 801016a8: e8 e3 ec ff ff call 80100390 <panic> 801016ad: 8d 76 00 lea 0x0(%esi),%esi 801016b0 <iupdate>: { 801016b0: f3 0f 1e fb endbr32 801016b4: 55 push %ebp 801016b5: 89 e5 mov %esp,%ebp 801016b7: 56 push %esi 801016b8: 53 push %ebx 801016b9: 8b 5d 08 mov 0x8(%ebp),%ebx bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801016bc: 8b 43 04 mov 0x4(%ebx),%eax memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801016bf: 83 c3 5c add $0x5c,%ebx bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801016c2: 83 ec 08 sub $0x8,%esp 801016c5: c1 e8 03 shr $0x3,%eax 801016c8: 03 05 d4 19 11 80 add 0x801119d4,%eax 801016ce: 50 push %eax 801016cf: ff 73 a4 pushl -0x5c(%ebx) 801016d2: e8 f9 e9 ff ff call 801000d0 <bread> dip->type = ip->type; 801016d7: 0f b7 53 f4 movzwl -0xc(%ebx),%edx memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801016db: 83 c4 0c add $0xc,%esp bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801016de: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801016e0: 8b 43 a8 mov -0x58(%ebx),%eax 801016e3: 83 e0 07 and $0x7,%eax 801016e6: c1 e0 06 shl $0x6,%eax 801016e9: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax dip->type = ip->type; 801016ed: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801016f0: 0f b7 53 f6 movzwl -0xa(%ebx),%edx memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801016f4: 83 c0 0c add $0xc,%eax dip->major = ip->major; 801016f7: 66 89 50 f6 mov %dx,-0xa(%eax) dip->minor = ip->minor; 801016fb: 0f b7 53 f8 movzwl -0x8(%ebx),%edx 801016ff: 66 89 50 f8 mov %dx,-0x8(%eax) dip->nlink = ip->nlink; 80101703: 0f b7 53 fa movzwl -0x6(%ebx),%edx 80101707: 66 89 50 fa mov %dx,-0x6(%eax) dip->size = ip->size; 8010170b: 8b 53 fc mov -0x4(%ebx),%edx 8010170e: 89 50 fc mov %edx,-0x4(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101711: 6a 34 push $0x34 80101713: 53 push %ebx 80101714: 50 push %eax 80101715: e8 26 37 00 00 call 80104e40 <memmove> log_write(bp); 8010171a: 89 34 24 mov %esi,(%esp) 8010171d: e8 fe 17 00 00 call 80102f20 <log_write> brelse(bp); 80101722: 89 75 08 mov %esi,0x8(%ebp) 80101725: 83 c4 10 add $0x10,%esp } 80101728: 8d 65 f8 lea -0x8(%ebp),%esp 8010172b: 5b pop %ebx 8010172c: 5e pop %esi 8010172d: 5d pop %ebp brelse(bp); 8010172e: e9 bd ea ff ff jmp 801001f0 <brelse> 80101733: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010173a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101740 <idup>: { 80101740: f3 0f 1e fb endbr32 80101744: 55 push %ebp 80101745: 89 e5 mov %esp,%ebp 80101747: 53 push %ebx 80101748: 83 ec 10 sub $0x10,%esp 8010174b: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&icache.lock); 8010174e: 68 e0 19 11 80 push $0x801119e0 80101753: e8 38 35 00 00 call 80104c90 <acquire> ip->ref++; 80101758: 83 43 08 01 addl $0x1,0x8(%ebx) release(&icache.lock); 8010175c: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp) 80101763: e8 e8 35 00 00 call 80104d50 <release> } 80101768: 89 d8 mov %ebx,%eax 8010176a: 8b 5d fc mov -0x4(%ebp),%ebx 8010176d: c9 leave 8010176e: c3 ret 8010176f: 90 nop 80101770 <ilock>: { 80101770: f3 0f 1e fb endbr32 80101774: 55 push %ebp 80101775: 89 e5 mov %esp,%ebp 80101777: 56 push %esi 80101778: 53 push %ebx 80101779: 8b 5d 08 mov 0x8(%ebp),%ebx if(ip == 0 || ip->ref < 1) 8010177c: 85 db test %ebx,%ebx 8010177e: 0f 84 b3 00 00 00 je 80101837 <ilock+0xc7> 80101784: 8b 53 08 mov 0x8(%ebx),%edx 80101787: 85 d2 test %edx,%edx 80101789: 0f 8e a8 00 00 00 jle 80101837 <ilock+0xc7> acquiresleep(&ip->lock); 8010178f: 83 ec 0c sub $0xc,%esp 80101792: 8d 43 0c lea 0xc(%ebx),%eax 80101795: 50 push %eax 80101796: e8 75 32 00 00 call 80104a10 <acquiresleep> if(ip->valid == 0){ 8010179b: 8b 43 4c mov 0x4c(%ebx),%eax 8010179e: 83 c4 10 add $0x10,%esp 801017a1: 85 c0 test %eax,%eax 801017a3: 74 0b je 801017b0 <ilock+0x40> } 801017a5: 8d 65 f8 lea -0x8(%ebp),%esp 801017a8: 5b pop %ebx 801017a9: 5e pop %esi 801017aa: 5d pop %ebp 801017ab: c3 ret 801017ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801017b0: 8b 43 04 mov 0x4(%ebx),%eax 801017b3: 83 ec 08 sub $0x8,%esp 801017b6: c1 e8 03 shr $0x3,%eax 801017b9: 03 05 d4 19 11 80 add 0x801119d4,%eax 801017bf: 50 push %eax 801017c0: ff 33 pushl (%ebx) 801017c2: e8 09 e9 ff ff call 801000d0 <bread> memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801017c7: 83 c4 0c add $0xc,%esp bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801017ca: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801017cc: 8b 43 04 mov 0x4(%ebx),%eax 801017cf: 83 e0 07 and $0x7,%eax 801017d2: c1 e0 06 shl $0x6,%eax 801017d5: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax ip->type = dip->type; 801017d9: 0f b7 10 movzwl (%eax),%edx memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801017dc: 83 c0 0c add $0xc,%eax ip->type = dip->type; 801017df: 66 89 53 50 mov %dx,0x50(%ebx) ip->major = dip->major; 801017e3: 0f b7 50 f6 movzwl -0xa(%eax),%edx 801017e7: 66 89 53 52 mov %dx,0x52(%ebx) ip->minor = dip->minor; 801017eb: 0f b7 50 f8 movzwl -0x8(%eax),%edx 801017ef: 66 89 53 54 mov %dx,0x54(%ebx) ip->nlink = dip->nlink; 801017f3: 0f b7 50 fa movzwl -0x6(%eax),%edx 801017f7: 66 89 53 56 mov %dx,0x56(%ebx) ip->size = dip->size; 801017fb: 8b 50 fc mov -0x4(%eax),%edx 801017fe: 89 53 58 mov %edx,0x58(%ebx) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101801: 6a 34 push $0x34 80101803: 50 push %eax 80101804: 8d 43 5c lea 0x5c(%ebx),%eax 80101807: 50 push %eax 80101808: e8 33 36 00 00 call 80104e40 <memmove> brelse(bp); 8010180d: 89 34 24 mov %esi,(%esp) 80101810: e8 db e9 ff ff call 801001f0 <brelse> if(ip->type == 0) 80101815: 83 c4 10 add $0x10,%esp 80101818: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx) ip->valid = 1; 8010181d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx) if(ip->type == 0) 80101824: 0f 85 7b ff ff ff jne 801017a5 <ilock+0x35> panic("ilock: no type"); 8010182a: 83 ec 0c sub $0xc,%esp 8010182d: 68 30 7a 10 80 push $0x80107a30 80101832: e8 59 eb ff ff call 80100390 <panic> panic("ilock"); 80101837: 83 ec 0c sub $0xc,%esp 8010183a: 68 2a 7a 10 80 push $0x80107a2a 8010183f: e8 4c eb ff ff call 80100390 <panic> 80101844: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010184b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010184f: 90 nop 80101850 <iunlock>: { 80101850: f3 0f 1e fb endbr32 80101854: 55 push %ebp 80101855: 89 e5 mov %esp,%ebp 80101857: 56 push %esi 80101858: 53 push %ebx 80101859: 8b 5d 08 mov 0x8(%ebp),%ebx if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) 8010185c: 85 db test %ebx,%ebx 8010185e: 74 28 je 80101888 <iunlock+0x38> 80101860: 83 ec 0c sub $0xc,%esp 80101863: 8d 73 0c lea 0xc(%ebx),%esi 80101866: 56 push %esi 80101867: e8 44 32 00 00 call 80104ab0 <holdingsleep> 8010186c: 83 c4 10 add $0x10,%esp 8010186f: 85 c0 test %eax,%eax 80101871: 74 15 je 80101888 <iunlock+0x38> 80101873: 8b 43 08 mov 0x8(%ebx),%eax 80101876: 85 c0 test %eax,%eax 80101878: 7e 0e jle 80101888 <iunlock+0x38> releasesleep(&ip->lock); 8010187a: 89 75 08 mov %esi,0x8(%ebp) } 8010187d: 8d 65 f8 lea -0x8(%ebp),%esp 80101880: 5b pop %ebx 80101881: 5e pop %esi 80101882: 5d pop %ebp releasesleep(&ip->lock); 80101883: e9 e8 31 00 00 jmp 80104a70 <releasesleep> panic("iunlock"); 80101888: 83 ec 0c sub $0xc,%esp 8010188b: 68 3f 7a 10 80 push $0x80107a3f 80101890: e8 fb ea ff ff call 80100390 <panic> 80101895: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010189c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801018a0 <iput>: { 801018a0: f3 0f 1e fb endbr32 801018a4: 55 push %ebp 801018a5: 89 e5 mov %esp,%ebp 801018a7: 57 push %edi 801018a8: 56 push %esi 801018a9: 53 push %ebx 801018aa: 83 ec 28 sub $0x28,%esp 801018ad: 8b 5d 08 mov 0x8(%ebp),%ebx acquiresleep(&ip->lock); 801018b0: 8d 7b 0c lea 0xc(%ebx),%edi 801018b3: 57 push %edi 801018b4: e8 57 31 00 00 call 80104a10 <acquiresleep> if(ip->valid && ip->nlink == 0){ 801018b9: 8b 53 4c mov 0x4c(%ebx),%edx 801018bc: 83 c4 10 add $0x10,%esp 801018bf: 85 d2 test %edx,%edx 801018c1: 74 07 je 801018ca <iput+0x2a> 801018c3: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 801018c8: 74 36 je 80101900 <iput+0x60> releasesleep(&ip->lock); 801018ca: 83 ec 0c sub $0xc,%esp 801018cd: 57 push %edi 801018ce: e8 9d 31 00 00 call 80104a70 <releasesleep> acquire(&icache.lock); 801018d3: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp) 801018da: e8 b1 33 00 00 call 80104c90 <acquire> ip->ref--; 801018df: 83 6b 08 01 subl $0x1,0x8(%ebx) release(&icache.lock); 801018e3: 83 c4 10 add $0x10,%esp 801018e6: c7 45 08 e0 19 11 80 movl $0x801119e0,0x8(%ebp) } 801018ed: 8d 65 f4 lea -0xc(%ebp),%esp 801018f0: 5b pop %ebx 801018f1: 5e pop %esi 801018f2: 5f pop %edi 801018f3: 5d pop %ebp release(&icache.lock); 801018f4: e9 57 34 00 00 jmp 80104d50 <release> 801018f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi acquire(&icache.lock); 80101900: 83 ec 0c sub $0xc,%esp 80101903: 68 e0 19 11 80 push $0x801119e0 80101908: e8 83 33 00 00 call 80104c90 <acquire> int r = ip->ref; 8010190d: 8b 73 08 mov 0x8(%ebx),%esi release(&icache.lock); 80101910: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp) 80101917: e8 34 34 00 00 call 80104d50 <release> if(r == 1){ 8010191c: 83 c4 10 add $0x10,%esp 8010191f: 83 fe 01 cmp $0x1,%esi 80101922: 75 a6 jne 801018ca <iput+0x2a> 80101924: 8d 8b 8c 00 00 00 lea 0x8c(%ebx),%ecx 8010192a: 89 7d e4 mov %edi,-0x1c(%ebp) 8010192d: 8d 73 5c lea 0x5c(%ebx),%esi 80101930: 89 cf mov %ecx,%edi 80101932: eb 0b jmp 8010193f <iput+0x9f> 80101934: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101938: 83 c6 04 add $0x4,%esi 8010193b: 39 fe cmp %edi,%esi 8010193d: 74 19 je 80101958 <iput+0xb8> if(ip->addrs[i]){ 8010193f: 8b 16 mov (%esi),%edx 80101941: 85 d2 test %edx,%edx 80101943: 74 f3 je 80101938 <iput+0x98> bfree(ip->dev, ip->addrs[i]); 80101945: 8b 03 mov (%ebx),%eax 80101947: e8 74 f8 ff ff call 801011c0 <bfree> ip->addrs[i] = 0; 8010194c: c7 06 00 00 00 00 movl $0x0,(%esi) 80101952: eb e4 jmp 80101938 <iput+0x98> 80101954: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } if(ip->addrs[NDIRECT]){ 80101958: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax 8010195e: 8b 7d e4 mov -0x1c(%ebp),%edi 80101961: 85 c0 test %eax,%eax 80101963: 75 33 jne 80101998 <iput+0xf8> bfree(ip->dev, ip->addrs[NDIRECT]); ip->addrs[NDIRECT] = 0; } ip->size = 0; iupdate(ip); 80101965: 83 ec 0c sub $0xc,%esp ip->size = 0; 80101968: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) iupdate(ip); 8010196f: 53 push %ebx 80101970: e8 3b fd ff ff call 801016b0 <iupdate> ip->type = 0; 80101975: 31 c0 xor %eax,%eax 80101977: 66 89 43 50 mov %ax,0x50(%ebx) iupdate(ip); 8010197b: 89 1c 24 mov %ebx,(%esp) 8010197e: e8 2d fd ff ff call 801016b0 <iupdate> ip->valid = 0; 80101983: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) 8010198a: 83 c4 10 add $0x10,%esp 8010198d: e9 38 ff ff ff jmp 801018ca <iput+0x2a> 80101992: 8d b6 00 00 00 00 lea 0x0(%esi),%esi bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101998: 83 ec 08 sub $0x8,%esp 8010199b: 50 push %eax 8010199c: ff 33 pushl (%ebx) 8010199e: e8 2d e7 ff ff call 801000d0 <bread> 801019a3: 89 7d e0 mov %edi,-0x20(%ebp) 801019a6: 83 c4 10 add $0x10,%esp 801019a9: 8d 88 5c 02 00 00 lea 0x25c(%eax),%ecx 801019af: 89 45 e4 mov %eax,-0x1c(%ebp) for(j = 0; j < NINDIRECT; j++){ 801019b2: 8d 70 5c lea 0x5c(%eax),%esi 801019b5: 89 cf mov %ecx,%edi 801019b7: eb 0e jmp 801019c7 <iput+0x127> 801019b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801019c0: 83 c6 04 add $0x4,%esi 801019c3: 39 f7 cmp %esi,%edi 801019c5: 74 19 je 801019e0 <iput+0x140> if(a[j]) 801019c7: 8b 16 mov (%esi),%edx 801019c9: 85 d2 test %edx,%edx 801019cb: 74 f3 je 801019c0 <iput+0x120> bfree(ip->dev, a[j]); 801019cd: 8b 03 mov (%ebx),%eax 801019cf: e8 ec f7 ff ff call 801011c0 <bfree> 801019d4: eb ea jmp 801019c0 <iput+0x120> 801019d6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801019dd: 8d 76 00 lea 0x0(%esi),%esi brelse(bp); 801019e0: 83 ec 0c sub $0xc,%esp 801019e3: ff 75 e4 pushl -0x1c(%ebp) 801019e6: 8b 7d e0 mov -0x20(%ebp),%edi 801019e9: e8 02 e8 ff ff call 801001f0 <brelse> bfree(ip->dev, ip->addrs[NDIRECT]); 801019ee: 8b 93 8c 00 00 00 mov 0x8c(%ebx),%edx 801019f4: 8b 03 mov (%ebx),%eax 801019f6: e8 c5 f7 ff ff call 801011c0 <bfree> ip->addrs[NDIRECT] = 0; 801019fb: 83 c4 10 add $0x10,%esp 801019fe: c7 83 8c 00 00 00 00 movl $0x0,0x8c(%ebx) 80101a05: 00 00 00 80101a08: e9 58 ff ff ff jmp 80101965 <iput+0xc5> 80101a0d: 8d 76 00 lea 0x0(%esi),%esi 80101a10 <iunlockput>: { 80101a10: f3 0f 1e fb endbr32 80101a14: 55 push %ebp 80101a15: 89 e5 mov %esp,%ebp 80101a17: 53 push %ebx 80101a18: 83 ec 10 sub $0x10,%esp 80101a1b: 8b 5d 08 mov 0x8(%ebp),%ebx iunlock(ip); 80101a1e: 53 push %ebx 80101a1f: e8 2c fe ff ff call 80101850 <iunlock> iput(ip); 80101a24: 89 5d 08 mov %ebx,0x8(%ebp) 80101a27: 83 c4 10 add $0x10,%esp } 80101a2a: 8b 5d fc mov -0x4(%ebp),%ebx 80101a2d: c9 leave iput(ip); 80101a2e: e9 6d fe ff ff jmp 801018a0 <iput> 80101a33: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101a3a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101a40 <stati>: // Copy stat information from inode. // Caller must hold ip->lock. void stati(struct inode *ip, struct stat *st) { 80101a40: f3 0f 1e fb endbr32 80101a44: 55 push %ebp 80101a45: 89 e5 mov %esp,%ebp 80101a47: 8b 55 08 mov 0x8(%ebp),%edx 80101a4a: 8b 45 0c mov 0xc(%ebp),%eax st->dev = ip->dev; 80101a4d: 8b 0a mov (%edx),%ecx 80101a4f: 89 48 04 mov %ecx,0x4(%eax) st->ino = ip->inum; 80101a52: 8b 4a 04 mov 0x4(%edx),%ecx 80101a55: 89 48 08 mov %ecx,0x8(%eax) st->type = ip->type; 80101a58: 0f b7 4a 50 movzwl 0x50(%edx),%ecx 80101a5c: 66 89 08 mov %cx,(%eax) st->nlink = ip->nlink; 80101a5f: 0f b7 4a 56 movzwl 0x56(%edx),%ecx 80101a63: 66 89 48 0c mov %cx,0xc(%eax) st->size = ip->size; 80101a67: 8b 52 58 mov 0x58(%edx),%edx 80101a6a: 89 50 10 mov %edx,0x10(%eax) } 80101a6d: 5d pop %ebp 80101a6e: c3 ret 80101a6f: 90 nop 80101a70 <readi>: //PAGEBREAK! // Read data from inode. // Caller must hold ip->lock. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101a70: f3 0f 1e fb endbr32 80101a74: 55 push %ebp 80101a75: 89 e5 mov %esp,%ebp 80101a77: 57 push %edi 80101a78: 56 push %esi 80101a79: 53 push %ebx 80101a7a: 83 ec 1c sub $0x1c,%esp 80101a7d: 8b 7d 0c mov 0xc(%ebp),%edi 80101a80: 8b 45 08 mov 0x8(%ebp),%eax 80101a83: 8b 75 10 mov 0x10(%ebp),%esi 80101a86: 89 7d e0 mov %edi,-0x20(%ebp) 80101a89: 8b 7d 14 mov 0x14(%ebp),%edi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101a8c: 66 83 78 50 03 cmpw $0x3,0x50(%eax) { 80101a91: 89 45 d8 mov %eax,-0x28(%ebp) 80101a94: 89 7d e4 mov %edi,-0x1c(%ebp) if(ip->type == T_DEV){ 80101a97: 0f 84 a3 00 00 00 je 80101b40 <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) 80101a9d: 8b 45 d8 mov -0x28(%ebp),%eax 80101aa0: 8b 40 58 mov 0x58(%eax),%eax 80101aa3: 39 c6 cmp %eax,%esi 80101aa5: 0f 87 b6 00 00 00 ja 80101b61 <readi+0xf1> 80101aab: 8b 5d e4 mov -0x1c(%ebp),%ebx 80101aae: 31 c9 xor %ecx,%ecx 80101ab0: 89 da mov %ebx,%edx 80101ab2: 01 f2 add %esi,%edx 80101ab4: 0f 92 c1 setb %cl 80101ab7: 89 cf mov %ecx,%edi 80101ab9: 0f 82 a2 00 00 00 jb 80101b61 <readi+0xf1> return -1; if(off + n > ip->size) n = ip->size - off; 80101abf: 89 c1 mov %eax,%ecx 80101ac1: 29 f1 sub %esi,%ecx 80101ac3: 39 d0 cmp %edx,%eax 80101ac5: 0f 43 cb cmovae %ebx,%ecx 80101ac8: 89 4d e4 mov %ecx,-0x1c(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101acb: 85 c9 test %ecx,%ecx 80101acd: 74 63 je 80101b32 <readi+0xc2> 80101acf: 90 nop bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101ad0: 8b 5d d8 mov -0x28(%ebp),%ebx 80101ad3: 89 f2 mov %esi,%edx 80101ad5: c1 ea 09 shr $0x9,%edx 80101ad8: 89 d8 mov %ebx,%eax 80101ada: e8 61 f9 ff ff call 80101440 <bmap> 80101adf: 83 ec 08 sub $0x8,%esp 80101ae2: 50 push %eax 80101ae3: ff 33 pushl (%ebx) 80101ae5: e8 e6 e5 ff ff call 801000d0 <bread> m = min(n - tot, BSIZE - off%BSIZE); 80101aea: 8b 5d e4 mov -0x1c(%ebp),%ebx 80101aed: b9 00 02 00 00 mov $0x200,%ecx 80101af2: 83 c4 0c add $0xc,%esp bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101af5: 89 c2 mov %eax,%edx m = min(n - tot, BSIZE - off%BSIZE); 80101af7: 89 f0 mov %esi,%eax 80101af9: 25 ff 01 00 00 and $0x1ff,%eax 80101afe: 29 fb sub %edi,%ebx memmove(dst, bp->data + off%BSIZE, m); 80101b00: 89 55 dc mov %edx,-0x24(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80101b03: 29 c1 sub %eax,%ecx memmove(dst, bp->data + off%BSIZE, m); 80101b05: 8d 44 02 5c lea 0x5c(%edx,%eax,1),%eax m = min(n - tot, BSIZE - off%BSIZE); 80101b09: 39 d9 cmp %ebx,%ecx 80101b0b: 0f 46 d9 cmovbe %ecx,%ebx memmove(dst, bp->data + off%BSIZE, m); 80101b0e: 53 push %ebx for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101b0f: 01 df add %ebx,%edi 80101b11: 01 de add %ebx,%esi memmove(dst, bp->data + off%BSIZE, m); 80101b13: 50 push %eax 80101b14: ff 75 e0 pushl -0x20(%ebp) 80101b17: e8 24 33 00 00 call 80104e40 <memmove> brelse(bp); 80101b1c: 8b 55 dc mov -0x24(%ebp),%edx 80101b1f: 89 14 24 mov %edx,(%esp) 80101b22: e8 c9 e6 ff ff call 801001f0 <brelse> for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101b27: 01 5d e0 add %ebx,-0x20(%ebp) 80101b2a: 83 c4 10 add $0x10,%esp 80101b2d: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101b30: 77 9e ja 80101ad0 <readi+0x60> } return n; 80101b32: 8b 45 e4 mov -0x1c(%ebp),%eax } 80101b35: 8d 65 f4 lea -0xc(%ebp),%esp 80101b38: 5b pop %ebx 80101b39: 5e pop %esi 80101b3a: 5f pop %edi 80101b3b: 5d pop %ebp 80101b3c: c3 ret 80101b3d: 8d 76 00 lea 0x0(%esi),%esi if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101b40: 0f bf 40 52 movswl 0x52(%eax),%eax 80101b44: 66 83 f8 09 cmp $0x9,%ax 80101b48: 77 17 ja 80101b61 <readi+0xf1> 80101b4a: 8b 04 c5 60 19 11 80 mov -0x7feee6a0(,%eax,8),%eax 80101b51: 85 c0 test %eax,%eax 80101b53: 74 0c je 80101b61 <readi+0xf1> return devsw[ip->major].read(ip, dst, n); 80101b55: 89 7d 10 mov %edi,0x10(%ebp) } 80101b58: 8d 65 f4 lea -0xc(%ebp),%esp 80101b5b: 5b pop %ebx 80101b5c: 5e pop %esi 80101b5d: 5f pop %edi 80101b5e: 5d pop %ebp return devsw[ip->major].read(ip, dst, n); 80101b5f: ff e0 jmp *%eax return -1; 80101b61: b8 ff ff ff ff mov $0xffffffff,%eax 80101b66: eb cd jmp 80101b35 <readi+0xc5> 80101b68: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101b6f: 90 nop 80101b70 <writei>: // PAGEBREAK! // Write data to inode. // Caller must hold ip->lock. int writei(struct inode *ip, char *src, uint off, uint n) { 80101b70: f3 0f 1e fb endbr32 80101b74: 55 push %ebp 80101b75: 89 e5 mov %esp,%ebp 80101b77: 57 push %edi 80101b78: 56 push %esi 80101b79: 53 push %ebx 80101b7a: 83 ec 1c sub $0x1c,%esp 80101b7d: 8b 45 08 mov 0x8(%ebp),%eax 80101b80: 8b 75 0c mov 0xc(%ebp),%esi 80101b83: 8b 7d 14 mov 0x14(%ebp),%edi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101b86: 66 83 78 50 03 cmpw $0x3,0x50(%eax) { 80101b8b: 89 75 dc mov %esi,-0x24(%ebp) 80101b8e: 89 45 d8 mov %eax,-0x28(%ebp) 80101b91: 8b 75 10 mov 0x10(%ebp),%esi 80101b94: 89 7d e0 mov %edi,-0x20(%ebp) if(ip->type == T_DEV){ 80101b97: 0f 84 b3 00 00 00 je 80101c50 <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) 80101b9d: 8b 45 d8 mov -0x28(%ebp),%eax 80101ba0: 39 70 58 cmp %esi,0x58(%eax) 80101ba3: 0f 82 e3 00 00 00 jb 80101c8c <writei+0x11c> return -1; if(off + n > MAXFILE*BSIZE) 80101ba9: 8b 7d e0 mov -0x20(%ebp),%edi 80101bac: 89 f8 mov %edi,%eax 80101bae: 01 f0 add %esi,%eax 80101bb0: 0f 82 d6 00 00 00 jb 80101c8c <writei+0x11c> 80101bb6: 3d 00 18 01 00 cmp $0x11800,%eax 80101bbb: 0f 87 cb 00 00 00 ja 80101c8c <writei+0x11c> return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101bc1: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80101bc8: 85 ff test %edi,%edi 80101bca: 74 75 je 80101c41 <writei+0xd1> 80101bcc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101bd0: 8b 7d d8 mov -0x28(%ebp),%edi 80101bd3: 89 f2 mov %esi,%edx 80101bd5: c1 ea 09 shr $0x9,%edx 80101bd8: 89 f8 mov %edi,%eax 80101bda: e8 61 f8 ff ff call 80101440 <bmap> 80101bdf: 83 ec 08 sub $0x8,%esp 80101be2: 50 push %eax 80101be3: ff 37 pushl (%edi) 80101be5: e8 e6 e4 ff ff call 801000d0 <bread> m = min(n - tot, BSIZE - off%BSIZE); 80101bea: b9 00 02 00 00 mov $0x200,%ecx 80101bef: 8b 5d e0 mov -0x20(%ebp),%ebx 80101bf2: 2b 5d e4 sub -0x1c(%ebp),%ebx bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101bf5: 89 c7 mov %eax,%edi m = min(n - tot, BSIZE - off%BSIZE); 80101bf7: 89 f0 mov %esi,%eax 80101bf9: 83 c4 0c add $0xc,%esp 80101bfc: 25 ff 01 00 00 and $0x1ff,%eax 80101c01: 29 c1 sub %eax,%ecx memmove(bp->data + off%BSIZE, src, m); 80101c03: 8d 44 07 5c lea 0x5c(%edi,%eax,1),%eax m = min(n - tot, BSIZE - off%BSIZE); 80101c07: 39 d9 cmp %ebx,%ecx 80101c09: 0f 46 d9 cmovbe %ecx,%ebx memmove(bp->data + off%BSIZE, src, m); 80101c0c: 53 push %ebx for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101c0d: 01 de add %ebx,%esi memmove(bp->data + off%BSIZE, src, m); 80101c0f: ff 75 dc pushl -0x24(%ebp) 80101c12: 50 push %eax 80101c13: e8 28 32 00 00 call 80104e40 <memmove> log_write(bp); 80101c18: 89 3c 24 mov %edi,(%esp) 80101c1b: e8 00 13 00 00 call 80102f20 <log_write> brelse(bp); 80101c20: 89 3c 24 mov %edi,(%esp) 80101c23: e8 c8 e5 ff ff call 801001f0 <brelse> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101c28: 01 5d e4 add %ebx,-0x1c(%ebp) 80101c2b: 83 c4 10 add $0x10,%esp 80101c2e: 8b 45 e4 mov -0x1c(%ebp),%eax 80101c31: 01 5d dc add %ebx,-0x24(%ebp) 80101c34: 39 45 e0 cmp %eax,-0x20(%ebp) 80101c37: 77 97 ja 80101bd0 <writei+0x60> } if(n > 0 && off > ip->size){ 80101c39: 8b 45 d8 mov -0x28(%ebp),%eax 80101c3c: 3b 70 58 cmp 0x58(%eax),%esi 80101c3f: 77 37 ja 80101c78 <writei+0x108> ip->size = off; iupdate(ip); } return n; 80101c41: 8b 45 e0 mov -0x20(%ebp),%eax } 80101c44: 8d 65 f4 lea -0xc(%ebp),%esp 80101c47: 5b pop %ebx 80101c48: 5e pop %esi 80101c49: 5f pop %edi 80101c4a: 5d pop %ebp 80101c4b: c3 ret 80101c4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80101c50: 0f bf 40 52 movswl 0x52(%eax),%eax 80101c54: 66 83 f8 09 cmp $0x9,%ax 80101c58: 77 32 ja 80101c8c <writei+0x11c> 80101c5a: 8b 04 c5 64 19 11 80 mov -0x7feee69c(,%eax,8),%eax 80101c61: 85 c0 test %eax,%eax 80101c63: 74 27 je 80101c8c <writei+0x11c> return devsw[ip->major].write(ip, src, n); 80101c65: 89 7d 10 mov %edi,0x10(%ebp) } 80101c68: 8d 65 f4 lea -0xc(%ebp),%esp 80101c6b: 5b pop %ebx 80101c6c: 5e pop %esi 80101c6d: 5f pop %edi 80101c6e: 5d pop %ebp return devsw[ip->major].write(ip, src, n); 80101c6f: ff e0 jmp *%eax 80101c71: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ip->size = off; 80101c78: 8b 45 d8 mov -0x28(%ebp),%eax iupdate(ip); 80101c7b: 83 ec 0c sub $0xc,%esp ip->size = off; 80101c7e: 89 70 58 mov %esi,0x58(%eax) iupdate(ip); 80101c81: 50 push %eax 80101c82: e8 29 fa ff ff call 801016b0 <iupdate> 80101c87: 83 c4 10 add $0x10,%esp 80101c8a: eb b5 jmp 80101c41 <writei+0xd1> return -1; 80101c8c: b8 ff ff ff ff mov $0xffffffff,%eax 80101c91: eb b1 jmp 80101c44 <writei+0xd4> 80101c93: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101c9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101ca0 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 80101ca0: f3 0f 1e fb endbr32 80101ca4: 55 push %ebp 80101ca5: 89 e5 mov %esp,%ebp 80101ca7: 83 ec 0c sub $0xc,%esp return strncmp(s, t, DIRSIZ); 80101caa: 6a 0e push $0xe 80101cac: ff 75 0c pushl 0xc(%ebp) 80101caf: ff 75 08 pushl 0x8(%ebp) 80101cb2: e8 f9 31 00 00 call 80104eb0 <strncmp> } 80101cb7: c9 leave 80101cb8: c3 ret 80101cb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101cc0 <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) { 80101cc0: f3 0f 1e fb endbr32 80101cc4: 55 push %ebp 80101cc5: 89 e5 mov %esp,%ebp 80101cc7: 57 push %edi 80101cc8: 56 push %esi 80101cc9: 53 push %ebx 80101cca: 83 ec 1c sub $0x1c,%esp 80101ccd: 8b 5d 08 mov 0x8(%ebp),%ebx uint off, inum; struct dirent de; if(dp->type != T_DIR) 80101cd0: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80101cd5: 0f 85 89 00 00 00 jne 80101d64 <dirlookup+0xa4> panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80101cdb: 8b 53 58 mov 0x58(%ebx),%edx 80101cde: 31 ff xor %edi,%edi 80101ce0: 8d 75 d8 lea -0x28(%ebp),%esi 80101ce3: 85 d2 test %edx,%edx 80101ce5: 74 42 je 80101d29 <dirlookup+0x69> 80101ce7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101cee: 66 90 xchg %ax,%ax if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101cf0: 6a 10 push $0x10 80101cf2: 57 push %edi 80101cf3: 56 push %esi 80101cf4: 53 push %ebx 80101cf5: e8 76 fd ff ff call 80101a70 <readi> 80101cfa: 83 c4 10 add $0x10,%esp 80101cfd: 83 f8 10 cmp $0x10,%eax 80101d00: 75 55 jne 80101d57 <dirlookup+0x97> panic("dirlookup read"); if(de.inum == 0) 80101d02: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101d07: 74 18 je 80101d21 <dirlookup+0x61> return strncmp(s, t, DIRSIZ); 80101d09: 83 ec 04 sub $0x4,%esp 80101d0c: 8d 45 da lea -0x26(%ebp),%eax 80101d0f: 6a 0e push $0xe 80101d11: 50 push %eax 80101d12: ff 75 0c pushl 0xc(%ebp) 80101d15: e8 96 31 00 00 call 80104eb0 <strncmp> continue; if(namecmp(name, de.name) == 0){ 80101d1a: 83 c4 10 add $0x10,%esp 80101d1d: 85 c0 test %eax,%eax 80101d1f: 74 17 je 80101d38 <dirlookup+0x78> for(off = 0; off < dp->size; off += sizeof(de)){ 80101d21: 83 c7 10 add $0x10,%edi 80101d24: 3b 7b 58 cmp 0x58(%ebx),%edi 80101d27: 72 c7 jb 80101cf0 <dirlookup+0x30> return iget(dp->dev, inum); } } return 0; } 80101d29: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 80101d2c: 31 c0 xor %eax,%eax } 80101d2e: 5b pop %ebx 80101d2f: 5e pop %esi 80101d30: 5f pop %edi 80101d31: 5d pop %ebp 80101d32: c3 ret 80101d33: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101d37: 90 nop if(poff) 80101d38: 8b 45 10 mov 0x10(%ebp),%eax 80101d3b: 85 c0 test %eax,%eax 80101d3d: 74 05 je 80101d44 <dirlookup+0x84> *poff = off; 80101d3f: 8b 45 10 mov 0x10(%ebp),%eax 80101d42: 89 38 mov %edi,(%eax) inum = de.inum; 80101d44: 0f b7 55 d8 movzwl -0x28(%ebp),%edx return iget(dp->dev, inum); 80101d48: 8b 03 mov (%ebx),%eax 80101d4a: e8 01 f6 ff ff call 80101350 <iget> } 80101d4f: 8d 65 f4 lea -0xc(%ebp),%esp 80101d52: 5b pop %ebx 80101d53: 5e pop %esi 80101d54: 5f pop %edi 80101d55: 5d pop %ebp 80101d56: c3 ret panic("dirlookup read"); 80101d57: 83 ec 0c sub $0xc,%esp 80101d5a: 68 59 7a 10 80 push $0x80107a59 80101d5f: e8 2c e6 ff ff call 80100390 <panic> panic("dirlookup not DIR"); 80101d64: 83 ec 0c sub $0xc,%esp 80101d67: 68 47 7a 10 80 push $0x80107a47 80101d6c: e8 1f e6 ff ff call 80100390 <panic> 80101d71: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101d78: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101d7f: 90 nop 80101d80 <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) { 80101d80: 55 push %ebp 80101d81: 89 e5 mov %esp,%ebp 80101d83: 57 push %edi 80101d84: 56 push %esi 80101d85: 53 push %ebx 80101d86: 89 c3 mov %eax,%ebx 80101d88: 83 ec 1c sub $0x1c,%esp struct inode *ip, *next; if(*path == '/') 80101d8b: 80 38 2f cmpb $0x2f,(%eax) { 80101d8e: 89 55 e0 mov %edx,-0x20(%ebp) 80101d91: 89 4d e4 mov %ecx,-0x1c(%ebp) if(*path == '/') 80101d94: 0f 84 86 01 00 00 je 80101f20 <namex+0x1a0> ip = iget(ROOTDEV, ROOTINO); else ip = idup(myproc()->cwd); 80101d9a: e8 61 1c 00 00 call 80103a00 <myproc> acquire(&icache.lock); 80101d9f: 83 ec 0c sub $0xc,%esp 80101da2: 89 df mov %ebx,%edi ip = idup(myproc()->cwd); 80101da4: 8b 70 68 mov 0x68(%eax),%esi acquire(&icache.lock); 80101da7: 68 e0 19 11 80 push $0x801119e0 80101dac: e8 df 2e 00 00 call 80104c90 <acquire> ip->ref++; 80101db1: 83 46 08 01 addl $0x1,0x8(%esi) release(&icache.lock); 80101db5: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp) 80101dbc: e8 8f 2f 00 00 call 80104d50 <release> 80101dc1: 83 c4 10 add $0x10,%esp 80101dc4: eb 0d jmp 80101dd3 <namex+0x53> 80101dc6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101dcd: 8d 76 00 lea 0x0(%esi),%esi path++; 80101dd0: 83 c7 01 add $0x1,%edi while(*path == '/') 80101dd3: 0f b6 07 movzbl (%edi),%eax 80101dd6: 3c 2f cmp $0x2f,%al 80101dd8: 74 f6 je 80101dd0 <namex+0x50> if(*path == 0) 80101dda: 84 c0 test %al,%al 80101ddc: 0f 84 ee 00 00 00 je 80101ed0 <namex+0x150> while(*path != '/' && *path != 0) 80101de2: 0f b6 07 movzbl (%edi),%eax 80101de5: 84 c0 test %al,%al 80101de7: 0f 84 fb 00 00 00 je 80101ee8 <namex+0x168> 80101ded: 89 fb mov %edi,%ebx 80101def: 3c 2f cmp $0x2f,%al 80101df1: 0f 84 f1 00 00 00 je 80101ee8 <namex+0x168> 80101df7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101dfe: 66 90 xchg %ax,%ax 80101e00: 0f b6 43 01 movzbl 0x1(%ebx),%eax path++; 80101e04: 83 c3 01 add $0x1,%ebx while(*path != '/' && *path != 0) 80101e07: 3c 2f cmp $0x2f,%al 80101e09: 74 04 je 80101e0f <namex+0x8f> 80101e0b: 84 c0 test %al,%al 80101e0d: 75 f1 jne 80101e00 <namex+0x80> len = path - s; 80101e0f: 89 d8 mov %ebx,%eax 80101e11: 29 f8 sub %edi,%eax if(len >= DIRSIZ) 80101e13: 83 f8 0d cmp $0xd,%eax 80101e16: 0f 8e 84 00 00 00 jle 80101ea0 <namex+0x120> memmove(name, s, DIRSIZ); 80101e1c: 83 ec 04 sub $0x4,%esp 80101e1f: 6a 0e push $0xe 80101e21: 57 push %edi path++; 80101e22: 89 df mov %ebx,%edi memmove(name, s, DIRSIZ); 80101e24: ff 75 e4 pushl -0x1c(%ebp) 80101e27: e8 14 30 00 00 call 80104e40 <memmove> 80101e2c: 83 c4 10 add $0x10,%esp while(*path == '/') 80101e2f: 80 3b 2f cmpb $0x2f,(%ebx) 80101e32: 75 0c jne 80101e40 <namex+0xc0> 80101e34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi path++; 80101e38: 83 c7 01 add $0x1,%edi while(*path == '/') 80101e3b: 80 3f 2f cmpb $0x2f,(%edi) 80101e3e: 74 f8 je 80101e38 <namex+0xb8> while((path = skipelem(path, name)) != 0){ ilock(ip); 80101e40: 83 ec 0c sub $0xc,%esp 80101e43: 56 push %esi 80101e44: e8 27 f9 ff ff call 80101770 <ilock> if(ip->type != T_DIR){ 80101e49: 83 c4 10 add $0x10,%esp 80101e4c: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80101e51: 0f 85 a1 00 00 00 jne 80101ef8 <namex+0x178> iunlockput(ip); return 0; } if(nameiparent && *path == '\0'){ 80101e57: 8b 55 e0 mov -0x20(%ebp),%edx 80101e5a: 85 d2 test %edx,%edx 80101e5c: 74 09 je 80101e67 <namex+0xe7> 80101e5e: 80 3f 00 cmpb $0x0,(%edi) 80101e61: 0f 84 d9 00 00 00 je 80101f40 <namex+0x1c0> // Stop one level early. iunlock(ip); return ip; } if((next = dirlookup(ip, name, 0)) == 0){ 80101e67: 83 ec 04 sub $0x4,%esp 80101e6a: 6a 00 push $0x0 80101e6c: ff 75 e4 pushl -0x1c(%ebp) 80101e6f: 56 push %esi 80101e70: e8 4b fe ff ff call 80101cc0 <dirlookup> 80101e75: 83 c4 10 add $0x10,%esp 80101e78: 89 c3 mov %eax,%ebx 80101e7a: 85 c0 test %eax,%eax 80101e7c: 74 7a je 80101ef8 <namex+0x178> iunlock(ip); 80101e7e: 83 ec 0c sub $0xc,%esp 80101e81: 56 push %esi 80101e82: e8 c9 f9 ff ff call 80101850 <iunlock> iput(ip); 80101e87: 89 34 24 mov %esi,(%esp) 80101e8a: 89 de mov %ebx,%esi 80101e8c: e8 0f fa ff ff call 801018a0 <iput> 80101e91: 83 c4 10 add $0x10,%esp 80101e94: e9 3a ff ff ff jmp 80101dd3 <namex+0x53> 80101e99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101ea0: 8b 55 e4 mov -0x1c(%ebp),%edx 80101ea3: 8d 0c 02 lea (%edx,%eax,1),%ecx 80101ea6: 89 4d dc mov %ecx,-0x24(%ebp) memmove(name, s, len); 80101ea9: 83 ec 04 sub $0x4,%esp 80101eac: 50 push %eax 80101ead: 57 push %edi name[len] = 0; 80101eae: 89 df mov %ebx,%edi memmove(name, s, len); 80101eb0: ff 75 e4 pushl -0x1c(%ebp) 80101eb3: e8 88 2f 00 00 call 80104e40 <memmove> name[len] = 0; 80101eb8: 8b 45 dc mov -0x24(%ebp),%eax 80101ebb: 83 c4 10 add $0x10,%esp 80101ebe: c6 00 00 movb $0x0,(%eax) 80101ec1: e9 69 ff ff ff jmp 80101e2f <namex+0xaf> 80101ec6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101ecd: 8d 76 00 lea 0x0(%esi),%esi return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80101ed0: 8b 45 e0 mov -0x20(%ebp),%eax 80101ed3: 85 c0 test %eax,%eax 80101ed5: 0f 85 85 00 00 00 jne 80101f60 <namex+0x1e0> iput(ip); return 0; } return ip; } 80101edb: 8d 65 f4 lea -0xc(%ebp),%esp 80101ede: 89 f0 mov %esi,%eax 80101ee0: 5b pop %ebx 80101ee1: 5e pop %esi 80101ee2: 5f pop %edi 80101ee3: 5d pop %ebp 80101ee4: c3 ret 80101ee5: 8d 76 00 lea 0x0(%esi),%esi while(*path != '/' && *path != 0) 80101ee8: 8b 45 e4 mov -0x1c(%ebp),%eax 80101eeb: 89 fb mov %edi,%ebx 80101eed: 89 45 dc mov %eax,-0x24(%ebp) 80101ef0: 31 c0 xor %eax,%eax 80101ef2: eb b5 jmp 80101ea9 <namex+0x129> 80101ef4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi iunlock(ip); 80101ef8: 83 ec 0c sub $0xc,%esp 80101efb: 56 push %esi 80101efc: e8 4f f9 ff ff call 80101850 <iunlock> iput(ip); 80101f01: 89 34 24 mov %esi,(%esp) return 0; 80101f04: 31 f6 xor %esi,%esi iput(ip); 80101f06: e8 95 f9 ff ff call 801018a0 <iput> return 0; 80101f0b: 83 c4 10 add $0x10,%esp } 80101f0e: 8d 65 f4 lea -0xc(%ebp),%esp 80101f11: 89 f0 mov %esi,%eax 80101f13: 5b pop %ebx 80101f14: 5e pop %esi 80101f15: 5f pop %edi 80101f16: 5d pop %ebp 80101f17: c3 ret 80101f18: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101f1f: 90 nop ip = iget(ROOTDEV, ROOTINO); 80101f20: ba 01 00 00 00 mov $0x1,%edx 80101f25: b8 01 00 00 00 mov $0x1,%eax 80101f2a: 89 df mov %ebx,%edi 80101f2c: e8 1f f4 ff ff call 80101350 <iget> 80101f31: 89 c6 mov %eax,%esi 80101f33: e9 9b fe ff ff jmp 80101dd3 <namex+0x53> 80101f38: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101f3f: 90 nop iunlock(ip); 80101f40: 83 ec 0c sub $0xc,%esp 80101f43: 56 push %esi 80101f44: e8 07 f9 ff ff call 80101850 <iunlock> return ip; 80101f49: 83 c4 10 add $0x10,%esp } 80101f4c: 8d 65 f4 lea -0xc(%ebp),%esp 80101f4f: 89 f0 mov %esi,%eax 80101f51: 5b pop %ebx 80101f52: 5e pop %esi 80101f53: 5f pop %edi 80101f54: 5d pop %ebp 80101f55: c3 ret 80101f56: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101f5d: 8d 76 00 lea 0x0(%esi),%esi iput(ip); 80101f60: 83 ec 0c sub $0xc,%esp 80101f63: 56 push %esi return 0; 80101f64: 31 f6 xor %esi,%esi iput(ip); 80101f66: e8 35 f9 ff ff call 801018a0 <iput> return 0; 80101f6b: 83 c4 10 add $0x10,%esp 80101f6e: e9 68 ff ff ff jmp 80101edb <namex+0x15b> 80101f73: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101f7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101f80 <dirlink>: { 80101f80: f3 0f 1e fb endbr32 80101f84: 55 push %ebp 80101f85: 89 e5 mov %esp,%ebp 80101f87: 57 push %edi 80101f88: 56 push %esi 80101f89: 53 push %ebx 80101f8a: 83 ec 20 sub $0x20,%esp 80101f8d: 8b 5d 08 mov 0x8(%ebp),%ebx if((ip = dirlookup(dp, name, 0)) != 0){ 80101f90: 6a 00 push $0x0 80101f92: ff 75 0c pushl 0xc(%ebp) 80101f95: 53 push %ebx 80101f96: e8 25 fd ff ff call 80101cc0 <dirlookup> 80101f9b: 83 c4 10 add $0x10,%esp 80101f9e: 85 c0 test %eax,%eax 80101fa0: 75 6b jne 8010200d <dirlink+0x8d> for(off = 0; off < dp->size; off += sizeof(de)){ 80101fa2: 8b 7b 58 mov 0x58(%ebx),%edi 80101fa5: 8d 75 d8 lea -0x28(%ebp),%esi 80101fa8: 85 ff test %edi,%edi 80101faa: 74 2d je 80101fd9 <dirlink+0x59> 80101fac: 31 ff xor %edi,%edi 80101fae: 8d 75 d8 lea -0x28(%ebp),%esi 80101fb1: eb 0d jmp 80101fc0 <dirlink+0x40> 80101fb3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101fb7: 90 nop 80101fb8: 83 c7 10 add $0x10,%edi 80101fbb: 3b 7b 58 cmp 0x58(%ebx),%edi 80101fbe: 73 19 jae 80101fd9 <dirlink+0x59> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101fc0: 6a 10 push $0x10 80101fc2: 57 push %edi 80101fc3: 56 push %esi 80101fc4: 53 push %ebx 80101fc5: e8 a6 fa ff ff call 80101a70 <readi> 80101fca: 83 c4 10 add $0x10,%esp 80101fcd: 83 f8 10 cmp $0x10,%eax 80101fd0: 75 4e jne 80102020 <dirlink+0xa0> if(de.inum == 0) 80101fd2: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101fd7: 75 df jne 80101fb8 <dirlink+0x38> strncpy(de.name, name, DIRSIZ); 80101fd9: 83 ec 04 sub $0x4,%esp 80101fdc: 8d 45 da lea -0x26(%ebp),%eax 80101fdf: 6a 0e push $0xe 80101fe1: ff 75 0c pushl 0xc(%ebp) 80101fe4: 50 push %eax 80101fe5: e8 16 2f 00 00 call 80104f00 <strncpy> if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101fea: 6a 10 push $0x10 de.inum = inum; 80101fec: 8b 45 10 mov 0x10(%ebp),%eax if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101fef: 57 push %edi 80101ff0: 56 push %esi 80101ff1: 53 push %ebx de.inum = inum; 80101ff2: 66 89 45 d8 mov %ax,-0x28(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101ff6: e8 75 fb ff ff call 80101b70 <writei> 80101ffb: 83 c4 20 add $0x20,%esp 80101ffe: 83 f8 10 cmp $0x10,%eax 80102001: 75 2a jne 8010202d <dirlink+0xad> return 0; 80102003: 31 c0 xor %eax,%eax } 80102005: 8d 65 f4 lea -0xc(%ebp),%esp 80102008: 5b pop %ebx 80102009: 5e pop %esi 8010200a: 5f pop %edi 8010200b: 5d pop %ebp 8010200c: c3 ret iput(ip); 8010200d: 83 ec 0c sub $0xc,%esp 80102010: 50 push %eax 80102011: e8 8a f8 ff ff call 801018a0 <iput> return -1; 80102016: 83 c4 10 add $0x10,%esp 80102019: b8 ff ff ff ff mov $0xffffffff,%eax 8010201e: eb e5 jmp 80102005 <dirlink+0x85> panic("dirlink read"); 80102020: 83 ec 0c sub $0xc,%esp 80102023: 68 68 7a 10 80 push $0x80107a68 80102028: e8 63 e3 ff ff call 80100390 <panic> panic("dirlink"); 8010202d: 83 ec 0c sub $0xc,%esp 80102030: 68 8a 80 10 80 push $0x8010808a 80102035: e8 56 e3 ff ff call 80100390 <panic> 8010203a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102040 <namei>: struct inode* namei(char *path) { 80102040: f3 0f 1e fb endbr32 80102044: 55 push %ebp char name[DIRSIZ]; return namex(path, 0, name); 80102045: 31 d2 xor %edx,%edx { 80102047: 89 e5 mov %esp,%ebp 80102049: 83 ec 18 sub $0x18,%esp return namex(path, 0, name); 8010204c: 8b 45 08 mov 0x8(%ebp),%eax 8010204f: 8d 4d ea lea -0x16(%ebp),%ecx 80102052: e8 29 fd ff ff call 80101d80 <namex> } 80102057: c9 leave 80102058: c3 ret 80102059: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102060 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80102060: f3 0f 1e fb endbr32 80102064: 55 push %ebp return namex(path, 1, name); 80102065: ba 01 00 00 00 mov $0x1,%edx { 8010206a: 89 e5 mov %esp,%ebp return namex(path, 1, name); 8010206c: 8b 4d 0c mov 0xc(%ebp),%ecx 8010206f: 8b 45 08 mov 0x8(%ebp),%eax } 80102072: 5d pop %ebp return namex(path, 1, name); 80102073: e9 08 fd ff ff jmp 80101d80 <namex> 80102078: 66 90 xchg %ax,%ax 8010207a: 66 90 xchg %ax,%ax 8010207c: 66 90 xchg %ax,%ax 8010207e: 66 90 xchg %ax,%ax 80102080 <idestart>: } // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 80102080: 55 push %ebp 80102081: 89 e5 mov %esp,%ebp 80102083: 57 push %edi 80102084: 56 push %esi 80102085: 53 push %ebx 80102086: 83 ec 0c sub $0xc,%esp if(b == 0) 80102089: 85 c0 test %eax,%eax 8010208b: 0f 84 b4 00 00 00 je 80102145 <idestart+0xc5> panic("idestart"); if(b->blockno >= FSSIZE) 80102091: 8b 70 08 mov 0x8(%eax),%esi 80102094: 89 c3 mov %eax,%ebx 80102096: 81 fe e7 03 00 00 cmp $0x3e7,%esi 8010209c: 0f 87 96 00 00 00 ja 80102138 <idestart+0xb8> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801020a2: b9 f7 01 00 00 mov $0x1f7,%ecx 801020a7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801020ae: 66 90 xchg %ax,%ax 801020b0: 89 ca mov %ecx,%edx 801020b2: ec in (%dx),%al while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801020b3: 83 e0 c0 and $0xffffffc0,%eax 801020b6: 3c 40 cmp $0x40,%al 801020b8: 75 f6 jne 801020b0 <idestart+0x30> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801020ba: 31 ff xor %edi,%edi 801020bc: ba f6 03 00 00 mov $0x3f6,%edx 801020c1: 89 f8 mov %edi,%eax 801020c3: ee out %al,(%dx) 801020c4: b8 01 00 00 00 mov $0x1,%eax 801020c9: ba f2 01 00 00 mov $0x1f2,%edx 801020ce: ee out %al,(%dx) 801020cf: ba f3 01 00 00 mov $0x1f3,%edx 801020d4: 89 f0 mov %esi,%eax 801020d6: 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); 801020d7: 89 f0 mov %esi,%eax 801020d9: ba f4 01 00 00 mov $0x1f4,%edx 801020de: c1 f8 08 sar $0x8,%eax 801020e1: ee out %al,(%dx) 801020e2: ba f5 01 00 00 mov $0x1f5,%edx 801020e7: 89 f8 mov %edi,%eax 801020e9: ee out %al,(%dx) outb(0x1f5, (sector >> 16) & 0xff); outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 801020ea: 0f b6 43 04 movzbl 0x4(%ebx),%eax 801020ee: ba f6 01 00 00 mov $0x1f6,%edx 801020f3: c1 e0 04 shl $0x4,%eax 801020f6: 83 e0 10 and $0x10,%eax 801020f9: 83 c8 e0 or $0xffffffe0,%eax 801020fc: ee out %al,(%dx) if(b->flags & B_DIRTY){ 801020fd: f6 03 04 testb $0x4,(%ebx) 80102100: 75 16 jne 80102118 <idestart+0x98> 80102102: b8 20 00 00 00 mov $0x20,%eax 80102107: 89 ca mov %ecx,%edx 80102109: ee out %al,(%dx) outb(0x1f7, write_cmd); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, read_cmd); } } 8010210a: 8d 65 f4 lea -0xc(%ebp),%esp 8010210d: 5b pop %ebx 8010210e: 5e pop %esi 8010210f: 5f pop %edi 80102110: 5d pop %ebp 80102111: c3 ret 80102112: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102118: b8 30 00 00 00 mov $0x30,%eax 8010211d: 89 ca mov %ecx,%edx 8010211f: ee out %al,(%dx) asm volatile("cld; rep outsl" : 80102120: b9 80 00 00 00 mov $0x80,%ecx outsl(0x1f0, b->data, BSIZE/4); 80102125: 8d 73 5c lea 0x5c(%ebx),%esi 80102128: ba f0 01 00 00 mov $0x1f0,%edx 8010212d: fc cld 8010212e: f3 6f rep outsl %ds:(%esi),(%dx) } 80102130: 8d 65 f4 lea -0xc(%ebp),%esp 80102133: 5b pop %ebx 80102134: 5e pop %esi 80102135: 5f pop %edi 80102136: 5d pop %ebp 80102137: c3 ret panic("incorrect blockno"); 80102138: 83 ec 0c sub $0xc,%esp 8010213b: 68 d4 7a 10 80 push $0x80107ad4 80102140: e8 4b e2 ff ff call 80100390 <panic> panic("idestart"); 80102145: 83 ec 0c sub $0xc,%esp 80102148: 68 cb 7a 10 80 push $0x80107acb 8010214d: e8 3e e2 ff ff call 80100390 <panic> 80102152: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102160 <ideinit>: { 80102160: f3 0f 1e fb endbr32 80102164: 55 push %ebp 80102165: 89 e5 mov %esp,%ebp 80102167: 83 ec 10 sub $0x10,%esp initlock(&idelock, "ide"); 8010216a: 68 e6 7a 10 80 push $0x80107ae6 8010216f: 68 80 b5 10 80 push $0x8010b580 80102174: e8 97 29 00 00 call 80104b10 <initlock> ioapicenable(IRQ_IDE, ncpu - 1); 80102179: 58 pop %eax 8010217a: a1 00 3d 11 80 mov 0x80113d00,%eax 8010217f: 5a pop %edx 80102180: 83 e8 01 sub $0x1,%eax 80102183: 50 push %eax 80102184: 6a 0e push $0xe 80102186: e8 b5 02 00 00 call 80102440 <ioapicenable> while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 8010218b: 83 c4 10 add $0x10,%esp asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010218e: ba f7 01 00 00 mov $0x1f7,%edx 80102193: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102197: 90 nop 80102198: ec in (%dx),%al 80102199: 83 e0 c0 and $0xffffffc0,%eax 8010219c: 3c 40 cmp $0x40,%al 8010219e: 75 f8 jne 80102198 <ideinit+0x38> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801021a0: b8 f0 ff ff ff mov $0xfffffff0,%eax 801021a5: ba f6 01 00 00 mov $0x1f6,%edx 801021aa: ee out %al,(%dx) 801021ab: b9 e8 03 00 00 mov $0x3e8,%ecx asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801021b0: ba f7 01 00 00 mov $0x1f7,%edx 801021b5: eb 0e jmp 801021c5 <ideinit+0x65> 801021b7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801021be: 66 90 xchg %ax,%ax for(i=0; i<1000; i++){ 801021c0: 83 e9 01 sub $0x1,%ecx 801021c3: 74 0f je 801021d4 <ideinit+0x74> 801021c5: ec in (%dx),%al if(inb(0x1f7) != 0){ 801021c6: 84 c0 test %al,%al 801021c8: 74 f6 je 801021c0 <ideinit+0x60> havedisk1 = 1; 801021ca: c7 05 60 b5 10 80 01 movl $0x1,0x8010b560 801021d1: 00 00 00 asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801021d4: b8 e0 ff ff ff mov $0xffffffe0,%eax 801021d9: ba f6 01 00 00 mov $0x1f6,%edx 801021de: ee out %al,(%dx) } 801021df: c9 leave 801021e0: c3 ret 801021e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801021e8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801021ef: 90 nop 801021f0 <ideintr>: // Interrupt handler. void ideintr(void) { 801021f0: f3 0f 1e fb endbr32 801021f4: 55 push %ebp 801021f5: 89 e5 mov %esp,%ebp 801021f7: 57 push %edi 801021f8: 56 push %esi 801021f9: 53 push %ebx 801021fa: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 801021fd: 68 80 b5 10 80 push $0x8010b580 80102202: e8 89 2a 00 00 call 80104c90 <acquire> if((b = idequeue) == 0){ 80102207: 8b 1d 64 b5 10 80 mov 0x8010b564,%ebx 8010220d: 83 c4 10 add $0x10,%esp 80102210: 85 db test %ebx,%ebx 80102212: 74 5f je 80102273 <ideintr+0x83> release(&idelock); return; } idequeue = b->qnext; 80102214: 8b 43 58 mov 0x58(%ebx),%eax 80102217: a3 64 b5 10 80 mov %eax,0x8010b564 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 8010221c: 8b 33 mov (%ebx),%esi 8010221e: f7 c6 04 00 00 00 test $0x4,%esi 80102224: 75 2b jne 80102251 <ideintr+0x61> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102226: ba f7 01 00 00 mov $0x1f7,%edx 8010222b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010222f: 90 nop 80102230: ec in (%dx),%al while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 80102231: 89 c1 mov %eax,%ecx 80102233: 83 e1 c0 and $0xffffffc0,%ecx 80102236: 80 f9 40 cmp $0x40,%cl 80102239: 75 f5 jne 80102230 <ideintr+0x40> if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 8010223b: a8 21 test $0x21,%al 8010223d: 75 12 jne 80102251 <ideintr+0x61> insl(0x1f0, b->data, BSIZE/4); 8010223f: 8d 7b 5c lea 0x5c(%ebx),%edi asm volatile("cld; rep insl" : 80102242: b9 80 00 00 00 mov $0x80,%ecx 80102247: ba f0 01 00 00 mov $0x1f0,%edx 8010224c: fc cld 8010224d: f3 6d rep insl (%dx),%es:(%edi) 8010224f: 8b 33 mov (%ebx),%esi // Wake process waiting for this buf. b->flags |= B_VALID; b->flags &= ~B_DIRTY; 80102251: 83 e6 fb and $0xfffffffb,%esi wakeup(b); 80102254: 83 ec 0c sub $0xc,%esp b->flags &= ~B_DIRTY; 80102257: 83 ce 02 or $0x2,%esi 8010225a: 89 33 mov %esi,(%ebx) wakeup(b); 8010225c: 53 push %ebx 8010225d: e8 5e 22 00 00 call 801044c0 <wakeup> // Start disk on next buf in queue. if(idequeue != 0) 80102262: a1 64 b5 10 80 mov 0x8010b564,%eax 80102267: 83 c4 10 add $0x10,%esp 8010226a: 85 c0 test %eax,%eax 8010226c: 74 05 je 80102273 <ideintr+0x83> idestart(idequeue); 8010226e: e8 0d fe ff ff call 80102080 <idestart> release(&idelock); 80102273: 83 ec 0c sub $0xc,%esp 80102276: 68 80 b5 10 80 push $0x8010b580 8010227b: e8 d0 2a 00 00 call 80104d50 <release> release(&idelock); } 80102280: 8d 65 f4 lea -0xc(%ebp),%esp 80102283: 5b pop %ebx 80102284: 5e pop %esi 80102285: 5f pop %edi 80102286: 5d pop %ebp 80102287: c3 ret 80102288: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010228f: 90 nop 80102290 <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) { 80102290: f3 0f 1e fb endbr32 80102294: 55 push %ebp 80102295: 89 e5 mov %esp,%ebp 80102297: 53 push %ebx 80102298: 83 ec 10 sub $0x10,%esp 8010229b: 8b 5d 08 mov 0x8(%ebp),%ebx struct buf **pp; if(!holdingsleep(&b->lock)) 8010229e: 8d 43 0c lea 0xc(%ebx),%eax 801022a1: 50 push %eax 801022a2: e8 09 28 00 00 call 80104ab0 <holdingsleep> 801022a7: 83 c4 10 add $0x10,%esp 801022aa: 85 c0 test %eax,%eax 801022ac: 0f 84 cf 00 00 00 je 80102381 <iderw+0xf1> panic("iderw: buf not locked"); if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 801022b2: 8b 03 mov (%ebx),%eax 801022b4: 83 e0 06 and $0x6,%eax 801022b7: 83 f8 02 cmp $0x2,%eax 801022ba: 0f 84 b4 00 00 00 je 80102374 <iderw+0xe4> panic("iderw: nothing to do"); if(b->dev != 0 && !havedisk1) 801022c0: 8b 53 04 mov 0x4(%ebx),%edx 801022c3: 85 d2 test %edx,%edx 801022c5: 74 0d je 801022d4 <iderw+0x44> 801022c7: a1 60 b5 10 80 mov 0x8010b560,%eax 801022cc: 85 c0 test %eax,%eax 801022ce: 0f 84 93 00 00 00 je 80102367 <iderw+0xd7> panic("iderw: ide disk 1 not present"); acquire(&idelock); //DOC:acquire-lock 801022d4: 83 ec 0c sub $0xc,%esp 801022d7: 68 80 b5 10 80 push $0x8010b580 801022dc: e8 af 29 00 00 call 80104c90 <acquire> // Append b to idequeue. b->qnext = 0; for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 801022e1: a1 64 b5 10 80 mov 0x8010b564,%eax b->qnext = 0; 801022e6: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 801022ed: 83 c4 10 add $0x10,%esp 801022f0: 85 c0 test %eax,%eax 801022f2: 74 6c je 80102360 <iderw+0xd0> 801022f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801022f8: 89 c2 mov %eax,%edx 801022fa: 8b 40 58 mov 0x58(%eax),%eax 801022fd: 85 c0 test %eax,%eax 801022ff: 75 f7 jne 801022f8 <iderw+0x68> 80102301: 83 c2 58 add $0x58,%edx ; *pp = b; 80102304: 89 1a mov %ebx,(%edx) // Start disk if necessary. if(idequeue == b) 80102306: 39 1d 64 b5 10 80 cmp %ebx,0x8010b564 8010230c: 74 42 je 80102350 <iderw+0xc0> idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 8010230e: 8b 03 mov (%ebx),%eax 80102310: 83 e0 06 and $0x6,%eax 80102313: 83 f8 02 cmp $0x2,%eax 80102316: 74 23 je 8010233b <iderw+0xab> 80102318: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010231f: 90 nop sleep(b, &idelock); 80102320: 83 ec 08 sub $0x8,%esp 80102323: 68 80 b5 10 80 push $0x8010b580 80102328: 53 push %ebx 80102329: e8 a2 1e 00 00 call 801041d0 <sleep> while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 8010232e: 8b 03 mov (%ebx),%eax 80102330: 83 c4 10 add $0x10,%esp 80102333: 83 e0 06 and $0x6,%eax 80102336: 83 f8 02 cmp $0x2,%eax 80102339: 75 e5 jne 80102320 <iderw+0x90> } release(&idelock); 8010233b: c7 45 08 80 b5 10 80 movl $0x8010b580,0x8(%ebp) } 80102342: 8b 5d fc mov -0x4(%ebp),%ebx 80102345: c9 leave release(&idelock); 80102346: e9 05 2a 00 00 jmp 80104d50 <release> 8010234b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010234f: 90 nop idestart(b); 80102350: 89 d8 mov %ebx,%eax 80102352: e8 29 fd ff ff call 80102080 <idestart> 80102357: eb b5 jmp 8010230e <iderw+0x7e> 80102359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 80102360: ba 64 b5 10 80 mov $0x8010b564,%edx 80102365: eb 9d jmp 80102304 <iderw+0x74> panic("iderw: ide disk 1 not present"); 80102367: 83 ec 0c sub $0xc,%esp 8010236a: 68 15 7b 10 80 push $0x80107b15 8010236f: e8 1c e0 ff ff call 80100390 <panic> panic("iderw: nothing to do"); 80102374: 83 ec 0c sub $0xc,%esp 80102377: 68 00 7b 10 80 push $0x80107b00 8010237c: e8 0f e0 ff ff call 80100390 <panic> panic("iderw: buf not locked"); 80102381: 83 ec 0c sub $0xc,%esp 80102384: 68 ea 7a 10 80 push $0x80107aea 80102389: e8 02 e0 ff ff call 80100390 <panic> 8010238e: 66 90 xchg %ax,%ax 80102390 <ioapicinit>: ioapic->data = data; } void ioapicinit(void) { 80102390: f3 0f 1e fb endbr32 80102394: 55 push %ebp int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; 80102395: c7 05 34 36 11 80 00 movl $0xfec00000,0x80113634 8010239c: 00 c0 fe { 8010239f: 89 e5 mov %esp,%ebp 801023a1: 56 push %esi 801023a2: 53 push %ebx ioapic->reg = reg; 801023a3: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000 801023aa: 00 00 00 return ioapic->data; 801023ad: 8b 15 34 36 11 80 mov 0x80113634,%edx 801023b3: 8b 72 10 mov 0x10(%edx),%esi ioapic->reg = reg; 801023b6: c7 02 00 00 00 00 movl $0x0,(%edx) return ioapic->data; 801023bc: 8b 0d 34 36 11 80 mov 0x80113634,%ecx maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; id = ioapicread(REG_ID) >> 24; if(id != ioapicid) 801023c2: 0f b6 15 60 37 11 80 movzbl 0x80113760,%edx maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 801023c9: c1 ee 10 shr $0x10,%esi 801023cc: 89 f0 mov %esi,%eax 801023ce: 0f b6 f0 movzbl %al,%esi return ioapic->data; 801023d1: 8b 41 10 mov 0x10(%ecx),%eax id = ioapicread(REG_ID) >> 24; 801023d4: c1 e8 18 shr $0x18,%eax if(id != ioapicid) 801023d7: 39 c2 cmp %eax,%edx 801023d9: 74 16 je 801023f1 <ioapicinit+0x61> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 801023db: 83 ec 0c sub $0xc,%esp 801023de: 68 34 7b 10 80 push $0x80107b34 801023e3: e8 c8 e2 ff ff call 801006b0 <cprintf> 801023e8: 8b 0d 34 36 11 80 mov 0x80113634,%ecx 801023ee: 83 c4 10 add $0x10,%esp 801023f1: 83 c6 21 add $0x21,%esi { 801023f4: ba 10 00 00 00 mov $0x10,%edx 801023f9: b8 20 00 00 00 mov $0x20,%eax 801023fe: 66 90 xchg %ax,%ax ioapic->reg = reg; 80102400: 89 11 mov %edx,(%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)); 80102402: 89 c3 mov %eax,%ebx ioapic->data = data; 80102404: 8b 0d 34 36 11 80 mov 0x80113634,%ecx 8010240a: 83 c0 01 add $0x1,%eax ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 8010240d: 81 cb 00 00 01 00 or $0x10000,%ebx ioapic->data = data; 80102413: 89 59 10 mov %ebx,0x10(%ecx) ioapic->reg = reg; 80102416: 8d 5a 01 lea 0x1(%edx),%ebx 80102419: 83 c2 02 add $0x2,%edx 8010241c: 89 19 mov %ebx,(%ecx) ioapic->data = data; 8010241e: 8b 0d 34 36 11 80 mov 0x80113634,%ecx 80102424: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx) for(i = 0; i <= maxintr; i++){ 8010242b: 39 f0 cmp %esi,%eax 8010242d: 75 d1 jne 80102400 <ioapicinit+0x70> ioapicwrite(REG_TABLE+2*i+1, 0); } } 8010242f: 8d 65 f8 lea -0x8(%ebp),%esp 80102432: 5b pop %ebx 80102433: 5e pop %esi 80102434: 5d pop %ebp 80102435: c3 ret 80102436: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010243d: 8d 76 00 lea 0x0(%esi),%esi 80102440 <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102440: f3 0f 1e fb endbr32 80102444: 55 push %ebp ioapic->reg = reg; 80102445: 8b 0d 34 36 11 80 mov 0x80113634,%ecx { 8010244b: 89 e5 mov %esp,%ebp 8010244d: 8b 45 08 mov 0x8(%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); 80102450: 8d 50 20 lea 0x20(%eax),%edx 80102453: 8d 44 00 10 lea 0x10(%eax,%eax,1),%eax ioapic->reg = reg; 80102457: 89 01 mov %eax,(%ecx) ioapic->data = data; 80102459: 8b 0d 34 36 11 80 mov 0x80113634,%ecx ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 8010245f: 83 c0 01 add $0x1,%eax ioapic->data = data; 80102462: 89 51 10 mov %edx,0x10(%ecx) ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 80102465: 8b 55 0c mov 0xc(%ebp),%edx ioapic->reg = reg; 80102468: 89 01 mov %eax,(%ecx) ioapic->data = data; 8010246a: a1 34 36 11 80 mov 0x80113634,%eax ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 8010246f: c1 e2 18 shl $0x18,%edx ioapic->data = data; 80102472: 89 50 10 mov %edx,0x10(%eax) } 80102475: 5d pop %ebp 80102476: c3 ret 80102477: 66 90 xchg %ax,%ax 80102479: 66 90 xchg %ax,%ax 8010247b: 66 90 xchg %ax,%ax 8010247d: 66 90 xchg %ax,%ax 8010247f: 90 nop 80102480 <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) { 80102480: f3 0f 1e fb endbr32 80102484: 55 push %ebp 80102485: 89 e5 mov %esp,%ebp 80102487: 53 push %ebx 80102488: 83 ec 04 sub $0x4,%esp 8010248b: 8b 5d 08 mov 0x8(%ebp),%ebx struct run *r; if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP) 8010248e: f7 c3 ff 0f 00 00 test $0xfff,%ebx 80102494: 75 7a jne 80102510 <kfree+0x90> 80102496: 81 fb a8 72 11 80 cmp $0x801172a8,%ebx 8010249c: 72 72 jb 80102510 <kfree+0x90> 8010249e: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 801024a4: 3d ff ff ff 0d cmp $0xdffffff,%eax 801024a9: 77 65 ja 80102510 <kfree+0x90> panic("kfree"); // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 801024ab: 83 ec 04 sub $0x4,%esp 801024ae: 68 00 10 00 00 push $0x1000 801024b3: 6a 01 push $0x1 801024b5: 53 push %ebx 801024b6: e8 e5 28 00 00 call 80104da0 <memset> if(kmem.use_lock) 801024bb: 8b 15 74 36 11 80 mov 0x80113674,%edx 801024c1: 83 c4 10 add $0x10,%esp 801024c4: 85 d2 test %edx,%edx 801024c6: 75 20 jne 801024e8 <kfree+0x68> acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; 801024c8: a1 78 36 11 80 mov 0x80113678,%eax 801024cd: 89 03 mov %eax,(%ebx) kmem.freelist = r; if(kmem.use_lock) 801024cf: a1 74 36 11 80 mov 0x80113674,%eax kmem.freelist = r; 801024d4: 89 1d 78 36 11 80 mov %ebx,0x80113678 if(kmem.use_lock) 801024da: 85 c0 test %eax,%eax 801024dc: 75 22 jne 80102500 <kfree+0x80> release(&kmem.lock); } 801024de: 8b 5d fc mov -0x4(%ebp),%ebx 801024e1: c9 leave 801024e2: c3 ret 801024e3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801024e7: 90 nop acquire(&kmem.lock); 801024e8: 83 ec 0c sub $0xc,%esp 801024eb: 68 40 36 11 80 push $0x80113640 801024f0: e8 9b 27 00 00 call 80104c90 <acquire> 801024f5: 83 c4 10 add $0x10,%esp 801024f8: eb ce jmp 801024c8 <kfree+0x48> 801024fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi release(&kmem.lock); 80102500: c7 45 08 40 36 11 80 movl $0x80113640,0x8(%ebp) } 80102507: 8b 5d fc mov -0x4(%ebp),%ebx 8010250a: c9 leave release(&kmem.lock); 8010250b: e9 40 28 00 00 jmp 80104d50 <release> panic("kfree"); 80102510: 83 ec 0c sub $0xc,%esp 80102513: 68 66 7b 10 80 push $0x80107b66 80102518: e8 73 de ff ff call 80100390 <panic> 8010251d: 8d 76 00 lea 0x0(%esi),%esi 80102520 <freerange>: { 80102520: f3 0f 1e fb endbr32 80102524: 55 push %ebp 80102525: 89 e5 mov %esp,%ebp 80102527: 56 push %esi p = (char*)PGROUNDUP((uint)vstart); 80102528: 8b 45 08 mov 0x8(%ebp),%eax { 8010252b: 8b 75 0c mov 0xc(%ebp),%esi 8010252e: 53 push %ebx p = (char*)PGROUNDUP((uint)vstart); 8010252f: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80102535: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010253b: 81 c3 00 10 00 00 add $0x1000,%ebx 80102541: 39 de cmp %ebx,%esi 80102543: 72 1f jb 80102564 <freerange+0x44> 80102545: 8d 76 00 lea 0x0(%esi),%esi kfree(p); 80102548: 83 ec 0c sub $0xc,%esp 8010254b: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102551: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 80102557: 50 push %eax 80102558: e8 23 ff ff ff call 80102480 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010255d: 83 c4 10 add $0x10,%esp 80102560: 39 f3 cmp %esi,%ebx 80102562: 76 e4 jbe 80102548 <freerange+0x28> } 80102564: 8d 65 f8 lea -0x8(%ebp),%esp 80102567: 5b pop %ebx 80102568: 5e pop %esi 80102569: 5d pop %ebp 8010256a: c3 ret 8010256b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010256f: 90 nop 80102570 <kinit1>: { 80102570: f3 0f 1e fb endbr32 80102574: 55 push %ebp 80102575: 89 e5 mov %esp,%ebp 80102577: 56 push %esi 80102578: 53 push %ebx 80102579: 8b 75 0c mov 0xc(%ebp),%esi initlock(&kmem.lock, "kmem"); 8010257c: 83 ec 08 sub $0x8,%esp 8010257f: 68 6c 7b 10 80 push $0x80107b6c 80102584: 68 40 36 11 80 push $0x80113640 80102589: e8 82 25 00 00 call 80104b10 <initlock> p = (char*)PGROUNDUP((uint)vstart); 8010258e: 8b 45 08 mov 0x8(%ebp),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102591: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102594: c7 05 74 36 11 80 00 movl $0x0,0x80113674 8010259b: 00 00 00 p = (char*)PGROUNDUP((uint)vstart); 8010259e: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 801025a4: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801025aa: 81 c3 00 10 00 00 add $0x1000,%ebx 801025b0: 39 de cmp %ebx,%esi 801025b2: 72 20 jb 801025d4 <kinit1+0x64> 801025b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi kfree(p); 801025b8: 83 ec 0c sub $0xc,%esp 801025bb: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801025c1: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 801025c7: 50 push %eax 801025c8: e8 b3 fe ff ff call 80102480 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801025cd: 83 c4 10 add $0x10,%esp 801025d0: 39 de cmp %ebx,%esi 801025d2: 73 e4 jae 801025b8 <kinit1+0x48> } 801025d4: 8d 65 f8 lea -0x8(%ebp),%esp 801025d7: 5b pop %ebx 801025d8: 5e pop %esi 801025d9: 5d pop %ebp 801025da: c3 ret 801025db: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801025df: 90 nop 801025e0 <kinit2>: { 801025e0: f3 0f 1e fb endbr32 801025e4: 55 push %ebp 801025e5: 89 e5 mov %esp,%ebp 801025e7: 56 push %esi p = (char*)PGROUNDUP((uint)vstart); 801025e8: 8b 45 08 mov 0x8(%ebp),%eax { 801025eb: 8b 75 0c mov 0xc(%ebp),%esi 801025ee: 53 push %ebx p = (char*)PGROUNDUP((uint)vstart); 801025ef: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 801025f5: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801025fb: 81 c3 00 10 00 00 add $0x1000,%ebx 80102601: 39 de cmp %ebx,%esi 80102603: 72 1f jb 80102624 <kinit2+0x44> 80102605: 8d 76 00 lea 0x0(%esi),%esi kfree(p); 80102608: 83 ec 0c sub $0xc,%esp 8010260b: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102611: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 80102617: 50 push %eax 80102618: e8 63 fe ff ff call 80102480 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010261d: 83 c4 10 add $0x10,%esp 80102620: 39 de cmp %ebx,%esi 80102622: 73 e4 jae 80102608 <kinit2+0x28> kmem.use_lock = 1; 80102624: c7 05 74 36 11 80 01 movl $0x1,0x80113674 8010262b: 00 00 00 } 8010262e: 8d 65 f8 lea -0x8(%ebp),%esp 80102631: 5b pop %ebx 80102632: 5e pop %esi 80102633: 5d pop %ebp 80102634: c3 ret 80102635: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010263c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102640 <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) { 80102640: f3 0f 1e fb endbr32 struct run *r; if(kmem.use_lock) 80102644: a1 74 36 11 80 mov 0x80113674,%eax 80102649: 85 c0 test %eax,%eax 8010264b: 75 1b jne 80102668 <kalloc+0x28> acquire(&kmem.lock); r = kmem.freelist; 8010264d: a1 78 36 11 80 mov 0x80113678,%eax if(r) 80102652: 85 c0 test %eax,%eax 80102654: 74 0a je 80102660 <kalloc+0x20> kmem.freelist = r->next; 80102656: 8b 10 mov (%eax),%edx 80102658: 89 15 78 36 11 80 mov %edx,0x80113678 if(kmem.use_lock) 8010265e: c3 ret 8010265f: 90 nop release(&kmem.lock); return (char*)r; } 80102660: c3 ret 80102661: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { 80102668: 55 push %ebp 80102669: 89 e5 mov %esp,%ebp 8010266b: 83 ec 24 sub $0x24,%esp acquire(&kmem.lock); 8010266e: 68 40 36 11 80 push $0x80113640 80102673: e8 18 26 00 00 call 80104c90 <acquire> r = kmem.freelist; 80102678: a1 78 36 11 80 mov 0x80113678,%eax if(r) 8010267d: 8b 15 74 36 11 80 mov 0x80113674,%edx 80102683: 83 c4 10 add $0x10,%esp 80102686: 85 c0 test %eax,%eax 80102688: 74 08 je 80102692 <kalloc+0x52> kmem.freelist = r->next; 8010268a: 8b 08 mov (%eax),%ecx 8010268c: 89 0d 78 36 11 80 mov %ecx,0x80113678 if(kmem.use_lock) 80102692: 85 d2 test %edx,%edx 80102694: 74 16 je 801026ac <kalloc+0x6c> release(&kmem.lock); 80102696: 83 ec 0c sub $0xc,%esp 80102699: 89 45 f4 mov %eax,-0xc(%ebp) 8010269c: 68 40 36 11 80 push $0x80113640 801026a1: e8 aa 26 00 00 call 80104d50 <release> return (char*)r; 801026a6: 8b 45 f4 mov -0xc(%ebp),%eax release(&kmem.lock); 801026a9: 83 c4 10 add $0x10,%esp } 801026ac: c9 leave 801026ad: c3 ret 801026ae: 66 90 xchg %ax,%ax 801026b0 <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 801026b0: f3 0f 1e fb endbr32 asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801026b4: ba 64 00 00 00 mov $0x64,%edx 801026b9: ec in (%dx),%al normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); if((st & KBS_DIB) == 0) 801026ba: a8 01 test $0x1,%al 801026bc: 0f 84 be 00 00 00 je 80102780 <kbdgetc+0xd0> { 801026c2: 55 push %ebp 801026c3: ba 60 00 00 00 mov $0x60,%edx 801026c8: 89 e5 mov %esp,%ebp 801026ca: 53 push %ebx 801026cb: ec in (%dx),%al return data; 801026cc: 8b 1d b4 b5 10 80 mov 0x8010b5b4,%ebx return -1; data = inb(KBDATAP); 801026d2: 0f b6 d0 movzbl %al,%edx if(data == 0xE0){ 801026d5: 3c e0 cmp $0xe0,%al 801026d7: 74 57 je 80102730 <kbdgetc+0x80> shift |= E0ESC; return 0; } else if(data & 0x80){ 801026d9: 89 d9 mov %ebx,%ecx 801026db: 83 e1 40 and $0x40,%ecx 801026de: 84 c0 test %al,%al 801026e0: 78 5e js 80102740 <kbdgetc+0x90> // Key released data = (shift & E0ESC ? data : data & 0x7F); shift &= ~(shiftcode[data] | E0ESC); return 0; } else if(shift & E0ESC){ 801026e2: 85 c9 test %ecx,%ecx 801026e4: 74 09 je 801026ef <kbdgetc+0x3f> // Last character was an E0 escape; or with 0x80 data |= 0x80; 801026e6: 83 c8 80 or $0xffffff80,%eax shift &= ~E0ESC; 801026e9: 83 e3 bf and $0xffffffbf,%ebx data |= 0x80; 801026ec: 0f b6 d0 movzbl %al,%edx } shift |= shiftcode[data]; 801026ef: 0f b6 8a a0 7c 10 80 movzbl -0x7fef8360(%edx),%ecx shift ^= togglecode[data]; 801026f6: 0f b6 82 a0 7b 10 80 movzbl -0x7fef8460(%edx),%eax shift |= shiftcode[data]; 801026fd: 09 d9 or %ebx,%ecx shift ^= togglecode[data]; 801026ff: 31 c1 xor %eax,%ecx c = charcode[shift & (CTL | SHIFT)][data]; 80102701: 89 c8 mov %ecx,%eax shift ^= togglecode[data]; 80102703: 89 0d b4 b5 10 80 mov %ecx,0x8010b5b4 c = charcode[shift & (CTL | SHIFT)][data]; 80102709: 83 e0 03 and $0x3,%eax if(shift & CAPSLOCK){ 8010270c: 83 e1 08 and $0x8,%ecx c = charcode[shift & (CTL | SHIFT)][data]; 8010270f: 8b 04 85 80 7b 10 80 mov -0x7fef8480(,%eax,4),%eax 80102716: 0f b6 04 10 movzbl (%eax,%edx,1),%eax if(shift & CAPSLOCK){ 8010271a: 74 0b je 80102727 <kbdgetc+0x77> if('a' <= c && c <= 'z') 8010271c: 8d 50 9f lea -0x61(%eax),%edx 8010271f: 83 fa 19 cmp $0x19,%edx 80102722: 77 44 ja 80102768 <kbdgetc+0xb8> c += 'A' - 'a'; 80102724: 83 e8 20 sub $0x20,%eax else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 80102727: 5b pop %ebx 80102728: 5d pop %ebp 80102729: c3 ret 8010272a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi shift |= E0ESC; 80102730: 83 cb 40 or $0x40,%ebx return 0; 80102733: 31 c0 xor %eax,%eax shift |= E0ESC; 80102735: 89 1d b4 b5 10 80 mov %ebx,0x8010b5b4 } 8010273b: 5b pop %ebx 8010273c: 5d pop %ebp 8010273d: c3 ret 8010273e: 66 90 xchg %ax,%ax data = (shift & E0ESC ? data : data & 0x7F); 80102740: 83 e0 7f and $0x7f,%eax 80102743: 85 c9 test %ecx,%ecx 80102745: 0f 44 d0 cmove %eax,%edx return 0; 80102748: 31 c0 xor %eax,%eax shift &= ~(shiftcode[data] | E0ESC); 8010274a: 0f b6 8a a0 7c 10 80 movzbl -0x7fef8360(%edx),%ecx 80102751: 83 c9 40 or $0x40,%ecx 80102754: 0f b6 c9 movzbl %cl,%ecx 80102757: f7 d1 not %ecx 80102759: 21 d9 and %ebx,%ecx } 8010275b: 5b pop %ebx 8010275c: 5d pop %ebp shift &= ~(shiftcode[data] | E0ESC); 8010275d: 89 0d b4 b5 10 80 mov %ecx,0x8010b5b4 } 80102763: c3 ret 80102764: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi else if('A' <= c && c <= 'Z') 80102768: 8d 48 bf lea -0x41(%eax),%ecx c += 'a' - 'A'; 8010276b: 8d 50 20 lea 0x20(%eax),%edx } 8010276e: 5b pop %ebx 8010276f: 5d pop %ebp c += 'a' - 'A'; 80102770: 83 f9 1a cmp $0x1a,%ecx 80102773: 0f 42 c2 cmovb %edx,%eax } 80102776: c3 ret 80102777: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010277e: 66 90 xchg %ax,%ax return -1; 80102780: b8 ff ff ff ff mov $0xffffffff,%eax } 80102785: c3 ret 80102786: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010278d: 8d 76 00 lea 0x0(%esi),%esi 80102790 <kbdintr>: void kbdintr(void) { 80102790: f3 0f 1e fb endbr32 80102794: 55 push %ebp 80102795: 89 e5 mov %esp,%ebp 80102797: 83 ec 14 sub $0x14,%esp consoleintr(kbdgetc); 8010279a: 68 b0 26 10 80 push $0x801026b0 8010279f: e8 bc e0 ff ff call 80100860 <consoleintr> } 801027a4: 83 c4 10 add $0x10,%esp 801027a7: c9 leave 801027a8: c3 ret 801027a9: 66 90 xchg %ax,%ax 801027ab: 66 90 xchg %ax,%ax 801027ad: 66 90 xchg %ax,%ax 801027af: 90 nop 801027b0 <lapicinit>: lapic[ID]; // wait for write to finish, by reading } void lapicinit(void) { 801027b0: f3 0f 1e fb endbr32 if(!lapic) 801027b4: a1 7c 36 11 80 mov 0x8011367c,%eax 801027b9: 85 c0 test %eax,%eax 801027bb: 0f 84 c7 00 00 00 je 80102888 <lapicinit+0xd8> lapic[index] = value; 801027c1: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax) 801027c8: 01 00 00 lapic[ID]; // wait for write to finish, by reading 801027cb: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801027ce: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax) 801027d5: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801027d8: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801027db: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax) 801027e2: 00 02 00 lapic[ID]; // wait for write to finish, by reading 801027e5: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801027e8: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax) 801027ef: 96 98 00 lapic[ID]; // wait for write to finish, by reading 801027f2: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801027f5: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax) 801027fc: 00 01 00 lapic[ID]; // wait for write to finish, by reading 801027ff: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102802: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax) 80102809: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010280c: 8b 50 20 mov 0x20(%eax),%edx lapicw(LINT0, MASKED); lapicw(LINT1, MASKED); // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 8010280f: 8b 50 30 mov 0x30(%eax),%edx 80102812: c1 ea 10 shr $0x10,%edx 80102815: 81 e2 fc 00 00 00 and $0xfc,%edx 8010281b: 75 73 jne 80102890 <lapicinit+0xe0> lapic[index] = value; 8010281d: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax) 80102824: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102827: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 8010282a: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 80102831: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102834: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102837: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 8010283e: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102841: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102844: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 8010284b: 00 00 00 lapic[ID]; // wait for write to finish, by reading 8010284e: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102851: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax) 80102858: 00 00 00 lapic[ID]; // wait for write to finish, by reading 8010285b: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 8010285e: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax) 80102865: 85 08 00 lapic[ID]; // wait for write to finish, by reading 80102868: 8b 50 20 mov 0x20(%eax),%edx 8010286b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010286f: 90 nop lapicw(EOI, 0); // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); lapicw(ICRLO, BCAST | INIT | LEVEL); while(lapic[ICRLO] & DELIVS) 80102870: 8b 90 00 03 00 00 mov 0x300(%eax),%edx 80102876: 80 e6 10 and $0x10,%dh 80102879: 75 f5 jne 80102870 <lapicinit+0xc0> lapic[index] = value; 8010287b: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 80102882: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102885: 8b 40 20 mov 0x20(%eax),%eax ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 80102888: c3 ret 80102889: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi lapic[index] = value; 80102890: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax) 80102897: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010289a: 8b 50 20 mov 0x20(%eax),%edx } 8010289d: e9 7b ff ff ff jmp 8010281d <lapicinit+0x6d> 801028a2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801028a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801028b0 <lapicid>: int lapicid(void) { 801028b0: f3 0f 1e fb endbr32 if (!lapic) 801028b4: a1 7c 36 11 80 mov 0x8011367c,%eax 801028b9: 85 c0 test %eax,%eax 801028bb: 74 0b je 801028c8 <lapicid+0x18> return 0; return lapic[ID] >> 24; 801028bd: 8b 40 20 mov 0x20(%eax),%eax 801028c0: c1 e8 18 shr $0x18,%eax 801028c3: c3 ret 801028c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return 0; 801028c8: 31 c0 xor %eax,%eax } 801028ca: c3 ret 801028cb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801028cf: 90 nop 801028d0 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { 801028d0: f3 0f 1e fb endbr32 if(lapic) 801028d4: a1 7c 36 11 80 mov 0x8011367c,%eax 801028d9: 85 c0 test %eax,%eax 801028db: 74 0d je 801028ea <lapiceoi+0x1a> lapic[index] = value; 801028dd: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 801028e4: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801028e7: 8b 40 20 mov 0x20(%eax),%eax lapicw(EOI, 0); } 801028ea: c3 ret 801028eb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801028ef: 90 nop 801028f0 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 801028f0: f3 0f 1e fb endbr32 } 801028f4: c3 ret 801028f5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801028fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102900 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80102900: f3 0f 1e fb endbr32 80102904: 55 push %ebp asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102905: b8 0f 00 00 00 mov $0xf,%eax 8010290a: ba 70 00 00 00 mov $0x70,%edx 8010290f: 89 e5 mov %esp,%ebp 80102911: 53 push %ebx 80102912: 8b 4d 0c mov 0xc(%ebp),%ecx 80102915: 8b 5d 08 mov 0x8(%ebp),%ebx 80102918: ee out %al,(%dx) 80102919: b8 0a 00 00 00 mov $0xa,%eax 8010291e: ba 71 00 00 00 mov $0x71,%edx 80102923: ee out %al,(%dx) // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; 80102924: 31 c0 xor %eax,%eax wrv[1] = addr >> 4; // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 80102926: c1 e3 18 shl $0x18,%ebx wrv[0] = 0; 80102929: 66 a3 67 04 00 80 mov %ax,0x80000467 wrv[1] = addr >> 4; 8010292f: 89 c8 mov %ecx,%eax // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); 80102931: c1 e9 0c shr $0xc,%ecx lapicw(ICRHI, apicid<<24); 80102934: 89 da mov %ebx,%edx wrv[1] = addr >> 4; 80102936: c1 e8 04 shr $0x4,%eax lapicw(ICRLO, STARTUP | (addr>>12)); 80102939: 80 cd 06 or $0x6,%ch wrv[1] = addr >> 4; 8010293c: 66 a3 69 04 00 80 mov %ax,0x80000469 lapic[index] = value; 80102942: a1 7c 36 11 80 mov 0x8011367c,%eax 80102947: 89 98 10 03 00 00 mov %ebx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 8010294d: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 80102950: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax) 80102957: c5 00 00 lapic[ID]; // wait for write to finish, by reading 8010295a: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 8010295d: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax) 80102964: 85 00 00 lapic[ID]; // wait for write to finish, by reading 80102967: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 8010296a: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 80102970: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 80102973: 89 88 00 03 00 00 mov %ecx,0x300(%eax) lapic[ID]; // wait for write to finish, by reading 80102979: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 8010297c: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 80102982: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102985: 89 88 00 03 00 00 mov %ecx,0x300(%eax) microdelay(200); } } 8010298b: 5b pop %ebx lapic[ID]; // wait for write to finish, by reading 8010298c: 8b 40 20 mov 0x20(%eax),%eax } 8010298f: 5d pop %ebp 80102990: c3 ret 80102991: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102998: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010299f: 90 nop 801029a0 <cmostime>: } // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801029a0: f3 0f 1e fb endbr32 801029a4: 55 push %ebp 801029a5: b8 0b 00 00 00 mov $0xb,%eax 801029aa: ba 70 00 00 00 mov $0x70,%edx 801029af: 89 e5 mov %esp,%ebp 801029b1: 57 push %edi 801029b2: 56 push %esi 801029b3: 53 push %ebx 801029b4: 83 ec 4c sub $0x4c,%esp 801029b7: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801029b8: ba 71 00 00 00 mov $0x71,%edx 801029bd: ec in (%dx),%al struct rtcdate t1, t2; int sb, bcd; sb = cmos_read(CMOS_STATB); bcd = (sb & (1 << 2)) == 0; 801029be: 83 e0 04 and $0x4,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801029c1: bb 70 00 00 00 mov $0x70,%ebx 801029c6: 88 45 b3 mov %al,-0x4d(%ebp) 801029c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801029d0: 31 c0 xor %eax,%eax 801029d2: 89 da mov %ebx,%edx 801029d4: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801029d5: b9 71 00 00 00 mov $0x71,%ecx 801029da: 89 ca mov %ecx,%edx 801029dc: ec in (%dx),%al 801029dd: 88 45 b7 mov %al,-0x49(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801029e0: 89 da mov %ebx,%edx 801029e2: b8 02 00 00 00 mov $0x2,%eax 801029e7: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801029e8: 89 ca mov %ecx,%edx 801029ea: ec in (%dx),%al 801029eb: 88 45 b6 mov %al,-0x4a(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801029ee: 89 da mov %ebx,%edx 801029f0: b8 04 00 00 00 mov $0x4,%eax 801029f5: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801029f6: 89 ca mov %ecx,%edx 801029f8: ec in (%dx),%al 801029f9: 88 45 b5 mov %al,-0x4b(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801029fc: 89 da mov %ebx,%edx 801029fe: b8 07 00 00 00 mov $0x7,%eax 80102a03: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a04: 89 ca mov %ecx,%edx 80102a06: ec in (%dx),%al 80102a07: 88 45 b4 mov %al,-0x4c(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a0a: 89 da mov %ebx,%edx 80102a0c: b8 08 00 00 00 mov $0x8,%eax 80102a11: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a12: 89 ca mov %ecx,%edx 80102a14: ec in (%dx),%al 80102a15: 89 c7 mov %eax,%edi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a17: 89 da mov %ebx,%edx 80102a19: b8 09 00 00 00 mov $0x9,%eax 80102a1e: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a1f: 89 ca mov %ecx,%edx 80102a21: ec in (%dx),%al 80102a22: 89 c6 mov %eax,%esi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a24: 89 da mov %ebx,%edx 80102a26: b8 0a 00 00 00 mov $0xa,%eax 80102a2b: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a2c: 89 ca mov %ecx,%edx 80102a2e: ec in (%dx),%al // make sure CMOS doesn't modify time while we read it for(;;) { fill_rtcdate(&t1); if(cmos_read(CMOS_STATA) & CMOS_UIP) 80102a2f: 84 c0 test %al,%al 80102a31: 78 9d js 801029d0 <cmostime+0x30> return inb(CMOS_RETURN); 80102a33: 0f b6 45 b7 movzbl -0x49(%ebp),%eax 80102a37: 89 fa mov %edi,%edx 80102a39: 0f b6 fa movzbl %dl,%edi 80102a3c: 89 f2 mov %esi,%edx 80102a3e: 89 45 b8 mov %eax,-0x48(%ebp) 80102a41: 0f b6 45 b6 movzbl -0x4a(%ebp),%eax 80102a45: 0f b6 f2 movzbl %dl,%esi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a48: 89 da mov %ebx,%edx 80102a4a: 89 7d c8 mov %edi,-0x38(%ebp) 80102a4d: 89 45 bc mov %eax,-0x44(%ebp) 80102a50: 0f b6 45 b5 movzbl -0x4b(%ebp),%eax 80102a54: 89 75 cc mov %esi,-0x34(%ebp) 80102a57: 89 45 c0 mov %eax,-0x40(%ebp) 80102a5a: 0f b6 45 b4 movzbl -0x4c(%ebp),%eax 80102a5e: 89 45 c4 mov %eax,-0x3c(%ebp) 80102a61: 31 c0 xor %eax,%eax 80102a63: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a64: 89 ca mov %ecx,%edx 80102a66: ec in (%dx),%al 80102a67: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a6a: 89 da mov %ebx,%edx 80102a6c: 89 45 d0 mov %eax,-0x30(%ebp) 80102a6f: b8 02 00 00 00 mov $0x2,%eax 80102a74: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a75: 89 ca mov %ecx,%edx 80102a77: ec in (%dx),%al 80102a78: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a7b: 89 da mov %ebx,%edx 80102a7d: 89 45 d4 mov %eax,-0x2c(%ebp) 80102a80: b8 04 00 00 00 mov $0x4,%eax 80102a85: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a86: 89 ca mov %ecx,%edx 80102a88: ec in (%dx),%al 80102a89: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a8c: 89 da mov %ebx,%edx 80102a8e: 89 45 d8 mov %eax,-0x28(%ebp) 80102a91: b8 07 00 00 00 mov $0x7,%eax 80102a96: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102a97: 89 ca mov %ecx,%edx 80102a99: ec in (%dx),%al 80102a9a: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102a9d: 89 da mov %ebx,%edx 80102a9f: 89 45 dc mov %eax,-0x24(%ebp) 80102aa2: b8 08 00 00 00 mov $0x8,%eax 80102aa7: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102aa8: 89 ca mov %ecx,%edx 80102aaa: ec in (%dx),%al 80102aab: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102aae: 89 da mov %ebx,%edx 80102ab0: 89 45 e0 mov %eax,-0x20(%ebp) 80102ab3: b8 09 00 00 00 mov $0x9,%eax 80102ab8: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102ab9: 89 ca mov %ecx,%edx 80102abb: ec in (%dx),%al 80102abc: 0f b6 c0 movzbl %al,%eax continue; fill_rtcdate(&t2); if(memcmp(&t1, &t2, sizeof(t1)) == 0) 80102abf: 83 ec 04 sub $0x4,%esp return inb(CMOS_RETURN); 80102ac2: 89 45 e4 mov %eax,-0x1c(%ebp) if(memcmp(&t1, &t2, sizeof(t1)) == 0) 80102ac5: 8d 45 d0 lea -0x30(%ebp),%eax 80102ac8: 6a 18 push $0x18 80102aca: 50 push %eax 80102acb: 8d 45 b8 lea -0x48(%ebp),%eax 80102ace: 50 push %eax 80102acf: e8 1c 23 00 00 call 80104df0 <memcmp> 80102ad4: 83 c4 10 add $0x10,%esp 80102ad7: 85 c0 test %eax,%eax 80102ad9: 0f 85 f1 fe ff ff jne 801029d0 <cmostime+0x30> break; } // convert if(bcd) { 80102adf: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 80102ae3: 75 78 jne 80102b5d <cmostime+0x1bd> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 80102ae5: 8b 45 b8 mov -0x48(%ebp),%eax 80102ae8: 89 c2 mov %eax,%edx 80102aea: 83 e0 0f and $0xf,%eax 80102aed: c1 ea 04 shr $0x4,%edx 80102af0: 8d 14 92 lea (%edx,%edx,4),%edx 80102af3: 8d 04 50 lea (%eax,%edx,2),%eax 80102af6: 89 45 b8 mov %eax,-0x48(%ebp) CONV(minute); 80102af9: 8b 45 bc mov -0x44(%ebp),%eax 80102afc: 89 c2 mov %eax,%edx 80102afe: 83 e0 0f and $0xf,%eax 80102b01: c1 ea 04 shr $0x4,%edx 80102b04: 8d 14 92 lea (%edx,%edx,4),%edx 80102b07: 8d 04 50 lea (%eax,%edx,2),%eax 80102b0a: 89 45 bc mov %eax,-0x44(%ebp) CONV(hour ); 80102b0d: 8b 45 c0 mov -0x40(%ebp),%eax 80102b10: 89 c2 mov %eax,%edx 80102b12: 83 e0 0f and $0xf,%eax 80102b15: c1 ea 04 shr $0x4,%edx 80102b18: 8d 14 92 lea (%edx,%edx,4),%edx 80102b1b: 8d 04 50 lea (%eax,%edx,2),%eax 80102b1e: 89 45 c0 mov %eax,-0x40(%ebp) CONV(day ); 80102b21: 8b 45 c4 mov -0x3c(%ebp),%eax 80102b24: 89 c2 mov %eax,%edx 80102b26: 83 e0 0f and $0xf,%eax 80102b29: c1 ea 04 shr $0x4,%edx 80102b2c: 8d 14 92 lea (%edx,%edx,4),%edx 80102b2f: 8d 04 50 lea (%eax,%edx,2),%eax 80102b32: 89 45 c4 mov %eax,-0x3c(%ebp) CONV(month ); 80102b35: 8b 45 c8 mov -0x38(%ebp),%eax 80102b38: 89 c2 mov %eax,%edx 80102b3a: 83 e0 0f and $0xf,%eax 80102b3d: c1 ea 04 shr $0x4,%edx 80102b40: 8d 14 92 lea (%edx,%edx,4),%edx 80102b43: 8d 04 50 lea (%eax,%edx,2),%eax 80102b46: 89 45 c8 mov %eax,-0x38(%ebp) CONV(year ); 80102b49: 8b 45 cc mov -0x34(%ebp),%eax 80102b4c: 89 c2 mov %eax,%edx 80102b4e: 83 e0 0f and $0xf,%eax 80102b51: c1 ea 04 shr $0x4,%edx 80102b54: 8d 14 92 lea (%edx,%edx,4),%edx 80102b57: 8d 04 50 lea (%eax,%edx,2),%eax 80102b5a: 89 45 cc mov %eax,-0x34(%ebp) #undef CONV } *r = t1; 80102b5d: 8b 75 08 mov 0x8(%ebp),%esi 80102b60: 8b 45 b8 mov -0x48(%ebp),%eax 80102b63: 89 06 mov %eax,(%esi) 80102b65: 8b 45 bc mov -0x44(%ebp),%eax 80102b68: 89 46 04 mov %eax,0x4(%esi) 80102b6b: 8b 45 c0 mov -0x40(%ebp),%eax 80102b6e: 89 46 08 mov %eax,0x8(%esi) 80102b71: 8b 45 c4 mov -0x3c(%ebp),%eax 80102b74: 89 46 0c mov %eax,0xc(%esi) 80102b77: 8b 45 c8 mov -0x38(%ebp),%eax 80102b7a: 89 46 10 mov %eax,0x10(%esi) 80102b7d: 8b 45 cc mov -0x34(%ebp),%eax 80102b80: 89 46 14 mov %eax,0x14(%esi) r->year += 2000; 80102b83: 81 46 14 d0 07 00 00 addl $0x7d0,0x14(%esi) } 80102b8a: 8d 65 f4 lea -0xc(%ebp),%esp 80102b8d: 5b pop %ebx 80102b8e: 5e pop %esi 80102b8f: 5f pop %edi 80102b90: 5d pop %ebp 80102b91: c3 ret 80102b92: 66 90 xchg %ax,%ax 80102b94: 66 90 xchg %ax,%ax 80102b96: 66 90 xchg %ax,%ax 80102b98: 66 90 xchg %ax,%ax 80102b9a: 66 90 xchg %ax,%ax 80102b9c: 66 90 xchg %ax,%ax 80102b9e: 66 90 xchg %ax,%ax 80102ba0 <install_trans>: static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80102ba0: 8b 0d c8 36 11 80 mov 0x801136c8,%ecx 80102ba6: 85 c9 test %ecx,%ecx 80102ba8: 0f 8e 8a 00 00 00 jle 80102c38 <install_trans+0x98> { 80102bae: 55 push %ebp 80102baf: 89 e5 mov %esp,%ebp 80102bb1: 57 push %edi for (tail = 0; tail < log.lh.n; tail++) { 80102bb2: 31 ff xor %edi,%edi { 80102bb4: 56 push %esi 80102bb5: 53 push %ebx 80102bb6: 83 ec 0c sub $0xc,%esp 80102bb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 80102bc0: a1 b4 36 11 80 mov 0x801136b4,%eax 80102bc5: 83 ec 08 sub $0x8,%esp 80102bc8: 01 f8 add %edi,%eax 80102bca: 83 c0 01 add $0x1,%eax 80102bcd: 50 push %eax 80102bce: ff 35 c4 36 11 80 pushl 0x801136c4 80102bd4: e8 f7 d4 ff ff call 801000d0 <bread> 80102bd9: 89 c6 mov %eax,%esi struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 80102bdb: 58 pop %eax 80102bdc: 5a pop %edx 80102bdd: ff 34 bd cc 36 11 80 pushl -0x7feec934(,%edi,4) 80102be4: ff 35 c4 36 11 80 pushl 0x801136c4 for (tail = 0; tail < log.lh.n; tail++) { 80102bea: 83 c7 01 add $0x1,%edi struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 80102bed: e8 de d4 ff ff call 801000d0 <bread> memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 80102bf2: 83 c4 0c add $0xc,%esp struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 80102bf5: 89 c3 mov %eax,%ebx memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 80102bf7: 8d 46 5c lea 0x5c(%esi),%eax 80102bfa: 68 00 02 00 00 push $0x200 80102bff: 50 push %eax 80102c00: 8d 43 5c lea 0x5c(%ebx),%eax 80102c03: 50 push %eax 80102c04: e8 37 22 00 00 call 80104e40 <memmove> bwrite(dbuf); // write dst to disk 80102c09: 89 1c 24 mov %ebx,(%esp) 80102c0c: e8 9f d5 ff ff call 801001b0 <bwrite> brelse(lbuf); 80102c11: 89 34 24 mov %esi,(%esp) 80102c14: e8 d7 d5 ff ff call 801001f0 <brelse> brelse(dbuf); 80102c19: 89 1c 24 mov %ebx,(%esp) 80102c1c: e8 cf d5 ff ff call 801001f0 <brelse> for (tail = 0; tail < log.lh.n; tail++) { 80102c21: 83 c4 10 add $0x10,%esp 80102c24: 39 3d c8 36 11 80 cmp %edi,0x801136c8 80102c2a: 7f 94 jg 80102bc0 <install_trans+0x20> } } 80102c2c: 8d 65 f4 lea -0xc(%ebp),%esp 80102c2f: 5b pop %ebx 80102c30: 5e pop %esi 80102c31: 5f pop %edi 80102c32: 5d pop %ebp 80102c33: c3 ret 80102c34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102c38: c3 ret 80102c39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102c40 <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) { 80102c40: 55 push %ebp 80102c41: 89 e5 mov %esp,%ebp 80102c43: 53 push %ebx 80102c44: 83 ec 0c sub $0xc,%esp struct buf *buf = bread(log.dev, log.start); 80102c47: ff 35 b4 36 11 80 pushl 0x801136b4 80102c4d: ff 35 c4 36 11 80 pushl 0x801136c4 80102c53: e8 78 d4 ff ff call 801000d0 <bread> struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; for (i = 0; i < log.lh.n; i++) { 80102c58: 83 c4 10 add $0x10,%esp struct buf *buf = bread(log.dev, log.start); 80102c5b: 89 c3 mov %eax,%ebx hb->n = log.lh.n; 80102c5d: a1 c8 36 11 80 mov 0x801136c8,%eax 80102c62: 89 43 5c mov %eax,0x5c(%ebx) for (i = 0; i < log.lh.n; i++) { 80102c65: 85 c0 test %eax,%eax 80102c67: 7e 19 jle 80102c82 <write_head+0x42> 80102c69: 31 d2 xor %edx,%edx 80102c6b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102c6f: 90 nop hb->block[i] = log.lh.block[i]; 80102c70: 8b 0c 95 cc 36 11 80 mov -0x7feec934(,%edx,4),%ecx 80102c77: 89 4c 93 60 mov %ecx,0x60(%ebx,%edx,4) for (i = 0; i < log.lh.n; i++) { 80102c7b: 83 c2 01 add $0x1,%edx 80102c7e: 39 d0 cmp %edx,%eax 80102c80: 75 ee jne 80102c70 <write_head+0x30> } bwrite(buf); 80102c82: 83 ec 0c sub $0xc,%esp 80102c85: 53 push %ebx 80102c86: e8 25 d5 ff ff call 801001b0 <bwrite> brelse(buf); 80102c8b: 89 1c 24 mov %ebx,(%esp) 80102c8e: e8 5d d5 ff ff call 801001f0 <brelse> } 80102c93: 8b 5d fc mov -0x4(%ebp),%ebx 80102c96: 83 c4 10 add $0x10,%esp 80102c99: c9 leave 80102c9a: c3 ret 80102c9b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102c9f: 90 nop 80102ca0 <initlog>: { 80102ca0: f3 0f 1e fb endbr32 80102ca4: 55 push %ebp 80102ca5: 89 e5 mov %esp,%ebp 80102ca7: 53 push %ebx 80102ca8: 83 ec 2c sub $0x2c,%esp 80102cab: 8b 5d 08 mov 0x8(%ebp),%ebx initlock(&log.lock, "log"); 80102cae: 68 a0 7d 10 80 push $0x80107da0 80102cb3: 68 80 36 11 80 push $0x80113680 80102cb8: e8 53 1e 00 00 call 80104b10 <initlock> readsb(dev, &sb); 80102cbd: 58 pop %eax 80102cbe: 8d 45 dc lea -0x24(%ebp),%eax 80102cc1: 5a pop %edx 80102cc2: 50 push %eax 80102cc3: 53 push %ebx 80102cc4: e8 47 e8 ff ff call 80101510 <readsb> log.start = sb.logstart; 80102cc9: 8b 45 ec mov -0x14(%ebp),%eax struct buf *buf = bread(log.dev, log.start); 80102ccc: 59 pop %ecx log.dev = dev; 80102ccd: 89 1d c4 36 11 80 mov %ebx,0x801136c4 log.size = sb.nlog; 80102cd3: 8b 55 e8 mov -0x18(%ebp),%edx log.start = sb.logstart; 80102cd6: a3 b4 36 11 80 mov %eax,0x801136b4 log.size = sb.nlog; 80102cdb: 89 15 b8 36 11 80 mov %edx,0x801136b8 struct buf *buf = bread(log.dev, log.start); 80102ce1: 5a pop %edx 80102ce2: 50 push %eax 80102ce3: 53 push %ebx 80102ce4: e8 e7 d3 ff ff call 801000d0 <bread> for (i = 0; i < log.lh.n; i++) { 80102ce9: 83 c4 10 add $0x10,%esp log.lh.n = lh->n; 80102cec: 8b 48 5c mov 0x5c(%eax),%ecx 80102cef: 89 0d c8 36 11 80 mov %ecx,0x801136c8 for (i = 0; i < log.lh.n; i++) { 80102cf5: 85 c9 test %ecx,%ecx 80102cf7: 7e 19 jle 80102d12 <initlog+0x72> 80102cf9: 31 d2 xor %edx,%edx 80102cfb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102cff: 90 nop log.lh.block[i] = lh->block[i]; 80102d00: 8b 5c 90 60 mov 0x60(%eax,%edx,4),%ebx 80102d04: 89 1c 95 cc 36 11 80 mov %ebx,-0x7feec934(,%edx,4) for (i = 0; i < log.lh.n; i++) { 80102d0b: 83 c2 01 add $0x1,%edx 80102d0e: 39 d1 cmp %edx,%ecx 80102d10: 75 ee jne 80102d00 <initlog+0x60> brelse(buf); 80102d12: 83 ec 0c sub $0xc,%esp 80102d15: 50 push %eax 80102d16: e8 d5 d4 ff ff call 801001f0 <brelse> static void recover_from_log(void) { read_head(); install_trans(); // if committed, copy from log to disk 80102d1b: e8 80 fe ff ff call 80102ba0 <install_trans> log.lh.n = 0; 80102d20: c7 05 c8 36 11 80 00 movl $0x0,0x801136c8 80102d27: 00 00 00 write_head(); // clear the log 80102d2a: e8 11 ff ff ff call 80102c40 <write_head> } 80102d2f: 8b 5d fc mov -0x4(%ebp),%ebx 80102d32: 83 c4 10 add $0x10,%esp 80102d35: c9 leave 80102d36: c3 ret 80102d37: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102d3e: 66 90 xchg %ax,%ax 80102d40 <begin_op>: } // called at the start of each FS system call. void begin_op(void) { 80102d40: f3 0f 1e fb endbr32 80102d44: 55 push %ebp 80102d45: 89 e5 mov %esp,%ebp 80102d47: 83 ec 14 sub $0x14,%esp acquire(&log.lock); 80102d4a: 68 80 36 11 80 push $0x80113680 80102d4f: e8 3c 1f 00 00 call 80104c90 <acquire> 80102d54: 83 c4 10 add $0x10,%esp 80102d57: eb 1c jmp 80102d75 <begin_op+0x35> 80102d59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi while(1){ if(log.committing){ sleep(&log, &log.lock); 80102d60: 83 ec 08 sub $0x8,%esp 80102d63: 68 80 36 11 80 push $0x80113680 80102d68: 68 80 36 11 80 push $0x80113680 80102d6d: e8 5e 14 00 00 call 801041d0 <sleep> 80102d72: 83 c4 10 add $0x10,%esp if(log.committing){ 80102d75: a1 c0 36 11 80 mov 0x801136c0,%eax 80102d7a: 85 c0 test %eax,%eax 80102d7c: 75 e2 jne 80102d60 <begin_op+0x20> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80102d7e: a1 bc 36 11 80 mov 0x801136bc,%eax 80102d83: 8b 15 c8 36 11 80 mov 0x801136c8,%edx 80102d89: 83 c0 01 add $0x1,%eax 80102d8c: 8d 0c 80 lea (%eax,%eax,4),%ecx 80102d8f: 8d 14 4a lea (%edx,%ecx,2),%edx 80102d92: 83 fa 1e cmp $0x1e,%edx 80102d95: 7f c9 jg 80102d60 <begin_op+0x20> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); } else { log.outstanding += 1; release(&log.lock); 80102d97: 83 ec 0c sub $0xc,%esp log.outstanding += 1; 80102d9a: a3 bc 36 11 80 mov %eax,0x801136bc release(&log.lock); 80102d9f: 68 80 36 11 80 push $0x80113680 80102da4: e8 a7 1f 00 00 call 80104d50 <release> break; } } } 80102da9: 83 c4 10 add $0x10,%esp 80102dac: c9 leave 80102dad: c3 ret 80102dae: 66 90 xchg %ax,%ax 80102db0 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 80102db0: f3 0f 1e fb endbr32 80102db4: 55 push %ebp 80102db5: 89 e5 mov %esp,%ebp 80102db7: 57 push %edi 80102db8: 56 push %esi 80102db9: 53 push %ebx 80102dba: 83 ec 18 sub $0x18,%esp int do_commit = 0; acquire(&log.lock); 80102dbd: 68 80 36 11 80 push $0x80113680 80102dc2: e8 c9 1e 00 00 call 80104c90 <acquire> log.outstanding -= 1; 80102dc7: a1 bc 36 11 80 mov 0x801136bc,%eax if(log.committing) 80102dcc: 8b 35 c0 36 11 80 mov 0x801136c0,%esi 80102dd2: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 80102dd5: 8d 58 ff lea -0x1(%eax),%ebx 80102dd8: 89 1d bc 36 11 80 mov %ebx,0x801136bc if(log.committing) 80102dde: 85 f6 test %esi,%esi 80102de0: 0f 85 1e 01 00 00 jne 80102f04 <end_op+0x154> panic("log.committing"); if(log.outstanding == 0){ 80102de6: 85 db test %ebx,%ebx 80102de8: 0f 85 f2 00 00 00 jne 80102ee0 <end_op+0x130> do_commit = 1; log.committing = 1; 80102dee: c7 05 c0 36 11 80 01 movl $0x1,0x801136c0 80102df5: 00 00 00 // begin_op() may be waiting for log space, // and decrementing log.outstanding has decreased // the amount of reserved space. wakeup(&log); } release(&log.lock); 80102df8: 83 ec 0c sub $0xc,%esp 80102dfb: 68 80 36 11 80 push $0x80113680 80102e00: e8 4b 1f 00 00 call 80104d50 <release> } static void commit() { if (log.lh.n > 0) { 80102e05: 8b 0d c8 36 11 80 mov 0x801136c8,%ecx 80102e0b: 83 c4 10 add $0x10,%esp 80102e0e: 85 c9 test %ecx,%ecx 80102e10: 7f 3e jg 80102e50 <end_op+0xa0> acquire(&log.lock); 80102e12: 83 ec 0c sub $0xc,%esp 80102e15: 68 80 36 11 80 push $0x80113680 80102e1a: e8 71 1e 00 00 call 80104c90 <acquire> wakeup(&log); 80102e1f: c7 04 24 80 36 11 80 movl $0x80113680,(%esp) log.committing = 0; 80102e26: c7 05 c0 36 11 80 00 movl $0x0,0x801136c0 80102e2d: 00 00 00 wakeup(&log); 80102e30: e8 8b 16 00 00 call 801044c0 <wakeup> release(&log.lock); 80102e35: c7 04 24 80 36 11 80 movl $0x80113680,(%esp) 80102e3c: e8 0f 1f 00 00 call 80104d50 <release> 80102e41: 83 c4 10 add $0x10,%esp } 80102e44: 8d 65 f4 lea -0xc(%ebp),%esp 80102e47: 5b pop %ebx 80102e48: 5e pop %esi 80102e49: 5f pop %edi 80102e4a: 5d pop %ebp 80102e4b: c3 ret 80102e4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi struct buf *to = bread(log.dev, log.start+tail+1); // log block 80102e50: a1 b4 36 11 80 mov 0x801136b4,%eax 80102e55: 83 ec 08 sub $0x8,%esp 80102e58: 01 d8 add %ebx,%eax 80102e5a: 83 c0 01 add $0x1,%eax 80102e5d: 50 push %eax 80102e5e: ff 35 c4 36 11 80 pushl 0x801136c4 80102e64: e8 67 d2 ff ff call 801000d0 <bread> 80102e69: 89 c6 mov %eax,%esi struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102e6b: 58 pop %eax 80102e6c: 5a pop %edx 80102e6d: ff 34 9d cc 36 11 80 pushl -0x7feec934(,%ebx,4) 80102e74: ff 35 c4 36 11 80 pushl 0x801136c4 for (tail = 0; tail < log.lh.n; tail++) { 80102e7a: 83 c3 01 add $0x1,%ebx struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102e7d: e8 4e d2 ff ff call 801000d0 <bread> memmove(to->data, from->data, BSIZE); 80102e82: 83 c4 0c add $0xc,%esp struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102e85: 89 c7 mov %eax,%edi memmove(to->data, from->data, BSIZE); 80102e87: 8d 40 5c lea 0x5c(%eax),%eax 80102e8a: 68 00 02 00 00 push $0x200 80102e8f: 50 push %eax 80102e90: 8d 46 5c lea 0x5c(%esi),%eax 80102e93: 50 push %eax 80102e94: e8 a7 1f 00 00 call 80104e40 <memmove> bwrite(to); // write the log 80102e99: 89 34 24 mov %esi,(%esp) 80102e9c: e8 0f d3 ff ff call 801001b0 <bwrite> brelse(from); 80102ea1: 89 3c 24 mov %edi,(%esp) 80102ea4: e8 47 d3 ff ff call 801001f0 <brelse> brelse(to); 80102ea9: 89 34 24 mov %esi,(%esp) 80102eac: e8 3f d3 ff ff call 801001f0 <brelse> for (tail = 0; tail < log.lh.n; tail++) { 80102eb1: 83 c4 10 add $0x10,%esp 80102eb4: 3b 1d c8 36 11 80 cmp 0x801136c8,%ebx 80102eba: 7c 94 jl 80102e50 <end_op+0xa0> write_log(); // Write modified blocks from cache to log write_head(); // Write header to disk -- the real commit 80102ebc: e8 7f fd ff ff call 80102c40 <write_head> install_trans(); // Now install writes to home locations 80102ec1: e8 da fc ff ff call 80102ba0 <install_trans> log.lh.n = 0; 80102ec6: c7 05 c8 36 11 80 00 movl $0x0,0x801136c8 80102ecd: 00 00 00 write_head(); // Erase the transaction from the log 80102ed0: e8 6b fd ff ff call 80102c40 <write_head> 80102ed5: e9 38 ff ff ff jmp 80102e12 <end_op+0x62> 80102eda: 8d b6 00 00 00 00 lea 0x0(%esi),%esi wakeup(&log); 80102ee0: 83 ec 0c sub $0xc,%esp 80102ee3: 68 80 36 11 80 push $0x80113680 80102ee8: e8 d3 15 00 00 call 801044c0 <wakeup> release(&log.lock); 80102eed: c7 04 24 80 36 11 80 movl $0x80113680,(%esp) 80102ef4: e8 57 1e 00 00 call 80104d50 <release> 80102ef9: 83 c4 10 add $0x10,%esp } 80102efc: 8d 65 f4 lea -0xc(%ebp),%esp 80102eff: 5b pop %ebx 80102f00: 5e pop %esi 80102f01: 5f pop %edi 80102f02: 5d pop %ebp 80102f03: c3 ret panic("log.committing"); 80102f04: 83 ec 0c sub $0xc,%esp 80102f07: 68 a4 7d 10 80 push $0x80107da4 80102f0c: e8 7f d4 ff ff call 80100390 <panic> 80102f11: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102f18: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102f1f: 90 nop 80102f20 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80102f20: f3 0f 1e fb endbr32 80102f24: 55 push %ebp 80102f25: 89 e5 mov %esp,%ebp 80102f27: 53 push %ebx 80102f28: 83 ec 04 sub $0x4,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102f2b: 8b 15 c8 36 11 80 mov 0x801136c8,%edx { 80102f31: 8b 5d 08 mov 0x8(%ebp),%ebx if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102f34: 83 fa 1d cmp $0x1d,%edx 80102f37: 0f 8f 91 00 00 00 jg 80102fce <log_write+0xae> 80102f3d: a1 b8 36 11 80 mov 0x801136b8,%eax 80102f42: 83 e8 01 sub $0x1,%eax 80102f45: 39 c2 cmp %eax,%edx 80102f47: 0f 8d 81 00 00 00 jge 80102fce <log_write+0xae> panic("too big a transaction"); if (log.outstanding < 1) 80102f4d: a1 bc 36 11 80 mov 0x801136bc,%eax 80102f52: 85 c0 test %eax,%eax 80102f54: 0f 8e 81 00 00 00 jle 80102fdb <log_write+0xbb> panic("log_write outside of trans"); acquire(&log.lock); 80102f5a: 83 ec 0c sub $0xc,%esp 80102f5d: 68 80 36 11 80 push $0x80113680 80102f62: e8 29 1d 00 00 call 80104c90 <acquire> for (i = 0; i < log.lh.n; i++) { 80102f67: 8b 15 c8 36 11 80 mov 0x801136c8,%edx 80102f6d: 83 c4 10 add $0x10,%esp 80102f70: 85 d2 test %edx,%edx 80102f72: 7e 4e jle 80102fc2 <log_write+0xa2> if (log.lh.block[i] == b->blockno) // log absorbtion 80102f74: 8b 4b 08 mov 0x8(%ebx),%ecx for (i = 0; i < log.lh.n; i++) { 80102f77: 31 c0 xor %eax,%eax 80102f79: eb 0c jmp 80102f87 <log_write+0x67> 80102f7b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102f7f: 90 nop 80102f80: 83 c0 01 add $0x1,%eax 80102f83: 39 c2 cmp %eax,%edx 80102f85: 74 29 je 80102fb0 <log_write+0x90> if (log.lh.block[i] == b->blockno) // log absorbtion 80102f87: 39 0c 85 cc 36 11 80 cmp %ecx,-0x7feec934(,%eax,4) 80102f8e: 75 f0 jne 80102f80 <log_write+0x60> break; } log.lh.block[i] = b->blockno; 80102f90: 89 0c 85 cc 36 11 80 mov %ecx,-0x7feec934(,%eax,4) if (i == log.lh.n) log.lh.n++; b->flags |= B_DIRTY; // prevent eviction 80102f97: 83 0b 04 orl $0x4,(%ebx) release(&log.lock); } 80102f9a: 8b 5d fc mov -0x4(%ebp),%ebx release(&log.lock); 80102f9d: c7 45 08 80 36 11 80 movl $0x80113680,0x8(%ebp) } 80102fa4: c9 leave release(&log.lock); 80102fa5: e9 a6 1d 00 00 jmp 80104d50 <release> 80102faa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi log.lh.block[i] = b->blockno; 80102fb0: 89 0c 95 cc 36 11 80 mov %ecx,-0x7feec934(,%edx,4) log.lh.n++; 80102fb7: 83 c2 01 add $0x1,%edx 80102fba: 89 15 c8 36 11 80 mov %edx,0x801136c8 80102fc0: eb d5 jmp 80102f97 <log_write+0x77> log.lh.block[i] = b->blockno; 80102fc2: 8b 43 08 mov 0x8(%ebx),%eax 80102fc5: a3 cc 36 11 80 mov %eax,0x801136cc if (i == log.lh.n) 80102fca: 75 cb jne 80102f97 <log_write+0x77> 80102fcc: eb e9 jmp 80102fb7 <log_write+0x97> panic("too big a transaction"); 80102fce: 83 ec 0c sub $0xc,%esp 80102fd1: 68 b3 7d 10 80 push $0x80107db3 80102fd6: e8 b5 d3 ff ff call 80100390 <panic> panic("log_write outside of trans"); 80102fdb: 83 ec 0c sub $0xc,%esp 80102fde: 68 c9 7d 10 80 push $0x80107dc9 80102fe3: e8 a8 d3 ff ff call 80100390 <panic> 80102fe8: 66 90 xchg %ax,%ax 80102fea: 66 90 xchg %ax,%ax 80102fec: 66 90 xchg %ax,%ax 80102fee: 66 90 xchg %ax,%ax 80102ff0 <mpmain>: } // Common CPU setup code. static void mpmain(void) { 80102ff0: 55 push %ebp 80102ff1: 89 e5 mov %esp,%ebp 80102ff3: 53 push %ebx 80102ff4: 83 ec 04 sub $0x4,%esp cprintf("cpu%d: starting %d\n", cpuid(), cpuid()); 80102ff7: e8 e4 09 00 00 call 801039e0 <cpuid> 80102ffc: 89 c3 mov %eax,%ebx 80102ffe: e8 dd 09 00 00 call 801039e0 <cpuid> 80103003: 83 ec 04 sub $0x4,%esp 80103006: 53 push %ebx 80103007: 50 push %eax 80103008: 68 e4 7d 10 80 push $0x80107de4 8010300d: e8 9e d6 ff ff call 801006b0 <cprintf> idtinit(); // load idt register 80103012: e8 19 31 00 00 call 80106130 <idtinit> xchg(&(mycpu()->started), 1); // tell startothers() we're up 80103017: e8 54 09 00 00 call 80103970 <mycpu> 8010301c: 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" : 8010301e: b8 01 00 00 00 mov $0x1,%eax 80103023: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx) scheduler(); // start running processes 8010302a: e8 41 0d 00 00 call 80103d70 <scheduler> 8010302f: 90 nop 80103030 <mpenter>: { 80103030: f3 0f 1e fb endbr32 80103034: 55 push %ebp 80103035: 89 e5 mov %esp,%ebp 80103037: 83 ec 08 sub $0x8,%esp switchkvm(); 8010303a: e8 d1 41 00 00 call 80107210 <switchkvm> seginit(); 8010303f: e8 3c 41 00 00 call 80107180 <seginit> lapicinit(); 80103044: e8 67 f7 ff ff call 801027b0 <lapicinit> mpmain(); 80103049: e8 a2 ff ff ff call 80102ff0 <mpmain> 8010304e: 66 90 xchg %ax,%ax 80103050 <main>: { 80103050: f3 0f 1e fb endbr32 80103054: 8d 4c 24 04 lea 0x4(%esp),%ecx 80103058: 83 e4 f0 and $0xfffffff0,%esp 8010305b: ff 71 fc pushl -0x4(%ecx) 8010305e: 55 push %ebp 8010305f: 89 e5 mov %esp,%ebp 80103061: 53 push %ebx 80103062: 51 push %ecx kinit1(end, P2V(4*1024*1024)); // phys page allocator 80103063: 83 ec 08 sub $0x8,%esp 80103066: 68 00 00 40 80 push $0x80400000 8010306b: 68 a8 72 11 80 push $0x801172a8 80103070: e8 fb f4 ff ff call 80102570 <kinit1> kvmalloc(); // kernel page table 80103075: e8 76 46 00 00 call 801076f0 <kvmalloc> mpinit(); // detect other processors 8010307a: e8 81 01 00 00 call 80103200 <mpinit> lapicinit(); // interrupt controller 8010307f: e8 2c f7 ff ff call 801027b0 <lapicinit> seginit(); // segment descriptors 80103084: e8 f7 40 00 00 call 80107180 <seginit> picinit(); // disable pic 80103089: e8 52 03 00 00 call 801033e0 <picinit> ioapicinit(); // another interrupt controller 8010308e: e8 fd f2 ff ff call 80102390 <ioapicinit> consoleinit(); // console hardware 80103093: e8 98 d9 ff ff call 80100a30 <consoleinit> uartinit(); // serial port 80103098: e8 a3 33 00 00 call 80106440 <uartinit> pinit(); // process table 8010309d: e8 ae 08 00 00 call 80103950 <pinit> tvinit(); // trap vectors 801030a2: e8 09 30 00 00 call 801060b0 <tvinit> binit(); // buffer cache 801030a7: e8 94 cf ff ff call 80100040 <binit> fileinit(); // file table 801030ac: e8 3f dd ff ff call 80100df0 <fileinit> ideinit(); // disk 801030b1: e8 aa f0 ff ff call 80102160 <ideinit> // Write entry code to unused memory at 0x7000. // 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); 801030b6: 83 c4 0c add $0xc,%esp 801030b9: 68 8a 00 00 00 push $0x8a 801030be: 68 8c b4 10 80 push $0x8010b48c 801030c3: 68 00 70 00 80 push $0x80007000 801030c8: e8 73 1d 00 00 call 80104e40 <memmove> for(c = cpus; c < cpus+ncpu; c++){ 801030cd: 83 c4 10 add $0x10,%esp 801030d0: 69 05 00 3d 11 80 b0 imul $0xb0,0x80113d00,%eax 801030d7: 00 00 00 801030da: 05 80 37 11 80 add $0x80113780,%eax 801030df: 3d 80 37 11 80 cmp $0x80113780,%eax 801030e4: 76 7a jbe 80103160 <main+0x110> 801030e6: bb 80 37 11 80 mov $0x80113780,%ebx 801030eb: eb 1c jmp 80103109 <main+0xb9> 801030ed: 8d 76 00 lea 0x0(%esi),%esi 801030f0: 69 05 00 3d 11 80 b0 imul $0xb0,0x80113d00,%eax 801030f7: 00 00 00 801030fa: 81 c3 b0 00 00 00 add $0xb0,%ebx 80103100: 05 80 37 11 80 add $0x80113780,%eax 80103105: 39 c3 cmp %eax,%ebx 80103107: 73 57 jae 80103160 <main+0x110> if(c == mycpu()) // We've started already. 80103109: e8 62 08 00 00 call 80103970 <mycpu> 8010310e: 39 c3 cmp %eax,%ebx 80103110: 74 de je 801030f0 <main+0xa0> 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(); 80103112: e8 29 f5 ff ff call 80102640 <kalloc> *(void**)(code-4) = stack + KSTACKSIZE; *(void(**)(void))(code-8) = mpenter; *(int**)(code-12) = (void *) V2P(entrypgdir); lapicstartap(c->apicid, V2P(code)); 80103117: 83 ec 08 sub $0x8,%esp *(void(**)(void))(code-8) = mpenter; 8010311a: c7 05 f8 6f 00 80 30 movl $0x80103030,0x80006ff8 80103121: 30 10 80 *(int**)(code-12) = (void *) V2P(entrypgdir); 80103124: c7 05 f4 6f 00 80 00 movl $0x10a000,0x80006ff4 8010312b: a0 10 00 *(void**)(code-4) = stack + KSTACKSIZE; 8010312e: 05 00 10 00 00 add $0x1000,%eax 80103133: a3 fc 6f 00 80 mov %eax,0x80006ffc lapicstartap(c->apicid, V2P(code)); 80103138: 0f b6 03 movzbl (%ebx),%eax 8010313b: 68 00 70 00 00 push $0x7000 80103140: 50 push %eax 80103141: e8 ba f7 ff ff call 80102900 <lapicstartap> // wait for cpu to finish mpmain() while(c->started == 0) 80103146: 83 c4 10 add $0x10,%esp 80103149: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103150: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 80103156: 85 c0 test %eax,%eax 80103158: 74 f6 je 80103150 <main+0x100> 8010315a: eb 94 jmp 801030f0 <main+0xa0> 8010315c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80103160: 83 ec 08 sub $0x8,%esp 80103163: 68 00 00 00 8e push $0x8e000000 80103168: 68 00 00 40 80 push $0x80400000 8010316d: e8 6e f4 ff ff call 801025e0 <kinit2> userinit(); // first user process 80103172: e8 b9 08 00 00 call 80103a30 <userinit> mpmain(); // finish this processor's setup 80103177: e8 74 fe ff ff call 80102ff0 <mpmain> 8010317c: 66 90 xchg %ax,%ax 8010317e: 66 90 xchg %ax,%ax 80103180 <mpsearch1>: } // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80103180: 55 push %ebp 80103181: 89 e5 mov %esp,%ebp 80103183: 57 push %edi 80103184: 56 push %esi uchar *e, *p, *addr; addr = P2V(a); 80103185: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi { 8010318b: 53 push %ebx e = addr+len; 8010318c: 8d 1c 16 lea (%esi,%edx,1),%ebx { 8010318f: 83 ec 0c sub $0xc,%esp for(p = addr; p < e; p += sizeof(struct mp)) 80103192: 39 de cmp %ebx,%esi 80103194: 72 10 jb 801031a6 <mpsearch1+0x26> 80103196: eb 50 jmp 801031e8 <mpsearch1+0x68> 80103198: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010319f: 90 nop 801031a0: 89 fe mov %edi,%esi 801031a2: 39 fb cmp %edi,%ebx 801031a4: 76 42 jbe 801031e8 <mpsearch1+0x68> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 801031a6: 83 ec 04 sub $0x4,%esp 801031a9: 8d 7e 10 lea 0x10(%esi),%edi 801031ac: 6a 04 push $0x4 801031ae: 68 f8 7d 10 80 push $0x80107df8 801031b3: 56 push %esi 801031b4: e8 37 1c 00 00 call 80104df0 <memcmp> 801031b9: 83 c4 10 add $0x10,%esp 801031bc: 85 c0 test %eax,%eax 801031be: 75 e0 jne 801031a0 <mpsearch1+0x20> 801031c0: 89 f2 mov %esi,%edx 801031c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi sum += addr[i]; 801031c8: 0f b6 0a movzbl (%edx),%ecx 801031cb: 83 c2 01 add $0x1,%edx 801031ce: 01 c8 add %ecx,%eax for(i=0; i<len; i++) 801031d0: 39 fa cmp %edi,%edx 801031d2: 75 f4 jne 801031c8 <mpsearch1+0x48> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 801031d4: 84 c0 test %al,%al 801031d6: 75 c8 jne 801031a0 <mpsearch1+0x20> return (struct mp*)p; return 0; } 801031d8: 8d 65 f4 lea -0xc(%ebp),%esp 801031db: 89 f0 mov %esi,%eax 801031dd: 5b pop %ebx 801031de: 5e pop %esi 801031df: 5f pop %edi 801031e0: 5d pop %ebp 801031e1: c3 ret 801031e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801031e8: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 801031eb: 31 f6 xor %esi,%esi } 801031ed: 5b pop %ebx 801031ee: 89 f0 mov %esi,%eax 801031f0: 5e pop %esi 801031f1: 5f pop %edi 801031f2: 5d pop %ebp 801031f3: c3 ret 801031f4: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801031fb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801031ff: 90 nop 80103200 <mpinit>: return conf; } void mpinit(void) { 80103200: f3 0f 1e fb endbr32 80103204: 55 push %ebp 80103205: 89 e5 mov %esp,%ebp 80103207: 57 push %edi 80103208: 56 push %esi 80103209: 53 push %ebx 8010320a: 83 ec 1c sub $0x1c,%esp if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 8010320d: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax 80103214: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx 8010321b: c1 e0 08 shl $0x8,%eax 8010321e: 09 d0 or %edx,%eax 80103220: c1 e0 04 shl $0x4,%eax 80103223: 75 1b jne 80103240 <mpinit+0x40> p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103225: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax 8010322c: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx 80103233: c1 e0 08 shl $0x8,%eax 80103236: 09 d0 or %edx,%eax 80103238: c1 e0 0a shl $0xa,%eax if((mp = mpsearch1(p-1024, 1024))) 8010323b: 2d 00 04 00 00 sub $0x400,%eax if((mp = mpsearch1(p, 1024))) 80103240: ba 00 04 00 00 mov $0x400,%edx 80103245: e8 36 ff ff ff call 80103180 <mpsearch1> 8010324a: 89 c6 mov %eax,%esi 8010324c: 85 c0 test %eax,%eax 8010324e: 0f 84 4c 01 00 00 je 801033a0 <mpinit+0x1a0> if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103254: 8b 5e 04 mov 0x4(%esi),%ebx 80103257: 85 db test %ebx,%ebx 80103259: 0f 84 61 01 00 00 je 801033c0 <mpinit+0x1c0> if(memcmp(conf, "PCMP", 4) != 0) 8010325f: 83 ec 04 sub $0x4,%esp conf = (struct mpconf*) P2V((uint) mp->physaddr); 80103262: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax if(memcmp(conf, "PCMP", 4) != 0) 80103268: 6a 04 push $0x4 8010326a: 68 fd 7d 10 80 push $0x80107dfd 8010326f: 50 push %eax conf = (struct mpconf*) P2V((uint) mp->physaddr); 80103270: 89 45 e4 mov %eax,-0x1c(%ebp) if(memcmp(conf, "PCMP", 4) != 0) 80103273: e8 78 1b 00 00 call 80104df0 <memcmp> 80103278: 83 c4 10 add $0x10,%esp 8010327b: 85 c0 test %eax,%eax 8010327d: 0f 85 3d 01 00 00 jne 801033c0 <mpinit+0x1c0> if(conf->version != 1 && conf->version != 4) 80103283: 0f b6 83 06 00 00 80 movzbl -0x7ffffffa(%ebx),%eax 8010328a: 3c 01 cmp $0x1,%al 8010328c: 74 08 je 80103296 <mpinit+0x96> 8010328e: 3c 04 cmp $0x4,%al 80103290: 0f 85 2a 01 00 00 jne 801033c0 <mpinit+0x1c0> if(sum((uchar*)conf, conf->length) != 0) 80103296: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx for(i=0; i<len; i++) 8010329d: 66 85 d2 test %dx,%dx 801032a0: 74 26 je 801032c8 <mpinit+0xc8> 801032a2: 8d 3c 1a lea (%edx,%ebx,1),%edi 801032a5: 89 d8 mov %ebx,%eax sum = 0; 801032a7: 31 d2 xor %edx,%edx 801032a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi sum += addr[i]; 801032b0: 0f b6 88 00 00 00 80 movzbl -0x80000000(%eax),%ecx 801032b7: 83 c0 01 add $0x1,%eax 801032ba: 01 ca add %ecx,%edx for(i=0; i<len; i++) 801032bc: 39 f8 cmp %edi,%eax 801032be: 75 f0 jne 801032b0 <mpinit+0xb0> if(sum((uchar*)conf, conf->length) != 0) 801032c0: 84 d2 test %dl,%dl 801032c2: 0f 85 f8 00 00 00 jne 801033c0 <mpinit+0x1c0> struct mpioapic *ioapic; if((conf = mpconfig(&mp)) == 0) panic("Expect to run on an SMP"); ismp = 1; lapic = (uint*)conf->lapicaddr; 801032c8: 8b 83 24 00 00 80 mov -0x7fffffdc(%ebx),%eax 801032ce: a3 7c 36 11 80 mov %eax,0x8011367c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 801032d3: 8d 83 2c 00 00 80 lea -0x7fffffd4(%ebx),%eax 801032d9: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx ismp = 1; 801032e0: bb 01 00 00 00 mov $0x1,%ebx for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 801032e5: 03 55 e4 add -0x1c(%ebp),%edx 801032e8: 89 5d e4 mov %ebx,-0x1c(%ebp) 801032eb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801032ef: 90 nop 801032f0: 39 c2 cmp %eax,%edx 801032f2: 76 15 jbe 80103309 <mpinit+0x109> switch(*p){ 801032f4: 0f b6 08 movzbl (%eax),%ecx 801032f7: 80 f9 02 cmp $0x2,%cl 801032fa: 74 5c je 80103358 <mpinit+0x158> 801032fc: 77 42 ja 80103340 <mpinit+0x140> 801032fe: 84 c9 test %cl,%cl 80103300: 74 6e je 80103370 <mpinit+0x170> p += sizeof(struct mpioapic); continue; case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103302: 83 c0 08 add $0x8,%eax for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103305: 39 c2 cmp %eax,%edx 80103307: 77 eb ja 801032f4 <mpinit+0xf4> 80103309: 8b 5d e4 mov -0x1c(%ebp),%ebx default: ismp = 0; break; } } if(!ismp) 8010330c: 85 db test %ebx,%ebx 8010330e: 0f 84 b9 00 00 00 je 801033cd <mpinit+0x1cd> panic("Didn't find a suitable machine"); if(mp->imcrp){ 80103314: 80 7e 0c 00 cmpb $0x0,0xc(%esi) 80103318: 74 15 je 8010332f <mpinit+0x12f> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010331a: b8 70 00 00 00 mov $0x70,%eax 8010331f: ba 22 00 00 00 mov $0x22,%edx 80103324: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103325: ba 23 00 00 00 mov $0x23,%edx 8010332a: 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. 8010332b: 83 c8 01 or $0x1,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010332e: ee out %al,(%dx) } } 8010332f: 8d 65 f4 lea -0xc(%ebp),%esp 80103332: 5b pop %ebx 80103333: 5e pop %esi 80103334: 5f pop %edi 80103335: 5d pop %ebp 80103336: c3 ret 80103337: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010333e: 66 90 xchg %ax,%ax switch(*p){ 80103340: 83 e9 03 sub $0x3,%ecx 80103343: 80 f9 01 cmp $0x1,%cl 80103346: 76 ba jbe 80103302 <mpinit+0x102> 80103348: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 8010334f: eb 9f jmp 801032f0 <mpinit+0xf0> 80103351: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ioapicid = ioapic->apicno; 80103358: 0f b6 48 01 movzbl 0x1(%eax),%ecx p += sizeof(struct mpioapic); 8010335c: 83 c0 08 add $0x8,%eax ioapicid = ioapic->apicno; 8010335f: 88 0d 60 37 11 80 mov %cl,0x80113760 continue; 80103365: eb 89 jmp 801032f0 <mpinit+0xf0> 80103367: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010336e: 66 90 xchg %ax,%ax if(ncpu < NCPU) { 80103370: 8b 0d 00 3d 11 80 mov 0x80113d00,%ecx 80103376: 83 f9 07 cmp $0x7,%ecx 80103379: 7f 19 jg 80103394 <mpinit+0x194> cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 8010337b: 69 f9 b0 00 00 00 imul $0xb0,%ecx,%edi 80103381: 0f b6 58 01 movzbl 0x1(%eax),%ebx ncpu++; 80103385: 83 c1 01 add $0x1,%ecx 80103388: 89 0d 00 3d 11 80 mov %ecx,0x80113d00 cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 8010338e: 88 9f 80 37 11 80 mov %bl,-0x7feec880(%edi) p += sizeof(struct mpproc); 80103394: 83 c0 14 add $0x14,%eax continue; 80103397: e9 54 ff ff ff jmp 801032f0 <mpinit+0xf0> 8010339c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return mpsearch1(0xF0000, 0x10000); 801033a0: ba 00 00 01 00 mov $0x10000,%edx 801033a5: b8 00 00 0f 00 mov $0xf0000,%eax 801033aa: e8 d1 fd ff ff call 80103180 <mpsearch1> 801033af: 89 c6 mov %eax,%esi if((mp = mpsearch()) == 0 || mp->physaddr == 0) 801033b1: 85 c0 test %eax,%eax 801033b3: 0f 85 9b fe ff ff jne 80103254 <mpinit+0x54> 801033b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi panic("Expect to run on an SMP"); 801033c0: 83 ec 0c sub $0xc,%esp 801033c3: 68 02 7e 10 80 push $0x80107e02 801033c8: e8 c3 cf ff ff call 80100390 <panic> panic("Didn't find a suitable machine"); 801033cd: 83 ec 0c sub $0xc,%esp 801033d0: 68 1c 7e 10 80 push $0x80107e1c 801033d5: e8 b6 cf ff ff call 80100390 <panic> 801033da: 66 90 xchg %ax,%ax 801033dc: 66 90 xchg %ax,%ax 801033de: 66 90 xchg %ax,%ax 801033e0 <picinit>: #define IO_PIC2 0xA0 // Slave (IRQs 8-15) // Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware. void picinit(void) { 801033e0: f3 0f 1e fb endbr32 801033e4: b8 ff ff ff ff mov $0xffffffff,%eax 801033e9: ba 21 00 00 00 mov $0x21,%edx 801033ee: ee out %al,(%dx) 801033ef: ba a1 00 00 00 mov $0xa1,%edx 801033f4: ee out %al,(%dx) // mask all interrupts outb(IO_PIC1+1, 0xFF); outb(IO_PIC2+1, 0xFF); } 801033f5: c3 ret 801033f6: 66 90 xchg %ax,%ax 801033f8: 66 90 xchg %ax,%ax 801033fa: 66 90 xchg %ax,%ax 801033fc: 66 90 xchg %ax,%ax 801033fe: 66 90 xchg %ax,%ax 80103400 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80103400: f3 0f 1e fb endbr32 80103404: 55 push %ebp 80103405: 89 e5 mov %esp,%ebp 80103407: 57 push %edi 80103408: 56 push %esi 80103409: 53 push %ebx 8010340a: 83 ec 0c sub $0xc,%esp 8010340d: 8b 5d 08 mov 0x8(%ebp),%ebx 80103410: 8b 75 0c mov 0xc(%ebp),%esi struct pipe *p; p = 0; *f0 = *f1 = 0; 80103413: c7 06 00 00 00 00 movl $0x0,(%esi) 80103419: c7 03 00 00 00 00 movl $0x0,(%ebx) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 8010341f: e8 ec d9 ff ff call 80100e10 <filealloc> 80103424: 89 03 mov %eax,(%ebx) 80103426: 85 c0 test %eax,%eax 80103428: 0f 84 ac 00 00 00 je 801034da <pipealloc+0xda> 8010342e: e8 dd d9 ff ff call 80100e10 <filealloc> 80103433: 89 06 mov %eax,(%esi) 80103435: 85 c0 test %eax,%eax 80103437: 0f 84 8b 00 00 00 je 801034c8 <pipealloc+0xc8> goto bad; if((p = (struct pipe*)kalloc()) == 0) 8010343d: e8 fe f1 ff ff call 80102640 <kalloc> 80103442: 89 c7 mov %eax,%edi 80103444: 85 c0 test %eax,%eax 80103446: 0f 84 b4 00 00 00 je 80103500 <pipealloc+0x100> goto bad; p->readopen = 1; 8010344c: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 80103453: 00 00 00 p->writeopen = 1; p->nwrite = 0; p->nread = 0; initlock(&p->lock, "pipe"); 80103456: 83 ec 08 sub $0x8,%esp p->writeopen = 1; 80103459: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 80103460: 00 00 00 p->nwrite = 0; 80103463: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 8010346a: 00 00 00 p->nread = 0; 8010346d: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 80103474: 00 00 00 initlock(&p->lock, "pipe"); 80103477: 68 3b 7e 10 80 push $0x80107e3b 8010347c: 50 push %eax 8010347d: e8 8e 16 00 00 call 80104b10 <initlock> (*f0)->type = FD_PIPE; 80103482: 8b 03 mov (%ebx),%eax (*f0)->pipe = p; (*f1)->type = FD_PIPE; (*f1)->readable = 0; (*f1)->writable = 1; (*f1)->pipe = p; return 0; 80103484: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 80103487: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 8010348d: 8b 03 mov (%ebx),%eax 8010348f: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80103493: 8b 03 mov (%ebx),%eax 80103495: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 80103499: 8b 03 mov (%ebx),%eax 8010349b: 89 78 0c mov %edi,0xc(%eax) (*f1)->type = FD_PIPE; 8010349e: 8b 06 mov (%esi),%eax 801034a0: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 801034a6: 8b 06 mov (%esi),%eax 801034a8: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 801034ac: 8b 06 mov (%esi),%eax 801034ae: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 801034b2: 8b 06 mov (%esi),%eax 801034b4: 89 78 0c mov %edi,0xc(%eax) if(*f0) fileclose(*f0); if(*f1) fileclose(*f1); return -1; } 801034b7: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 801034ba: 31 c0 xor %eax,%eax } 801034bc: 5b pop %ebx 801034bd: 5e pop %esi 801034be: 5f pop %edi 801034bf: 5d pop %ebp 801034c0: c3 ret 801034c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(*f0) 801034c8: 8b 03 mov (%ebx),%eax 801034ca: 85 c0 test %eax,%eax 801034cc: 74 1e je 801034ec <pipealloc+0xec> fileclose(*f0); 801034ce: 83 ec 0c sub $0xc,%esp 801034d1: 50 push %eax 801034d2: e8 f9 d9 ff ff call 80100ed0 <fileclose> 801034d7: 83 c4 10 add $0x10,%esp if(*f1) 801034da: 8b 06 mov (%esi),%eax 801034dc: 85 c0 test %eax,%eax 801034de: 74 0c je 801034ec <pipealloc+0xec> fileclose(*f1); 801034e0: 83 ec 0c sub $0xc,%esp 801034e3: 50 push %eax 801034e4: e8 e7 d9 ff ff call 80100ed0 <fileclose> 801034e9: 83 c4 10 add $0x10,%esp } 801034ec: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 801034ef: b8 ff ff ff ff mov $0xffffffff,%eax } 801034f4: 5b pop %ebx 801034f5: 5e pop %esi 801034f6: 5f pop %edi 801034f7: 5d pop %ebp 801034f8: c3 ret 801034f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(*f0) 80103500: 8b 03 mov (%ebx),%eax 80103502: 85 c0 test %eax,%eax 80103504: 75 c8 jne 801034ce <pipealloc+0xce> 80103506: eb d2 jmp 801034da <pipealloc+0xda> 80103508: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010350f: 90 nop 80103510 <pipeclose>: void pipeclose(struct pipe *p, int writable) { 80103510: f3 0f 1e fb endbr32 80103514: 55 push %ebp 80103515: 89 e5 mov %esp,%ebp 80103517: 56 push %esi 80103518: 53 push %ebx 80103519: 8b 5d 08 mov 0x8(%ebp),%ebx 8010351c: 8b 75 0c mov 0xc(%ebp),%esi acquire(&p->lock); 8010351f: 83 ec 0c sub $0xc,%esp 80103522: 53 push %ebx 80103523: e8 68 17 00 00 call 80104c90 <acquire> if(writable){ 80103528: 83 c4 10 add $0x10,%esp 8010352b: 85 f6 test %esi,%esi 8010352d: 74 41 je 80103570 <pipeclose+0x60> p->writeopen = 0; wakeup(&p->nread); 8010352f: 83 ec 0c sub $0xc,%esp 80103532: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax p->writeopen = 0; 80103538: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx) 8010353f: 00 00 00 wakeup(&p->nread); 80103542: 50 push %eax 80103543: e8 78 0f 00 00 call 801044c0 <wakeup> 80103548: 83 c4 10 add $0x10,%esp } else { p->readopen = 0; wakeup(&p->nwrite); } if(p->readopen == 0 && p->writeopen == 0){ 8010354b: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx 80103551: 85 d2 test %edx,%edx 80103553: 75 0a jne 8010355f <pipeclose+0x4f> 80103555: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax 8010355b: 85 c0 test %eax,%eax 8010355d: 74 31 je 80103590 <pipeclose+0x80> release(&p->lock); kfree((char*)p); } else release(&p->lock); 8010355f: 89 5d 08 mov %ebx,0x8(%ebp) } 80103562: 8d 65 f8 lea -0x8(%ebp),%esp 80103565: 5b pop %ebx 80103566: 5e pop %esi 80103567: 5d pop %ebp release(&p->lock); 80103568: e9 e3 17 00 00 jmp 80104d50 <release> 8010356d: 8d 76 00 lea 0x0(%esi),%esi wakeup(&p->nwrite); 80103570: 83 ec 0c sub $0xc,%esp 80103573: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax p->readopen = 0; 80103579: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx) 80103580: 00 00 00 wakeup(&p->nwrite); 80103583: 50 push %eax 80103584: e8 37 0f 00 00 call 801044c0 <wakeup> 80103589: 83 c4 10 add $0x10,%esp 8010358c: eb bd jmp 8010354b <pipeclose+0x3b> 8010358e: 66 90 xchg %ax,%ax release(&p->lock); 80103590: 83 ec 0c sub $0xc,%esp 80103593: 53 push %ebx 80103594: e8 b7 17 00 00 call 80104d50 <release> kfree((char*)p); 80103599: 89 5d 08 mov %ebx,0x8(%ebp) 8010359c: 83 c4 10 add $0x10,%esp } 8010359f: 8d 65 f8 lea -0x8(%ebp),%esp 801035a2: 5b pop %ebx 801035a3: 5e pop %esi 801035a4: 5d pop %ebp kfree((char*)p); 801035a5: e9 d6 ee ff ff jmp 80102480 <kfree> 801035aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801035b0 <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 801035b0: f3 0f 1e fb endbr32 801035b4: 55 push %ebp 801035b5: 89 e5 mov %esp,%ebp 801035b7: 57 push %edi 801035b8: 56 push %esi 801035b9: 53 push %ebx 801035ba: 83 ec 28 sub $0x28,%esp 801035bd: 8b 5d 08 mov 0x8(%ebp),%ebx int i; acquire(&p->lock); 801035c0: 53 push %ebx 801035c1: e8 ca 16 00 00 call 80104c90 <acquire> for(i = 0; i < n; i++){ 801035c6: 8b 45 10 mov 0x10(%ebp),%eax 801035c9: 83 c4 10 add $0x10,%esp 801035cc: 85 c0 test %eax,%eax 801035ce: 0f 8e bc 00 00 00 jle 80103690 <pipewrite+0xe0> 801035d4: 8b 45 0c mov 0xc(%ebp),%eax 801035d7: 8b 8b 38 02 00 00 mov 0x238(%ebx),%ecx while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || myproc()->killed){ release(&p->lock); return -1; } wakeup(&p->nread); 801035dd: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi 801035e3: 89 45 e4 mov %eax,-0x1c(%ebp) 801035e6: 03 45 10 add 0x10(%ebp),%eax 801035e9: 89 45 e0 mov %eax,-0x20(%ebp) while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801035ec: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801035f2: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801035f8: 89 ca mov %ecx,%edx 801035fa: 05 00 02 00 00 add $0x200,%eax 801035ff: 39 c1 cmp %eax,%ecx 80103601: 74 3b je 8010363e <pipewrite+0x8e> 80103603: eb 63 jmp 80103668 <pipewrite+0xb8> 80103605: 8d 76 00 lea 0x0(%esi),%esi if(p->readopen == 0 || myproc()->killed){ 80103608: e8 f3 03 00 00 call 80103a00 <myproc> 8010360d: 8b 48 24 mov 0x24(%eax),%ecx 80103610: 85 c9 test %ecx,%ecx 80103612: 75 34 jne 80103648 <pipewrite+0x98> wakeup(&p->nread); 80103614: 83 ec 0c sub $0xc,%esp 80103617: 57 push %edi 80103618: e8 a3 0e 00 00 call 801044c0 <wakeup> sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 8010361d: 58 pop %eax 8010361e: 5a pop %edx 8010361f: 53 push %ebx 80103620: 56 push %esi 80103621: e8 aa 0b 00 00 call 801041d0 <sleep> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 80103626: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 8010362c: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx 80103632: 83 c4 10 add $0x10,%esp 80103635: 05 00 02 00 00 add $0x200,%eax 8010363a: 39 c2 cmp %eax,%edx 8010363c: 75 2a jne 80103668 <pipewrite+0xb8> if(p->readopen == 0 || myproc()->killed){ 8010363e: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax 80103644: 85 c0 test %eax,%eax 80103646: 75 c0 jne 80103608 <pipewrite+0x58> release(&p->lock); 80103648: 83 ec 0c sub $0xc,%esp 8010364b: 53 push %ebx 8010364c: e8 ff 16 00 00 call 80104d50 <release> return -1; 80103651: 83 c4 10 add $0x10,%esp 80103654: 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; } 80103659: 8d 65 f4 lea -0xc(%ebp),%esp 8010365c: 5b pop %ebx 8010365d: 5e pop %esi 8010365e: 5f pop %edi 8010365f: 5d pop %ebp 80103660: c3 ret 80103661: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi p->data[p->nwrite++ % PIPESIZE] = addr[i]; 80103668: 8b 75 e4 mov -0x1c(%ebp),%esi 8010366b: 8d 4a 01 lea 0x1(%edx),%ecx 8010366e: 81 e2 ff 01 00 00 and $0x1ff,%edx 80103674: 89 8b 38 02 00 00 mov %ecx,0x238(%ebx) 8010367a: 0f b6 06 movzbl (%esi),%eax 8010367d: 83 c6 01 add $0x1,%esi 80103680: 89 75 e4 mov %esi,-0x1c(%ebp) 80103683: 88 44 13 34 mov %al,0x34(%ebx,%edx,1) for(i = 0; i < n; i++){ 80103687: 3b 75 e0 cmp -0x20(%ebp),%esi 8010368a: 0f 85 5c ff ff ff jne 801035ec <pipewrite+0x3c> wakeup(&p->nread); //DOC: pipewrite-wakeup1 80103690: 83 ec 0c sub $0xc,%esp 80103693: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax 80103699: 50 push %eax 8010369a: e8 21 0e 00 00 call 801044c0 <wakeup> release(&p->lock); 8010369f: 89 1c 24 mov %ebx,(%esp) 801036a2: e8 a9 16 00 00 call 80104d50 <release> return n; 801036a7: 8b 45 10 mov 0x10(%ebp),%eax 801036aa: 83 c4 10 add $0x10,%esp 801036ad: eb aa jmp 80103659 <pipewrite+0xa9> 801036af: 90 nop 801036b0 <piperead>: int piperead(struct pipe *p, char *addr, int n) { 801036b0: f3 0f 1e fb endbr32 801036b4: 55 push %ebp 801036b5: 89 e5 mov %esp,%ebp 801036b7: 57 push %edi 801036b8: 56 push %esi 801036b9: 53 push %ebx 801036ba: 83 ec 18 sub $0x18,%esp 801036bd: 8b 75 08 mov 0x8(%ebp),%esi 801036c0: 8b 7d 0c mov 0xc(%ebp),%edi int i; acquire(&p->lock); 801036c3: 56 push %esi 801036c4: 8d 9e 34 02 00 00 lea 0x234(%esi),%ebx 801036ca: e8 c1 15 00 00 call 80104c90 <acquire> while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 801036cf: 8b 86 34 02 00 00 mov 0x234(%esi),%eax 801036d5: 83 c4 10 add $0x10,%esp 801036d8: 39 86 38 02 00 00 cmp %eax,0x238(%esi) 801036de: 74 33 je 80103713 <piperead+0x63> 801036e0: eb 3b jmp 8010371d <piperead+0x6d> 801036e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(myproc()->killed){ 801036e8: e8 13 03 00 00 call 80103a00 <myproc> 801036ed: 8b 48 24 mov 0x24(%eax),%ecx 801036f0: 85 c9 test %ecx,%ecx 801036f2: 0f 85 88 00 00 00 jne 80103780 <piperead+0xd0> release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 801036f8: 83 ec 08 sub $0x8,%esp 801036fb: 56 push %esi 801036fc: 53 push %ebx 801036fd: e8 ce 0a 00 00 call 801041d0 <sleep> while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80103702: 8b 86 38 02 00 00 mov 0x238(%esi),%eax 80103708: 83 c4 10 add $0x10,%esp 8010370b: 39 86 34 02 00 00 cmp %eax,0x234(%esi) 80103711: 75 0a jne 8010371d <piperead+0x6d> 80103713: 8b 86 40 02 00 00 mov 0x240(%esi),%eax 80103719: 85 c0 test %eax,%eax 8010371b: 75 cb jne 801036e8 <piperead+0x38> } for(i = 0; i < n; i++){ //DOC: piperead-copy 8010371d: 8b 55 10 mov 0x10(%ebp),%edx 80103720: 31 db xor %ebx,%ebx 80103722: 85 d2 test %edx,%edx 80103724: 7f 28 jg 8010374e <piperead+0x9e> 80103726: eb 34 jmp 8010375c <piperead+0xac> 80103728: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010372f: 90 nop if(p->nread == p->nwrite) break; addr[i] = p->data[p->nread++ % PIPESIZE]; 80103730: 8d 48 01 lea 0x1(%eax),%ecx 80103733: 25 ff 01 00 00 and $0x1ff,%eax 80103738: 89 8e 34 02 00 00 mov %ecx,0x234(%esi) 8010373e: 0f b6 44 06 34 movzbl 0x34(%esi,%eax,1),%eax 80103743: 88 04 1f mov %al,(%edi,%ebx,1) for(i = 0; i < n; i++){ //DOC: piperead-copy 80103746: 83 c3 01 add $0x1,%ebx 80103749: 39 5d 10 cmp %ebx,0x10(%ebp) 8010374c: 74 0e je 8010375c <piperead+0xac> if(p->nread == p->nwrite) 8010374e: 8b 86 34 02 00 00 mov 0x234(%esi),%eax 80103754: 3b 86 38 02 00 00 cmp 0x238(%esi),%eax 8010375a: 75 d4 jne 80103730 <piperead+0x80> } wakeup(&p->nwrite); //DOC: piperead-wakeup 8010375c: 83 ec 0c sub $0xc,%esp 8010375f: 8d 86 38 02 00 00 lea 0x238(%esi),%eax 80103765: 50 push %eax 80103766: e8 55 0d 00 00 call 801044c0 <wakeup> release(&p->lock); 8010376b: 89 34 24 mov %esi,(%esp) 8010376e: e8 dd 15 00 00 call 80104d50 <release> return i; 80103773: 83 c4 10 add $0x10,%esp } 80103776: 8d 65 f4 lea -0xc(%ebp),%esp 80103779: 89 d8 mov %ebx,%eax 8010377b: 5b pop %ebx 8010377c: 5e pop %esi 8010377d: 5f pop %edi 8010377e: 5d pop %ebp 8010377f: c3 ret release(&p->lock); 80103780: 83 ec 0c sub $0xc,%esp return -1; 80103783: bb ff ff ff ff mov $0xffffffff,%ebx release(&p->lock); 80103788: 56 push %esi 80103789: e8 c2 15 00 00 call 80104d50 <release> return -1; 8010378e: 83 c4 10 add $0x10,%esp } 80103791: 8d 65 f4 lea -0xc(%ebp),%esp 80103794: 89 d8 mov %ebx,%eax 80103796: 5b pop %ebx 80103797: 5e pop %esi 80103798: 5f pop %edi 80103799: 5d pop %ebp 8010379a: c3 ret 8010379b: 66 90 xchg %ax,%ax 8010379d: 66 90 xchg %ax,%ax 8010379f: 90 nop 801037a0 <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 801037a0: 55 push %ebp 801037a1: 89 e5 mov %esp,%ebp 801037a3: 53 push %ebx struct proc *p; char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801037a4: bb 54 3d 11 80 mov $0x80113d54,%ebx { 801037a9: 83 ec 10 sub $0x10,%esp acquire(&ptable.lock); 801037ac: 68 20 3d 11 80 push $0x80113d20 801037b1: e8 da 14 00 00 call 80104c90 <acquire> 801037b6: 83 c4 10 add $0x10,%esp 801037b9: eb 17 jmp 801037d2 <allocproc+0x32> 801037bb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801037bf: 90 nop for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801037c0: 81 c3 b4 00 00 00 add $0xb4,%ebx 801037c6: 81 fb 54 6a 11 80 cmp $0x80116a54,%ebx 801037cc: 0f 84 fe 00 00 00 je 801038d0 <allocproc+0x130> if(p->state == UNUSED) 801037d2: 8b 43 0c mov 0xc(%ebx),%eax 801037d5: 85 c0 test %eax,%eax 801037d7: 75 e7 jne 801037c0 <allocproc+0x20> release(&ptable.lock); return 0; found: p->state = EMBRYO; p->pid = nextpid++; 801037d9: a1 04 b0 10 80 mov 0x8010b004,%eax p->q[4]=0; #ifdef YESPLOT cprintf("%d %d %d\n", ticks, p->pid, p->cur_q); //for plotting graph #endif release(&ptable.lock); 801037de: 83 ec 0c sub $0xc,%esp p->state = EMBRYO; 801037e1: c7 43 0c 01 00 00 00 movl $0x1,0xc(%ebx) p->rtime=0; 801037e8: c7 83 80 00 00 00 00 movl $0x0,0x80(%ebx) 801037ef: 00 00 00 p->pid = nextpid++; 801037f2: 8d 50 01 lea 0x1(%eax),%edx 801037f5: 89 43 10 mov %eax,0x10(%ebx) p->ctime=ticks; //initialising ctime to current ticks 801037f8: a1 a0 72 11 80 mov 0x801172a0,%eax p->etime=0; 801037fd: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 80103804: 00 00 00 p->ctime=ticks; //initialising ctime to current ticks 80103807: 89 43 7c mov %eax,0x7c(%ebx) p->lastexecuted=ticks; //initialsing lastexecuted to current ticks 8010380a: 89 83 94 00 00 00 mov %eax,0x94(%ebx) p->iotime=0; 80103810: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx) 80103817: 00 00 00 p->priority=60; //default priority 8010381a: c7 83 8c 00 00 00 3c movl $0x3c,0x8c(%ebx) 80103821: 00 00 00 p->n_run=0; 80103824: c7 83 98 00 00 00 00 movl $0x0,0x98(%ebx) 8010382b: 00 00 00 p->cur_q=-1; //for other schedulers initialisation to -1 as of no use 8010382e: c7 83 9c 00 00 00 ff movl $0xffffffff,0x9c(%ebx) 80103835: ff ff ff p->currentslice=0; 80103838: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx) 8010383f: 00 00 00 p->q[0]=0; 80103842: c7 83 a0 00 00 00 00 movl $0x0,0xa0(%ebx) 80103849: 00 00 00 p->q[1]=0; 8010384c: c7 83 a4 00 00 00 00 movl $0x0,0xa4(%ebx) 80103853: 00 00 00 p->q[2]=0; 80103856: c7 83 a8 00 00 00 00 movl $0x0,0xa8(%ebx) 8010385d: 00 00 00 p->q[3]=0; 80103860: c7 83 ac 00 00 00 00 movl $0x0,0xac(%ebx) 80103867: 00 00 00 p->q[4]=0; 8010386a: c7 83 b0 00 00 00 00 movl $0x0,0xb0(%ebx) 80103871: 00 00 00 release(&ptable.lock); 80103874: 68 20 3d 11 80 push $0x80113d20 p->pid = nextpid++; 80103879: 89 15 04 b0 10 80 mov %edx,0x8010b004 release(&ptable.lock); 8010387f: e8 cc 14 00 00 call 80104d50 <release> // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 80103884: e8 b7 ed ff ff call 80102640 <kalloc> 80103889: 83 c4 10 add $0x10,%esp 8010388c: 89 43 08 mov %eax,0x8(%ebx) 8010388f: 85 c0 test %eax,%eax 80103891: 74 56 je 801038e9 <allocproc+0x149> return 0; } sp = p->kstack + KSTACKSIZE; // Leave room for trap frame. sp -= sizeof *p->tf; 80103893: 8d 90 b4 0f 00 00 lea 0xfb4(%eax),%edx sp -= 4; *(uint*)sp = (uint)trapret; sp -= sizeof *p->context; p->context = (struct context*)sp; memset(p->context, 0, sizeof *p->context); 80103899: 83 ec 04 sub $0x4,%esp sp -= sizeof *p->context; 8010389c: 05 9c 0f 00 00 add $0xf9c,%eax sp -= sizeof *p->tf; 801038a1: 89 53 18 mov %edx,0x18(%ebx) *(uint*)sp = (uint)trapret; 801038a4: c7 40 14 9f 60 10 80 movl $0x8010609f,0x14(%eax) p->context = (struct context*)sp; 801038ab: 89 43 1c mov %eax,0x1c(%ebx) memset(p->context, 0, sizeof *p->context); 801038ae: 6a 14 push $0x14 801038b0: 6a 00 push $0x0 801038b2: 50 push %eax 801038b3: e8 e8 14 00 00 call 80104da0 <memset> p->context->eip = (uint)forkret; 801038b8: 8b 43 1c mov 0x1c(%ebx),%eax return p; 801038bb: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 801038be: c7 40 10 00 39 10 80 movl $0x80103900,0x10(%eax) } 801038c5: 89 d8 mov %ebx,%eax 801038c7: 8b 5d fc mov -0x4(%ebp),%ebx 801038ca: c9 leave 801038cb: c3 ret 801038cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi release(&ptable.lock); 801038d0: 83 ec 0c sub $0xc,%esp return 0; 801038d3: 31 db xor %ebx,%ebx release(&ptable.lock); 801038d5: 68 20 3d 11 80 push $0x80113d20 801038da: e8 71 14 00 00 call 80104d50 <release> } 801038df: 89 d8 mov %ebx,%eax return 0; 801038e1: 83 c4 10 add $0x10,%esp } 801038e4: 8b 5d fc mov -0x4(%ebp),%ebx 801038e7: c9 leave 801038e8: c3 ret p->state = UNUSED; 801038e9: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) return 0; 801038f0: 31 db xor %ebx,%ebx } 801038f2: 89 d8 mov %ebx,%eax 801038f4: 8b 5d fc mov -0x4(%ebp),%ebx 801038f7: c9 leave 801038f8: c3 ret 801038f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103900 <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 80103900: f3 0f 1e fb endbr32 80103904: 55 push %ebp 80103905: 89 e5 mov %esp,%ebp 80103907: 83 ec 14 sub $0x14,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 8010390a: 68 20 3d 11 80 push $0x80113d20 8010390f: e8 3c 14 00 00 call 80104d50 <release> if (first) { 80103914: a1 00 b0 10 80 mov 0x8010b000,%eax 80103919: 83 c4 10 add $0x10,%esp 8010391c: 85 c0 test %eax,%eax 8010391e: 75 08 jne 80103928 <forkret+0x28> iinit(ROOTDEV); initlog(ROOTDEV); } // Return to "caller", actually trapret (see allocproc). } 80103920: c9 leave 80103921: c3 ret 80103922: 8d b6 00 00 00 00 lea 0x0(%esi),%esi first = 0; 80103928: c7 05 00 b0 10 80 00 movl $0x0,0x8010b000 8010392f: 00 00 00 iinit(ROOTDEV); 80103932: 83 ec 0c sub $0xc,%esp 80103935: 6a 01 push $0x1 80103937: e8 14 dc ff ff call 80101550 <iinit> initlog(ROOTDEV); 8010393c: c7 04 24 01 00 00 00 movl $0x1,(%esp) 80103943: e8 58 f3 ff ff call 80102ca0 <initlog> } 80103948: 83 c4 10 add $0x10,%esp 8010394b: c9 leave 8010394c: c3 ret 8010394d: 8d 76 00 lea 0x0(%esi),%esi 80103950 <pinit>: { 80103950: f3 0f 1e fb endbr32 80103954: 55 push %ebp 80103955: 89 e5 mov %esp,%ebp 80103957: 83 ec 10 sub $0x10,%esp initlock(&ptable.lock, "ptable"); 8010395a: 68 40 7e 10 80 push $0x80107e40 8010395f: 68 20 3d 11 80 push $0x80113d20 80103964: e8 a7 11 00 00 call 80104b10 <initlock> } 80103969: 83 c4 10 add $0x10,%esp 8010396c: c9 leave 8010396d: c3 ret 8010396e: 66 90 xchg %ax,%ax 80103970 <mycpu>: { 80103970: f3 0f 1e fb endbr32 80103974: 55 push %ebp 80103975: 89 e5 mov %esp,%ebp 80103977: 56 push %esi 80103978: 53 push %ebx asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103979: 9c pushf 8010397a: 58 pop %eax if(readeflags()&FL_IF) 8010397b: f6 c4 02 test $0x2,%ah 8010397e: 75 4a jne 801039ca <mycpu+0x5a> apicid = lapicid(); 80103980: e8 2b ef ff ff call 801028b0 <lapicid> for (i = 0; i < ncpu; ++i) { 80103985: 8b 35 00 3d 11 80 mov 0x80113d00,%esi apicid = lapicid(); 8010398b: 89 c3 mov %eax,%ebx for (i = 0; i < ncpu; ++i) { 8010398d: 85 f6 test %esi,%esi 8010398f: 7e 2c jle 801039bd <mycpu+0x4d> 80103991: 31 d2 xor %edx,%edx 80103993: eb 0a jmp 8010399f <mycpu+0x2f> 80103995: 8d 76 00 lea 0x0(%esi),%esi 80103998: 83 c2 01 add $0x1,%edx 8010399b: 39 f2 cmp %esi,%edx 8010399d: 74 1e je 801039bd <mycpu+0x4d> if (cpus[i].apicid == apicid) 8010399f: 69 ca b0 00 00 00 imul $0xb0,%edx,%ecx 801039a5: 0f b6 81 80 37 11 80 movzbl -0x7feec880(%ecx),%eax 801039ac: 39 d8 cmp %ebx,%eax 801039ae: 75 e8 jne 80103998 <mycpu+0x28> } 801039b0: 8d 65 f8 lea -0x8(%ebp),%esp return &cpus[i]; 801039b3: 8d 81 80 37 11 80 lea -0x7feec880(%ecx),%eax } 801039b9: 5b pop %ebx 801039ba: 5e pop %esi 801039bb: 5d pop %ebp 801039bc: c3 ret panic("unknown apicid\n"); 801039bd: 83 ec 0c sub $0xc,%esp 801039c0: 68 47 7e 10 80 push $0x80107e47 801039c5: e8 c6 c9 ff ff call 80100390 <panic> panic("mycpu called with interrupts enabled\n"); 801039ca: 83 ec 0c sub $0xc,%esp 801039cd: 68 54 7f 10 80 push $0x80107f54 801039d2: e8 b9 c9 ff ff call 80100390 <panic> 801039d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801039de: 66 90 xchg %ax,%ax 801039e0 <cpuid>: cpuid() { 801039e0: f3 0f 1e fb endbr32 801039e4: 55 push %ebp 801039e5: 89 e5 mov %esp,%ebp 801039e7: 83 ec 08 sub $0x8,%esp return mycpu()-cpus; 801039ea: e8 81 ff ff ff call 80103970 <mycpu> } 801039ef: c9 leave return mycpu()-cpus; 801039f0: 2d 80 37 11 80 sub $0x80113780,%eax 801039f5: c1 f8 04 sar $0x4,%eax 801039f8: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax } 801039fe: c3 ret 801039ff: 90 nop 80103a00 <myproc>: myproc(void) { 80103a00: f3 0f 1e fb endbr32 80103a04: 55 push %ebp 80103a05: 89 e5 mov %esp,%ebp 80103a07: 53 push %ebx 80103a08: 83 ec 04 sub $0x4,%esp pushcli(); 80103a0b: e8 80 11 00 00 call 80104b90 <pushcli> c = mycpu(); 80103a10: e8 5b ff ff ff call 80103970 <mycpu> p = c->proc; 80103a15: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103a1b: e8 c0 11 00 00 call 80104be0 <popcli> } 80103a20: 83 c4 04 add $0x4,%esp 80103a23: 89 d8 mov %ebx,%eax 80103a25: 5b pop %ebx 80103a26: 5d pop %ebp 80103a27: c3 ret 80103a28: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103a2f: 90 nop 80103a30 <userinit>: { 80103a30: f3 0f 1e fb endbr32 80103a34: 55 push %ebp 80103a35: 89 e5 mov %esp,%ebp 80103a37: 53 push %ebx 80103a38: 83 ec 04 sub $0x4,%esp p = allocproc(); 80103a3b: e8 60 fd ff ff call 801037a0 <allocproc> 80103a40: 89 c3 mov %eax,%ebx initproc = p; 80103a42: a3 b8 b5 10 80 mov %eax,0x8010b5b8 if((p->pgdir = setupkvm()) == 0) 80103a47: e8 24 3c 00 00 call 80107670 <setupkvm> 80103a4c: 89 43 04 mov %eax,0x4(%ebx) 80103a4f: 85 c0 test %eax,%eax 80103a51: 0f 84 bd 00 00 00 je 80103b14 <userinit+0xe4> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 80103a57: 83 ec 04 sub $0x4,%esp 80103a5a: 68 2c 00 00 00 push $0x2c 80103a5f: 68 60 b4 10 80 push $0x8010b460 80103a64: 50 push %eax 80103a65: e8 d6 38 00 00 call 80107340 <inituvm> memset(p->tf, 0, sizeof(*p->tf)); 80103a6a: 83 c4 0c add $0xc,%esp p->sz = PGSIZE; 80103a6d: c7 03 00 10 00 00 movl $0x1000,(%ebx) memset(p->tf, 0, sizeof(*p->tf)); 80103a73: 6a 4c push $0x4c 80103a75: 6a 00 push $0x0 80103a77: ff 73 18 pushl 0x18(%ebx) 80103a7a: e8 21 13 00 00 call 80104da0 <memset> p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 80103a7f: 8b 43 18 mov 0x18(%ebx),%eax 80103a82: ba 1b 00 00 00 mov $0x1b,%edx safestrcpy(p->name, "initcode", sizeof(p->name)); 80103a87: 83 c4 0c add $0xc,%esp p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 80103a8a: b9 23 00 00 00 mov $0x23,%ecx p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 80103a8f: 66 89 50 3c mov %dx,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 80103a93: 8b 43 18 mov 0x18(%ebx),%eax 80103a96: 66 89 48 2c mov %cx,0x2c(%eax) p->tf->es = p->tf->ds; 80103a9a: 8b 43 18 mov 0x18(%ebx),%eax 80103a9d: 0f b7 50 2c movzwl 0x2c(%eax),%edx 80103aa1: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 80103aa5: 8b 43 18 mov 0x18(%ebx),%eax 80103aa8: 0f b7 50 2c movzwl 0x2c(%eax),%edx 80103aac: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 80103ab0: 8b 43 18 mov 0x18(%ebx),%eax 80103ab3: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 80103aba: 8b 43 18 mov 0x18(%ebx),%eax 80103abd: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 80103ac4: 8b 43 18 mov 0x18(%ebx),%eax 80103ac7: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 80103ace: 8d 43 6c lea 0x6c(%ebx),%eax 80103ad1: 6a 10 push $0x10 80103ad3: 68 70 7e 10 80 push $0x80107e70 80103ad8: 50 push %eax 80103ad9: e8 82 14 00 00 call 80104f60 <safestrcpy> p->cwd = namei("/"); 80103ade: c7 04 24 79 7e 10 80 movl $0x80107e79,(%esp) 80103ae5: e8 56 e5 ff ff call 80102040 <namei> 80103aea: 89 43 68 mov %eax,0x68(%ebx) acquire(&ptable.lock); 80103aed: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 80103af4: e8 97 11 00 00 call 80104c90 <acquire> p->state = RUNNABLE; 80103af9: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) release(&ptable.lock); 80103b00: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 80103b07: e8 44 12 00 00 call 80104d50 <release> } 80103b0c: 8b 5d fc mov -0x4(%ebp),%ebx 80103b0f: 83 c4 10 add $0x10,%esp 80103b12: c9 leave 80103b13: c3 ret panic("userinit: out of memory?"); 80103b14: 83 ec 0c sub $0xc,%esp 80103b17: 68 57 7e 10 80 push $0x80107e57 80103b1c: e8 6f c8 ff ff call 80100390 <panic> 80103b21: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103b28: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103b2f: 90 nop 80103b30 <growproc>: { 80103b30: f3 0f 1e fb endbr32 80103b34: 55 push %ebp 80103b35: 89 e5 mov %esp,%ebp 80103b37: 56 push %esi 80103b38: 53 push %ebx 80103b39: 8b 75 08 mov 0x8(%ebp),%esi pushcli(); 80103b3c: e8 4f 10 00 00 call 80104b90 <pushcli> c = mycpu(); 80103b41: e8 2a fe ff ff call 80103970 <mycpu> p = c->proc; 80103b46: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103b4c: e8 8f 10 00 00 call 80104be0 <popcli> sz = curproc->sz; 80103b51: 8b 03 mov (%ebx),%eax if(n > 0){ 80103b53: 85 f6 test %esi,%esi 80103b55: 7f 19 jg 80103b70 <growproc+0x40> } else if(n < 0){ 80103b57: 75 37 jne 80103b90 <growproc+0x60> switchuvm(curproc); 80103b59: 83 ec 0c sub $0xc,%esp curproc->sz = sz; 80103b5c: 89 03 mov %eax,(%ebx) switchuvm(curproc); 80103b5e: 53 push %ebx 80103b5f: e8 cc 36 00 00 call 80107230 <switchuvm> return 0; 80103b64: 83 c4 10 add $0x10,%esp 80103b67: 31 c0 xor %eax,%eax } 80103b69: 8d 65 f8 lea -0x8(%ebp),%esp 80103b6c: 5b pop %ebx 80103b6d: 5e pop %esi 80103b6e: 5d pop %ebp 80103b6f: c3 ret if((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0) 80103b70: 83 ec 04 sub $0x4,%esp 80103b73: 01 c6 add %eax,%esi 80103b75: 56 push %esi 80103b76: 50 push %eax 80103b77: ff 73 04 pushl 0x4(%ebx) 80103b7a: e8 11 39 00 00 call 80107490 <allocuvm> 80103b7f: 83 c4 10 add $0x10,%esp 80103b82: 85 c0 test %eax,%eax 80103b84: 75 d3 jne 80103b59 <growproc+0x29> return -1; 80103b86: b8 ff ff ff ff mov $0xffffffff,%eax 80103b8b: eb dc jmp 80103b69 <growproc+0x39> 80103b8d: 8d 76 00 lea 0x0(%esi),%esi if((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0) 80103b90: 83 ec 04 sub $0x4,%esp 80103b93: 01 c6 add %eax,%esi 80103b95: 56 push %esi 80103b96: 50 push %eax 80103b97: ff 73 04 pushl 0x4(%ebx) 80103b9a: e8 21 3a 00 00 call 801075c0 <deallocuvm> 80103b9f: 83 c4 10 add $0x10,%esp 80103ba2: 85 c0 test %eax,%eax 80103ba4: 75 b3 jne 80103b59 <growproc+0x29> 80103ba6: eb de jmp 80103b86 <growproc+0x56> 80103ba8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103baf: 90 nop 80103bb0 <fork>: { 80103bb0: f3 0f 1e fb endbr32 80103bb4: 55 push %ebp 80103bb5: 89 e5 mov %esp,%ebp 80103bb7: 57 push %edi 80103bb8: 56 push %esi 80103bb9: 53 push %ebx 80103bba: 83 ec 1c sub $0x1c,%esp pushcli(); 80103bbd: e8 ce 0f 00 00 call 80104b90 <pushcli> c = mycpu(); 80103bc2: e8 a9 fd ff ff call 80103970 <mycpu> p = c->proc; 80103bc7: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103bcd: e8 0e 10 00 00 call 80104be0 <popcli> if((np = allocproc()) == 0){ 80103bd2: e8 c9 fb ff ff call 801037a0 <allocproc> 80103bd7: 89 45 e4 mov %eax,-0x1c(%ebp) 80103bda: 85 c0 test %eax,%eax 80103bdc: 0f 84 bb 00 00 00 je 80103c9d <fork+0xed> if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){ 80103be2: 83 ec 08 sub $0x8,%esp 80103be5: ff 33 pushl (%ebx) 80103be7: 89 c7 mov %eax,%edi 80103be9: ff 73 04 pushl 0x4(%ebx) 80103bec: e8 4f 3b 00 00 call 80107740 <copyuvm> 80103bf1: 83 c4 10 add $0x10,%esp 80103bf4: 89 47 04 mov %eax,0x4(%edi) 80103bf7: 85 c0 test %eax,%eax 80103bf9: 0f 84 a5 00 00 00 je 80103ca4 <fork+0xf4> np->sz = curproc->sz; 80103bff: 8b 03 mov (%ebx),%eax 80103c01: 8b 4d e4 mov -0x1c(%ebp),%ecx 80103c04: 89 01 mov %eax,(%ecx) *np->tf = *curproc->tf; 80103c06: 8b 79 18 mov 0x18(%ecx),%edi np->parent = curproc; 80103c09: 89 c8 mov %ecx,%eax 80103c0b: 89 59 14 mov %ebx,0x14(%ecx) *np->tf = *curproc->tf; 80103c0e: b9 13 00 00 00 mov $0x13,%ecx 80103c13: 8b 73 18 mov 0x18(%ebx),%esi 80103c16: f3 a5 rep movsl %ds:(%esi),%es:(%edi) for(i = 0; i < NOFILE; i++) 80103c18: 31 f6 xor %esi,%esi np->tf->eax = 0; 80103c1a: 8b 40 18 mov 0x18(%eax),%eax 80103c1d: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for(i = 0; i < NOFILE; i++) 80103c24: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(curproc->ofile[i]) 80103c28: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax 80103c2c: 85 c0 test %eax,%eax 80103c2e: 74 13 je 80103c43 <fork+0x93> np->ofile[i] = filedup(curproc->ofile[i]); 80103c30: 83 ec 0c sub $0xc,%esp 80103c33: 50 push %eax 80103c34: e8 47 d2 ff ff call 80100e80 <filedup> 80103c39: 8b 55 e4 mov -0x1c(%ebp),%edx 80103c3c: 83 c4 10 add $0x10,%esp 80103c3f: 89 44 b2 28 mov %eax,0x28(%edx,%esi,4) for(i = 0; i < NOFILE; i++) 80103c43: 83 c6 01 add $0x1,%esi 80103c46: 83 fe 10 cmp $0x10,%esi 80103c49: 75 dd jne 80103c28 <fork+0x78> np->cwd = idup(curproc->cwd); 80103c4b: 83 ec 0c sub $0xc,%esp 80103c4e: ff 73 68 pushl 0x68(%ebx) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103c51: 83 c3 6c add $0x6c,%ebx np->cwd = idup(curproc->cwd); 80103c54: e8 e7 da ff ff call 80101740 <idup> 80103c59: 8b 7d e4 mov -0x1c(%ebp),%edi safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103c5c: 83 c4 0c add $0xc,%esp np->cwd = idup(curproc->cwd); 80103c5f: 89 47 68 mov %eax,0x68(%edi) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103c62: 8d 47 6c lea 0x6c(%edi),%eax 80103c65: 6a 10 push $0x10 80103c67: 53 push %ebx 80103c68: 50 push %eax 80103c69: e8 f2 12 00 00 call 80104f60 <safestrcpy> pid = np->pid; 80103c6e: 8b 5f 10 mov 0x10(%edi),%ebx acquire(&ptable.lock); 80103c71: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 80103c78: e8 13 10 00 00 call 80104c90 <acquire> np->state = RUNNABLE; 80103c7d: c7 47 0c 03 00 00 00 movl $0x3,0xc(%edi) release(&ptable.lock); 80103c84: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 80103c8b: e8 c0 10 00 00 call 80104d50 <release> return pid; 80103c90: 83 c4 10 add $0x10,%esp } 80103c93: 8d 65 f4 lea -0xc(%ebp),%esp 80103c96: 89 d8 mov %ebx,%eax 80103c98: 5b pop %ebx 80103c99: 5e pop %esi 80103c9a: 5f pop %edi 80103c9b: 5d pop %ebp 80103c9c: c3 ret return -1; 80103c9d: bb ff ff ff ff mov $0xffffffff,%ebx 80103ca2: eb ef jmp 80103c93 <fork+0xe3> kfree(np->kstack); 80103ca4: 8b 5d e4 mov -0x1c(%ebp),%ebx 80103ca7: 83 ec 0c sub $0xc,%esp 80103caa: ff 73 08 pushl 0x8(%ebx) 80103cad: e8 ce e7 ff ff call 80102480 <kfree> np->kstack = 0; 80103cb2: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) return -1; 80103cb9: 83 c4 10 add $0x10,%esp np->state = UNUSED; 80103cbc: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) return -1; 80103cc3: bb ff ff ff ff mov $0xffffffff,%ebx 80103cc8: eb c9 jmp 80103c93 <fork+0xe3> 80103cca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103cd0 <updatetimes>: { 80103cd0: f3 0f 1e fb endbr32 80103cd4: 55 push %ebp 80103cd5: 89 e5 mov %esp,%ebp 80103cd7: 83 ec 14 sub $0x14,%esp acquire(&ptable.lock); 80103cda: 68 20 3d 11 80 push $0x80113d20 80103cdf: e8 ac 0f 00 00 call 80104c90 <acquire> p->lastexecuted=ticks; 80103ce4: 8b 0d a0 72 11 80 mov 0x801172a0,%ecx 80103cea: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103ced: b8 54 3d 11 80 mov $0x80113d54,%eax 80103cf2: eb 22 jmp 80103d16 <updatetimes+0x46> 80103cf4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi else if(p->state==SLEEPING) 80103cf8: 83 fa 02 cmp $0x2,%edx 80103cfb: 75 0d jne 80103d0a <updatetimes+0x3a> p->iotime++; 80103cfd: 83 80 88 00 00 00 01 addl $0x1,0x88(%eax) p->lastexecuted=ticks; 80103d04: 89 88 94 00 00 00 mov %ecx,0x94(%eax) for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103d0a: 05 b4 00 00 00 add $0xb4,%eax 80103d0f: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80103d14: 74 3b je 80103d51 <updatetimes+0x81> if(p->state==RUNNING) 80103d16: 8b 50 0c mov 0xc(%eax),%edx 80103d19: 83 fa 04 cmp $0x4,%edx 80103d1c: 75 da jne 80103cf8 <updatetimes+0x28> if(p->cur_q!=-1) 80103d1e: 8b 90 9c 00 00 00 mov 0x9c(%eax),%edx p->rtime++; //updating runtime 80103d24: 83 80 80 00 00 00 01 addl $0x1,0x80(%eax) p->currentslice++; 80103d2b: 83 80 90 00 00 00 01 addl $0x1,0x90(%eax) p->lastexecuted=ticks; 80103d32: 89 88 94 00 00 00 mov %ecx,0x94(%eax) if(p->cur_q!=-1) 80103d38: 83 fa ff cmp $0xffffffff,%edx 80103d3b: 74 cd je 80103d0a <updatetimes+0x3a> p->q[p->cur_q]++; 80103d3d: 83 84 90 a0 00 00 00 addl $0x1,0xa0(%eax,%edx,4) 80103d44: 01 for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103d45: 05 b4 00 00 00 add $0xb4,%eax 80103d4a: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80103d4f: 75 c5 jne 80103d16 <updatetimes+0x46> release(&ptable.lock); 80103d51: 83 ec 0c sub $0xc,%esp 80103d54: 68 20 3d 11 80 push $0x80113d20 80103d59: e8 f2 0f 00 00 call 80104d50 <release> } 80103d5e: 83 c4 10 add $0x10,%esp 80103d61: c9 leave 80103d62: c3 ret 80103d63: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103d6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103d70 <scheduler>: { 80103d70: f3 0f 1e fb endbr32 80103d74: 55 push %ebp 80103d75: 89 e5 mov %esp,%ebp 80103d77: 57 push %edi 80103d78: 56 push %esi 80103d79: 53 push %ebx 80103d7a: 83 ec 1c sub $0x1c,%esp struct cpu *c = mycpu(); 80103d7d: e8 ee fb ff ff call 80103970 <mycpu> c->proc = 0; 80103d82: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax) 80103d89: 00 00 00 struct cpu *c = mycpu(); 80103d8c: 89 c3 mov %eax,%ebx c->proc = 0; 80103d8e: 8d 40 04 lea 0x4(%eax),%eax 80103d91: 89 45 e4 mov %eax,-0x1c(%ebp) 80103d94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi asm volatile("sti"); 80103d98: fb sti acquire(&ptable.lock); 80103d99: 83 ec 0c sub $0xc,%esp struct proc *nxt = 0; 80103d9c: 31 ff xor %edi,%edi acquire(&ptable.lock); 80103d9e: 68 20 3d 11 80 push $0x80113d20 80103da3: e8 e8 0e 00 00 call 80104c90 <acquire> 80103da8: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) //finiding minimum priority 80103dab: b8 54 3d 11 80 mov $0x80113d54,%eax 80103db0: eb 21 jmp 80103dd3 <scheduler+0x63> 80103db2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if (p->priority < nxt->priority) 80103db8: 8b 8f 8c 00 00 00 mov 0x8c(%edi),%ecx 80103dbe: 39 88 8c 00 00 00 cmp %ecx,0x8c(%eax) 80103dc4: 0f 4c f8 cmovl %eax,%edi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) //finiding minimum priority 80103dc7: 05 b4 00 00 00 add $0xb4,%eax 80103dcc: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80103dd1: 74 1d je 80103df0 <scheduler+0x80> if (p->state != RUNNABLE) 80103dd3: 83 78 0c 03 cmpl $0x3,0xc(%eax) 80103dd7: 75 ee jne 80103dc7 <scheduler+0x57> if (nxt == 0) 80103dd9: 85 ff test %edi,%edi 80103ddb: 75 db jne 80103db8 <scheduler+0x48> 80103ddd: 89 c7 mov %eax,%edi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) //finiding minimum priority 80103ddf: 05 b4 00 00 00 add $0xb4,%eax 80103de4: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80103de9: 75 e8 jne 80103dd3 <scheduler+0x63> 80103deb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103def: 90 nop for (p = ptable.proc; p < &ptable.proc[NPROC]; p++)//round robin for same priority things 80103df0: be 54 3d 11 80 mov $0x80113d54,%esi if (nxt == 0) 80103df5: 85 ff test %edi,%edi 80103df7: 0f 85 9d 00 00 00 jne 80103e9a <scheduler+0x12a> release(&ptable.lock); 80103dfd: 83 ec 0c sub $0xc,%esp 80103e00: 68 20 3d 11 80 push $0x80113d20 80103e05: e8 46 0f 00 00 call 80104d50 <release> continue; 80103e0a: 83 c4 10 add $0x10,%esp 80103e0d: eb 89 jmp 80103d98 <scheduler+0x28> 80103e0f: 90 nop switchuvm(p); 80103e10: 83 ec 0c sub $0xc,%esp c->proc = p; 80103e13: 89 b3 ac 00 00 00 mov %esi,0xac(%ebx) switchuvm(p); 80103e19: 56 push %esi 80103e1a: e8 11 34 00 00 call 80107230 <switchuvm> swtch(&(c->scheduler), p->context); 80103e1f: 58 pop %eax 80103e20: 5a pop %edx 80103e21: ff 76 1c pushl 0x1c(%esi) 80103e24: ff 75 e4 pushl -0x1c(%ebp) p->n_run++; 80103e27: 83 86 98 00 00 00 01 addl $0x1,0x98(%esi) p->state = RUNNING; 80103e2e: c7 46 0c 04 00 00 00 movl $0x4,0xc(%esi) swtch(&(c->scheduler), p->context); 80103e35: e8 89 11 00 00 call 80104fc3 <swtch> switchkvm(); 80103e3a: e8 d1 33 00 00 call 80107210 <switchkvm> p->lastexecuted = ticks; 80103e3f: 8b 15 a0 72 11 80 mov 0x801172a0,%edx c->proc = 0; 80103e45: 83 c4 10 add $0x10,%esp p->lastexecuted = ticks; 80103e48: 89 96 94 00 00 00 mov %edx,0x94(%esi) for(next = ptable.proc; next < &ptable.proc[NPROC]; next++) 80103e4e: ba 54 3d 11 80 mov $0x80113d54,%edx c->proc = 0; 80103e53: c7 83 ac 00 00 00 00 movl $0x0,0xac(%ebx) 80103e5a: 00 00 00 for(next = ptable.proc; next < &ptable.proc[NPROC]; next++) 80103e5d: 8d 76 00 lea 0x0(%esi),%esi if(next->state!=RUNNABLE) 80103e60: 83 7a 0c 03 cmpl $0x3,0xc(%edx) 80103e64: 75 0e jne 80103e74 <scheduler+0x104> if(next->state==RUNNABLE && next->priority < nxt->priority) 80103e66: 8b 87 8c 00 00 00 mov 0x8c(%edi),%eax 80103e6c: 39 82 8c 00 00 00 cmp %eax,0x8c(%edx) 80103e72: 7c 89 jl 80103dfd <scheduler+0x8d> for(next = ptable.proc; next < &ptable.proc[NPROC]; next++) 80103e74: 81 c2 b4 00 00 00 add $0xb4,%edx 80103e7a: 81 fa 54 6a 11 80 cmp $0x80116a54,%edx 80103e80: 75 de jne 80103e60 <scheduler+0xf0> 80103e82: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++)//round robin for same priority things 80103e88: 81 c6 b4 00 00 00 add $0xb4,%esi 80103e8e: 81 fe 54 6a 11 80 cmp $0x80116a54,%esi 80103e94: 0f 84 63 ff ff ff je 80103dfd <scheduler+0x8d> if (p->state != RUNNABLE) 80103e9a: 83 7e 0c 03 cmpl $0x3,0xc(%esi) 80103e9e: 75 e8 jne 80103e88 <scheduler+0x118> if (p->state==RUNNABLE && nxt->priority == p->priority) //if the process is runnable and equal to minprioritythen we have to assign it 80103ea0: 8b 86 8c 00 00 00 mov 0x8c(%esi),%eax 80103ea6: 39 87 8c 00 00 00 cmp %eax,0x8c(%edi) 80103eac: 75 da jne 80103e88 <scheduler+0x118> 80103eae: e9 5d ff ff ff jmp 80103e10 <scheduler+0xa0> 80103eb3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103eba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103ec0 <sched>: { 80103ec0: f3 0f 1e fb endbr32 80103ec4: 55 push %ebp 80103ec5: 89 e5 mov %esp,%ebp 80103ec7: 56 push %esi 80103ec8: 53 push %ebx pushcli(); 80103ec9: e8 c2 0c 00 00 call 80104b90 <pushcli> c = mycpu(); 80103ece: e8 9d fa ff ff call 80103970 <mycpu> p = c->proc; 80103ed3: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103ed9: e8 02 0d 00 00 call 80104be0 <popcli> if(!holding(&ptable.lock)) 80103ede: 83 ec 0c sub $0xc,%esp 80103ee1: 68 20 3d 11 80 push $0x80113d20 80103ee6: e8 55 0d 00 00 call 80104c40 <holding> 80103eeb: 83 c4 10 add $0x10,%esp 80103eee: 85 c0 test %eax,%eax 80103ef0: 74 4f je 80103f41 <sched+0x81> if(mycpu()->ncli != 1) 80103ef2: e8 79 fa ff ff call 80103970 <mycpu> 80103ef7: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax) 80103efe: 75 68 jne 80103f68 <sched+0xa8> if(p->state == RUNNING) 80103f00: 83 7b 0c 04 cmpl $0x4,0xc(%ebx) 80103f04: 74 55 je 80103f5b <sched+0x9b> asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103f06: 9c pushf 80103f07: 58 pop %eax if(readeflags()&FL_IF) 80103f08: f6 c4 02 test $0x2,%ah 80103f0b: 75 41 jne 80103f4e <sched+0x8e> intena = mycpu()->intena; 80103f0d: e8 5e fa ff ff call 80103970 <mycpu> swtch(&p->context, mycpu()->scheduler); 80103f12: 83 c3 1c add $0x1c,%ebx intena = mycpu()->intena; 80103f15: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi swtch(&p->context, mycpu()->scheduler); 80103f1b: e8 50 fa ff ff call 80103970 <mycpu> 80103f20: 83 ec 08 sub $0x8,%esp 80103f23: ff 70 04 pushl 0x4(%eax) 80103f26: 53 push %ebx 80103f27: e8 97 10 00 00 call 80104fc3 <swtch> mycpu()->intena = intena; 80103f2c: e8 3f fa ff ff call 80103970 <mycpu> } 80103f31: 83 c4 10 add $0x10,%esp mycpu()->intena = intena; 80103f34: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax) } 80103f3a: 8d 65 f8 lea -0x8(%ebp),%esp 80103f3d: 5b pop %ebx 80103f3e: 5e pop %esi 80103f3f: 5d pop %ebp 80103f40: c3 ret panic("sched ptable.lock"); 80103f41: 83 ec 0c sub $0xc,%esp 80103f44: 68 7b 7e 10 80 push $0x80107e7b 80103f49: e8 42 c4 ff ff call 80100390 <panic> panic("sched interruptible"); 80103f4e: 83 ec 0c sub $0xc,%esp 80103f51: 68 a7 7e 10 80 push $0x80107ea7 80103f56: e8 35 c4 ff ff call 80100390 <panic> panic("sched running"); 80103f5b: 83 ec 0c sub $0xc,%esp 80103f5e: 68 99 7e 10 80 push $0x80107e99 80103f63: e8 28 c4 ff ff call 80100390 <panic> panic("sched locks"); 80103f68: 83 ec 0c sub $0xc,%esp 80103f6b: 68 8d 7e 10 80 push $0x80107e8d 80103f70: e8 1b c4 ff ff call 80100390 <panic> 80103f75: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103f7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103f80 <exit>: { 80103f80: f3 0f 1e fb endbr32 80103f84: 55 push %ebp 80103f85: 89 e5 mov %esp,%ebp 80103f87: 57 push %edi 80103f88: 56 push %esi 80103f89: 53 push %ebx 80103f8a: 83 ec 0c sub $0xc,%esp pushcli(); 80103f8d: e8 fe 0b 00 00 call 80104b90 <pushcli> c = mycpu(); 80103f92: e8 d9 f9 ff ff call 80103970 <mycpu> p = c->proc; 80103f97: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103f9d: e8 3e 0c 00 00 call 80104be0 <popcli> if(curproc == initproc) 80103fa2: 8d 73 28 lea 0x28(%ebx),%esi 80103fa5: 8d 7b 68 lea 0x68(%ebx),%edi 80103fa8: 39 1d b8 b5 10 80 cmp %ebx,0x8010b5b8 80103fae: 0f 84 12 01 00 00 je 801040c6 <exit+0x146> 80103fb4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(curproc->ofile[fd]){ 80103fb8: 8b 06 mov (%esi),%eax 80103fba: 85 c0 test %eax,%eax 80103fbc: 74 12 je 80103fd0 <exit+0x50> fileclose(curproc->ofile[fd]); 80103fbe: 83 ec 0c sub $0xc,%esp 80103fc1: 50 push %eax 80103fc2: e8 09 cf ff ff call 80100ed0 <fileclose> curproc->ofile[fd] = 0; 80103fc7: c7 06 00 00 00 00 movl $0x0,(%esi) 80103fcd: 83 c4 10 add $0x10,%esp for(fd = 0; fd < NOFILE; fd++){ 80103fd0: 83 c6 04 add $0x4,%esi 80103fd3: 39 f7 cmp %esi,%edi 80103fd5: 75 e1 jne 80103fb8 <exit+0x38> begin_op(); 80103fd7: e8 64 ed ff ff call 80102d40 <begin_op> iput(curproc->cwd); 80103fdc: 83 ec 0c sub $0xc,%esp 80103fdf: ff 73 68 pushl 0x68(%ebx) 80103fe2: e8 b9 d8 ff ff call 801018a0 <iput> end_op(); 80103fe7: e8 c4 ed ff ff call 80102db0 <end_op> curproc->cwd = 0; 80103fec: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx) acquire(&ptable.lock); 80103ff3: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 80103ffa: e8 91 0c 00 00 call 80104c90 <acquire> wakeup1(curproc->parent); 80103fff: 8b 53 14 mov 0x14(%ebx),%edx 80104002: 83 c4 10 add $0x10,%esp static void wakeup1(void *chan) { struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104005: b8 54 3d 11 80 mov $0x80113d54,%eax 8010400a: eb 10 jmp 8010401c <exit+0x9c> 8010400c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104010: 05 b4 00 00 00 add $0xb4,%eax 80104015: 3d 54 6a 11 80 cmp $0x80116a54,%eax 8010401a: 74 1e je 8010403a <exit+0xba> if(p->state == SLEEPING && p->chan == chan) 8010401c: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80104020: 75 ee jne 80104010 <exit+0x90> 80104022: 3b 50 20 cmp 0x20(%eax),%edx 80104025: 75 e9 jne 80104010 <exit+0x90> p->state = RUNNABLE; 80104027: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010402e: 05 b4 00 00 00 add $0xb4,%eax 80104033: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80104038: 75 e2 jne 8010401c <exit+0x9c> p->parent = initproc; 8010403a: 8b 0d b8 b5 10 80 mov 0x8010b5b8,%ecx for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104040: ba 54 3d 11 80 mov $0x80113d54,%edx 80104045: eb 17 jmp 8010405e <exit+0xde> 80104047: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010404e: 66 90 xchg %ax,%ax 80104050: 81 c2 b4 00 00 00 add $0xb4,%edx 80104056: 81 fa 54 6a 11 80 cmp $0x80116a54,%edx 8010405c: 74 3a je 80104098 <exit+0x118> if(p->parent == curproc){ 8010405e: 39 5a 14 cmp %ebx,0x14(%edx) 80104061: 75 ed jne 80104050 <exit+0xd0> if(p->state == ZOMBIE) 80104063: 83 7a 0c 05 cmpl $0x5,0xc(%edx) p->parent = initproc; 80104067: 89 4a 14 mov %ecx,0x14(%edx) if(p->state == ZOMBIE) 8010406a: 75 e4 jne 80104050 <exit+0xd0> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010406c: b8 54 3d 11 80 mov $0x80113d54,%eax 80104071: eb 11 jmp 80104084 <exit+0x104> 80104073: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104077: 90 nop 80104078: 05 b4 00 00 00 add $0xb4,%eax 8010407d: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80104082: 74 cc je 80104050 <exit+0xd0> if(p->state == SLEEPING && p->chan == chan) 80104084: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80104088: 75 ee jne 80104078 <exit+0xf8> 8010408a: 3b 48 20 cmp 0x20(%eax),%ecx 8010408d: 75 e9 jne 80104078 <exit+0xf8> p->state = RUNNABLE; 8010408f: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) 80104096: eb e0 jmp 80104078 <exit+0xf8> curproc->etime = ticks; //endtime for a process 80104098: a1 a0 72 11 80 mov 0x801172a0,%eax curproc->state = ZOMBIE; 8010409d: c7 43 0c 05 00 00 00 movl $0x5,0xc(%ebx) curproc->cur_q=-1; 801040a4: c7 83 9c 00 00 00 ff movl $0xffffffff,0x9c(%ebx) 801040ab: ff ff ff curproc->etime = ticks; //endtime for a process 801040ae: 89 83 84 00 00 00 mov %eax,0x84(%ebx) sched(); 801040b4: e8 07 fe ff ff call 80103ec0 <sched> panic("zombie exit"); 801040b9: 83 ec 0c sub $0xc,%esp 801040bc: 68 c8 7e 10 80 push $0x80107ec8 801040c1: e8 ca c2 ff ff call 80100390 <panic> panic("init exiting"); 801040c6: 83 ec 0c sub $0xc,%esp 801040c9: 68 bb 7e 10 80 push $0x80107ebb 801040ce: e8 bd c2 ff ff call 80100390 <panic> 801040d3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801040da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801040e0 <yield>: { 801040e0: f3 0f 1e fb endbr32 801040e4: 55 push %ebp 801040e5: 89 e5 mov %esp,%ebp 801040e7: 53 push %ebx 801040e8: 83 ec 10 sub $0x10,%esp acquire(&ptable.lock); //DOC: yieldlock 801040eb: 68 20 3d 11 80 push $0x80113d20 801040f0: e8 9b 0b 00 00 call 80104c90 <acquire> pushcli(); 801040f5: e8 96 0a 00 00 call 80104b90 <pushcli> c = mycpu(); 801040fa: e8 71 f8 ff ff call 80103970 <mycpu> p = c->proc; 801040ff: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80104105: e8 d6 0a 00 00 call 80104be0 <popcli> myproc()->state = RUNNABLE; 8010410a: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) sched(); 80104111: e8 aa fd ff ff call 80103ec0 <sched> release(&ptable.lock); 80104116: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 8010411d: e8 2e 0c 00 00 call 80104d50 <release> } 80104122: 8b 5d fc mov -0x4(%ebp),%ebx 80104125: 83 c4 10 add $0x10,%esp 80104128: c9 leave 80104129: c3 ret 8010412a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104130 <set_priority>: { 80104130: f3 0f 1e fb endbr32 80104134: 55 push %ebp 80104135: 89 e5 mov %esp,%ebp 80104137: 56 push %esi 80104138: 8b 75 08 mov 0x8(%ebp),%esi 8010413b: 53 push %ebx 8010413c: 8b 5d 0c mov 0xc(%ebp),%ebx if(new_priority<0 || new_priority>100 || pid<0) 8010413f: 83 fe 64 cmp $0x64,%esi 80104142: 77 7c ja 801041c0 <set_priority+0x90> 80104144: 85 db test %ebx,%ebx 80104146: 78 78 js 801041c0 <set_priority+0x90> acquire(&ptable.lock); 80104148: 83 ec 0c sub $0xc,%esp 8010414b: 68 20 3d 11 80 push $0x80113d20 80104150: e8 3b 0b 00 00 call 80104c90 <acquire> 80104155: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104158: b8 54 3d 11 80 mov $0x80113d54,%eax 8010415d: eb 0d jmp 8010416c <set_priority+0x3c> 8010415f: 90 nop 80104160: 05 b4 00 00 00 add $0xb4,%eax 80104165: 3d 54 6a 11 80 cmp $0x80116a54,%eax 8010416a: 74 44 je 801041b0 <set_priority+0x80> if(p->pid==pid) 8010416c: 39 58 10 cmp %ebx,0x10(%eax) 8010416f: 75 ef jne 80104160 <set_priority+0x30> release(&ptable.lock); 80104171: 83 ec 0c sub $0xc,%esp int old_priority=p->priority; 80104174: 8b 98 8c 00 00 00 mov 0x8c(%eax),%ebx p->priority = new_priority; 8010417a: 89 b0 8c 00 00 00 mov %esi,0x8c(%eax) release(&ptable.lock); 80104180: 68 20 3d 11 80 push $0x80113d20 80104185: e8 c6 0b 00 00 call 80104d50 <release> if(new_priority < old_priority) //if oldpriority is greater then we have to again schedule 8010418a: 83 c4 10 add $0x10,%esp 8010418d: 39 de cmp %ebx,%esi 8010418f: 7c 0f jl 801041a0 <set_priority+0x70> } 80104191: 8d 65 f8 lea -0x8(%ebp),%esp 80104194: 89 d8 mov %ebx,%eax 80104196: 5b pop %ebx 80104197: 5e pop %esi 80104198: 5d pop %ebp 80104199: c3 ret 8010419a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi yield(); 801041a0: e8 3b ff ff ff call 801040e0 <yield> } 801041a5: 8d 65 f8 lea -0x8(%ebp),%esp 801041a8: 89 d8 mov %ebx,%eax 801041aa: 5b pop %ebx 801041ab: 5e pop %esi 801041ac: 5d pop %ebp 801041ad: c3 ret 801041ae: 66 90 xchg %ax,%ax release(&ptable.lock); 801041b0: 83 ec 0c sub $0xc,%esp 801041b3: 68 20 3d 11 80 push $0x80113d20 801041b8: e8 93 0b 00 00 call 80104d50 <release> return -1; 801041bd: 83 c4 10 add $0x10,%esp 801041c0: bb ff ff ff ff mov $0xffffffff,%ebx 801041c5: eb ca jmp 80104191 <set_priority+0x61> 801041c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801041ce: 66 90 xchg %ax,%ax 801041d0 <sleep>: { 801041d0: f3 0f 1e fb endbr32 801041d4: 55 push %ebp 801041d5: 89 e5 mov %esp,%ebp 801041d7: 57 push %edi 801041d8: 56 push %esi 801041d9: 53 push %ebx 801041da: 83 ec 0c sub $0xc,%esp 801041dd: 8b 7d 08 mov 0x8(%ebp),%edi 801041e0: 8b 75 0c mov 0xc(%ebp),%esi pushcli(); 801041e3: e8 a8 09 00 00 call 80104b90 <pushcli> c = mycpu(); 801041e8: e8 83 f7 ff ff call 80103970 <mycpu> p = c->proc; 801041ed: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 801041f3: e8 e8 09 00 00 call 80104be0 <popcli> if(p == 0) 801041f8: 85 db test %ebx,%ebx 801041fa: 0f 84 83 00 00 00 je 80104283 <sleep+0xb3> if(lk == 0) 80104200: 85 f6 test %esi,%esi 80104202: 74 72 je 80104276 <sleep+0xa6> if(lk != &ptable.lock){ //DOC: sleeplock0 80104204: 81 fe 20 3d 11 80 cmp $0x80113d20,%esi 8010420a: 74 4c je 80104258 <sleep+0x88> acquire(&ptable.lock); //DOC: sleeplock1 8010420c: 83 ec 0c sub $0xc,%esp 8010420f: 68 20 3d 11 80 push $0x80113d20 80104214: e8 77 0a 00 00 call 80104c90 <acquire> release(lk); 80104219: 89 34 24 mov %esi,(%esp) 8010421c: e8 2f 0b 00 00 call 80104d50 <release> p->chan = chan; 80104221: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 80104224: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 8010422b: e8 90 fc ff ff call 80103ec0 <sched> p->chan = 0; 80104230: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) release(&ptable.lock); 80104237: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) 8010423e: e8 0d 0b 00 00 call 80104d50 <release> acquire(lk); 80104243: 89 75 08 mov %esi,0x8(%ebp) 80104246: 83 c4 10 add $0x10,%esp } 80104249: 8d 65 f4 lea -0xc(%ebp),%esp 8010424c: 5b pop %ebx 8010424d: 5e pop %esi 8010424e: 5f pop %edi 8010424f: 5d pop %ebp acquire(lk); 80104250: e9 3b 0a 00 00 jmp 80104c90 <acquire> 80104255: 8d 76 00 lea 0x0(%esi),%esi p->chan = chan; 80104258: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 8010425b: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 80104262: e8 59 fc ff ff call 80103ec0 <sched> p->chan = 0; 80104267: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) } 8010426e: 8d 65 f4 lea -0xc(%ebp),%esp 80104271: 5b pop %ebx 80104272: 5e pop %esi 80104273: 5f pop %edi 80104274: 5d pop %ebp 80104275: c3 ret panic("sleep without lk"); 80104276: 83 ec 0c sub $0xc,%esp 80104279: 68 da 7e 10 80 push $0x80107eda 8010427e: e8 0d c1 ff ff call 80100390 <panic> panic("sleep"); 80104283: 83 ec 0c sub $0xc,%esp 80104286: 68 d4 7e 10 80 push $0x80107ed4 8010428b: e8 00 c1 ff ff call 80100390 <panic> 80104290 <wait>: { 80104290: f3 0f 1e fb endbr32 80104294: 55 push %ebp 80104295: 89 e5 mov %esp,%ebp 80104297: 56 push %esi 80104298: 53 push %ebx pushcli(); 80104299: e8 f2 08 00 00 call 80104b90 <pushcli> c = mycpu(); 8010429e: e8 cd f6 ff ff call 80103970 <mycpu> p = c->proc; 801042a3: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 801042a9: e8 32 09 00 00 call 80104be0 <popcli> acquire(&ptable.lock); 801042ae: 83 ec 0c sub $0xc,%esp 801042b1: 68 20 3d 11 80 push $0x80113d20 801042b6: e8 d5 09 00 00 call 80104c90 <acquire> 801042bb: 83 c4 10 add $0x10,%esp havekids = 0; 801042be: 31 c0 xor %eax,%eax for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801042c0: bb 54 3d 11 80 mov $0x80113d54,%ebx 801042c5: eb 17 jmp 801042de <wait+0x4e> 801042c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801042ce: 66 90 xchg %ax,%ax 801042d0: 81 c3 b4 00 00 00 add $0xb4,%ebx 801042d6: 81 fb 54 6a 11 80 cmp $0x80116a54,%ebx 801042dc: 74 1e je 801042fc <wait+0x6c> if(p->parent != curproc) 801042de: 39 73 14 cmp %esi,0x14(%ebx) 801042e1: 75 ed jne 801042d0 <wait+0x40> if(p->state == ZOMBIE){ 801042e3: 83 7b 0c 05 cmpl $0x5,0xc(%ebx) 801042e7: 74 37 je 80104320 <wait+0x90> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801042e9: 81 c3 b4 00 00 00 add $0xb4,%ebx havekids = 1; 801042ef: b8 01 00 00 00 mov $0x1,%eax for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801042f4: 81 fb 54 6a 11 80 cmp $0x80116a54,%ebx 801042fa: 75 e2 jne 801042de <wait+0x4e> if(!havekids || curproc->killed){ 801042fc: 85 c0 test %eax,%eax 801042fe: 74 76 je 80104376 <wait+0xe6> 80104300: 8b 46 24 mov 0x24(%esi),%eax 80104303: 85 c0 test %eax,%eax 80104305: 75 6f jne 80104376 <wait+0xe6> sleep(curproc, &ptable.lock); //DOC: wait-sleep 80104307: 83 ec 08 sub $0x8,%esp 8010430a: 68 20 3d 11 80 push $0x80113d20 8010430f: 56 push %esi 80104310: e8 bb fe ff ff call 801041d0 <sleep> havekids = 0; 80104315: 83 c4 10 add $0x10,%esp 80104318: eb a4 jmp 801042be <wait+0x2e> 8010431a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi kfree(p->kstack); 80104320: 83 ec 0c sub $0xc,%esp 80104323: ff 73 08 pushl 0x8(%ebx) pid = p->pid; 80104326: 8b 73 10 mov 0x10(%ebx),%esi kfree(p->kstack); 80104329: e8 52 e1 ff ff call 80102480 <kfree> freevm(p->pgdir); 8010432e: 5a pop %edx 8010432f: ff 73 04 pushl 0x4(%ebx) p->kstack = 0; 80104332: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) freevm(p->pgdir); 80104339: e8 b2 32 00 00 call 801075f0 <freevm> release(&ptable.lock); 8010433e: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) p->pid = 0; 80104345: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) p->parent = 0; 8010434c: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->name[0] = 0; 80104353: c6 43 6c 00 movb $0x0,0x6c(%ebx) p->killed = 0; 80104357: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) p->state = UNUSED; 8010435e: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) release(&ptable.lock); 80104365: e8 e6 09 00 00 call 80104d50 <release> return pid; 8010436a: 83 c4 10 add $0x10,%esp } 8010436d: 8d 65 f8 lea -0x8(%ebp),%esp 80104370: 89 f0 mov %esi,%eax 80104372: 5b pop %ebx 80104373: 5e pop %esi 80104374: 5d pop %ebp 80104375: c3 ret release(&ptable.lock); 80104376: 83 ec 0c sub $0xc,%esp return -1; 80104379: be ff ff ff ff mov $0xffffffff,%esi release(&ptable.lock); 8010437e: 68 20 3d 11 80 push $0x80113d20 80104383: e8 c8 09 00 00 call 80104d50 <release> return -1; 80104388: 83 c4 10 add $0x10,%esp 8010438b: eb e0 jmp 8010436d <wait+0xdd> 8010438d: 8d 76 00 lea 0x0(%esi),%esi 80104390 <waitx>: { 80104390: f3 0f 1e fb endbr32 80104394: 55 push %ebp 80104395: 89 e5 mov %esp,%ebp 80104397: 56 push %esi 80104398: 53 push %ebx pushcli(); 80104399: e8 f2 07 00 00 call 80104b90 <pushcli> c = mycpu(); 8010439e: e8 cd f5 ff ff call 80103970 <mycpu> p = c->proc; 801043a3: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 801043a9: e8 32 08 00 00 call 80104be0 <popcli> acquire(&ptable.lock); 801043ae: 83 ec 0c sub $0xc,%esp 801043b1: 68 20 3d 11 80 push $0x80113d20 801043b6: e8 d5 08 00 00 call 80104c90 <acquire> 801043bb: 83 c4 10 add $0x10,%esp havekids = 0; 801043be: 31 c0 xor %eax,%eax for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801043c0: bb 54 3d 11 80 mov $0x80113d54,%ebx 801043c5: eb 17 jmp 801043de <waitx+0x4e> 801043c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801043ce: 66 90 xchg %ax,%ax 801043d0: 81 c3 b4 00 00 00 add $0xb4,%ebx 801043d6: 81 fb 54 6a 11 80 cmp $0x80116a54,%ebx 801043dc: 74 1e je 801043fc <waitx+0x6c> if (p->parent != curproc) 801043de: 39 73 14 cmp %esi,0x14(%ebx) 801043e1: 75 ed jne 801043d0 <waitx+0x40> if (p->state == ZOMBIE) 801043e3: 83 7b 0c 05 cmpl $0x5,0xc(%ebx) 801043e7: 74 3f je 80104428 <waitx+0x98> for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801043e9: 81 c3 b4 00 00 00 add $0xb4,%ebx havekids = 1; 801043ef: b8 01 00 00 00 mov $0x1,%eax for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801043f4: 81 fb 54 6a 11 80 cmp $0x80116a54,%ebx 801043fa: 75 e2 jne 801043de <waitx+0x4e> if (!havekids || curproc->killed) 801043fc: 85 c0 test %eax,%eax 801043fe: 0f 84 9f 00 00 00 je 801044a3 <waitx+0x113> 80104404: 8b 46 24 mov 0x24(%esi),%eax 80104407: 85 c0 test %eax,%eax 80104409: 0f 85 94 00 00 00 jne 801044a3 <waitx+0x113> sleep(curproc, &ptable.lock); //DOC: wait-sleep 8010440f: 83 ec 08 sub $0x8,%esp 80104412: 68 20 3d 11 80 push $0x80113d20 80104417: 56 push %esi 80104418: e8 b3 fd ff ff call 801041d0 <sleep> havekids = 0; 8010441d: 83 c4 10 add $0x10,%esp 80104420: eb 9c jmp 801043be <waitx+0x2e> 80104422: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *wtime=p->etime - p->ctime - p->iotime - p->rtime; 80104428: 8b 55 08 mov 0x8(%ebp),%edx 8010442b: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax kfree(p->kstack); 80104431: 83 ec 0c sub $0xc,%esp *wtime=p->etime - p->ctime - p->iotime - p->rtime; 80104434: 2b 43 7c sub 0x7c(%ebx),%eax 80104437: 2b 83 88 00 00 00 sub 0x88(%ebx),%eax 8010443d: 2b 83 80 00 00 00 sub 0x80(%ebx),%eax 80104443: 89 02 mov %eax,(%edx) *rtime=p->rtime; 80104445: 8b 45 0c mov 0xc(%ebp),%eax 80104448: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 8010444e: 89 10 mov %edx,(%eax) pid = p->pid; 80104450: 8b 73 10 mov 0x10(%ebx),%esi kfree(p->kstack); 80104453: ff 73 08 pushl 0x8(%ebx) 80104456: e8 25 e0 ff ff call 80102480 <kfree> freevm(p->pgdir); 8010445b: 5a pop %edx 8010445c: ff 73 04 pushl 0x4(%ebx) p->kstack = 0; 8010445f: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) freevm(p->pgdir); 80104466: e8 85 31 00 00 call 801075f0 <freevm> release(&ptable.lock); 8010446b: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp) p->pid = 0; 80104472: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) p->parent = 0; 80104479: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->name[0] = 0; 80104480: c6 43 6c 00 movb $0x0,0x6c(%ebx) p->killed = 0; 80104484: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) p->state = UNUSED; 8010448b: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) release(&ptable.lock); 80104492: e8 b9 08 00 00 call 80104d50 <release> return pid; 80104497: 83 c4 10 add $0x10,%esp } 8010449a: 8d 65 f8 lea -0x8(%ebp),%esp 8010449d: 89 f0 mov %esi,%eax 8010449f: 5b pop %ebx 801044a0: 5e pop %esi 801044a1: 5d pop %ebp 801044a2: c3 ret release(&ptable.lock); 801044a3: 83 ec 0c sub $0xc,%esp return -1; 801044a6: be ff ff ff ff mov $0xffffffff,%esi release(&ptable.lock); 801044ab: 68 20 3d 11 80 push $0x80113d20 801044b0: e8 9b 08 00 00 call 80104d50 <release> return -1; 801044b5: 83 c4 10 add $0x10,%esp 801044b8: eb e0 jmp 8010449a <waitx+0x10a> 801044ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801044c0 <wakeup>: } // Wake up all processes sleeping on chan. void wakeup(void *chan) { 801044c0: f3 0f 1e fb endbr32 801044c4: 55 push %ebp 801044c5: 89 e5 mov %esp,%ebp 801044c7: 53 push %ebx 801044c8: 83 ec 10 sub $0x10,%esp 801044cb: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ptable.lock); 801044ce: 68 20 3d 11 80 push $0x80113d20 801044d3: e8 b8 07 00 00 call 80104c90 <acquire> 801044d8: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044db: b8 54 3d 11 80 mov $0x80113d54,%eax 801044e0: eb 12 jmp 801044f4 <wakeup+0x34> 801044e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801044e8: 05 b4 00 00 00 add $0xb4,%eax 801044ed: 3d 54 6a 11 80 cmp $0x80116a54,%eax 801044f2: 74 1e je 80104512 <wakeup+0x52> if(p->state == SLEEPING && p->chan == chan) 801044f4: 83 78 0c 02 cmpl $0x2,0xc(%eax) 801044f8: 75 ee jne 801044e8 <wakeup+0x28> 801044fa: 3b 58 20 cmp 0x20(%eax),%ebx 801044fd: 75 e9 jne 801044e8 <wakeup+0x28> p->state = RUNNABLE; 801044ff: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104506: 05 b4 00 00 00 add $0xb4,%eax 8010450b: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80104510: 75 e2 jne 801044f4 <wakeup+0x34> wakeup1(chan); release(&ptable.lock); 80104512: c7 45 08 20 3d 11 80 movl $0x80113d20,0x8(%ebp) } 80104519: 8b 5d fc mov -0x4(%ebp),%ebx 8010451c: c9 leave release(&ptable.lock); 8010451d: e9 2e 08 00 00 jmp 80104d50 <release> 80104522: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104529: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104530 <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) { 80104530: f3 0f 1e fb endbr32 80104534: 55 push %ebp 80104535: 89 e5 mov %esp,%ebp 80104537: 53 push %ebx 80104538: 83 ec 10 sub $0x10,%esp 8010453b: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *p; acquire(&ptable.lock); 8010453e: 68 20 3d 11 80 push $0x80113d20 80104543: e8 48 07 00 00 call 80104c90 <acquire> 80104548: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 8010454b: b8 54 3d 11 80 mov $0x80113d54,%eax 80104550: eb 12 jmp 80104564 <kill+0x34> 80104552: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104558: 05 b4 00 00 00 add $0xb4,%eax 8010455d: 3d 54 6a 11 80 cmp $0x80116a54,%eax 80104562: 74 34 je 80104598 <kill+0x68> if(p->pid == pid){ 80104564: 39 58 10 cmp %ebx,0x10(%eax) 80104567: 75 ef jne 80104558 <kill+0x28> p->killed = 1; // Wake process from sleep if necessary. if(p->state == SLEEPING) 80104569: 83 78 0c 02 cmpl $0x2,0xc(%eax) p->killed = 1; 8010456d: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) if(p->state == SLEEPING) 80104574: 75 07 jne 8010457d <kill+0x4d> p->state = RUNNABLE; 80104576: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 8010457d: 83 ec 0c sub $0xc,%esp 80104580: 68 20 3d 11 80 push $0x80113d20 80104585: e8 c6 07 00 00 call 80104d50 <release> return 0; } } release(&ptable.lock); return -1; } 8010458a: 8b 5d fc mov -0x4(%ebp),%ebx return 0; 8010458d: 83 c4 10 add $0x10,%esp 80104590: 31 c0 xor %eax,%eax } 80104592: c9 leave 80104593: c3 ret 80104594: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi release(&ptable.lock); 80104598: 83 ec 0c sub $0xc,%esp 8010459b: 68 20 3d 11 80 push $0x80113d20 801045a0: e8 ab 07 00 00 call 80104d50 <release> } 801045a5: 8b 5d fc mov -0x4(%ebp),%ebx return -1; 801045a8: 83 c4 10 add $0x10,%esp 801045ab: b8 ff ff ff ff mov $0xffffffff,%eax } 801045b0: c9 leave 801045b1: c3 ret 801045b2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801045b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801045c0 <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) { 801045c0: f3 0f 1e fb endbr32 801045c4: 55 push %ebp 801045c5: 89 e5 mov %esp,%ebp 801045c7: 57 push %edi 801045c8: 56 push %esi 801045c9: 8d 75 e8 lea -0x18(%ebp),%esi 801045cc: 53 push %ebx 801045cd: bb c0 3d 11 80 mov $0x80113dc0,%ebx 801045d2: 83 ec 3c sub $0x3c,%esp 801045d5: eb 2b jmp 80104602 <procdump+0x42> 801045d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801045de: 66 90 xchg %ax,%ax 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"); 801045e0: 83 ec 0c sub $0xc,%esp 801045e3: 68 a3 82 10 80 push $0x801082a3 801045e8: e8 c3 c0 ff ff call 801006b0 <cprintf> 801045ed: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801045f0: 81 c3 b4 00 00 00 add $0xb4,%ebx 801045f6: 81 fb c0 6a 11 80 cmp $0x80116ac0,%ebx 801045fc: 0f 84 8e 00 00 00 je 80104690 <procdump+0xd0> if(p->state == UNUSED) 80104602: 8b 43 a0 mov -0x60(%ebx),%eax 80104605: 85 c0 test %eax,%eax 80104607: 74 e7 je 801045f0 <procdump+0x30> state = "???"; 80104609: ba eb 7e 10 80 mov $0x80107eeb,%edx if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 8010460e: 83 f8 05 cmp $0x5,%eax 80104611: 77 11 ja 80104624 <procdump+0x64> 80104613: 8b 14 85 7c 7f 10 80 mov -0x7fef8084(,%eax,4),%edx state = "???"; 8010461a: b8 eb 7e 10 80 mov $0x80107eeb,%eax 8010461f: 85 d2 test %edx,%edx 80104621: 0f 44 d0 cmove %eax,%edx cprintf("%d %s %s", p->pid, state, p->name); 80104624: 53 push %ebx 80104625: 52 push %edx 80104626: ff 73 a4 pushl -0x5c(%ebx) 80104629: 68 ef 7e 10 80 push $0x80107eef 8010462e: e8 7d c0 ff ff call 801006b0 <cprintf> if(p->state == SLEEPING){ 80104633: 83 c4 10 add $0x10,%esp 80104636: 83 7b a0 02 cmpl $0x2,-0x60(%ebx) 8010463a: 75 a4 jne 801045e0 <procdump+0x20> getcallerpcs((uint*)p->context->ebp+2, pc); 8010463c: 83 ec 08 sub $0x8,%esp 8010463f: 8d 45 c0 lea -0x40(%ebp),%eax 80104642: 8d 7d c0 lea -0x40(%ebp),%edi 80104645: 50 push %eax 80104646: 8b 43 b0 mov -0x50(%ebx),%eax 80104649: 8b 40 0c mov 0xc(%eax),%eax 8010464c: 83 c0 08 add $0x8,%eax 8010464f: 50 push %eax 80104650: e8 db 04 00 00 call 80104b30 <getcallerpcs> for(i=0; i<10 && pc[i] != 0; i++) 80104655: 83 c4 10 add $0x10,%esp 80104658: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010465f: 90 nop 80104660: 8b 17 mov (%edi),%edx 80104662: 85 d2 test %edx,%edx 80104664: 0f 84 76 ff ff ff je 801045e0 <procdump+0x20> cprintf(" %p", pc[i]); 8010466a: 83 ec 08 sub $0x8,%esp 8010466d: 83 c7 04 add $0x4,%edi 80104670: 52 push %edx 80104671: 68 41 79 10 80 push $0x80107941 80104676: e8 35 c0 ff ff call 801006b0 <cprintf> for(i=0; i<10 && pc[i] != 0; i++) 8010467b: 83 c4 10 add $0x10,%esp 8010467e: 39 fe cmp %edi,%esi 80104680: 75 de jne 80104660 <procdump+0xa0> 80104682: e9 59 ff ff ff jmp 801045e0 <procdump+0x20> 80104687: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010468e: 66 90 xchg %ax,%ax } } 80104690: 8d 65 f4 lea -0xc(%ebp),%esp 80104693: 5b pop %ebx 80104694: 5e pop %esi 80104695: 5f pop %edi 80104696: 5d pop %ebp 80104697: c3 ret 80104698: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010469f: 90 nop 801046a0 <my_strcpy>: char *my_strcpy(char *destination, char *source) { 801046a0: f3 0f 1e fb endbr32 801046a4: 55 push %ebp 801046a5: 89 e5 mov %esp,%ebp 801046a7: 53 push %ebx 801046a8: 8b 55 0c mov 0xc(%ebp),%edx 801046ab: 8b 5d 08 mov 0x8(%ebp),%ebx char *start = destination; while (*source != '\0') 801046ae: 0f b6 02 movzbl (%edx),%eax 801046b1: 89 d9 mov %ebx,%ecx 801046b3: 84 c0 test %al,%al 801046b5: 74 18 je 801046cf <my_strcpy+0x2f> 801046b7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801046be: 66 90 xchg %ax,%ax { *destination = *source; destination++; source++; 801046c0: 83 c2 01 add $0x1,%edx *destination = *source; 801046c3: 88 01 mov %al,(%ecx) destination++; 801046c5: 83 c1 01 add $0x1,%ecx while (*source != '\0') 801046c8: 0f b6 02 movzbl (%edx),%eax 801046cb: 84 c0 test %al,%al 801046cd: 75 f1 jne 801046c0 <my_strcpy+0x20> } *destination = '\0'; // add '\0' at the end 801046cf: c6 01 00 movb $0x0,(%ecx) return start; } 801046d2: 89 d8 mov %ebx,%eax 801046d4: 5b pop %ebx 801046d5: 5d pop %ebp 801046d6: c3 ret 801046d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801046de: 66 90 xchg %ax,%ax 801046e0 <ps>: int ps(struct procstatus *arr) { 801046e0: f3 0f 1e fb endbr32 801046e4: 55 push %ebp 801046e5: 89 e5 mov %esp,%ebp 801046e7: 57 push %edi 801046e8: 56 push %esi 801046e9: 53 push %ebx 801046ea: 83 ec 28 sub $0x28,%esp struct proc *p; int i = 0; acquire(&ptable.lock); 801046ed: 68 20 3d 11 80 push $0x80113d20 801046f2: e8 99 05 00 00 call 80104c90 <acquire> int i = 0; 801046f7: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) acquire(&ptable.lock); 801046fe: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104701: b8 54 3d 11 80 mov $0x80113d54,%eax 80104706: eb 7c jmp 80104784 <ps+0xa4> 80104708: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010470f: 90 nop } if (p->state == UNUSED) { my_strcpy(arr[i].state, "UNUSED"); } if (p->state == EMBRYO) 80104710: 83 f9 01 cmp $0x1,%ecx 80104713: 0f 84 01 01 00 00 je 8010481a <ps+0x13a> { my_strcpy(arr[i].state, "EMBRYO"); } arr[i].n_run=p->n_run; 80104719: 8b 88 98 00 00 00 mov 0x98(%eax),%ecx arr[i].q[0]=p->q[0]; arr[i].q[1] = p->q[1]; arr[i].q[2] = p->q[2]; arr[i].q[3] = p->q[3]; arr[i].q[4] = p->q[4]; i++; 8010471f: 83 45 e0 01 addl $0x1,-0x20(%ebp) arr[i].n_run=p->n_run; 80104723: 89 4a 20 mov %ecx,0x20(%edx) arr[i].cur_q=p->cur_q; 80104726: 8b 88 9c 00 00 00 mov 0x9c(%eax),%ecx 8010472c: 89 4a 24 mov %ecx,0x24(%edx) arr[i].rtime=p->rtime; 8010472f: 8b 88 80 00 00 00 mov 0x80(%eax),%ecx 80104735: 89 4a 14 mov %ecx,0x14(%edx) arr[i].w_timeforrunning=ticks - p->lastexecuted; 80104738: 8b 0d a0 72 11 80 mov 0x801172a0,%ecx 8010473e: 2b 88 94 00 00 00 sub 0x94(%eax),%ecx 80104744: 89 4a 1c mov %ecx,0x1c(%edx) arr[i].q[0]=p->q[0]; 80104747: 8b 88 a0 00 00 00 mov 0xa0(%eax),%ecx 8010474d: 89 4a 28 mov %ecx,0x28(%edx) arr[i].q[1] = p->q[1]; 80104750: 8b 88 a4 00 00 00 mov 0xa4(%eax),%ecx 80104756: 89 4a 2c mov %ecx,0x2c(%edx) arr[i].q[2] = p->q[2]; 80104759: 8b 88 a8 00 00 00 mov 0xa8(%eax),%ecx 8010475f: 89 4a 30 mov %ecx,0x30(%edx) arr[i].q[3] = p->q[3]; 80104762: 8b 88 ac 00 00 00 mov 0xac(%eax),%ecx 80104768: 89 4a 34 mov %ecx,0x34(%edx) arr[i].q[4] = p->q[4]; 8010476b: 8b 88 b0 00 00 00 mov 0xb0(%eax),%ecx 80104771: 89 4a 38 mov %ecx,0x38(%edx) for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104774: 05 b4 00 00 00 add $0xb4,%eax 80104779: 3d 54 6a 11 80 cmp $0x80116a54,%eax 8010477e: 0f 84 2a 02 00 00 je 801049ae <ps+0x2ce> if(p->state==UNUSED) 80104784: 8b 50 0c mov 0xc(%eax),%edx 80104787: 85 d2 test %edx,%edx 80104789: 74 e9 je 80104774 <ps+0x94> arr[i].pid=p->pid; 8010478b: 8b 48 10 mov 0x10(%eax),%ecx 8010478e: 6b 55 e0 3c imul $0x3c,-0x20(%ebp),%edx 80104792: 03 55 08 add 0x8(%ebp),%edx 80104795: 89 0a mov %ecx,(%edx) arr[i].priority=p->priority; 80104797: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx 8010479d: 89 4a 18 mov %ecx,0x18(%edx) if(p->state==RUNNABLE) 801047a0: 8b 48 0c mov 0xc(%eax),%ecx 801047a3: 83 f9 03 cmp $0x3,%ecx 801047a6: 0f 84 b4 01 00 00 je 80104960 <ps+0x280> if (p->state == RUNNING) 801047ac: 83 f9 04 cmp $0x4,%ecx 801047af: 0f 84 5b 01 00 00 je 80104910 <ps+0x230> if (p->state == SLEEPING) 801047b5: 83 f9 02 cmp $0x2,%ecx 801047b8: 0f 84 02 01 00 00 je 801048c0 <ps+0x1e0> if (p->state == ZOMBIE) 801047be: 83 f9 05 cmp $0x5,%ecx 801047c1: 0f 84 a1 00 00 00 je 80104868 <ps+0x188> if (p->state == UNUSED) 801047c7: 85 c9 test %ecx,%ecx 801047c9: 0f 85 41 ff ff ff jne 80104710 <ps+0x30> my_strcpy(arr[i].state, "UNUSED"); 801047cf: bb 19 7f 10 80 mov $0x80107f19,%ebx while (*source != '\0') 801047d4: bf 55 00 00 00 mov $0x55,%edi my_strcpy(arr[i].state, "UNUSED"); 801047d9: 8d 4a 04 lea 0x4(%edx),%ecx 801047dc: be 4e 00 00 00 mov $0x4e,%esi while (*source != '\0') 801047e1: 89 5d e4 mov %ebx,-0x1c(%ebp) 801047e4: 89 fb mov %edi,%ebx 801047e6: 89 c7 mov %eax,%edi 801047e8: 89 f0 mov %esi,%eax 801047ea: 89 d6 mov %edx,%esi 801047ec: 89 da mov %ebx,%edx 801047ee: eb 06 jmp 801047f6 <ps+0x116> 801047f0: 89 c2 mov %eax,%edx 801047f2: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 801047f6: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 801047fa: 83 c1 01 add $0x1,%ecx source++; 801047fd: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 80104800: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 80104803: 84 c0 test %al,%al 80104805: 75 e9 jne 801047f0 <ps+0x110> *destination = '\0'; // add '\0' at the end 80104807: c6 01 00 movb $0x0,(%ecx) 8010480a: 8b 4f 0c mov 0xc(%edi),%ecx 8010480d: 89 f2 mov %esi,%edx 8010480f: 89 f8 mov %edi,%eax if (p->state == EMBRYO) 80104811: 83 f9 01 cmp $0x1,%ecx 80104814: 0f 85 ff fe ff ff jne 80104719 <ps+0x39> my_strcpy(arr[i].state, "EMBRYO"); 8010481a: bb 20 7f 10 80 mov $0x80107f20,%ebx while (*source != '\0') 8010481f: bf 45 00 00 00 mov $0x45,%edi my_strcpy(arr[i].state, "EMBRYO"); 80104824: 8d 4a 04 lea 0x4(%edx),%ecx 80104827: be 4d 00 00 00 mov $0x4d,%esi while (*source != '\0') 8010482c: 89 5d e4 mov %ebx,-0x1c(%ebp) 8010482f: 89 fb mov %edi,%ebx 80104831: 89 c7 mov %eax,%edi 80104833: 89 f0 mov %esi,%eax 80104835: 89 d6 mov %edx,%esi 80104837: 89 da mov %ebx,%edx 80104839: eb 0b jmp 80104846 <ps+0x166> 8010483b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010483f: 90 nop 80104840: 89 c2 mov %eax,%edx 80104842: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 80104846: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 8010484a: 83 c1 01 add $0x1,%ecx source++; 8010484d: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 80104850: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 80104853: 84 c0 test %al,%al 80104855: 75 e9 jne 80104840 <ps+0x160> *destination = '\0'; // add '\0' at the end 80104857: c6 01 00 movb $0x0,(%ecx) 8010485a: 89 f2 mov %esi,%edx 8010485c: 89 f8 mov %edi,%eax return start; 8010485e: e9 b6 fe ff ff jmp 80104719 <ps+0x39> 80104863: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104867: 90 nop my_strcpy(arr[i].state, "ZOMBIE"); 80104868: bb 12 7f 10 80 mov $0x80107f12,%ebx while (*source != '\0') 8010486d: bf 5a 00 00 00 mov $0x5a,%edi my_strcpy(arr[i].state, "ZOMBIE"); 80104872: 8d 4a 04 lea 0x4(%edx),%ecx 80104875: be 4f 00 00 00 mov $0x4f,%esi while (*source != '\0') 8010487a: 89 5d e4 mov %ebx,-0x1c(%ebp) 8010487d: 89 fb mov %edi,%ebx 8010487f: 89 c7 mov %eax,%edi 80104881: 89 f0 mov %esi,%eax 80104883: 89 d6 mov %edx,%esi 80104885: 89 da mov %ebx,%edx 80104887: eb 0d jmp 80104896 <ps+0x1b6> 80104889: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104890: 89 c2 mov %eax,%edx 80104892: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 80104896: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 8010489a: 83 c1 01 add $0x1,%ecx source++; 8010489d: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 801048a0: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 801048a3: 84 c0 test %al,%al 801048a5: 75 e9 jne 80104890 <ps+0x1b0> *destination = '\0'; // add '\0' at the end 801048a7: c6 01 00 movb $0x0,(%ecx) 801048aa: 89 f2 mov %esi,%edx 801048ac: 8b 4f 0c mov 0xc(%edi),%ecx 801048af: 89 f8 mov %edi,%eax return start; 801048b1: e9 11 ff ff ff jmp 801047c7 <ps+0xe7> 801048b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801048bd: 8d 76 00 lea 0x0(%esi),%esi my_strcpy(arr[i].state, "SLEEPING"); 801048c0: bb 09 7f 10 80 mov $0x80107f09,%ebx while (*source != '\0') 801048c5: bf 53 00 00 00 mov $0x53,%edi my_strcpy(arr[i].state, "SLEEPING"); 801048ca: 8d 4a 04 lea 0x4(%edx),%ecx 801048cd: be 4c 00 00 00 mov $0x4c,%esi while (*source != '\0') 801048d2: 89 5d e4 mov %ebx,-0x1c(%ebp) 801048d5: 89 fb mov %edi,%ebx 801048d7: 89 c7 mov %eax,%edi 801048d9: 89 f0 mov %esi,%eax 801048db: 89 d6 mov %edx,%esi 801048dd: 89 da mov %ebx,%edx 801048df: eb 0d jmp 801048ee <ps+0x20e> 801048e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801048e8: 89 c2 mov %eax,%edx 801048ea: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 801048ee: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 801048f2: 83 c1 01 add $0x1,%ecx source++; 801048f5: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 801048f8: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 801048fb: 84 c0 test %al,%al 801048fd: 75 e9 jne 801048e8 <ps+0x208> *destination = '\0'; // add '\0' at the end 801048ff: c6 01 00 movb $0x0,(%ecx) 80104902: 89 f2 mov %esi,%edx 80104904: 8b 4f 0c mov 0xc(%edi),%ecx 80104907: 89 f8 mov %edi,%eax return start; 80104909: e9 b0 fe ff ff jmp 801047be <ps+0xde> 8010490e: 66 90 xchg %ax,%ax my_strcpy(arr[i].state, "RUNNING"); 80104910: bb 01 7f 10 80 mov $0x80107f01,%ebx while (*source != '\0') 80104915: bf 52 00 00 00 mov $0x52,%edi my_strcpy(arr[i].state, "RUNNING"); 8010491a: 8d 4a 04 lea 0x4(%edx),%ecx 8010491d: be 55 00 00 00 mov $0x55,%esi while (*source != '\0') 80104922: 89 5d e4 mov %ebx,-0x1c(%ebp) 80104925: 89 fb mov %edi,%ebx 80104927: 89 c7 mov %eax,%edi 80104929: 89 f0 mov %esi,%eax 8010492b: 89 d6 mov %edx,%esi 8010492d: 89 da mov %ebx,%edx 8010492f: eb 0d jmp 8010493e <ps+0x25e> 80104931: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104938: 89 c2 mov %eax,%edx 8010493a: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 8010493e: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 80104942: 83 c1 01 add $0x1,%ecx source++; 80104945: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 80104948: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 8010494b: 84 c0 test %al,%al 8010494d: 75 e9 jne 80104938 <ps+0x258> *destination = '\0'; // add '\0' at the end 8010494f: c6 01 00 movb $0x0,(%ecx) 80104952: 89 f2 mov %esi,%edx 80104954: 8b 4f 0c mov 0xc(%edi),%ecx 80104957: 89 f8 mov %edi,%eax return start; 80104959: e9 57 fe ff ff jmp 801047b5 <ps+0xd5> 8010495e: 66 90 xchg %ax,%ax my_strcpy(arr[i].state,"RUNNABLE"); 80104960: bb f8 7e 10 80 mov $0x80107ef8,%ebx while (*source != '\0') 80104965: bf 52 00 00 00 mov $0x52,%edi my_strcpy(arr[i].state,"RUNNABLE"); 8010496a: 8d 4a 04 lea 0x4(%edx),%ecx 8010496d: be 55 00 00 00 mov $0x55,%esi while (*source != '\0') 80104972: 89 5d e4 mov %ebx,-0x1c(%ebp) 80104975: 89 fb mov %edi,%ebx 80104977: 89 c7 mov %eax,%edi 80104979: 89 f0 mov %esi,%eax 8010497b: 89 d6 mov %edx,%esi 8010497d: 89 da mov %ebx,%edx 8010497f: eb 0d jmp 8010498e <ps+0x2ae> 80104981: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104988: 89 c2 mov %eax,%edx 8010498a: 0f b6 43 01 movzbl 0x1(%ebx),%eax source++; 8010498e: 83 45 e4 01 addl $0x1,-0x1c(%ebp) destination++; 80104992: 83 c1 01 add $0x1,%ecx source++; 80104995: 8b 5d e4 mov -0x1c(%ebp),%ebx *destination = *source; 80104998: 88 51 ff mov %dl,-0x1(%ecx) while (*source != '\0') 8010499b: 84 c0 test %al,%al 8010499d: 75 e9 jne 80104988 <ps+0x2a8> *destination = '\0'; // add '\0' at the end 8010499f: c6 01 00 movb $0x0,(%ecx) 801049a2: 89 f2 mov %esi,%edx 801049a4: 8b 4f 0c mov 0xc(%edi),%ecx 801049a7: 89 f8 mov %edi,%eax return start; 801049a9: e9 fe fd ff ff jmp 801047ac <ps+0xcc> } release(&ptable.lock); 801049ae: 83 ec 0c sub $0xc,%esp 801049b1: 68 20 3d 11 80 push $0x80113d20 801049b6: e8 95 03 00 00 call 80104d50 <release> return i; } 801049bb: 8b 45 e0 mov -0x20(%ebp),%eax 801049be: 8d 65 f4 lea -0xc(%ebp),%esp 801049c1: 5b pop %ebx 801049c2: 5e pop %esi 801049c3: 5f pop %edi 801049c4: 5d pop %ebp 801049c5: c3 ret 801049c6: 66 90 xchg %ax,%ax 801049c8: 66 90 xchg %ax,%ax 801049ca: 66 90 xchg %ax,%ax 801049cc: 66 90 xchg %ax,%ax 801049ce: 66 90 xchg %ax,%ax 801049d0 <initsleeplock>: #include "spinlock.h" #include "sleeplock.h" void initsleeplock(struct sleeplock *lk, char *name) { 801049d0: f3 0f 1e fb endbr32 801049d4: 55 push %ebp 801049d5: 89 e5 mov %esp,%ebp 801049d7: 53 push %ebx 801049d8: 83 ec 0c sub $0xc,%esp 801049db: 8b 5d 08 mov 0x8(%ebp),%ebx initlock(&lk->lk, "sleep lock"); 801049de: 68 94 7f 10 80 push $0x80107f94 801049e3: 8d 43 04 lea 0x4(%ebx),%eax 801049e6: 50 push %eax 801049e7: e8 24 01 00 00 call 80104b10 <initlock> lk->name = name; 801049ec: 8b 45 0c mov 0xc(%ebp),%eax lk->locked = 0; 801049ef: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; } 801049f5: 83 c4 10 add $0x10,%esp lk->pid = 0; 801049f8: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) lk->name = name; 801049ff: 89 43 38 mov %eax,0x38(%ebx) } 80104a02: 8b 5d fc mov -0x4(%ebp),%ebx 80104a05: c9 leave 80104a06: c3 ret 80104a07: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104a0e: 66 90 xchg %ax,%ax 80104a10 <acquiresleep>: void acquiresleep(struct sleeplock *lk) { 80104a10: f3 0f 1e fb endbr32 80104a14: 55 push %ebp 80104a15: 89 e5 mov %esp,%ebp 80104a17: 56 push %esi 80104a18: 53 push %ebx 80104a19: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 80104a1c: 8d 73 04 lea 0x4(%ebx),%esi 80104a1f: 83 ec 0c sub $0xc,%esp 80104a22: 56 push %esi 80104a23: e8 68 02 00 00 call 80104c90 <acquire> while (lk->locked) { 80104a28: 8b 13 mov (%ebx),%edx 80104a2a: 83 c4 10 add $0x10,%esp 80104a2d: 85 d2 test %edx,%edx 80104a2f: 74 1a je 80104a4b <acquiresleep+0x3b> 80104a31: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi sleep(lk, &lk->lk); 80104a38: 83 ec 08 sub $0x8,%esp 80104a3b: 56 push %esi 80104a3c: 53 push %ebx 80104a3d: e8 8e f7 ff ff call 801041d0 <sleep> while (lk->locked) { 80104a42: 8b 03 mov (%ebx),%eax 80104a44: 83 c4 10 add $0x10,%esp 80104a47: 85 c0 test %eax,%eax 80104a49: 75 ed jne 80104a38 <acquiresleep+0x28> } lk->locked = 1; 80104a4b: c7 03 01 00 00 00 movl $0x1,(%ebx) lk->pid = myproc()->pid; 80104a51: e8 aa ef ff ff call 80103a00 <myproc> 80104a56: 8b 40 10 mov 0x10(%eax),%eax 80104a59: 89 43 3c mov %eax,0x3c(%ebx) release(&lk->lk); 80104a5c: 89 75 08 mov %esi,0x8(%ebp) } 80104a5f: 8d 65 f8 lea -0x8(%ebp),%esp 80104a62: 5b pop %ebx 80104a63: 5e pop %esi 80104a64: 5d pop %ebp release(&lk->lk); 80104a65: e9 e6 02 00 00 jmp 80104d50 <release> 80104a6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104a70 <releasesleep>: void releasesleep(struct sleeplock *lk) { 80104a70: f3 0f 1e fb endbr32 80104a74: 55 push %ebp 80104a75: 89 e5 mov %esp,%ebp 80104a77: 56 push %esi 80104a78: 53 push %ebx 80104a79: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 80104a7c: 8d 73 04 lea 0x4(%ebx),%esi 80104a7f: 83 ec 0c sub $0xc,%esp 80104a82: 56 push %esi 80104a83: e8 08 02 00 00 call 80104c90 <acquire> lk->locked = 0; 80104a88: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; 80104a8e: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) wakeup(lk); 80104a95: 89 1c 24 mov %ebx,(%esp) 80104a98: e8 23 fa ff ff call 801044c0 <wakeup> release(&lk->lk); 80104a9d: 89 75 08 mov %esi,0x8(%ebp) 80104aa0: 83 c4 10 add $0x10,%esp } 80104aa3: 8d 65 f8 lea -0x8(%ebp),%esp 80104aa6: 5b pop %ebx 80104aa7: 5e pop %esi 80104aa8: 5d pop %ebp release(&lk->lk); 80104aa9: e9 a2 02 00 00 jmp 80104d50 <release> 80104aae: 66 90 xchg %ax,%ax 80104ab0 <holdingsleep>: int holdingsleep(struct sleeplock *lk) { 80104ab0: f3 0f 1e fb endbr32 80104ab4: 55 push %ebp 80104ab5: 89 e5 mov %esp,%ebp 80104ab7: 57 push %edi 80104ab8: 31 ff xor %edi,%edi 80104aba: 56 push %esi 80104abb: 53 push %ebx 80104abc: 83 ec 18 sub $0x18,%esp 80104abf: 8b 5d 08 mov 0x8(%ebp),%ebx int r; acquire(&lk->lk); 80104ac2: 8d 73 04 lea 0x4(%ebx),%esi 80104ac5: 56 push %esi 80104ac6: e8 c5 01 00 00 call 80104c90 <acquire> r = lk->locked && (lk->pid == myproc()->pid); 80104acb: 8b 03 mov (%ebx),%eax 80104acd: 83 c4 10 add $0x10,%esp 80104ad0: 85 c0 test %eax,%eax 80104ad2: 75 1c jne 80104af0 <holdingsleep+0x40> release(&lk->lk); 80104ad4: 83 ec 0c sub $0xc,%esp 80104ad7: 56 push %esi 80104ad8: e8 73 02 00 00 call 80104d50 <release> return r; } 80104add: 8d 65 f4 lea -0xc(%ebp),%esp 80104ae0: 89 f8 mov %edi,%eax 80104ae2: 5b pop %ebx 80104ae3: 5e pop %esi 80104ae4: 5f pop %edi 80104ae5: 5d pop %ebp 80104ae6: c3 ret 80104ae7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104aee: 66 90 xchg %ax,%ax r = lk->locked && (lk->pid == myproc()->pid); 80104af0: 8b 5b 3c mov 0x3c(%ebx),%ebx 80104af3: e8 08 ef ff ff call 80103a00 <myproc> 80104af8: 39 58 10 cmp %ebx,0x10(%eax) 80104afb: 0f 94 c0 sete %al 80104afe: 0f b6 c0 movzbl %al,%eax 80104b01: 89 c7 mov %eax,%edi 80104b03: eb cf jmp 80104ad4 <holdingsleep+0x24> 80104b05: 66 90 xchg %ax,%ax 80104b07: 66 90 xchg %ax,%ax 80104b09: 66 90 xchg %ax,%ax 80104b0b: 66 90 xchg %ax,%ax 80104b0d: 66 90 xchg %ax,%ax 80104b0f: 90 nop 80104b10 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80104b10: f3 0f 1e fb endbr32 80104b14: 55 push %ebp 80104b15: 89 e5 mov %esp,%ebp 80104b17: 8b 45 08 mov 0x8(%ebp),%eax lk->name = name; 80104b1a: 8b 55 0c mov 0xc(%ebp),%edx lk->locked = 0; 80104b1d: c7 00 00 00 00 00 movl $0x0,(%eax) lk->name = name; 80104b23: 89 50 04 mov %edx,0x4(%eax) lk->cpu = 0; 80104b26: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80104b2d: 5d pop %ebp 80104b2e: c3 ret 80104b2f: 90 nop 80104b30 <getcallerpcs>: } // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 80104b30: f3 0f 1e fb endbr32 80104b34: 55 push %ebp uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 80104b35: 31 d2 xor %edx,%edx { 80104b37: 89 e5 mov %esp,%ebp 80104b39: 53 push %ebx ebp = (uint*)v - 2; 80104b3a: 8b 45 08 mov 0x8(%ebp),%eax { 80104b3d: 8b 4d 0c mov 0xc(%ebp),%ecx ebp = (uint*)v - 2; 80104b40: 83 e8 08 sub $0x8,%eax for(i = 0; i < 10; i++){ 80104b43: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104b47: 90 nop if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80104b48: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx 80104b4e: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx 80104b54: 77 1a ja 80104b70 <getcallerpcs+0x40> break; pcs[i] = ebp[1]; // saved %eip 80104b56: 8b 58 04 mov 0x4(%eax),%ebx 80104b59: 89 1c 91 mov %ebx,(%ecx,%edx,4) for(i = 0; i < 10; i++){ 80104b5c: 83 c2 01 add $0x1,%edx ebp = (uint*)ebp[0]; // saved %ebp 80104b5f: 8b 00 mov (%eax),%eax for(i = 0; i < 10; i++){ 80104b61: 83 fa 0a cmp $0xa,%edx 80104b64: 75 e2 jne 80104b48 <getcallerpcs+0x18> } for(; i < 10; i++) pcs[i] = 0; } 80104b66: 5b pop %ebx 80104b67: 5d pop %ebp 80104b68: c3 ret 80104b69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(; i < 10; i++) 80104b70: 8d 04 91 lea (%ecx,%edx,4),%eax 80104b73: 8d 51 28 lea 0x28(%ecx),%edx 80104b76: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104b7d: 8d 76 00 lea 0x0(%esi),%esi pcs[i] = 0; 80104b80: c7 00 00 00 00 00 movl $0x0,(%eax) for(; i < 10; i++) 80104b86: 83 c0 04 add $0x4,%eax 80104b89: 39 d0 cmp %edx,%eax 80104b8b: 75 f3 jne 80104b80 <getcallerpcs+0x50> } 80104b8d: 5b pop %ebx 80104b8e: 5d pop %ebp 80104b8f: c3 ret 80104b90 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 80104b90: f3 0f 1e fb endbr32 80104b94: 55 push %ebp 80104b95: 89 e5 mov %esp,%ebp 80104b97: 53 push %ebx 80104b98: 83 ec 04 sub $0x4,%esp 80104b9b: 9c pushf 80104b9c: 5b pop %ebx asm volatile("cli"); 80104b9d: fa cli int eflags; eflags = readeflags(); cli(); if(mycpu()->ncli == 0) 80104b9e: e8 cd ed ff ff call 80103970 <mycpu> 80104ba3: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax 80104ba9: 85 c0 test %eax,%eax 80104bab: 74 13 je 80104bc0 <pushcli+0x30> mycpu()->intena = eflags & FL_IF; mycpu()->ncli += 1; 80104bad: e8 be ed ff ff call 80103970 <mycpu> 80104bb2: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax) } 80104bb9: 83 c4 04 add $0x4,%esp 80104bbc: 5b pop %ebx 80104bbd: 5d pop %ebp 80104bbe: c3 ret 80104bbf: 90 nop mycpu()->intena = eflags & FL_IF; 80104bc0: e8 ab ed ff ff call 80103970 <mycpu> 80104bc5: 81 e3 00 02 00 00 and $0x200,%ebx 80104bcb: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax) 80104bd1: eb da jmp 80104bad <pushcli+0x1d> 80104bd3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104bda: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104be0 <popcli>: void popcli(void) { 80104be0: f3 0f 1e fb endbr32 80104be4: 55 push %ebp 80104be5: 89 e5 mov %esp,%ebp 80104be7: 83 ec 08 sub $0x8,%esp asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104bea: 9c pushf 80104beb: 58 pop %eax if(readeflags()&FL_IF) 80104bec: f6 c4 02 test $0x2,%ah 80104bef: 75 31 jne 80104c22 <popcli+0x42> panic("popcli - interruptible"); if(--mycpu()->ncli < 0) 80104bf1: e8 7a ed ff ff call 80103970 <mycpu> 80104bf6: 83 a8 a4 00 00 00 01 subl $0x1,0xa4(%eax) 80104bfd: 78 30 js 80104c2f <popcli+0x4f> panic("popcli"); if(mycpu()->ncli == 0 && mycpu()->intena) 80104bff: e8 6c ed ff ff call 80103970 <mycpu> 80104c04: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx 80104c0a: 85 d2 test %edx,%edx 80104c0c: 74 02 je 80104c10 <popcli+0x30> sti(); } 80104c0e: c9 leave 80104c0f: c3 ret if(mycpu()->ncli == 0 && mycpu()->intena) 80104c10: e8 5b ed ff ff call 80103970 <mycpu> 80104c15: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 80104c1b: 85 c0 test %eax,%eax 80104c1d: 74 ef je 80104c0e <popcli+0x2e> asm volatile("sti"); 80104c1f: fb sti } 80104c20: c9 leave 80104c21: c3 ret panic("popcli - interruptible"); 80104c22: 83 ec 0c sub $0xc,%esp 80104c25: 68 9f 7f 10 80 push $0x80107f9f 80104c2a: e8 61 b7 ff ff call 80100390 <panic> panic("popcli"); 80104c2f: 83 ec 0c sub $0xc,%esp 80104c32: 68 b6 7f 10 80 push $0x80107fb6 80104c37: e8 54 b7 ff ff call 80100390 <panic> 80104c3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104c40 <holding>: { 80104c40: f3 0f 1e fb endbr32 80104c44: 55 push %ebp 80104c45: 89 e5 mov %esp,%ebp 80104c47: 56 push %esi 80104c48: 53 push %ebx 80104c49: 8b 75 08 mov 0x8(%ebp),%esi 80104c4c: 31 db xor %ebx,%ebx pushcli(); 80104c4e: e8 3d ff ff ff call 80104b90 <pushcli> r = lock->locked && lock->cpu == mycpu(); 80104c53: 8b 06 mov (%esi),%eax 80104c55: 85 c0 test %eax,%eax 80104c57: 75 0f jne 80104c68 <holding+0x28> popcli(); 80104c59: e8 82 ff ff ff call 80104be0 <popcli> } 80104c5e: 89 d8 mov %ebx,%eax 80104c60: 5b pop %ebx 80104c61: 5e pop %esi 80104c62: 5d pop %ebp 80104c63: c3 ret 80104c64: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi r = lock->locked && lock->cpu == mycpu(); 80104c68: 8b 5e 08 mov 0x8(%esi),%ebx 80104c6b: e8 00 ed ff ff call 80103970 <mycpu> 80104c70: 39 c3 cmp %eax,%ebx 80104c72: 0f 94 c3 sete %bl popcli(); 80104c75: e8 66 ff ff ff call 80104be0 <popcli> r = lock->locked && lock->cpu == mycpu(); 80104c7a: 0f b6 db movzbl %bl,%ebx } 80104c7d: 89 d8 mov %ebx,%eax 80104c7f: 5b pop %ebx 80104c80: 5e pop %esi 80104c81: 5d pop %ebp 80104c82: c3 ret 80104c83: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104c8a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104c90 <acquire>: { 80104c90: f3 0f 1e fb endbr32 80104c94: 55 push %ebp 80104c95: 89 e5 mov %esp,%ebp 80104c97: 56 push %esi 80104c98: 53 push %ebx pushcli(); // disable interrupts to avoid deadlock. 80104c99: e8 f2 fe ff ff call 80104b90 <pushcli> if(holding(lk)) 80104c9e: 8b 5d 08 mov 0x8(%ebp),%ebx 80104ca1: 83 ec 0c sub $0xc,%esp 80104ca4: 53 push %ebx 80104ca5: e8 96 ff ff ff call 80104c40 <holding> 80104caa: 83 c4 10 add $0x10,%esp 80104cad: 85 c0 test %eax,%eax 80104caf: 0f 85 7f 00 00 00 jne 80104d34 <acquire+0xa4> 80104cb5: 89 c6 mov %eax,%esi asm volatile("lock; xchgl %0, %1" : 80104cb7: ba 01 00 00 00 mov $0x1,%edx 80104cbc: eb 05 jmp 80104cc3 <acquire+0x33> 80104cbe: 66 90 xchg %ax,%ax 80104cc0: 8b 5d 08 mov 0x8(%ebp),%ebx 80104cc3: 89 d0 mov %edx,%eax 80104cc5: f0 87 03 lock xchg %eax,(%ebx) while(xchg(&lk->locked, 1) != 0) 80104cc8: 85 c0 test %eax,%eax 80104cca: 75 f4 jne 80104cc0 <acquire+0x30> __sync_synchronize(); 80104ccc: f0 83 0c 24 00 lock orl $0x0,(%esp) lk->cpu = mycpu(); 80104cd1: 8b 5d 08 mov 0x8(%ebp),%ebx 80104cd4: e8 97 ec ff ff call 80103970 <mycpu> 80104cd9: 89 43 08 mov %eax,0x8(%ebx) ebp = (uint*)v - 2; 80104cdc: 89 e8 mov %ebp,%eax 80104cde: 66 90 xchg %ax,%ax if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80104ce0: 8d 90 00 00 00 80 lea -0x80000000(%eax),%edx 80104ce6: 81 fa fe ff ff 7f cmp $0x7ffffffe,%edx 80104cec: 77 22 ja 80104d10 <acquire+0x80> pcs[i] = ebp[1]; // saved %eip 80104cee: 8b 50 04 mov 0x4(%eax),%edx 80104cf1: 89 54 b3 0c mov %edx,0xc(%ebx,%esi,4) for(i = 0; i < 10; i++){ 80104cf5: 83 c6 01 add $0x1,%esi ebp = (uint*)ebp[0]; // saved %ebp 80104cf8: 8b 00 mov (%eax),%eax for(i = 0; i < 10; i++){ 80104cfa: 83 fe 0a cmp $0xa,%esi 80104cfd: 75 e1 jne 80104ce0 <acquire+0x50> } 80104cff: 8d 65 f8 lea -0x8(%ebp),%esp 80104d02: 5b pop %ebx 80104d03: 5e pop %esi 80104d04: 5d pop %ebp 80104d05: c3 ret 80104d06: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104d0d: 8d 76 00 lea 0x0(%esi),%esi for(; i < 10; i++) 80104d10: 8d 44 b3 0c lea 0xc(%ebx,%esi,4),%eax 80104d14: 83 c3 34 add $0x34,%ebx 80104d17: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104d1e: 66 90 xchg %ax,%ax pcs[i] = 0; 80104d20: c7 00 00 00 00 00 movl $0x0,(%eax) for(; i < 10; i++) 80104d26: 83 c0 04 add $0x4,%eax 80104d29: 39 d8 cmp %ebx,%eax 80104d2b: 75 f3 jne 80104d20 <acquire+0x90> } 80104d2d: 8d 65 f8 lea -0x8(%ebp),%esp 80104d30: 5b pop %ebx 80104d31: 5e pop %esi 80104d32: 5d pop %ebp 80104d33: c3 ret panic("acquire"); 80104d34: 83 ec 0c sub $0xc,%esp 80104d37: 68 bd 7f 10 80 push $0x80107fbd 80104d3c: e8 4f b6 ff ff call 80100390 <panic> 80104d41: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104d48: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104d4f: 90 nop 80104d50 <release>: { 80104d50: f3 0f 1e fb endbr32 80104d54: 55 push %ebp 80104d55: 89 e5 mov %esp,%ebp 80104d57: 53 push %ebx 80104d58: 83 ec 10 sub $0x10,%esp 80104d5b: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holding(lk)) 80104d5e: 53 push %ebx 80104d5f: e8 dc fe ff ff call 80104c40 <holding> 80104d64: 83 c4 10 add $0x10,%esp 80104d67: 85 c0 test %eax,%eax 80104d69: 74 22 je 80104d8d <release+0x3d> lk->pcs[0] = 0; 80104d6b: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) lk->cpu = 0; 80104d72: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) __sync_synchronize(); 80104d79: f0 83 0c 24 00 lock orl $0x0,(%esp) asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 80104d7e: c7 03 00 00 00 00 movl $0x0,(%ebx) } 80104d84: 8b 5d fc mov -0x4(%ebp),%ebx 80104d87: c9 leave popcli(); 80104d88: e9 53 fe ff ff jmp 80104be0 <popcli> panic("release"); 80104d8d: 83 ec 0c sub $0xc,%esp 80104d90: 68 c5 7f 10 80 push $0x80107fc5 80104d95: e8 f6 b5 ff ff call 80100390 <panic> 80104d9a: 66 90 xchg %ax,%ax 80104d9c: 66 90 xchg %ax,%ax 80104d9e: 66 90 xchg %ax,%ax 80104da0 <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 80104da0: f3 0f 1e fb endbr32 80104da4: 55 push %ebp 80104da5: 89 e5 mov %esp,%ebp 80104da7: 57 push %edi 80104da8: 8b 55 08 mov 0x8(%ebp),%edx 80104dab: 8b 4d 10 mov 0x10(%ebp),%ecx 80104dae: 53 push %ebx 80104daf: 8b 45 0c mov 0xc(%ebp),%eax if ((int)dst%4 == 0 && n%4 == 0){ 80104db2: 89 d7 mov %edx,%edi 80104db4: 09 cf or %ecx,%edi 80104db6: 83 e7 03 and $0x3,%edi 80104db9: 75 25 jne 80104de0 <memset+0x40> c &= 0xFF; 80104dbb: 0f b6 f8 movzbl %al,%edi stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 80104dbe: c1 e0 18 shl $0x18,%eax 80104dc1: 89 fb mov %edi,%ebx 80104dc3: c1 e9 02 shr $0x2,%ecx 80104dc6: c1 e3 10 shl $0x10,%ebx 80104dc9: 09 d8 or %ebx,%eax 80104dcb: 09 f8 or %edi,%eax 80104dcd: c1 e7 08 shl $0x8,%edi 80104dd0: 09 f8 or %edi,%eax asm volatile("cld; rep stosl" : 80104dd2: 89 d7 mov %edx,%edi 80104dd4: fc cld 80104dd5: f3 ab rep stos %eax,%es:(%edi) } else stosb(dst, c, n); return dst; } 80104dd7: 5b pop %ebx 80104dd8: 89 d0 mov %edx,%eax 80104dda: 5f pop %edi 80104ddb: 5d pop %ebp 80104ddc: c3 ret 80104ddd: 8d 76 00 lea 0x0(%esi),%esi asm volatile("cld; rep stosb" : 80104de0: 89 d7 mov %edx,%edi 80104de2: fc cld 80104de3: f3 aa rep stos %al,%es:(%edi) 80104de5: 5b pop %ebx 80104de6: 89 d0 mov %edx,%eax 80104de8: 5f pop %edi 80104de9: 5d pop %ebp 80104dea: c3 ret 80104deb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104def: 90 nop 80104df0 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 80104df0: f3 0f 1e fb endbr32 80104df4: 55 push %ebp 80104df5: 89 e5 mov %esp,%ebp 80104df7: 56 push %esi 80104df8: 8b 75 10 mov 0x10(%ebp),%esi 80104dfb: 8b 55 08 mov 0x8(%ebp),%edx 80104dfe: 53 push %ebx 80104dff: 8b 45 0c mov 0xc(%ebp),%eax const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 80104e02: 85 f6 test %esi,%esi 80104e04: 74 2a je 80104e30 <memcmp+0x40> 80104e06: 01 c6 add %eax,%esi 80104e08: eb 10 jmp 80104e1a <memcmp+0x2a> 80104e0a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(*s1 != *s2) return *s1 - *s2; s1++, s2++; 80104e10: 83 c0 01 add $0x1,%eax 80104e13: 83 c2 01 add $0x1,%edx while(n-- > 0){ 80104e16: 39 f0 cmp %esi,%eax 80104e18: 74 16 je 80104e30 <memcmp+0x40> if(*s1 != *s2) 80104e1a: 0f b6 0a movzbl (%edx),%ecx 80104e1d: 0f b6 18 movzbl (%eax),%ebx 80104e20: 38 d9 cmp %bl,%cl 80104e22: 74 ec je 80104e10 <memcmp+0x20> return *s1 - *s2; 80104e24: 0f b6 c1 movzbl %cl,%eax 80104e27: 29 d8 sub %ebx,%eax } return 0; } 80104e29: 5b pop %ebx 80104e2a: 5e pop %esi 80104e2b: 5d pop %ebp 80104e2c: c3 ret 80104e2d: 8d 76 00 lea 0x0(%esi),%esi 80104e30: 5b pop %ebx return 0; 80104e31: 31 c0 xor %eax,%eax } 80104e33: 5e pop %esi 80104e34: 5d pop %ebp 80104e35: c3 ret 80104e36: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104e3d: 8d 76 00 lea 0x0(%esi),%esi 80104e40 <memmove>: void* memmove(void *dst, const void *src, uint n) { 80104e40: f3 0f 1e fb endbr32 80104e44: 55 push %ebp 80104e45: 89 e5 mov %esp,%ebp 80104e47: 57 push %edi 80104e48: 8b 55 08 mov 0x8(%ebp),%edx 80104e4b: 8b 4d 10 mov 0x10(%ebp),%ecx 80104e4e: 56 push %esi 80104e4f: 8b 75 0c mov 0xc(%ebp),%esi const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 80104e52: 39 d6 cmp %edx,%esi 80104e54: 73 2a jae 80104e80 <memmove+0x40> 80104e56: 8d 3c 0e lea (%esi,%ecx,1),%edi 80104e59: 39 fa cmp %edi,%edx 80104e5b: 73 23 jae 80104e80 <memmove+0x40> 80104e5d: 8d 41 ff lea -0x1(%ecx),%eax s += n; d += n; while(n-- > 0) 80104e60: 85 c9 test %ecx,%ecx 80104e62: 74 13 je 80104e77 <memmove+0x37> 80104e64: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *--d = *--s; 80104e68: 0f b6 0c 06 movzbl (%esi,%eax,1),%ecx 80104e6c: 88 0c 02 mov %cl,(%edx,%eax,1) while(n-- > 0) 80104e6f: 83 e8 01 sub $0x1,%eax 80104e72: 83 f8 ff cmp $0xffffffff,%eax 80104e75: 75 f1 jne 80104e68 <memmove+0x28> } else while(n-- > 0) *d++ = *s++; return dst; } 80104e77: 5e pop %esi 80104e78: 89 d0 mov %edx,%eax 80104e7a: 5f pop %edi 80104e7b: 5d pop %ebp 80104e7c: c3 ret 80104e7d: 8d 76 00 lea 0x0(%esi),%esi while(n-- > 0) 80104e80: 8d 04 0e lea (%esi,%ecx,1),%eax 80104e83: 89 d7 mov %edx,%edi 80104e85: 85 c9 test %ecx,%ecx 80104e87: 74 ee je 80104e77 <memmove+0x37> 80104e89: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi *d++ = *s++; 80104e90: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 80104e91: 39 f0 cmp %esi,%eax 80104e93: 75 fb jne 80104e90 <memmove+0x50> } 80104e95: 5e pop %esi 80104e96: 89 d0 mov %edx,%eax 80104e98: 5f pop %edi 80104e99: 5d pop %ebp 80104e9a: c3 ret 80104e9b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104e9f: 90 nop 80104ea0 <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 80104ea0: f3 0f 1e fb endbr32 return memmove(dst, src, n); 80104ea4: eb 9a jmp 80104e40 <memmove> 80104ea6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104ead: 8d 76 00 lea 0x0(%esi),%esi 80104eb0 <strncmp>: } int strncmp(const char *p, const char *q, uint n) { 80104eb0: f3 0f 1e fb endbr32 80104eb4: 55 push %ebp 80104eb5: 89 e5 mov %esp,%ebp 80104eb7: 56 push %esi 80104eb8: 8b 75 10 mov 0x10(%ebp),%esi 80104ebb: 8b 4d 08 mov 0x8(%ebp),%ecx 80104ebe: 53 push %ebx 80104ebf: 8b 45 0c mov 0xc(%ebp),%eax while(n > 0 && *p && *p == *q) 80104ec2: 85 f6 test %esi,%esi 80104ec4: 74 32 je 80104ef8 <strncmp+0x48> 80104ec6: 01 c6 add %eax,%esi 80104ec8: eb 14 jmp 80104ede <strncmp+0x2e> 80104eca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104ed0: 38 da cmp %bl,%dl 80104ed2: 75 14 jne 80104ee8 <strncmp+0x38> n--, p++, q++; 80104ed4: 83 c0 01 add $0x1,%eax 80104ed7: 83 c1 01 add $0x1,%ecx while(n > 0 && *p && *p == *q) 80104eda: 39 f0 cmp %esi,%eax 80104edc: 74 1a je 80104ef8 <strncmp+0x48> 80104ede: 0f b6 11 movzbl (%ecx),%edx 80104ee1: 0f b6 18 movzbl (%eax),%ebx 80104ee4: 84 d2 test %dl,%dl 80104ee6: 75 e8 jne 80104ed0 <strncmp+0x20> if(n == 0) return 0; return (uchar)*p - (uchar)*q; 80104ee8: 0f b6 c2 movzbl %dl,%eax 80104eeb: 29 d8 sub %ebx,%eax } 80104eed: 5b pop %ebx 80104eee: 5e pop %esi 80104eef: 5d pop %ebp 80104ef0: c3 ret 80104ef1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104ef8: 5b pop %ebx return 0; 80104ef9: 31 c0 xor %eax,%eax } 80104efb: 5e pop %esi 80104efc: 5d pop %ebp 80104efd: c3 ret 80104efe: 66 90 xchg %ax,%ax 80104f00 <strncpy>: char* strncpy(char *s, const char *t, int n) { 80104f00: f3 0f 1e fb endbr32 80104f04: 55 push %ebp 80104f05: 89 e5 mov %esp,%ebp 80104f07: 57 push %edi 80104f08: 56 push %esi 80104f09: 8b 75 08 mov 0x8(%ebp),%esi 80104f0c: 53 push %ebx 80104f0d: 8b 45 10 mov 0x10(%ebp),%eax char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) 80104f10: 89 f2 mov %esi,%edx 80104f12: eb 1b jmp 80104f2f <strncpy+0x2f> 80104f14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104f18: 83 45 0c 01 addl $0x1,0xc(%ebp) 80104f1c: 8b 7d 0c mov 0xc(%ebp),%edi 80104f1f: 83 c2 01 add $0x1,%edx 80104f22: 0f b6 7f ff movzbl -0x1(%edi),%edi 80104f26: 89 f9 mov %edi,%ecx 80104f28: 88 4a ff mov %cl,-0x1(%edx) 80104f2b: 84 c9 test %cl,%cl 80104f2d: 74 09 je 80104f38 <strncpy+0x38> 80104f2f: 89 c3 mov %eax,%ebx 80104f31: 83 e8 01 sub $0x1,%eax 80104f34: 85 db test %ebx,%ebx 80104f36: 7f e0 jg 80104f18 <strncpy+0x18> ; while(n-- > 0) 80104f38: 89 d1 mov %edx,%ecx 80104f3a: 85 c0 test %eax,%eax 80104f3c: 7e 15 jle 80104f53 <strncpy+0x53> 80104f3e: 66 90 xchg %ax,%ax *s++ = 0; 80104f40: 83 c1 01 add $0x1,%ecx 80104f43: c6 41 ff 00 movb $0x0,-0x1(%ecx) while(n-- > 0) 80104f47: 89 c8 mov %ecx,%eax 80104f49: f7 d0 not %eax 80104f4b: 01 d0 add %edx,%eax 80104f4d: 01 d8 add %ebx,%eax 80104f4f: 85 c0 test %eax,%eax 80104f51: 7f ed jg 80104f40 <strncpy+0x40> return os; } 80104f53: 5b pop %ebx 80104f54: 89 f0 mov %esi,%eax 80104f56: 5e pop %esi 80104f57: 5f pop %edi 80104f58: 5d pop %ebp 80104f59: c3 ret 80104f5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104f60 <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 80104f60: f3 0f 1e fb endbr32 80104f64: 55 push %ebp 80104f65: 89 e5 mov %esp,%ebp 80104f67: 56 push %esi 80104f68: 8b 55 10 mov 0x10(%ebp),%edx 80104f6b: 8b 75 08 mov 0x8(%ebp),%esi 80104f6e: 53 push %ebx 80104f6f: 8b 45 0c mov 0xc(%ebp),%eax char *os; os = s; if(n <= 0) 80104f72: 85 d2 test %edx,%edx 80104f74: 7e 21 jle 80104f97 <safestrcpy+0x37> 80104f76: 8d 5c 10 ff lea -0x1(%eax,%edx,1),%ebx 80104f7a: 89 f2 mov %esi,%edx 80104f7c: eb 12 jmp 80104f90 <safestrcpy+0x30> 80104f7e: 66 90 xchg %ax,%ax return os; while(--n > 0 && (*s++ = *t++) != 0) 80104f80: 0f b6 08 movzbl (%eax),%ecx 80104f83: 83 c0 01 add $0x1,%eax 80104f86: 83 c2 01 add $0x1,%edx 80104f89: 88 4a ff mov %cl,-0x1(%edx) 80104f8c: 84 c9 test %cl,%cl 80104f8e: 74 04 je 80104f94 <safestrcpy+0x34> 80104f90: 39 d8 cmp %ebx,%eax 80104f92: 75 ec jne 80104f80 <safestrcpy+0x20> ; *s = 0; 80104f94: c6 02 00 movb $0x0,(%edx) return os; } 80104f97: 89 f0 mov %esi,%eax 80104f99: 5b pop %ebx 80104f9a: 5e pop %esi 80104f9b: 5d pop %ebp 80104f9c: c3 ret 80104f9d: 8d 76 00 lea 0x0(%esi),%esi 80104fa0 <strlen>: int strlen(const char *s) { 80104fa0: f3 0f 1e fb endbr32 80104fa4: 55 push %ebp int n; for(n = 0; s[n]; n++) 80104fa5: 31 c0 xor %eax,%eax { 80104fa7: 89 e5 mov %esp,%ebp 80104fa9: 8b 55 08 mov 0x8(%ebp),%edx for(n = 0; s[n]; n++) 80104fac: 80 3a 00 cmpb $0x0,(%edx) 80104faf: 74 10 je 80104fc1 <strlen+0x21> 80104fb1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104fb8: 83 c0 01 add $0x1,%eax 80104fbb: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 80104fbf: 75 f7 jne 80104fb8 <strlen+0x18> ; return n; } 80104fc1: 5d pop %ebp 80104fc2: c3 ret 80104fc3 <swtch>: # a struct context, and save its address in *old. # Switch stacks to new and pop previously-saved registers. .globl swtch swtch: movl 4(%esp), %eax 80104fc3: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 80104fc7: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-saved registers pushl %ebp 80104fcb: 55 push %ebp pushl %ebx 80104fcc: 53 push %ebx pushl %esi 80104fcd: 56 push %esi pushl %edi 80104fce: 57 push %edi # Switch stacks movl %esp, (%eax) 80104fcf: 89 20 mov %esp,(%eax) movl %edx, %esp 80104fd1: 89 d4 mov %edx,%esp # Load new callee-saved registers popl %edi 80104fd3: 5f pop %edi popl %esi 80104fd4: 5e pop %esi popl %ebx 80104fd5: 5b pop %ebx popl %ebp 80104fd6: 5d pop %ebp ret 80104fd7: c3 ret 80104fd8: 66 90 xchg %ax,%ax 80104fda: 66 90 xchg %ax,%ax 80104fdc: 66 90 xchg %ax,%ax 80104fde: 66 90 xchg %ax,%ax 80104fe0 <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) { 80104fe0: f3 0f 1e fb endbr32 80104fe4: 55 push %ebp 80104fe5: 89 e5 mov %esp,%ebp 80104fe7: 53 push %ebx 80104fe8: 83 ec 04 sub $0x4,%esp 80104feb: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *curproc = myproc(); 80104fee: e8 0d ea ff ff call 80103a00 <myproc> if(addr >= curproc->sz || addr+4 > curproc->sz) 80104ff3: 8b 00 mov (%eax),%eax 80104ff5: 39 d8 cmp %ebx,%eax 80104ff7: 76 17 jbe 80105010 <fetchint+0x30> 80104ff9: 8d 53 04 lea 0x4(%ebx),%edx 80104ffc: 39 d0 cmp %edx,%eax 80104ffe: 72 10 jb 80105010 <fetchint+0x30> return -1; *ip = *(int*)(addr); 80105000: 8b 45 0c mov 0xc(%ebp),%eax 80105003: 8b 13 mov (%ebx),%edx 80105005: 89 10 mov %edx,(%eax) return 0; 80105007: 31 c0 xor %eax,%eax } 80105009: 83 c4 04 add $0x4,%esp 8010500c: 5b pop %ebx 8010500d: 5d pop %ebp 8010500e: c3 ret 8010500f: 90 nop return -1; 80105010: b8 ff ff ff ff mov $0xffffffff,%eax 80105015: eb f2 jmp 80105009 <fetchint+0x29> 80105017: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010501e: 66 90 xchg %ax,%ax 80105020 <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) { 80105020: f3 0f 1e fb endbr32 80105024: 55 push %ebp 80105025: 89 e5 mov %esp,%ebp 80105027: 53 push %ebx 80105028: 83 ec 04 sub $0x4,%esp 8010502b: 8b 5d 08 mov 0x8(%ebp),%ebx char *s, *ep; struct proc *curproc = myproc(); 8010502e: e8 cd e9 ff ff call 80103a00 <myproc> if(addr >= curproc->sz) 80105033: 39 18 cmp %ebx,(%eax) 80105035: 76 31 jbe 80105068 <fetchstr+0x48> return -1; *pp = (char*)addr; 80105037: 8b 55 0c mov 0xc(%ebp),%edx 8010503a: 89 1a mov %ebx,(%edx) ep = (char*)curproc->sz; 8010503c: 8b 10 mov (%eax),%edx for(s = *pp; s < ep; s++){ 8010503e: 39 d3 cmp %edx,%ebx 80105040: 73 26 jae 80105068 <fetchstr+0x48> 80105042: 89 d8 mov %ebx,%eax 80105044: eb 11 jmp 80105057 <fetchstr+0x37> 80105046: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010504d: 8d 76 00 lea 0x0(%esi),%esi 80105050: 83 c0 01 add $0x1,%eax 80105053: 39 c2 cmp %eax,%edx 80105055: 76 11 jbe 80105068 <fetchstr+0x48> if(*s == 0) 80105057: 80 38 00 cmpb $0x0,(%eax) 8010505a: 75 f4 jne 80105050 <fetchstr+0x30> return s - *pp; } return -1; } 8010505c: 83 c4 04 add $0x4,%esp return s - *pp; 8010505f: 29 d8 sub %ebx,%eax } 80105061: 5b pop %ebx 80105062: 5d pop %ebp 80105063: c3 ret 80105064: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105068: 83 c4 04 add $0x4,%esp return -1; 8010506b: b8 ff ff ff ff mov $0xffffffff,%eax } 80105070: 5b pop %ebx 80105071: 5d pop %ebp 80105072: c3 ret 80105073: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010507a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105080 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 80105080: f3 0f 1e fb endbr32 80105084: 55 push %ebp 80105085: 89 e5 mov %esp,%ebp 80105087: 56 push %esi 80105088: 53 push %ebx return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80105089: e8 72 e9 ff ff call 80103a00 <myproc> 8010508e: 8b 55 08 mov 0x8(%ebp),%edx 80105091: 8b 40 18 mov 0x18(%eax),%eax 80105094: 8b 40 44 mov 0x44(%eax),%eax 80105097: 8d 1c 90 lea (%eax,%edx,4),%ebx struct proc *curproc = myproc(); 8010509a: e8 61 e9 ff ff call 80103a00 <myproc> return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 8010509f: 8d 73 04 lea 0x4(%ebx),%esi if(addr >= curproc->sz || addr+4 > curproc->sz) 801050a2: 8b 00 mov (%eax),%eax 801050a4: 39 c6 cmp %eax,%esi 801050a6: 73 18 jae 801050c0 <argint+0x40> 801050a8: 8d 53 08 lea 0x8(%ebx),%edx 801050ab: 39 d0 cmp %edx,%eax 801050ad: 72 11 jb 801050c0 <argint+0x40> *ip = *(int*)(addr); 801050af: 8b 45 0c mov 0xc(%ebp),%eax 801050b2: 8b 53 04 mov 0x4(%ebx),%edx 801050b5: 89 10 mov %edx,(%eax) return 0; 801050b7: 31 c0 xor %eax,%eax } 801050b9: 5b pop %ebx 801050ba: 5e pop %esi 801050bb: 5d pop %ebp 801050bc: c3 ret 801050bd: 8d 76 00 lea 0x0(%esi),%esi return -1; 801050c0: b8 ff ff ff ff mov $0xffffffff,%eax return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 801050c5: eb f2 jmp 801050b9 <argint+0x39> 801050c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801050ce: 66 90 xchg %ax,%ax 801050d0 <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) { 801050d0: f3 0f 1e fb endbr32 801050d4: 55 push %ebp 801050d5: 89 e5 mov %esp,%ebp 801050d7: 56 push %esi 801050d8: 53 push %ebx 801050d9: 83 ec 10 sub $0x10,%esp 801050dc: 8b 5d 10 mov 0x10(%ebp),%ebx int i; struct proc *curproc = myproc(); 801050df: e8 1c e9 ff ff call 80103a00 <myproc> if(argint(n, &i) < 0) 801050e4: 83 ec 08 sub $0x8,%esp struct proc *curproc = myproc(); 801050e7: 89 c6 mov %eax,%esi if(argint(n, &i) < 0) 801050e9: 8d 45 f4 lea -0xc(%ebp),%eax 801050ec: 50 push %eax 801050ed: ff 75 08 pushl 0x8(%ebp) 801050f0: e8 8b ff ff ff call 80105080 <argint> return -1; if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz) 801050f5: 83 c4 10 add $0x10,%esp 801050f8: 85 c0 test %eax,%eax 801050fa: 78 24 js 80105120 <argptr+0x50> 801050fc: 85 db test %ebx,%ebx 801050fe: 78 20 js 80105120 <argptr+0x50> 80105100: 8b 16 mov (%esi),%edx 80105102: 8b 45 f4 mov -0xc(%ebp),%eax 80105105: 39 c2 cmp %eax,%edx 80105107: 76 17 jbe 80105120 <argptr+0x50> 80105109: 01 c3 add %eax,%ebx 8010510b: 39 da cmp %ebx,%edx 8010510d: 72 11 jb 80105120 <argptr+0x50> return -1; *pp = (char*)i; 8010510f: 8b 55 0c mov 0xc(%ebp),%edx 80105112: 89 02 mov %eax,(%edx) return 0; 80105114: 31 c0 xor %eax,%eax } 80105116: 8d 65 f8 lea -0x8(%ebp),%esp 80105119: 5b pop %ebx 8010511a: 5e pop %esi 8010511b: 5d pop %ebp 8010511c: c3 ret 8010511d: 8d 76 00 lea 0x0(%esi),%esi return -1; 80105120: b8 ff ff ff ff mov $0xffffffff,%eax 80105125: eb ef jmp 80105116 <argptr+0x46> 80105127: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010512e: 66 90 xchg %ax,%ax 80105130 <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) { 80105130: f3 0f 1e fb endbr32 80105134: 55 push %ebp 80105135: 89 e5 mov %esp,%ebp 80105137: 83 ec 20 sub $0x20,%esp int addr; if(argint(n, &addr) < 0) 8010513a: 8d 45 f4 lea -0xc(%ebp),%eax 8010513d: 50 push %eax 8010513e: ff 75 08 pushl 0x8(%ebp) 80105141: e8 3a ff ff ff call 80105080 <argint> 80105146: 83 c4 10 add $0x10,%esp 80105149: 85 c0 test %eax,%eax 8010514b: 78 13 js 80105160 <argstr+0x30> return -1; return fetchstr(addr, pp); 8010514d: 83 ec 08 sub $0x8,%esp 80105150: ff 75 0c pushl 0xc(%ebp) 80105153: ff 75 f4 pushl -0xc(%ebp) 80105156: e8 c5 fe ff ff call 80105020 <fetchstr> 8010515b: 83 c4 10 add $0x10,%esp } 8010515e: c9 leave 8010515f: c3 ret 80105160: c9 leave return -1; 80105161: b8 ff ff ff ff mov $0xffffffff,%eax } 80105166: c3 ret 80105167: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010516e: 66 90 xchg %ax,%ax 80105170 <syscall>: [SYS_ps] sys_ps, }; void syscall(void) { 80105170: f3 0f 1e fb endbr32 80105174: 55 push %ebp 80105175: 89 e5 mov %esp,%ebp 80105177: 53 push %ebx 80105178: 83 ec 04 sub $0x4,%esp int num; struct proc *curproc = myproc(); 8010517b: e8 80 e8 ff ff call 80103a00 <myproc> 80105180: 89 c3 mov %eax,%ebx num = curproc->tf->eax; 80105182: 8b 40 18 mov 0x18(%eax),%eax 80105185: 8b 40 1c mov 0x1c(%eax),%eax if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80105188: 8d 50 ff lea -0x1(%eax),%edx 8010518b: 83 fa 17 cmp $0x17,%edx 8010518e: 77 20 ja 801051b0 <syscall+0x40> 80105190: 8b 14 85 00 80 10 80 mov -0x7fef8000(,%eax,4),%edx 80105197: 85 d2 test %edx,%edx 80105199: 74 15 je 801051b0 <syscall+0x40> curproc->tf->eax = syscalls[num](); 8010519b: ff d2 call *%edx 8010519d: 89 c2 mov %eax,%edx 8010519f: 8b 43 18 mov 0x18(%ebx),%eax 801051a2: 89 50 1c mov %edx,0x1c(%eax) } else { cprintf("%d %s: unknown sys call %d\n", curproc->pid, curproc->name, num); curproc->tf->eax = -1; } } 801051a5: 8b 5d fc mov -0x4(%ebp),%ebx 801051a8: c9 leave 801051a9: c3 ret 801051aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cprintf("%d %s: unknown sys call %d\n", 801051b0: 50 push %eax curproc->pid, curproc->name, num); 801051b1: 8d 43 6c lea 0x6c(%ebx),%eax cprintf("%d %s: unknown sys call %d\n", 801051b4: 50 push %eax 801051b5: ff 73 10 pushl 0x10(%ebx) 801051b8: 68 cd 7f 10 80 push $0x80107fcd 801051bd: e8 ee b4 ff ff call 801006b0 <cprintf> curproc->tf->eax = -1; 801051c2: 8b 43 18 mov 0x18(%ebx),%eax 801051c5: 83 c4 10 add $0x10,%esp 801051c8: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } 801051cf: 8b 5d fc mov -0x4(%ebp),%ebx 801051d2: c9 leave 801051d3: c3 ret 801051d4: 66 90 xchg %ax,%ax 801051d6: 66 90 xchg %ax,%ax 801051d8: 66 90 xchg %ax,%ax 801051da: 66 90 xchg %ax,%ax 801051dc: 66 90 xchg %ax,%ax 801051de: 66 90 xchg %ax,%ax 801051e0 <create>: return -1; } static struct inode* create(char *path, short type, short major, short minor) { 801051e0: 55 push %ebp 801051e1: 89 e5 mov %esp,%ebp 801051e3: 57 push %edi 801051e4: 56 push %esi struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 801051e5: 8d 7d da lea -0x26(%ebp),%edi { 801051e8: 53 push %ebx 801051e9: 83 ec 34 sub $0x34,%esp 801051ec: 89 4d d0 mov %ecx,-0x30(%ebp) 801051ef: 8b 4d 08 mov 0x8(%ebp),%ecx if((dp = nameiparent(path, name)) == 0) 801051f2: 57 push %edi 801051f3: 50 push %eax { 801051f4: 89 55 d4 mov %edx,-0x2c(%ebp) 801051f7: 89 4d cc mov %ecx,-0x34(%ebp) if((dp = nameiparent(path, name)) == 0) 801051fa: e8 61 ce ff ff call 80102060 <nameiparent> 801051ff: 83 c4 10 add $0x10,%esp 80105202: 85 c0 test %eax,%eax 80105204: 0f 84 46 01 00 00 je 80105350 <create+0x170> return 0; ilock(dp); 8010520a: 83 ec 0c sub $0xc,%esp 8010520d: 89 c3 mov %eax,%ebx 8010520f: 50 push %eax 80105210: e8 5b c5 ff ff call 80101770 <ilock> if((ip = dirlookup(dp, name, 0)) != 0){ 80105215: 83 c4 0c add $0xc,%esp 80105218: 6a 00 push $0x0 8010521a: 57 push %edi 8010521b: 53 push %ebx 8010521c: e8 9f ca ff ff call 80101cc0 <dirlookup> 80105221: 83 c4 10 add $0x10,%esp 80105224: 89 c6 mov %eax,%esi 80105226: 85 c0 test %eax,%eax 80105228: 74 56 je 80105280 <create+0xa0> iunlockput(dp); 8010522a: 83 ec 0c sub $0xc,%esp 8010522d: 53 push %ebx 8010522e: e8 dd c7 ff ff call 80101a10 <iunlockput> ilock(ip); 80105233: 89 34 24 mov %esi,(%esp) 80105236: e8 35 c5 ff ff call 80101770 <ilock> if(type == T_FILE && ip->type == T_FILE) 8010523b: 83 c4 10 add $0x10,%esp 8010523e: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80105243: 75 1b jne 80105260 <create+0x80> 80105245: 66 83 7e 50 02 cmpw $0x2,0x50(%esi) 8010524a: 75 14 jne 80105260 <create+0x80> panic("create: dirlink"); iunlockput(dp); return ip; } 8010524c: 8d 65 f4 lea -0xc(%ebp),%esp 8010524f: 89 f0 mov %esi,%eax 80105251: 5b pop %ebx 80105252: 5e pop %esi 80105253: 5f pop %edi 80105254: 5d pop %ebp 80105255: c3 ret 80105256: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010525d: 8d 76 00 lea 0x0(%esi),%esi iunlockput(ip); 80105260: 83 ec 0c sub $0xc,%esp 80105263: 56 push %esi return 0; 80105264: 31 f6 xor %esi,%esi iunlockput(ip); 80105266: e8 a5 c7 ff ff call 80101a10 <iunlockput> return 0; 8010526b: 83 c4 10 add $0x10,%esp } 8010526e: 8d 65 f4 lea -0xc(%ebp),%esp 80105271: 89 f0 mov %esi,%eax 80105273: 5b pop %ebx 80105274: 5e pop %esi 80105275: 5f pop %edi 80105276: 5d pop %ebp 80105277: c3 ret 80105278: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010527f: 90 nop if((ip = ialloc(dp->dev, type)) == 0) 80105280: 0f bf 45 d4 movswl -0x2c(%ebp),%eax 80105284: 83 ec 08 sub $0x8,%esp 80105287: 50 push %eax 80105288: ff 33 pushl (%ebx) 8010528a: e8 61 c3 ff ff call 801015f0 <ialloc> 8010528f: 83 c4 10 add $0x10,%esp 80105292: 89 c6 mov %eax,%esi 80105294: 85 c0 test %eax,%eax 80105296: 0f 84 cd 00 00 00 je 80105369 <create+0x189> ilock(ip); 8010529c: 83 ec 0c sub $0xc,%esp 8010529f: 50 push %eax 801052a0: e8 cb c4 ff ff call 80101770 <ilock> ip->major = major; 801052a5: 0f b7 45 d0 movzwl -0x30(%ebp),%eax 801052a9: 66 89 46 52 mov %ax,0x52(%esi) ip->minor = minor; 801052ad: 0f b7 45 cc movzwl -0x34(%ebp),%eax 801052b1: 66 89 46 54 mov %ax,0x54(%esi) ip->nlink = 1; 801052b5: b8 01 00 00 00 mov $0x1,%eax 801052ba: 66 89 46 56 mov %ax,0x56(%esi) iupdate(ip); 801052be: 89 34 24 mov %esi,(%esp) 801052c1: e8 ea c3 ff ff call 801016b0 <iupdate> if(type == T_DIR){ // Create . and .. entries. 801052c6: 83 c4 10 add $0x10,%esp 801052c9: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 801052ce: 74 30 je 80105300 <create+0x120> if(dirlink(dp, name, ip->inum) < 0) 801052d0: 83 ec 04 sub $0x4,%esp 801052d3: ff 76 04 pushl 0x4(%esi) 801052d6: 57 push %edi 801052d7: 53 push %ebx 801052d8: e8 a3 cc ff ff call 80101f80 <dirlink> 801052dd: 83 c4 10 add $0x10,%esp 801052e0: 85 c0 test %eax,%eax 801052e2: 78 78 js 8010535c <create+0x17c> iunlockput(dp); 801052e4: 83 ec 0c sub $0xc,%esp 801052e7: 53 push %ebx 801052e8: e8 23 c7 ff ff call 80101a10 <iunlockput> return ip; 801052ed: 83 c4 10 add $0x10,%esp } 801052f0: 8d 65 f4 lea -0xc(%ebp),%esp 801052f3: 89 f0 mov %esi,%eax 801052f5: 5b pop %ebx 801052f6: 5e pop %esi 801052f7: 5f pop %edi 801052f8: 5d pop %ebp 801052f9: c3 ret 801052fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi iupdate(dp); 80105300: 83 ec 0c sub $0xc,%esp dp->nlink++; // for ".." 80105303: 66 83 43 56 01 addw $0x1,0x56(%ebx) iupdate(dp); 80105308: 53 push %ebx 80105309: e8 a2 c3 ff ff call 801016b0 <iupdate> if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 8010530e: 83 c4 0c add $0xc,%esp 80105311: ff 76 04 pushl 0x4(%esi) 80105314: 68 80 80 10 80 push $0x80108080 80105319: 56 push %esi 8010531a: e8 61 cc ff ff call 80101f80 <dirlink> 8010531f: 83 c4 10 add $0x10,%esp 80105322: 85 c0 test %eax,%eax 80105324: 78 18 js 8010533e <create+0x15e> 80105326: 83 ec 04 sub $0x4,%esp 80105329: ff 73 04 pushl 0x4(%ebx) 8010532c: 68 7f 80 10 80 push $0x8010807f 80105331: 56 push %esi 80105332: e8 49 cc ff ff call 80101f80 <dirlink> 80105337: 83 c4 10 add $0x10,%esp 8010533a: 85 c0 test %eax,%eax 8010533c: 79 92 jns 801052d0 <create+0xf0> panic("create dots"); 8010533e: 83 ec 0c sub $0xc,%esp 80105341: 68 73 80 10 80 push $0x80108073 80105346: e8 45 b0 ff ff call 80100390 <panic> 8010534b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010534f: 90 nop } 80105350: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 80105353: 31 f6 xor %esi,%esi } 80105355: 5b pop %ebx 80105356: 89 f0 mov %esi,%eax 80105358: 5e pop %esi 80105359: 5f pop %edi 8010535a: 5d pop %ebp 8010535b: c3 ret panic("create: dirlink"); 8010535c: 83 ec 0c sub $0xc,%esp 8010535f: 68 82 80 10 80 push $0x80108082 80105364: e8 27 b0 ff ff call 80100390 <panic> panic("create: ialloc"); 80105369: 83 ec 0c sub $0xc,%esp 8010536c: 68 64 80 10 80 push $0x80108064 80105371: e8 1a b0 ff ff call 80100390 <panic> 80105376: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010537d: 8d 76 00 lea 0x0(%esi),%esi 80105380 <argfd.constprop.0>: argfd(int n, int *pfd, struct file **pf) 80105380: 55 push %ebp 80105381: 89 e5 mov %esp,%ebp 80105383: 56 push %esi 80105384: 89 d6 mov %edx,%esi 80105386: 53 push %ebx 80105387: 89 c3 mov %eax,%ebx if(argint(n, &fd) < 0) 80105389: 8d 45 f4 lea -0xc(%ebp),%eax argfd(int n, int *pfd, struct file **pf) 8010538c: 83 ec 18 sub $0x18,%esp if(argint(n, &fd) < 0) 8010538f: 50 push %eax 80105390: 6a 00 push $0x0 80105392: e8 e9 fc ff ff call 80105080 <argint> 80105397: 83 c4 10 add $0x10,%esp 8010539a: 85 c0 test %eax,%eax 8010539c: 78 2a js 801053c8 <argfd.constprop.0+0x48> if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0) 8010539e: 83 7d f4 0f cmpl $0xf,-0xc(%ebp) 801053a2: 77 24 ja 801053c8 <argfd.constprop.0+0x48> 801053a4: e8 57 e6 ff ff call 80103a00 <myproc> 801053a9: 8b 55 f4 mov -0xc(%ebp),%edx 801053ac: 8b 44 90 28 mov 0x28(%eax,%edx,4),%eax 801053b0: 85 c0 test %eax,%eax 801053b2: 74 14 je 801053c8 <argfd.constprop.0+0x48> if(pfd) 801053b4: 85 db test %ebx,%ebx 801053b6: 74 02 je 801053ba <argfd.constprop.0+0x3a> *pfd = fd; 801053b8: 89 13 mov %edx,(%ebx) *pf = f; 801053ba: 89 06 mov %eax,(%esi) return 0; 801053bc: 31 c0 xor %eax,%eax } 801053be: 8d 65 f8 lea -0x8(%ebp),%esp 801053c1: 5b pop %ebx 801053c2: 5e pop %esi 801053c3: 5d pop %ebp 801053c4: c3 ret 801053c5: 8d 76 00 lea 0x0(%esi),%esi return -1; 801053c8: b8 ff ff ff ff mov $0xffffffff,%eax 801053cd: eb ef jmp 801053be <argfd.constprop.0+0x3e> 801053cf: 90 nop 801053d0 <sys_dup>: { 801053d0: f3 0f 1e fb endbr32 801053d4: 55 push %ebp if(argfd(0, 0, &f) < 0) 801053d5: 31 c0 xor %eax,%eax { 801053d7: 89 e5 mov %esp,%ebp 801053d9: 56 push %esi 801053da: 53 push %ebx if(argfd(0, 0, &f) < 0) 801053db: 8d 55 f4 lea -0xc(%ebp),%edx { 801053de: 83 ec 10 sub $0x10,%esp if(argfd(0, 0, &f) < 0) 801053e1: e8 9a ff ff ff call 80105380 <argfd.constprop.0> 801053e6: 85 c0 test %eax,%eax 801053e8: 78 1e js 80105408 <sys_dup+0x38> if((fd=fdalloc(f)) < 0) 801053ea: 8b 75 f4 mov -0xc(%ebp),%esi for(fd = 0; fd < NOFILE; fd++){ 801053ed: 31 db xor %ebx,%ebx struct proc *curproc = myproc(); 801053ef: e8 0c e6 ff ff call 80103a00 <myproc> for(fd = 0; fd < NOFILE; fd++){ 801053f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(curproc->ofile[fd] == 0){ 801053f8: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 801053fc: 85 d2 test %edx,%edx 801053fe: 74 20 je 80105420 <sys_dup+0x50> for(fd = 0; fd < NOFILE; fd++){ 80105400: 83 c3 01 add $0x1,%ebx 80105403: 83 fb 10 cmp $0x10,%ebx 80105406: 75 f0 jne 801053f8 <sys_dup+0x28> } 80105408: 8d 65 f8 lea -0x8(%ebp),%esp return -1; 8010540b: bb ff ff ff ff mov $0xffffffff,%ebx } 80105410: 89 d8 mov %ebx,%eax 80105412: 5b pop %ebx 80105413: 5e pop %esi 80105414: 5d pop %ebp 80105415: c3 ret 80105416: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010541d: 8d 76 00 lea 0x0(%esi),%esi curproc->ofile[fd] = f; 80105420: 89 74 98 28 mov %esi,0x28(%eax,%ebx,4) filedup(f); 80105424: 83 ec 0c sub $0xc,%esp 80105427: ff 75 f4 pushl -0xc(%ebp) 8010542a: e8 51 ba ff ff call 80100e80 <filedup> return fd; 8010542f: 83 c4 10 add $0x10,%esp } 80105432: 8d 65 f8 lea -0x8(%ebp),%esp 80105435: 89 d8 mov %ebx,%eax 80105437: 5b pop %ebx 80105438: 5e pop %esi 80105439: 5d pop %ebp 8010543a: c3 ret 8010543b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010543f: 90 nop 80105440 <sys_read>: { 80105440: f3 0f 1e fb endbr32 80105444: 55 push %ebp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105445: 31 c0 xor %eax,%eax { 80105447: 89 e5 mov %esp,%ebp 80105449: 83 ec 18 sub $0x18,%esp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 8010544c: 8d 55 ec lea -0x14(%ebp),%edx 8010544f: e8 2c ff ff ff call 80105380 <argfd.constprop.0> 80105454: 85 c0 test %eax,%eax 80105456: 78 48 js 801054a0 <sys_read+0x60> 80105458: 83 ec 08 sub $0x8,%esp 8010545b: 8d 45 f0 lea -0x10(%ebp),%eax 8010545e: 50 push %eax 8010545f: 6a 02 push $0x2 80105461: e8 1a fc ff ff call 80105080 <argint> 80105466: 83 c4 10 add $0x10,%esp 80105469: 85 c0 test %eax,%eax 8010546b: 78 33 js 801054a0 <sys_read+0x60> 8010546d: 83 ec 04 sub $0x4,%esp 80105470: 8d 45 f4 lea -0xc(%ebp),%eax 80105473: ff 75 f0 pushl -0x10(%ebp) 80105476: 50 push %eax 80105477: 6a 01 push $0x1 80105479: e8 52 fc ff ff call 801050d0 <argptr> 8010547e: 83 c4 10 add $0x10,%esp 80105481: 85 c0 test %eax,%eax 80105483: 78 1b js 801054a0 <sys_read+0x60> return fileread(f, p, n); 80105485: 83 ec 04 sub $0x4,%esp 80105488: ff 75 f0 pushl -0x10(%ebp) 8010548b: ff 75 f4 pushl -0xc(%ebp) 8010548e: ff 75 ec pushl -0x14(%ebp) 80105491: e8 6a bb ff ff call 80101000 <fileread> 80105496: 83 c4 10 add $0x10,%esp } 80105499: c9 leave 8010549a: c3 ret 8010549b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010549f: 90 nop 801054a0: c9 leave return -1; 801054a1: b8 ff ff ff ff mov $0xffffffff,%eax } 801054a6: c3 ret 801054a7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801054ae: 66 90 xchg %ax,%ax 801054b0 <sys_write>: { 801054b0: f3 0f 1e fb endbr32 801054b4: 55 push %ebp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 801054b5: 31 c0 xor %eax,%eax { 801054b7: 89 e5 mov %esp,%ebp 801054b9: 83 ec 18 sub $0x18,%esp if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 801054bc: 8d 55 ec lea -0x14(%ebp),%edx 801054bf: e8 bc fe ff ff call 80105380 <argfd.constprop.0> 801054c4: 85 c0 test %eax,%eax 801054c6: 78 48 js 80105510 <sys_write+0x60> 801054c8: 83 ec 08 sub $0x8,%esp 801054cb: 8d 45 f0 lea -0x10(%ebp),%eax 801054ce: 50 push %eax 801054cf: 6a 02 push $0x2 801054d1: e8 aa fb ff ff call 80105080 <argint> 801054d6: 83 c4 10 add $0x10,%esp 801054d9: 85 c0 test %eax,%eax 801054db: 78 33 js 80105510 <sys_write+0x60> 801054dd: 83 ec 04 sub $0x4,%esp 801054e0: 8d 45 f4 lea -0xc(%ebp),%eax 801054e3: ff 75 f0 pushl -0x10(%ebp) 801054e6: 50 push %eax 801054e7: 6a 01 push $0x1 801054e9: e8 e2 fb ff ff call 801050d0 <argptr> 801054ee: 83 c4 10 add $0x10,%esp 801054f1: 85 c0 test %eax,%eax 801054f3: 78 1b js 80105510 <sys_write+0x60> return filewrite(f, p, n); 801054f5: 83 ec 04 sub $0x4,%esp 801054f8: ff 75 f0 pushl -0x10(%ebp) 801054fb: ff 75 f4 pushl -0xc(%ebp) 801054fe: ff 75 ec pushl -0x14(%ebp) 80105501: e8 9a bb ff ff call 801010a0 <filewrite> 80105506: 83 c4 10 add $0x10,%esp } 80105509: c9 leave 8010550a: c3 ret 8010550b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010550f: 90 nop 80105510: c9 leave return -1; 80105511: b8 ff ff ff ff mov $0xffffffff,%eax } 80105516: c3 ret 80105517: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010551e: 66 90 xchg %ax,%ax 80105520 <sys_close>: { 80105520: f3 0f 1e fb endbr32 80105524: 55 push %ebp 80105525: 89 e5 mov %esp,%ebp 80105527: 83 ec 18 sub $0x18,%esp if(argfd(0, &fd, &f) < 0) 8010552a: 8d 55 f4 lea -0xc(%ebp),%edx 8010552d: 8d 45 f0 lea -0x10(%ebp),%eax 80105530: e8 4b fe ff ff call 80105380 <argfd.constprop.0> 80105535: 85 c0 test %eax,%eax 80105537: 78 27 js 80105560 <sys_close+0x40> myproc()->ofile[fd] = 0; 80105539: e8 c2 e4 ff ff call 80103a00 <myproc> 8010553e: 8b 55 f0 mov -0x10(%ebp),%edx fileclose(f); 80105541: 83 ec 0c sub $0xc,%esp myproc()->ofile[fd] = 0; 80105544: c7 44 90 28 00 00 00 movl $0x0,0x28(%eax,%edx,4) 8010554b: 00 fileclose(f); 8010554c: ff 75 f4 pushl -0xc(%ebp) 8010554f: e8 7c b9 ff ff call 80100ed0 <fileclose> return 0; 80105554: 83 c4 10 add $0x10,%esp 80105557: 31 c0 xor %eax,%eax } 80105559: c9 leave 8010555a: c3 ret 8010555b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010555f: 90 nop 80105560: c9 leave return -1; 80105561: b8 ff ff ff ff mov $0xffffffff,%eax } 80105566: c3 ret 80105567: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010556e: 66 90 xchg %ax,%ax 80105570 <sys_fstat>: { 80105570: f3 0f 1e fb endbr32 80105574: 55 push %ebp if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80105575: 31 c0 xor %eax,%eax { 80105577: 89 e5 mov %esp,%ebp 80105579: 83 ec 18 sub $0x18,%esp if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 8010557c: 8d 55 f0 lea -0x10(%ebp),%edx 8010557f: e8 fc fd ff ff call 80105380 <argfd.constprop.0> 80105584: 85 c0 test %eax,%eax 80105586: 78 30 js 801055b8 <sys_fstat+0x48> 80105588: 83 ec 04 sub $0x4,%esp 8010558b: 8d 45 f4 lea -0xc(%ebp),%eax 8010558e: 6a 14 push $0x14 80105590: 50 push %eax 80105591: 6a 01 push $0x1 80105593: e8 38 fb ff ff call 801050d0 <argptr> 80105598: 83 c4 10 add $0x10,%esp 8010559b: 85 c0 test %eax,%eax 8010559d: 78 19 js 801055b8 <sys_fstat+0x48> return filestat(f, st); 8010559f: 83 ec 08 sub $0x8,%esp 801055a2: ff 75 f4 pushl -0xc(%ebp) 801055a5: ff 75 f0 pushl -0x10(%ebp) 801055a8: e8 03 ba ff ff call 80100fb0 <filestat> 801055ad: 83 c4 10 add $0x10,%esp } 801055b0: c9 leave 801055b1: c3 ret 801055b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801055b8: c9 leave return -1; 801055b9: b8 ff ff ff ff mov $0xffffffff,%eax } 801055be: c3 ret 801055bf: 90 nop 801055c0 <sys_link>: { 801055c0: f3 0f 1e fb endbr32 801055c4: 55 push %ebp 801055c5: 89 e5 mov %esp,%ebp 801055c7: 57 push %edi 801055c8: 56 push %esi if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 801055c9: 8d 45 d4 lea -0x2c(%ebp),%eax { 801055cc: 53 push %ebx 801055cd: 83 ec 34 sub $0x34,%esp if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 801055d0: 50 push %eax 801055d1: 6a 00 push $0x0 801055d3: e8 58 fb ff ff call 80105130 <argstr> 801055d8: 83 c4 10 add $0x10,%esp 801055db: 85 c0 test %eax,%eax 801055dd: 0f 88 ff 00 00 00 js 801056e2 <sys_link+0x122> 801055e3: 83 ec 08 sub $0x8,%esp 801055e6: 8d 45 d0 lea -0x30(%ebp),%eax 801055e9: 50 push %eax 801055ea: 6a 01 push $0x1 801055ec: e8 3f fb ff ff call 80105130 <argstr> 801055f1: 83 c4 10 add $0x10,%esp 801055f4: 85 c0 test %eax,%eax 801055f6: 0f 88 e6 00 00 00 js 801056e2 <sys_link+0x122> begin_op(); 801055fc: e8 3f d7 ff ff call 80102d40 <begin_op> if((ip = namei(old)) == 0){ 80105601: 83 ec 0c sub $0xc,%esp 80105604: ff 75 d4 pushl -0x2c(%ebp) 80105607: e8 34 ca ff ff call 80102040 <namei> 8010560c: 83 c4 10 add $0x10,%esp 8010560f: 89 c3 mov %eax,%ebx 80105611: 85 c0 test %eax,%eax 80105613: 0f 84 e8 00 00 00 je 80105701 <sys_link+0x141> ilock(ip); 80105619: 83 ec 0c sub $0xc,%esp 8010561c: 50 push %eax 8010561d: e8 4e c1 ff ff call 80101770 <ilock> if(ip->type == T_DIR){ 80105622: 83 c4 10 add $0x10,%esp 80105625: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 8010562a: 0f 84 b9 00 00 00 je 801056e9 <sys_link+0x129> iupdate(ip); 80105630: 83 ec 0c sub $0xc,%esp ip->nlink++; 80105633: 66 83 43 56 01 addw $0x1,0x56(%ebx) if((dp = nameiparent(new, name)) == 0) 80105638: 8d 7d da lea -0x26(%ebp),%edi iupdate(ip); 8010563b: 53 push %ebx 8010563c: e8 6f c0 ff ff call 801016b0 <iupdate> iunlock(ip); 80105641: 89 1c 24 mov %ebx,(%esp) 80105644: e8 07 c2 ff ff call 80101850 <iunlock> if((dp = nameiparent(new, name)) == 0) 80105649: 58 pop %eax 8010564a: 5a pop %edx 8010564b: 57 push %edi 8010564c: ff 75 d0 pushl -0x30(%ebp) 8010564f: e8 0c ca ff ff call 80102060 <nameiparent> 80105654: 83 c4 10 add $0x10,%esp 80105657: 89 c6 mov %eax,%esi 80105659: 85 c0 test %eax,%eax 8010565b: 74 5f je 801056bc <sys_link+0xfc> ilock(dp); 8010565d: 83 ec 0c sub $0xc,%esp 80105660: 50 push %eax 80105661: e8 0a c1 ff ff call 80101770 <ilock> if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105666: 8b 03 mov (%ebx),%eax 80105668: 83 c4 10 add $0x10,%esp 8010566b: 39 06 cmp %eax,(%esi) 8010566d: 75 41 jne 801056b0 <sys_link+0xf0> 8010566f: 83 ec 04 sub $0x4,%esp 80105672: ff 73 04 pushl 0x4(%ebx) 80105675: 57 push %edi 80105676: 56 push %esi 80105677: e8 04 c9 ff ff call 80101f80 <dirlink> 8010567c: 83 c4 10 add $0x10,%esp 8010567f: 85 c0 test %eax,%eax 80105681: 78 2d js 801056b0 <sys_link+0xf0> iunlockput(dp); 80105683: 83 ec 0c sub $0xc,%esp 80105686: 56 push %esi 80105687: e8 84 c3 ff ff call 80101a10 <iunlockput> iput(ip); 8010568c: 89 1c 24 mov %ebx,(%esp) 8010568f: e8 0c c2 ff ff call 801018a0 <iput> end_op(); 80105694: e8 17 d7 ff ff call 80102db0 <end_op> return 0; 80105699: 83 c4 10 add $0x10,%esp 8010569c: 31 c0 xor %eax,%eax } 8010569e: 8d 65 f4 lea -0xc(%ebp),%esp 801056a1: 5b pop %ebx 801056a2: 5e pop %esi 801056a3: 5f pop %edi 801056a4: 5d pop %ebp 801056a5: c3 ret 801056a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801056ad: 8d 76 00 lea 0x0(%esi),%esi iunlockput(dp); 801056b0: 83 ec 0c sub $0xc,%esp 801056b3: 56 push %esi 801056b4: e8 57 c3 ff ff call 80101a10 <iunlockput> goto bad; 801056b9: 83 c4 10 add $0x10,%esp ilock(ip); 801056bc: 83 ec 0c sub $0xc,%esp 801056bf: 53 push %ebx 801056c0: e8 ab c0 ff ff call 80101770 <ilock> ip->nlink--; 801056c5: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 801056ca: 89 1c 24 mov %ebx,(%esp) 801056cd: e8 de bf ff ff call 801016b0 <iupdate> iunlockput(ip); 801056d2: 89 1c 24 mov %ebx,(%esp) 801056d5: e8 36 c3 ff ff call 80101a10 <iunlockput> end_op(); 801056da: e8 d1 d6 ff ff call 80102db0 <end_op> return -1; 801056df: 83 c4 10 add $0x10,%esp 801056e2: b8 ff ff ff ff mov $0xffffffff,%eax 801056e7: eb b5 jmp 8010569e <sys_link+0xde> iunlockput(ip); 801056e9: 83 ec 0c sub $0xc,%esp 801056ec: 53 push %ebx 801056ed: e8 1e c3 ff ff call 80101a10 <iunlockput> end_op(); 801056f2: e8 b9 d6 ff ff call 80102db0 <end_op> return -1; 801056f7: 83 c4 10 add $0x10,%esp 801056fa: b8 ff ff ff ff mov $0xffffffff,%eax 801056ff: eb 9d jmp 8010569e <sys_link+0xde> end_op(); 80105701: e8 aa d6 ff ff call 80102db0 <end_op> return -1; 80105706: b8 ff ff ff ff mov $0xffffffff,%eax 8010570b: eb 91 jmp 8010569e <sys_link+0xde> 8010570d: 8d 76 00 lea 0x0(%esi),%esi 80105710 <sys_unlink>: { 80105710: f3 0f 1e fb endbr32 80105714: 55 push %ebp 80105715: 89 e5 mov %esp,%ebp 80105717: 57 push %edi 80105718: 56 push %esi if(argstr(0, &path) < 0) 80105719: 8d 45 c0 lea -0x40(%ebp),%eax { 8010571c: 53 push %ebx 8010571d: 83 ec 54 sub $0x54,%esp if(argstr(0, &path) < 0) 80105720: 50 push %eax 80105721: 6a 00 push $0x0 80105723: e8 08 fa ff ff call 80105130 <argstr> 80105728: 83 c4 10 add $0x10,%esp 8010572b: 85 c0 test %eax,%eax 8010572d: 0f 88 7d 01 00 00 js 801058b0 <sys_unlink+0x1a0> begin_op(); 80105733: e8 08 d6 ff ff call 80102d40 <begin_op> if((dp = nameiparent(path, name)) == 0){ 80105738: 8d 5d ca lea -0x36(%ebp),%ebx 8010573b: 83 ec 08 sub $0x8,%esp 8010573e: 53 push %ebx 8010573f: ff 75 c0 pushl -0x40(%ebp) 80105742: e8 19 c9 ff ff call 80102060 <nameiparent> 80105747: 83 c4 10 add $0x10,%esp 8010574a: 89 c6 mov %eax,%esi 8010574c: 85 c0 test %eax,%eax 8010574e: 0f 84 66 01 00 00 je 801058ba <sys_unlink+0x1aa> ilock(dp); 80105754: 83 ec 0c sub $0xc,%esp 80105757: 50 push %eax 80105758: e8 13 c0 ff ff call 80101770 <ilock> if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 8010575d: 58 pop %eax 8010575e: 5a pop %edx 8010575f: 68 80 80 10 80 push $0x80108080 80105764: 53 push %ebx 80105765: e8 36 c5 ff ff call 80101ca0 <namecmp> 8010576a: 83 c4 10 add $0x10,%esp 8010576d: 85 c0 test %eax,%eax 8010576f: 0f 84 03 01 00 00 je 80105878 <sys_unlink+0x168> 80105775: 83 ec 08 sub $0x8,%esp 80105778: 68 7f 80 10 80 push $0x8010807f 8010577d: 53 push %ebx 8010577e: e8 1d c5 ff ff call 80101ca0 <namecmp> 80105783: 83 c4 10 add $0x10,%esp 80105786: 85 c0 test %eax,%eax 80105788: 0f 84 ea 00 00 00 je 80105878 <sys_unlink+0x168> if((ip = dirlookup(dp, name, &off)) == 0) 8010578e: 83 ec 04 sub $0x4,%esp 80105791: 8d 45 c4 lea -0x3c(%ebp),%eax 80105794: 50 push %eax 80105795: 53 push %ebx 80105796: 56 push %esi 80105797: e8 24 c5 ff ff call 80101cc0 <dirlookup> 8010579c: 83 c4 10 add $0x10,%esp 8010579f: 89 c3 mov %eax,%ebx 801057a1: 85 c0 test %eax,%eax 801057a3: 0f 84 cf 00 00 00 je 80105878 <sys_unlink+0x168> ilock(ip); 801057a9: 83 ec 0c sub $0xc,%esp 801057ac: 50 push %eax 801057ad: e8 be bf ff ff call 80101770 <ilock> if(ip->nlink < 1) 801057b2: 83 c4 10 add $0x10,%esp 801057b5: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 801057ba: 0f 8e 23 01 00 00 jle 801058e3 <sys_unlink+0x1d3> if(ip->type == T_DIR && !isdirempty(ip)){ 801057c0: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 801057c5: 8d 7d d8 lea -0x28(%ebp),%edi 801057c8: 74 66 je 80105830 <sys_unlink+0x120> memset(&de, 0, sizeof(de)); 801057ca: 83 ec 04 sub $0x4,%esp 801057cd: 6a 10 push $0x10 801057cf: 6a 00 push $0x0 801057d1: 57 push %edi 801057d2: e8 c9 f5 ff ff call 80104da0 <memset> if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801057d7: 6a 10 push $0x10 801057d9: ff 75 c4 pushl -0x3c(%ebp) 801057dc: 57 push %edi 801057dd: 56 push %esi 801057de: e8 8d c3 ff ff call 80101b70 <writei> 801057e3: 83 c4 20 add $0x20,%esp 801057e6: 83 f8 10 cmp $0x10,%eax 801057e9: 0f 85 e7 00 00 00 jne 801058d6 <sys_unlink+0x1c6> if(ip->type == T_DIR){ 801057ef: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 801057f4: 0f 84 96 00 00 00 je 80105890 <sys_unlink+0x180> iunlockput(dp); 801057fa: 83 ec 0c sub $0xc,%esp 801057fd: 56 push %esi 801057fe: e8 0d c2 ff ff call 80101a10 <iunlockput> ip->nlink--; 80105803: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 80105808: 89 1c 24 mov %ebx,(%esp) 8010580b: e8 a0 be ff ff call 801016b0 <iupdate> iunlockput(ip); 80105810: 89 1c 24 mov %ebx,(%esp) 80105813: e8 f8 c1 ff ff call 80101a10 <iunlockput> end_op(); 80105818: e8 93 d5 ff ff call 80102db0 <end_op> return 0; 8010581d: 83 c4 10 add $0x10,%esp 80105820: 31 c0 xor %eax,%eax } 80105822: 8d 65 f4 lea -0xc(%ebp),%esp 80105825: 5b pop %ebx 80105826: 5e pop %esi 80105827: 5f pop %edi 80105828: 5d pop %ebp 80105829: c3 ret 8010582a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105830: 83 7b 58 20 cmpl $0x20,0x58(%ebx) 80105834: 76 94 jbe 801057ca <sys_unlink+0xba> 80105836: ba 20 00 00 00 mov $0x20,%edx 8010583b: eb 0b jmp 80105848 <sys_unlink+0x138> 8010583d: 8d 76 00 lea 0x0(%esi),%esi 80105840: 83 c2 10 add $0x10,%edx 80105843: 39 53 58 cmp %edx,0x58(%ebx) 80105846: 76 82 jbe 801057ca <sys_unlink+0xba> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105848: 6a 10 push $0x10 8010584a: 52 push %edx 8010584b: 57 push %edi 8010584c: 53 push %ebx 8010584d: 89 55 b4 mov %edx,-0x4c(%ebp) 80105850: e8 1b c2 ff ff call 80101a70 <readi> 80105855: 83 c4 10 add $0x10,%esp 80105858: 8b 55 b4 mov -0x4c(%ebp),%edx 8010585b: 83 f8 10 cmp $0x10,%eax 8010585e: 75 69 jne 801058c9 <sys_unlink+0x1b9> if(de.inum != 0) 80105860: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80105865: 74 d9 je 80105840 <sys_unlink+0x130> iunlockput(ip); 80105867: 83 ec 0c sub $0xc,%esp 8010586a: 53 push %ebx 8010586b: e8 a0 c1 ff ff call 80101a10 <iunlockput> goto bad; 80105870: 83 c4 10 add $0x10,%esp 80105873: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105877: 90 nop iunlockput(dp); 80105878: 83 ec 0c sub $0xc,%esp 8010587b: 56 push %esi 8010587c: e8 8f c1 ff ff call 80101a10 <iunlockput> end_op(); 80105881: e8 2a d5 ff ff call 80102db0 <end_op> return -1; 80105886: 83 c4 10 add $0x10,%esp 80105889: b8 ff ff ff ff mov $0xffffffff,%eax 8010588e: eb 92 jmp 80105822 <sys_unlink+0x112> iupdate(dp); 80105890: 83 ec 0c sub $0xc,%esp dp->nlink--; 80105893: 66 83 6e 56 01 subw $0x1,0x56(%esi) iupdate(dp); 80105898: 56 push %esi 80105899: e8 12 be ff ff call 801016b0 <iupdate> 8010589e: 83 c4 10 add $0x10,%esp 801058a1: e9 54 ff ff ff jmp 801057fa <sys_unlink+0xea> 801058a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801058ad: 8d 76 00 lea 0x0(%esi),%esi return -1; 801058b0: b8 ff ff ff ff mov $0xffffffff,%eax 801058b5: e9 68 ff ff ff jmp 80105822 <sys_unlink+0x112> end_op(); 801058ba: e8 f1 d4 ff ff call 80102db0 <end_op> return -1; 801058bf: b8 ff ff ff ff mov $0xffffffff,%eax 801058c4: e9 59 ff ff ff jmp 80105822 <sys_unlink+0x112> panic("isdirempty: readi"); 801058c9: 83 ec 0c sub $0xc,%esp 801058cc: 68 a4 80 10 80 push $0x801080a4 801058d1: e8 ba aa ff ff call 80100390 <panic> panic("unlink: writei"); 801058d6: 83 ec 0c sub $0xc,%esp 801058d9: 68 b6 80 10 80 push $0x801080b6 801058de: e8 ad aa ff ff call 80100390 <panic> panic("unlink: nlink < 1"); 801058e3: 83 ec 0c sub $0xc,%esp 801058e6: 68 92 80 10 80 push $0x80108092 801058eb: e8 a0 aa ff ff call 80100390 <panic> 801058f0 <sys_open>: int sys_open(void) { 801058f0: f3 0f 1e fb endbr32 801058f4: 55 push %ebp 801058f5: 89 e5 mov %esp,%ebp 801058f7: 57 push %edi 801058f8: 56 push %esi char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 801058f9: 8d 45 e0 lea -0x20(%ebp),%eax { 801058fc: 53 push %ebx 801058fd: 83 ec 24 sub $0x24,%esp if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 80105900: 50 push %eax 80105901: 6a 00 push $0x0 80105903: e8 28 f8 ff ff call 80105130 <argstr> 80105908: 83 c4 10 add $0x10,%esp 8010590b: 85 c0 test %eax,%eax 8010590d: 0f 88 8a 00 00 00 js 8010599d <sys_open+0xad> 80105913: 83 ec 08 sub $0x8,%esp 80105916: 8d 45 e4 lea -0x1c(%ebp),%eax 80105919: 50 push %eax 8010591a: 6a 01 push $0x1 8010591c: e8 5f f7 ff ff call 80105080 <argint> 80105921: 83 c4 10 add $0x10,%esp 80105924: 85 c0 test %eax,%eax 80105926: 78 75 js 8010599d <sys_open+0xad> return -1; begin_op(); 80105928: e8 13 d4 ff ff call 80102d40 <begin_op> if(omode & O_CREATE){ 8010592d: f6 45 e5 02 testb $0x2,-0x1b(%ebp) 80105931: 75 75 jne 801059a8 <sys_open+0xb8> if(ip == 0){ end_op(); return -1; } } else { if((ip = namei(path)) == 0){ 80105933: 83 ec 0c sub $0xc,%esp 80105936: ff 75 e0 pushl -0x20(%ebp) 80105939: e8 02 c7 ff ff call 80102040 <namei> 8010593e: 83 c4 10 add $0x10,%esp 80105941: 89 c6 mov %eax,%esi 80105943: 85 c0 test %eax,%eax 80105945: 74 7e je 801059c5 <sys_open+0xd5> end_op(); return -1; } ilock(ip); 80105947: 83 ec 0c sub $0xc,%esp 8010594a: 50 push %eax 8010594b: e8 20 be ff ff call 80101770 <ilock> if(ip->type == T_DIR && omode != O_RDONLY){ 80105950: 83 c4 10 add $0x10,%esp 80105953: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80105958: 0f 84 c2 00 00 00 je 80105a20 <sys_open+0x130> end_op(); return -1; } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 8010595e: e8 ad b4 ff ff call 80100e10 <filealloc> 80105963: 89 c7 mov %eax,%edi 80105965: 85 c0 test %eax,%eax 80105967: 74 23 je 8010598c <sys_open+0x9c> struct proc *curproc = myproc(); 80105969: e8 92 e0 ff ff call 80103a00 <myproc> for(fd = 0; fd < NOFILE; fd++){ 8010596e: 31 db xor %ebx,%ebx if(curproc->ofile[fd] == 0){ 80105970: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 80105974: 85 d2 test %edx,%edx 80105976: 74 60 je 801059d8 <sys_open+0xe8> for(fd = 0; fd < NOFILE; fd++){ 80105978: 83 c3 01 add $0x1,%ebx 8010597b: 83 fb 10 cmp $0x10,%ebx 8010597e: 75 f0 jne 80105970 <sys_open+0x80> if(f) fileclose(f); 80105980: 83 ec 0c sub $0xc,%esp 80105983: 57 push %edi 80105984: e8 47 b5 ff ff call 80100ed0 <fileclose> 80105989: 83 c4 10 add $0x10,%esp iunlockput(ip); 8010598c: 83 ec 0c sub $0xc,%esp 8010598f: 56 push %esi 80105990: e8 7b c0 ff ff call 80101a10 <iunlockput> end_op(); 80105995: e8 16 d4 ff ff call 80102db0 <end_op> return -1; 8010599a: 83 c4 10 add $0x10,%esp 8010599d: bb ff ff ff ff mov $0xffffffff,%ebx 801059a2: eb 6d jmp 80105a11 <sys_open+0x121> 801059a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ip = create(path, T_FILE, 0, 0); 801059a8: 83 ec 0c sub $0xc,%esp 801059ab: 8b 45 e0 mov -0x20(%ebp),%eax 801059ae: 31 c9 xor %ecx,%ecx 801059b0: ba 02 00 00 00 mov $0x2,%edx 801059b5: 6a 00 push $0x0 801059b7: e8 24 f8 ff ff call 801051e0 <create> if(ip == 0){ 801059bc: 83 c4 10 add $0x10,%esp ip = create(path, T_FILE, 0, 0); 801059bf: 89 c6 mov %eax,%esi if(ip == 0){ 801059c1: 85 c0 test %eax,%eax 801059c3: 75 99 jne 8010595e <sys_open+0x6e> end_op(); 801059c5: e8 e6 d3 ff ff call 80102db0 <end_op> return -1; 801059ca: bb ff ff ff ff mov $0xffffffff,%ebx 801059cf: eb 40 jmp 80105a11 <sys_open+0x121> 801059d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } iunlock(ip); 801059d8: 83 ec 0c sub $0xc,%esp curproc->ofile[fd] = f; 801059db: 89 7c 98 28 mov %edi,0x28(%eax,%ebx,4) iunlock(ip); 801059df: 56 push %esi 801059e0: e8 6b be ff ff call 80101850 <iunlock> end_op(); 801059e5: e8 c6 d3 ff ff call 80102db0 <end_op> f->type = FD_INODE; 801059ea: c7 07 02 00 00 00 movl $0x2,(%edi) f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); 801059f0: 8b 55 e4 mov -0x1c(%ebp),%edx f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 801059f3: 83 c4 10 add $0x10,%esp f->ip = ip; 801059f6: 89 77 10 mov %esi,0x10(%edi) f->readable = !(omode & O_WRONLY); 801059f9: 89 d0 mov %edx,%eax f->off = 0; 801059fb: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi) f->readable = !(omode & O_WRONLY); 80105a02: f7 d0 not %eax 80105a04: 83 e0 01 and $0x1,%eax f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80105a07: 83 e2 03 and $0x3,%edx f->readable = !(omode & O_WRONLY); 80105a0a: 88 47 08 mov %al,0x8(%edi) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80105a0d: 0f 95 47 09 setne 0x9(%edi) return fd; } 80105a11: 8d 65 f4 lea -0xc(%ebp),%esp 80105a14: 89 d8 mov %ebx,%eax 80105a16: 5b pop %ebx 80105a17: 5e pop %esi 80105a18: 5f pop %edi 80105a19: 5d pop %ebp 80105a1a: c3 ret 80105a1b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105a1f: 90 nop if(ip->type == T_DIR && omode != O_RDONLY){ 80105a20: 8b 4d e4 mov -0x1c(%ebp),%ecx 80105a23: 85 c9 test %ecx,%ecx 80105a25: 0f 84 33 ff ff ff je 8010595e <sys_open+0x6e> 80105a2b: e9 5c ff ff ff jmp 8010598c <sys_open+0x9c> 80105a30 <sys_mkdir>: int sys_mkdir(void) { 80105a30: f3 0f 1e fb endbr32 80105a34: 55 push %ebp 80105a35: 89 e5 mov %esp,%ebp 80105a37: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 80105a3a: e8 01 d3 ff ff call 80102d40 <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 80105a3f: 83 ec 08 sub $0x8,%esp 80105a42: 8d 45 f4 lea -0xc(%ebp),%eax 80105a45: 50 push %eax 80105a46: 6a 00 push $0x0 80105a48: e8 e3 f6 ff ff call 80105130 <argstr> 80105a4d: 83 c4 10 add $0x10,%esp 80105a50: 85 c0 test %eax,%eax 80105a52: 78 34 js 80105a88 <sys_mkdir+0x58> 80105a54: 83 ec 0c sub $0xc,%esp 80105a57: 8b 45 f4 mov -0xc(%ebp),%eax 80105a5a: 31 c9 xor %ecx,%ecx 80105a5c: ba 01 00 00 00 mov $0x1,%edx 80105a61: 6a 00 push $0x0 80105a63: e8 78 f7 ff ff call 801051e0 <create> 80105a68: 83 c4 10 add $0x10,%esp 80105a6b: 85 c0 test %eax,%eax 80105a6d: 74 19 je 80105a88 <sys_mkdir+0x58> end_op(); return -1; } iunlockput(ip); 80105a6f: 83 ec 0c sub $0xc,%esp 80105a72: 50 push %eax 80105a73: e8 98 bf ff ff call 80101a10 <iunlockput> end_op(); 80105a78: e8 33 d3 ff ff call 80102db0 <end_op> return 0; 80105a7d: 83 c4 10 add $0x10,%esp 80105a80: 31 c0 xor %eax,%eax } 80105a82: c9 leave 80105a83: c3 ret 80105a84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi end_op(); 80105a88: e8 23 d3 ff ff call 80102db0 <end_op> return -1; 80105a8d: b8 ff ff ff ff mov $0xffffffff,%eax } 80105a92: c9 leave 80105a93: c3 ret 80105a94: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105a9b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105a9f: 90 nop 80105aa0 <sys_mknod>: int sys_mknod(void) { 80105aa0: f3 0f 1e fb endbr32 80105aa4: 55 push %ebp 80105aa5: 89 e5 mov %esp,%ebp 80105aa7: 83 ec 18 sub $0x18,%esp struct inode *ip; char *path; int major, minor; begin_op(); 80105aaa: e8 91 d2 ff ff call 80102d40 <begin_op> if((argstr(0, &path)) < 0 || 80105aaf: 83 ec 08 sub $0x8,%esp 80105ab2: 8d 45 ec lea -0x14(%ebp),%eax 80105ab5: 50 push %eax 80105ab6: 6a 00 push $0x0 80105ab8: e8 73 f6 ff ff call 80105130 <argstr> 80105abd: 83 c4 10 add $0x10,%esp 80105ac0: 85 c0 test %eax,%eax 80105ac2: 78 64 js 80105b28 <sys_mknod+0x88> argint(1, &major) < 0 || 80105ac4: 83 ec 08 sub $0x8,%esp 80105ac7: 8d 45 f0 lea -0x10(%ebp),%eax 80105aca: 50 push %eax 80105acb: 6a 01 push $0x1 80105acd: e8 ae f5 ff ff call 80105080 <argint> if((argstr(0, &path)) < 0 || 80105ad2: 83 c4 10 add $0x10,%esp 80105ad5: 85 c0 test %eax,%eax 80105ad7: 78 4f js 80105b28 <sys_mknod+0x88> argint(2, &minor) < 0 || 80105ad9: 83 ec 08 sub $0x8,%esp 80105adc: 8d 45 f4 lea -0xc(%ebp),%eax 80105adf: 50 push %eax 80105ae0: 6a 02 push $0x2 80105ae2: e8 99 f5 ff ff call 80105080 <argint> argint(1, &major) < 0 || 80105ae7: 83 c4 10 add $0x10,%esp 80105aea: 85 c0 test %eax,%eax 80105aec: 78 3a js 80105b28 <sys_mknod+0x88> (ip = create(path, T_DEV, major, minor)) == 0){ 80105aee: 0f bf 45 f4 movswl -0xc(%ebp),%eax 80105af2: 83 ec 0c sub $0xc,%esp 80105af5: 0f bf 4d f0 movswl -0x10(%ebp),%ecx 80105af9: ba 03 00 00 00 mov $0x3,%edx 80105afe: 50 push %eax 80105aff: 8b 45 ec mov -0x14(%ebp),%eax 80105b02: e8 d9 f6 ff ff call 801051e0 <create> argint(2, &minor) < 0 || 80105b07: 83 c4 10 add $0x10,%esp 80105b0a: 85 c0 test %eax,%eax 80105b0c: 74 1a je 80105b28 <sys_mknod+0x88> end_op(); return -1; } iunlockput(ip); 80105b0e: 83 ec 0c sub $0xc,%esp 80105b11: 50 push %eax 80105b12: e8 f9 be ff ff call 80101a10 <iunlockput> end_op(); 80105b17: e8 94 d2 ff ff call 80102db0 <end_op> return 0; 80105b1c: 83 c4 10 add $0x10,%esp 80105b1f: 31 c0 xor %eax,%eax } 80105b21: c9 leave 80105b22: c3 ret 80105b23: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105b27: 90 nop end_op(); 80105b28: e8 83 d2 ff ff call 80102db0 <end_op> return -1; 80105b2d: b8 ff ff ff ff mov $0xffffffff,%eax } 80105b32: c9 leave 80105b33: c3 ret 80105b34: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105b3b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105b3f: 90 nop 80105b40 <sys_chdir>: int sys_chdir(void) { 80105b40: f3 0f 1e fb endbr32 80105b44: 55 push %ebp 80105b45: 89 e5 mov %esp,%ebp 80105b47: 56 push %esi 80105b48: 53 push %ebx 80105b49: 83 ec 10 sub $0x10,%esp char *path; struct inode *ip; struct proc *curproc = myproc(); 80105b4c: e8 af de ff ff call 80103a00 <myproc> 80105b51: 89 c6 mov %eax,%esi begin_op(); 80105b53: e8 e8 d1 ff ff call 80102d40 <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 80105b58: 83 ec 08 sub $0x8,%esp 80105b5b: 8d 45 f4 lea -0xc(%ebp),%eax 80105b5e: 50 push %eax 80105b5f: 6a 00 push $0x0 80105b61: e8 ca f5 ff ff call 80105130 <argstr> 80105b66: 83 c4 10 add $0x10,%esp 80105b69: 85 c0 test %eax,%eax 80105b6b: 78 73 js 80105be0 <sys_chdir+0xa0> 80105b6d: 83 ec 0c sub $0xc,%esp 80105b70: ff 75 f4 pushl -0xc(%ebp) 80105b73: e8 c8 c4 ff ff call 80102040 <namei> 80105b78: 83 c4 10 add $0x10,%esp 80105b7b: 89 c3 mov %eax,%ebx 80105b7d: 85 c0 test %eax,%eax 80105b7f: 74 5f je 80105be0 <sys_chdir+0xa0> end_op(); return -1; } ilock(ip); 80105b81: 83 ec 0c sub $0xc,%esp 80105b84: 50 push %eax 80105b85: e8 e6 bb ff ff call 80101770 <ilock> if(ip->type != T_DIR){ 80105b8a: 83 c4 10 add $0x10,%esp 80105b8d: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80105b92: 75 2c jne 80105bc0 <sys_chdir+0x80> iunlockput(ip); end_op(); return -1; } iunlock(ip); 80105b94: 83 ec 0c sub $0xc,%esp 80105b97: 53 push %ebx 80105b98: e8 b3 bc ff ff call 80101850 <iunlock> iput(curproc->cwd); 80105b9d: 58 pop %eax 80105b9e: ff 76 68 pushl 0x68(%esi) 80105ba1: e8 fa bc ff ff call 801018a0 <iput> end_op(); 80105ba6: e8 05 d2 ff ff call 80102db0 <end_op> curproc->cwd = ip; 80105bab: 89 5e 68 mov %ebx,0x68(%esi) return 0; 80105bae: 83 c4 10 add $0x10,%esp 80105bb1: 31 c0 xor %eax,%eax } 80105bb3: 8d 65 f8 lea -0x8(%ebp),%esp 80105bb6: 5b pop %ebx 80105bb7: 5e pop %esi 80105bb8: 5d pop %ebp 80105bb9: c3 ret 80105bba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi iunlockput(ip); 80105bc0: 83 ec 0c sub $0xc,%esp 80105bc3: 53 push %ebx 80105bc4: e8 47 be ff ff call 80101a10 <iunlockput> end_op(); 80105bc9: e8 e2 d1 ff ff call 80102db0 <end_op> return -1; 80105bce: 83 c4 10 add $0x10,%esp 80105bd1: b8 ff ff ff ff mov $0xffffffff,%eax 80105bd6: eb db jmp 80105bb3 <sys_chdir+0x73> 80105bd8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105bdf: 90 nop end_op(); 80105be0: e8 cb d1 ff ff call 80102db0 <end_op> return -1; 80105be5: b8 ff ff ff ff mov $0xffffffff,%eax 80105bea: eb c7 jmp 80105bb3 <sys_chdir+0x73> 80105bec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105bf0 <sys_exec>: int sys_exec(void) { 80105bf0: f3 0f 1e fb endbr32 80105bf4: 55 push %ebp 80105bf5: 89 e5 mov %esp,%ebp 80105bf7: 57 push %edi 80105bf8: 56 push %esi char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 80105bf9: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax { 80105bff: 53 push %ebx 80105c00: 81 ec a4 00 00 00 sub $0xa4,%esp if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 80105c06: 50 push %eax 80105c07: 6a 00 push $0x0 80105c09: e8 22 f5 ff ff call 80105130 <argstr> 80105c0e: 83 c4 10 add $0x10,%esp 80105c11: 85 c0 test %eax,%eax 80105c13: 0f 88 8b 00 00 00 js 80105ca4 <sys_exec+0xb4> 80105c19: 83 ec 08 sub $0x8,%esp 80105c1c: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax 80105c22: 50 push %eax 80105c23: 6a 01 push $0x1 80105c25: e8 56 f4 ff ff call 80105080 <argint> 80105c2a: 83 c4 10 add $0x10,%esp 80105c2d: 85 c0 test %eax,%eax 80105c2f: 78 73 js 80105ca4 <sys_exec+0xb4> return -1; } memset(argv, 0, sizeof(argv)); 80105c31: 83 ec 04 sub $0x4,%esp 80105c34: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax for(i=0;; i++){ 80105c3a: 31 db xor %ebx,%ebx memset(argv, 0, sizeof(argv)); 80105c3c: 68 80 00 00 00 push $0x80 80105c41: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi 80105c47: 6a 00 push $0x0 80105c49: 50 push %eax 80105c4a: e8 51 f1 ff ff call 80104da0 <memset> 80105c4f: 83 c4 10 add $0x10,%esp 80105c52: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(i >= NELEM(argv)) return -1; if(fetchint(uargv+4*i, (int*)&uarg) < 0) 80105c58: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax 80105c5e: 8d 34 9d 00 00 00 00 lea 0x0(,%ebx,4),%esi 80105c65: 83 ec 08 sub $0x8,%esp 80105c68: 57 push %edi 80105c69: 01 f0 add %esi,%eax 80105c6b: 50 push %eax 80105c6c: e8 6f f3 ff ff call 80104fe0 <fetchint> 80105c71: 83 c4 10 add $0x10,%esp 80105c74: 85 c0 test %eax,%eax 80105c76: 78 2c js 80105ca4 <sys_exec+0xb4> return -1; if(uarg == 0){ 80105c78: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax 80105c7e: 85 c0 test %eax,%eax 80105c80: 74 36 je 80105cb8 <sys_exec+0xc8> argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 80105c82: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx 80105c88: 83 ec 08 sub $0x8,%esp 80105c8b: 8d 14 31 lea (%ecx,%esi,1),%edx 80105c8e: 52 push %edx 80105c8f: 50 push %eax 80105c90: e8 8b f3 ff ff call 80105020 <fetchstr> 80105c95: 83 c4 10 add $0x10,%esp 80105c98: 85 c0 test %eax,%eax 80105c9a: 78 08 js 80105ca4 <sys_exec+0xb4> for(i=0;; i++){ 80105c9c: 83 c3 01 add $0x1,%ebx if(i >= NELEM(argv)) 80105c9f: 83 fb 20 cmp $0x20,%ebx 80105ca2: 75 b4 jne 80105c58 <sys_exec+0x68> return -1; } return exec(path, argv); } 80105ca4: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 80105ca7: b8 ff ff ff ff mov $0xffffffff,%eax } 80105cac: 5b pop %ebx 80105cad: 5e pop %esi 80105cae: 5f pop %edi 80105caf: 5d pop %ebp 80105cb0: c3 ret 80105cb1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return exec(path, argv); 80105cb8: 83 ec 08 sub $0x8,%esp 80105cbb: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax argv[i] = 0; 80105cc1: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4) 80105cc8: 00 00 00 00 return exec(path, argv); 80105ccc: 50 push %eax 80105ccd: ff b5 5c ff ff ff pushl -0xa4(%ebp) 80105cd3: e8 a8 ad ff ff call 80100a80 <exec> 80105cd8: 83 c4 10 add $0x10,%esp } 80105cdb: 8d 65 f4 lea -0xc(%ebp),%esp 80105cde: 5b pop %ebx 80105cdf: 5e pop %esi 80105ce0: 5f pop %edi 80105ce1: 5d pop %ebp 80105ce2: c3 ret 80105ce3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105cea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105cf0 <sys_pipe>: int sys_pipe(void) { 80105cf0: f3 0f 1e fb endbr32 80105cf4: 55 push %ebp 80105cf5: 89 e5 mov %esp,%ebp 80105cf7: 57 push %edi 80105cf8: 56 push %esi int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 80105cf9: 8d 45 dc lea -0x24(%ebp),%eax { 80105cfc: 53 push %ebx 80105cfd: 83 ec 20 sub $0x20,%esp if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 80105d00: 6a 08 push $0x8 80105d02: 50 push %eax 80105d03: 6a 00 push $0x0 80105d05: e8 c6 f3 ff ff call 801050d0 <argptr> 80105d0a: 83 c4 10 add $0x10,%esp 80105d0d: 85 c0 test %eax,%eax 80105d0f: 78 4e js 80105d5f <sys_pipe+0x6f> return -1; if(pipealloc(&rf, &wf) < 0) 80105d11: 83 ec 08 sub $0x8,%esp 80105d14: 8d 45 e4 lea -0x1c(%ebp),%eax 80105d17: 50 push %eax 80105d18: 8d 45 e0 lea -0x20(%ebp),%eax 80105d1b: 50 push %eax 80105d1c: e8 df d6 ff ff call 80103400 <pipealloc> 80105d21: 83 c4 10 add $0x10,%esp 80105d24: 85 c0 test %eax,%eax 80105d26: 78 37 js 80105d5f <sys_pipe+0x6f> return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 80105d28: 8b 7d e0 mov -0x20(%ebp),%edi for(fd = 0; fd < NOFILE; fd++){ 80105d2b: 31 db xor %ebx,%ebx struct proc *curproc = myproc(); 80105d2d: e8 ce dc ff ff call 80103a00 <myproc> for(fd = 0; fd < NOFILE; fd++){ 80105d32: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(curproc->ofile[fd] == 0){ 80105d38: 8b 74 98 28 mov 0x28(%eax,%ebx,4),%esi 80105d3c: 85 f6 test %esi,%esi 80105d3e: 74 30 je 80105d70 <sys_pipe+0x80> for(fd = 0; fd < NOFILE; fd++){ 80105d40: 83 c3 01 add $0x1,%ebx 80105d43: 83 fb 10 cmp $0x10,%ebx 80105d46: 75 f0 jne 80105d38 <sys_pipe+0x48> if(fd0 >= 0) myproc()->ofile[fd0] = 0; fileclose(rf); 80105d48: 83 ec 0c sub $0xc,%esp 80105d4b: ff 75 e0 pushl -0x20(%ebp) 80105d4e: e8 7d b1 ff ff call 80100ed0 <fileclose> fileclose(wf); 80105d53: 58 pop %eax 80105d54: ff 75 e4 pushl -0x1c(%ebp) 80105d57: e8 74 b1 ff ff call 80100ed0 <fileclose> return -1; 80105d5c: 83 c4 10 add $0x10,%esp 80105d5f: b8 ff ff ff ff mov $0xffffffff,%eax 80105d64: eb 5b jmp 80105dc1 <sys_pipe+0xd1> 80105d66: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105d6d: 8d 76 00 lea 0x0(%esi),%esi curproc->ofile[fd] = f; 80105d70: 8d 73 08 lea 0x8(%ebx),%esi 80105d73: 89 7c b0 08 mov %edi,0x8(%eax,%esi,4) if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 80105d77: 8b 7d e4 mov -0x1c(%ebp),%edi struct proc *curproc = myproc(); 80105d7a: e8 81 dc ff ff call 80103a00 <myproc> for(fd = 0; fd < NOFILE; fd++){ 80105d7f: 31 d2 xor %edx,%edx 80105d81: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(curproc->ofile[fd] == 0){ 80105d88: 8b 4c 90 28 mov 0x28(%eax,%edx,4),%ecx 80105d8c: 85 c9 test %ecx,%ecx 80105d8e: 74 20 je 80105db0 <sys_pipe+0xc0> for(fd = 0; fd < NOFILE; fd++){ 80105d90: 83 c2 01 add $0x1,%edx 80105d93: 83 fa 10 cmp $0x10,%edx 80105d96: 75 f0 jne 80105d88 <sys_pipe+0x98> myproc()->ofile[fd0] = 0; 80105d98: e8 63 dc ff ff call 80103a00 <myproc> 80105d9d: c7 44 b0 08 00 00 00 movl $0x0,0x8(%eax,%esi,4) 80105da4: 00 80105da5: eb a1 jmp 80105d48 <sys_pipe+0x58> 80105da7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105dae: 66 90 xchg %ax,%ax curproc->ofile[fd] = f; 80105db0: 89 7c 90 28 mov %edi,0x28(%eax,%edx,4) } fd[0] = fd0; 80105db4: 8b 45 dc mov -0x24(%ebp),%eax 80105db7: 89 18 mov %ebx,(%eax) fd[1] = fd1; 80105db9: 8b 45 dc mov -0x24(%ebp),%eax 80105dbc: 89 50 04 mov %edx,0x4(%eax) return 0; 80105dbf: 31 c0 xor %eax,%eax } 80105dc1: 8d 65 f4 lea -0xc(%ebp),%esp 80105dc4: 5b pop %ebx 80105dc5: 5e pop %esi 80105dc6: 5f pop %edi 80105dc7: 5d pop %ebp 80105dc8: c3 ret 80105dc9: 66 90 xchg %ax,%ax 80105dcb: 66 90 xchg %ax,%ax 80105dcd: 66 90 xchg %ax,%ax 80105dcf: 90 nop 80105dd0 <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 80105dd0: f3 0f 1e fb endbr32 return fork(); 80105dd4: e9 d7 dd ff ff jmp 80103bb0 <fork> 80105dd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105de0 <sys_exit>: } int sys_exit(void) { 80105de0: f3 0f 1e fb endbr32 80105de4: 55 push %ebp 80105de5: 89 e5 mov %esp,%ebp 80105de7: 83 ec 08 sub $0x8,%esp exit(); 80105dea: e8 91 e1 ff ff call 80103f80 <exit> return 0; // not reached } 80105def: 31 c0 xor %eax,%eax 80105df1: c9 leave 80105df2: c3 ret 80105df3: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105dfa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105e00 <sys_wait>: int sys_wait(void) { 80105e00: f3 0f 1e fb endbr32 return wait(); 80105e04: e9 87 e4 ff ff jmp 80104290 <wait> 80105e09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105e10 <sys_kill>: } int sys_kill(void) { 80105e10: f3 0f 1e fb endbr32 80105e14: 55 push %ebp 80105e15: 89 e5 mov %esp,%ebp 80105e17: 83 ec 20 sub $0x20,%esp int pid; if(argint(0, &pid) < 0) 80105e1a: 8d 45 f4 lea -0xc(%ebp),%eax 80105e1d: 50 push %eax 80105e1e: 6a 00 push $0x0 80105e20: e8 5b f2 ff ff call 80105080 <argint> 80105e25: 83 c4 10 add $0x10,%esp 80105e28: 85 c0 test %eax,%eax 80105e2a: 78 14 js 80105e40 <sys_kill+0x30> return -1; return kill(pid); 80105e2c: 83 ec 0c sub $0xc,%esp 80105e2f: ff 75 f4 pushl -0xc(%ebp) 80105e32: e8 f9 e6 ff ff call 80104530 <kill> 80105e37: 83 c4 10 add $0x10,%esp } 80105e3a: c9 leave 80105e3b: c3 ret 80105e3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105e40: c9 leave return -1; 80105e41: b8 ff ff ff ff mov $0xffffffff,%eax } 80105e46: c3 ret 80105e47: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105e4e: 66 90 xchg %ax,%ax 80105e50 <sys_getpid>: int sys_getpid(void) { 80105e50: f3 0f 1e fb endbr32 80105e54: 55 push %ebp 80105e55: 89 e5 mov %esp,%ebp 80105e57: 83 ec 08 sub $0x8,%esp return myproc()->pid; 80105e5a: e8 a1 db ff ff call 80103a00 <myproc> 80105e5f: 8b 40 10 mov 0x10(%eax),%eax } 80105e62: c9 leave 80105e63: c3 ret 80105e64: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105e6b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105e6f: 90 nop 80105e70 <sys_sbrk>: int sys_sbrk(void) { 80105e70: f3 0f 1e fb endbr32 80105e74: 55 push %ebp 80105e75: 89 e5 mov %esp,%ebp 80105e77: 53 push %ebx int addr; int n; if(argint(0, &n) < 0) 80105e78: 8d 45 f4 lea -0xc(%ebp),%eax { 80105e7b: 83 ec 1c sub $0x1c,%esp if(argint(0, &n) < 0) 80105e7e: 50 push %eax 80105e7f: 6a 00 push $0x0 80105e81: e8 fa f1 ff ff call 80105080 <argint> 80105e86: 83 c4 10 add $0x10,%esp 80105e89: 85 c0 test %eax,%eax 80105e8b: 78 23 js 80105eb0 <sys_sbrk+0x40> return -1; addr = myproc()->sz; 80105e8d: e8 6e db ff ff call 80103a00 <myproc> if(growproc(n) < 0) 80105e92: 83 ec 0c sub $0xc,%esp addr = myproc()->sz; 80105e95: 8b 18 mov (%eax),%ebx if(growproc(n) < 0) 80105e97: ff 75 f4 pushl -0xc(%ebp) 80105e9a: e8 91 dc ff ff call 80103b30 <growproc> 80105e9f: 83 c4 10 add $0x10,%esp 80105ea2: 85 c0 test %eax,%eax 80105ea4: 78 0a js 80105eb0 <sys_sbrk+0x40> return -1; return addr; } 80105ea6: 89 d8 mov %ebx,%eax 80105ea8: 8b 5d fc mov -0x4(%ebp),%ebx 80105eab: c9 leave 80105eac: c3 ret 80105ead: 8d 76 00 lea 0x0(%esi),%esi return -1; 80105eb0: bb ff ff ff ff mov $0xffffffff,%ebx 80105eb5: eb ef jmp 80105ea6 <sys_sbrk+0x36> 80105eb7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105ebe: 66 90 xchg %ax,%ax 80105ec0 <sys_sleep>: int sys_sleep(void) { 80105ec0: f3 0f 1e fb endbr32 80105ec4: 55 push %ebp 80105ec5: 89 e5 mov %esp,%ebp 80105ec7: 53 push %ebx int n; uint ticks0; if(argint(0, &n) < 0) 80105ec8: 8d 45 f4 lea -0xc(%ebp),%eax { 80105ecb: 83 ec 1c sub $0x1c,%esp if(argint(0, &n) < 0) 80105ece: 50 push %eax 80105ecf: 6a 00 push $0x0 80105ed1: e8 aa f1 ff ff call 80105080 <argint> 80105ed6: 83 c4 10 add $0x10,%esp 80105ed9: 85 c0 test %eax,%eax 80105edb: 0f 88 86 00 00 00 js 80105f67 <sys_sleep+0xa7> return -1; acquire(&tickslock); 80105ee1: 83 ec 0c sub $0xc,%esp 80105ee4: 68 60 6a 11 80 push $0x80116a60 80105ee9: e8 a2 ed ff ff call 80104c90 <acquire> ticks0 = ticks; while(ticks - ticks0 < n){ 80105eee: 8b 55 f4 mov -0xc(%ebp),%edx ticks0 = ticks; 80105ef1: 8b 1d a0 72 11 80 mov 0x801172a0,%ebx while(ticks - ticks0 < n){ 80105ef7: 83 c4 10 add $0x10,%esp 80105efa: 85 d2 test %edx,%edx 80105efc: 75 23 jne 80105f21 <sys_sleep+0x61> 80105efe: eb 50 jmp 80105f50 <sys_sleep+0x90> if(myproc()->killed){ release(&tickslock); return -1; } sleep(&ticks, &tickslock); 80105f00: 83 ec 08 sub $0x8,%esp 80105f03: 68 60 6a 11 80 push $0x80116a60 80105f08: 68 a0 72 11 80 push $0x801172a0 80105f0d: e8 be e2 ff ff call 801041d0 <sleep> while(ticks - ticks0 < n){ 80105f12: a1 a0 72 11 80 mov 0x801172a0,%eax 80105f17: 83 c4 10 add $0x10,%esp 80105f1a: 29 d8 sub %ebx,%eax 80105f1c: 3b 45 f4 cmp -0xc(%ebp),%eax 80105f1f: 73 2f jae 80105f50 <sys_sleep+0x90> if(myproc()->killed){ 80105f21: e8 da da ff ff call 80103a00 <myproc> 80105f26: 8b 40 24 mov 0x24(%eax),%eax 80105f29: 85 c0 test %eax,%eax 80105f2b: 74 d3 je 80105f00 <sys_sleep+0x40> release(&tickslock); 80105f2d: 83 ec 0c sub $0xc,%esp 80105f30: 68 60 6a 11 80 push $0x80116a60 80105f35: e8 16 ee ff ff call 80104d50 <release> } release(&tickslock); return 0; } 80105f3a: 8b 5d fc mov -0x4(%ebp),%ebx return -1; 80105f3d: 83 c4 10 add $0x10,%esp 80105f40: b8 ff ff ff ff mov $0xffffffff,%eax } 80105f45: c9 leave 80105f46: c3 ret 80105f47: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105f4e: 66 90 xchg %ax,%ax release(&tickslock); 80105f50: 83 ec 0c sub $0xc,%esp 80105f53: 68 60 6a 11 80 push $0x80116a60 80105f58: e8 f3 ed ff ff call 80104d50 <release> return 0; 80105f5d: 83 c4 10 add $0x10,%esp 80105f60: 31 c0 xor %eax,%eax } 80105f62: 8b 5d fc mov -0x4(%ebp),%ebx 80105f65: c9 leave 80105f66: c3 ret return -1; 80105f67: b8 ff ff ff ff mov $0xffffffff,%eax 80105f6c: eb f4 jmp 80105f62 <sys_sleep+0xa2> 80105f6e: 66 90 xchg %ax,%ax 80105f70 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 80105f70: f3 0f 1e fb endbr32 80105f74: 55 push %ebp 80105f75: 89 e5 mov %esp,%ebp 80105f77: 53 push %ebx 80105f78: 83 ec 10 sub $0x10,%esp uint xticks; acquire(&tickslock); 80105f7b: 68 60 6a 11 80 push $0x80116a60 80105f80: e8 0b ed ff ff call 80104c90 <acquire> xticks = ticks; 80105f85: 8b 1d a0 72 11 80 mov 0x801172a0,%ebx release(&tickslock); 80105f8b: c7 04 24 60 6a 11 80 movl $0x80116a60,(%esp) 80105f92: e8 b9 ed ff ff call 80104d50 <release> return xticks; } 80105f97: 89 d8 mov %ebx,%eax 80105f99: 8b 5d fc mov -0x4(%ebp),%ebx 80105f9c: c9 leave 80105f9d: c3 ret 80105f9e: 66 90 xchg %ax,%ax 80105fa0 <sys_waitx>: int sys_waitx(void) { 80105fa0: f3 0f 1e fb endbr32 80105fa4: 55 push %ebp 80105fa5: 89 e5 mov %esp,%ebp 80105fa7: 83 ec 1c sub $0x1c,%esp int *wtime; int *rtime; if(argptr(0,(void *)&wtime,sizeof(int)) <0 || argptr(1,(void*)&rtime,sizeof(int))<0) 80105faa: 8d 45 f0 lea -0x10(%ebp),%eax 80105fad: 6a 04 push $0x4 80105faf: 50 push %eax 80105fb0: 6a 00 push $0x0 80105fb2: e8 19 f1 ff ff call 801050d0 <argptr> 80105fb7: 83 c4 10 add $0x10,%esp 80105fba: 85 c0 test %eax,%eax 80105fbc: 78 32 js 80105ff0 <sys_waitx+0x50> 80105fbe: 83 ec 04 sub $0x4,%esp 80105fc1: 8d 45 f4 lea -0xc(%ebp),%eax 80105fc4: 6a 04 push $0x4 80105fc6: 50 push %eax 80105fc7: 6a 01 push $0x1 80105fc9: e8 02 f1 ff ff call 801050d0 <argptr> 80105fce: 83 c4 10 add $0x10,%esp 80105fd1: 85 c0 test %eax,%eax 80105fd3: 78 1b js 80105ff0 <sys_waitx+0x50> { return -1; } // cprintf("w %p ",wtime); // cprintf("r %p ",rtime); return waitx(wtime, rtime); 80105fd5: 83 ec 08 sub $0x8,%esp 80105fd8: ff 75 f4 pushl -0xc(%ebp) 80105fdb: ff 75 f0 pushl -0x10(%ebp) 80105fde: e8 ad e3 ff ff call 80104390 <waitx> 80105fe3: 83 c4 10 add $0x10,%esp } 80105fe6: c9 leave 80105fe7: c3 ret 80105fe8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105fef: 90 nop 80105ff0: c9 leave return -1; 80105ff1: b8 ff ff ff ff mov $0xffffffff,%eax } 80105ff6: c3 ret 80105ff7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105ffe: 66 90 xchg %ax,%ax 80106000 <sys_set_priority>: int sys_set_priority(void) { 80106000: f3 0f 1e fb endbr32 80106004: 55 push %ebp 80106005: 89 e5 mov %esp,%ebp 80106007: 83 ec 20 sub $0x20,%esp int new_priority,pid; if(argint(0,&new_priority)<0 || argint(1,&pid)<0) 8010600a: 8d 45 f0 lea -0x10(%ebp),%eax 8010600d: 50 push %eax 8010600e: 6a 00 push $0x0 80106010: e8 6b f0 ff ff call 80105080 <argint> 80106015: 83 c4 10 add $0x10,%esp 80106018: 85 c0 test %eax,%eax 8010601a: 78 2c js 80106048 <sys_set_priority+0x48> 8010601c: 83 ec 08 sub $0x8,%esp 8010601f: 8d 45 f4 lea -0xc(%ebp),%eax 80106022: 50 push %eax 80106023: 6a 01 push $0x1 80106025: e8 56 f0 ff ff call 80105080 <argint> 8010602a: 83 c4 10 add $0x10,%esp 8010602d: 85 c0 test %eax,%eax 8010602f: 78 17 js 80106048 <sys_set_priority+0x48> { return -1; } return set_priority(new_priority,pid); 80106031: 83 ec 08 sub $0x8,%esp 80106034: ff 75 f4 pushl -0xc(%ebp) 80106037: ff 75 f0 pushl -0x10(%ebp) 8010603a: e8 f1 e0 ff ff call 80104130 <set_priority> 8010603f: 83 c4 10 add $0x10,%esp } 80106042: c9 leave 80106043: c3 ret 80106044: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106048: c9 leave return -1; 80106049: b8 ff ff ff ff mov $0xffffffff,%eax } 8010604e: c3 ret 8010604f: 90 nop 80106050 <sys_ps>: int sys_ps(void) { 80106050: f3 0f 1e fb endbr32 80106054: 55 push %ebp 80106055: 89 e5 mov %esp,%ebp 80106057: 83 ec 1c sub $0x1c,%esp struct procstatus *arr; if(argptr(0,(void *)&arr,sizeof(arr))<0) 8010605a: 8d 45 f4 lea -0xc(%ebp),%eax 8010605d: 6a 04 push $0x4 8010605f: 50 push %eax 80106060: 6a 00 push $0x0 80106062: e8 69 f0 ff ff call 801050d0 <argptr> 80106067: 83 c4 10 add $0x10,%esp 8010606a: 85 c0 test %eax,%eax 8010606c: 78 12 js 80106080 <sys_ps+0x30> { return -1; } return ps(arr); 8010606e: 83 ec 0c sub $0xc,%esp 80106071: ff 75 f4 pushl -0xc(%ebp) 80106074: e8 67 e6 ff ff call 801046e0 <ps> 80106079: 83 c4 10 add $0x10,%esp } 8010607c: c9 leave 8010607d: c3 ret 8010607e: 66 90 xchg %ax,%ax 80106080: c9 leave return -1; 80106081: b8 ff ff ff ff mov $0xffffffff,%eax } 80106086: c3 ret 80106087 <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 80106087: 1e push %ds pushl %es 80106088: 06 push %es pushl %fs 80106089: 0f a0 push %fs pushl %gs 8010608b: 0f a8 push %gs pushal 8010608d: 60 pusha # Set up data segments. movw $(SEG_KDATA<<3), %ax 8010608e: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 80106092: 8e d8 mov %eax,%ds movw %ax, %es 80106094: 8e c0 mov %eax,%es # Call trap(tf), where tf=%esp pushl %esp 80106096: 54 push %esp call trap 80106097: e8 c4 00 00 00 call 80106160 <trap> addl $4, %esp 8010609c: 83 c4 04 add $0x4,%esp 8010609f <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 8010609f: 61 popa popl %gs 801060a0: 0f a9 pop %gs popl %fs 801060a2: 0f a1 pop %fs popl %es 801060a4: 07 pop %es popl %ds 801060a5: 1f pop %ds addl $0x8, %esp # trapno and errcode 801060a6: 83 c4 08 add $0x8,%esp iret 801060a9: cf iret 801060aa: 66 90 xchg %ax,%ax 801060ac: 66 90 xchg %ax,%ax 801060ae: 66 90 xchg %ax,%ax 801060b0 <tvinit>: struct spinlock tickslock; uint ticks; void tvinit(void) { 801060b0: f3 0f 1e fb endbr32 801060b4: 55 push %ebp int i; for(i = 0; i < 256; i++) 801060b5: 31 c0 xor %eax,%eax { 801060b7: 89 e5 mov %esp,%ebp 801060b9: 83 ec 08 sub $0x8,%esp 801060bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 801060c0: 8b 14 85 1c b0 10 80 mov -0x7fef4fe4(,%eax,4),%edx 801060c7: c7 04 c5 a2 6a 11 80 movl $0x8e000008,-0x7fee955e(,%eax,8) 801060ce: 08 00 00 8e 801060d2: 66 89 14 c5 a0 6a 11 mov %dx,-0x7fee9560(,%eax,8) 801060d9: 80 801060da: c1 ea 10 shr $0x10,%edx 801060dd: 66 89 14 c5 a6 6a 11 mov %dx,-0x7fee955a(,%eax,8) 801060e4: 80 for(i = 0; i < 256; i++) 801060e5: 83 c0 01 add $0x1,%eax 801060e8: 3d 00 01 00 00 cmp $0x100,%eax 801060ed: 75 d1 jne 801060c0 <tvinit+0x10> SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); initlock(&tickslock, "time"); 801060ef: 83 ec 08 sub $0x8,%esp SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 801060f2: a1 1c b1 10 80 mov 0x8010b11c,%eax 801060f7: c7 05 a2 6c 11 80 08 movl $0xef000008,0x80116ca2 801060fe: 00 00 ef initlock(&tickslock, "time"); 80106101: 68 c5 80 10 80 push $0x801080c5 80106106: 68 60 6a 11 80 push $0x80116a60 SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 8010610b: 66 a3 a0 6c 11 80 mov %ax,0x80116ca0 80106111: c1 e8 10 shr $0x10,%eax 80106114: 66 a3 a6 6c 11 80 mov %ax,0x80116ca6 initlock(&tickslock, "time"); 8010611a: e8 f1 e9 ff ff call 80104b10 <initlock> } 8010611f: 83 c4 10 add $0x10,%esp 80106122: c9 leave 80106123: c3 ret 80106124: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010612b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010612f: 90 nop 80106130 <idtinit>: void idtinit(void) { 80106130: f3 0f 1e fb endbr32 80106134: 55 push %ebp pd[0] = size-1; 80106135: b8 ff 07 00 00 mov $0x7ff,%eax 8010613a: 89 e5 mov %esp,%ebp 8010613c: 83 ec 10 sub $0x10,%esp 8010613f: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80106143: b8 a0 6a 11 80 mov $0x80116aa0,%eax 80106148: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 8010614c: c1 e8 10 shr $0x10,%eax 8010614f: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 80106153: 8d 45 fa lea -0x6(%ebp),%eax 80106156: 0f 01 18 lidtl (%eax) lidt(idt, sizeof(idt)); } 80106159: c9 leave 8010615a: c3 ret 8010615b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010615f: 90 nop 80106160 <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 80106160: f3 0f 1e fb endbr32 80106164: 55 push %ebp 80106165: 89 e5 mov %esp,%ebp 80106167: 57 push %edi 80106168: 56 push %esi 80106169: 53 push %ebx 8010616a: 83 ec 1c sub $0x1c,%esp 8010616d: 8b 5d 08 mov 0x8(%ebp),%ebx if(tf->trapno == T_SYSCALL){ 80106170: 8b 43 30 mov 0x30(%ebx),%eax 80106173: 83 f8 40 cmp $0x40,%eax 80106176: 0f 84 c4 01 00 00 je 80106340 <trap+0x1e0> if(myproc()->killed) exit(); return; } switch(tf->trapno){ 8010617c: 83 e8 20 sub $0x20,%eax 8010617f: 83 f8 1f cmp $0x1f,%eax 80106182: 77 08 ja 8010618c <trap+0x2c> 80106184: 3e ff 24 85 6c 81 10 notrack jmp *-0x7fef7e94(,%eax,4) 8010618b: 80 lapiceoi(); break; //PAGEBREAK: 13 default: if(myproc() == 0 || (tf->cs&3) == 0){ 8010618c: e8 6f d8 ff ff call 80103a00 <myproc> 80106191: 8b 7b 38 mov 0x38(%ebx),%edi 80106194: 85 c0 test %eax,%eax 80106196: 0f 84 f3 01 00 00 je 8010638f <trap+0x22f> 8010619c: f6 43 3c 03 testb $0x3,0x3c(%ebx) 801061a0: 0f 84 e9 01 00 00 je 8010638f <trap+0x22f> static inline uint rcr2(void) { uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 801061a6: 0f 20 d1 mov %cr2,%ecx 801061a9: 89 4d d8 mov %ecx,-0x28(%ebp) 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 " 801061ac: e8 2f d8 ff ff call 801039e0 <cpuid> 801061b1: 8b 73 30 mov 0x30(%ebx),%esi 801061b4: 89 45 dc mov %eax,-0x24(%ebp) 801061b7: 8b 43 34 mov 0x34(%ebx),%eax 801061ba: 89 45 e4 mov %eax,-0x1c(%ebp) "eip 0x%x addr 0x%x--kill proc\n", myproc()->pid, myproc()->name, tf->trapno, 801061bd: e8 3e d8 ff ff call 80103a00 <myproc> 801061c2: 89 45 e0 mov %eax,-0x20(%ebp) 801061c5: e8 36 d8 ff ff call 80103a00 <myproc> cprintf("pid %d %s: trap %d err %d on cpu %d " 801061ca: 8b 4d d8 mov -0x28(%ebp),%ecx 801061cd: 8b 55 dc mov -0x24(%ebp),%edx 801061d0: 51 push %ecx 801061d1: 57 push %edi 801061d2: 52 push %edx 801061d3: ff 75 e4 pushl -0x1c(%ebp) 801061d6: 56 push %esi myproc()->pid, myproc()->name, tf->trapno, 801061d7: 8b 75 e0 mov -0x20(%ebp),%esi 801061da: 83 c6 6c add $0x6c,%esi cprintf("pid %d %s: trap %d err %d on cpu %d " 801061dd: 56 push %esi 801061de: ff 70 10 pushl 0x10(%eax) 801061e1: 68 28 81 10 80 push $0x80108128 801061e6: e8 c5 a4 ff ff call 801006b0 <cprintf> tf->err, cpuid(), tf->eip, rcr2()); myproc()->killed = 1; 801061eb: 83 c4 20 add $0x20,%esp 801061ee: e8 0d d8 ff ff call 80103a00 <myproc> 801061f3: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) } // 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) 801061fa: e8 01 d8 ff ff call 80103a00 <myproc> 801061ff: 85 c0 test %eax,%eax 80106201: 74 1d je 80106220 <trap+0xc0> 80106203: e8 f8 d7 ff ff call 80103a00 <myproc> 80106208: 8b 50 24 mov 0x24(%eax),%edx 8010620b: 85 d2 test %edx,%edx 8010620d: 74 11 je 80106220 <trap+0xc0> 8010620f: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 80106213: 83 e0 03 and $0x3,%eax 80106216: 66 83 f8 03 cmp $0x3,%ax 8010621a: 0f 84 58 01 00 00 je 80106378 <trap+0x218> 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 && tf->trapno == T_IRQ0+IRQ_TIMER) 80106220: e8 db d7 ff ff call 80103a00 <myproc> 80106225: 85 c0 test %eax,%eax 80106227: 74 0f je 80106238 <trap+0xd8> 80106229: e8 d2 d7 ff ff call 80103a00 <myproc> 8010622e: 83 78 0c 04 cmpl $0x4,0xc(%eax) 80106232: 0f 84 f0 00 00 00 je 80106328 <trap+0x1c8> yield(); #endif } // Check if the process has been killed since we yielded if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80106238: e8 c3 d7 ff ff call 80103a00 <myproc> 8010623d: 85 c0 test %eax,%eax 8010623f: 74 1d je 8010625e <trap+0xfe> 80106241: e8 ba d7 ff ff call 80103a00 <myproc> 80106246: 8b 40 24 mov 0x24(%eax),%eax 80106249: 85 c0 test %eax,%eax 8010624b: 74 11 je 8010625e <trap+0xfe> 8010624d: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 80106251: 83 e0 03 and $0x3,%eax 80106254: 66 83 f8 03 cmp $0x3,%ax 80106258: 0f 84 0b 01 00 00 je 80106369 <trap+0x209> exit(); } 8010625e: 8d 65 f4 lea -0xc(%ebp),%esp 80106261: 5b pop %ebx 80106262: 5e pop %esi 80106263: 5f pop %edi 80106264: 5d pop %ebp 80106265: c3 ret ideintr(); 80106266: e8 85 bf ff ff call 801021f0 <ideintr> lapiceoi(); 8010626b: e8 60 c6 ff ff call 801028d0 <lapiceoi> if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80106270: e8 8b d7 ff ff call 80103a00 <myproc> 80106275: 85 c0 test %eax,%eax 80106277: 75 8a jne 80106203 <trap+0xa3> 80106279: eb a5 jmp 80106220 <trap+0xc0> if(cpuid() == 0){ 8010627b: e8 60 d7 ff ff call 801039e0 <cpuid> 80106280: 85 c0 test %eax,%eax 80106282: 75 e7 jne 8010626b <trap+0x10b> acquire(&tickslock); 80106284: 83 ec 0c sub $0xc,%esp 80106287: 68 60 6a 11 80 push $0x80116a60 8010628c: e8 ff e9 ff ff call 80104c90 <acquire> wakeup(&ticks); 80106291: c7 04 24 a0 72 11 80 movl $0x801172a0,(%esp) ticks++; 80106298: 83 05 a0 72 11 80 01 addl $0x1,0x801172a0 wakeup(&ticks); 8010629f: e8 1c e2 ff ff call 801044c0 <wakeup> release(&tickslock); 801062a4: c7 04 24 60 6a 11 80 movl $0x80116a60,(%esp) 801062ab: e8 a0 ea ff ff call 80104d50 <release> updatetimes(); 801062b0: e8 1b da ff ff call 80103cd0 <updatetimes> 801062b5: 83 c4 10 add $0x10,%esp lapiceoi(); 801062b8: eb b1 jmp 8010626b <trap+0x10b> kbdintr(); 801062ba: e8 d1 c4 ff ff call 80102790 <kbdintr> lapiceoi(); 801062bf: e8 0c c6 ff ff call 801028d0 <lapiceoi> if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 801062c4: e8 37 d7 ff ff call 80103a00 <myproc> 801062c9: 85 c0 test %eax,%eax 801062cb: 0f 85 32 ff ff ff jne 80106203 <trap+0xa3> 801062d1: e9 4a ff ff ff jmp 80106220 <trap+0xc0> uartintr(); 801062d6: e8 55 02 00 00 call 80106530 <uartintr> lapiceoi(); 801062db: e8 f0 c5 ff ff call 801028d0 <lapiceoi> if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 801062e0: e8 1b d7 ff ff call 80103a00 <myproc> 801062e5: 85 c0 test %eax,%eax 801062e7: 0f 85 16 ff ff ff jne 80106203 <trap+0xa3> 801062ed: e9 2e ff ff ff jmp 80106220 <trap+0xc0> cprintf("cpu%d: spurious interrupt at %x:%x\n", 801062f2: 8b 7b 38 mov 0x38(%ebx),%edi 801062f5: 0f b7 73 3c movzwl 0x3c(%ebx),%esi 801062f9: e8 e2 d6 ff ff call 801039e0 <cpuid> 801062fe: 57 push %edi 801062ff: 56 push %esi 80106300: 50 push %eax 80106301: 68 d0 80 10 80 push $0x801080d0 80106306: e8 a5 a3 ff ff call 801006b0 <cprintf> lapiceoi(); 8010630b: e8 c0 c5 ff ff call 801028d0 <lapiceoi> break; 80106310: 83 c4 10 add $0x10,%esp if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80106313: e8 e8 d6 ff ff call 80103a00 <myproc> 80106318: 85 c0 test %eax,%eax 8010631a: 0f 85 e3 fe ff ff jne 80106203 <trap+0xa3> 80106320: e9 fb fe ff ff jmp 80106220 <trap+0xc0> 80106325: 8d 76 00 lea 0x0(%esi),%esi if(myproc() && myproc()->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) 80106328: 83 7b 30 20 cmpl $0x20,0x30(%ebx) 8010632c: 0f 85 06 ff ff ff jne 80106238 <trap+0xd8> yield(); 80106332: e8 a9 dd ff ff call 801040e0 <yield> 80106337: e9 fc fe ff ff jmp 80106238 <trap+0xd8> 8010633c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(myproc()->killed) 80106340: e8 bb d6 ff ff call 80103a00 <myproc> 80106345: 8b 70 24 mov 0x24(%eax),%esi 80106348: 85 f6 test %esi,%esi 8010634a: 75 3c jne 80106388 <trap+0x228> myproc()->tf = tf; 8010634c: e8 af d6 ff ff call 80103a00 <myproc> 80106351: 89 58 18 mov %ebx,0x18(%eax) syscall(); 80106354: e8 17 ee ff ff call 80105170 <syscall> if(myproc()->killed) 80106359: e8 a2 d6 ff ff call 80103a00 <myproc> 8010635e: 8b 48 24 mov 0x24(%eax),%ecx 80106361: 85 c9 test %ecx,%ecx 80106363: 0f 84 f5 fe ff ff je 8010625e <trap+0xfe> } 80106369: 8d 65 f4 lea -0xc(%ebp),%esp 8010636c: 5b pop %ebx 8010636d: 5e pop %esi 8010636e: 5f pop %edi 8010636f: 5d pop %ebp exit(); 80106370: e9 0b dc ff ff jmp 80103f80 <exit> 80106375: 8d 76 00 lea 0x0(%esi),%esi exit(); 80106378: e8 03 dc ff ff call 80103f80 <exit> 8010637d: e9 9e fe ff ff jmp 80106220 <trap+0xc0> 80106382: 8d b6 00 00 00 00 lea 0x0(%esi),%esi exit(); 80106388: e8 f3 db ff ff call 80103f80 <exit> 8010638d: eb bd jmp 8010634c <trap+0x1ec> 8010638f: 0f 20 d6 mov %cr2,%esi cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106392: e8 49 d6 ff ff call 801039e0 <cpuid> 80106397: 83 ec 0c sub $0xc,%esp 8010639a: 56 push %esi 8010639b: 57 push %edi 8010639c: 50 push %eax 8010639d: ff 73 30 pushl 0x30(%ebx) 801063a0: 68 f4 80 10 80 push $0x801080f4 801063a5: e8 06 a3 ff ff call 801006b0 <cprintf> panic("trap"); 801063aa: 83 c4 14 add $0x14,%esp 801063ad: 68 ca 80 10 80 push $0x801080ca 801063b2: e8 d9 9f ff ff call 80100390 <panic> 801063b7: 66 90 xchg %ax,%ax 801063b9: 66 90 xchg %ax,%ax 801063bb: 66 90 xchg %ax,%ax 801063bd: 66 90 xchg %ax,%ax 801063bf: 90 nop 801063c0 <uartgetc>: outb(COM1+0, c); } static int uartgetc(void) { 801063c0: f3 0f 1e fb endbr32 if(!uart) 801063c4: a1 bc b5 10 80 mov 0x8010b5bc,%eax 801063c9: 85 c0 test %eax,%eax 801063cb: 74 1b je 801063e8 <uartgetc+0x28> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801063cd: ba fd 03 00 00 mov $0x3fd,%edx 801063d2: ec in (%dx),%al return -1; if(!(inb(COM1+5) & 0x01)) 801063d3: a8 01 test $0x1,%al 801063d5: 74 11 je 801063e8 <uartgetc+0x28> 801063d7: ba f8 03 00 00 mov $0x3f8,%edx 801063dc: ec in (%dx),%al return -1; return inb(COM1+0); 801063dd: 0f b6 c0 movzbl %al,%eax 801063e0: c3 ret 801063e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 801063e8: b8 ff ff ff ff mov $0xffffffff,%eax } 801063ed: c3 ret 801063ee: 66 90 xchg %ax,%ax 801063f0 <uartputc.part.0>: uartputc(int c) 801063f0: 55 push %ebp 801063f1: 89 e5 mov %esp,%ebp 801063f3: 57 push %edi 801063f4: 89 c7 mov %eax,%edi 801063f6: 56 push %esi 801063f7: be fd 03 00 00 mov $0x3fd,%esi 801063fc: 53 push %ebx 801063fd: bb 80 00 00 00 mov $0x80,%ebx 80106402: 83 ec 0c sub $0xc,%esp 80106405: eb 1b jmp 80106422 <uartputc.part.0+0x32> 80106407: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010640e: 66 90 xchg %ax,%ax microdelay(10); 80106410: 83 ec 0c sub $0xc,%esp 80106413: 6a 0a push $0xa 80106415: e8 d6 c4 ff ff call 801028f0 <microdelay> for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 8010641a: 83 c4 10 add $0x10,%esp 8010641d: 83 eb 01 sub $0x1,%ebx 80106420: 74 07 je 80106429 <uartputc.part.0+0x39> 80106422: 89 f2 mov %esi,%edx 80106424: ec in (%dx),%al 80106425: a8 20 test $0x20,%al 80106427: 74 e7 je 80106410 <uartputc.part.0+0x20> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106429: ba f8 03 00 00 mov $0x3f8,%edx 8010642e: 89 f8 mov %edi,%eax 80106430: ee out %al,(%dx) } 80106431: 8d 65 f4 lea -0xc(%ebp),%esp 80106434: 5b pop %ebx 80106435: 5e pop %esi 80106436: 5f pop %edi 80106437: 5d pop %ebp 80106438: c3 ret 80106439: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106440 <uartinit>: { 80106440: f3 0f 1e fb endbr32 80106444: 55 push %ebp 80106445: 31 c9 xor %ecx,%ecx 80106447: 89 c8 mov %ecx,%eax 80106449: 89 e5 mov %esp,%ebp 8010644b: 57 push %edi 8010644c: 56 push %esi 8010644d: 53 push %ebx 8010644e: bb fa 03 00 00 mov $0x3fa,%ebx 80106453: 89 da mov %ebx,%edx 80106455: 83 ec 0c sub $0xc,%esp 80106458: ee out %al,(%dx) 80106459: bf fb 03 00 00 mov $0x3fb,%edi 8010645e: b8 80 ff ff ff mov $0xffffff80,%eax 80106463: 89 fa mov %edi,%edx 80106465: ee out %al,(%dx) 80106466: b8 0c 00 00 00 mov $0xc,%eax 8010646b: ba f8 03 00 00 mov $0x3f8,%edx 80106470: ee out %al,(%dx) 80106471: be f9 03 00 00 mov $0x3f9,%esi 80106476: 89 c8 mov %ecx,%eax 80106478: 89 f2 mov %esi,%edx 8010647a: ee out %al,(%dx) 8010647b: b8 03 00 00 00 mov $0x3,%eax 80106480: 89 fa mov %edi,%edx 80106482: ee out %al,(%dx) 80106483: ba fc 03 00 00 mov $0x3fc,%edx 80106488: 89 c8 mov %ecx,%eax 8010648a: ee out %al,(%dx) 8010648b: b8 01 00 00 00 mov $0x1,%eax 80106490: 89 f2 mov %esi,%edx 80106492: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80106493: ba fd 03 00 00 mov $0x3fd,%edx 80106498: ec in (%dx),%al if(inb(COM1+5) == 0xFF) 80106499: 3c ff cmp $0xff,%al 8010649b: 74 52 je 801064ef <uartinit+0xaf> uart = 1; 8010649d: c7 05 bc b5 10 80 01 movl $0x1,0x8010b5bc 801064a4: 00 00 00 801064a7: 89 da mov %ebx,%edx 801064a9: ec in (%dx),%al 801064aa: ba f8 03 00 00 mov $0x3f8,%edx 801064af: ec in (%dx),%al ioapicenable(IRQ_COM1, 0); 801064b0: 83 ec 08 sub $0x8,%esp 801064b3: be 76 00 00 00 mov $0x76,%esi for(p="xv6...\n"; *p; p++) 801064b8: bb ec 81 10 80 mov $0x801081ec,%ebx ioapicenable(IRQ_COM1, 0); 801064bd: 6a 00 push $0x0 801064bf: 6a 04 push $0x4 801064c1: e8 7a bf ff ff call 80102440 <ioapicenable> 801064c6: 83 c4 10 add $0x10,%esp for(p="xv6...\n"; *p; p++) 801064c9: b8 78 00 00 00 mov $0x78,%eax 801064ce: eb 04 jmp 801064d4 <uartinit+0x94> 801064d0: 0f b6 73 01 movzbl 0x1(%ebx),%esi if(!uart) 801064d4: 8b 15 bc b5 10 80 mov 0x8010b5bc,%edx 801064da: 85 d2 test %edx,%edx 801064dc: 74 08 je 801064e6 <uartinit+0xa6> uartputc(*p); 801064de: 0f be c0 movsbl %al,%eax 801064e1: e8 0a ff ff ff call 801063f0 <uartputc.part.0> for(p="xv6...\n"; *p; p++) 801064e6: 89 f0 mov %esi,%eax 801064e8: 83 c3 01 add $0x1,%ebx 801064eb: 84 c0 test %al,%al 801064ed: 75 e1 jne 801064d0 <uartinit+0x90> } 801064ef: 8d 65 f4 lea -0xc(%ebp),%esp 801064f2: 5b pop %ebx 801064f3: 5e pop %esi 801064f4: 5f pop %edi 801064f5: 5d pop %ebp 801064f6: c3 ret 801064f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801064fe: 66 90 xchg %ax,%ax 80106500 <uartputc>: { 80106500: f3 0f 1e fb endbr32 80106504: 55 push %ebp if(!uart) 80106505: 8b 15 bc b5 10 80 mov 0x8010b5bc,%edx { 8010650b: 89 e5 mov %esp,%ebp 8010650d: 8b 45 08 mov 0x8(%ebp),%eax if(!uart) 80106510: 85 d2 test %edx,%edx 80106512: 74 0c je 80106520 <uartputc+0x20> } 80106514: 5d pop %ebp 80106515: e9 d6 fe ff ff jmp 801063f0 <uartputc.part.0> 8010651a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106520: 5d pop %ebp 80106521: c3 ret 80106522: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106529: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106530 <uartintr>: void uartintr(void) { 80106530: f3 0f 1e fb endbr32 80106534: 55 push %ebp 80106535: 89 e5 mov %esp,%ebp 80106537: 83 ec 14 sub $0x14,%esp consoleintr(uartgetc); 8010653a: 68 c0 63 10 80 push $0x801063c0 8010653f: e8 1c a3 ff ff call 80100860 <consoleintr> } 80106544: 83 c4 10 add $0x10,%esp 80106547: c9 leave 80106548: c3 ret 80106549 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80106549: 6a 00 push $0x0 pushl $0 8010654b: 6a 00 push $0x0 jmp alltraps 8010654d: e9 35 fb ff ff jmp 80106087 <alltraps> 80106552 <vector1>: .globl vector1 vector1: pushl $0 80106552: 6a 00 push $0x0 pushl $1 80106554: 6a 01 push $0x1 jmp alltraps 80106556: e9 2c fb ff ff jmp 80106087 <alltraps> 8010655b <vector2>: .globl vector2 vector2: pushl $0 8010655b: 6a 00 push $0x0 pushl $2 8010655d: 6a 02 push $0x2 jmp alltraps 8010655f: e9 23 fb ff ff jmp 80106087 <alltraps> 80106564 <vector3>: .globl vector3 vector3: pushl $0 80106564: 6a 00 push $0x0 pushl $3 80106566: 6a 03 push $0x3 jmp alltraps 80106568: e9 1a fb ff ff jmp 80106087 <alltraps> 8010656d <vector4>: .globl vector4 vector4: pushl $0 8010656d: 6a 00 push $0x0 pushl $4 8010656f: 6a 04 push $0x4 jmp alltraps 80106571: e9 11 fb ff ff jmp 80106087 <alltraps> 80106576 <vector5>: .globl vector5 vector5: pushl $0 80106576: 6a 00 push $0x0 pushl $5 80106578: 6a 05 push $0x5 jmp alltraps 8010657a: e9 08 fb ff ff jmp 80106087 <alltraps> 8010657f <vector6>: .globl vector6 vector6: pushl $0 8010657f: 6a 00 push $0x0 pushl $6 80106581: 6a 06 push $0x6 jmp alltraps 80106583: e9 ff fa ff ff jmp 80106087 <alltraps> 80106588 <vector7>: .globl vector7 vector7: pushl $0 80106588: 6a 00 push $0x0 pushl $7 8010658a: 6a 07 push $0x7 jmp alltraps 8010658c: e9 f6 fa ff ff jmp 80106087 <alltraps> 80106591 <vector8>: .globl vector8 vector8: pushl $8 80106591: 6a 08 push $0x8 jmp alltraps 80106593: e9 ef fa ff ff jmp 80106087 <alltraps> 80106598 <vector9>: .globl vector9 vector9: pushl $0 80106598: 6a 00 push $0x0 pushl $9 8010659a: 6a 09 push $0x9 jmp alltraps 8010659c: e9 e6 fa ff ff jmp 80106087 <alltraps> 801065a1 <vector10>: .globl vector10 vector10: pushl $10 801065a1: 6a 0a push $0xa jmp alltraps 801065a3: e9 df fa ff ff jmp 80106087 <alltraps> 801065a8 <vector11>: .globl vector11 vector11: pushl $11 801065a8: 6a 0b push $0xb jmp alltraps 801065aa: e9 d8 fa ff ff jmp 80106087 <alltraps> 801065af <vector12>: .globl vector12 vector12: pushl $12 801065af: 6a 0c push $0xc jmp alltraps 801065b1: e9 d1 fa ff ff jmp 80106087 <alltraps> 801065b6 <vector13>: .globl vector13 vector13: pushl $13 801065b6: 6a 0d push $0xd jmp alltraps 801065b8: e9 ca fa ff ff jmp 80106087 <alltraps> 801065bd <vector14>: .globl vector14 vector14: pushl $14 801065bd: 6a 0e push $0xe jmp alltraps 801065bf: e9 c3 fa ff ff jmp 80106087 <alltraps> 801065c4 <vector15>: .globl vector15 vector15: pushl $0 801065c4: 6a 00 push $0x0 pushl $15 801065c6: 6a 0f push $0xf jmp alltraps 801065c8: e9 ba fa ff ff jmp 80106087 <alltraps> 801065cd <vector16>: .globl vector16 vector16: pushl $0 801065cd: 6a 00 push $0x0 pushl $16 801065cf: 6a 10 push $0x10 jmp alltraps 801065d1: e9 b1 fa ff ff jmp 80106087 <alltraps> 801065d6 <vector17>: .globl vector17 vector17: pushl $17 801065d6: 6a 11 push $0x11 jmp alltraps 801065d8: e9 aa fa ff ff jmp 80106087 <alltraps> 801065dd <vector18>: .globl vector18 vector18: pushl $0 801065dd: 6a 00 push $0x0 pushl $18 801065df: 6a 12 push $0x12 jmp alltraps 801065e1: e9 a1 fa ff ff jmp 80106087 <alltraps> 801065e6 <vector19>: .globl vector19 vector19: pushl $0 801065e6: 6a 00 push $0x0 pushl $19 801065e8: 6a 13 push $0x13 jmp alltraps 801065ea: e9 98 fa ff ff jmp 80106087 <alltraps> 801065ef <vector20>: .globl vector20 vector20: pushl $0 801065ef: 6a 00 push $0x0 pushl $20 801065f1: 6a 14 push $0x14 jmp alltraps 801065f3: e9 8f fa ff ff jmp 80106087 <alltraps> 801065f8 <vector21>: .globl vector21 vector21: pushl $0 801065f8: 6a 00 push $0x0 pushl $21 801065fa: 6a 15 push $0x15 jmp alltraps 801065fc: e9 86 fa ff ff jmp 80106087 <alltraps> 80106601 <vector22>: .globl vector22 vector22: pushl $0 80106601: 6a 00 push $0x0 pushl $22 80106603: 6a 16 push $0x16 jmp alltraps 80106605: e9 7d fa ff ff jmp 80106087 <alltraps> 8010660a <vector23>: .globl vector23 vector23: pushl $0 8010660a: 6a 00 push $0x0 pushl $23 8010660c: 6a 17 push $0x17 jmp alltraps 8010660e: e9 74 fa ff ff jmp 80106087 <alltraps> 80106613 <vector24>: .globl vector24 vector24: pushl $0 80106613: 6a 00 push $0x0 pushl $24 80106615: 6a 18 push $0x18 jmp alltraps 80106617: e9 6b fa ff ff jmp 80106087 <alltraps> 8010661c <vector25>: .globl vector25 vector25: pushl $0 8010661c: 6a 00 push $0x0 pushl $25 8010661e: 6a 19 push $0x19 jmp alltraps 80106620: e9 62 fa ff ff jmp 80106087 <alltraps> 80106625 <vector26>: .globl vector26 vector26: pushl $0 80106625: 6a 00 push $0x0 pushl $26 80106627: 6a 1a push $0x1a jmp alltraps 80106629: e9 59 fa ff ff jmp 80106087 <alltraps> 8010662e <vector27>: .globl vector27 vector27: pushl $0 8010662e: 6a 00 push $0x0 pushl $27 80106630: 6a 1b push $0x1b jmp alltraps 80106632: e9 50 fa ff ff jmp 80106087 <alltraps> 80106637 <vector28>: .globl vector28 vector28: pushl $0 80106637: 6a 00 push $0x0 pushl $28 80106639: 6a 1c push $0x1c jmp alltraps 8010663b: e9 47 fa ff ff jmp 80106087 <alltraps> 80106640 <vector29>: .globl vector29 vector29: pushl $0 80106640: 6a 00 push $0x0 pushl $29 80106642: 6a 1d push $0x1d jmp alltraps 80106644: e9 3e fa ff ff jmp 80106087 <alltraps> 80106649 <vector30>: .globl vector30 vector30: pushl $0 80106649: 6a 00 push $0x0 pushl $30 8010664b: 6a 1e push $0x1e jmp alltraps 8010664d: e9 35 fa ff ff jmp 80106087 <alltraps> 80106652 <vector31>: .globl vector31 vector31: pushl $0 80106652: 6a 00 push $0x0 pushl $31 80106654: 6a 1f push $0x1f jmp alltraps 80106656: e9 2c fa ff ff jmp 80106087 <alltraps> 8010665b <vector32>: .globl vector32 vector32: pushl $0 8010665b: 6a 00 push $0x0 pushl $32 8010665d: 6a 20 push $0x20 jmp alltraps 8010665f: e9 23 fa ff ff jmp 80106087 <alltraps> 80106664 <vector33>: .globl vector33 vector33: pushl $0 80106664: 6a 00 push $0x0 pushl $33 80106666: 6a 21 push $0x21 jmp alltraps 80106668: e9 1a fa ff ff jmp 80106087 <alltraps> 8010666d <vector34>: .globl vector34 vector34: pushl $0 8010666d: 6a 00 push $0x0 pushl $34 8010666f: 6a 22 push $0x22 jmp alltraps 80106671: e9 11 fa ff ff jmp 80106087 <alltraps> 80106676 <vector35>: .globl vector35 vector35: pushl $0 80106676: 6a 00 push $0x0 pushl $35 80106678: 6a 23 push $0x23 jmp alltraps 8010667a: e9 08 fa ff ff jmp 80106087 <alltraps> 8010667f <vector36>: .globl vector36 vector36: pushl $0 8010667f: 6a 00 push $0x0 pushl $36 80106681: 6a 24 push $0x24 jmp alltraps 80106683: e9 ff f9 ff ff jmp 80106087 <alltraps> 80106688 <vector37>: .globl vector37 vector37: pushl $0 80106688: 6a 00 push $0x0 pushl $37 8010668a: 6a 25 push $0x25 jmp alltraps 8010668c: e9 f6 f9 ff ff jmp 80106087 <alltraps> 80106691 <vector38>: .globl vector38 vector38: pushl $0 80106691: 6a 00 push $0x0 pushl $38 80106693: 6a 26 push $0x26 jmp alltraps 80106695: e9 ed f9 ff ff jmp 80106087 <alltraps> 8010669a <vector39>: .globl vector39 vector39: pushl $0 8010669a: 6a 00 push $0x0 pushl $39 8010669c: 6a 27 push $0x27 jmp alltraps 8010669e: e9 e4 f9 ff ff jmp 80106087 <alltraps> 801066a3 <vector40>: .globl vector40 vector40: pushl $0 801066a3: 6a 00 push $0x0 pushl $40 801066a5: 6a 28 push $0x28 jmp alltraps 801066a7: e9 db f9 ff ff jmp 80106087 <alltraps> 801066ac <vector41>: .globl vector41 vector41: pushl $0 801066ac: 6a 00 push $0x0 pushl $41 801066ae: 6a 29 push $0x29 jmp alltraps 801066b0: e9 d2 f9 ff ff jmp 80106087 <alltraps> 801066b5 <vector42>: .globl vector42 vector42: pushl $0 801066b5: 6a 00 push $0x0 pushl $42 801066b7: 6a 2a push $0x2a jmp alltraps 801066b9: e9 c9 f9 ff ff jmp 80106087 <alltraps> 801066be <vector43>: .globl vector43 vector43: pushl $0 801066be: 6a 00 push $0x0 pushl $43 801066c0: 6a 2b push $0x2b jmp alltraps 801066c2: e9 c0 f9 ff ff jmp 80106087 <alltraps> 801066c7 <vector44>: .globl vector44 vector44: pushl $0 801066c7: 6a 00 push $0x0 pushl $44 801066c9: 6a 2c push $0x2c jmp alltraps 801066cb: e9 b7 f9 ff ff jmp 80106087 <alltraps> 801066d0 <vector45>: .globl vector45 vector45: pushl $0 801066d0: 6a 00 push $0x0 pushl $45 801066d2: 6a 2d push $0x2d jmp alltraps 801066d4: e9 ae f9 ff ff jmp 80106087 <alltraps> 801066d9 <vector46>: .globl vector46 vector46: pushl $0 801066d9: 6a 00 push $0x0 pushl $46 801066db: 6a 2e push $0x2e jmp alltraps 801066dd: e9 a5 f9 ff ff jmp 80106087 <alltraps> 801066e2 <vector47>: .globl vector47 vector47: pushl $0 801066e2: 6a 00 push $0x0 pushl $47 801066e4: 6a 2f push $0x2f jmp alltraps 801066e6: e9 9c f9 ff ff jmp 80106087 <alltraps> 801066eb <vector48>: .globl vector48 vector48: pushl $0 801066eb: 6a 00 push $0x0 pushl $48 801066ed: 6a 30 push $0x30 jmp alltraps 801066ef: e9 93 f9 ff ff jmp 80106087 <alltraps> 801066f4 <vector49>: .globl vector49 vector49: pushl $0 801066f4: 6a 00 push $0x0 pushl $49 801066f6: 6a 31 push $0x31 jmp alltraps 801066f8: e9 8a f9 ff ff jmp 80106087 <alltraps> 801066fd <vector50>: .globl vector50 vector50: pushl $0 801066fd: 6a 00 push $0x0 pushl $50 801066ff: 6a 32 push $0x32 jmp alltraps 80106701: e9 81 f9 ff ff jmp 80106087 <alltraps> 80106706 <vector51>: .globl vector51 vector51: pushl $0 80106706: 6a 00 push $0x0 pushl $51 80106708: 6a 33 push $0x33 jmp alltraps 8010670a: e9 78 f9 ff ff jmp 80106087 <alltraps> 8010670f <vector52>: .globl vector52 vector52: pushl $0 8010670f: 6a 00 push $0x0 pushl $52 80106711: 6a 34 push $0x34 jmp alltraps 80106713: e9 6f f9 ff ff jmp 80106087 <alltraps> 80106718 <vector53>: .globl vector53 vector53: pushl $0 80106718: 6a 00 push $0x0 pushl $53 8010671a: 6a 35 push $0x35 jmp alltraps 8010671c: e9 66 f9 ff ff jmp 80106087 <alltraps> 80106721 <vector54>: .globl vector54 vector54: pushl $0 80106721: 6a 00 push $0x0 pushl $54 80106723: 6a 36 push $0x36 jmp alltraps 80106725: e9 5d f9 ff ff jmp 80106087 <alltraps> 8010672a <vector55>: .globl vector55 vector55: pushl $0 8010672a: 6a 00 push $0x0 pushl $55 8010672c: 6a 37 push $0x37 jmp alltraps 8010672e: e9 54 f9 ff ff jmp 80106087 <alltraps> 80106733 <vector56>: .globl vector56 vector56: pushl $0 80106733: 6a 00 push $0x0 pushl $56 80106735: 6a 38 push $0x38 jmp alltraps 80106737: e9 4b f9 ff ff jmp 80106087 <alltraps> 8010673c <vector57>: .globl vector57 vector57: pushl $0 8010673c: 6a 00 push $0x0 pushl $57 8010673e: 6a 39 push $0x39 jmp alltraps 80106740: e9 42 f9 ff ff jmp 80106087 <alltraps> 80106745 <vector58>: .globl vector58 vector58: pushl $0 80106745: 6a 00 push $0x0 pushl $58 80106747: 6a 3a push $0x3a jmp alltraps 80106749: e9 39 f9 ff ff jmp 80106087 <alltraps> 8010674e <vector59>: .globl vector59 vector59: pushl $0 8010674e: 6a 00 push $0x0 pushl $59 80106750: 6a 3b push $0x3b jmp alltraps 80106752: e9 30 f9 ff ff jmp 80106087 <alltraps> 80106757 <vector60>: .globl vector60 vector60: pushl $0 80106757: 6a 00 push $0x0 pushl $60 80106759: 6a 3c push $0x3c jmp alltraps 8010675b: e9 27 f9 ff ff jmp 80106087 <alltraps> 80106760 <vector61>: .globl vector61 vector61: pushl $0 80106760: 6a 00 push $0x0 pushl $61 80106762: 6a 3d push $0x3d jmp alltraps 80106764: e9 1e f9 ff ff jmp 80106087 <alltraps> 80106769 <vector62>: .globl vector62 vector62: pushl $0 80106769: 6a 00 push $0x0 pushl $62 8010676b: 6a 3e push $0x3e jmp alltraps 8010676d: e9 15 f9 ff ff jmp 80106087 <alltraps> 80106772 <vector63>: .globl vector63 vector63: pushl $0 80106772: 6a 00 push $0x0 pushl $63 80106774: 6a 3f push $0x3f jmp alltraps 80106776: e9 0c f9 ff ff jmp 80106087 <alltraps> 8010677b <vector64>: .globl vector64 vector64: pushl $0 8010677b: 6a 00 push $0x0 pushl $64 8010677d: 6a 40 push $0x40 jmp alltraps 8010677f: e9 03 f9 ff ff jmp 80106087 <alltraps> 80106784 <vector65>: .globl vector65 vector65: pushl $0 80106784: 6a 00 push $0x0 pushl $65 80106786: 6a 41 push $0x41 jmp alltraps 80106788: e9 fa f8 ff ff jmp 80106087 <alltraps> 8010678d <vector66>: .globl vector66 vector66: pushl $0 8010678d: 6a 00 push $0x0 pushl $66 8010678f: 6a 42 push $0x42 jmp alltraps 80106791: e9 f1 f8 ff ff jmp 80106087 <alltraps> 80106796 <vector67>: .globl vector67 vector67: pushl $0 80106796: 6a 00 push $0x0 pushl $67 80106798: 6a 43 push $0x43 jmp alltraps 8010679a: e9 e8 f8 ff ff jmp 80106087 <alltraps> 8010679f <vector68>: .globl vector68 vector68: pushl $0 8010679f: 6a 00 push $0x0 pushl $68 801067a1: 6a 44 push $0x44 jmp alltraps 801067a3: e9 df f8 ff ff jmp 80106087 <alltraps> 801067a8 <vector69>: .globl vector69 vector69: pushl $0 801067a8: 6a 00 push $0x0 pushl $69 801067aa: 6a 45 push $0x45 jmp alltraps 801067ac: e9 d6 f8 ff ff jmp 80106087 <alltraps> 801067b1 <vector70>: .globl vector70 vector70: pushl $0 801067b1: 6a 00 push $0x0 pushl $70 801067b3: 6a 46 push $0x46 jmp alltraps 801067b5: e9 cd f8 ff ff jmp 80106087 <alltraps> 801067ba <vector71>: .globl vector71 vector71: pushl $0 801067ba: 6a 00 push $0x0 pushl $71 801067bc: 6a 47 push $0x47 jmp alltraps 801067be: e9 c4 f8 ff ff jmp 80106087 <alltraps> 801067c3 <vector72>: .globl vector72 vector72: pushl $0 801067c3: 6a 00 push $0x0 pushl $72 801067c5: 6a 48 push $0x48 jmp alltraps 801067c7: e9 bb f8 ff ff jmp 80106087 <alltraps> 801067cc <vector73>: .globl vector73 vector73: pushl $0 801067cc: 6a 00 push $0x0 pushl $73 801067ce: 6a 49 push $0x49 jmp alltraps 801067d0: e9 b2 f8 ff ff jmp 80106087 <alltraps> 801067d5 <vector74>: .globl vector74 vector74: pushl $0 801067d5: 6a 00 push $0x0 pushl $74 801067d7: 6a 4a push $0x4a jmp alltraps 801067d9: e9 a9 f8 ff ff jmp 80106087 <alltraps> 801067de <vector75>: .globl vector75 vector75: pushl $0 801067de: 6a 00 push $0x0 pushl $75 801067e0: 6a 4b push $0x4b jmp alltraps 801067e2: e9 a0 f8 ff ff jmp 80106087 <alltraps> 801067e7 <vector76>: .globl vector76 vector76: pushl $0 801067e7: 6a 00 push $0x0 pushl $76 801067e9: 6a 4c push $0x4c jmp alltraps 801067eb: e9 97 f8 ff ff jmp 80106087 <alltraps> 801067f0 <vector77>: .globl vector77 vector77: pushl $0 801067f0: 6a 00 push $0x0 pushl $77 801067f2: 6a 4d push $0x4d jmp alltraps 801067f4: e9 8e f8 ff ff jmp 80106087 <alltraps> 801067f9 <vector78>: .globl vector78 vector78: pushl $0 801067f9: 6a 00 push $0x0 pushl $78 801067fb: 6a 4e push $0x4e jmp alltraps 801067fd: e9 85 f8 ff ff jmp 80106087 <alltraps> 80106802 <vector79>: .globl vector79 vector79: pushl $0 80106802: 6a 00 push $0x0 pushl $79 80106804: 6a 4f push $0x4f jmp alltraps 80106806: e9 7c f8 ff ff jmp 80106087 <alltraps> 8010680b <vector80>: .globl vector80 vector80: pushl $0 8010680b: 6a 00 push $0x0 pushl $80 8010680d: 6a 50 push $0x50 jmp alltraps 8010680f: e9 73 f8 ff ff jmp 80106087 <alltraps> 80106814 <vector81>: .globl vector81 vector81: pushl $0 80106814: 6a 00 push $0x0 pushl $81 80106816: 6a 51 push $0x51 jmp alltraps 80106818: e9 6a f8 ff ff jmp 80106087 <alltraps> 8010681d <vector82>: .globl vector82 vector82: pushl $0 8010681d: 6a 00 push $0x0 pushl $82 8010681f: 6a 52 push $0x52 jmp alltraps 80106821: e9 61 f8 ff ff jmp 80106087 <alltraps> 80106826 <vector83>: .globl vector83 vector83: pushl $0 80106826: 6a 00 push $0x0 pushl $83 80106828: 6a 53 push $0x53 jmp alltraps 8010682a: e9 58 f8 ff ff jmp 80106087 <alltraps> 8010682f <vector84>: .globl vector84 vector84: pushl $0 8010682f: 6a 00 push $0x0 pushl $84 80106831: 6a 54 push $0x54 jmp alltraps 80106833: e9 4f f8 ff ff jmp 80106087 <alltraps> 80106838 <vector85>: .globl vector85 vector85: pushl $0 80106838: 6a 00 push $0x0 pushl $85 8010683a: 6a 55 push $0x55 jmp alltraps 8010683c: e9 46 f8 ff ff jmp 80106087 <alltraps> 80106841 <vector86>: .globl vector86 vector86: pushl $0 80106841: 6a 00 push $0x0 pushl $86 80106843: 6a 56 push $0x56 jmp alltraps 80106845: e9 3d f8 ff ff jmp 80106087 <alltraps> 8010684a <vector87>: .globl vector87 vector87: pushl $0 8010684a: 6a 00 push $0x0 pushl $87 8010684c: 6a 57 push $0x57 jmp alltraps 8010684e: e9 34 f8 ff ff jmp 80106087 <alltraps> 80106853 <vector88>: .globl vector88 vector88: pushl $0 80106853: 6a 00 push $0x0 pushl $88 80106855: 6a 58 push $0x58 jmp alltraps 80106857: e9 2b f8 ff ff jmp 80106087 <alltraps> 8010685c <vector89>: .globl vector89 vector89: pushl $0 8010685c: 6a 00 push $0x0 pushl $89 8010685e: 6a 59 push $0x59 jmp alltraps 80106860: e9 22 f8 ff ff jmp 80106087 <alltraps> 80106865 <vector90>: .globl vector90 vector90: pushl $0 80106865: 6a 00 push $0x0 pushl $90 80106867: 6a 5a push $0x5a jmp alltraps 80106869: e9 19 f8 ff ff jmp 80106087 <alltraps> 8010686e <vector91>: .globl vector91 vector91: pushl $0 8010686e: 6a 00 push $0x0 pushl $91 80106870: 6a 5b push $0x5b jmp alltraps 80106872: e9 10 f8 ff ff jmp 80106087 <alltraps> 80106877 <vector92>: .globl vector92 vector92: pushl $0 80106877: 6a 00 push $0x0 pushl $92 80106879: 6a 5c push $0x5c jmp alltraps 8010687b: e9 07 f8 ff ff jmp 80106087 <alltraps> 80106880 <vector93>: .globl vector93 vector93: pushl $0 80106880: 6a 00 push $0x0 pushl $93 80106882: 6a 5d push $0x5d jmp alltraps 80106884: e9 fe f7 ff ff jmp 80106087 <alltraps> 80106889 <vector94>: .globl vector94 vector94: pushl $0 80106889: 6a 00 push $0x0 pushl $94 8010688b: 6a 5e push $0x5e jmp alltraps 8010688d: e9 f5 f7 ff ff jmp 80106087 <alltraps> 80106892 <vector95>: .globl vector95 vector95: pushl $0 80106892: 6a 00 push $0x0 pushl $95 80106894: 6a 5f push $0x5f jmp alltraps 80106896: e9 ec f7 ff ff jmp 80106087 <alltraps> 8010689b <vector96>: .globl vector96 vector96: pushl $0 8010689b: 6a 00 push $0x0 pushl $96 8010689d: 6a 60 push $0x60 jmp alltraps 8010689f: e9 e3 f7 ff ff jmp 80106087 <alltraps> 801068a4 <vector97>: .globl vector97 vector97: pushl $0 801068a4: 6a 00 push $0x0 pushl $97 801068a6: 6a 61 push $0x61 jmp alltraps 801068a8: e9 da f7 ff ff jmp 80106087 <alltraps> 801068ad <vector98>: .globl vector98 vector98: pushl $0 801068ad: 6a 00 push $0x0 pushl $98 801068af: 6a 62 push $0x62 jmp alltraps 801068b1: e9 d1 f7 ff ff jmp 80106087 <alltraps> 801068b6 <vector99>: .globl vector99 vector99: pushl $0 801068b6: 6a 00 push $0x0 pushl $99 801068b8: 6a 63 push $0x63 jmp alltraps 801068ba: e9 c8 f7 ff ff jmp 80106087 <alltraps> 801068bf <vector100>: .globl vector100 vector100: pushl $0 801068bf: 6a 00 push $0x0 pushl $100 801068c1: 6a 64 push $0x64 jmp alltraps 801068c3: e9 bf f7 ff ff jmp 80106087 <alltraps> 801068c8 <vector101>: .globl vector101 vector101: pushl $0 801068c8: 6a 00 push $0x0 pushl $101 801068ca: 6a 65 push $0x65 jmp alltraps 801068cc: e9 b6 f7 ff ff jmp 80106087 <alltraps> 801068d1 <vector102>: .globl vector102 vector102: pushl $0 801068d1: 6a 00 push $0x0 pushl $102 801068d3: 6a 66 push $0x66 jmp alltraps 801068d5: e9 ad f7 ff ff jmp 80106087 <alltraps> 801068da <vector103>: .globl vector103 vector103: pushl $0 801068da: 6a 00 push $0x0 pushl $103 801068dc: 6a 67 push $0x67 jmp alltraps 801068de: e9 a4 f7 ff ff jmp 80106087 <alltraps> 801068e3 <vector104>: .globl vector104 vector104: pushl $0 801068e3: 6a 00 push $0x0 pushl $104 801068e5: 6a 68 push $0x68 jmp alltraps 801068e7: e9 9b f7 ff ff jmp 80106087 <alltraps> 801068ec <vector105>: .globl vector105 vector105: pushl $0 801068ec: 6a 00 push $0x0 pushl $105 801068ee: 6a 69 push $0x69 jmp alltraps 801068f0: e9 92 f7 ff ff jmp 80106087 <alltraps> 801068f5 <vector106>: .globl vector106 vector106: pushl $0 801068f5: 6a 00 push $0x0 pushl $106 801068f7: 6a 6a push $0x6a jmp alltraps 801068f9: e9 89 f7 ff ff jmp 80106087 <alltraps> 801068fe <vector107>: .globl vector107 vector107: pushl $0 801068fe: 6a 00 push $0x0 pushl $107 80106900: 6a 6b push $0x6b jmp alltraps 80106902: e9 80 f7 ff ff jmp 80106087 <alltraps> 80106907 <vector108>: .globl vector108 vector108: pushl $0 80106907: 6a 00 push $0x0 pushl $108 80106909: 6a 6c push $0x6c jmp alltraps 8010690b: e9 77 f7 ff ff jmp 80106087 <alltraps> 80106910 <vector109>: .globl vector109 vector109: pushl $0 80106910: 6a 00 push $0x0 pushl $109 80106912: 6a 6d push $0x6d jmp alltraps 80106914: e9 6e f7 ff ff jmp 80106087 <alltraps> 80106919 <vector110>: .globl vector110 vector110: pushl $0 80106919: 6a 00 push $0x0 pushl $110 8010691b: 6a 6e push $0x6e jmp alltraps 8010691d: e9 65 f7 ff ff jmp 80106087 <alltraps> 80106922 <vector111>: .globl vector111 vector111: pushl $0 80106922: 6a 00 push $0x0 pushl $111 80106924: 6a 6f push $0x6f jmp alltraps 80106926: e9 5c f7 ff ff jmp 80106087 <alltraps> 8010692b <vector112>: .globl vector112 vector112: pushl $0 8010692b: 6a 00 push $0x0 pushl $112 8010692d: 6a 70 push $0x70 jmp alltraps 8010692f: e9 53 f7 ff ff jmp 80106087 <alltraps> 80106934 <vector113>: .globl vector113 vector113: pushl $0 80106934: 6a 00 push $0x0 pushl $113 80106936: 6a 71 push $0x71 jmp alltraps 80106938: e9 4a f7 ff ff jmp 80106087 <alltraps> 8010693d <vector114>: .globl vector114 vector114: pushl $0 8010693d: 6a 00 push $0x0 pushl $114 8010693f: 6a 72 push $0x72 jmp alltraps 80106941: e9 41 f7 ff ff jmp 80106087 <alltraps> 80106946 <vector115>: .globl vector115 vector115: pushl $0 80106946: 6a 00 push $0x0 pushl $115 80106948: 6a 73 push $0x73 jmp alltraps 8010694a: e9 38 f7 ff ff jmp 80106087 <alltraps> 8010694f <vector116>: .globl vector116 vector116: pushl $0 8010694f: 6a 00 push $0x0 pushl $116 80106951: 6a 74 push $0x74 jmp alltraps 80106953: e9 2f f7 ff ff jmp 80106087 <alltraps> 80106958 <vector117>: .globl vector117 vector117: pushl $0 80106958: 6a 00 push $0x0 pushl $117 8010695a: 6a 75 push $0x75 jmp alltraps 8010695c: e9 26 f7 ff ff jmp 80106087 <alltraps> 80106961 <vector118>: .globl vector118 vector118: pushl $0 80106961: 6a 00 push $0x0 pushl $118 80106963: 6a 76 push $0x76 jmp alltraps 80106965: e9 1d f7 ff ff jmp 80106087 <alltraps> 8010696a <vector119>: .globl vector119 vector119: pushl $0 8010696a: 6a 00 push $0x0 pushl $119 8010696c: 6a 77 push $0x77 jmp alltraps 8010696e: e9 14 f7 ff ff jmp 80106087 <alltraps> 80106973 <vector120>: .globl vector120 vector120: pushl $0 80106973: 6a 00 push $0x0 pushl $120 80106975: 6a 78 push $0x78 jmp alltraps 80106977: e9 0b f7 ff ff jmp 80106087 <alltraps> 8010697c <vector121>: .globl vector121 vector121: pushl $0 8010697c: 6a 00 push $0x0 pushl $121 8010697e: 6a 79 push $0x79 jmp alltraps 80106980: e9 02 f7 ff ff jmp 80106087 <alltraps> 80106985 <vector122>: .globl vector122 vector122: pushl $0 80106985: 6a 00 push $0x0 pushl $122 80106987: 6a 7a push $0x7a jmp alltraps 80106989: e9 f9 f6 ff ff jmp 80106087 <alltraps> 8010698e <vector123>: .globl vector123 vector123: pushl $0 8010698e: 6a 00 push $0x0 pushl $123 80106990: 6a 7b push $0x7b jmp alltraps 80106992: e9 f0 f6 ff ff jmp 80106087 <alltraps> 80106997 <vector124>: .globl vector124 vector124: pushl $0 80106997: 6a 00 push $0x0 pushl $124 80106999: 6a 7c push $0x7c jmp alltraps 8010699b: e9 e7 f6 ff ff jmp 80106087 <alltraps> 801069a0 <vector125>: .globl vector125 vector125: pushl $0 801069a0: 6a 00 push $0x0 pushl $125 801069a2: 6a 7d push $0x7d jmp alltraps 801069a4: e9 de f6 ff ff jmp 80106087 <alltraps> 801069a9 <vector126>: .globl vector126 vector126: pushl $0 801069a9: 6a 00 push $0x0 pushl $126 801069ab: 6a 7e push $0x7e jmp alltraps 801069ad: e9 d5 f6 ff ff jmp 80106087 <alltraps> 801069b2 <vector127>: .globl vector127 vector127: pushl $0 801069b2: 6a 00 push $0x0 pushl $127 801069b4: 6a 7f push $0x7f jmp alltraps 801069b6: e9 cc f6 ff ff jmp 80106087 <alltraps> 801069bb <vector128>: .globl vector128 vector128: pushl $0 801069bb: 6a 00 push $0x0 pushl $128 801069bd: 68 80 00 00 00 push $0x80 jmp alltraps 801069c2: e9 c0 f6 ff ff jmp 80106087 <alltraps> 801069c7 <vector129>: .globl vector129 vector129: pushl $0 801069c7: 6a 00 push $0x0 pushl $129 801069c9: 68 81 00 00 00 push $0x81 jmp alltraps 801069ce: e9 b4 f6 ff ff jmp 80106087 <alltraps> 801069d3 <vector130>: .globl vector130 vector130: pushl $0 801069d3: 6a 00 push $0x0 pushl $130 801069d5: 68 82 00 00 00 push $0x82 jmp alltraps 801069da: e9 a8 f6 ff ff jmp 80106087 <alltraps> 801069df <vector131>: .globl vector131 vector131: pushl $0 801069df: 6a 00 push $0x0 pushl $131 801069e1: 68 83 00 00 00 push $0x83 jmp alltraps 801069e6: e9 9c f6 ff ff jmp 80106087 <alltraps> 801069eb <vector132>: .globl vector132 vector132: pushl $0 801069eb: 6a 00 push $0x0 pushl $132 801069ed: 68 84 00 00 00 push $0x84 jmp alltraps 801069f2: e9 90 f6 ff ff jmp 80106087 <alltraps> 801069f7 <vector133>: .globl vector133 vector133: pushl $0 801069f7: 6a 00 push $0x0 pushl $133 801069f9: 68 85 00 00 00 push $0x85 jmp alltraps 801069fe: e9 84 f6 ff ff jmp 80106087 <alltraps> 80106a03 <vector134>: .globl vector134 vector134: pushl $0 80106a03: 6a 00 push $0x0 pushl $134 80106a05: 68 86 00 00 00 push $0x86 jmp alltraps 80106a0a: e9 78 f6 ff ff jmp 80106087 <alltraps> 80106a0f <vector135>: .globl vector135 vector135: pushl $0 80106a0f: 6a 00 push $0x0 pushl $135 80106a11: 68 87 00 00 00 push $0x87 jmp alltraps 80106a16: e9 6c f6 ff ff jmp 80106087 <alltraps> 80106a1b <vector136>: .globl vector136 vector136: pushl $0 80106a1b: 6a 00 push $0x0 pushl $136 80106a1d: 68 88 00 00 00 push $0x88 jmp alltraps 80106a22: e9 60 f6 ff ff jmp 80106087 <alltraps> 80106a27 <vector137>: .globl vector137 vector137: pushl $0 80106a27: 6a 00 push $0x0 pushl $137 80106a29: 68 89 00 00 00 push $0x89 jmp alltraps 80106a2e: e9 54 f6 ff ff jmp 80106087 <alltraps> 80106a33 <vector138>: .globl vector138 vector138: pushl $0 80106a33: 6a 00 push $0x0 pushl $138 80106a35: 68 8a 00 00 00 push $0x8a jmp alltraps 80106a3a: e9 48 f6 ff ff jmp 80106087 <alltraps> 80106a3f <vector139>: .globl vector139 vector139: pushl $0 80106a3f: 6a 00 push $0x0 pushl $139 80106a41: 68 8b 00 00 00 push $0x8b jmp alltraps 80106a46: e9 3c f6 ff ff jmp 80106087 <alltraps> 80106a4b <vector140>: .globl vector140 vector140: pushl $0 80106a4b: 6a 00 push $0x0 pushl $140 80106a4d: 68 8c 00 00 00 push $0x8c jmp alltraps 80106a52: e9 30 f6 ff ff jmp 80106087 <alltraps> 80106a57 <vector141>: .globl vector141 vector141: pushl $0 80106a57: 6a 00 push $0x0 pushl $141 80106a59: 68 8d 00 00 00 push $0x8d jmp alltraps 80106a5e: e9 24 f6 ff ff jmp 80106087 <alltraps> 80106a63 <vector142>: .globl vector142 vector142: pushl $0 80106a63: 6a 00 push $0x0 pushl $142 80106a65: 68 8e 00 00 00 push $0x8e jmp alltraps 80106a6a: e9 18 f6 ff ff jmp 80106087 <alltraps> 80106a6f <vector143>: .globl vector143 vector143: pushl $0 80106a6f: 6a 00 push $0x0 pushl $143 80106a71: 68 8f 00 00 00 push $0x8f jmp alltraps 80106a76: e9 0c f6 ff ff jmp 80106087 <alltraps> 80106a7b <vector144>: .globl vector144 vector144: pushl $0 80106a7b: 6a 00 push $0x0 pushl $144 80106a7d: 68 90 00 00 00 push $0x90 jmp alltraps 80106a82: e9 00 f6 ff ff jmp 80106087 <alltraps> 80106a87 <vector145>: .globl vector145 vector145: pushl $0 80106a87: 6a 00 push $0x0 pushl $145 80106a89: 68 91 00 00 00 push $0x91 jmp alltraps 80106a8e: e9 f4 f5 ff ff jmp 80106087 <alltraps> 80106a93 <vector146>: .globl vector146 vector146: pushl $0 80106a93: 6a 00 push $0x0 pushl $146 80106a95: 68 92 00 00 00 push $0x92 jmp alltraps 80106a9a: e9 e8 f5 ff ff jmp 80106087 <alltraps> 80106a9f <vector147>: .globl vector147 vector147: pushl $0 80106a9f: 6a 00 push $0x0 pushl $147 80106aa1: 68 93 00 00 00 push $0x93 jmp alltraps 80106aa6: e9 dc f5 ff ff jmp 80106087 <alltraps> 80106aab <vector148>: .globl vector148 vector148: pushl $0 80106aab: 6a 00 push $0x0 pushl $148 80106aad: 68 94 00 00 00 push $0x94 jmp alltraps 80106ab2: e9 d0 f5 ff ff jmp 80106087 <alltraps> 80106ab7 <vector149>: .globl vector149 vector149: pushl $0 80106ab7: 6a 00 push $0x0 pushl $149 80106ab9: 68 95 00 00 00 push $0x95 jmp alltraps 80106abe: e9 c4 f5 ff ff jmp 80106087 <alltraps> 80106ac3 <vector150>: .globl vector150 vector150: pushl $0 80106ac3: 6a 00 push $0x0 pushl $150 80106ac5: 68 96 00 00 00 push $0x96 jmp alltraps 80106aca: e9 b8 f5 ff ff jmp 80106087 <alltraps> 80106acf <vector151>: .globl vector151 vector151: pushl $0 80106acf: 6a 00 push $0x0 pushl $151 80106ad1: 68 97 00 00 00 push $0x97 jmp alltraps 80106ad6: e9 ac f5 ff ff jmp 80106087 <alltraps> 80106adb <vector152>: .globl vector152 vector152: pushl $0 80106adb: 6a 00 push $0x0 pushl $152 80106add: 68 98 00 00 00 push $0x98 jmp alltraps 80106ae2: e9 a0 f5 ff ff jmp 80106087 <alltraps> 80106ae7 <vector153>: .globl vector153 vector153: pushl $0 80106ae7: 6a 00 push $0x0 pushl $153 80106ae9: 68 99 00 00 00 push $0x99 jmp alltraps 80106aee: e9 94 f5 ff ff jmp 80106087 <alltraps> 80106af3 <vector154>: .globl vector154 vector154: pushl $0 80106af3: 6a 00 push $0x0 pushl $154 80106af5: 68 9a 00 00 00 push $0x9a jmp alltraps 80106afa: e9 88 f5 ff ff jmp 80106087 <alltraps> 80106aff <vector155>: .globl vector155 vector155: pushl $0 80106aff: 6a 00 push $0x0 pushl $155 80106b01: 68 9b 00 00 00 push $0x9b jmp alltraps 80106b06: e9 7c f5 ff ff jmp 80106087 <alltraps> 80106b0b <vector156>: .globl vector156 vector156: pushl $0 80106b0b: 6a 00 push $0x0 pushl $156 80106b0d: 68 9c 00 00 00 push $0x9c jmp alltraps 80106b12: e9 70 f5 ff ff jmp 80106087 <alltraps> 80106b17 <vector157>: .globl vector157 vector157: pushl $0 80106b17: 6a 00 push $0x0 pushl $157 80106b19: 68 9d 00 00 00 push $0x9d jmp alltraps 80106b1e: e9 64 f5 ff ff jmp 80106087 <alltraps> 80106b23 <vector158>: .globl vector158 vector158: pushl $0 80106b23: 6a 00 push $0x0 pushl $158 80106b25: 68 9e 00 00 00 push $0x9e jmp alltraps 80106b2a: e9 58 f5 ff ff jmp 80106087 <alltraps> 80106b2f <vector159>: .globl vector159 vector159: pushl $0 80106b2f: 6a 00 push $0x0 pushl $159 80106b31: 68 9f 00 00 00 push $0x9f jmp alltraps 80106b36: e9 4c f5 ff ff jmp 80106087 <alltraps> 80106b3b <vector160>: .globl vector160 vector160: pushl $0 80106b3b: 6a 00 push $0x0 pushl $160 80106b3d: 68 a0 00 00 00 push $0xa0 jmp alltraps 80106b42: e9 40 f5 ff ff jmp 80106087 <alltraps> 80106b47 <vector161>: .globl vector161 vector161: pushl $0 80106b47: 6a 00 push $0x0 pushl $161 80106b49: 68 a1 00 00 00 push $0xa1 jmp alltraps 80106b4e: e9 34 f5 ff ff jmp 80106087 <alltraps> 80106b53 <vector162>: .globl vector162 vector162: pushl $0 80106b53: 6a 00 push $0x0 pushl $162 80106b55: 68 a2 00 00 00 push $0xa2 jmp alltraps 80106b5a: e9 28 f5 ff ff jmp 80106087 <alltraps> 80106b5f <vector163>: .globl vector163 vector163: pushl $0 80106b5f: 6a 00 push $0x0 pushl $163 80106b61: 68 a3 00 00 00 push $0xa3 jmp alltraps 80106b66: e9 1c f5 ff ff jmp 80106087 <alltraps> 80106b6b <vector164>: .globl vector164 vector164: pushl $0 80106b6b: 6a 00 push $0x0 pushl $164 80106b6d: 68 a4 00 00 00 push $0xa4 jmp alltraps 80106b72: e9 10 f5 ff ff jmp 80106087 <alltraps> 80106b77 <vector165>: .globl vector165 vector165: pushl $0 80106b77: 6a 00 push $0x0 pushl $165 80106b79: 68 a5 00 00 00 push $0xa5 jmp alltraps 80106b7e: e9 04 f5 ff ff jmp 80106087 <alltraps> 80106b83 <vector166>: .globl vector166 vector166: pushl $0 80106b83: 6a 00 push $0x0 pushl $166 80106b85: 68 a6 00 00 00 push $0xa6 jmp alltraps 80106b8a: e9 f8 f4 ff ff jmp 80106087 <alltraps> 80106b8f <vector167>: .globl vector167 vector167: pushl $0 80106b8f: 6a 00 push $0x0 pushl $167 80106b91: 68 a7 00 00 00 push $0xa7 jmp alltraps 80106b96: e9 ec f4 ff ff jmp 80106087 <alltraps> 80106b9b <vector168>: .globl vector168 vector168: pushl $0 80106b9b: 6a 00 push $0x0 pushl $168 80106b9d: 68 a8 00 00 00 push $0xa8 jmp alltraps 80106ba2: e9 e0 f4 ff ff jmp 80106087 <alltraps> 80106ba7 <vector169>: .globl vector169 vector169: pushl $0 80106ba7: 6a 00 push $0x0 pushl $169 80106ba9: 68 a9 00 00 00 push $0xa9 jmp alltraps 80106bae: e9 d4 f4 ff ff jmp 80106087 <alltraps> 80106bb3 <vector170>: .globl vector170 vector170: pushl $0 80106bb3: 6a 00 push $0x0 pushl $170 80106bb5: 68 aa 00 00 00 push $0xaa jmp alltraps 80106bba: e9 c8 f4 ff ff jmp 80106087 <alltraps> 80106bbf <vector171>: .globl vector171 vector171: pushl $0 80106bbf: 6a 00 push $0x0 pushl $171 80106bc1: 68 ab 00 00 00 push $0xab jmp alltraps 80106bc6: e9 bc f4 ff ff jmp 80106087 <alltraps> 80106bcb <vector172>: .globl vector172 vector172: pushl $0 80106bcb: 6a 00 push $0x0 pushl $172 80106bcd: 68 ac 00 00 00 push $0xac jmp alltraps 80106bd2: e9 b0 f4 ff ff jmp 80106087 <alltraps> 80106bd7 <vector173>: .globl vector173 vector173: pushl $0 80106bd7: 6a 00 push $0x0 pushl $173 80106bd9: 68 ad 00 00 00 push $0xad jmp alltraps 80106bde: e9 a4 f4 ff ff jmp 80106087 <alltraps> 80106be3 <vector174>: .globl vector174 vector174: pushl $0 80106be3: 6a 00 push $0x0 pushl $174 80106be5: 68 ae 00 00 00 push $0xae jmp alltraps 80106bea: e9 98 f4 ff ff jmp 80106087 <alltraps> 80106bef <vector175>: .globl vector175 vector175: pushl $0 80106bef: 6a 00 push $0x0 pushl $175 80106bf1: 68 af 00 00 00 push $0xaf jmp alltraps 80106bf6: e9 8c f4 ff ff jmp 80106087 <alltraps> 80106bfb <vector176>: .globl vector176 vector176: pushl $0 80106bfb: 6a 00 push $0x0 pushl $176 80106bfd: 68 b0 00 00 00 push $0xb0 jmp alltraps 80106c02: e9 80 f4 ff ff jmp 80106087 <alltraps> 80106c07 <vector177>: .globl vector177 vector177: pushl $0 80106c07: 6a 00 push $0x0 pushl $177 80106c09: 68 b1 00 00 00 push $0xb1 jmp alltraps 80106c0e: e9 74 f4 ff ff jmp 80106087 <alltraps> 80106c13 <vector178>: .globl vector178 vector178: pushl $0 80106c13: 6a 00 push $0x0 pushl $178 80106c15: 68 b2 00 00 00 push $0xb2 jmp alltraps 80106c1a: e9 68 f4 ff ff jmp 80106087 <alltraps> 80106c1f <vector179>: .globl vector179 vector179: pushl $0 80106c1f: 6a 00 push $0x0 pushl $179 80106c21: 68 b3 00 00 00 push $0xb3 jmp alltraps 80106c26: e9 5c f4 ff ff jmp 80106087 <alltraps> 80106c2b <vector180>: .globl vector180 vector180: pushl $0 80106c2b: 6a 00 push $0x0 pushl $180 80106c2d: 68 b4 00 00 00 push $0xb4 jmp alltraps 80106c32: e9 50 f4 ff ff jmp 80106087 <alltraps> 80106c37 <vector181>: .globl vector181 vector181: pushl $0 80106c37: 6a 00 push $0x0 pushl $181 80106c39: 68 b5 00 00 00 push $0xb5 jmp alltraps 80106c3e: e9 44 f4 ff ff jmp 80106087 <alltraps> 80106c43 <vector182>: .globl vector182 vector182: pushl $0 80106c43: 6a 00 push $0x0 pushl $182 80106c45: 68 b6 00 00 00 push $0xb6 jmp alltraps 80106c4a: e9 38 f4 ff ff jmp 80106087 <alltraps> 80106c4f <vector183>: .globl vector183 vector183: pushl $0 80106c4f: 6a 00 push $0x0 pushl $183 80106c51: 68 b7 00 00 00 push $0xb7 jmp alltraps 80106c56: e9 2c f4 ff ff jmp 80106087 <alltraps> 80106c5b <vector184>: .globl vector184 vector184: pushl $0 80106c5b: 6a 00 push $0x0 pushl $184 80106c5d: 68 b8 00 00 00 push $0xb8 jmp alltraps 80106c62: e9 20 f4 ff ff jmp 80106087 <alltraps> 80106c67 <vector185>: .globl vector185 vector185: pushl $0 80106c67: 6a 00 push $0x0 pushl $185 80106c69: 68 b9 00 00 00 push $0xb9 jmp alltraps 80106c6e: e9 14 f4 ff ff jmp 80106087 <alltraps> 80106c73 <vector186>: .globl vector186 vector186: pushl $0 80106c73: 6a 00 push $0x0 pushl $186 80106c75: 68 ba 00 00 00 push $0xba jmp alltraps 80106c7a: e9 08 f4 ff ff jmp 80106087 <alltraps> 80106c7f <vector187>: .globl vector187 vector187: pushl $0 80106c7f: 6a 00 push $0x0 pushl $187 80106c81: 68 bb 00 00 00 push $0xbb jmp alltraps 80106c86: e9 fc f3 ff ff jmp 80106087 <alltraps> 80106c8b <vector188>: .globl vector188 vector188: pushl $0 80106c8b: 6a 00 push $0x0 pushl $188 80106c8d: 68 bc 00 00 00 push $0xbc jmp alltraps 80106c92: e9 f0 f3 ff ff jmp 80106087 <alltraps> 80106c97 <vector189>: .globl vector189 vector189: pushl $0 80106c97: 6a 00 push $0x0 pushl $189 80106c99: 68 bd 00 00 00 push $0xbd jmp alltraps 80106c9e: e9 e4 f3 ff ff jmp 80106087 <alltraps> 80106ca3 <vector190>: .globl vector190 vector190: pushl $0 80106ca3: 6a 00 push $0x0 pushl $190 80106ca5: 68 be 00 00 00 push $0xbe jmp alltraps 80106caa: e9 d8 f3 ff ff jmp 80106087 <alltraps> 80106caf <vector191>: .globl vector191 vector191: pushl $0 80106caf: 6a 00 push $0x0 pushl $191 80106cb1: 68 bf 00 00 00 push $0xbf jmp alltraps 80106cb6: e9 cc f3 ff ff jmp 80106087 <alltraps> 80106cbb <vector192>: .globl vector192 vector192: pushl $0 80106cbb: 6a 00 push $0x0 pushl $192 80106cbd: 68 c0 00 00 00 push $0xc0 jmp alltraps 80106cc2: e9 c0 f3 ff ff jmp 80106087 <alltraps> 80106cc7 <vector193>: .globl vector193 vector193: pushl $0 80106cc7: 6a 00 push $0x0 pushl $193 80106cc9: 68 c1 00 00 00 push $0xc1 jmp alltraps 80106cce: e9 b4 f3 ff ff jmp 80106087 <alltraps> 80106cd3 <vector194>: .globl vector194 vector194: pushl $0 80106cd3: 6a 00 push $0x0 pushl $194 80106cd5: 68 c2 00 00 00 push $0xc2 jmp alltraps 80106cda: e9 a8 f3 ff ff jmp 80106087 <alltraps> 80106cdf <vector195>: .globl vector195 vector195: pushl $0 80106cdf: 6a 00 push $0x0 pushl $195 80106ce1: 68 c3 00 00 00 push $0xc3 jmp alltraps 80106ce6: e9 9c f3 ff ff jmp 80106087 <alltraps> 80106ceb <vector196>: .globl vector196 vector196: pushl $0 80106ceb: 6a 00 push $0x0 pushl $196 80106ced: 68 c4 00 00 00 push $0xc4 jmp alltraps 80106cf2: e9 90 f3 ff ff jmp 80106087 <alltraps> 80106cf7 <vector197>: .globl vector197 vector197: pushl $0 80106cf7: 6a 00 push $0x0 pushl $197 80106cf9: 68 c5 00 00 00 push $0xc5 jmp alltraps 80106cfe: e9 84 f3 ff ff jmp 80106087 <alltraps> 80106d03 <vector198>: .globl vector198 vector198: pushl $0 80106d03: 6a 00 push $0x0 pushl $198 80106d05: 68 c6 00 00 00 push $0xc6 jmp alltraps 80106d0a: e9 78 f3 ff ff jmp 80106087 <alltraps> 80106d0f <vector199>: .globl vector199 vector199: pushl $0 80106d0f: 6a 00 push $0x0 pushl $199 80106d11: 68 c7 00 00 00 push $0xc7 jmp alltraps 80106d16: e9 6c f3 ff ff jmp 80106087 <alltraps> 80106d1b <vector200>: .globl vector200 vector200: pushl $0 80106d1b: 6a 00 push $0x0 pushl $200 80106d1d: 68 c8 00 00 00 push $0xc8 jmp alltraps 80106d22: e9 60 f3 ff ff jmp 80106087 <alltraps> 80106d27 <vector201>: .globl vector201 vector201: pushl $0 80106d27: 6a 00 push $0x0 pushl $201 80106d29: 68 c9 00 00 00 push $0xc9 jmp alltraps 80106d2e: e9 54 f3 ff ff jmp 80106087 <alltraps> 80106d33 <vector202>: .globl vector202 vector202: pushl $0 80106d33: 6a 00 push $0x0 pushl $202 80106d35: 68 ca 00 00 00 push $0xca jmp alltraps 80106d3a: e9 48 f3 ff ff jmp 80106087 <alltraps> 80106d3f <vector203>: .globl vector203 vector203: pushl $0 80106d3f: 6a 00 push $0x0 pushl $203 80106d41: 68 cb 00 00 00 push $0xcb jmp alltraps 80106d46: e9 3c f3 ff ff jmp 80106087 <alltraps> 80106d4b <vector204>: .globl vector204 vector204: pushl $0 80106d4b: 6a 00 push $0x0 pushl $204 80106d4d: 68 cc 00 00 00 push $0xcc jmp alltraps 80106d52: e9 30 f3 ff ff jmp 80106087 <alltraps> 80106d57 <vector205>: .globl vector205 vector205: pushl $0 80106d57: 6a 00 push $0x0 pushl $205 80106d59: 68 cd 00 00 00 push $0xcd jmp alltraps 80106d5e: e9 24 f3 ff ff jmp 80106087 <alltraps> 80106d63 <vector206>: .globl vector206 vector206: pushl $0 80106d63: 6a 00 push $0x0 pushl $206 80106d65: 68 ce 00 00 00 push $0xce jmp alltraps 80106d6a: e9 18 f3 ff ff jmp 80106087 <alltraps> 80106d6f <vector207>: .globl vector207 vector207: pushl $0 80106d6f: 6a 00 push $0x0 pushl $207 80106d71: 68 cf 00 00 00 push $0xcf jmp alltraps 80106d76: e9 0c f3 ff ff jmp 80106087 <alltraps> 80106d7b <vector208>: .globl vector208 vector208: pushl $0 80106d7b: 6a 00 push $0x0 pushl $208 80106d7d: 68 d0 00 00 00 push $0xd0 jmp alltraps 80106d82: e9 00 f3 ff ff jmp 80106087 <alltraps> 80106d87 <vector209>: .globl vector209 vector209: pushl $0 80106d87: 6a 00 push $0x0 pushl $209 80106d89: 68 d1 00 00 00 push $0xd1 jmp alltraps 80106d8e: e9 f4 f2 ff ff jmp 80106087 <alltraps> 80106d93 <vector210>: .globl vector210 vector210: pushl $0 80106d93: 6a 00 push $0x0 pushl $210 80106d95: 68 d2 00 00 00 push $0xd2 jmp alltraps 80106d9a: e9 e8 f2 ff ff jmp 80106087 <alltraps> 80106d9f <vector211>: .globl vector211 vector211: pushl $0 80106d9f: 6a 00 push $0x0 pushl $211 80106da1: 68 d3 00 00 00 push $0xd3 jmp alltraps 80106da6: e9 dc f2 ff ff jmp 80106087 <alltraps> 80106dab <vector212>: .globl vector212 vector212: pushl $0 80106dab: 6a 00 push $0x0 pushl $212 80106dad: 68 d4 00 00 00 push $0xd4 jmp alltraps 80106db2: e9 d0 f2 ff ff jmp 80106087 <alltraps> 80106db7 <vector213>: .globl vector213 vector213: pushl $0 80106db7: 6a 00 push $0x0 pushl $213 80106db9: 68 d5 00 00 00 push $0xd5 jmp alltraps 80106dbe: e9 c4 f2 ff ff jmp 80106087 <alltraps> 80106dc3 <vector214>: .globl vector214 vector214: pushl $0 80106dc3: 6a 00 push $0x0 pushl $214 80106dc5: 68 d6 00 00 00 push $0xd6 jmp alltraps 80106dca: e9 b8 f2 ff ff jmp 80106087 <alltraps> 80106dcf <vector215>: .globl vector215 vector215: pushl $0 80106dcf: 6a 00 push $0x0 pushl $215 80106dd1: 68 d7 00 00 00 push $0xd7 jmp alltraps 80106dd6: e9 ac f2 ff ff jmp 80106087 <alltraps> 80106ddb <vector216>: .globl vector216 vector216: pushl $0 80106ddb: 6a 00 push $0x0 pushl $216 80106ddd: 68 d8 00 00 00 push $0xd8 jmp alltraps 80106de2: e9 a0 f2 ff ff jmp 80106087 <alltraps> 80106de7 <vector217>: .globl vector217 vector217: pushl $0 80106de7: 6a 00 push $0x0 pushl $217 80106de9: 68 d9 00 00 00 push $0xd9 jmp alltraps 80106dee: e9 94 f2 ff ff jmp 80106087 <alltraps> 80106df3 <vector218>: .globl vector218 vector218: pushl $0 80106df3: 6a 00 push $0x0 pushl $218 80106df5: 68 da 00 00 00 push $0xda jmp alltraps 80106dfa: e9 88 f2 ff ff jmp 80106087 <alltraps> 80106dff <vector219>: .globl vector219 vector219: pushl $0 80106dff: 6a 00 push $0x0 pushl $219 80106e01: 68 db 00 00 00 push $0xdb jmp alltraps 80106e06: e9 7c f2 ff ff jmp 80106087 <alltraps> 80106e0b <vector220>: .globl vector220 vector220: pushl $0 80106e0b: 6a 00 push $0x0 pushl $220 80106e0d: 68 dc 00 00 00 push $0xdc jmp alltraps 80106e12: e9 70 f2 ff ff jmp 80106087 <alltraps> 80106e17 <vector221>: .globl vector221 vector221: pushl $0 80106e17: 6a 00 push $0x0 pushl $221 80106e19: 68 dd 00 00 00 push $0xdd jmp alltraps 80106e1e: e9 64 f2 ff ff jmp 80106087 <alltraps> 80106e23 <vector222>: .globl vector222 vector222: pushl $0 80106e23: 6a 00 push $0x0 pushl $222 80106e25: 68 de 00 00 00 push $0xde jmp alltraps 80106e2a: e9 58 f2 ff ff jmp 80106087 <alltraps> 80106e2f <vector223>: .globl vector223 vector223: pushl $0 80106e2f: 6a 00 push $0x0 pushl $223 80106e31: 68 df 00 00 00 push $0xdf jmp alltraps 80106e36: e9 4c f2 ff ff jmp 80106087 <alltraps> 80106e3b <vector224>: .globl vector224 vector224: pushl $0 80106e3b: 6a 00 push $0x0 pushl $224 80106e3d: 68 e0 00 00 00 push $0xe0 jmp alltraps 80106e42: e9 40 f2 ff ff jmp 80106087 <alltraps> 80106e47 <vector225>: .globl vector225 vector225: pushl $0 80106e47: 6a 00 push $0x0 pushl $225 80106e49: 68 e1 00 00 00 push $0xe1 jmp alltraps 80106e4e: e9 34 f2 ff ff jmp 80106087 <alltraps> 80106e53 <vector226>: .globl vector226 vector226: pushl $0 80106e53: 6a 00 push $0x0 pushl $226 80106e55: 68 e2 00 00 00 push $0xe2 jmp alltraps 80106e5a: e9 28 f2 ff ff jmp 80106087 <alltraps> 80106e5f <vector227>: .globl vector227 vector227: pushl $0 80106e5f: 6a 00 push $0x0 pushl $227 80106e61: 68 e3 00 00 00 push $0xe3 jmp alltraps 80106e66: e9 1c f2 ff ff jmp 80106087 <alltraps> 80106e6b <vector228>: .globl vector228 vector228: pushl $0 80106e6b: 6a 00 push $0x0 pushl $228 80106e6d: 68 e4 00 00 00 push $0xe4 jmp alltraps 80106e72: e9 10 f2 ff ff jmp 80106087 <alltraps> 80106e77 <vector229>: .globl vector229 vector229: pushl $0 80106e77: 6a 00 push $0x0 pushl $229 80106e79: 68 e5 00 00 00 push $0xe5 jmp alltraps 80106e7e: e9 04 f2 ff ff jmp 80106087 <alltraps> 80106e83 <vector230>: .globl vector230 vector230: pushl $0 80106e83: 6a 00 push $0x0 pushl $230 80106e85: 68 e6 00 00 00 push $0xe6 jmp alltraps 80106e8a: e9 f8 f1 ff ff jmp 80106087 <alltraps> 80106e8f <vector231>: .globl vector231 vector231: pushl $0 80106e8f: 6a 00 push $0x0 pushl $231 80106e91: 68 e7 00 00 00 push $0xe7 jmp alltraps 80106e96: e9 ec f1 ff ff jmp 80106087 <alltraps> 80106e9b <vector232>: .globl vector232 vector232: pushl $0 80106e9b: 6a 00 push $0x0 pushl $232 80106e9d: 68 e8 00 00 00 push $0xe8 jmp alltraps 80106ea2: e9 e0 f1 ff ff jmp 80106087 <alltraps> 80106ea7 <vector233>: .globl vector233 vector233: pushl $0 80106ea7: 6a 00 push $0x0 pushl $233 80106ea9: 68 e9 00 00 00 push $0xe9 jmp alltraps 80106eae: e9 d4 f1 ff ff jmp 80106087 <alltraps> 80106eb3 <vector234>: .globl vector234 vector234: pushl $0 80106eb3: 6a 00 push $0x0 pushl $234 80106eb5: 68 ea 00 00 00 push $0xea jmp alltraps 80106eba: e9 c8 f1 ff ff jmp 80106087 <alltraps> 80106ebf <vector235>: .globl vector235 vector235: pushl $0 80106ebf: 6a 00 push $0x0 pushl $235 80106ec1: 68 eb 00 00 00 push $0xeb jmp alltraps 80106ec6: e9 bc f1 ff ff jmp 80106087 <alltraps> 80106ecb <vector236>: .globl vector236 vector236: pushl $0 80106ecb: 6a 00 push $0x0 pushl $236 80106ecd: 68 ec 00 00 00 push $0xec jmp alltraps 80106ed2: e9 b0 f1 ff ff jmp 80106087 <alltraps> 80106ed7 <vector237>: .globl vector237 vector237: pushl $0 80106ed7: 6a 00 push $0x0 pushl $237 80106ed9: 68 ed 00 00 00 push $0xed jmp alltraps 80106ede: e9 a4 f1 ff ff jmp 80106087 <alltraps> 80106ee3 <vector238>: .globl vector238 vector238: pushl $0 80106ee3: 6a 00 push $0x0 pushl $238 80106ee5: 68 ee 00 00 00 push $0xee jmp alltraps 80106eea: e9 98 f1 ff ff jmp 80106087 <alltraps> 80106eef <vector239>: .globl vector239 vector239: pushl $0 80106eef: 6a 00 push $0x0 pushl $239 80106ef1: 68 ef 00 00 00 push $0xef jmp alltraps 80106ef6: e9 8c f1 ff ff jmp 80106087 <alltraps> 80106efb <vector240>: .globl vector240 vector240: pushl $0 80106efb: 6a 00 push $0x0 pushl $240 80106efd: 68 f0 00 00 00 push $0xf0 jmp alltraps 80106f02: e9 80 f1 ff ff jmp 80106087 <alltraps> 80106f07 <vector241>: .globl vector241 vector241: pushl $0 80106f07: 6a 00 push $0x0 pushl $241 80106f09: 68 f1 00 00 00 push $0xf1 jmp alltraps 80106f0e: e9 74 f1 ff ff jmp 80106087 <alltraps> 80106f13 <vector242>: .globl vector242 vector242: pushl $0 80106f13: 6a 00 push $0x0 pushl $242 80106f15: 68 f2 00 00 00 push $0xf2 jmp alltraps 80106f1a: e9 68 f1 ff ff jmp 80106087 <alltraps> 80106f1f <vector243>: .globl vector243 vector243: pushl $0 80106f1f: 6a 00 push $0x0 pushl $243 80106f21: 68 f3 00 00 00 push $0xf3 jmp alltraps 80106f26: e9 5c f1 ff ff jmp 80106087 <alltraps> 80106f2b <vector244>: .globl vector244 vector244: pushl $0 80106f2b: 6a 00 push $0x0 pushl $244 80106f2d: 68 f4 00 00 00 push $0xf4 jmp alltraps 80106f32: e9 50 f1 ff ff jmp 80106087 <alltraps> 80106f37 <vector245>: .globl vector245 vector245: pushl $0 80106f37: 6a 00 push $0x0 pushl $245 80106f39: 68 f5 00 00 00 push $0xf5 jmp alltraps 80106f3e: e9 44 f1 ff ff jmp 80106087 <alltraps> 80106f43 <vector246>: .globl vector246 vector246: pushl $0 80106f43: 6a 00 push $0x0 pushl $246 80106f45: 68 f6 00 00 00 push $0xf6 jmp alltraps 80106f4a: e9 38 f1 ff ff jmp 80106087 <alltraps> 80106f4f <vector247>: .globl vector247 vector247: pushl $0 80106f4f: 6a 00 push $0x0 pushl $247 80106f51: 68 f7 00 00 00 push $0xf7 jmp alltraps 80106f56: e9 2c f1 ff ff jmp 80106087 <alltraps> 80106f5b <vector248>: .globl vector248 vector248: pushl $0 80106f5b: 6a 00 push $0x0 pushl $248 80106f5d: 68 f8 00 00 00 push $0xf8 jmp alltraps 80106f62: e9 20 f1 ff ff jmp 80106087 <alltraps> 80106f67 <vector249>: .globl vector249 vector249: pushl $0 80106f67: 6a 00 push $0x0 pushl $249 80106f69: 68 f9 00 00 00 push $0xf9 jmp alltraps 80106f6e: e9 14 f1 ff ff jmp 80106087 <alltraps> 80106f73 <vector250>: .globl vector250 vector250: pushl $0 80106f73: 6a 00 push $0x0 pushl $250 80106f75: 68 fa 00 00 00 push $0xfa jmp alltraps 80106f7a: e9 08 f1 ff ff jmp 80106087 <alltraps> 80106f7f <vector251>: .globl vector251 vector251: pushl $0 80106f7f: 6a 00 push $0x0 pushl $251 80106f81: 68 fb 00 00 00 push $0xfb jmp alltraps 80106f86: e9 fc f0 ff ff jmp 80106087 <alltraps> 80106f8b <vector252>: .globl vector252 vector252: pushl $0 80106f8b: 6a 00 push $0x0 pushl $252 80106f8d: 68 fc 00 00 00 push $0xfc jmp alltraps 80106f92: e9 f0 f0 ff ff jmp 80106087 <alltraps> 80106f97 <vector253>: .globl vector253 vector253: pushl $0 80106f97: 6a 00 push $0x0 pushl $253 80106f99: 68 fd 00 00 00 push $0xfd jmp alltraps 80106f9e: e9 e4 f0 ff ff jmp 80106087 <alltraps> 80106fa3 <vector254>: .globl vector254 vector254: pushl $0 80106fa3: 6a 00 push $0x0 pushl $254 80106fa5: 68 fe 00 00 00 push $0xfe jmp alltraps 80106faa: e9 d8 f0 ff ff jmp 80106087 <alltraps> 80106faf <vector255>: .globl vector255 vector255: pushl $0 80106faf: 6a 00 push $0x0 pushl $255 80106fb1: 68 ff 00 00 00 push $0xff jmp alltraps 80106fb6: e9 cc f0 ff ff jmp 80106087 <alltraps> 80106fbb: 66 90 xchg %ax,%ax 80106fbd: 66 90 xchg %ax,%ax 80106fbf: 90 nop 80106fc0 <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) { 80106fc0: 55 push %ebp 80106fc1: 89 e5 mov %esp,%ebp 80106fc3: 57 push %edi 80106fc4: 56 push %esi 80106fc5: 89 d6 mov %edx,%esi pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 80106fc7: c1 ea 16 shr $0x16,%edx { 80106fca: 53 push %ebx pde = &pgdir[PDX(va)]; 80106fcb: 8d 3c 90 lea (%eax,%edx,4),%edi { 80106fce: 83 ec 0c sub $0xc,%esp if(*pde & PTE_P){ 80106fd1: 8b 1f mov (%edi),%ebx 80106fd3: f6 c3 01 test $0x1,%bl 80106fd6: 74 28 je 80107000 <walkpgdir+0x40> pgtab = (pte_t*)P2V(PTE_ADDR(*pde)); 80106fd8: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 80106fde: 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)]; 80106fe4: 89 f0 mov %esi,%eax } 80106fe6: 8d 65 f4 lea -0xc(%ebp),%esp return &pgtab[PTX(va)]; 80106fe9: c1 e8 0a shr $0xa,%eax 80106fec: 25 fc 0f 00 00 and $0xffc,%eax 80106ff1: 01 d8 add %ebx,%eax } 80106ff3: 5b pop %ebx 80106ff4: 5e pop %esi 80106ff5: 5f pop %edi 80106ff6: 5d pop %ebp 80106ff7: c3 ret 80106ff8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106fff: 90 nop if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 80107000: 85 c9 test %ecx,%ecx 80107002: 74 2c je 80107030 <walkpgdir+0x70> 80107004: e8 37 b6 ff ff call 80102640 <kalloc> 80107009: 89 c3 mov %eax,%ebx 8010700b: 85 c0 test %eax,%eax 8010700d: 74 21 je 80107030 <walkpgdir+0x70> memset(pgtab, 0, PGSIZE); 8010700f: 83 ec 04 sub $0x4,%esp 80107012: 68 00 10 00 00 push $0x1000 80107017: 6a 00 push $0x0 80107019: 50 push %eax 8010701a: e8 81 dd ff ff call 80104da0 <memset> *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; 8010701f: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 80107025: 83 c4 10 add $0x10,%esp 80107028: 83 c8 07 or $0x7,%eax 8010702b: 89 07 mov %eax,(%edi) 8010702d: eb b5 jmp 80106fe4 <walkpgdir+0x24> 8010702f: 90 nop } 80107030: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 80107033: 31 c0 xor %eax,%eax } 80107035: 5b pop %ebx 80107036: 5e pop %esi 80107037: 5f pop %edi 80107038: 5d pop %ebp 80107039: c3 ret 8010703a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80107040 <mappages>: // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 80107040: 55 push %ebp 80107041: 89 e5 mov %esp,%ebp 80107043: 57 push %edi 80107044: 89 c7 mov %eax,%edi char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 80107046: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax { 8010704a: 56 push %esi last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 8010704b: 25 00 f0 ff ff and $0xfffff000,%eax a = (char*)PGROUNDDOWN((uint)va); 80107050: 89 d6 mov %edx,%esi { 80107052: 53 push %ebx a = (char*)PGROUNDDOWN((uint)va); 80107053: 81 e6 00 f0 ff ff and $0xfffff000,%esi { 80107059: 83 ec 1c sub $0x1c,%esp last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 8010705c: 89 45 e0 mov %eax,-0x20(%ebp) 8010705f: 8b 45 08 mov 0x8(%ebp),%eax 80107062: 29 f0 sub %esi,%eax 80107064: 89 45 e4 mov %eax,-0x1c(%ebp) 80107067: eb 1f jmp 80107088 <mappages+0x48> 80107069: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; if(*pte & PTE_P) 80107070: f6 00 01 testb $0x1,(%eax) 80107073: 75 45 jne 801070ba <mappages+0x7a> panic("remap"); *pte = pa | perm | PTE_P; 80107075: 0b 5d 0c or 0xc(%ebp),%ebx 80107078: 83 cb 01 or $0x1,%ebx 8010707b: 89 18 mov %ebx,(%eax) if(a == last) 8010707d: 3b 75 e0 cmp -0x20(%ebp),%esi 80107080: 74 2e je 801070b0 <mappages+0x70> break; a += PGSIZE; 80107082: 81 c6 00 10 00 00 add $0x1000,%esi for(;;){ 80107088: 8b 45 e4 mov -0x1c(%ebp),%eax if((pte = walkpgdir(pgdir, a, 1)) == 0) 8010708b: b9 01 00 00 00 mov $0x1,%ecx 80107090: 89 f2 mov %esi,%edx 80107092: 8d 1c 06 lea (%esi,%eax,1),%ebx 80107095: 89 f8 mov %edi,%eax 80107097: e8 24 ff ff ff call 80106fc0 <walkpgdir> 8010709c: 85 c0 test %eax,%eax 8010709e: 75 d0 jne 80107070 <mappages+0x30> pa += PGSIZE; } return 0; } 801070a0: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 801070a3: b8 ff ff ff ff mov $0xffffffff,%eax } 801070a8: 5b pop %ebx 801070a9: 5e pop %esi 801070aa: 5f pop %edi 801070ab: 5d pop %ebp 801070ac: c3 ret 801070ad: 8d 76 00 lea 0x0(%esi),%esi 801070b0: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 801070b3: 31 c0 xor %eax,%eax } 801070b5: 5b pop %ebx 801070b6: 5e pop %esi 801070b7: 5f pop %edi 801070b8: 5d pop %ebp 801070b9: c3 ret panic("remap"); 801070ba: 83 ec 0c sub $0xc,%esp 801070bd: 68 f4 81 10 80 push $0x801081f4 801070c2: e8 c9 92 ff ff call 80100390 <panic> 801070c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801070ce: 66 90 xchg %ax,%ax 801070d0 <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) 801070d0: 55 push %ebp 801070d1: 89 e5 mov %esp,%ebp 801070d3: 57 push %edi 801070d4: 56 push %esi 801070d5: 89 c6 mov %eax,%esi 801070d7: 53 push %ebx 801070d8: 89 d3 mov %edx,%ebx uint a, pa; if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); 801070da: 8d 91 ff 0f 00 00 lea 0xfff(%ecx),%edx 801070e0: 81 e2 00 f0 ff ff and $0xfffff000,%edx deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 801070e6: 83 ec 1c sub $0x1c,%esp 801070e9: 89 4d e0 mov %ecx,-0x20(%ebp) for(; a < oldsz; a += PGSIZE){ 801070ec: 39 da cmp %ebx,%edx 801070ee: 73 5b jae 8010714b <deallocuvm.part.0+0x7b> 801070f0: 89 5d e4 mov %ebx,-0x1c(%ebp) 801070f3: 89 d7 mov %edx,%edi 801070f5: eb 14 jmp 8010710b <deallocuvm.part.0+0x3b> 801070f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801070fe: 66 90 xchg %ax,%ax 80107100: 81 c7 00 10 00 00 add $0x1000,%edi 80107106: 39 7d e4 cmp %edi,-0x1c(%ebp) 80107109: 76 40 jbe 8010714b <deallocuvm.part.0+0x7b> pte = walkpgdir(pgdir, (char*)a, 0); 8010710b: 31 c9 xor %ecx,%ecx 8010710d: 89 fa mov %edi,%edx 8010710f: 89 f0 mov %esi,%eax 80107111: e8 aa fe ff ff call 80106fc0 <walkpgdir> 80107116: 89 c3 mov %eax,%ebx if(!pte) 80107118: 85 c0 test %eax,%eax 8010711a: 74 44 je 80107160 <deallocuvm.part.0+0x90> a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; else if((*pte & PTE_P) != 0){ 8010711c: 8b 00 mov (%eax),%eax 8010711e: a8 01 test $0x1,%al 80107120: 74 de je 80107100 <deallocuvm.part.0+0x30> pa = PTE_ADDR(*pte); if(pa == 0) 80107122: 25 00 f0 ff ff and $0xfffff000,%eax 80107127: 74 47 je 80107170 <deallocuvm.part.0+0xa0> panic("kfree"); char *v = P2V(pa); kfree(v); 80107129: 83 ec 0c sub $0xc,%esp char *v = P2V(pa); 8010712c: 05 00 00 00 80 add $0x80000000,%eax 80107131: 81 c7 00 10 00 00 add $0x1000,%edi kfree(v); 80107137: 50 push %eax 80107138: e8 43 b3 ff ff call 80102480 <kfree> *pte = 0; 8010713d: c7 03 00 00 00 00 movl $0x0,(%ebx) 80107143: 83 c4 10 add $0x10,%esp for(; a < oldsz; a += PGSIZE){ 80107146: 39 7d e4 cmp %edi,-0x1c(%ebp) 80107149: 77 c0 ja 8010710b <deallocuvm.part.0+0x3b> } } return newsz; } 8010714b: 8b 45 e0 mov -0x20(%ebp),%eax 8010714e: 8d 65 f4 lea -0xc(%ebp),%esp 80107151: 5b pop %ebx 80107152: 5e pop %esi 80107153: 5f pop %edi 80107154: 5d pop %ebp 80107155: c3 ret 80107156: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010715d: 8d 76 00 lea 0x0(%esi),%esi a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; 80107160: 89 fa mov %edi,%edx 80107162: 81 e2 00 00 c0 ff and $0xffc00000,%edx 80107168: 8d ba 00 00 40 00 lea 0x400000(%edx),%edi 8010716e: eb 96 jmp 80107106 <deallocuvm.part.0+0x36> panic("kfree"); 80107170: 83 ec 0c sub $0xc,%esp 80107173: 68 66 7b 10 80 push $0x80107b66 80107178: e8 13 92 ff ff call 80100390 <panic> 8010717d: 8d 76 00 lea 0x0(%esi),%esi 80107180 <seginit>: { 80107180: f3 0f 1e fb endbr32 80107184: 55 push %ebp 80107185: 89 e5 mov %esp,%ebp 80107187: 83 ec 18 sub $0x18,%esp c = &cpus[cpuid()]; 8010718a: e8 51 c8 ff ff call 801039e0 <cpuid> pd[0] = size-1; 8010718f: ba 2f 00 00 00 mov $0x2f,%edx 80107194: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax 8010719a: 66 89 55 f2 mov %dx,-0xe(%ebp) c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 8010719e: c7 80 f8 37 11 80 ff movl $0xffff,-0x7feec808(%eax) 801071a5: ff 00 00 801071a8: c7 80 fc 37 11 80 00 movl $0xcf9a00,-0x7feec804(%eax) 801071af: 9a cf 00 c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 801071b2: c7 80 00 38 11 80 ff movl $0xffff,-0x7feec800(%eax) 801071b9: ff 00 00 801071bc: c7 80 04 38 11 80 00 movl $0xcf9200,-0x7feec7fc(%eax) 801071c3: 92 cf 00 c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 801071c6: c7 80 08 38 11 80 ff movl $0xffff,-0x7feec7f8(%eax) 801071cd: ff 00 00 801071d0: c7 80 0c 38 11 80 00 movl $0xcffa00,-0x7feec7f4(%eax) 801071d7: fa cf 00 c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 801071da: c7 80 10 38 11 80 ff movl $0xffff,-0x7feec7f0(%eax) 801071e1: ff 00 00 801071e4: c7 80 14 38 11 80 00 movl $0xcff200,-0x7feec7ec(%eax) 801071eb: f2 cf 00 lgdt(c->gdt, sizeof(c->gdt)); 801071ee: 05 f0 37 11 80 add $0x801137f0,%eax pd[1] = (uint)p; 801071f3: 66 89 45 f4 mov %ax,-0xc(%ebp) pd[2] = (uint)p >> 16; 801071f7: c1 e8 10 shr $0x10,%eax 801071fa: 66 89 45 f6 mov %ax,-0xa(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 801071fe: 8d 45 f2 lea -0xe(%ebp),%eax 80107201: 0f 01 10 lgdtl (%eax) } 80107204: c9 leave 80107205: c3 ret 80107206: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010720d: 8d 76 00 lea 0x0(%esi),%esi 80107210 <switchkvm>: { 80107210: f3 0f 1e fb endbr32 lcr3(V2P(kpgdir)); // switch to the kernel page table 80107214: a1 a4 72 11 80 mov 0x801172a4,%eax 80107219: 05 00 00 00 80 add $0x80000000,%eax } static inline void lcr3(uint val) { asm volatile("movl %0,%%cr3" : : "r" (val)); 8010721e: 0f 22 d8 mov %eax,%cr3 } 80107221: c3 ret 80107222: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80107229: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80107230 <switchuvm>: { 80107230: f3 0f 1e fb endbr32 80107234: 55 push %ebp 80107235: 89 e5 mov %esp,%ebp 80107237: 57 push %edi 80107238: 56 push %esi 80107239: 53 push %ebx 8010723a: 83 ec 1c sub $0x1c,%esp 8010723d: 8b 75 08 mov 0x8(%ebp),%esi if(p == 0) 80107240: 85 f6 test %esi,%esi 80107242: 0f 84 cb 00 00 00 je 80107313 <switchuvm+0xe3> if(p->kstack == 0) 80107248: 8b 46 08 mov 0x8(%esi),%eax 8010724b: 85 c0 test %eax,%eax 8010724d: 0f 84 da 00 00 00 je 8010732d <switchuvm+0xfd> if(p->pgdir == 0) 80107253: 8b 46 04 mov 0x4(%esi),%eax 80107256: 85 c0 test %eax,%eax 80107258: 0f 84 c2 00 00 00 je 80107320 <switchuvm+0xf0> pushcli(); 8010725e: e8 2d d9 ff ff call 80104b90 <pushcli> mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, 80107263: e8 08 c7 ff ff call 80103970 <mycpu> 80107268: 89 c3 mov %eax,%ebx 8010726a: e8 01 c7 ff ff call 80103970 <mycpu> 8010726f: 89 c7 mov %eax,%edi 80107271: e8 fa c6 ff ff call 80103970 <mycpu> 80107276: 83 c7 08 add $0x8,%edi 80107279: 89 45 e4 mov %eax,-0x1c(%ebp) 8010727c: e8 ef c6 ff ff call 80103970 <mycpu> 80107281: 8b 4d e4 mov -0x1c(%ebp),%ecx 80107284: ba 67 00 00 00 mov $0x67,%edx 80107289: 66 89 bb 9a 00 00 00 mov %di,0x9a(%ebx) 80107290: 83 c0 08 add $0x8,%eax 80107293: 66 89 93 98 00 00 00 mov %dx,0x98(%ebx) mycpu()->ts.iomb = (ushort) 0xFFFF; 8010729a: bf ff ff ff ff mov $0xffffffff,%edi mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, 8010729f: 83 c1 08 add $0x8,%ecx 801072a2: c1 e8 18 shr $0x18,%eax 801072a5: c1 e9 10 shr $0x10,%ecx 801072a8: 88 83 9f 00 00 00 mov %al,0x9f(%ebx) 801072ae: 88 8b 9c 00 00 00 mov %cl,0x9c(%ebx) 801072b4: b9 99 40 00 00 mov $0x4099,%ecx 801072b9: 66 89 8b 9d 00 00 00 mov %cx,0x9d(%ebx) mycpu()->ts.ss0 = SEG_KDATA << 3; 801072c0: bb 10 00 00 00 mov $0x10,%ebx mycpu()->gdt[SEG_TSS].s = 0; 801072c5: e8 a6 c6 ff ff call 80103970 <mycpu> 801072ca: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax) mycpu()->ts.ss0 = SEG_KDATA << 3; 801072d1: e8 9a c6 ff ff call 80103970 <mycpu> 801072d6: 66 89 58 10 mov %bx,0x10(%eax) mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE; 801072da: 8b 5e 08 mov 0x8(%esi),%ebx 801072dd: 81 c3 00 10 00 00 add $0x1000,%ebx 801072e3: e8 88 c6 ff ff call 80103970 <mycpu> 801072e8: 89 58 0c mov %ebx,0xc(%eax) mycpu()->ts.iomb = (ushort) 0xFFFF; 801072eb: e8 80 c6 ff ff call 80103970 <mycpu> 801072f0: 66 89 78 6e mov %di,0x6e(%eax) asm volatile("ltr %0" : : "r" (sel)); 801072f4: b8 28 00 00 00 mov $0x28,%eax 801072f9: 0f 00 d8 ltr %ax lcr3(V2P(p->pgdir)); // switch to process's address space 801072fc: 8b 46 04 mov 0x4(%esi),%eax 801072ff: 05 00 00 00 80 add $0x80000000,%eax asm volatile("movl %0,%%cr3" : : "r" (val)); 80107304: 0f 22 d8 mov %eax,%cr3 } 80107307: 8d 65 f4 lea -0xc(%ebp),%esp 8010730a: 5b pop %ebx 8010730b: 5e pop %esi 8010730c: 5f pop %edi 8010730d: 5d pop %ebp popcli(); 8010730e: e9 cd d8 ff ff jmp 80104be0 <popcli> panic("switchuvm: no process"); 80107313: 83 ec 0c sub $0xc,%esp 80107316: 68 fa 81 10 80 push $0x801081fa 8010731b: e8 70 90 ff ff call 80100390 <panic> panic("switchuvm: no pgdir"); 80107320: 83 ec 0c sub $0xc,%esp 80107323: 68 25 82 10 80 push $0x80108225 80107328: e8 63 90 ff ff call 80100390 <panic> panic("switchuvm: no kstack"); 8010732d: 83 ec 0c sub $0xc,%esp 80107330: 68 10 82 10 80 push $0x80108210 80107335: e8 56 90 ff ff call 80100390 <panic> 8010733a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80107340 <inituvm>: { 80107340: f3 0f 1e fb endbr32 80107344: 55 push %ebp 80107345: 89 e5 mov %esp,%ebp 80107347: 57 push %edi 80107348: 56 push %esi 80107349: 53 push %ebx 8010734a: 83 ec 1c sub $0x1c,%esp 8010734d: 8b 45 0c mov 0xc(%ebp),%eax 80107350: 8b 75 10 mov 0x10(%ebp),%esi 80107353: 8b 7d 08 mov 0x8(%ebp),%edi 80107356: 89 45 e4 mov %eax,-0x1c(%ebp) if(sz >= PGSIZE) 80107359: 81 fe ff 0f 00 00 cmp $0xfff,%esi 8010735f: 77 4b ja 801073ac <inituvm+0x6c> mem = kalloc(); 80107361: e8 da b2 ff ff call 80102640 <kalloc> memset(mem, 0, PGSIZE); 80107366: 83 ec 04 sub $0x4,%esp 80107369: 68 00 10 00 00 push $0x1000 mem = kalloc(); 8010736e: 89 c3 mov %eax,%ebx memset(mem, 0, PGSIZE); 80107370: 6a 00 push $0x0 80107372: 50 push %eax 80107373: e8 28 da ff ff call 80104da0 <memset> mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U); 80107378: 58 pop %eax 80107379: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 8010737f: 5a pop %edx 80107380: 6a 06 push $0x6 80107382: b9 00 10 00 00 mov $0x1000,%ecx 80107387: 31 d2 xor %edx,%edx 80107389: 50 push %eax 8010738a: 89 f8 mov %edi,%eax 8010738c: e8 af fc ff ff call 80107040 <mappages> memmove(mem, init, sz); 80107391: 8b 45 e4 mov -0x1c(%ebp),%eax 80107394: 89 75 10 mov %esi,0x10(%ebp) 80107397: 83 c4 10 add $0x10,%esp 8010739a: 89 5d 08 mov %ebx,0x8(%ebp) 8010739d: 89 45 0c mov %eax,0xc(%ebp) } 801073a0: 8d 65 f4 lea -0xc(%ebp),%esp 801073a3: 5b pop %ebx 801073a4: 5e pop %esi 801073a5: 5f pop %edi 801073a6: 5d pop %ebp memmove(mem, init, sz); 801073a7: e9 94 da ff ff jmp 80104e40 <memmove> panic("inituvm: more than a page"); 801073ac: 83 ec 0c sub $0xc,%esp 801073af: 68 39 82 10 80 push $0x80108239 801073b4: e8 d7 8f ff ff call 80100390 <panic> 801073b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801073c0 <loaduvm>: { 801073c0: f3 0f 1e fb endbr32 801073c4: 55 push %ebp 801073c5: 89 e5 mov %esp,%ebp 801073c7: 57 push %edi 801073c8: 56 push %esi 801073c9: 53 push %ebx 801073ca: 83 ec 1c sub $0x1c,%esp 801073cd: 8b 45 0c mov 0xc(%ebp),%eax 801073d0: 8b 75 18 mov 0x18(%ebp),%esi if((uint) addr % PGSIZE != 0) 801073d3: a9 ff 0f 00 00 test $0xfff,%eax 801073d8: 0f 85 99 00 00 00 jne 80107477 <loaduvm+0xb7> for(i = 0; i < sz; i += PGSIZE){ 801073de: 01 f0 add %esi,%eax 801073e0: 89 f3 mov %esi,%ebx 801073e2: 89 45 e4 mov %eax,-0x1c(%ebp) if(readi(ip, P2V(pa), offset+i, n) != n) 801073e5: 8b 45 14 mov 0x14(%ebp),%eax 801073e8: 01 f0 add %esi,%eax 801073ea: 89 45 e0 mov %eax,-0x20(%ebp) for(i = 0; i < sz; i += PGSIZE){ 801073ed: 85 f6 test %esi,%esi 801073ef: 75 15 jne 80107406 <loaduvm+0x46> 801073f1: eb 6d jmp 80107460 <loaduvm+0xa0> 801073f3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801073f7: 90 nop 801073f8: 81 eb 00 10 00 00 sub $0x1000,%ebx 801073fe: 89 f0 mov %esi,%eax 80107400: 29 d8 sub %ebx,%eax 80107402: 39 c6 cmp %eax,%esi 80107404: 76 5a jbe 80107460 <loaduvm+0xa0> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 80107406: 8b 55 e4 mov -0x1c(%ebp),%edx 80107409: 8b 45 08 mov 0x8(%ebp),%eax 8010740c: 31 c9 xor %ecx,%ecx 8010740e: 29 da sub %ebx,%edx 80107410: e8 ab fb ff ff call 80106fc0 <walkpgdir> 80107415: 85 c0 test %eax,%eax 80107417: 74 51 je 8010746a <loaduvm+0xaa> pa = PTE_ADDR(*pte); 80107419: 8b 00 mov (%eax),%eax if(readi(ip, P2V(pa), offset+i, n) != n) 8010741b: 8b 4d e0 mov -0x20(%ebp),%ecx if(sz - i < PGSIZE) 8010741e: bf 00 10 00 00 mov $0x1000,%edi pa = PTE_ADDR(*pte); 80107423: 25 00 f0 ff ff and $0xfffff000,%eax if(sz - i < PGSIZE) 80107428: 81 fb ff 0f 00 00 cmp $0xfff,%ebx 8010742e: 0f 46 fb cmovbe %ebx,%edi if(readi(ip, P2V(pa), offset+i, n) != n) 80107431: 29 d9 sub %ebx,%ecx 80107433: 05 00 00 00 80 add $0x80000000,%eax 80107438: 57 push %edi 80107439: 51 push %ecx 8010743a: 50 push %eax 8010743b: ff 75 10 pushl 0x10(%ebp) 8010743e: e8 2d a6 ff ff call 80101a70 <readi> 80107443: 83 c4 10 add $0x10,%esp 80107446: 39 f8 cmp %edi,%eax 80107448: 74 ae je 801073f8 <loaduvm+0x38> } 8010744a: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 8010744d: b8 ff ff ff ff mov $0xffffffff,%eax } 80107452: 5b pop %ebx 80107453: 5e pop %esi 80107454: 5f pop %edi 80107455: 5d pop %ebp 80107456: c3 ret 80107457: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010745e: 66 90 xchg %ax,%ax 80107460: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 80107463: 31 c0 xor %eax,%eax } 80107465: 5b pop %ebx 80107466: 5e pop %esi 80107467: 5f pop %edi 80107468: 5d pop %ebp 80107469: c3 ret panic("loaduvm: address should exist"); 8010746a: 83 ec 0c sub $0xc,%esp 8010746d: 68 53 82 10 80 push $0x80108253 80107472: e8 19 8f ff ff call 80100390 <panic> panic("loaduvm: addr must be page aligned"); 80107477: 83 ec 0c sub $0xc,%esp 8010747a: 68 f4 82 10 80 push $0x801082f4 8010747f: e8 0c 8f ff ff call 80100390 <panic> 80107484: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010748b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 8010748f: 90 nop 80107490 <allocuvm>: { 80107490: f3 0f 1e fb endbr32 80107494: 55 push %ebp 80107495: 89 e5 mov %esp,%ebp 80107497: 57 push %edi 80107498: 56 push %esi 80107499: 53 push %ebx 8010749a: 83 ec 1c sub $0x1c,%esp if(newsz >= KERNBASE) 8010749d: 8b 45 10 mov 0x10(%ebp),%eax { 801074a0: 8b 7d 08 mov 0x8(%ebp),%edi if(newsz >= KERNBASE) 801074a3: 89 45 e4 mov %eax,-0x1c(%ebp) 801074a6: 85 c0 test %eax,%eax 801074a8: 0f 88 b2 00 00 00 js 80107560 <allocuvm+0xd0> if(newsz < oldsz) 801074ae: 3b 45 0c cmp 0xc(%ebp),%eax return oldsz; 801074b1: 8b 45 0c mov 0xc(%ebp),%eax if(newsz < oldsz) 801074b4: 0f 82 96 00 00 00 jb 80107550 <allocuvm+0xc0> a = PGROUNDUP(oldsz); 801074ba: 8d b0 ff 0f 00 00 lea 0xfff(%eax),%esi 801074c0: 81 e6 00 f0 ff ff and $0xfffff000,%esi for(; a < newsz; a += PGSIZE){ 801074c6: 39 75 10 cmp %esi,0x10(%ebp) 801074c9: 77 40 ja 8010750b <allocuvm+0x7b> 801074cb: e9 83 00 00 00 jmp 80107553 <allocuvm+0xc3> memset(mem, 0, PGSIZE); 801074d0: 83 ec 04 sub $0x4,%esp 801074d3: 68 00 10 00 00 push $0x1000 801074d8: 6a 00 push $0x0 801074da: 50 push %eax 801074db: e8 c0 d8 ff ff call 80104da0 <memset> if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ 801074e0: 58 pop %eax 801074e1: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 801074e7: 5a pop %edx 801074e8: 6a 06 push $0x6 801074ea: b9 00 10 00 00 mov $0x1000,%ecx 801074ef: 89 f2 mov %esi,%edx 801074f1: 50 push %eax 801074f2: 89 f8 mov %edi,%eax 801074f4: e8 47 fb ff ff call 80107040 <mappages> 801074f9: 83 c4 10 add $0x10,%esp 801074fc: 85 c0 test %eax,%eax 801074fe: 78 78 js 80107578 <allocuvm+0xe8> for(; a < newsz; a += PGSIZE){ 80107500: 81 c6 00 10 00 00 add $0x1000,%esi 80107506: 39 75 10 cmp %esi,0x10(%ebp) 80107509: 76 48 jbe 80107553 <allocuvm+0xc3> mem = kalloc(); 8010750b: e8 30 b1 ff ff call 80102640 <kalloc> 80107510: 89 c3 mov %eax,%ebx if(mem == 0){ 80107512: 85 c0 test %eax,%eax 80107514: 75 ba jne 801074d0 <allocuvm+0x40> cprintf("allocuvm out of memory\n"); 80107516: 83 ec 0c sub $0xc,%esp 80107519: 68 71 82 10 80 push $0x80108271 8010751e: e8 8d 91 ff ff call 801006b0 <cprintf> if(newsz >= oldsz) 80107523: 8b 45 0c mov 0xc(%ebp),%eax 80107526: 83 c4 10 add $0x10,%esp 80107529: 39 45 10 cmp %eax,0x10(%ebp) 8010752c: 74 32 je 80107560 <allocuvm+0xd0> 8010752e: 8b 55 10 mov 0x10(%ebp),%edx 80107531: 89 c1 mov %eax,%ecx 80107533: 89 f8 mov %edi,%eax 80107535: e8 96 fb ff ff call 801070d0 <deallocuvm.part.0> return 0; 8010753a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) } 80107541: 8b 45 e4 mov -0x1c(%ebp),%eax 80107544: 8d 65 f4 lea -0xc(%ebp),%esp 80107547: 5b pop %ebx 80107548: 5e pop %esi 80107549: 5f pop %edi 8010754a: 5d pop %ebp 8010754b: c3 ret 8010754c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return oldsz; 80107550: 89 45 e4 mov %eax,-0x1c(%ebp) } 80107553: 8b 45 e4 mov -0x1c(%ebp),%eax 80107556: 8d 65 f4 lea -0xc(%ebp),%esp 80107559: 5b pop %ebx 8010755a: 5e pop %esi 8010755b: 5f pop %edi 8010755c: 5d pop %ebp 8010755d: c3 ret 8010755e: 66 90 xchg %ax,%ax return 0; 80107560: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) } 80107567: 8b 45 e4 mov -0x1c(%ebp),%eax 8010756a: 8d 65 f4 lea -0xc(%ebp),%esp 8010756d: 5b pop %ebx 8010756e: 5e pop %esi 8010756f: 5f pop %edi 80107570: 5d pop %ebp 80107571: c3 ret 80107572: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cprintf("allocuvm out of memory (2)\n"); 80107578: 83 ec 0c sub $0xc,%esp 8010757b: 68 89 82 10 80 push $0x80108289 80107580: e8 2b 91 ff ff call 801006b0 <cprintf> if(newsz >= oldsz) 80107585: 8b 45 0c mov 0xc(%ebp),%eax 80107588: 83 c4 10 add $0x10,%esp 8010758b: 39 45 10 cmp %eax,0x10(%ebp) 8010758e: 74 0c je 8010759c <allocuvm+0x10c> 80107590: 8b 55 10 mov 0x10(%ebp),%edx 80107593: 89 c1 mov %eax,%ecx 80107595: 89 f8 mov %edi,%eax 80107597: e8 34 fb ff ff call 801070d0 <deallocuvm.part.0> kfree(mem); 8010759c: 83 ec 0c sub $0xc,%esp 8010759f: 53 push %ebx 801075a0: e8 db ae ff ff call 80102480 <kfree> return 0; 801075a5: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 801075ac: 83 c4 10 add $0x10,%esp } 801075af: 8b 45 e4 mov -0x1c(%ebp),%eax 801075b2: 8d 65 f4 lea -0xc(%ebp),%esp 801075b5: 5b pop %ebx 801075b6: 5e pop %esi 801075b7: 5f pop %edi 801075b8: 5d pop %ebp 801075b9: c3 ret 801075ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801075c0 <deallocuvm>: { 801075c0: f3 0f 1e fb endbr32 801075c4: 55 push %ebp 801075c5: 89 e5 mov %esp,%ebp 801075c7: 8b 55 0c mov 0xc(%ebp),%edx 801075ca: 8b 4d 10 mov 0x10(%ebp),%ecx 801075cd: 8b 45 08 mov 0x8(%ebp),%eax if(newsz >= oldsz) 801075d0: 39 d1 cmp %edx,%ecx 801075d2: 73 0c jae 801075e0 <deallocuvm+0x20> } 801075d4: 5d pop %ebp 801075d5: e9 f6 fa ff ff jmp 801070d0 <deallocuvm.part.0> 801075da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801075e0: 89 d0 mov %edx,%eax 801075e2: 5d pop %ebp 801075e3: c3 ret 801075e4: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801075eb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801075ef: 90 nop 801075f0 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 801075f0: f3 0f 1e fb endbr32 801075f4: 55 push %ebp 801075f5: 89 e5 mov %esp,%ebp 801075f7: 57 push %edi 801075f8: 56 push %esi 801075f9: 53 push %ebx 801075fa: 83 ec 0c sub $0xc,%esp 801075fd: 8b 75 08 mov 0x8(%ebp),%esi uint i; if(pgdir == 0) 80107600: 85 f6 test %esi,%esi 80107602: 74 55 je 80107659 <freevm+0x69> if(newsz >= oldsz) 80107604: 31 c9 xor %ecx,%ecx 80107606: ba 00 00 00 80 mov $0x80000000,%edx 8010760b: 89 f0 mov %esi,%eax 8010760d: 89 f3 mov %esi,%ebx 8010760f: e8 bc fa ff ff call 801070d0 <deallocuvm.part.0> panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 80107614: 8d be 00 10 00 00 lea 0x1000(%esi),%edi 8010761a: eb 0b jmp 80107627 <freevm+0x37> 8010761c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80107620: 83 c3 04 add $0x4,%ebx 80107623: 39 df cmp %ebx,%edi 80107625: 74 23 je 8010764a <freevm+0x5a> if(pgdir[i] & PTE_P){ 80107627: 8b 03 mov (%ebx),%eax 80107629: a8 01 test $0x1,%al 8010762b: 74 f3 je 80107620 <freevm+0x30> char * v = P2V(PTE_ADDR(pgdir[i])); 8010762d: 25 00 f0 ff ff and $0xfffff000,%eax kfree(v); 80107632: 83 ec 0c sub $0xc,%esp 80107635: 83 c3 04 add $0x4,%ebx char * v = P2V(PTE_ADDR(pgdir[i])); 80107638: 05 00 00 00 80 add $0x80000000,%eax kfree(v); 8010763d: 50 push %eax 8010763e: e8 3d ae ff ff call 80102480 <kfree> 80107643: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 80107646: 39 df cmp %ebx,%edi 80107648: 75 dd jne 80107627 <freevm+0x37> } } kfree((char*)pgdir); 8010764a: 89 75 08 mov %esi,0x8(%ebp) } 8010764d: 8d 65 f4 lea -0xc(%ebp),%esp 80107650: 5b pop %ebx 80107651: 5e pop %esi 80107652: 5f pop %edi 80107653: 5d pop %ebp kfree((char*)pgdir); 80107654: e9 27 ae ff ff jmp 80102480 <kfree> panic("freevm: no pgdir"); 80107659: 83 ec 0c sub $0xc,%esp 8010765c: 68 a5 82 10 80 push $0x801082a5 80107661: e8 2a 8d ff ff call 80100390 <panic> 80107666: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010766d: 8d 76 00 lea 0x0(%esi),%esi 80107670 <setupkvm>: { 80107670: f3 0f 1e fb endbr32 80107674: 55 push %ebp 80107675: 89 e5 mov %esp,%ebp 80107677: 56 push %esi 80107678: 53 push %ebx if((pgdir = (pde_t*)kalloc()) == 0) 80107679: e8 c2 af ff ff call 80102640 <kalloc> 8010767e: 89 c6 mov %eax,%esi 80107680: 85 c0 test %eax,%eax 80107682: 74 42 je 801076c6 <setupkvm+0x56> memset(pgdir, 0, PGSIZE); 80107684: 83 ec 04 sub $0x4,%esp for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107687: bb 20 b4 10 80 mov $0x8010b420,%ebx memset(pgdir, 0, PGSIZE); 8010768c: 68 00 10 00 00 push $0x1000 80107691: 6a 00 push $0x0 80107693: 50 push %eax 80107694: e8 07 d7 ff ff call 80104da0 <memset> 80107699: 83 c4 10 add $0x10,%esp (uint)k->phys_start, k->perm) < 0) { 8010769c: 8b 43 04 mov 0x4(%ebx),%eax if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 8010769f: 83 ec 08 sub $0x8,%esp 801076a2: 8b 4b 08 mov 0x8(%ebx),%ecx 801076a5: ff 73 0c pushl 0xc(%ebx) 801076a8: 8b 13 mov (%ebx),%edx 801076aa: 50 push %eax 801076ab: 29 c1 sub %eax,%ecx 801076ad: 89 f0 mov %esi,%eax 801076af: e8 8c f9 ff ff call 80107040 <mappages> 801076b4: 83 c4 10 add $0x10,%esp 801076b7: 85 c0 test %eax,%eax 801076b9: 78 15 js 801076d0 <setupkvm+0x60> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 801076bb: 83 c3 10 add $0x10,%ebx 801076be: 81 fb 60 b4 10 80 cmp $0x8010b460,%ebx 801076c4: 75 d6 jne 8010769c <setupkvm+0x2c> } 801076c6: 8d 65 f8 lea -0x8(%ebp),%esp 801076c9: 89 f0 mov %esi,%eax 801076cb: 5b pop %ebx 801076cc: 5e pop %esi 801076cd: 5d pop %ebp 801076ce: c3 ret 801076cf: 90 nop freevm(pgdir); 801076d0: 83 ec 0c sub $0xc,%esp 801076d3: 56 push %esi return 0; 801076d4: 31 f6 xor %esi,%esi freevm(pgdir); 801076d6: e8 15 ff ff ff call 801075f0 <freevm> return 0; 801076db: 83 c4 10 add $0x10,%esp } 801076de: 8d 65 f8 lea -0x8(%ebp),%esp 801076e1: 89 f0 mov %esi,%eax 801076e3: 5b pop %ebx 801076e4: 5e pop %esi 801076e5: 5d pop %ebp 801076e6: c3 ret 801076e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801076ee: 66 90 xchg %ax,%ax 801076f0 <kvmalloc>: { 801076f0: f3 0f 1e fb endbr32 801076f4: 55 push %ebp 801076f5: 89 e5 mov %esp,%ebp 801076f7: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 801076fa: e8 71 ff ff ff call 80107670 <setupkvm> 801076ff: a3 a4 72 11 80 mov %eax,0x801172a4 lcr3(V2P(kpgdir)); // switch to the kernel page table 80107704: 05 00 00 00 80 add $0x80000000,%eax 80107709: 0f 22 d8 mov %eax,%cr3 } 8010770c: c9 leave 8010770d: c3 ret 8010770e: 66 90 xchg %ax,%ax 80107710 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80107710: f3 0f 1e fb endbr32 80107714: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107715: 31 c9 xor %ecx,%ecx { 80107717: 89 e5 mov %esp,%ebp 80107719: 83 ec 08 sub $0x8,%esp pte = walkpgdir(pgdir, uva, 0); 8010771c: 8b 55 0c mov 0xc(%ebp),%edx 8010771f: 8b 45 08 mov 0x8(%ebp),%eax 80107722: e8 99 f8 ff ff call 80106fc0 <walkpgdir> if(pte == 0) 80107727: 85 c0 test %eax,%eax 80107729: 74 05 je 80107730 <clearpteu+0x20> panic("clearpteu"); *pte &= ~PTE_U; 8010772b: 83 20 fb andl $0xfffffffb,(%eax) } 8010772e: c9 leave 8010772f: c3 ret panic("clearpteu"); 80107730: 83 ec 0c sub $0xc,%esp 80107733: 68 b6 82 10 80 push $0x801082b6 80107738: e8 53 8c ff ff call 80100390 <panic> 8010773d: 8d 76 00 lea 0x0(%esi),%esi 80107740 <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 80107740: f3 0f 1e fb endbr32 80107744: 55 push %ebp 80107745: 89 e5 mov %esp,%ebp 80107747: 57 push %edi 80107748: 56 push %esi 80107749: 53 push %ebx 8010774a: 83 ec 1c sub $0x1c,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 8010774d: e8 1e ff ff ff call 80107670 <setupkvm> 80107752: 89 45 e0 mov %eax,-0x20(%ebp) 80107755: 85 c0 test %eax,%eax 80107757: 0f 84 9b 00 00 00 je 801077f8 <copyuvm+0xb8> return 0; for(i = 0; i < sz; i += PGSIZE){ 8010775d: 8b 4d 0c mov 0xc(%ebp),%ecx 80107760: 85 c9 test %ecx,%ecx 80107762: 0f 84 90 00 00 00 je 801077f8 <copyuvm+0xb8> 80107768: 31 f6 xor %esi,%esi 8010776a: eb 46 jmp 801077b2 <copyuvm+0x72> 8010776c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 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); 80107770: 83 ec 04 sub $0x4,%esp 80107773: 81 c7 00 00 00 80 add $0x80000000,%edi 80107779: 68 00 10 00 00 push $0x1000 8010777e: 57 push %edi 8010777f: 50 push %eax 80107780: e8 bb d6 ff ff call 80104e40 <memmove> if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) { 80107785: 58 pop %eax 80107786: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 8010778c: 5a pop %edx 8010778d: ff 75 e4 pushl -0x1c(%ebp) 80107790: b9 00 10 00 00 mov $0x1000,%ecx 80107795: 89 f2 mov %esi,%edx 80107797: 50 push %eax 80107798: 8b 45 e0 mov -0x20(%ebp),%eax 8010779b: e8 a0 f8 ff ff call 80107040 <mappages> 801077a0: 83 c4 10 add $0x10,%esp 801077a3: 85 c0 test %eax,%eax 801077a5: 78 61 js 80107808 <copyuvm+0xc8> for(i = 0; i < sz; i += PGSIZE){ 801077a7: 81 c6 00 10 00 00 add $0x1000,%esi 801077ad: 39 75 0c cmp %esi,0xc(%ebp) 801077b0: 76 46 jbe 801077f8 <copyuvm+0xb8> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 801077b2: 8b 45 08 mov 0x8(%ebp),%eax 801077b5: 31 c9 xor %ecx,%ecx 801077b7: 89 f2 mov %esi,%edx 801077b9: e8 02 f8 ff ff call 80106fc0 <walkpgdir> 801077be: 85 c0 test %eax,%eax 801077c0: 74 61 je 80107823 <copyuvm+0xe3> if(!(*pte & PTE_P)) 801077c2: 8b 00 mov (%eax),%eax 801077c4: a8 01 test $0x1,%al 801077c6: 74 4e je 80107816 <copyuvm+0xd6> pa = PTE_ADDR(*pte); 801077c8: 89 c7 mov %eax,%edi flags = PTE_FLAGS(*pte); 801077ca: 25 ff 0f 00 00 and $0xfff,%eax 801077cf: 89 45 e4 mov %eax,-0x1c(%ebp) pa = PTE_ADDR(*pte); 801077d2: 81 e7 00 f0 ff ff and $0xfffff000,%edi if((mem = kalloc()) == 0) 801077d8: e8 63 ae ff ff call 80102640 <kalloc> 801077dd: 89 c3 mov %eax,%ebx 801077df: 85 c0 test %eax,%eax 801077e1: 75 8d jne 80107770 <copyuvm+0x30> } } return d; bad: freevm(d); 801077e3: 83 ec 0c sub $0xc,%esp 801077e6: ff 75 e0 pushl -0x20(%ebp) 801077e9: e8 02 fe ff ff call 801075f0 <freevm> return 0; 801077ee: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) 801077f5: 83 c4 10 add $0x10,%esp } 801077f8: 8b 45 e0 mov -0x20(%ebp),%eax 801077fb: 8d 65 f4 lea -0xc(%ebp),%esp 801077fe: 5b pop %ebx 801077ff: 5e pop %esi 80107800: 5f pop %edi 80107801: 5d pop %ebp 80107802: c3 ret 80107803: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80107807: 90 nop kfree(mem); 80107808: 83 ec 0c sub $0xc,%esp 8010780b: 53 push %ebx 8010780c: e8 6f ac ff ff call 80102480 <kfree> goto bad; 80107811: 83 c4 10 add $0x10,%esp 80107814: eb cd jmp 801077e3 <copyuvm+0xa3> panic("copyuvm: page not present"); 80107816: 83 ec 0c sub $0xc,%esp 80107819: 68 da 82 10 80 push $0x801082da 8010781e: e8 6d 8b ff ff call 80100390 <panic> panic("copyuvm: pte should exist"); 80107823: 83 ec 0c sub $0xc,%esp 80107826: 68 c0 82 10 80 push $0x801082c0 8010782b: e8 60 8b ff ff call 80100390 <panic> 80107830 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80107830: f3 0f 1e fb endbr32 80107834: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107835: 31 c9 xor %ecx,%ecx { 80107837: 89 e5 mov %esp,%ebp 80107839: 83 ec 08 sub $0x8,%esp pte = walkpgdir(pgdir, uva, 0); 8010783c: 8b 55 0c mov 0xc(%ebp),%edx 8010783f: 8b 45 08 mov 0x8(%ebp),%eax 80107842: e8 79 f7 ff ff call 80106fc0 <walkpgdir> if((*pte & PTE_P) == 0) 80107847: 8b 00 mov (%eax),%eax return 0; if((*pte & PTE_U) == 0) return 0; return (char*)P2V(PTE_ADDR(*pte)); } 80107849: c9 leave if((*pte & PTE_U) == 0) 8010784a: 89 c2 mov %eax,%edx return (char*)P2V(PTE_ADDR(*pte)); 8010784c: 25 00 f0 ff ff and $0xfffff000,%eax if((*pte & PTE_U) == 0) 80107851: 83 e2 05 and $0x5,%edx return (char*)P2V(PTE_ADDR(*pte)); 80107854: 05 00 00 00 80 add $0x80000000,%eax 80107859: 83 fa 05 cmp $0x5,%edx 8010785c: ba 00 00 00 00 mov $0x0,%edx 80107861: 0f 45 c2 cmovne %edx,%eax } 80107864: c3 ret 80107865: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8010786c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80107870 <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) { 80107870: f3 0f 1e fb endbr32 80107874: 55 push %ebp 80107875: 89 e5 mov %esp,%ebp 80107877: 57 push %edi 80107878: 56 push %esi 80107879: 53 push %ebx 8010787a: 83 ec 0c sub $0xc,%esp 8010787d: 8b 75 14 mov 0x14(%ebp),%esi 80107880: 8b 55 0c mov 0xc(%ebp),%edx char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 80107883: 85 f6 test %esi,%esi 80107885: 75 3c jne 801078c3 <copyout+0x53> 80107887: eb 67 jmp 801078f0 <copyout+0x80> 80107889: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi va0 = (uint)PGROUNDDOWN(va); pa0 = uva2ka(pgdir, (char*)va0); if(pa0 == 0) return -1; n = PGSIZE - (va - va0); 80107890: 8b 55 0c mov 0xc(%ebp),%edx 80107893: 89 fb mov %edi,%ebx 80107895: 29 d3 sub %edx,%ebx 80107897: 81 c3 00 10 00 00 add $0x1000,%ebx if(n > len) 8010789d: 39 f3 cmp %esi,%ebx 8010789f: 0f 47 de cmova %esi,%ebx n = len; memmove(pa0 + (va - va0), buf, n); 801078a2: 29 fa sub %edi,%edx 801078a4: 83 ec 04 sub $0x4,%esp 801078a7: 01 c2 add %eax,%edx 801078a9: 53 push %ebx 801078aa: ff 75 10 pushl 0x10(%ebp) 801078ad: 52 push %edx 801078ae: e8 8d d5 ff ff call 80104e40 <memmove> len -= n; buf += n; 801078b3: 01 5d 10 add %ebx,0x10(%ebp) va = va0 + PGSIZE; 801078b6: 8d 97 00 10 00 00 lea 0x1000(%edi),%edx while(len > 0){ 801078bc: 83 c4 10 add $0x10,%esp 801078bf: 29 de sub %ebx,%esi 801078c1: 74 2d je 801078f0 <copyout+0x80> va0 = (uint)PGROUNDDOWN(va); 801078c3: 89 d7 mov %edx,%edi pa0 = uva2ka(pgdir, (char*)va0); 801078c5: 83 ec 08 sub $0x8,%esp va0 = (uint)PGROUNDDOWN(va); 801078c8: 89 55 0c mov %edx,0xc(%ebp) 801078cb: 81 e7 00 f0 ff ff and $0xfffff000,%edi pa0 = uva2ka(pgdir, (char*)va0); 801078d1: 57 push %edi 801078d2: ff 75 08 pushl 0x8(%ebp) 801078d5: e8 56 ff ff ff call 80107830 <uva2ka> if(pa0 == 0) 801078da: 83 c4 10 add $0x10,%esp 801078dd: 85 c0 test %eax,%eax 801078df: 75 af jne 80107890 <copyout+0x20> } return 0; } 801078e1: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 801078e4: b8 ff ff ff ff mov $0xffffffff,%eax } 801078e9: 5b pop %ebx 801078ea: 5e pop %esi 801078eb: 5f pop %edi 801078ec: 5d pop %ebp 801078ed: c3 ret 801078ee: 66 90 xchg %ax,%ax 801078f0: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 801078f3: 31 c0 xor %eax,%eax } 801078f5: 5b pop %ebx 801078f6: 5e pop %esi 801078f7: 5f pop %edi 801078f8: 5d pop %ebp 801078f9: c3 ret
38.541659
143
0.523956
dc293541d07fc6062a196ffd13a6301c5c972f96
711
asm
Assembly
oeis/062/A062112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062112: a(0)=0; a(1)=1; a(n) = a(n-1) + (3 + (-1)^n)*a(n-2)/2. ; Submitted by Jamie Morken(s2) ; 0,1,1,2,4,6,14,20,48,68,164,232,560,792,1912,2704,6528,9232,22288,31520,76096,107616,259808,367424,887040,1254464,3028544,4283008,10340096,14623104,35303296,49926400,120532992,170459392,411525376,581984768,1405035520,1987020288,4797091328,6784111616,16378294272,23162405888,55918994432,79081400320,190919389184,270000789504,651839567872,921840357376,2225519493120,3147359850496,7598398836736,10745758687232,25942556360704,36688315047936,88573427769344,125261742817280,302408598355968,427670341173248 mov $1,1 lpb $0 sub $0,2 add $1,$2 mul $2,2 add $2,$1 lpe lpb $0 sub $0,1 add $2,$1 lpe mov $0,$2
41.823529
501
0.766526
e1b92cc496e81039ce118e6a6f09f958d592d0df
966
asm
Assembly
ubb/asc/lab07/a.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
ubb/asc/lab07/a.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
6
2020-03-04T20:52:39.000Z
2022-03-31T00:33:07.000Z
ubb/asc/lab07/a.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
assume cs:code, ds:data data segment a dw 1234h,5678h,90h la equ ($ - a) / 2 b dw 4h,0abcdh,10h,1122h lb equ ($ - b) / 2 c db la + lb dup(?) lc equ ($ - c) data ends code segment start: mov ax, data mov ds, ax mov es, ax mov cx, la mov si, offset a mov di, offset c CLD loop1: LODSW STOSB loop loop1 mov si, offset b inc si mov cx, lb loop2: LODSW STOSB loop loop2 ; now sort c ;bool sorted = false; ;while(!sorted) { ; sorted = true; ; for(int i = 0 ; i + 1 < n ; ++ i) { ; if(a[i] > a[i + 1]) { ; swap(a[i], a[i + 1]); ; sorted = false; ; } ; } ; } while_loop: mov dx, 1 mov si, 0 mov di, 1 mov cx, lc - 1 for_loop: mov al, c[si] mov bl, c[di] cmp al, bl jle lower_label mov al, c[si] mov bl, c[di] mov c[si], bl mov c[di], al mov dx, 0 lower_label: inc si inc di loop for_loop cmp dx, 0 je while_loop mov ax, 4c00h int 21h code ends end start
12.227848
38
0.550725
06eda6c0e91675eaac9aaca5f28b683a7fb2131f
829
asm
Assembly
programs/oeis/272/A272298.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/272/A272298.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/272/A272298.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A272298: a(n) = n^4 + 324. ; 324,325,340,405,580,949,1620,2725,4420,6885,10324,14965,21060,28885,38740,50949,65860,83845,105300,130645,160324,194805,234580,280165,332100,390949,457300,531765,614980,707605,810324,923845,1048900,1186245,1336660,1500949,1679940,1874485,2085460,2313765,2560324,2826085,3112020,3419125,3748420,4100949,4477780,4880005,5308740,5765125,6250324,6765525,7311940,7890805,8503380,9150949,9834820,10556325,11316820,12117685,12960324,13846165,14776660,15753285,16777540,17850949,18975060,20151445,21381700,22667445,24010324,25412005,26874180,28398565,29986900,31640949,33362500,35153365,37015380,38950405,40960324,43047045,45212500,47458645,49787460,52200949,54701140,57290085,59969860,62742565,65610324,68575285,71639620,74805525,78075220,81450949,84934980,88529605,92237140,96059925 pow $0,4 add $0,324
138.166667
778
0.84801
23b85b04d2035326fe1f9260b7033ef9b570fa3c
348
asm
Assembly
Borland/CBuilder5/Source/RTL/source/pcre/_pcomp.asm
TrevorDArcyEvans/DivingMagpieSoftware
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
1
2021-05-27T10:27:25.000Z
2021-05-27T10:27:25.000Z
Borland/CBuilder5/Source/RTL/source/pcre/_pcomp.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
Borland/CBuilder5/Source/RTL/source/pcre/_pcomp.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
;---------------------------------------------------------------------- ; _pcomp.asm - jump stubs for the for the PCRE functions ;---------------------------------------------------------------------- ; $Copyright: 1998$ ; $Revision: 9.0 $ include rules.asi include entry.inc Entry@ pcre_compile,_pcre_compile , _RTLENTRY, 0 end
24.857143
71
0.399425
9b1064f29d9a58ee651337a88453ac385bc28769
357
asm
Assembly
data/mapHeaders/SafariZoneCenterRestHouse.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapHeaders/SafariZoneCenterRestHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapHeaders/SafariZoneCenterRestHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SafariZoneCenterRestHouse_h: db GATE ; tileset db SAFARI_ZONE_CENTER_REST_HOUSE_HEIGHT, SAFARI_ZONE_CENTER_REST_HOUSE_WIDTH ; dimensions (y, x) dw SafariZoneCenterRestHouse_Blocks ; blocks dw SafariZoneCenterRestHouse_TextPointers ; texts dw SafariZoneCenterRestHouse_Script ; scripts db 0 ; connections dw SafariZoneCenterRestHouse_Object ; objects
39.666667
97
0.857143
0f6be9d0c65b8b5d1062f0e8300579e7ab9d3f20
5,754
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_2031_697.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_0xa0_notsx.log_2031_697.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_0xa0_notsx.log_2031_697.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 %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx lea addresses_WT_ht+0x137ac, %rax clflush (%rax) nop nop nop and $8869, %rcx vmovups (%rax), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rbp nop and %rcx, %rcx lea addresses_normal_ht+0x1bbac, %rdx clflush (%rdx) nop nop cmp %rbx, %rbx and $0xffffffffffffffc0, %rdx movntdqa (%rdx), %xmm4 vpextrq $1, %xmm4, %rdi nop nop nop nop nop dec %rbx lea addresses_WC_ht+0x107fc, %rax nop nop nop nop nop xor %r9, %r9 vmovups (%rax), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rcx nop nop cmp %r9, %r9 pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %r8 push %rbx push %rdx // Store lea addresses_RW+0x43ac, %r15 nop nop inc %r8 mov $0x5152535455565758, %r11 movq %r11, (%r15) nop xor %r11, %r11 // Store lea addresses_D+0x1cd6c, %rdx nop and $28783, %r15 mov $0x5152535455565758, %rbx movq %rbx, (%rdx) nop nop nop and $38634, %r15 // Store lea addresses_US+0x157ac, %rbx inc %r14 mov $0x5152535455565758, %r10 movq %r10, %xmm1 movups %xmm1, (%rbx) nop sub $35598, %rbx // Store lea addresses_A+0xf2a0, %rbx nop nop nop and %r10, %r10 mov $0x5152535455565758, %rdx movq %rdx, (%rbx) nop sub %r15, %r15 // Faulty Load lea addresses_RW+0x43ac, %rbx nop add $37208, %r14 mov (%rbx), %r10 lea oracles, %r11 and $0xff, %r10 shlq $12, %r10 mov (%r11,%r10,1), %r10 pop %rdx pop %rbx pop %r8 pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': True, 'same': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}} [Faulty Load] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'58': 2031} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
40.237762
2,999
0.656934
ddd4a8c690eff19386919b61c267523da1d74af1
542
asm
Assembly
oeis/158/A158225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158225: 196n - 1. ; 195,391,587,783,979,1175,1371,1567,1763,1959,2155,2351,2547,2743,2939,3135,3331,3527,3723,3919,4115,4311,4507,4703,4899,5095,5291,5487,5683,5879,6075,6271,6467,6663,6859,7055,7251,7447,7643,7839,8035,8231,8427,8623,8819,9015,9211,9407,9603,9799,9995,10191,10387,10583,10779,10975,11171,11367,11563,11759,11955,12151,12347,12543,12739,12935,13131,13327,13523,13719,13915,14111,14307,14503,14699,14895,15091,15287,15483,15679,15875,16071,16267,16463,16659,16855,17051,17247,17443,17639,17835,18031 mul $0,196 add $0,195
90.333333
497
0.793358
a32d4758901d76c80408174c64d7eeb7251aa40d
6,949
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_8569_394.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_8569_394.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_8569_394.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1b6a5, %rsi lea addresses_WT_ht+0x2c09, %rdi nop nop nop nop nop cmp $51254, %rbp mov $127, %rcx rep movsw nop nop add %r10, %r10 lea addresses_UC_ht+0x8b83, %rsi lea addresses_normal_ht+0x19625, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop inc %rdx mov $41, %rcx rep movsl nop cmp $6815, %rdx lea addresses_normal_ht+0x1ccbd, %rdx nop nop cmp $24055, %r14 movb $0x61, (%rdx) nop nop nop nop cmp %r10, %r10 lea addresses_D_ht+0x169a5, %rdx nop xor $25776, %r14 vmovups (%rdx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %rbp inc %rsi lea addresses_UC_ht+0x17aa5, %rcx nop nop sub %rbp, %rbp movw $0x6162, (%rcx) nop cmp $23875, %rbp lea addresses_normal_ht+0x4cc5, %rsi lea addresses_A_ht+0x1ae1f, %rdi nop nop nop nop nop cmp %r11, %r11 mov $90, %rcx rep movsl nop sub %rdx, %rdx lea addresses_WT_ht+0x17ca5, %rdi nop nop nop nop dec %r11 mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rdi) nop nop cmp %rdi, %rdi lea addresses_normal_ht+0xa663, %rsi lea addresses_WT_ht+0x4ca5, %rdi nop xor %r11, %r11 mov $86, %rcx rep movsw nop nop nop and %rbp, %rbp lea addresses_WC_ht+0x16235, %rcx cmp $47058, %r11 mov $0x6162636465666768, %rdi movq %rdi, %xmm0 and $0xffffffffffffffc0, %rcx vmovaps %ymm0, (%rcx) add $25827, %rdx lea addresses_normal_ht+0xb4a5, %r10 nop nop nop nop and %r11, %r11 vmovups (%r10), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rsi nop nop nop sub $46052, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r8 push %rbp push %rcx // Store lea addresses_D+0x62a5, %rbp nop nop nop nop nop add %r10, %r10 movw $0x5152, (%rbp) nop nop nop nop add $35173, %r13 // Faulty Load lea addresses_WT+0x1bca5, %r8 nop nop nop inc %r11 movntdqa (%r8), %xmm2 vpextrq $0, %xmm2, %rbp lea oracles, %rcx and $0xff, %rbp shlq $12, %rbp mov (%rcx,%rbp,1), %rbp pop %rcx pop %rbp pop %r8 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'00': 8569} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
36.192708
2,999
0.661246
436d6d1c8e64f092ed3c7b7d246b91f6c09a5c1f
895
asm
Assembly
programs/oeis/022/A022321.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022321.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022321.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022321: a(n) = a(n-1) + a(n-2) + 1, with a(0) = 1 and a(1) = 7. ; 1,7,9,17,27,45,73,119,193,313,507,821,1329,2151,3481,5633,9115,14749,23865,38615,62481,101097,163579,264677,428257,692935,1121193,1814129,2935323,4749453,7684777,12434231,20119009,32553241,52672251,85225493,137897745,223123239,361020985,584144225,945165211,1529309437,2474474649,4003784087,6478258737,10482042825,16960301563,27442344389,44402645953,71844990343,116247636297,188092626641,304340262939,492432889581,796773152521,1289206042103,2085979194625,3375185236729,5461164431355,8836349668085,14297514099441,23133863767527,37431377866969,60565241634497,97996619501467,158561861135965,256558480637433,415120341773399,671678822410833,1086799164184233,1758477986595067,2845277150779301,4603755137374369,7449032288153671 mov $1,1 mov $3,4 lpb $0,1 sub $0,1 mov $2,$1 mov $1,$3 add $3,$2 lpe sub $1,1 mul $1,2 add $1,1
59.666667
721
0.813408
43d3ba9887b5cc02c8dcabd4f14a126543c9068d
409
asm
Assembly
programs/oeis/138/A138034.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/138/A138034.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/138/A138034.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A138034: Expansion of (1+3*x^2)/(1-x+x^2). ; 1,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3,2,-1,-3,-2,1,3 add $0,1 mul $0,2 sub $0,3 div $0,2 mov $1,1 mov $2,2 lpb $0 sub $0,1 add $1,$2 sub $2,$1 lpe
27.266667
262
0.447433
a14a2539ddb33a889861b878b517ae1c808e10f7
719
asm
Assembly
oeis/178/A178301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/178/A178301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/178/A178301.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A178301: Triangle T(n,k) = binomial(n,k)*binomial(n+k+1,n+1) read by rows, 0 <= k <= n. ; Submitted by Christian Krause ; 1,1,3,1,8,10,1,15,45,35,1,24,126,224,126,1,35,280,840,1050,462,1,48,540,2400,4950,4752,1716,1,63,945,5775,17325,27027,21021,6435,1,80,1540,12320,50050,112112,140140,91520,24310,1,99,2376,24024,126126,378378,672672,700128,393822,92378,1,120,3510,43680,286650,1100736,2598960,3818880,3401190,1679600,352716,1,143,5005,75075,600600,2858856,8576568,16628040,20785050,16166150,7113106,1352078,1,168,6930,123200,1178100,6785856,25069968,61395840,100727550,109432400,75508356,29953728,5200300,1,195,9360 lpb $0 mov $1,$0 add $2,1 sub $0,$2 add $1,1 lpe bin $1,$0 bin $2,$0 mul $1,$2 mov $0,$1
47.933333
498
0.737135
d207752f5d75ffd51144d3c78cc10c642394c93d
1,682
asm
Assembly
tests/Test/TestProgram/interrupt-test.asm
AshleighAdams/Swis
244844276f9d2bd66487960eba6c12c85113e5e5
[ "MIT" ]
1
2021-12-28T18:16:08.000Z
2021-12-28T18:16:08.000Z
tests/Test/TestProgram/interrupt-test.asm
AshleighAdams/Swis
244844276f9d2bd66487960eba6c12c85113e5e5
[ "MIT" ]
20
2020-07-16T11:24:55.000Z
2022-03-07T11:08:21.000Z
tests/Test/TestProgram/interrupt-test.asm
AshleighAdams/Swis
244844276f9d2bd66487960eba6c12c85113e5e5
[ "MIT" ]
null
null
null
; setup the stack mov esp, $stack mov ebp, esp ; setup interrupts ;; set the vector table location shr epi, $interrupt_vector_table, 8 and epi, epi, 255 ;; activate them sti call $@main halt .align 256 $interrupt_vector_table: .data pad 1024 ;############ $string: .data ascii "Lorem ipsum... hello world\x0d" .data ascii "Abcdefghijklmnopqrstuvwxyz\x0d" .data ascii "Testing long output complete...\x0a\x00" $stdin_buff: .data pad 16 $stdin_buffreadpos: .data int32 0 $stdin_buffwritepos: .data int32 0 $int251_stdin_old: in ptr8 [ebp + 0], 0 mov ptr32 [ebp + 1], ptr32 [$stdin_buffwritepos] add ptr32 [$stdin_buffwritepos], ptr32 [$stdin_buffwritepos], 1 add esp, esp, 5 ; allocate stack after push eax modu eax, ptr32 [ebp + 1], 16 mov ptr8 [$stdin_buff + eax], ptr8 [ebp + 0] pop eax iret $int251_stdin: in ptr8 [ebp + 0], 0 modu eflag, ptr32 [$stdin_buffwritepos], 16 mov ptr8 [$stdin_buff + eflag], ptr8 [ebp + 0] add ptr32 [$stdin_buffwritepos], ptr32 [$stdin_buffwritepos], 1 iret $@main: ; set up the interrupt for stdin mov [$interrupt_vector_table + 251 * 4], $int251_stdin push $string call $puts sub esp, esp, 4 $stdin_loop: cmp ptr32 [$stdin_buffreadpos], ptr32 [$stdin_buffwritepos] jge $main_ret modu eax, ptr32 [$stdin_buffreadpos], 16 out 0, ptr8 [$stdin_buff + eax] add ptr32 [$stdin_buffreadpos], ptr32 [$stdin_buffreadpos], 1 jmp $stdin_loop $main_ret: ret $puts: .src func "void puts(char* str)" .src local "str" "int8*" -12 4 ; ptr = -12 mov eax, [ebp - 12] $puts_loop: jz ptr8 [eax], $puts_ret out 0, ptr8 [eax] add eax, eax, 1 jmp $puts_loop $puts_ret: ret; .align 4 $stack: .data pad 1024
19.113636
64
0.689061
eaeee19542f570a11bfb620374765f448cc08cff
7,464
asm
Assembly
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48_notsx.log_21829_418.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48_notsx.log_21829_418.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_un_/i7-7700_9_0x48_notsx.log_21829_418.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rcx push %rdx push %rsi lea addresses_A_ht+0x139cc, %r12 nop nop nop nop inc %rcx movups (%r12), %xmm7 vpextrq $0, %xmm7, %rdx nop nop nop nop inc %r14 lea addresses_UC_ht+0x1dc4c, %rsi nop nop nop nop dec %r13 movw $0x6162, (%rsi) inc %r14 lea addresses_A_ht+0x12454, %rsi nop nop nop and $47732, %rax movl $0x61626364, (%rsi) nop nop nop sub $30648, %r12 lea addresses_UC_ht+0xd9cc, %rsi nop xor $46350, %rax movw $0x6162, (%rsi) nop nop nop nop nop and %r14, %r14 lea addresses_WT_ht+0x20cc, %r14 nop nop nop nop and $41130, %rdx mov $0x6162636465666768, %rsi movq %rsi, (%r14) nop nop sub %r13, %r13 lea addresses_WT_ht+0x4594, %rcx nop nop nop cmp %rdx, %rdx movw $0x6162, (%rcx) nop nop nop nop inc %r14 lea addresses_WC_ht+0x191cc, %r12 nop nop nop nop and %rdx, %rdx movw $0x6162, (%r12) nop nop nop nop sub $4617, %r12 lea addresses_A_ht+0x1a38c, %rcx nop nop nop nop nop cmp %r14, %r14 movl $0x61626364, (%rcx) nop nop nop nop nop cmp %rdx, %rdx lea addresses_normal_ht+0x5acc, %r14 add $47606, %rcx and $0xffffffffffffffc0, %r14 movaps (%r14), %xmm4 vpextrq $0, %xmm4, %rdx nop nop nop nop nop xor %rax, %rax pop %rsi pop %rdx pop %rcx pop %rax pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r8 push %rbp push %rbx // Store lea addresses_WT+0x109bc, %rbx nop nop xor $55781, %r8 movw $0x5152, (%rbx) nop nop nop nop nop xor %rbx, %rbx // Store lea addresses_normal+0x1bf4c, %rbp nop nop nop nop nop xor $57320, %r12 mov $0x5152535455565758, %r10 movq %r10, (%rbp) nop nop nop inc %r10 // Store lea addresses_D+0x2868, %r10 nop nop xor %r8, %r8 movl $0x51525354, (%r10) nop nop and %r13, %r13 // Store lea addresses_WT+0x1845e, %r13 nop nop nop and %r10, %r10 mov $0x5152535455565758, %r8 movq %r8, %xmm1 vmovups %ymm1, (%r13) // Exception!!! nop nop nop mov (0), %r8 nop add %rbx, %rbx // Load lea addresses_RW+0x1b4a, %rbx inc %rbp mov (%rbx), %r13 nop nop nop nop xor %r10, %r10 // Faulty Load mov $0x1687900000001cc, %r12 nop nop nop nop nop inc %r13 vmovups (%r12), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rbp lea oracles, %r10 and $0xff, %rbp shlq $12, %rbp mov (%r10,%rbp,1), %rbp pop %rbx pop %rbp pop %r8 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_NC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_NC', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 10}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 5}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 8}} {'04': 1084, '72': 8, '00': 55, '08': 5, '20': 20676, '06': 1} 06 04 04 04 04 20 20 04 20 20 20 20 20 04 20 20 20 20 20 20 20 04 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 20 20 20 20 20 20 20 00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 04 20 04 04 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 04 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 04 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 04 20 20 20 20 20 20 20 20 20 20 20 04 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 04 20 20 */
30.716049
2,999
0.651527
6eb687df994cdaeb7d2e5ceee0349a1cc4bfbc19
819
asm
Assembly
11.stringCopy.asm
tamim87/Assembly-Samples
99290b8df6484ff9b46afa5bd1dc2f6bc31f29dd
[ "MIT" ]
null
null
null
11.stringCopy.asm
tamim87/Assembly-Samples
99290b8df6484ff9b46afa5bd1dc2f6bc31f29dd
[ "MIT" ]
null
null
null
11.stringCopy.asm
tamim87/Assembly-Samples
99290b8df6484ff9b46afa5bd1dc2f6bc31f29dd
[ "MIT" ]
null
null
null
;Moving a string to another string ;org 100h ; ;mov si,offset str1 ;mov di,offset str2 ;mov cx,len ; ;x: ; mov bl,[si] ; mov [di],bl ; inc si ; inc di ;loop x ;ret ; ;str1 db 'namespace' ;str2 db 10 dup(0) ;len equ ($ - str1) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; org 100h mov si,offset str1 ;load starting address of str1 into si mov di,offset str2 ;load starting address of str2 into di mov cx,len ;storing length into cx cld ;clearing direction flag rep movsb ;repeat and move string bytes ret str1 db 'namespace' ;input len equ ($ - str1) ;length of string str2 db 10 dup(0) ;string for copying
21
78
0.4884
cf82422cf43be16c2b37f11946d6fc1b6147214e
4,795
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_722.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_722.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_722.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rax push %rbx push %rcx lea addresses_WC_ht+0x122c9, %rax nop add $47020, %r14 vmovups (%rax), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r11 nop nop add %r10, %r10 lea addresses_D_ht+0x9619, %rcx nop nop sub $17508, %rbx mov (%rcx), %r10 dec %r11 pop %rcx pop %rbx pop %rax pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r15 push %r9 push %rbp push %rdx // Store mov $0x2bd870000000839, %r14 add %rdx, %rdx movw $0x5152, (%r14) nop nop nop nop nop xor $57217, %rdx // Store lea addresses_RW+0xbb7d, %r11 nop nop nop nop inc %r15 movb $0x51, (%r11) nop add $20997, %r11 // Faulty Load lea addresses_normal+0x11319, %r15 nop nop nop nop cmp $17221, %rbp movb (%r15), %r14b lea oracles, %r11 and $0xff, %r14 shlq $12, %r14 mov (%r11,%r14,1), %r14 pop %rdx pop %rbp pop %r9 pop %r15 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'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 */
48.434343
2,999
0.658186
109d7b61a95c5d3e21718bbe0d5354f59f4a706c
3,991
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_3087.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_3087.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_3087.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 %r8 push %rcx lea addresses_normal_ht+0x16056, %r11 nop nop nop and $28283, %rcx mov (%r11), %r13d nop nop nop nop lfence pop %rcx pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r9 push %rdx push %rsi // Faulty Load mov $0x29f7ec0000000056, %rsi nop nop nop nop nop add %r9, %r9 mov (%rsi), %r12d lea oracles, %rdx and $0xff, %r12 shlq $12, %r12 mov (%rdx,%r12,1), %r12 pop %rsi pop %rdx pop %r9 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
63.349206
2,999
0.663242
ea35837dedf7953c877e02efc5938ad236fa6281
615
asm
Assembly
programs/oeis/074/A074279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/074/A074279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/074/A074279.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A074279: n appears n^2 times. ; 1,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,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,6,6,6,6,6,6,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,7,7,7,7,7,7,7,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,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,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9 mov $1,1 lpb $0,1 sub $0,1 add $2,$1 add $1,1 add $2,$1 trn $0,$2 lpe
51.25
501
0.504065
dd19d8f0bbb70138713be519a7563be08d32aa52
215
asm
Assembly
lab1/x86/src/main.asm
wuzirui/CompilersLab
df1476da475ee1dd8e437f9ff7ab49404d291489
[ "MIT" ]
null
null
null
lab1/x86/src/main.asm
wuzirui/CompilersLab
df1476da475ee1dd8e437f9ff7ab49404d291489
[ "MIT" ]
null
null
null
lab1/x86/src/main.asm
wuzirui/CompilersLab
df1476da475ee1dd8e437f9ff7ab49404d291489
[ "MIT" ]
null
null
null
section .text global main main: mov eax,4 ;   4号调用 mov ebx,1 ;   ebx送1表示输出 mov ecx,msge ; 字符串的首地址送入ecx mov edx,14 ;  字符串的长度送入edx int 80h ;    输出字串 mov eax,1 ;   1号调用 int 80h ;    结束  msge: db "Hello world!",0ah,0dh
16.538462
27
0.669767
eac127ff598aff68874f23eedfa8b97146bc239e
137
asm
Assembly
simple.asm
mrForce/VarSPIM
3bd54a585f8caa7f4eda249c6b88995641ef46a2
[ "MIT" ]
null
null
null
simple.asm
mrForce/VarSPIM
3bd54a585f8caa7f4eda249c6b88995641ef46a2
[ "MIT" ]
null
null
null
simple.asm
mrForce/VarSPIM
3bd54a585f8caa7f4eda249c6b88995641ef46a2
[ "MIT" ]
null
null
null
hello: addi $t0, $t0, 3 j main bye: addi $t0, $t0, -3 j hello main: li $t0, 4 bgtz $t0, hello li $t0, 5 last: li $t1, -2 j bye
9.133333
18
0.547445
2b06c4689facc7ac876d6a748d5c0949bc55c10a
51,371
asm
Assembly
ls.asm
marioherrera19/sistema-operativo
ddac0dca54eef5a0992cbdacfcb27e44add4d9d0
[ "MIT-0" ]
null
null
null
ls.asm
marioherrera19/sistema-operativo
ddac0dca54eef5a0992cbdacfcb27e44add4d9d0
[ "MIT-0" ]
null
null
null
ls.asm
marioherrera19/sistema-operativo
ddac0dca54eef5a0992cbdacfcb27e44add4d9d0
[ "MIT-0" ]
null
null
null
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <fmtname>: #include "user.h" #include "fs.h" char* fmtname(char *path) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 53 push %ebx 4: 83 ec 24 sub $0x24,%esp static char buf[DIRSIZ+1]; char *p; // Find first character after last slash. for(p=path+strlen(path); p >= path && *p != '/'; p--) 7: 8b 45 08 mov 0x8(%ebp),%eax a: 89 04 24 mov %eax,(%esp) d: e8 dc 03 00 00 call 3ee <strlen> 12: 03 45 08 add 0x8(%ebp),%eax 15: 89 45 f4 mov %eax,-0xc(%ebp) 18: eb 04 jmp 1e <fmtname+0x1e> 1a: 83 6d f4 01 subl $0x1,-0xc(%ebp) 1e: 8b 45 f4 mov -0xc(%ebp),%eax 21: 3b 45 08 cmp 0x8(%ebp),%eax 24: 72 0a jb 30 <fmtname+0x30> 26: 8b 45 f4 mov -0xc(%ebp),%eax 29: 0f b6 00 movzbl (%eax),%eax 2c: 3c 2f cmp $0x2f,%al 2e: 75 ea jne 1a <fmtname+0x1a> ; p++; 30: 83 45 f4 01 addl $0x1,-0xc(%ebp) // Return blank-padded name. if(strlen(p) >= DIRSIZ) 34: 8b 45 f4 mov -0xc(%ebp),%eax 37: 89 04 24 mov %eax,(%esp) 3a: e8 af 03 00 00 call 3ee <strlen> 3f: 83 f8 0d cmp $0xd,%eax 42: 76 05 jbe 49 <fmtname+0x49> return p; 44: 8b 45 f4 mov -0xc(%ebp),%eax 47: eb 5f jmp a8 <fmtname+0xa8> memmove(buf, p, strlen(p)); 49: 8b 45 f4 mov -0xc(%ebp),%eax 4c: 89 04 24 mov %eax,(%esp) 4f: e8 9a 03 00 00 call 3ee <strlen> 54: 89 44 24 08 mov %eax,0x8(%esp) 58: 8b 45 f4 mov -0xc(%ebp),%eax 5b: 89 44 24 04 mov %eax,0x4(%esp) 5f: c7 04 24 f8 0d 00 00 movl $0xdf8,(%esp) 66: e8 07 05 00 00 call 572 <memmove> memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); 6b: 8b 45 f4 mov -0xc(%ebp),%eax 6e: 89 04 24 mov %eax,(%esp) 71: e8 78 03 00 00 call 3ee <strlen> 76: ba 0e 00 00 00 mov $0xe,%edx 7b: 89 d3 mov %edx,%ebx 7d: 29 c3 sub %eax,%ebx 7f: 8b 45 f4 mov -0xc(%ebp),%eax 82: 89 04 24 mov %eax,(%esp) 85: e8 64 03 00 00 call 3ee <strlen> 8a: 05 f8 0d 00 00 add $0xdf8,%eax 8f: 89 5c 24 08 mov %ebx,0x8(%esp) 93: c7 44 24 04 20 00 00 movl $0x20,0x4(%esp) 9a: 00 9b: 89 04 24 mov %eax,(%esp) 9e: e8 70 03 00 00 call 413 <memset> return buf; a3: b8 f8 0d 00 00 mov $0xdf8,%eax } a8: 83 c4 24 add $0x24,%esp ab: 5b pop %ebx ac: 5d pop %ebp ad: c3 ret 000000ae <ls>: void ls(char *path) { ae: 55 push %ebp af: 89 e5 mov %esp,%ebp b1: 57 push %edi b2: 56 push %esi b3: 53 push %ebx b4: 81 ec 5c 02 00 00 sub $0x25c,%esp char buf[512], *p; int fd; struct dirent de; struct stat st; if((fd = open(path, 0)) < 0){ ba: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) c1: 00 c2: 8b 45 08 mov 0x8(%ebp),%eax c5: 89 04 24 mov %eax,(%esp) c8: e8 2b 05 00 00 call 5f8 <open> cd: 89 45 e4 mov %eax,-0x1c(%ebp) d0: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) d4: 79 20 jns f6 <ls+0x48> printf(2, "ls: cannot open %s\n", path); d6: 8b 45 08 mov 0x8(%ebp),%eax d9: 89 44 24 08 mov %eax,0x8(%esp) dd: c7 44 24 04 03 0b 00 movl $0xb03,0x4(%esp) e4: 00 e5: c7 04 24 02 00 00 00 movl $0x2,(%esp) ec: e8 4e 06 00 00 call 73f <printf> return; f1: e9 01 02 00 00 jmp 2f7 <ls+0x249> } if(fstat(fd, &st) < 0){ f6: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax fc: 89 44 24 04 mov %eax,0x4(%esp) 100: 8b 45 e4 mov -0x1c(%ebp),%eax 103: 89 04 24 mov %eax,(%esp) 106: e8 05 05 00 00 call 610 <fstat> 10b: 85 c0 test %eax,%eax 10d: 79 2b jns 13a <ls+0x8c> printf(2, "ls: cannot stat %s\n", path); 10f: 8b 45 08 mov 0x8(%ebp),%eax 112: 89 44 24 08 mov %eax,0x8(%esp) 116: c7 44 24 04 17 0b 00 movl $0xb17,0x4(%esp) 11d: 00 11e: c7 04 24 02 00 00 00 movl $0x2,(%esp) 125: e8 15 06 00 00 call 73f <printf> close(fd); 12a: 8b 45 e4 mov -0x1c(%ebp),%eax 12d: 89 04 24 mov %eax,(%esp) 130: e8 ab 04 00 00 call 5e0 <close> return; 135: e9 bd 01 00 00 jmp 2f7 <ls+0x249> } switch(st.type){ 13a: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 141: 98 cwtl 142: 83 f8 01 cmp $0x1,%eax 145: 74 53 je 19a <ls+0xec> 147: 83 f8 02 cmp $0x2,%eax 14a: 0f 85 9c 01 00 00 jne 2ec <ls+0x23e> case T_FILE: printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); 150: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 156: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 15c: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 163: 0f bf d8 movswl %ax,%ebx 166: 8b 45 08 mov 0x8(%ebp),%eax 169: 89 04 24 mov %eax,(%esp) 16c: e8 8f fe ff ff call 0 <fmtname> 171: 89 7c 24 14 mov %edi,0x14(%esp) 175: 89 74 24 10 mov %esi,0x10(%esp) 179: 89 5c 24 0c mov %ebx,0xc(%esp) 17d: 89 44 24 08 mov %eax,0x8(%esp) 181: c7 44 24 04 2b 0b 00 movl $0xb2b,0x4(%esp) 188: 00 189: c7 04 24 01 00 00 00 movl $0x1,(%esp) 190: e8 aa 05 00 00 call 73f <printf> break; 195: e9 52 01 00 00 jmp 2ec <ls+0x23e> case T_DIR: if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 19a: 8b 45 08 mov 0x8(%ebp),%eax 19d: 89 04 24 mov %eax,(%esp) 1a0: e8 49 02 00 00 call 3ee <strlen> 1a5: 83 c0 10 add $0x10,%eax 1a8: 3d 00 02 00 00 cmp $0x200,%eax 1ad: 76 19 jbe 1c8 <ls+0x11a> printf(1, "ls: path too long\n"); 1af: c7 44 24 04 38 0b 00 movl $0xb38,0x4(%esp) 1b6: 00 1b7: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1be: e8 7c 05 00 00 call 73f <printf> break; 1c3: e9 24 01 00 00 jmp 2ec <ls+0x23e> } strcpy(buf, path); 1c8: 8b 45 08 mov 0x8(%ebp),%eax 1cb: 89 44 24 04 mov %eax,0x4(%esp) 1cf: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1d5: 89 04 24 mov %eax,(%esp) 1d8: e8 9c 01 00 00 call 379 <strcpy> p = buf+strlen(buf); 1dd: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1e3: 89 04 24 mov %eax,(%esp) 1e6: e8 03 02 00 00 call 3ee <strlen> 1eb: 8d 95 e0 fd ff ff lea -0x220(%ebp),%edx 1f1: 01 d0 add %edx,%eax 1f3: 89 45 e0 mov %eax,-0x20(%ebp) *p++ = '/'; 1f6: 8b 45 e0 mov -0x20(%ebp),%eax 1f9: c6 00 2f movb $0x2f,(%eax) 1fc: 83 45 e0 01 addl $0x1,-0x20(%ebp) while(read(fd, &de, sizeof(de)) == sizeof(de)){ 200: e9 c0 00 00 00 jmp 2c5 <ls+0x217> if(de.inum == 0) 205: 0f b7 85 d0 fd ff ff movzwl -0x230(%ebp),%eax 20c: 66 85 c0 test %ax,%ax 20f: 0f 84 af 00 00 00 je 2c4 <ls+0x216> continue; memmove(p, de.name, DIRSIZ); 215: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp) 21c: 00 21d: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 223: 83 c0 02 add $0x2,%eax 226: 89 44 24 04 mov %eax,0x4(%esp) 22a: 8b 45 e0 mov -0x20(%ebp),%eax 22d: 89 04 24 mov %eax,(%esp) 230: e8 3d 03 00 00 call 572 <memmove> p[DIRSIZ] = 0; 235: 8b 45 e0 mov -0x20(%ebp),%eax 238: 83 c0 0e add $0xe,%eax 23b: c6 00 00 movb $0x0,(%eax) if(stat(buf, &st) < 0){ 23e: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax 244: 89 44 24 04 mov %eax,0x4(%esp) 248: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 24e: 89 04 24 mov %eax,(%esp) 251: e8 83 02 00 00 call 4d9 <stat> 256: 85 c0 test %eax,%eax 258: 79 20 jns 27a <ls+0x1cc> printf(1, "ls: cannot stat %s\n", buf); 25a: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 260: 89 44 24 08 mov %eax,0x8(%esp) 264: c7 44 24 04 17 0b 00 movl $0xb17,0x4(%esp) 26b: 00 26c: c7 04 24 01 00 00 00 movl $0x1,(%esp) 273: e8 c7 04 00 00 call 73f <printf> continue; 278: eb 4b jmp 2c5 <ls+0x217> } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); 27a: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 280: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 286: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 28d: 0f bf d8 movswl %ax,%ebx 290: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 296: 89 04 24 mov %eax,(%esp) 299: e8 62 fd ff ff call 0 <fmtname> 29e: 89 7c 24 14 mov %edi,0x14(%esp) 2a2: 89 74 24 10 mov %esi,0x10(%esp) 2a6: 89 5c 24 0c mov %ebx,0xc(%esp) 2aa: 89 44 24 08 mov %eax,0x8(%esp) 2ae: c7 44 24 04 2b 0b 00 movl $0xb2b,0x4(%esp) 2b5: 00 2b6: c7 04 24 01 00 00 00 movl $0x1,(%esp) 2bd: e8 7d 04 00 00 call 73f <printf> 2c2: eb 01 jmp 2c5 <ls+0x217> strcpy(buf, path); p = buf+strlen(buf); *p++ = '/'; while(read(fd, &de, sizeof(de)) == sizeof(de)){ if(de.inum == 0) continue; 2c4: 90 nop break; } strcpy(buf, path); p = buf+strlen(buf); *p++ = '/'; while(read(fd, &de, sizeof(de)) == sizeof(de)){ 2c5: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 2cc: 00 2cd: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 2d3: 89 44 24 04 mov %eax,0x4(%esp) 2d7: 8b 45 e4 mov -0x1c(%ebp),%eax 2da: 89 04 24 mov %eax,(%esp) 2dd: e8 ee 02 00 00 call 5d0 <read> 2e2: 83 f8 10 cmp $0x10,%eax 2e5: 0f 84 1a ff ff ff je 205 <ls+0x157> printf(1, "ls: cannot stat %s\n", buf); continue; } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); } break; 2eb: 90 nop } close(fd); 2ec: 8b 45 e4 mov -0x1c(%ebp),%eax 2ef: 89 04 24 mov %eax,(%esp) 2f2: e8 e9 02 00 00 call 5e0 <close> } 2f7: 81 c4 5c 02 00 00 add $0x25c,%esp 2fd: 5b pop %ebx 2fe: 5e pop %esi 2ff: 5f pop %edi 300: 5d pop %ebp 301: c3 ret 00000302 <main>: int main(int argc, char *argv[]) { 302: 55 push %ebp 303: 89 e5 mov %esp,%ebp 305: 83 e4 f0 and $0xfffffff0,%esp 308: 83 ec 20 sub $0x20,%esp int i; if(argc < 2){ 30b: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 30f: 7f 11 jg 322 <main+0x20> ls("."); 311: c7 04 24 4b 0b 00 00 movl $0xb4b,(%esp) 318: e8 91 fd ff ff call ae <ls> exit(); 31d: e8 96 02 00 00 call 5b8 <exit> } for(i=1; i<argc; i++) 322: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 329: 00 32a: eb 19 jmp 345 <main+0x43> ls(argv[i]); 32c: 8b 44 24 1c mov 0x1c(%esp),%eax 330: c1 e0 02 shl $0x2,%eax 333: 03 45 0c add 0xc(%ebp),%eax 336: 8b 00 mov (%eax),%eax 338: 89 04 24 mov %eax,(%esp) 33b: e8 6e fd ff ff call ae <ls> if(argc < 2){ ls("."); exit(); } for(i=1; i<argc; i++) 340: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 345: 8b 44 24 1c mov 0x1c(%esp),%eax 349: 3b 45 08 cmp 0x8(%ebp),%eax 34c: 7c de jl 32c <main+0x2a> ls(argv[i]); exit(); 34e: e8 65 02 00 00 call 5b8 <exit> 353: 90 nop 00000354 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 354: 55 push %ebp 355: 89 e5 mov %esp,%ebp 357: 57 push %edi 358: 53 push %ebx asm volatile("cld; rep stosb" : 359: 8b 4d 08 mov 0x8(%ebp),%ecx 35c: 8b 55 10 mov 0x10(%ebp),%edx 35f: 8b 45 0c mov 0xc(%ebp),%eax 362: 89 cb mov %ecx,%ebx 364: 89 df mov %ebx,%edi 366: 89 d1 mov %edx,%ecx 368: fc cld 369: f3 aa rep stos %al,%es:(%edi) 36b: 89 ca mov %ecx,%edx 36d: 89 fb mov %edi,%ebx 36f: 89 5d 08 mov %ebx,0x8(%ebp) 372: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 375: 5b pop %ebx 376: 5f pop %edi 377: 5d pop %ebp 378: c3 ret 00000379 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 379: 55 push %ebp 37a: 89 e5 mov %esp,%ebp 37c: 83 ec 10 sub $0x10,%esp char *os; os = s; 37f: 8b 45 08 mov 0x8(%ebp),%eax 382: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 385: 90 nop 386: 8b 45 0c mov 0xc(%ebp),%eax 389: 0f b6 10 movzbl (%eax),%edx 38c: 8b 45 08 mov 0x8(%ebp),%eax 38f: 88 10 mov %dl,(%eax) 391: 8b 45 08 mov 0x8(%ebp),%eax 394: 0f b6 00 movzbl (%eax),%eax 397: 84 c0 test %al,%al 399: 0f 95 c0 setne %al 39c: 83 45 08 01 addl $0x1,0x8(%ebp) 3a0: 83 45 0c 01 addl $0x1,0xc(%ebp) 3a4: 84 c0 test %al,%al 3a6: 75 de jne 386 <strcpy+0xd> ; return os; 3a8: 8b 45 fc mov -0x4(%ebp),%eax } 3ab: c9 leave 3ac: c3 ret 000003ad <strcmp>: int strcmp(const char *p, const char *q) { 3ad: 55 push %ebp 3ae: 89 e5 mov %esp,%ebp while(*p && *p == *q) 3b0: eb 08 jmp 3ba <strcmp+0xd> p++, q++; 3b2: 83 45 08 01 addl $0x1,0x8(%ebp) 3b6: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 3ba: 8b 45 08 mov 0x8(%ebp),%eax 3bd: 0f b6 00 movzbl (%eax),%eax 3c0: 84 c0 test %al,%al 3c2: 74 10 je 3d4 <strcmp+0x27> 3c4: 8b 45 08 mov 0x8(%ebp),%eax 3c7: 0f b6 10 movzbl (%eax),%edx 3ca: 8b 45 0c mov 0xc(%ebp),%eax 3cd: 0f b6 00 movzbl (%eax),%eax 3d0: 38 c2 cmp %al,%dl 3d2: 74 de je 3b2 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 3d4: 8b 45 08 mov 0x8(%ebp),%eax 3d7: 0f b6 00 movzbl (%eax),%eax 3da: 0f b6 d0 movzbl %al,%edx 3dd: 8b 45 0c mov 0xc(%ebp),%eax 3e0: 0f b6 00 movzbl (%eax),%eax 3e3: 0f b6 c0 movzbl %al,%eax 3e6: 89 d1 mov %edx,%ecx 3e8: 29 c1 sub %eax,%ecx 3ea: 89 c8 mov %ecx,%eax } 3ec: 5d pop %ebp 3ed: c3 ret 000003ee <strlen>: uint strlen(char *s) { 3ee: 55 push %ebp 3ef: 89 e5 mov %esp,%ebp 3f1: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 3f4: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 3fb: eb 04 jmp 401 <strlen+0x13> 3fd: 83 45 fc 01 addl $0x1,-0x4(%ebp) 401: 8b 45 fc mov -0x4(%ebp),%eax 404: 03 45 08 add 0x8(%ebp),%eax 407: 0f b6 00 movzbl (%eax),%eax 40a: 84 c0 test %al,%al 40c: 75 ef jne 3fd <strlen+0xf> ; return n; 40e: 8b 45 fc mov -0x4(%ebp),%eax } 411: c9 leave 412: c3 ret 00000413 <memset>: void* memset(void *dst, int c, uint n) { 413: 55 push %ebp 414: 89 e5 mov %esp,%ebp 416: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 419: 8b 45 10 mov 0x10(%ebp),%eax 41c: 89 44 24 08 mov %eax,0x8(%esp) 420: 8b 45 0c mov 0xc(%ebp),%eax 423: 89 44 24 04 mov %eax,0x4(%esp) 427: 8b 45 08 mov 0x8(%ebp),%eax 42a: 89 04 24 mov %eax,(%esp) 42d: e8 22 ff ff ff call 354 <stosb> return dst; 432: 8b 45 08 mov 0x8(%ebp),%eax } 435: c9 leave 436: c3 ret 00000437 <strchr>: char* strchr(const char *s, char c) { 437: 55 push %ebp 438: 89 e5 mov %esp,%ebp 43a: 83 ec 04 sub $0x4,%esp 43d: 8b 45 0c mov 0xc(%ebp),%eax 440: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 443: eb 14 jmp 459 <strchr+0x22> if(*s == c) 445: 8b 45 08 mov 0x8(%ebp),%eax 448: 0f b6 00 movzbl (%eax),%eax 44b: 3a 45 fc cmp -0x4(%ebp),%al 44e: 75 05 jne 455 <strchr+0x1e> return (char*)s; 450: 8b 45 08 mov 0x8(%ebp),%eax 453: eb 13 jmp 468 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 455: 83 45 08 01 addl $0x1,0x8(%ebp) 459: 8b 45 08 mov 0x8(%ebp),%eax 45c: 0f b6 00 movzbl (%eax),%eax 45f: 84 c0 test %al,%al 461: 75 e2 jne 445 <strchr+0xe> if(*s == c) return (char*)s; return 0; 463: b8 00 00 00 00 mov $0x0,%eax } 468: c9 leave 469: c3 ret 0000046a <gets>: char* gets(char *buf, int max) { 46a: 55 push %ebp 46b: 89 e5 mov %esp,%ebp 46d: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 470: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 477: eb 44 jmp 4bd <gets+0x53> cc = read(0, &c, 1); 479: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 480: 00 481: 8d 45 ef lea -0x11(%ebp),%eax 484: 89 44 24 04 mov %eax,0x4(%esp) 488: c7 04 24 00 00 00 00 movl $0x0,(%esp) 48f: e8 3c 01 00 00 call 5d0 <read> 494: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 497: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 49b: 7e 2d jle 4ca <gets+0x60> break; buf[i++] = c; 49d: 8b 45 f4 mov -0xc(%ebp),%eax 4a0: 03 45 08 add 0x8(%ebp),%eax 4a3: 0f b6 55 ef movzbl -0x11(%ebp),%edx 4a7: 88 10 mov %dl,(%eax) 4a9: 83 45 f4 01 addl $0x1,-0xc(%ebp) if(c == '\n' || c == '\r') 4ad: 0f b6 45 ef movzbl -0x11(%ebp),%eax 4b1: 3c 0a cmp $0xa,%al 4b3: 74 16 je 4cb <gets+0x61> 4b5: 0f b6 45 ef movzbl -0x11(%ebp),%eax 4b9: 3c 0d cmp $0xd,%al 4bb: 74 0e je 4cb <gets+0x61> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 4bd: 8b 45 f4 mov -0xc(%ebp),%eax 4c0: 83 c0 01 add $0x1,%eax 4c3: 3b 45 0c cmp 0xc(%ebp),%eax 4c6: 7c b1 jl 479 <gets+0xf> 4c8: eb 01 jmp 4cb <gets+0x61> cc = read(0, &c, 1); if(cc < 1) break; 4ca: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 4cb: 8b 45 f4 mov -0xc(%ebp),%eax 4ce: 03 45 08 add 0x8(%ebp),%eax 4d1: c6 00 00 movb $0x0,(%eax) return buf; 4d4: 8b 45 08 mov 0x8(%ebp),%eax } 4d7: c9 leave 4d8: c3 ret 000004d9 <stat>: int stat(char *n, struct stat *st) { 4d9: 55 push %ebp 4da: 89 e5 mov %esp,%ebp 4dc: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 4df: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 4e6: 00 4e7: 8b 45 08 mov 0x8(%ebp),%eax 4ea: 89 04 24 mov %eax,(%esp) 4ed: e8 06 01 00 00 call 5f8 <open> 4f2: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 4f5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 4f9: 79 07 jns 502 <stat+0x29> return -1; 4fb: b8 ff ff ff ff mov $0xffffffff,%eax 500: eb 23 jmp 525 <stat+0x4c> r = fstat(fd, st); 502: 8b 45 0c mov 0xc(%ebp),%eax 505: 89 44 24 04 mov %eax,0x4(%esp) 509: 8b 45 f4 mov -0xc(%ebp),%eax 50c: 89 04 24 mov %eax,(%esp) 50f: e8 fc 00 00 00 call 610 <fstat> 514: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 517: 8b 45 f4 mov -0xc(%ebp),%eax 51a: 89 04 24 mov %eax,(%esp) 51d: e8 be 00 00 00 call 5e0 <close> return r; 522: 8b 45 f0 mov -0x10(%ebp),%eax } 525: c9 leave 526: c3 ret 00000527 <atoi>: int atoi(const char *s) { 527: 55 push %ebp 528: 89 e5 mov %esp,%ebp 52a: 83 ec 10 sub $0x10,%esp int n; n = 0; 52d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 534: eb 23 jmp 559 <atoi+0x32> n = n*10 + *s++ - '0'; 536: 8b 55 fc mov -0x4(%ebp),%edx 539: 89 d0 mov %edx,%eax 53b: c1 e0 02 shl $0x2,%eax 53e: 01 d0 add %edx,%eax 540: 01 c0 add %eax,%eax 542: 89 c2 mov %eax,%edx 544: 8b 45 08 mov 0x8(%ebp),%eax 547: 0f b6 00 movzbl (%eax),%eax 54a: 0f be c0 movsbl %al,%eax 54d: 01 d0 add %edx,%eax 54f: 83 e8 30 sub $0x30,%eax 552: 89 45 fc mov %eax,-0x4(%ebp) 555: 83 45 08 01 addl $0x1,0x8(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 559: 8b 45 08 mov 0x8(%ebp),%eax 55c: 0f b6 00 movzbl (%eax),%eax 55f: 3c 2f cmp $0x2f,%al 561: 7e 0a jle 56d <atoi+0x46> 563: 8b 45 08 mov 0x8(%ebp),%eax 566: 0f b6 00 movzbl (%eax),%eax 569: 3c 39 cmp $0x39,%al 56b: 7e c9 jle 536 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 56d: 8b 45 fc mov -0x4(%ebp),%eax } 570: c9 leave 571: c3 ret 00000572 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 572: 55 push %ebp 573: 89 e5 mov %esp,%ebp 575: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 578: 8b 45 08 mov 0x8(%ebp),%eax 57b: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 57e: 8b 45 0c mov 0xc(%ebp),%eax 581: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 584: eb 13 jmp 599 <memmove+0x27> *dst++ = *src++; 586: 8b 45 f8 mov -0x8(%ebp),%eax 589: 0f b6 10 movzbl (%eax),%edx 58c: 8b 45 fc mov -0x4(%ebp),%eax 58f: 88 10 mov %dl,(%eax) 591: 83 45 fc 01 addl $0x1,-0x4(%ebp) 595: 83 45 f8 01 addl $0x1,-0x8(%ebp) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 599: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 59d: 0f 9f c0 setg %al 5a0: 83 6d 10 01 subl $0x1,0x10(%ebp) 5a4: 84 c0 test %al,%al 5a6: 75 de jne 586 <memmove+0x14> *dst++ = *src++; return vdst; 5a8: 8b 45 08 mov 0x8(%ebp),%eax } 5ab: c9 leave 5ac: c3 ret 5ad: 90 nop 5ae: 90 nop 5af: 90 nop 000005b0 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 5b0: b8 01 00 00 00 mov $0x1,%eax 5b5: cd 40 int $0x40 5b7: c3 ret 000005b8 <exit>: SYSCALL(exit) 5b8: b8 02 00 00 00 mov $0x2,%eax 5bd: cd 40 int $0x40 5bf: c3 ret 000005c0 <wait>: SYSCALL(wait) 5c0: b8 03 00 00 00 mov $0x3,%eax 5c5: cd 40 int $0x40 5c7: c3 ret 000005c8 <pipe>: SYSCALL(pipe) 5c8: b8 04 00 00 00 mov $0x4,%eax 5cd: cd 40 int $0x40 5cf: c3 ret 000005d0 <read>: SYSCALL(read) 5d0: b8 05 00 00 00 mov $0x5,%eax 5d5: cd 40 int $0x40 5d7: c3 ret 000005d8 <write>: SYSCALL(write) 5d8: b8 12 00 00 00 mov $0x12,%eax 5dd: cd 40 int $0x40 5df: c3 ret 000005e0 <close>: SYSCALL(close) 5e0: b8 17 00 00 00 mov $0x17,%eax 5e5: cd 40 int $0x40 5e7: c3 ret 000005e8 <kill>: SYSCALL(kill) 5e8: b8 06 00 00 00 mov $0x6,%eax 5ed: cd 40 int $0x40 5ef: c3 ret 000005f0 <exec>: SYSCALL(exec) 5f0: b8 07 00 00 00 mov $0x7,%eax 5f5: cd 40 int $0x40 5f7: c3 ret 000005f8 <open>: SYSCALL(open) 5f8: b8 11 00 00 00 mov $0x11,%eax 5fd: cd 40 int $0x40 5ff: c3 ret 00000600 <mknod>: SYSCALL(mknod) 600: b8 13 00 00 00 mov $0x13,%eax 605: cd 40 int $0x40 607: c3 ret 00000608 <unlink>: SYSCALL(unlink) 608: b8 14 00 00 00 mov $0x14,%eax 60d: cd 40 int $0x40 60f: c3 ret 00000610 <fstat>: SYSCALL(fstat) 610: b8 08 00 00 00 mov $0x8,%eax 615: cd 40 int $0x40 617: c3 ret 00000618 <link>: SYSCALL(link) 618: b8 15 00 00 00 mov $0x15,%eax 61d: cd 40 int $0x40 61f: c3 ret 00000620 <mkdir>: SYSCALL(mkdir) 620: b8 16 00 00 00 mov $0x16,%eax 625: cd 40 int $0x40 627: c3 ret 00000628 <chdir>: SYSCALL(chdir) 628: b8 09 00 00 00 mov $0x9,%eax 62d: cd 40 int $0x40 62f: c3 ret 00000630 <dup>: SYSCALL(dup) 630: b8 0a 00 00 00 mov $0xa,%eax 635: cd 40 int $0x40 637: c3 ret 00000638 <getpid>: SYSCALL(getpid) 638: b8 0b 00 00 00 mov $0xb,%eax 63d: cd 40 int $0x40 63f: c3 ret 00000640 <sbrk>: SYSCALL(sbrk) 640: b8 0c 00 00 00 mov $0xc,%eax 645: cd 40 int $0x40 647: c3 ret 00000648 <sleep>: SYSCALL(sleep) 648: b8 0d 00 00 00 mov $0xd,%eax 64d: cd 40 int $0x40 64f: c3 ret 00000650 <uptime>: SYSCALL(uptime) 650: b8 0e 00 00 00 mov $0xe,%eax 655: cd 40 int $0x40 657: c3 ret 00000658 <procstat>: # Modificado declaramos una nueva llamada al sistema SYSCALL(procstat) 658: b8 0f 00 00 00 mov $0xf,%eax 65d: cd 40 int $0x40 65f: c3 ret 00000660 <set_priority>: # Modificado declaramos una nueva llamada al sistema SYSCALL(set_priority) 660: b8 10 00 00 00 mov $0x10,%eax 665: cd 40 int $0x40 667: c3 ret 00000668 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 668: 55 push %ebp 669: 89 e5 mov %esp,%ebp 66b: 83 ec 28 sub $0x28,%esp 66e: 8b 45 0c mov 0xc(%ebp),%eax 671: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 674: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 67b: 00 67c: 8d 45 f4 lea -0xc(%ebp),%eax 67f: 89 44 24 04 mov %eax,0x4(%esp) 683: 8b 45 08 mov 0x8(%ebp),%eax 686: 89 04 24 mov %eax,(%esp) 689: e8 4a ff ff ff call 5d8 <write> } 68e: c9 leave 68f: c3 ret 00000690 <printint>: static void printint(int fd, int xx, int base, int sgn) { 690: 55 push %ebp 691: 89 e5 mov %esp,%ebp 693: 83 ec 48 sub $0x48,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 696: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 69d: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 6a1: 74 17 je 6ba <printint+0x2a> 6a3: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 6a7: 79 11 jns 6ba <printint+0x2a> neg = 1; 6a9: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 6b0: 8b 45 0c mov 0xc(%ebp),%eax 6b3: f7 d8 neg %eax 6b5: 89 45 ec mov %eax,-0x14(%ebp) 6b8: eb 06 jmp 6c0 <printint+0x30> } else { x = xx; 6ba: 8b 45 0c mov 0xc(%ebp),%eax 6bd: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 6c0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 6c7: 8b 4d 10 mov 0x10(%ebp),%ecx 6ca: 8b 45 ec mov -0x14(%ebp),%eax 6cd: ba 00 00 00 00 mov $0x0,%edx 6d2: f7 f1 div %ecx 6d4: 89 d0 mov %edx,%eax 6d6: 0f b6 90 e4 0d 00 00 movzbl 0xde4(%eax),%edx 6dd: 8d 45 dc lea -0x24(%ebp),%eax 6e0: 03 45 f4 add -0xc(%ebp),%eax 6e3: 88 10 mov %dl,(%eax) 6e5: 83 45 f4 01 addl $0x1,-0xc(%ebp) }while((x /= base) != 0); 6e9: 8b 55 10 mov 0x10(%ebp),%edx 6ec: 89 55 d4 mov %edx,-0x2c(%ebp) 6ef: 8b 45 ec mov -0x14(%ebp),%eax 6f2: ba 00 00 00 00 mov $0x0,%edx 6f7: f7 75 d4 divl -0x2c(%ebp) 6fa: 89 45 ec mov %eax,-0x14(%ebp) 6fd: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 701: 75 c4 jne 6c7 <printint+0x37> if(neg) 703: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 707: 74 2a je 733 <printint+0xa3> buf[i++] = '-'; 709: 8d 45 dc lea -0x24(%ebp),%eax 70c: 03 45 f4 add -0xc(%ebp),%eax 70f: c6 00 2d movb $0x2d,(%eax) 712: 83 45 f4 01 addl $0x1,-0xc(%ebp) while(--i >= 0) 716: eb 1b jmp 733 <printint+0xa3> putc(fd, buf[i]); 718: 8d 45 dc lea -0x24(%ebp),%eax 71b: 03 45 f4 add -0xc(%ebp),%eax 71e: 0f b6 00 movzbl (%eax),%eax 721: 0f be c0 movsbl %al,%eax 724: 89 44 24 04 mov %eax,0x4(%esp) 728: 8b 45 08 mov 0x8(%ebp),%eax 72b: 89 04 24 mov %eax,(%esp) 72e: e8 35 ff ff ff call 668 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 733: 83 6d f4 01 subl $0x1,-0xc(%ebp) 737: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 73b: 79 db jns 718 <printint+0x88> putc(fd, buf[i]); } 73d: c9 leave 73e: c3 ret 0000073f <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 73f: 55 push %ebp 740: 89 e5 mov %esp,%ebp 742: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 745: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 74c: 8d 45 0c lea 0xc(%ebp),%eax 74f: 83 c0 04 add $0x4,%eax 752: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 755: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 75c: e9 7d 01 00 00 jmp 8de <printf+0x19f> c = fmt[i] & 0xff; 761: 8b 55 0c mov 0xc(%ebp),%edx 764: 8b 45 f0 mov -0x10(%ebp),%eax 767: 01 d0 add %edx,%eax 769: 0f b6 00 movzbl (%eax),%eax 76c: 0f be c0 movsbl %al,%eax 76f: 25 ff 00 00 00 and $0xff,%eax 774: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 777: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 77b: 75 2c jne 7a9 <printf+0x6a> if(c == '%'){ 77d: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 781: 75 0c jne 78f <printf+0x50> state = '%'; 783: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 78a: e9 4b 01 00 00 jmp 8da <printf+0x19b> } else { putc(fd, c); 78f: 8b 45 e4 mov -0x1c(%ebp),%eax 792: 0f be c0 movsbl %al,%eax 795: 89 44 24 04 mov %eax,0x4(%esp) 799: 8b 45 08 mov 0x8(%ebp),%eax 79c: 89 04 24 mov %eax,(%esp) 79f: e8 c4 fe ff ff call 668 <putc> 7a4: e9 31 01 00 00 jmp 8da <printf+0x19b> } } else if(state == '%'){ 7a9: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 7ad: 0f 85 27 01 00 00 jne 8da <printf+0x19b> if(c == 'd'){ 7b3: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 7b7: 75 2d jne 7e6 <printf+0xa7> printint(fd, *ap, 10, 1); 7b9: 8b 45 e8 mov -0x18(%ebp),%eax 7bc: 8b 00 mov (%eax),%eax 7be: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 7c5: 00 7c6: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 7cd: 00 7ce: 89 44 24 04 mov %eax,0x4(%esp) 7d2: 8b 45 08 mov 0x8(%ebp),%eax 7d5: 89 04 24 mov %eax,(%esp) 7d8: e8 b3 fe ff ff call 690 <printint> ap++; 7dd: 83 45 e8 04 addl $0x4,-0x18(%ebp) 7e1: e9 ed 00 00 00 jmp 8d3 <printf+0x194> } else if(c == 'x' || c == 'p'){ 7e6: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 7ea: 74 06 je 7f2 <printf+0xb3> 7ec: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 7f0: 75 2d jne 81f <printf+0xe0> printint(fd, *ap, 16, 0); 7f2: 8b 45 e8 mov -0x18(%ebp),%eax 7f5: 8b 00 mov (%eax),%eax 7f7: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 7fe: 00 7ff: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 806: 00 807: 89 44 24 04 mov %eax,0x4(%esp) 80b: 8b 45 08 mov 0x8(%ebp),%eax 80e: 89 04 24 mov %eax,(%esp) 811: e8 7a fe ff ff call 690 <printint> ap++; 816: 83 45 e8 04 addl $0x4,-0x18(%ebp) 81a: e9 b4 00 00 00 jmp 8d3 <printf+0x194> } else if(c == 's'){ 81f: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 823: 75 46 jne 86b <printf+0x12c> s = (char*)*ap; 825: 8b 45 e8 mov -0x18(%ebp),%eax 828: 8b 00 mov (%eax),%eax 82a: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 82d: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 831: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 835: 75 27 jne 85e <printf+0x11f> s = "(null)"; 837: c7 45 f4 4d 0b 00 00 movl $0xb4d,-0xc(%ebp) while(*s != 0){ 83e: eb 1e jmp 85e <printf+0x11f> putc(fd, *s); 840: 8b 45 f4 mov -0xc(%ebp),%eax 843: 0f b6 00 movzbl (%eax),%eax 846: 0f be c0 movsbl %al,%eax 849: 89 44 24 04 mov %eax,0x4(%esp) 84d: 8b 45 08 mov 0x8(%ebp),%eax 850: 89 04 24 mov %eax,(%esp) 853: e8 10 fe ff ff call 668 <putc> s++; 858: 83 45 f4 01 addl $0x1,-0xc(%ebp) 85c: eb 01 jmp 85f <printf+0x120> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 85e: 90 nop 85f: 8b 45 f4 mov -0xc(%ebp),%eax 862: 0f b6 00 movzbl (%eax),%eax 865: 84 c0 test %al,%al 867: 75 d7 jne 840 <printf+0x101> 869: eb 68 jmp 8d3 <printf+0x194> putc(fd, *s); s++; } } else if(c == 'c'){ 86b: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 86f: 75 1d jne 88e <printf+0x14f> putc(fd, *ap); 871: 8b 45 e8 mov -0x18(%ebp),%eax 874: 8b 00 mov (%eax),%eax 876: 0f be c0 movsbl %al,%eax 879: 89 44 24 04 mov %eax,0x4(%esp) 87d: 8b 45 08 mov 0x8(%ebp),%eax 880: 89 04 24 mov %eax,(%esp) 883: e8 e0 fd ff ff call 668 <putc> ap++; 888: 83 45 e8 04 addl $0x4,-0x18(%ebp) 88c: eb 45 jmp 8d3 <printf+0x194> } else if(c == '%'){ 88e: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 892: 75 17 jne 8ab <printf+0x16c> putc(fd, c); 894: 8b 45 e4 mov -0x1c(%ebp),%eax 897: 0f be c0 movsbl %al,%eax 89a: 89 44 24 04 mov %eax,0x4(%esp) 89e: 8b 45 08 mov 0x8(%ebp),%eax 8a1: 89 04 24 mov %eax,(%esp) 8a4: e8 bf fd ff ff call 668 <putc> 8a9: eb 28 jmp 8d3 <printf+0x194> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 8ab: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 8b2: 00 8b3: 8b 45 08 mov 0x8(%ebp),%eax 8b6: 89 04 24 mov %eax,(%esp) 8b9: e8 aa fd ff ff call 668 <putc> putc(fd, c); 8be: 8b 45 e4 mov -0x1c(%ebp),%eax 8c1: 0f be c0 movsbl %al,%eax 8c4: 89 44 24 04 mov %eax,0x4(%esp) 8c8: 8b 45 08 mov 0x8(%ebp),%eax 8cb: 89 04 24 mov %eax,(%esp) 8ce: e8 95 fd ff ff call 668 <putc> } state = 0; 8d3: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 8da: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8de: 8b 55 0c mov 0xc(%ebp),%edx 8e1: 8b 45 f0 mov -0x10(%ebp),%eax 8e4: 01 d0 add %edx,%eax 8e6: 0f b6 00 movzbl (%eax),%eax 8e9: 84 c0 test %al,%al 8eb: 0f 85 70 fe ff ff jne 761 <printf+0x22> putc(fd, c); } state = 0; } } } 8f1: c9 leave 8f2: c3 ret 8f3: 90 nop 000008f4 <free>: static Header base; static Header *freep; void free(void *ap) { 8f4: 55 push %ebp 8f5: 89 e5 mov %esp,%ebp 8f7: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 8fa: 8b 45 08 mov 0x8(%ebp),%eax 8fd: 83 e8 08 sub $0x8,%eax 900: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 903: a1 10 0e 00 00 mov 0xe10,%eax 908: 89 45 fc mov %eax,-0x4(%ebp) 90b: eb 24 jmp 931 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 90d: 8b 45 fc mov -0x4(%ebp),%eax 910: 8b 00 mov (%eax),%eax 912: 3b 45 fc cmp -0x4(%ebp),%eax 915: 77 12 ja 929 <free+0x35> 917: 8b 45 f8 mov -0x8(%ebp),%eax 91a: 3b 45 fc cmp -0x4(%ebp),%eax 91d: 77 24 ja 943 <free+0x4f> 91f: 8b 45 fc mov -0x4(%ebp),%eax 922: 8b 00 mov (%eax),%eax 924: 3b 45 f8 cmp -0x8(%ebp),%eax 927: 77 1a ja 943 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 929: 8b 45 fc mov -0x4(%ebp),%eax 92c: 8b 00 mov (%eax),%eax 92e: 89 45 fc mov %eax,-0x4(%ebp) 931: 8b 45 f8 mov -0x8(%ebp),%eax 934: 3b 45 fc cmp -0x4(%ebp),%eax 937: 76 d4 jbe 90d <free+0x19> 939: 8b 45 fc mov -0x4(%ebp),%eax 93c: 8b 00 mov (%eax),%eax 93e: 3b 45 f8 cmp -0x8(%ebp),%eax 941: 76 ca jbe 90d <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 943: 8b 45 f8 mov -0x8(%ebp),%eax 946: 8b 40 04 mov 0x4(%eax),%eax 949: c1 e0 03 shl $0x3,%eax 94c: 89 c2 mov %eax,%edx 94e: 03 55 f8 add -0x8(%ebp),%edx 951: 8b 45 fc mov -0x4(%ebp),%eax 954: 8b 00 mov (%eax),%eax 956: 39 c2 cmp %eax,%edx 958: 75 24 jne 97e <free+0x8a> bp->s.size += p->s.ptr->s.size; 95a: 8b 45 f8 mov -0x8(%ebp),%eax 95d: 8b 50 04 mov 0x4(%eax),%edx 960: 8b 45 fc mov -0x4(%ebp),%eax 963: 8b 00 mov (%eax),%eax 965: 8b 40 04 mov 0x4(%eax),%eax 968: 01 c2 add %eax,%edx 96a: 8b 45 f8 mov -0x8(%ebp),%eax 96d: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 970: 8b 45 fc mov -0x4(%ebp),%eax 973: 8b 00 mov (%eax),%eax 975: 8b 10 mov (%eax),%edx 977: 8b 45 f8 mov -0x8(%ebp),%eax 97a: 89 10 mov %edx,(%eax) 97c: eb 0a jmp 988 <free+0x94> } else bp->s.ptr = p->s.ptr; 97e: 8b 45 fc mov -0x4(%ebp),%eax 981: 8b 10 mov (%eax),%edx 983: 8b 45 f8 mov -0x8(%ebp),%eax 986: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 988: 8b 45 fc mov -0x4(%ebp),%eax 98b: 8b 40 04 mov 0x4(%eax),%eax 98e: c1 e0 03 shl $0x3,%eax 991: 03 45 fc add -0x4(%ebp),%eax 994: 3b 45 f8 cmp -0x8(%ebp),%eax 997: 75 20 jne 9b9 <free+0xc5> p->s.size += bp->s.size; 999: 8b 45 fc mov -0x4(%ebp),%eax 99c: 8b 50 04 mov 0x4(%eax),%edx 99f: 8b 45 f8 mov -0x8(%ebp),%eax 9a2: 8b 40 04 mov 0x4(%eax),%eax 9a5: 01 c2 add %eax,%edx 9a7: 8b 45 fc mov -0x4(%ebp),%eax 9aa: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 9ad: 8b 45 f8 mov -0x8(%ebp),%eax 9b0: 8b 10 mov (%eax),%edx 9b2: 8b 45 fc mov -0x4(%ebp),%eax 9b5: 89 10 mov %edx,(%eax) 9b7: eb 08 jmp 9c1 <free+0xcd> } else p->s.ptr = bp; 9b9: 8b 45 fc mov -0x4(%ebp),%eax 9bc: 8b 55 f8 mov -0x8(%ebp),%edx 9bf: 89 10 mov %edx,(%eax) freep = p; 9c1: 8b 45 fc mov -0x4(%ebp),%eax 9c4: a3 10 0e 00 00 mov %eax,0xe10 } 9c9: c9 leave 9ca: c3 ret 000009cb <morecore>: static Header* morecore(uint nu) { 9cb: 55 push %ebp 9cc: 89 e5 mov %esp,%ebp 9ce: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 9d1: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 9d8: 77 07 ja 9e1 <morecore+0x16> nu = 4096; 9da: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 9e1: 8b 45 08 mov 0x8(%ebp),%eax 9e4: c1 e0 03 shl $0x3,%eax 9e7: 89 04 24 mov %eax,(%esp) 9ea: e8 51 fc ff ff call 640 <sbrk> 9ef: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 9f2: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 9f6: 75 07 jne 9ff <morecore+0x34> return 0; 9f8: b8 00 00 00 00 mov $0x0,%eax 9fd: eb 22 jmp a21 <morecore+0x56> hp = (Header*)p; 9ff: 8b 45 f4 mov -0xc(%ebp),%eax a02: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; a05: 8b 45 f0 mov -0x10(%ebp),%eax a08: 8b 55 08 mov 0x8(%ebp),%edx a0b: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); a0e: 8b 45 f0 mov -0x10(%ebp),%eax a11: 83 c0 08 add $0x8,%eax a14: 89 04 24 mov %eax,(%esp) a17: e8 d8 fe ff ff call 8f4 <free> return freep; a1c: a1 10 0e 00 00 mov 0xe10,%eax } a21: c9 leave a22: c3 ret 00000a23 <malloc>: void* malloc(uint nbytes) { a23: 55 push %ebp a24: 89 e5 mov %esp,%ebp a26: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; a29: 8b 45 08 mov 0x8(%ebp),%eax a2c: 83 c0 07 add $0x7,%eax a2f: c1 e8 03 shr $0x3,%eax a32: 83 c0 01 add $0x1,%eax a35: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ a38: a1 10 0e 00 00 mov 0xe10,%eax a3d: 89 45 f0 mov %eax,-0x10(%ebp) a40: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) a44: 75 23 jne a69 <malloc+0x46> base.s.ptr = freep = prevp = &base; a46: c7 45 f0 08 0e 00 00 movl $0xe08,-0x10(%ebp) a4d: 8b 45 f0 mov -0x10(%ebp),%eax a50: a3 10 0e 00 00 mov %eax,0xe10 a55: a1 10 0e 00 00 mov 0xe10,%eax a5a: a3 08 0e 00 00 mov %eax,0xe08 base.s.size = 0; a5f: c7 05 0c 0e 00 00 00 movl $0x0,0xe0c a66: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ a69: 8b 45 f0 mov -0x10(%ebp),%eax a6c: 8b 00 mov (%eax),%eax a6e: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ a71: 8b 45 f4 mov -0xc(%ebp),%eax a74: 8b 40 04 mov 0x4(%eax),%eax a77: 3b 45 ec cmp -0x14(%ebp),%eax a7a: 72 4d jb ac9 <malloc+0xa6> if(p->s.size == nunits) a7c: 8b 45 f4 mov -0xc(%ebp),%eax a7f: 8b 40 04 mov 0x4(%eax),%eax a82: 3b 45 ec cmp -0x14(%ebp),%eax a85: 75 0c jne a93 <malloc+0x70> prevp->s.ptr = p->s.ptr; a87: 8b 45 f4 mov -0xc(%ebp),%eax a8a: 8b 10 mov (%eax),%edx a8c: 8b 45 f0 mov -0x10(%ebp),%eax a8f: 89 10 mov %edx,(%eax) a91: eb 26 jmp ab9 <malloc+0x96> else { p->s.size -= nunits; a93: 8b 45 f4 mov -0xc(%ebp),%eax a96: 8b 40 04 mov 0x4(%eax),%eax a99: 89 c2 mov %eax,%edx a9b: 2b 55 ec sub -0x14(%ebp),%edx a9e: 8b 45 f4 mov -0xc(%ebp),%eax aa1: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; aa4: 8b 45 f4 mov -0xc(%ebp),%eax aa7: 8b 40 04 mov 0x4(%eax),%eax aaa: c1 e0 03 shl $0x3,%eax aad: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; ab0: 8b 45 f4 mov -0xc(%ebp),%eax ab3: 8b 55 ec mov -0x14(%ebp),%edx ab6: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; ab9: 8b 45 f0 mov -0x10(%ebp),%eax abc: a3 10 0e 00 00 mov %eax,0xe10 return (void*)(p + 1); ac1: 8b 45 f4 mov -0xc(%ebp),%eax ac4: 83 c0 08 add $0x8,%eax ac7: eb 38 jmp b01 <malloc+0xde> } if(p == freep) ac9: a1 10 0e 00 00 mov 0xe10,%eax ace: 39 45 f4 cmp %eax,-0xc(%ebp) ad1: 75 1b jne aee <malloc+0xcb> if((p = morecore(nunits)) == 0) ad3: 8b 45 ec mov -0x14(%ebp),%eax ad6: 89 04 24 mov %eax,(%esp) ad9: e8 ed fe ff ff call 9cb <morecore> ade: 89 45 f4 mov %eax,-0xc(%ebp) ae1: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) ae5: 75 07 jne aee <malloc+0xcb> return 0; ae7: b8 00 00 00 00 mov $0x0,%eax aec: eb 13 jmp b01 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ aee: 8b 45 f4 mov -0xc(%ebp),%eax af1: 89 45 f0 mov %eax,-0x10(%ebp) af4: 8b 45 f4 mov -0xc(%ebp),%eax af7: 8b 00 mov (%eax),%eax af9: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } afc: e9 70 ff ff ff jmp a71 <malloc+0x4e> } b01: c9 leave b02: c3 ret
34.710135
73
0.436375
53767e07bc75adecd6835bead09fc4327e806beb
226
asm
Assembly
ch02/2_power_4.asm
zzb610/asm-learn
d8a603347d608eb448dd605941376d6b763ee917
[ "MIT" ]
null
null
null
ch02/2_power_4.asm
zzb610/asm-learn
d8a603347d608eb448dd605941376d6b763ee917
[ "MIT" ]
null
null
null
ch02/2_power_4.asm
zzb610/asm-learn
d8a603347d608eb448dd605941376d6b763ee917
[ "MIT" ]
null
null
null
data SEGMENT hello DB 'Hello World!$' ;注意要以$结束 data ENDS code SEGMENT ASSUME CS:CODE,DS:DATA start: mov ax, 2; mov ax, ax; mov ax, ax; mov ax, ax int 21h ;调用4C00h号功能,结束程序 code ENDS END start
16.142857
38
0.615044
236681e989061e60484130e870f16dc6a93fca0b
179
asm
Assembly
libsrc/_DEVELOPMENT/sound/bit/c/sccz80/bit_play_tritone.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/sound/bit/c/sccz80/bit_play_tritone.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/sound/bit/c/sccz80/bit_play_tritone.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *bit_play_tritone(void *song) SECTION code_clib SECTION smc_sound_bit PUBLIC bit_play_tritone EXTERN asm_bit_play_tritone defc bit_play_tritone = asm_bit_play_tritone
14.916667
44
0.849162
faef43821eb1c04bbf3357fc4352801663664460
3,129
asm
Assembly
tools/asmx2/test/jerry.asm
retro16/blastsdk
572bd8489e6a2c1cc638120aa62241c99badc2e5
[ "MIT" ]
10
2017-01-14T16:22:58.000Z
2021-02-16T21:41:48.000Z
tools/asmx2/test/tom.asm
retro16/blastsdk
572bd8489e6a2c1cc638120aa62241c99badc2e5
[ "MIT" ]
3
2016-09-15T21:45:34.000Z
2016-09-17T08:06:06.000Z
tools/asmx2/test/tom.asm
retro16/blastsdk
572bd8489e6a2c1cc638120aa62241c99badc2e5
[ "MIT" ]
2
2016-09-15T22:09:38.000Z
2018-05-21T15:26:30.000Z
ADD R1,R2 ; 0 0022 ADDC R1,R2 ; 1 0422 ADDQ 1,R2 ; 2 0822 ADDQT 1,R2 ; 3 0C22 SUB R1,R2 ; 4 1022 SUBC R1,R2 ; 5 1422 SUBQ 1,R2 ; 6 1822 SUBQT 1,R2 ; 7 1C22 NEG R2 ; 8 2002 AND R1,R2 ; 9 2422 OR R1,R2 ; 10 2822 XOR R1,R2 ; 11 2C22 NOT R2 ; 12 3002 BTST 1,R2 ; 13 3422 BSET 1,R2 ; 14 3822 BCLR 1,R2 ; 15 3C22 MULT R1,R2 ; 16 4022 IMULT R1,R2 ; 17 4422 IMULTN R1,R2 ; 18 4822 RESMAC R2 ; 19 4C02 IMACN R1,R2 ; 20 5022 DIV R1,R2 ; 21 5422 ABS R2 ; 22 5802 SH R1,R2 ; 23 5C22 SHLQ 31,R2 ; 24 6022 SHRQ 31,R2 ; 25 6422 SHA R1,R2 ; 26 6822 SHARQ 31,R2 ; 27 6C22 ROR R1,R2 ; 28 7022 RORQ 1,R2 ; 29 7422 ROLQ 31,R2 ; 29 7422 CMP R1,R2 ; 30 7822 CMPQ 1,R2 ; 31 7C22 SAT8 R2 ; 32 T 8002 SUBQMOD 1,R2 ; 32 J 8022 SAT16 R2 ; 33 T 8402 SAT16S R2 ; 33 J 8402 MOVE R1,R2 ; 34 8822 MOVEQ 1,R2 ; 35 8C22 MOVETA R1,R2 ; 36 9022 MOVEFA R1,R2 ; 37 9422 MOVEI $12345678,R2 ; 38 9802 56781234 LOADB (R1),R2 ; 39 9C22 LOADW (R1),R2 ; 40 A022 LOAD (R1),R2 ; 41 A422 LOADP (R1),R2 ; 42 T A822 SAT32S R2 ; 42 J A802 LOAD (R14+1),R2 ; 43 AC22 LOAD (R15+1),R2 ; 44 B022 STOREB R1,(R2) ; 45 B422 STOREW R1,(R2) ; 46 B822 STORE R1,(R2) ; 47 BC22 STOREP R1,(R2) ; 48 T C022 MIRROR R2 ; 48 J C002 STORE R1,(R14+2) ; 49 C422 STORE R1,(R15+2) ; 50 C822 MOVE PC,R2 ; 51 CC02 JUMP $02,(R1) ; 52 D022 JR $02,*+2 ; 53 D422 MMULT R1,R2 ; 54 D822 MTOI R1,R2 ; 55 DC22 NORMI R1,R2 ; 56 E022 NOP ; 57 E400 LOAD (R14+R1),R2 ; 58 E822 LOAD (R15+R1),R2 ; 59 EC22 STORE R1,(R14+R2) ; 60 F022 STORE R1,(R15+R2) ; 61 F422 SAT24 R2 ; 62 J F802 UNPACK R2 ; 63 T FC02 PACK R2 ; 63 T FC22 ADDQMOD 1,R2 ; 63 J FC22
41.72
52
0.325344
be275b0f3302040e07838991c421e7d66dc61b0b
329
asm
Assembly
programs/oeis/040/A040710.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/040/A040710.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/040/A040710.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A040710: Continued fraction for sqrt(738). ; 27,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54,6,54 sub $0,1 mod $0,2 mul $0,11 add $0,2 pow $0,2 mov $1,$0 sub $1,2 div $1,10 mul $1,3 add $1,6
23.5
189
0.604863
ad3fe137cabf9c8a387a118a997538f564254978
867
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_pop_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_pop_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_pop_front.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; Jan 2014 ; =============================================================== ; ; void *p_list_pop_front(p_list_t *list) ; ; Pop item from the front of the list. ; ; =============================================================== SECTION code_clib SECTION code_adt_p_list PUBLIC asm_p_list_pop_front EXTERN asm_p_list_remove, error_zc asm_p_list_pop_front: ; enter : hl = p_list_t *list ; ; exit : bc = p_list_t *list ; ; success ; ; hl = void *item (item at front) ; carry reset ; ; fail if list is empty ; ; hl = 0 ; carry set ; ; uses : af, bc, de, hl ld c,l ld b,h ld a,(hl) inc hl ld h,(hl) ld l,a or h jp nz, asm_p_list_remove jp error_zc
17.693878
65
0.412918
f8b23d424cdb52651e1dc804488ff2ee0bbc0bcd
193
asm
Assembly
asm_examples/jump.asm
Lukas0025/MIS8
b3b1906ed783f4d22ff048a148cd8f71ec60b279
[ "MIT" ]
null
null
null
asm_examples/jump.asm
Lukas0025/MIS8
b3b1906ed783f4d22ff048a148cd8f71ec60b279
[ "MIT" ]
null
null
null
asm_examples/jump.asm
Lukas0025/MIS8
b3b1906ed783f4d22ff048a148cd8f71ec60b279
[ "MIT" ]
null
null
null
; Example ASM code ; cout R0 to 100 LDI A, 0 ; 0,1 (2BYTES) LDI B, 1 ; 2,3 (2BYTES) <-- Jump here ADDTO A ; 4 (1BYTE) ; compare with 100 LDI B, 100 SUBTO C JNZ C, 2 ; counting is done HALT
12.866667
37
0.626943
e1534665b52125a945f3d28b20a1056f7b4abcc3
298
asm
Assembly
programs/oeis/227/A227108.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/227/A227108.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/227/A227108.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A227108: Denominators of harmonic mean H(n,5), n >= 0. ; 1,3,7,4,9,1,11,6,13,7,3,8,17,9,19,2,21,11,23,12,1,13,27,14,29,3,31,16,33,17,7,18,37,19,39,4,41,21,43,22,9,23,47,24,49,1,51,26,53,27,11,28,57,29,59,6,61,31,63,32,13,33,67,34,69,7,71,36,73,37,3,38,77 add $0,5 lpb $0 dif $0,5 lpe dif $0,2
33.111111
199
0.620805
7fe25b9ed0880cb7189072579d2d0eef13ff9cf9
49,708
asm
Assembly
Library/Sound/soundCommon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Sound/soundCommon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Sound/soundCommon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS Sound system FILE: soundCommon.asm AUTHOR: Todd Stumpf, Aug 3, 1992 ROUTINES: Name Description ---- ----------- global SoundEntry Sets up library intern SoundAttachLibrary Load library into system intern SoundDetachLibrary Remove Library from system intern SoundNewClient A new process uses the library intern SoundNewClientThread A new thread of a process was created intern SoundThreadExit A thread using the library has exited intern SoundExit A process using the library has exited global REVISION HISTORY: Name Date Description ---- ---- ----------- TS 8/ 3/92 Initial revision TS 9/23/92 Changed for simplified interface DESCRIPTION: These are the library routines for sound library for PC/GEOS. $Id: soundCommon.asm,v 1.1 97/04/07 10:46:31 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ include product.def udata segment ; All driver routines invoked by the library are done so by ; loading the driver function you wish to execute in di and then ; calling the strategy routine of the driver. The strategy ; routine is the first element in the DriverInfo struct. ; soundSynthStrategy fptr ; sound driver strategy fptr soundSynthHandle hptr ; handle for synth driver streamStrategy fptr ; stream driver strategy fptr ; Each driver will require stream-specific information (what ; the current controller values are, what instruments are ; assigned to which channel, etc. This storage space is ; appended to the end of the SoundStreamStatus structure. ; To keep from querying the driver constantly, we query it ; at start up and store it here. driverVoices word ; # of voice on device driverDACs word ; # of dacs on device driverVoiceFormat SupportedInstrumentFormat driverCapability SoundDriverCapability driverDACCapability SoundDriverDACCapability ; We can't let an application grab excusive access ; until all the threads are out of the library routines. libraryAccess word exclusiveAccess word ; ; Inorder to use the UI, and not get into a problem where ; the UI needs the sound library to loaded first, ; and the sound library needs the UI to be loaded ; first, we load the UI ourselves, after we have ; been loaded, but before anyone else can do anything... userInterfaceHandle word udata ends idata segment exclusiveSemaphore Semaphore <1,> ; mutEx for get excluisve code librarySemaphore Semaphore <1,> ; mutEx for library idata ends InitCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Call driver to initialize the sound board CALLED BY: global PASS: di -> LibraryCallType cx -> handle of client geode if LCT_NEW_CLIENT or LCT_CLIENT_EXIT ds -> dgroup RETURN: carry set on error DESTROYED: nothing PSEUDO CODE/STRATEGY: call appropriate routine KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- TS 8/ 4/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundEntry proc far uses di .enter shl di,1 ; index words (nptr actually..) call cs:LibraryCallJumpTable[di] .leave ret SoundEntry endp LibraryCallJumpTable nptr SoundAttachLibrary, SoundDetachLibrary, SoundNewClient, SoundNewClientThread, SoundThreadExit, SoundExit COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundAttachLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the driver and set up the system stream CALLED BY: SoundEntry PASS: ds -> dgroup RETURN: nothing DESTROYED: nothing SIDE EFFECTS: loads the standard sound driver and creates a system stream. PSEUDO CODE/STRATEGY: When we first get set up, we need to contact the driver and see what its capabilities are and how much information it has. We also need to set up the exclusive access semaphore REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundAttachLibrary proc near uses ax,bx,cx,dx,si,di,bp .enter ; Now, we need to load the selected sound drivers. ; The current selections are probably stored in the ; .ini file. If they are not, we use the standard ; PC/Speaker driver, and don't load any DAC driver. call SoundGetDrivers ; load driver jc chokeChokeChoke ; damn. an error. ; ; With that, we need to query the drivers as to their ; capabilities so we know how many voices ; and DACs they support, as well as the quality ; of the sound they produces. ; To help support different types of DACs (like ; DMA vs FIFO), we also let the drivers ; specify a particular stream driver to ; use. This allows the Sound Blaster to ; customize its stream driver for the ; utmost speed, while letting others ; use the regular stream driver. mov di, DRE_SOUND_QUERY_DEVICE_CAPABILITY call ds:[soundSynthStrategy] mov ds:[driverVoices], ax ; store # of voices mov ds:[driverVoiceFormat], bx mov ds:[driverCapability], cx ; store capabilities mov ds:[driverDACs], dx ; store # of DACs mov ds:[driverDACCapability], di ; store DAC capability cmpdw bpsi, 0 jnz storeSampleStreamStrategy mov bp, segment StreamStrategy ; bp:si <- default mov si, offset StreamStrategy storeSampleStreamStrategy: movdw ds:[streamStrategy], bpsi ; store stream strat ; ; The voice allocation depends upon the # of ; voices the driver supports. Thus, we need to ; set it up, now that we know how many voices there ; are. call SoundVoiceInitialize ; set up voice nodes jc chokeChokeChoke ifdef GPC_VERSION ; mov ax, (10h shl 8) or 10h ; set volume to medium call ReadInitFileForSettingMasterVolume endif done: clc .leave ret chokeChokeChoke: ; ; Ok. We have had an error loading the sound driver. ; What we want to do is make sure no one tries to get ; ahold of the non-existant driver. ; To do this, we just P the mutEx semaphore for the ; driver and return. PSem ds, exclusiveSemaphore, TRASH_AX_BX mov ds:[exclusiveAccess], 1 stc jmp short done SoundAttachLibrary endp ifdef GPC_VERSION ; ; Read from the ini file for the volume and balance setting, then ; set the sound mixer master volume. ; Pass: none ; Return: none ; soundCat char "sound",0 volume char "volume", 0 balance char "balance", 0 ReadInitFileForSettingMasterVolume proc near uses ds,ax,bx,cx,dx,si,di,bp .enter segmov ds, cs, cx mov si, offset soundCat mov dx, offset volume call InitFileReadInteger ; ax jnc ok ; No key found. ; So set default volume: MIXER_LVL_MAX / 2 mov ax, MIXER_LVL_MAX / 2 ok: push ax mov dx, offset balance call InitFileReadInteger ; ax jnc ok2 ; No balance found. ; set default balance: SOUND_BALANCE_MAX / 2 mov ax, SOUND_BALANCE_MAX / 2 ok2: ; ax - balance pop dx ; dx - volume mov cx, dx ; cx - volume ; Fixing channel volume strategy: ; Multiply the "other" channel volume by the balance value that ; the user selected in the balance UI gadget, divide by MAX/2. ; The selected value is between 0 and MAX/2. ; Don't bother rounding off. cmp ax, SOUND_BALANCE_MAX / 2 ja fixLeftChannel fixRightChannel:: mul dl ; ax = vol * bal mov cl, SOUND_BALANCE_MAX / 2 div cl ; al = vol * (bal / (MAX/2)) mov ah, al mov al, dl jmp done fixLeftChannel: sub al, SOUND_BALANCE_MAX neg al ; al = bal mul dl ; ax = vol * bal mov cl, SOUND_BALANCE_MAX / 2 div cl ; al = vol * (bal / (MAX/2)) mov ah, dl done: ; al - left channel volume, ; ah - right channel volume. call SoundMixerSetMasterVolume .leave ret ReadInitFileForSettingMasterVolume endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundGetDrivers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Examine the .ini file and get the current sound drivers CALLED BY: SoundAttachLibrary PASS: nothing RETURN: carry set on error DESTROYED: nothing SIDE EFFECTS: sets driverStrategys in dgroup PSEUDO CODE/STRATEGY: look in .ini file create category if not there if there, read current driver load driver save routine return REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ soundDriverCategory char "sound",0 soundSynthDriverKey char "synthDriver",0 if DBCS_PCGEOS soundDriverDir wchar "sound",0 endif LocalDefNLString soundDefaultDriver <"standard.geo",0> SoundGetDrivers proc near uses ax, bx, cx, dx, di, si, ds, es, bp driverNameBuffer local FileLongName .enter push bp ; save bp for later call FILEPUSHDIR ; save current dir ; ; Move dir to ../SYSTEM/SOUND segmov ds, cs, si ; ds:dx <- path name mov bx, SP_SYSTEM ; start in system dir SBCS < mov dx, offset soundDriverCategory ; move to SYSTEM/SOUND > DBCS < mov dx, offset soundDriverDir ; move to SYSTEM/SOUND > call FileSetCurrentPath NOFXIP <LONG jc done ; error moving to directory ; ; Attempt to load the Driver for Synthesized sound ; ; ; Set es:di to point to base of driverNameBuffer mov di, ss ; es:di <- driverNameBuffer mov es, di mov di, bp ; di <- base of frame add di, offset driverNameBuffer ; di <- offset to buffer ; ; Read Category/Key value for driver push bp mov si, offset soundDriverCategory ; ds:si <- category asciiz mov cx, cs ; cx:dx <- key asciiz mov dx, offset soundSynthDriverKey mov bp, InitFileReadFlags <IFCC_INTACT,,,size driverNameBuffer> call InitFileReadString ; read driver name pop bp LONG jc loadStandardSynthDriver ; ; Load in the given sound driver and ; determine its strategy routine. ; Save a fptr to the routine in dgroup segmov ds, es, si ; ds:si <- driver name mov si, di ; ds:si <- name of driver clr ax ; who cares what ver. clr bx call GeodeUseDriver ; get it jc loadStandardSynthDriver ; pass carry back ; if error loading readStrategyRoutine: call GeodeInfoDriver ; ds:si <- DriverInfoStruct mov ax, segment dgroup ; es <- dgroup of library mov es, ax ; copy the far pointer movdw es:[soundSynthStrategy],ds:[si].DIS_strategy, ax mov es:[soundSynthHandle], bx clc ; everything ok done: ; flags preserved across popdir call FILEPOPDIR ; return to old dir pop bp ; restore bp .leave ret loadStandardSynthDriver: ; ; Either there was not category, or the category was corrupted, ; or the file specified in the catagory did not exists. ; In any event, we want to load the standard.geo driver ; for PC-SPEAKER. Hopefully that's here. segmov ds, cs, si ; ds:si <- driver name mov si, offset soundDefaultDriver mov ax, SOUND_PROTO_MAJOR ; get latest version mov bx, SOUND_PROTO_MINOR call GeodeUseDriver jc done ; was there an error? jmp readStrategyRoutine SoundGetDrivers endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundDetachLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free up the voices we previously allocated CALLED BY: SoundEntry PASS: ds -> dgroup of library RETURN: nothing DESTROYED: nothing SIDE EFFECTS: frees up fixed memory PSEUDO CODE/STRATEGY: let voice manager clean itself up. REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundDetachLibrary proc near .enter ; ; Remove voice list call SoundVoiceDetach ; free up voice nodes if 0 ; Because the sound library doesn't get unloaded until GEOS gets ; unloaded, and GEOS unloads with a very heavy hand, it is possible ; that the kernel has already unloaded the sound drivers "for us", ; and if we try to do so as well, we die with HANDLE_FREE. ; This is somewhat related to the UI death below. ; -- todd 05/20/93 ; ; Free up synth driver mov bx, ds:[soundSynthHandle] tst bx jz UI call GeodeFreeDriver freeUI: ; ; Free up UI mov bx, ds:[userInterfaceHandle] tst bx jz done call GeodeFreeLibrary endif done:: .leave ret SoundDetachLibrary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundNewClient %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Called when a new client is created. Deal with it. CALLED BY: SoundEntry PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: none REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundNewClient proc near .enter clc .leave ret SoundNewClient endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundNewClientThread %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Called when a new thread is created. Deal with it. CALLED BY: SoundEntry PASS: ds -> dgroup RETURN: nothing DESTROYED: nothing SIDE EFFECTS: calls GeodeUseLib on UI PSEUDO CODE/STRATEGY: We need to be able to send a message to the UI, so we need to get at its process thread. The trick is, we can't actually put a library clause in our .gp file becuase the UI has a library sound clause in its .gp file and that causes a circular recursion problem that kills the system. So, what we do is wait until the UI has been loaded, and we have been notified alla SoundNewClient, and such. Then, when it tires to create the first UI thread, it calls this routine and we "load" the UI and gets its handle. Armed with this and a call to ProcInfo, we can get the the UI's thread ID and send it messages. Believe me, it wasn't easy. -- todd REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ EC <LocalDefNLString userName <"uiec.geo",0> > NEC <LocalDefNLString userName <"ui.geo",0> > SoundNewClientThread proc near .enter tst ds:[userInterfaceHandle] jnz done push ax, bx, si push ds segmov ds, cs, ax mov si, offset userName clr ax clr bx call GeodeUseLibrary jc error pop ds mov ds:[userInterfaceHandle], bx doneError: pop ax, bx, si done: .leave ret error: ; ; We had an error loading the UI. This is bad. ; mark the thread as unsupported. stc EC< ERROR -1 > NEC < pop ds > NEC< jmp doneError > SoundNewClientThread endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundThreadExit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Called when a thread is done. Deal with it. CALLED BY: SoundEntry PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundThreadExit proc near .enter clc .leave ret SoundThreadExit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundExit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: A Client Process has exited. Deal with it. CALLED BY: SoundEntry PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: none REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundExit proc near .enter clc .leave ret SoundExit endp InitCode ends CommonCode segment resource ;----------------------------------------------------------------------------- ; ; SIMPLE FM ROUTINES ; ;----------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundAllocMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a SoundControl block to play FM sounds CALLED BY: GLOBAL PASS: bx:si -> far ptr to buffer cx -> # of voices used by buffer (Use SoundPlayMusic to play) - or - ^lbx:si -> handle:chunk for buffer if in lmem heap cx -> # of voices used by buffer (Use SoundPlayMusicLMem to play) RETURN: carry clear bx <- handle to SoundControl (owned by calling thread) ax destroyed - or - carry set ax <- SOUND_ERROR reason for refusal bx destroyed DESTROYED: see above SIDE EFFECTS: possible errors and causes include: SOUND_ERROR_OUT_OF_MEMORY The library tried to do a memory allocation, but failed. PSEUDO CODE/STRATEGY: call driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundAllocMusic proc far uses di .enter mov di, DR_SOUND_ALLOC_MUSIC call SoundLibDriverStrategy .leave ret SoundAllocMusic endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundAllocMusicStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a stream to play FM sounds on CALLED BY: GLOBAL PASS: ax -> SoundStreamSize bx -> starting priority for sound cx -> # of voices for sound dx -> starting tempo for sound RETURN: carry clear bx <- handle to SoundControl (owned by calling thread) ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure bx destroyed DESTROYED: see above SIDE EFFECTS: allocates space on global heap allocates stream PSEUDO CODE/STRATEGY: call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundAllocMusicStream proc far uses di .enter mov di, DR_SOUND_ALLOC_MUSIC_STREAM call SoundCallLibraryDriverRoutine .leave ret SoundAllocMusicStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundAllocMusicNote %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a note and return its handle CALLED BY: GLOBAL PASS: bx -> instrument table seg. (zero for system default) si -> instrument # for note ax -> frequency cx -> volume dx -> SoundStreamDeltaTimeType di -> duration (in DeltaTimerType units) RETURN: carry clear bx <- token for sound (owned by calling thread) ax destroyed - or - ax <- SOUND_ERROR reason for failure bx destroyed DESTROYED: nothing SIDE EFFECTS: could allocate space on the global heap PSEUDO CODE/STRATEGY: call driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundAllocMusicNote proc far uses di, bp .enter mov bp, di ; bp <- timer interval mov di, DR_SOUND_ALLOC_MUSIC_NOTE call SoundCallLibraryDriverRoutine .leave ret SoundAllocMusicNote endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundPlayMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Play a simple FM sound CALLED BY: GLOBAL PASS: bx -> handle for SoundControl ax -> starting priority for sound cx -> starting tempo setting for sound dl -> EndOfSongFlags for sound RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: If the simple sound is currently playing, it will be re-started at the beginning of the song with the new tempo and priority. PSEUDO CODE/STRATEGY: check the mutEx semaphore call the driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundPlayMusic proc far uses di .enter mov di, DR_SOUND_PLAY_MUSIC call SoundCallLibraryDriverRoutine .leave ret SoundPlayMusic endp if _FXIP CommonCode ends ResidentCode segment resource endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundPlayToMusicStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Play an FM Sound to a Stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl dx:si -> start of event buffer to write to sound stream cx -> bytes in buffer (zero if unknown) NOTE: Every buffer written to the stream must be made of whole events. It is not possible to break events between two writes to the stream, but it is ok to have a buffer end with an event and begin with a deltaEvent. Similarly, you can end with a deltaEvent and start with a soundEvent. Also, if the size of the buffer is unknown, all the events up to the first GE_END_OF_SONG event will be written to the stream. Any remaining data will be ignored. A stream of unknown size must have a GE_END_OF_SONG. A stream of known size need not end in GE_END_OF_SONG. RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: check exclusive lock call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundPlayToMusicStream proc far uses di .enter mov di, DR_SOUND_PLAY_TO_MUSIC_STREAM call SoundLibDriverStrategy .leave ret SoundPlayToMusicStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundPlayToMusicStreamNB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Play an FM Sound to a Stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl dx:si -> start of event buffer to write to sound stream cx -> bytes in buffer (zero if unknown) NOTE: Every buffer written to the stream must be made of whole events. It is not possible to break events between two writes to the stream, but it is ok to have a buffer end with an event and begin with a deltaEvent. Similarly, you can end with a deltaEvent and start with a soundEvent. Also, if the size of the buffer is unknown, all the events up to the first GE_END_OF_SONG event will be written to the stream. Any remaining data will be ignored. A stream of unknown size must have a GE_END_OF_SONG. A stream of known size need not end in GE_END_OF_SONG. RETURN: cx <- # of bytes written carry clear ax destroyed - or - carry set ax <- SoundWriteStreamStatus DESTROYED: ax SIDE EFFECTS: none PSEUDO CODE/STRATEGY: check exclusive lock call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundPlayToMusicStreamNB proc far uses di .enter mov di, DR_SOUND_PLAY_TO_MUSIC_STREAM_NB call SoundLibDriverStrategy .leave ret SoundPlayToMusicStreamNB endp if _FXIP ResidentCode ends CommonCode segment resource endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundStopMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Stop a simple stream CALLED BY: GLOBAL PASS: bx -> handle of SoundControl RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: see above SIDE EFFECTS: Stops the simple piece. All voices are turned off. Triggers EndOfSongFlags PSEUDO CODE/STRATEGY: check mutEx semaphore call driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundStopMusic proc far uses di .enter mov di, DR_SOUND_STOP_MUSIC call SoundCallLibraryDriverRoutine .leave ret SoundStopMusic endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundStopMusicStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Stop an FM stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: see above SIDE EFFECTS: Stops the stream. All sounds are flushed from stream PSEUDO CODE/STRATEGY: check exclusive access call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundStopMusicStream proc far uses di .enter mov di, DR_SOUND_STOP_MUSIC_STREAM call SoundCallLibraryDriverRoutine .leave ret SoundStopMusicStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundReallocMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the song setting for a simple stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl ds:si -> new sound buffer RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: Re-starts a simple stream playing on a new sound buffer, but leaves the voices in the state they were at the end of the last song. Thus, this allows someone to play a very long song by breaking it up into smaller buffers. NOTE: Each buffer section must still end with and END_OF_SONG PSEUDO CODE/STRATEGY: check mutEx call driver function REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundReallocMusic proc far uses di .enter mov di, DR_SOUND_REALLOC_MUSIC call SoundCallLibraryDriverRoutine .leave ret SoundReallocMusic endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundReallocMusicLMem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the song setting for a simple stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl ^ldx:si -> new sound buffer RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: Re-starts a simple stream playing on a new sound buffer, but leaves the voices in the state they were at the end of the last song. Thus, this allows someone to play a very long song by breaking it up into smaller buffers. NOTE: Each buffer section must still end with and END_OF_SONG PSEUDO CODE/STRATEGY: check mutEx call driver function REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundReallocMusicLMem proc far uses di .enter mov di, DR_SOUND_REALLOC_MUSIC_LMEM call SoundCallLibraryDriverRoutine .leave ret SoundReallocMusicLMem endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundReallocMusicNote %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the settings for a note CALLED BY: GLOBAL PASS: bx -> handle for SoundControl ax -> frequnecy for note cx -> volume for note dx -> timer type di -> timer value ds:si -> new instrument setting RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: see above SIDE EFFECTS: locks and unlocks block on global heap PSEUDO CODE/STRATEGY: * You must stop the note before reallocating * check mutEx semaphore lock down block make changes unlock block REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundReallocMusicNote proc far uses bp, di .enter mov bp, di ; bp <- timer value mov di, DR_SOUND_REALLOC_MUSIC_NOTE call SoundCallLibraryDriverRoutine .leave ret SoundReallocMusicNote endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundFreeMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free up a simple FM sound stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl RETURN: nothing DESTROYED: nothing SIDE EFFECTS: frees up a block on the global heap PSEUDO CODE/STRATEGY: call driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundFreeMusic proc far uses di .enter mov di, DR_SOUND_FREE_SIMPLE call SoundLibDriverStrategy .leave ret SoundFreeMusic endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundFreeMusicStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free an FM sound stream CALLED BY: GLOBAL PASS: bx -> handle for SoundControl RETURN: nothing DESTROYED: nothing SIDE EFFECTS: flushes the stream, frees up the stream frees up the block on the global heap PSEUDO CODE/STRATEGY: call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundFreeMusicStream proc far uses di .enter mov di, DR_SOUND_FREE_STREAM call SoundLibDriverStrategy .leave ret SoundFreeMusicStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundInitMusic %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initialize a pre-defined simple FM sound structure CALLED BY: GLOBAL PASS: bx -> handle to block with empty SoundControl cx -> # of voices for sound RETURN: nothing DESTROYED: nothing SIDE EFFECTS: initialize the sound structure initialize the voices PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/21/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundInitMusic proc far uses ax, cx, dx, si, di .enter ; ; Calculate offset to song in block mov ax, size SoundVoiceStatus ; al <- size of 1 voice mul cx ; ax <- size of voices add ax, size SoundControl ; ax <- offset to song mov si, ax ; si <- offset to song ; ; SoundLibDriverInitSimple expects the block to ; be locked when it recieves it. call MemLock ; ax <- segment, bx <- handle EC< ERROR_C SOUND_CONTROL_BLOCK_IN_DISCARDED_RESOURCE > clr dx ; mark as in block mov di, DR_SOUND_INIT_MUSIC call SoundLibDriverStrategy ; init the sound call MemUnlock ; free up the block done:: .leave ret SoundInitMusic endp ;----------------------------------------------------------------------------- ; ; SOUND MAINTENANCE AND ADMINISTRATION ROUTINES ; ;----------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundChangeOwnerSimple %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the owner of a sound CALLED BY: GLOBAL PASS: bx -> handle of SoundControl ax -> handle of new owner for sound RETURN: nothing DESTROYED: nothing SIDE EFFECTS: alters ownership of the block itself as well as any semaphores. PSEUDO CODE/STRATEGY: call the driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/ 7/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundChangeOwnerMusic proc far uses di .enter mov di, DR_SOUND_CHANGE_OWNER_SIMPLE call SoundLibDriverStrategy .leave ret SoundChangeOwnerMusic endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundChangeOwnerStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the Owner of a sound Stream CALLED BY: GLOBAL PASS: bx -> handle of SoundControl ax -> handle of new owner for sound RETURN: nothing DESTROYED: nothing SIDE EFFECTS: alters ownership of the block itself as well as any semaphores. PSEUDO CODE/STRATEGY: call the driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 10/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundChangeOwnerStream proc far uses di .enter mov di, DR_SOUND_CHANGE_OWNER_STREAM call SoundLibDriverStrategy .leave ret SoundChangeOwnerStream endp ;----------------------------------------------------------------------------- ; ; DAC Sound Routines ; ;----------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundAllocSampleStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a sound handle for the sound CALLED BY: GLOBAL PASS: nothing RETURN: carry clear bx <- handle of SoundControl ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure bx destroyed DESTROYED: see above SIDE EFFECTS: check mutEx allocates a handle for Sound allocates semaphores PSEUDO CODE/STRATEGY: call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 11/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundAllocSampleStream proc far uses di .enter mov di, DR_SOUND_ALLOC_SAMPLE_STREAM call SoundCallLibraryDriverRoutine .leave ret SoundAllocSampleStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundEnableSampleStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Associate a real DAC to Sound CALLED BY: GLOBAL PASS: bx -> handle of SoundControl ax -> priority for DAC (SoundPriority) cx -> rate for sample dx -> ManufacturerID of sample si -> SampleFormat of sample RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: allocates stream contacts device driver and a attach DAC to stream PSEUDO CODE/STRATEGY: check exclusive access to driver call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 11/18/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundEnableSampleStream proc far uses di .enter mov di, DR_SOUND_ENABLE_SAMPLE_STREAM call SoundCallLibraryDriverRoutine .leave ret SoundEnableSampleStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundDisableSampleStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Removes association of DAC and Sound CALLED BY: GLOBAL PASS: bx -> handle for SoundControl RETURN: nothing DESTROYED: nothing SIDE EFFECTS: contacts device driver and dettaches DAC from stream frees stream PSEUDO CODE/STRATEGY: call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 11/18/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundDisableSampleStream proc far uses di .enter mov di, DR_SOUND_DISABLE_SAMPLE_STREAM call SoundLibDriverStrategy .leave ret SoundDisableSampleStream endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundFreeSampleStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Frees up the Sound structure of the sound CALLED BY: GLOBAL PASS: bx -> handle of SoundControl RETURN: nothing DESTROYED: nothing SIDE EFFECTS: frees up a block frees up semaphore handles PSEUDO CODE/STRATEGY: We can't check for exclusives as an application may be trying to exit. REVISION HISTORY: Name Date Description ---- ---- ----------- TS 11/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundFreeSampleStream proc far uses di .enter mov di, DR_SOUND_FREE_SAMPLE_STREAM call SoundLibDriverStrategy .leave ret SoundFreeSampleStream endp if _FXIP CommonCode ends ResidentCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundPlayToSampleStream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Play a given piece of DAC data to the DAC CALLED BY: GLOBAL PASS: bx = handle of SoundControl dx:si = buffer of DAX data to put on stream cx = length of buffer (in bytes) ax:bp = SampleFormatDescription of buffer RETURN: carry clear ax destroyed - or - carry set ax = SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: gives the DAC something to play blocks on writing to stream PSEUDO CODE/STRATEGY: call driver REVISION HISTORY: Name Date Description ---- ---- ----------- TS 11/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundPlayToSampleStream proc far uses bx, dx, di, si, ds .enter mov di, bx ; di = SoundControl mov ds, dx ; ds:si = event buffer call SysCopyToBlock ; ^hbx = block ; ds:si = copied event buffer jc outOfMemory mov dx, ds ; dx:si = copied event buffer push bx ; save block handle mov bx, di ; ^hbx = SoundControl call SoundPlayToSampleStreamReal pop bx call MemFree exit: .leave ret outOfMemory: mov ax, SOUND_ERROR_OUT_OF_MEMORY jmp short exit SoundPlayToSampleStream endp ResidentCode ends CommonCode segment resource else SoundPlayToSampleStream proc far FALL_THRU SoundPlayToSampleStreamReal SoundPlayToSampleStream endp endif SoundPlayToSampleStreamReal proc far uses di .enter mov di, DR_SOUND_PLAY_TO_SAMPLE_STREAM call SoundCallLibraryDriverRoutine .leave ret SoundPlayToSampleStreamReal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundCallLibraryDriverRoutine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Call library driver routine CALLED BY: Everything. Almost. ;PASS: di -> driver routine to call others -> see specific routine RETURN: carry clear ax destroyed bx,cx,dx,si,di,bp,es,ds as routine - or - carry set di destroyed ax <- SOUND_ERROR reason for failure DESTROYED: see above SIDE EFFECTS: calls driver PSEUDO CODE/STRATEGY: try to enter library if fails return error try to call routine if fails propgate error exit library REVISION HISTORY: Name Date Description ---- ---- ----------- TS 4/12/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundCallLibraryDriverRoutine proc near .enter push di ; save routine mov di, DR_SOUND_ENTER_LIBRARY_ROUTINE call SoundLibDriverStrategy jc error ; set error? pop di ; restore routine call SoundLibDriverStrategy jc routineFailure push di ; save result mov di, DR_SOUND_EXIT_LIBRARY_ROUTINE call SoundLibDriverStrategy clc error: pop di ; clean up stack mov ax, SOUND_ERROR_EXCLUSIVE_ACCESS_GRANTED done: .leave ret routineFailure: ; ; We failed somewhere in the SoundLibDriver routine. ; Propogate error after exiting the library routine mov di, DR_SOUND_EXIT_LIBRARY_ROUTINE ; exit library call SoundLibDriverStrategy stc ; propogate error jmp short done SoundCallLibraryDriverRoutine endp ;----------------------------------------------------------------------------- ; ; EXCLUSIVE DRIVER ACCESS ROUTINES ; ;----------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundGetExclusive %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get exclusive access to the lower level routines CALLED BY: GLOBAL PASS: nothing RETURN: ax:si <- fptr to Synth sound driver strategy routine bx:di <- fptr to DAC sound driver strategy routine cx:dx <- fptr to sound library's Driver strategy routine DESTROYED: nothing SIDE EFFECTS: Causes thread to block until get exclusive PSEUDO CODE/STRATEGY: Do a P on the semaphore REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundGetExclusive proc far uses ds .enter mov ax, segment dgroup mov ds, ax PSem ds, exclusiveSemaphore, TRASH_AX_BX ; ; We are now the only thread in this section ; of code. We need only wait for all the ; threads to clear out, then we have ; exclusive access inc ds:[exclusiveAccess] PSem ds, librarySemaphore, TRASH_AX_BX ; ; Load up pointers to the strategy routines. mov ax, ds:[soundSynthStrategy].segment mov si, ds:[soundSynthStrategy].offset mov bx, ax mov di, si mov cx, segment SoundLibDriverStrategy mov dx, offset SoundLibDriverStrategy .leave ret SoundGetExclusive endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundGetExclusiveNB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get exclusive access to lower level routines CALLED BY: GLOBAL PASS: nothing RETURN: carry clear if exclusive access granted: ax:si <- fptr to Synth sound driver strategy routine bx:di <- fptr to DAC sound driver strategy routine cx:dx <- fptr to sound library's Driver strategy routine carry set someone already has exclusive access. DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: TimedP on the semaphore REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundGetExclusiveNB proc far uses cx,ds .enter mov ax, segment dgroup mov ds, ax clr cx PTimedSem ds,exclusiveSemaphore,cx,TRASH_AX_BX_CX jc done inc ds:[exclusiveAccess] clr cx PTimedSem ds,librarySemaphore,cx,TRASH_AX_BX_CX jc error ; ; Load up pointers to the strategy routines. mov ax, ds:[soundSynthStrategy].segment mov si, ds:[soundSynthStrategy].offset mov bx, ax mov di, si mov cx, segment SoundLibDriverStrategy mov dx, offset SoundLibDriverStrategy done: .leave ret error: ; ; We got the 1st semaphore, but not the 2nd. ; V the first handle. dec ds:[exclusiveAccess] VSem ds, exclusiveSemaphore, TRASH_AX_BX jmp short done SoundGetExclusiveNB endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundReleaseExclusive %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Give up exclusive access to lower level routines CALLED BY: GLOBAL PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: frees up the semaphore PSEUDO CODE/STRATEGY: V the semaphore REVISION HISTORY: Name Date Description ---- ---- ----------- TS 9/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundReleaseExclusive proc far uses ax,bx,ds .enter mov ax, segment dgroup mov ds, ax VSem ds,librarySemaphore,TRASH_AX_BX dec ds:[exclusiveAccess] VSem ds,exclusiveSemaphore,TRASH_AX_BX .leave ret SoundReleaseExclusive endp ;----------------------------------------------------------------------------- ; ; Driver Manipulation/Query routines ; ;----------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundSynthDriverInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get information on Synth Driver CALLED BY: GLOBAL PASS: nothing RETURN: ax <- # of Voices bx <- SupportedInstrumentFormat cx <- SoundDriverCapability DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: load up existing data and return REVISION HISTORY: Name Date Description ---- ---- ----------- TS 3/12/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundSynthDriverInfo proc far uses ds .enter mov ax, segment dgroup mov ds, ax mov ax, ds:[driverVoices] mov bx, ds:[driverVoiceFormat] mov cx, ds:[driverCapability] .leave ret SoundSynthDriverInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundSampleDriverInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get information on Sample Driver CALLED BY: GLOBAL PASS: nothing RETURN: ax <- # of DACs bx <- SoundDriverDACCapability DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- TS 3/12/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundSampleDriverInfo proc far uses ds .enter mov ax, segment dgroup mov ds, ax mov ax, ds:[driverDACs] mov bx, ds:[driverDACCapability] .leave ret SoundSampleDriverInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SoundPlayMusicLMem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Play a simple FM sound in an LMem chunk CALLED BY: GLOBAL PASS: bx -> handle for SoundControl ax -> starting priority for sound cx -> starting tempo setting for sound dl -> EndOfSongFlags for sound RETURN: carry clear ax destroyed - or - carry set ax <- SOUND_ERROR reason for failure DESTROYED: nothing SIDE EFFECTS: If the simple sound is currently playing, it will be re-started at the beginning of the song with the new tempo and priority. PSEUDO CODE/STRATEGY: call the driver routine REVISION HISTORY: Name Date Description ---- ---- ----------- JV 3/31/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SoundPlayMusicLMem proc far uses di .enter mov di, DR_SOUND_PLAY_MUSIC_LMEM call SoundCallLibraryDriverRoutine .leave ret SoundPlayMusicLMem endp CommonCode ends
23.863658
79
0.565905
dc3269f1a545aa892ce58ddcdde9bd7b8fecaa1a
548
asm
Assembly
programs/oeis/245/A245872.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/245/A245872.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/245/A245872.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A245872: Number of length 3+2 0..n arrays with some pair in every consecutive three terms totalling exactly n. ; 16,103,256,549,960,1579,2368,3433,4720,6351,8256,10573,13216,16339,19840,23889,28368,33463,39040,45301,52096,59643,67776,76729,86320,96799,107968,120093,132960,146851,161536,177313,193936,211719,230400,250309 mov $5,$0 add $0,1 mov $1,2 mov $2,$0 lpb $2 add $1,$2 mul $1,2 gcd $2,2 sub $2,1 lpe add $1,10 mov $3,$5 mul $3,42 add $1,$3 mov $4,$5 mul $4,$5 mov $3,$4 mul $3,28 add $1,$3 mul $4,$5 mov $3,$4 mul $3,5 add $1,$3
20.296296
210
0.686131
049d20d7dc5f2a7b467da42238e7653fe3ce5c6f
699
asm
Assembly
programs/oeis/212/A212570.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/212/A212570.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/212/A212570.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A212570: Number of (w,x,y,z) with all terms in {1,...,n} and |w-x|=|x-y|+|y-z|. ; 0,1,6,23,52,105,178,287,424,609,830,1111,1436,1833,2282,2815,3408,4097,4854,5719,6660,7721,8866,10143,11512,13025,14638,16407,18284,20329,22490,24831,27296,29953,32742,35735,38868,42217,45714,49439 mov $12,$0 mov $14,$0 lpb $14 clr $0,12 mov $0,$12 sub $14,1 sub $0,$14 mov $9,$0 mov $11,$0 lpb $11 mov $0,$9 sub $11,1 sub $0,$11 mov $3,$0 lpb $0 sub $0,1 mul $0,2 mov $1,$0 mov $5,$0 mov $0,1 mov $3,$1 gcd $5,4 lpe add $5,2 mul $5,$3 mul $5,2 mov $1,$5 div $1,4 add $10,$1 lpe add $13,$10 lpe mov $1,$13
18.891892
199
0.533619
c34b7121d0625d3741e5b7e89b16abd0557d0c2c
354
asm
Assembly
programs/oeis/048/A048027.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/048/A048027.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/048/A048027.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A048027: Number of nonempty subsets of {1,2,...,n} in which exactly 1/2 of the elements are <= (n-3)/3. ; 0,0,0,0,0,5,6,7,35,44,54,219,285,363,1364,1819,2379,8567,11627,15503,54263,74612,100946,346103,480699,657799,2220074,3108104,4292144,14307149,20160074,28048799,92561039,131128139,183579395 mov $2,$0 add $0,1 sub $2,2 div $2,3 bin $0,$2 sub $0,1
35.4
190
0.717514
6379d53ecb594c803220c773ba00f96feae7e669
127
asm
Assembly
test/dsc.asm
kspalaiologos/asmbf
c98a51d61724a46855de291a27d68a49a034810b
[ "MIT" ]
67
2020-08-03T06:26:35.000Z
2022-03-24T19:50:51.000Z
test/dsc.asm
pyautogui/asmbf
37c54a8a62df2fc4bab28bdeb43237b4905cbecd
[ "MIT" ]
55
2019-10-02T19:37:08.000Z
2020-06-12T19:40:53.000Z
test/dsc.asm
pyautogui/asmbf
37c54a8a62df2fc4bab28bdeb43237b4905cbecd
[ "MIT" ]
9
2019-05-18T11:59:41.000Z
2020-06-21T20:40:25.000Z
psh 0 psh 1 psh 2 psh 3 psh 4 psh 5 pop r1 dsc dsc pop r2 dsc pop r3 add r1, .0 add r2, .0 add r3, .0 out r1 out r2 out r3
5.521739
10
0.637795
ed0000b60be240e4ed5f128225c53bd19dc42800
1,419
asm
Assembly
common/csubs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
28
2015-02-03T01:38:24.000Z
2022-03-23T05:48:24.000Z
common/csubs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
20
2015-01-02T14:51:20.000Z
2021-01-09T21:37:19.000Z
common/csubs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
9
2015-02-11T17:43:56.000Z
2019-09-05T11:07:02.000Z
TITLE CSUBS - Copyright (c) SLR Systems 1994 INCLUDE MACROS if fg_slrpack INCLUDE SLR32 PUBLIC SLR_MOVER .DATA EXTERNDEF SLR_INBUF_LIMIT:DWORD,SLR_BYTES_LEFT:DWORD,SLR_INPUT_PTR_OFFSET:DWORD,SLR_INPUT_PTR_BASE:DWORD .CODE PASS2_TEXT EXTERNDEF CONVERT_SUBBX_TO_EAX:PROC,RELEASE_BLOCK:PROC SLR_MOVER PROC ; ;USE SMALLER OF ECX AND BYTES_LEFT ; EDI IS DESTINATION ; PUSH ESI MOV EAX,SLR_BYTES_LEFT CMP EAX,ECX JAE L1$ MOV ECX,EAX L1$: ; ;MOVE ECX BYTES FROM SLR_INPUT_PTR TO EDI ; PUSH EBX MOV ESI,SLR_INPUT_PTR_OFFSET SUB EAX,ECX MOV EBX,SLR_INPUT_PTR_BASE MOV SLR_BYTES_LEFT,EAX L2$: ; ;NOW MOVE SMALLER OF PAGE_SIZE-ESI AND ECX ; MOV EAX,PAGE_SIZE SUB EAX,ESI CMP EAX,ECX JB L3$ MOV EAX,ECX L3$: PUSHM ECX,EAX MOV ECX,EAX CALL CONVERT_SUBBX_TO_EAX ADD ESI,EAX OPTI_MOVSB SUB ESI,EAX POPM EAX,ECX CMP ESI,PAGE_SIZE JNZ L4$ PUSH EAX XOR EDX,EDX MOV EAX,[EBX] CALL RELEASE_BLOCK MOV [EBX],EDX ADD EBX,4 POP EAX MOV SLR_INPUT_PTR_BASE,EBX XOR ESI,ESI SUB ECX,EAX JNZ L2$ L4$: MOV SLR_INPUT_PTR_OFFSET,ESI MOV EAX,SLR_BYTES_LEFT ; ;IF SLR_BYTES_LEFT=0, RELEASE LAST BLOCK ; TEST EAX,EAX JNZ L5$ MOV EAX,[EBX] XOR EDX,EDX TEST EAX,EAX JZ L5$ MOV [EBX],EDX CALL RELEASE_BLOCK L5$: POPM EBX,ESI MOV SLR_INBUF_LIMIT,EDI RET SLR_MOVER ENDP endif END
12.025424
106
0.69556
9bbf49ad95193dde3e1afc945334b8274be081be
1,621
asm
Assembly
deltaplay.asm
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
2
2015-05-26T12:49:13.000Z
2018-09-09T16:43:06.000Z
deltaplay.asm
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
null
null
null
deltaplay.asm
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
null
null
null
vsplit ; first quarter: 0x4000, 0x4880 ld a,0x42 ld hl,0x5800 call vsplit_attr ld b,14 ld hl,vsplit_data vs1lp push bc halt ld de,0x4000 call delta_frame halt ld de,0x4880 call delta_frame pop bc djnz vs1lp ; second quarter: 0x4008, 0x4888 ld a,0x44 ld hl,0x5808 call vsplit_attr ld b,14 ld hl,vsplit_data vs2lp push bc halt ld de,0x4008 call delta_frame halt ld de,0x4888 call delta_frame pop bc djnz vs2lp ; third quarter: 0x4010, 0x4890 ld a,0x43 ld hl,0x5810 call vsplit_attr ld b,14 ld hl,vsplit_data vs3lp push bc halt ld de,0x4010 call delta_frame halt ld de,0x4890 call delta_frame pop bc djnz vs3lp ; fourth quarter: 0x4018, 0x4898 ld a,0x46 ld hl,0x5818 call vsplit_attr ld b,14 ld hl,vsplit_data vs4lp push bc halt ld de,0x4018 call delta_frame halt ld de,0x4898 call delta_frame pop bc djnz vs4lp ret ; enter with a = attr, hl = addr vsplit_attr ld b,24 ld de,0x0018 vsplit_attr_lp rept 8 ld (hl),a inc hl endm add hl,de djnz vsplit_attr_lp ret delta_frame ld (spback+1),sp ld sp,hl ex de,hl dec hl ; initial hl (screen position) is display position - 1, ; so that a write to the first byte can be denoted by an offset of +1 xor a deltalp pop de ld b,d ld d,0 cp e jr z,delta_done add hl,de ld (hl),b jp deltalp delta_done ; transfer sp (current delta data pointer) to hl ld hl,0 add hl,sp spback ld sp,0 ret upde inc d ld a,d and 7 ret nz ld a,e add a,32 ld e,a ret c ld a,d sub 8 ld d,a ret uphl inc h ld a,h and 7 ret nz ld a,l add a,32 ld l,a ret c ld a,h sub 8 ld h,a ret
11.335664
71
0.69525
78c53f5a3cfa314927ef82282d859ec9e55655de
586
asm
Assembly
programs/oeis/311/A311426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/311/A311426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/311/A311426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A311426: Coordination sequence Gal.6.115.3 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,4,8,12,17,21,25,29,33,38,42,46,50,54,58,62,67,71,75,79,83,88,92,96,100,104,108,112,117,121,125,129,133,138,142,146,150,154,158,162,167,171,175,179,183,188,192,196,200,204 mov $1,$0 add $1,5 mov $2,$0 add $0,9 mov $4,$1 trn $4,6 add $4,6 mov $5,$4 lpb $0 sub $0,5 mov $3,5 sub $3,$5 trn $3,2 trn $0,$3 add $4,1 mov $1,$4 mov $5,1 add $5,$3 lpe lpb $2 add $1,3 sub $2,1 lpe sub $1,7
20.928571
177
0.643345
2a7d5184570489d2f6f18af11ef4fae96fd3cb3c
817
asm
Assembly
oeis/142/A142127.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142127.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142127.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142127: Primes congruent to 18 mod 37. ; Submitted by Jon Maiga ; 277,499,647,1091,1609,1831,1979,2053,2423,2719,3089,3163,3533,3607,4051,4273,4421,4643,5087,5309,5531,5827,6197,6271,6863,7159,7307,7529,7603,8269,8713,8861,9157,9601,9749,10193,10267,10711,10859,11821,11969,12043,12413,12487,13523,13597,13967,14411,14633,14929,15077,15299,15373,15817,16187,16631,16927,17519,18481,19073,19739,19813,19961,20183,20479,20627,20849,21589,21737,22699,22921,23143,23291,23957,24179,24623,24697,24919,25733,26029,26177,26251,26399,27361,27509,27583,27953,28027,28619 mov $2,$0 add $2,6 pow $2,2 mov $4,1 lpb $2 mov $3,$4 add $3,16 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,37 lpe mov $0,$4 add $0,17
35.521739
497
0.730722
588a9f9e888016c7ab1b90328d6f761f21f6da0a
6,788
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_10596_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_10596_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_10596_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xbf7f, %r13 nop sub %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm3 and $0xffffffffffffffc0, %r13 movntdq %xmm3, (%r13) nop nop nop nop xor $29765, %r10 lea addresses_A_ht+0x16979, %rcx nop nop nop sub $9114, %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm1 movups %xmm1, (%rcx) nop nop nop add %r13, %r13 lea addresses_WT_ht+0xfe39, %rsi lea addresses_UC_ht+0x3979, %rdi nop nop nop cmp %rdx, %rdx mov $113, %rcx rep movsw nop xor %rdi, %rdi lea addresses_WT_ht+0x19979, %rsi nop nop xor $3632, %rdx movb (%rsi), %r12b nop nop nop nop nop xor $51665, %r13 lea addresses_normal_ht+0x17159, %rdi sub %r10, %r10 mov $0x6162636465666768, %r11 movq %r11, %xmm2 and $0xffffffffffffffc0, %rdi movaps %xmm2, (%rdi) nop nop nop nop add $43779, %rsi lea addresses_WT_ht+0xd2f9, %rsi lea addresses_WC_ht+0x539f, %rdi clflush (%rdi) nop nop nop nop dec %r12 mov $67, %rcx rep movsw nop nop nop nop and $25110, %rdi lea addresses_WC_ht+0x4db9, %r12 nop nop nop nop nop add $40315, %r10 mov (%r12), %rdi nop nop nop nop and %r13, %r13 lea addresses_D_ht+0x1205e, %rdx nop nop nop nop nop lfence mov (%rdx), %ecx nop nop add $60067, %r12 lea addresses_D_ht+0x1df79, %r10 nop nop and %rcx, %rcx movb $0x61, (%r10) nop nop and %r11, %r11 lea addresses_WC_ht+0x734f, %r11 nop add %rdx, %rdx mov $0x6162636465666768, %r12 movq %r12, %xmm6 vmovups %ymm6, (%r11) nop nop nop sub %r11, %r11 lea addresses_WT_ht+0xb4f9, %rsi nop nop nop nop nop add %rdi, %rdi mov (%rsi), %ecx nop nop xor $22109, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rcx push %rdi push %rsi // Faulty Load lea addresses_WT+0x1d979, %rsi nop nop nop nop add %r15, %r15 movb (%rsi), %cl lea oracles, %rsi and $0xff, %rcx shlq $12, %rcx mov (%rsi,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': True, 'NT': True, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'39': 10596} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
34.810256
2,999
0.659546
b060abc884cf2a8db5e278602151d126e4180959
345
asm
Assembly
programs/oeis/063/A063099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/063/A063099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/063/A063099.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A063099: Dimension of the space of weight 2n cusp forms for Gamma_0( 31 ). ; 2,7,13,17,23,29,33,39,45,49,55,61,65,71,77,81,87,93,97,103,109,113,119,125,129,135,141,145,151,157,161,167,173,177,183,189,193,199,205,209,215,221,225,231,237,241,247,253,257,263 mov $1,$0 mul $1,16 div $1,3 mov $2,$0 cmp $2,0 add $0,$2 mod $0,3 add $0,$1 add $0,1
26.538462
180
0.672464
caaccf8c72018c2c5d90020bc1b8cbed0906ecba
4,606
asm
Assembly
src/aw60/introduction/PROG2.asm
cpjobling/eg-151-microcontrollers
0a4162837bd7b281acb6d7fae1dcb3a1a7d747d3
[ "MIT" ]
null
null
null
src/aw60/introduction/PROG2.asm
cpjobling/eg-151-microcontrollers
0a4162837bd7b281acb6d7fae1dcb3a1a7d747d3
[ "MIT" ]
4
2019-07-08T14:46:52.000Z
2019-07-23T08:57:45.000Z
src/aw60/introduction/PROG2.asm
cpjobling/eg-151-microcontrollers
0a4162837bd7b281acb6d7fae1dcb3a1a7d747d3
[ "MIT" ]
1
2019-10-21T13:58:58.000Z
2019-10-21T13:58:58.000Z
;Set-up programme for AW60 demo board ;This file contains the instructions needed to set up an assembly language programme. ;All the instructions are used to define variables and input/output devices in the ;microcontroller. So far, there are no instructions for the intended application! ;*************************************************************************************** PTAD EQU $0000 ;Port A data register PTADD EQU $0001 ;Port A DDR PTBD EQU $0002 ;Port B data register PTBDD EQU $0003 ;Port B DDR PTFD EQU $000A ;Port F data register PTFDD EQU $000B ;Port F DDR ICGC1 EQU $0048 ;Control for system clock ICGC2 EQU $0049 ;Control for system clock SOPT1 EQU $1802 ;Misc controls inc COP PTAPE EQU $1840 ;Pull ups for port A ;*************************************************************************************** VARIABLES EQU $0080 ;Start address in RAM for variables PROGRAMME EQU $8000 ;Start address in ROM for programme STACK EQU $0100 ;Start address for the top of the stack VECTORS EQU $FFFE ;Start address for reset vector ;*************************************************************************************** ORG VARIABLES COUNT0 RMB 1 ;Variable for inner loop of delay COUNT1 RMB 1 ;Variable for outer loop of delay ;The names COUNT0 and COUNT1 refer to memory locations which will be used as variables ;in our programme. Some assembler/compilers used the directive DS.B (data segment) ;instead of RMB (reserve memory bytes). ;*************************************************************************************** ORG PROGRAMME ;Set the programme counter START LDHX #STACK ;Set the stack pointer TXS ;The above two lines set the stack pointer to an address in RAM above the variables, ;preferably at the top of RAM. The stack is used to store the return address during ;a subroutine call and to store internal registers during an interrupt service. LDA SOPT1 ;Turn off the watchdog AND #%01111111 ORA #%00000001 STA SOPT1 ;The four lines above are used to disable a feature of the microcontroller, variously ;known as the "watchdog timer" or "computer operating properly" (COP). The watchdog is ;used to force a reset if the microcontroller programme crashes or goes into a loop. ;The watchdog is not a good idea while writing programmes, so it is usual to turn it ;off until the programme is finally finished and debugged. LDA #%01110100 ;Select external crystal STA ICGC1 ;The AW60 microcontroller has an internal oscillator of about 8 MHz, but for accurate ;timing it is preferable to use an external oscillator or a quartz crystal. The two lines ;above select the external 4 MHz crystal fitted to the demo board. JSR SHORT_DELAY ;Start up delay for crystal ;The quart crystal may take several milliseconds to "settle down" so a delay is included ;in the programme until the crystal oscillator is ready. LDA #%11111111 ;Set all the pins of port F as outputs STA PTFDD ;By default the ports of the microcontroller are all inputs. Any pin can be turned into an output by putting a logic "1" in the corresponding bit position of the data direction ;register assigned to that port. ; This is the start of the assembly language code. ; Our application programme will go here eventually. ORG VECTORS FDB START ;The vectors are used to direct the microcontroller to the appropriate memory location ;when events take place. The most powerful external event is the reset button, which ;takes precedence over everything else. ;When the reset button is pressed, the response of the microcontroller is to look in ;memory location $FFFE,$FFFF (the last two bytes in memory) and then jump to the 16 bit ;bit address contained in those locations. Our programme must pre-load the last two bytes ;with the place in memory that execution must start. This is achieved using an ORG pseudo ;operation followed by the pseudo operation FDB (form double byte) or DC.W (define ;constant word) on more recent assembler/compilers. ;*************************************************************************************** ;After running the above instructions, the microcontroller should be in an orderly state ;and ready to run our application programme. ;***************************************************************************************
40.052174
90
0.639166
42df6f0a76dd59b2aa2673771aed6ca756dbd34a
5,450
asm
Assembly
vbox/src/VBox/Runtime/r0drv/os2/timerA-r0drv-os2.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/Runtime/r0drv/os2/timerA-r0drv-os2.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/Runtime/r0drv/os2/timerA-r0drv-os2.asm
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
; $Id: timerA-r0drv-os2.asm 69218 2017-10-24 14:57:36Z vboxsync $ ;; @file ; IPRT - DevHelp_VMGlobalToProcess, Ring-0 Driver, OS/2. ; ; ; Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net> ; ; 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. ; ;******************************************************************************* ;* Header Files * ;******************************************************************************* %define RT_INCL_16BIT_SEGMENTS %include "iprt/asmdefs.mac" %include "iprt/err.mac" ;******************************************************************************* ;* External Symbols * ;******************************************************************************* extern KernThunkStackTo32 extern KernThunkStackTo16 extern NAME(rtTimerOs2Tick) extern NAME(RTErrConvertFromOS2) BEGINDATA16 extern NAME(g_fpfnDevHlp) ;******************************************************************************* ;* Defined Constants And Macros * ;******************************************************************************* %define DevHlp_SetTimer 01dh %define DevHlp_ResetTimer 01eh BEGINCODE ;; ; Arms the our OS/2 timer. ; ; @returns IPRT status code. ; BEGINPROC_EXPORTED rtTimerOs2Arm call KernThunkStackTo16 push ebp mov ebp, esp ; jump to the 16-bit code. ;jmp far dword NAME(rtTimerOs2Arm_16) wrt CODE16 db 066h db 0eah dw NAME(rtTimerOs2Arm_16) wrt CODE16 dw CODE16 BEGINCODE16 GLOBALNAME rtTimerOs2Arm_16 ; setup and do the call push ds push es mov dx, DATA16 mov ds, dx mov es, dx mov ax, NAME(rtTimerOs2TickAsm) wrt CODE16 mov dl, DevHlp_SetTimer call far [NAME(g_fpfnDevHlp)] pop es pop ds ;jmp far dword NAME(rtTimerOs2Arm_32) wrt FLAT db 066h db 0eah dd NAME(rtTimerOs2Arm_32) ;wrt FLAT dw TEXT32 wrt FLAT BEGINCODE GLOBALNAME rtTimerOs2Arm_32 jc .error xor eax, eax .done: leave push eax call KernThunkStackTo32 pop eax ret ; convert the error code. .error: and eax, 0ffffh call NAME(RTErrConvertFromOS2) jmp .done ENDPROC rtTimerOs2Arm ;; ; Dearms the our OS/2 timer. ; ; @returns IPRT status code. ; BEGINPROC_EXPORTED rtTimerOs2Dearm call KernThunkStackTo16 push ebp mov ebp, esp ; jump to the 16-bit code. ;jmp far dword NAME(rtTimerOs2Dearm_16) wrt CODE16 db 066h db 0eah dw NAME(rtTimerOs2Dearm_16) wrt CODE16 dw CODE16 BEGINCODE16 GLOBALNAME rtTimerOs2Dearm_16 ; setup and do the call push ds push es mov dx, DATA16 mov ds, dx mov es, dx mov ax, NAME(rtTimerOs2TickAsm) wrt CODE16 mov dl, DevHlp_ResetTimer call far [NAME(g_fpfnDevHlp)] pop es pop ds ;jmp far dword NAME(rtTimerOs2Dearm_32) wrt FLAT db 066h db 0eah dd NAME(rtTimerOs2Dearm_32) ;wrt FLAT dw TEXT32 wrt FLAT BEGINCODE GLOBALNAME rtTimerOs2Dearm_32 jc .error xor eax, eax .done: ; epilogue leave push eax call KernThunkStackTo32 pop eax ret ; convert the error code. .error: and eax, 0ffffh call NAME(RTErrConvertFromOS2) jmp .done ENDPROC rtTimerOs2Dearm BEGINCODE16 ;; ; OS/2 timer tick callback. ; BEGINPROC rtTimerOs2TickAsm push ds push es push ecx push edx push eax mov ax, DATA32 wrt FLAT mov ds, ax mov es, ax ;jmp far dword NAME(rtTimerOs2TickAsm_32) wrt FLAT db 066h db 0eah dd NAME(rtTimerOs2TickAsm_32) ;wrt FLAT dw TEXT32 wrt FLAT BEGINCODE GLOBALNAME rtTimerOs2TickAsm_32 call KernThunkStackTo32 call NAME(rtTimerOs2Tick) call KernThunkStackTo16 ;jmp far dword NAME(rtTimerOs2TickAsm_16) wrt CODE16 db 066h db 0eah dw NAME(rtTimerOs2TickAsm_16) wrt CODE16 dw CODE16 BEGINCODE16 GLOBALNAME rtTimerOs2TickAsm_16 pop eax pop edx pop ecx pop es pop ds retf ENDPROC rtTimerOs2TickAsm
24.885845
80
0.585321
443a442ae9cea5ecdbd6504fd8d8a4e7c9997ca1
1,292
asm
Assembly
programs/oeis/293/A293552.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/293/A293552.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/293/A293552.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A293552: a(n) is the least integer k such that k/Fibonacci(n) > 1/4. ; 0,1,1,1,1,2,2,4,6,9,14,23,36,59,95,153,247,400,646,1046,1692,2737,4428,7165,11592,18757,30349,49105,79453,128558,208010,336568,544578,881145,1425722,2306867,3732588,6039455,9772043,15811497,25583539,41395036,66978574,108373610,175352184,283725793,459077976,742803769,1201881744,1944685513,3146567257,5091252769,8237820025,13329072794,21566892818,34895965612,56462858430,91358824041,147821682470,239180506511,387002188980,626182695491,1013184884471,1639367579961,2652552464431,4291920044392,6944472508822,11236392553214,18180865062036,29417257615249,47598122677284,77015380292533,124613502969816,201628883262349,326242386232165,527871269494513,854113655726677,1381984925221190,2236098580947866,3618083506169056,5854182087116922 mov $13,$0 mov $15,2 lpb $15,1 clr $0,13 mov $0,$13 sub $15,1 add $0,$15 sub $0,1 mov $7,$0 mov $9,$0 mov $10,$0 lpb $9,1 clr $0,7 mov $0,$7 sub $9,1 sub $0,$9 add $6,2 lpb $0,1 sub $0,1 add $6,$3 mov $3,$1 mov $1,$6 lpe mov $5,$6 sub $5,2 div $5,8 add $8,$5 lpe mov $1,$8 add $1,$10 mov $16,$15 lpb $16,1 mov $14,$1 sub $16,1 lpe lpe lpb $13,1 mov $13,0 sub $14,$1 lpe mov $1,$14
28.711111
728
0.702012
4f9a9040dd5bdc4e07556dc2ad4fdf4b1387391f
3,894
asm
Assembly
CRYLINE v5.0/BOOTLOADER/SOURCE/bannerLoader.asm
DarxiSR/CRYLINE
854ffb2002dc780e8a59dc845efa83464a7137a7
[ "MIT" ]
26
2021-02-14T18:34:39.000Z
2021-12-06T08:17:42.000Z
CRYLINE v5.0/BOOTLOADER/SOURCE/bannerLoader.asm
DarxiSR/CRYLINE
854ffb2002dc780e8a59dc845efa83464a7137a7
[ "MIT" ]
null
null
null
CRYLINE v5.0/BOOTLOADER/SOURCE/bannerLoader.asm
DarxiSR/CRYLINE
854ffb2002dc780e8a59dc845efa83464a7137a7
[ "MIT" ]
3
2021-05-22T20:06:57.000Z
2021-07-27T16:02:16.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;; CRYLINE PROJECT 2020 ;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;; by @DarxiS ;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;; v5.0 ;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;; - BANNER LOADER - ;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; bits16 ; <= Compiler options. Compile to .bin file extension org 0x7c00 ; <= Reserve RAM address 0x0000:0x7c000 [SEGMENT:OFFSET] mov ax, cx ; <= Clean AX register cli ; <= Interrupt off mov es, ax ; <= Clean ES segment, change memory address to 0x0000 [ES = 0x0000] mov ds, ax ; <= Clean data segment, change memory address to 0x0000 [DS = 0x0000] mov ss, ax ; <= Clean stack segment, change memory address to 0x0000 [SS = 0x0000] mov fs, ax ; <= Clean FS segment, change memory address to 0x0000 [FS = 0x0000] mov gs, ax ; <= Clean GS segment, change memory address to 0x0000 [GS = 0x0000] sti ; <= Interrupt on jmp silentMode ; <= Jump to function 'silentMode' silentMode: mov bx, 0xAAAA ; <= Set segment address to BX register mov es, bx ; <= Move BX register to ES segment register | ES = 0xAAAA mov bx, 0 ; <= Set 0x0000 offset to BX mov ah, 0x03 ; <= Set function 'writing' in 13h interrupt mov al, 3 ; <= Set 'how sectors write of hard drive' mov dh, 0 ; <= Set header of hard drive mov ch, 0 ; <= Set cylinder of hard drive mov cl, 4 ; <= Set start sector int 0x13 ; <= Use 13h interrupt jc silentMode ; <= If error -> Try to writing again jmp loadingEncryptor ; <= Jump to function 'loadingEncryptor' loadingEncryptor: ; <= Function 'loadingEncryptor' mov bx, 0x1000 ; <= Set memory address [Segment] for reading hard drive sector in this memory segment mov es, bx ; <= Move this sector to ES register [ES segment register] mov bx, 0 ; <= Move to BX offset number | So, this function reading hard drive and uploading readed bytecode to RAM address: 0x1000:0x0000 mov ah, 0x02 ; <= Set function 'Reading' of 13h interrupt | AH = 0x02 - Reading, AH = 0x03 - Writing mov al, 2 ; <= Set 'How many sesctors reading' mov dh, 0 ; <= Set hard drive header mov ch, 0 ; <= Set hard drive cylinder mov cl, 2 ; <= Set pointer for start reading | SetFilePointer(third sector of hard drive); int 0x13 ; <= Use 13h interrupt jc loadingEncryptor ; <= If error - reading again ; <= Else... mov ax, 0x1000 ; <= Move to AX new segment [RAM address] mov ds, ax ; <= Move this segment to DS segment register | Set DS = 0x1000 mov es, ax ; <= Move this segment to ES segment register | Set ES = 0x1000 mov fs, ax ; <= Move this segment to FS segment register | Set FS = 0x1000 mov gs, ax ; <= Move this segment to GS segment register | Set GS = 0x1000 mov ss, ax ; <= Move this segment to SS segment register | Set SS = 0x1000 jmp 0x1000:0 ; <= Jump to Encryptor memory address [SEGMENT:OFFSET] times 510-($-$$) db 0 ; <= Add some null bytes to 510 bytes, because size of MBR - 512 bytes [GENERAL PART, 446 bytes] + [PARTITION TABLE, 64 bytes] + [MBR SIGNATURE, 2 bytes] dw 0xAA55 ; <= Add 2 bytes MBR signature
64.9
185
0.498716
eb871d6bf20ef22319f29196f8a4e86808852dcb
424
asm
Assembly
oeis/110/A110444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
oeis/110/A110444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
oeis/110/A110444.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
; A110444: Binary expansion of A074988. ; Submitted by Jon Maiga ; 1,11,111,1110,11101,111011,1110111,11101110,111011100,1110111001,11101110011,111011100110,1110111001101,11101110011011,111011100110111,1110111001101110,11101110011011101,111011100110111010 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,8966 ; a(n) = 1 if n is squarefree, otherwise 0. mul $1,10 add $1,$0 lpe mov $0,$1
24.941176
190
0.731132
247082be8134e49e16006a510aaba6871fd08cf2
2,797
asm
Assembly
src/Model.asm
gschizas/amstrad-diagnostics
9eeab20d8042977500e93cd138062f7ae3d42939
[ "MIT" ]
60
2021-02-21T16:16:40.000Z
2022-02-28T09:15:08.000Z
src/Model.asm
gschizas/amstrad-diagnostics
9eeab20d8042977500e93cd138062f7ae3d42939
[ "MIT" ]
null
null
null
src/Model.asm
gschizas/amstrad-diagnostics
9eeab20d8042977500e93cd138062f7ae3d42939
[ "MIT" ]
10
2021-02-27T19:02:15.000Z
2022-03-06T16:53:09.000Z
MODULE DETECT ;; Useful info from here: ;; http://www.cpcwiki.eu/forum/programming/how-do-i-detect-a-cpc-plus-in-assembly/ @ModelNames: TxtUnknown: db "UNKNOWN CPC", 0 TxtModelCPC464: db "CPC 464", 0 TxtModelCPC664: db "CPC 664", 0 TxtModelCPC6128: db "CPC 6128", 0 ;;TxtModel464Plus: db "464 PLUS", 0 ;;TxtModel6128PLUS: db "6128 PLUS", 0 ;;TxtModelGX4000: db "GX4000", 0 TxtModelPlusRange: db "PLUS/GX4000", 0 ;; Offsets from ModelNames @ModelNameTableOffset: db 0 db TxtModelCPC464 - TxtUnknown db TxtModelCPC664 - TxtUnknown db TxtModelCPC6128 - TxtUnknown db TxtModelPlusRange - TxtUnknown db TxtModelPlusRange - TxtUnknown db TxtModelPlusRange - TxtUnknown @MODEL_UNKNOWNCPC EQU 0 @MODEL_CPC464 EQU 1 @MODEL_CPC664 EQU 2 @MODEL_CPC6128 EQU 3 @MODEL_464PLUS EQU 4 @MODEL_C6128PLUS EQU 5 @MODEL_GX4000 EQU 6 ;; OUT: (ModelType) - best guess about the Amstrad model ;; (KeyboardLanguage) - keyboard language on CPC models @DetectModel: ;; First see if it's a Plus/GX4000 call UnlockPlus call CanAccessPlusASIC jr z, .notPlus ;; TODO: Tell 464, 6128, and GX4000 apart ld a, MODEL_C6128PLUS ld (ModelType), a ;; We can't tell the keyboard language on Plus models, so leave it as English by default jr .englishKeyboard .notPlus: ld ix, #0006 call ReadFromLowerROM ld a, l cp #91 jr nz, .not6128 ld a, h cp #05 jr nz, .not6128 ;; 6128 ld a, MODEL_CPC6128 ld (ModelType), a ld ix, #069E call ReadFromLowerROM ;; Check that the word we read is 'x3' where x is the language. If the 3 isn't there, leave it in English ld a, h cp '3' jr nz, .englishKeyboard jr .checkLanguageFromVersionString .not6128:: ld ix, #0683 call ReadFromLowerROM ld a, h ;; 464 or 664 cp '2' jr nz, .not664 ;; 664 ld a, MODEL_CPC664 ld (ModelType), a jr .englishKeyboard ;; 464 .not664: ld ix, #0682 call ReadFromLowerROM ld a, h cp '1' jr z, .Is464 ld a, MODEL_UNKNOWNCPC ld (ModelType), a jr .englishKeyboard .Is464: ld a, MODEL_CPC464 ld (ModelType), a .checkLanguageFromVersionString: ld a, l cp 's' jr z, .spanishKeyboard ld a, l cp 'f' jr z, .frenchKeyboard ;;jr .englishKeyboard .englishKeyboard: ld a, KEYBOARD_LANGUAGE_ENGLISH ld (KeyboardLanguage), a ret .spanishKeyboard: ld a, KEYBOARD_LANGUAGE_SPANISH ld (KeyboardLanguage), a ret .frenchKeyboard: ld a, KEYBOARD_LANGUAGE_FRENCH ld (KeyboardLanguage), a ret // http://cpctech.cpc-live.com/docs/arnold5a.html UnlockPlus: ld b, #BC ld hl, PlusUnlockSequence ld d, PlusUnlockSequenceLen .loop: inc b outi dec d jr nz, .loop ret PlusUnlockSequence: defb #FF, #00, #FF, #77, #B3, #51, #A8, #D4, #62, #39, #9C, #46, #2B, #15, #8A, #CD, #EE PlusUnlockSequenceLen EQU $-PlusUnlockSequence ENDMODULE
18.523179
106
0.703253
42fa5898d6d048f54f0b66ef809290c0aafb6e90
98
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acosh.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acosh.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/acosh.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 PUBLIC _acosh EXTERN cam32_sdcc_acosh defc _acosh = cam32_sdcc_acosh
14
31
0.826531
27e9abba068bc4f0d1b6c62947809fb3d0157207
215
asm
Assembly
programs/oeis/133/A133653.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/133/A133653.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133653.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133653: A007318^(-1) * A003261. ; 1,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154 mul $0,4 bin $1,$0 sub $0,$1 add $0,2 mov $1,$0
23.888889
130
0.637209
6d3209053b67c817b969a5eeb9b235ec9d653621
5,471
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_331.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.log_21829_331.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.log_21829_331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rcx push %rdi push %rdx lea addresses_A_ht+0x1b57, %r11 nop cmp %rdi, %rdi movw $0x6162, (%r11) nop nop nop sub $19122, %rdi lea addresses_D_ht+0xdc27, %rcx nop nop nop nop and $3881, %rdx movl $0x61626364, (%rcx) sub $60474, %r10 lea addresses_A_ht+0x15827, %r15 nop nop nop dec %rcx movb $0x61, (%r15) nop nop nop nop nop add $55041, %r11 lea addresses_D_ht+0x1d7e7, %rdi nop nop nop and $33361, %r13 mov (%rdi), %r10d nop nop dec %r11 lea addresses_A_ht+0x5c4f, %r11 nop nop nop inc %rdx mov (%r11), %rdi nop nop nop nop nop xor %r11, %r11 lea addresses_WT_ht+0x16fc7, %r15 nop nop nop nop nop add $51868, %r11 movups (%r15), %xmm7 vpextrq $1, %xmm7, %r13 nop add $64966, %rdi lea addresses_UC_ht+0xede7, %rcx nop nop nop nop and %rdx, %rdx mov (%rcx), %r13d nop nop xor $6174, %rdx pop %rdx pop %rdi pop %rcx pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rax // Faulty Load lea addresses_D+0x157e7, %r15 nop nop dec %r10 vmovups (%r15), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r14 lea oracles, %rax and $0xff, %r14 shlq $12, %r14 mov (%rax,%r14,1), %r14 pop %rax pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'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 */
41.763359
2,999
0.656187
a1e753543a943fa69cb879fd555b4cbf632401b4
1,503
asm
Assembly
gfx/tilesets/snowpoint_temple_palette_map.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
gfx/tilesets/snowpoint_temple_palette_map.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
gfx/tilesets/snowpoint_temple_palette_map.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
tilepal 0, BROWN, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 0, ROOF, BROWN, ROOF, ROOF, BROWN, BROWN, WATER, WATER tilepal 0, BROWN, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 0, ROOF, ROOF, ROOF, ROOF, BROWN, BROWN, WATER, WATER tilepal 0, WATER, ROOF, ROOF, ROOF, ROOF, ROOF, GRAY, GRAY tilepal 0, WATER, WATER, ROOF, ROOF, WATER, WATER, WATER, WATER tilepal 0, BROWN, WATER, WATER, WATER, WATER, WATER, GRAY, GRAY tilepal 0, WATER, WATER, ROOF, ROOF, GRAY, GRAY, WATER, WATER tilepal 0, YELLOW, YELLOW, YELLOW, YELLOW, GREEN, GRAY, GRAY, WATER tilepal 0, WATER, WATER, WATER, WATER, WATER, WATER, WATER, WATER tilepal 0, BROWN, BROWN, GRAY, GRAY, WATER, WATER, WATER, WATER tilepal 0, WATER, WATER, WATER, WATER, WATER, WATER, WATER, WATER rept 32 db $ff endr tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, GREEN, GREEN tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, GREEN, GREEN tilepal 1, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF, ROOF
50.1
68
0.690619
56b89802b39ca334a0c6faf8cc842b2f87349bab
4,339
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_924.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.log_21829_924.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.log_21829_924.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %rdx lea addresses_A_ht+0x1c51d, %r14 nop nop add %r15, %r15 mov $0x6162636465666768, %rdx movq %rdx, %xmm4 vmovups %ymm4, (%r14) nop nop nop nop nop xor %r15, %r15 pop %rdx pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %rax push %rdx push %rsi // Store lea addresses_UC+0x1329d, %rdx nop nop sub $8536, %r13 movw $0x5152, (%rdx) nop nop nop inc %r12 // Faulty Load lea addresses_US+0xea9d, %rax clflush (%rax) nop nop nop nop inc %r13 vmovups (%rax), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdx lea oracles, %r13 and $0xff, %rdx shlq $12, %rdx mov (%r13,%rdx,1), %rdx pop %rsi pop %rdx pop %rax pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
54.924051
2,999
0.662134
8116591aab32f5aad1f0dec9aed5b45600748624
562
asm
Assembly
programs/oeis/331/A331473.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/331/A331473.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/331/A331473.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A331473: Alternating sum of (n+1)*A000108(n+1). ; 1,3,12,44,166,626,2377,9063,34695,133265,513381,1982763,7674937,29767223,115655452,450067268,1753894162,6843602438,26734398172,104548010228,409243597192,1603372802888,6286998311062,24670701224714,96877958811586,380673221064366 mov $3,2 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 add $0,$3 mov $4,0 lpb $0 mov $5,$0 sub $0,1 mul $5,2 bin $5,$0 trn $0,1 add $4,$5 lpe mov $2,$3 mov $5,$4 lpb $2 mov $1,$5 sub $2,1 lpe lpe lpb $6 sub $1,$5 mov $6,0 lpe mov $0,$1
18.129032
228
0.637011
a174a2ef9abc9b345a737f2d66ed9844de972575
7,632
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x137f4, %rbx nop nop sub %rbp, %rbp mov $0x6162636465666768, %r11 movq %r11, (%rbx) nop cmp $916, %rdi lea addresses_normal_ht+0x19f6f, %r8 nop nop nop nop add %r9, %r9 mov (%r8), %r12w nop nop sub %rdi, %rdi lea addresses_WT_ht+0x11d9f, %rsi lea addresses_normal_ht+0x1ed9f, %rdi nop nop nop nop sub %rbx, %rbx mov $115, %rcx rep movsq nop nop nop nop add $44609, %r9 lea addresses_A_ht+0xc99f, %r9 clflush (%r9) nop nop nop nop lfence mov (%r9), %r11 nop nop mfence lea addresses_WC_ht+0x1235f, %rdi nop nop and %r9, %r9 mov (%rdi), %r11 sub $21797, %rdi lea addresses_A_ht+0xb99f, %rsi lea addresses_WC_ht+0x1829f, %rdi clflush (%rdi) nop nop nop nop nop sub %r12, %r12 mov $52, %rcx rep movsq nop nop nop and %r8, %r8 lea addresses_WT_ht+0xea9f, %rsi nop nop nop nop inc %r12 movups (%rsi), %xmm4 vpextrq $0, %xmm4, %r8 nop nop nop nop inc %r9 lea addresses_WC_ht+0x59f, %rsi nop xor %rbp, %rbp movb (%rsi), %r9b nop dec %rbx lea addresses_WC_ht+0x479f, %rsi lea addresses_normal_ht+0x1099f, %rdi nop nop nop nop nop add $39543, %r8 mov $39, %rcx rep movsw nop dec %rbx lea addresses_UC_ht+0xbd9f, %r11 nop cmp $19812, %rbx movb $0x61, (%r11) nop nop nop xor $42694, %rcx lea addresses_A_ht+0x1c59f, %r12 nop nop xor %rbp, %rbp movw $0x6162, (%r12) nop nop nop inc %r9 lea addresses_UC_ht+0x1359f, %r9 nop nop nop nop and %rsi, %rsi movw $0x6162, (%r9) dec %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi // REPMOV lea addresses_PSE+0xaf3f, %rsi lea addresses_A+0x14d9f, %rdi clflush (%rdi) nop and $54240, %r14 mov $94, %rcx rep movsl nop nop nop nop sub %rdi, %rdi // Store lea addresses_D+0x1490f, %rsi clflush (%rsi) sub %r9, %r9 movl $0x51525354, (%rsi) nop and $57305, %rsi // Store lea addresses_WT+0x16d96, %rsi nop nop nop cmp $40178, %rcx movb $0x51, (%rsi) nop nop nop mfence // Faulty Load lea addresses_A+0x10d9f, %r10 nop nop nop nop add $11607, %r9 mov (%r10), %rsi lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_PSE'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 4}} {'dst': {'same': True, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 6}} {'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 11}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'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 */
32.755365
2,999
0.654612
838183ef31d9b39397a58e05d16c7f79587fed98
6,489
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca_notsx.log_21829_1446.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca_notsx.log_21829_1446.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca_notsx.log_21829_1446.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x368, %r12 nop nop nop nop add %r14, %r14 and $0xffffffffffffffc0, %r12 vmovaps (%r12), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r13 nop nop nop and $2610, %r15 lea addresses_WT_ht+0x1c4bc, %r12 clflush (%r12) nop nop inc %r9 mov $0x6162636465666768, %rbp movq %rbp, %xmm6 movups %xmm6, (%r12) nop nop nop nop cmp $20373, %r15 lea addresses_D_ht+0x18168, %rsi lea addresses_WC_ht+0x143e8, %rdi clflush (%rsi) nop nop nop nop add %r12, %r12 mov $82, %rcx rep movsb cmp $16605, %r9 lea addresses_A_ht+0x8b40, %rsi lea addresses_WT_ht+0xff08, %rdi nop nop nop nop and $46117, %r13 mov $100, %rcx rep movsq nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x9988, %rsi lea addresses_WC_ht+0x10bad, %rdi nop nop nop nop cmp %r13, %r13 mov $120, %rcx rep movsb nop nop nop nop nop sub %r14, %r14 lea addresses_A_ht+0x9df4, %r9 nop nop nop nop cmp $44622, %r13 mov $0x6162636465666768, %r15 movq %r15, %xmm5 and $0xffffffffffffffc0, %r9 vmovntdq %ymm5, (%r9) nop nop nop add $17304, %r12 lea addresses_UC_ht+0xe768, %r15 nop nop inc %r13 mov (%r15), %si nop nop nop and %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rax push %rbp push %rbx push %rdx // Load lea addresses_RW+0x1090, %rbx add %rax, %rax movups (%rbx), %xmm3 vpextrq $0, %xmm3, %rdx nop nop nop dec %rax // Store lea addresses_RW+0x3d68, %rbp cmp %r10, %r10 mov $0x5152535455565758, %rax movq %rax, %xmm1 movups %xmm1, (%rbp) nop nop nop add $63017, %rbx // Faulty Load lea addresses_RW+0x3d68, %r15 clflush (%r15) nop nop inc %r11 movups (%r15), %xmm2 vpextrq $1, %xmm2, %rax lea oracles, %r15 and $0xff, %rax shlq $12, %rax mov (%r15,%rax,1), %rax pop %rdx pop %rbx pop %rbp pop %rax pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'congruent': 5, 'same': True, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.459016
2,999
0.660502
96e72045c7c0c755a87c8f73b1c2813fc1c7e318
709
asm
Assembly
oeis/203/A203579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/203/A203579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/203/A203579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A203579: Exponential (or binomial) convolution of A000032 (Lucas) with itself, divided by 2. ; Submitted by Jon Maiga ; 2,2,7,17,57,177,577,1857,6017,19457,62977,203777,659457,2134017,6905857,22347777,72318977,234029057,757334017,2450784257,7930904577,25664946177,83053510657,268766806017,869747654657,2814562533377,9108115685377,29474481504257,95381425750017,308660777517057,998847258034177,3232337626136577,10460064284409857,33849479073366017,109539215284371457,354476346862206977,1147109554861899777,3712124497172627457,12012687213792854017,38873872416276217857,125798493687723851777,407092477040552574977 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $2,5 add $3,$1 add $1,$2 lpe mov $0,$3 add $0,1
47.266667
490
0.826516
6a75df852c159f8bd0d4c97e132de2becb63945b
406
asm
Assembly
oeis/140/A140652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/140/A140652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/140/A140652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A140652: Partial sums of A062968. ; Submitted by Christian Krause ; 1,2,4,6,10,13,19,24,31,38,48,55,67,78,90,102,118,131,149,164,182,201,223,240,263,286,310,333,361,384,414,441,471,502,534,562,598,633,669,702,742,777,819,858,898,941,987,1026,1073,1118,1166,1213,1265,1312 mov $1,1 mov $3,$0 lpb $3 mul $1,$3 cmp $2,0 add $5,$2 div $1,$5 add $4,$1 mov $1,$5 sub $3,1 lpe mov $0,$4 add $0,1
22.555556
205
0.652709
108fc5188ffa2150cfab766b28ed3d278ea1a7c6
212
asm
Assembly
PRG/objects/C025.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/C025.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/C025.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_ROTODISCCCLOCKWISE, $0D, $14 .byte OBJ_ROTODISCCLOCKWISE, $13, $14 .byte OBJ_ROTODISCCCLOCKWISE, $26, $16 .byte OBJ_ROTODISCCLOCKWISE, $29, $16 .byte $FF ; Terminator
26.5
39
0.726415
8010896724d93b25486e3550467f1820e19a33f5
728
asm
Assembly
libsrc/genmath/minusbc.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/genmath/minusbc.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/genmath/minusbc.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; Z88dk Generic Floating Point Math Library ; ; Complement FASIGN and negate the fraction c ix de b ; ; $Id: minusbc.asm,v 1.1 2002/01/21 20:35:22 dom Exp $: XLIB minusbc XREF fasign .MINUSBC LD HL,FASIGN LD A,(HL) CPL LD (HL),A XOR A LD L,A LD H,A SUB B LD B,A LD A,L SBC HL,DE EX DE,HL LD L,A DEFB $DD SBC A,L DEFB $DD LD L,A LD A,L DEFB $DD SBC A,H DEFB $DD LD H,A LD A,L SBC A,C LD C,A RET
18.2
61
0.366758
2ef69a9cbb461d95d633287506dfd4a2f1b01ac5
851
asm
Assembly
programs/oeis/103/A103439.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/103/A103439.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/103/A103439.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A103439: a(n) = Sum_{i=0..n-1} Sum_{j=0..i} (i-j+1)^j. ; 0,1,3,7,16,39,105,315,1048,3829,15207,65071,297840,1449755,7468541,40555747,231335960,1381989881,8623700811,56078446615,379233142800,2662013133295,19362917622001,145719550012299,1133023004941272,9090156910550109,75161929739797519,639793220877941503,5600832312222372720,50376017391266560675,465123579408734512197,4404799679478210715955,42752343051525066868568,424964703596141025889057,4323215747841205835739827,44982239091334662367218407,478398674455544712638834064,5197596607369878355927340599,57655539234213483824861574393,652649034938192258819142307291,7535362167278005846554944496280,88697283623250985604548797254469,1063907634672938784709823820053559,12998690194015441791518818429864911,161703842441023729656284184702168688 seq $0,104879 ; Row sums of a sum-of-powers triangle. sub $0,1
141.833333
729
0.887192
e7f8e197ea651a07e28d98459ef0755cd12963ea
391
asm
Assembly
programs/oeis/104/A104706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/104/A104706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/104/A104706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A104706: First terms in the rearrangements of integer numbers (see comments). ; 1,2,3,1,4,5,1,2,6,1,7,3,1,2,8,1,9,4,1,2,10,1,3,11,1,2,5,1,12,13,1,2,3,1,4,6,1,2,14,1,15,3,1,2,7,1,5,4,1,2,16,1,3,17,1,2,8,1,18,6,1,2,3,1,4,19,1,2,5,1,9,3,1,2,20,1,21,4,1,2,7,1,3,10,1,2,22,1,5,6,1,2,3,1,4,23,1,2,11,1 mul $0,2 add $0,1 mov $1,1 lpb $0 add $1,1 div $0,$1 mul $0,$1 lpe sub $1,1 mov $0,$1
27.928571
217
0.578005
507b43e1d3936e41c4516caff6c822fd0925b3fe
4,802
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_3_15.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_3_15.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_3_15.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1a1f2, %r9 nop inc %rax mov $0x6162636465666768, %rcx movq %rcx, %xmm6 movups %xmm6, (%r9) nop nop nop nop and $52467, %rsi lea addresses_normal_ht+0x1b0b2, %rsi nop and $26216, %r12 movups (%rsi), %xmm6 vpextrq $0, %xmm6, %rbp nop nop sub $43723, %rax lea addresses_UC_ht+0x156d0, %r9 inc %rcx movb $0x61, (%r9) nop nop nop nop nop and $35305, %rcx lea addresses_UC_ht+0x8892, %r12 nop nop and $854, %rcx mov $0x6162636465666768, %rax movq %rax, (%r12) nop nop nop nop add $42097, %rcx lea addresses_D_ht+0x7bf2, %rsi nop nop nop nop and $65364, %r8 movb (%rsi), %al nop nop nop nop add $51382, %rbp lea addresses_normal_ht+0x13cf2, %rcx nop nop nop nop nop xor %rax, %rax and $0xffffffffffffffc0, %rcx movntdqa (%rcx), %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop nop nop and $48758, %rax lea addresses_UC_ht+0xde52, %rbp nop inc %r9 movb $0x61, (%rbp) nop cmp %r9, %r9 lea addresses_UC_ht+0x1204a, %rsi lea addresses_A_ht+0xe7c7, %rdi nop nop nop nop nop cmp $25348, %rax mov $53, %rcx rep movsw nop nop nop and $43226, %rdi lea addresses_UC_ht+0x54db, %rsi lea addresses_D_ht+0x99f2, %rdi nop nop nop nop nop xor $31348, %r8 mov $75, %rcx rep movsl nop nop nop add %r9, %r9 lea addresses_WC_ht+0xd7ec, %rdi nop nop nop and %r9, %r9 vmovups (%rdi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rbp nop nop nop nop and %r9, %r9 lea addresses_UC_ht+0x7ff2, %rcx nop nop nop nop nop cmp $15866, %rbp mov (%rcx), %ax nop nop nop nop nop cmp $5878, %rbp lea addresses_UC_ht+0x83e6, %rsi clflush (%rsi) nop nop sub $37098, %rbp mov (%rsi), %r8 xor $42373, %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r15 push %r9 push %rbp push %rcx // Store lea addresses_A+0x1f242, %r14 clflush (%r14) nop nop nop nop xor %r13, %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm4 movaps %xmm4, (%r14) add %rcx, %rcx // Store lea addresses_US+0x6382, %rcx cmp $3269, %r9 movw $0x5152, (%rcx) nop nop nop add %r14, %r14 // Load lea addresses_PSE+0x17aea, %rbp nop nop nop cmp %r14, %r14 vmovups (%rbp), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r13 nop nop nop nop dec %r13 // Faulty Load lea addresses_A+0x1cdf2, %rbp nop nop sub $8112, %r9 mov (%rbp), %rcx lea oracles, %r10 and $0xff, %rcx shlq $12, %rcx mov (%r10,%rcx,1), %rcx pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_US', 'congruent': 4}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_PSE', 'congruent': 2}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 8}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 6}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 2}} {'00': 3} 00 00 00 */
19.441296
147
0.645356
b82d00f2a18ea88ad4d371da91f1f1650301175a
528
asm
Assembly
programs/oeis/114/A114186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/114/A114186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/114/A114186.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A114186: Running sums of consecutive integers with all primes set to 2. ; 0,1,3,5,9,11,17,19,27,36,46,48,60,62,76,91,107,109,127,129,149,170,192,194,218,243,269,296,324,326,356,358,390,423,457,492,528,530,568,607,647,649,691,693,737,782,828,830,878,927,977,1028,1080,1082,1136,1191 mov $3,$0 mov $5,$0 lpb $3 mov $0,$5 mov $2,0 sub $3,1 sub $0,$3 lpb $0 mov $4,$0 seq $4,131516 ; a(n)=1 if n is an odd prime number, otherwise, a(n)=n. mov $0,$4 mov $2,$4 lpe add $0,$2 add $1,$0 lpe mov $0,$1
25.142857
209
0.625
8023b79e376c422f0938f84ed1f8c015ba9649d8
677
asm
Assembly
data/pokemon/base_stats/vileplume.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/vileplume.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/vileplume.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_VILEPLUME ; pokedex id db 75, 80, 85, 50, 100 ; hp atk def spd spc db GRASS, POISON ; type db 45 ; catch rate db 184 ; base exp INCBIN "gfx/pokemon/front/vileplume.pic", 0, 1 ; sprite dimensions dw VileplumePicFront, VileplumePicBack db LEECH_SEED, TOXIC, SLEEP_POWDER, PETAL_DANCE ; level 1 learnset db GROWTH_MEDIUM_SLOW ; growth rate ; tm/hm learnset tmhm SWORDS_DANCE, TOXIC, BODY_SLAM, TAKE_DOWN, DOUBLE_EDGE, \ HYPER_BEAM, RAGE, MEGA_DRAIN, SOLARBEAM, MIMIC, \ DOUBLE_TEAM, REFLECT, BIDE, REST, SUBSTITUTE, \ CUT, NIGHT_SHADE ; end db 0 ; padding
28.208333
77
0.629247
53d12cab6797fef807f1a00712a777b74c78c3d0
445
asm
Assembly
oeis/192/A192142.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/192/A192142.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/192/A192142.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A192142: 1-sequence of reduction of (n^2+n+1) by x^2 -> x+1. ; Submitted by Christian Krause ; 0,3,10,36,99,254,598,1339,2872,5966,12071,23908,46516,89155,168702,315712,585163,1075442,1961754,3554715,6402780,11470778,20450255,36297576,64164744,113006019,198345298,347033724,605414067,1053307526 mov $1,$0 add $0,1 lpb $1 mov $3,$1 sub $1,1 add $4,$3 add $2,$4 mul $3,$1 add $3,$0 mov $0,$2 mov $4,$3 add $3,$2 lpe mov $0,$3
23.421053
201
0.678652
98f61152f105aca886c99f2af1aeeb4330072f12
641
asm
Assembly
oeis/049/A049397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/049/A049397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/049/A049397.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A049397: Expansion of (1-25*x)^(-9/5). ; Submitted by Jon Maiga ; 1,45,1575,49875,1496250,43391250,1229418750,34248093750,941822578125,25638503515625,692239594921875,18564607318359375,495056195156250000,13138029794531250000,347219358855468750000,9143443116527343750000,240015381808842773437500,6282755582643237304687500,164049729102351196289062500,4273927152929675903320312500,111122105976171573486328125000,2883883226524452740478515625000,74718792687224457366943359375000,1932942680386893571014404296875000,49934352576661417251205444335937500 add $0,1 mov $2,$0 seq $0,49382 ; Expansion of (1-25*x)^(-4/5). mul $2,$0 mov $0,$2 div $0,20
58.272727
479
0.854914
fd3b018063ea35befbb412a4608dcc0e19b3805f
1,602
asm
Assembly
kernel/arch/x86_64/Scheduler.asm
DeanoBurrito/minos
45a1a1adf5ef57d84d26fcbdc15ea6adbe2e732a
[ "BSL-1.0" ]
3
2021-09-21T23:48:09.000Z
2022-02-24T14:09:56.000Z
kernel/arch/x86_64/Scheduler.asm
DeanoBurrito/minos
45a1a1adf5ef57d84d26fcbdc15ea6adbe2e732a
[ "BSL-1.0" ]
null
null
null
kernel/arch/x86_64/Scheduler.asm
DeanoBurrito/minos
45a1a1adf5ef57d84d26fcbdc15ea6adbe2e732a
[ "BSL-1.0" ]
2
2021-10-05T10:13:34.000Z
2021-12-27T13:49:29.000Z
.code64 .extern scheduler_nextThreadData .extern scheduler_selectNext .extern scheduler_sendEOI .global scheduler_HandleInterrupt scheduler_HandleInterrupt: #save rdi and then rax to give us some scratch registers push %rdi mov scheduler_nextThreadData, %rdi #check if current thread needs its registers saved test %rdi, %rdi jz NoSaveRegs #push all regs onto the stack push %rax push %rbx push %rcx push %rdx push %rsi #skip rdi as its actually pushed first #skip rsp as we have to save it externally, otherwise we could never come back here push %rbp push %r8 push %r9 push %r10 push %r11 push %r12 push %r13 push %r14 push %r15 #now save rsp so we can return to this data mov %rsp, scheduler_nextThreadData jmp RestoreRegs NoSaveRegs: #just clean the stack in that case #NOTE: this actually does nothing, because we havent saved the current stack pointer, so we cant return here. pop %rax RestoreRegs: #now that we dont need to worry about corrupting registers, we can call into cpp-land call scheduler_selectNext call scheduler_sendEOI #load fresh thread info, start operating on their stack mov scheduler_nextThreadData, %rsp #load new stack pointer, pop all regs back into place, and issue iret (previous interrupt_frame should be in place) pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 pop %r9 pop %r8 pop %rbp pop %rsi pop %rdx pop %rcx pop %rbx pop %rax pop %rdi iretq
22.25
119
0.682896
86a5e49a797708fd813505a3f717f568ef24528f
7,347
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_530_864.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_530_864.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_530_864.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x7eb4, %rax nop nop nop add %rdx, %rdx mov $0x6162636465666768, %r11 movq %r11, (%rax) nop nop dec %rdx lea addresses_WC_ht+0x10af4, %rsi lea addresses_WC_ht+0x17ef4, %rdi clflush (%rdi) nop cmp $2949, %r10 mov $36, %rcx rep movsq add %r10, %r10 lea addresses_A_ht+0x17d34, %rax nop nop nop dec %r11 movb $0x61, (%rax) nop add %rdx, %rdx lea addresses_UC_ht+0x1d2f4, %rsi lea addresses_D_ht+0x2358, %rdi nop nop nop nop nop and $32340, %r14 mov $37, %rcx rep movsq nop sub $5951, %r14 lea addresses_WT_ht+0x1b974, %rsi lea addresses_D_ht+0x18474, %rdi clflush (%rdi) nop dec %rdx mov $37, %rcx rep movsw nop nop cmp %rdx, %rdx lea addresses_A_ht+0xd974, %rcx nop nop add $10182, %rdx mov $0x6162636465666768, %r10 movq %r10, (%rcx) nop nop and %r10, %r10 lea addresses_D_ht+0x1d834, %rax clflush (%rax) nop and $22648, %rcx mov (%rax), %edx nop nop nop nop nop cmp %r11, %r11 lea addresses_A_ht+0x41d0, %rsi lea addresses_D_ht+0xd674, %rdi nop nop nop sub %r14, %r14 mov $116, %rcx rep movsb nop nop nop nop and %rsi, %rsi lea addresses_D_ht+0x76f4, %r11 clflush (%r11) nop nop nop nop nop add $32300, %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm6 movups %xmm6, (%r11) nop dec %rdx lea addresses_WC_ht+0x188d4, %rax nop nop cmp %r10, %r10 mov $0x6162636465666768, %rsi movq %rsi, (%rax) nop nop add %rcx, %rcx lea addresses_normal_ht+0x1cef4, %rcx nop nop nop nop and %r14, %r14 mov $0x6162636465666768, %rax movq %rax, %xmm7 movups %xmm7, (%rcx) nop nop nop nop sub $55448, %rdi lea addresses_D_ht+0x27ac, %r10 nop nop sub $16264, %rdi movb $0x61, (%r10) nop xor $36615, %rcx lea addresses_D_ht+0x17cf4, %rsi lea addresses_normal_ht+0x5ef4, %rdi nop nop nop nop nop sub %r14, %r14 mov $74, %rcx rep movsb sub $32126, %r11 lea addresses_normal_ht+0xd6f4, %r10 nop xor $29559, %r11 mov $0x6162636465666768, %rax movq %rax, (%r10) nop nop nop nop cmp %rcx, %rcx lea addresses_UC_ht+0x17bb4, %rsi lea addresses_D_ht+0x99f4, %rdi nop nop nop nop nop cmp $10211, %r11 mov $33, %rcx rep movsq nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %rax push %rbx push %rcx push %rsi // Store lea addresses_UC+0x16234, %r13 nop nop nop and %rcx, %rcx mov $0x5152535455565758, %rax movq %rax, %xmm0 vmovntdq %ymm0, (%r13) nop nop nop nop nop add %rbx, %rbx // Store lea addresses_UC+0xb492, %rcx add %rsi, %rsi mov $0x5152535455565758, %rbx movq %rbx, %xmm2 movntdq %xmm2, (%rcx) xor %rbx, %rbx // Store lea addresses_D+0xf2f4, %rax nop nop nop nop nop inc %rcx movb $0x51, (%rax) nop nop nop nop cmp %r8, %r8 // Faulty Load lea addresses_US+0x46f4, %r8 nop sub $31406, %rbx vmovaps (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r10 lea oracles, %r8 and $0xff, %r10 shlq $12, %r10 mov (%r8,%r10,1), %r10 pop %rsi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'00': 530} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
26.716364
1,589
0.655506
4c397ce6984198bdda22c6b48139f4f381fc0175
43,322
asm
Assembly
tests/z80test-1.0/src/crctab.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
674
2016-05-05T18:47:48.000Z
2022-03-30T01:48:53.000Z
tests/z80test-1.0/src/crctab.asm
gunterhager/mz-800-emulator
342914123e85408e09d35e2f50d7fc64cdec99ae
[ "MIT" ]
223
2016-05-11T13:45:11.000Z
2022-03-27T08:20:26.000Z
tests/z80test-1.0/src/crctab.asm
gunterhager/mz-800-emulator
342914123e85408e09d35e2f50d7fc64cdec99ae
[ "MIT" ]
36
2017-11-24T18:07:52.000Z
2022-03-17T23:30:14.000Z
; CRC table for the standard 100000100110000010001110110110111 polynomial. ; Chunked little endian, the 256 LSBs first, the 256 MSBs last, for fast access. ; ; Copyright (C) 2012 Patrik Rak (patrik@raxoft.cz) ; ; This source code is released under the MIT license, see included license.txt. crctable: db 0x00 ; 00 00000000 db 0x96 ; 01 77073096 db 0x2c ; 02 ee0e612c db 0xba ; 03 990951ba db 0x19 ; 04 076dc419 db 0x8f ; 05 706af48f db 0x35 ; 06 e963a535 db 0xa3 ; 07 9e6495a3 db 0x32 ; 08 0edb8832 db 0xa4 ; 09 79dcb8a4 db 0x1e ; 0a e0d5e91e db 0x88 ; 0b 97d2d988 db 0x2b ; 0c 09b64c2b db 0xbd ; 0d 7eb17cbd db 0x07 ; 0e e7b82d07 db 0x91 ; 0f 90bf1d91 db 0x64 ; 10 1db71064 db 0xf2 ; 11 6ab020f2 db 0x48 ; 12 f3b97148 db 0xde ; 13 84be41de db 0x7d ; 14 1adad47d db 0xeb ; 15 6ddde4eb db 0x51 ; 16 f4d4b551 db 0xc7 ; 17 83d385c7 db 0x56 ; 18 136c9856 db 0xc0 ; 19 646ba8c0 db 0x7a ; 1a fd62f97a db 0xec ; 1b 8a65c9ec db 0x4f ; 1c 14015c4f db 0xd9 ; 1d 63066cd9 db 0x63 ; 1e fa0f3d63 db 0xf5 ; 1f 8d080df5 db 0xc8 ; 20 3b6e20c8 db 0x5e ; 21 4c69105e db 0xe4 ; 22 d56041e4 db 0x72 ; 23 a2677172 db 0xd1 ; 24 3c03e4d1 db 0x47 ; 25 4b04d447 db 0xfd ; 26 d20d85fd db 0x6b ; 27 a50ab56b db 0xfa ; 28 35b5a8fa db 0x6c ; 29 42b2986c db 0xd6 ; 2a dbbbc9d6 db 0x40 ; 2b acbcf940 db 0xe3 ; 2c 32d86ce3 db 0x75 ; 2d 45df5c75 db 0xcf ; 2e dcd60dcf db 0x59 ; 2f abd13d59 db 0xac ; 30 26d930ac db 0x3a ; 31 51de003a db 0x80 ; 32 c8d75180 db 0x16 ; 33 bfd06116 db 0xb5 ; 34 21b4f4b5 db 0x23 ; 35 56b3c423 db 0x99 ; 36 cfba9599 db 0x0f ; 37 b8bda50f db 0x9e ; 38 2802b89e db 0x08 ; 39 5f058808 db 0xb2 ; 3a c60cd9b2 db 0x24 ; 3b b10be924 db 0x87 ; 3c 2f6f7c87 db 0x11 ; 3d 58684c11 db 0xab ; 3e c1611dab db 0x3d ; 3f b6662d3d db 0x90 ; 40 76dc4190 db 0x06 ; 41 01db7106 db 0xbc ; 42 98d220bc db 0x2a ; 43 efd5102a db 0x89 ; 44 71b18589 db 0x1f ; 45 06b6b51f db 0xa5 ; 46 9fbfe4a5 db 0x33 ; 47 e8b8d433 db 0xa2 ; 48 7807c9a2 db 0x34 ; 49 0f00f934 db 0x8e ; 4a 9609a88e db 0x18 ; 4b e10e9818 db 0xbb ; 4c 7f6a0dbb db 0x2d ; 4d 086d3d2d db 0x97 ; 4e 91646c97 db 0x01 ; 4f e6635c01 db 0xf4 ; 50 6b6b51f4 db 0x62 ; 51 1c6c6162 db 0xd8 ; 52 856530d8 db 0x4e ; 53 f262004e db 0xed ; 54 6c0695ed db 0x7b ; 55 1b01a57b db 0xc1 ; 56 8208f4c1 db 0x57 ; 57 f50fc457 db 0xc6 ; 58 65b0d9c6 db 0x50 ; 59 12b7e950 db 0xea ; 5a 8bbeb8ea db 0x7c ; 5b fcb9887c db 0xdf ; 5c 62dd1ddf db 0x49 ; 5d 15da2d49 db 0xf3 ; 5e 8cd37cf3 db 0x65 ; 5f fbd44c65 db 0x58 ; 60 4db26158 db 0xce ; 61 3ab551ce db 0x74 ; 62 a3bc0074 db 0xe2 ; 63 d4bb30e2 db 0x41 ; 64 4adfa541 db 0xd7 ; 65 3dd895d7 db 0x6d ; 66 a4d1c46d db 0xfb ; 67 d3d6f4fb db 0x6a ; 68 4369e96a db 0xfc ; 69 346ed9fc db 0x46 ; 6a ad678846 db 0xd0 ; 6b da60b8d0 db 0x73 ; 6c 44042d73 db 0xe5 ; 6d 33031de5 db 0x5f ; 6e aa0a4c5f db 0xc9 ; 6f dd0d7cc9 db 0x3c ; 70 5005713c db 0xaa ; 71 270241aa db 0x10 ; 72 be0b1010 db 0x86 ; 73 c90c2086 db 0x25 ; 74 5768b525 db 0xb3 ; 75 206f85b3 db 0x09 ; 76 b966d409 db 0x9f ; 77 ce61e49f db 0x0e ; 78 5edef90e db 0x98 ; 79 29d9c998 db 0x22 ; 7a b0d09822 db 0xb4 ; 7b c7d7a8b4 db 0x17 ; 7c 59b33d17 db 0x81 ; 7d 2eb40d81 db 0x3b ; 7e b7bd5c3b db 0xad ; 7f c0ba6cad db 0x20 ; 80 edb88320 db 0xb6 ; 81 9abfb3b6 db 0x0c ; 82 03b6e20c db 0x9a ; 83 74b1d29a db 0x39 ; 84 ead54739 db 0xaf ; 85 9dd277af db 0x15 ; 86 04db2615 db 0x83 ; 87 73dc1683 db 0x12 ; 88 e3630b12 db 0x84 ; 89 94643b84 db 0x3e ; 8a 0d6d6a3e db 0xa8 ; 8b 7a6a5aa8 db 0x0b ; 8c e40ecf0b db 0x9d ; 8d 9309ff9d db 0x27 ; 8e 0a00ae27 db 0xb1 ; 8f 7d079eb1 db 0x44 ; 90 f00f9344 db 0xd2 ; 91 8708a3d2 db 0x68 ; 92 1e01f268 db 0xfe ; 93 6906c2fe db 0x5d ; 94 f762575d db 0xcb ; 95 806567cb db 0x71 ; 96 196c3671 db 0xe7 ; 97 6e6b06e7 db 0x76 ; 98 fed41b76 db 0xe0 ; 99 89d32be0 db 0x5a ; 9a 10da7a5a db 0xcc ; 9b 67dd4acc db 0x6f ; 9c f9b9df6f db 0xf9 ; 9d 8ebeeff9 db 0x43 ; 9e 17b7be43 db 0xd5 ; 9f 60b08ed5 db 0xe8 ; a0 d6d6a3e8 db 0x7e ; a1 a1d1937e db 0xc4 ; a2 38d8c2c4 db 0x52 ; a3 4fdff252 db 0xf1 ; a4 d1bb67f1 db 0x67 ; a5 a6bc5767 db 0xdd ; a6 3fb506dd db 0x4b ; a7 48b2364b db 0xda ; a8 d80d2bda db 0x4c ; a9 af0a1b4c db 0xf6 ; aa 36034af6 db 0x60 ; ab 41047a60 db 0xc3 ; ac df60efc3 db 0x55 ; ad a867df55 db 0xef ; ae 316e8eef db 0x79 ; af 4669be79 db 0x8c ; b0 cb61b38c db 0x1a ; b1 bc66831a db 0xa0 ; b2 256fd2a0 db 0x36 ; b3 5268e236 db 0x95 ; b4 cc0c7795 db 0x03 ; b5 bb0b4703 db 0xb9 ; b6 220216b9 db 0x2f ; b7 5505262f db 0xbe ; b8 c5ba3bbe db 0x28 ; b9 b2bd0b28 db 0x92 ; ba 2bb45a92 db 0x04 ; bb 5cb36a04 db 0xa7 ; bc c2d7ffa7 db 0x31 ; bd b5d0cf31 db 0x8b ; be 2cd99e8b db 0x1d ; bf 5bdeae1d db 0xb0 ; c0 9b64c2b0 db 0x26 ; c1 ec63f226 db 0x9c ; c2 756aa39c db 0x0a ; c3 026d930a db 0xa9 ; c4 9c0906a9 db 0x3f ; c5 eb0e363f db 0x85 ; c6 72076785 db 0x13 ; c7 05005713 db 0x82 ; c8 95bf4a82 db 0x14 ; c9 e2b87a14 db 0xae ; ca 7bb12bae db 0x38 ; cb 0cb61b38 db 0x9b ; cc 92d28e9b db 0x0d ; cd e5d5be0d db 0xb7 ; ce 7cdcefb7 db 0x21 ; cf 0bdbdf21 db 0xd4 ; d0 86d3d2d4 db 0x42 ; d1 f1d4e242 db 0xf8 ; d2 68ddb3f8 db 0x6e ; d3 1fda836e db 0xcd ; d4 81be16cd db 0x5b ; d5 f6b9265b db 0xe1 ; d6 6fb077e1 db 0x77 ; d7 18b74777 db 0xe6 ; d8 88085ae6 db 0x70 ; d9 ff0f6a70 db 0xca ; da 66063bca db 0x5c ; db 11010b5c db 0xff ; dc 8f659eff db 0x69 ; dd f862ae69 db 0xd3 ; de 616bffd3 db 0x45 ; df 166ccf45 db 0x78 ; e0 a00ae278 db 0xee ; e1 d70dd2ee db 0x54 ; e2 4e048354 db 0xc2 ; e3 3903b3c2 db 0x61 ; e4 a7672661 db 0xf7 ; e5 d06016f7 db 0x4d ; e6 4969474d db 0xdb ; e7 3e6e77db db 0x4a ; e8 aed16a4a db 0xdc ; e9 d9d65adc db 0x66 ; ea 40df0b66 db 0xf0 ; eb 37d83bf0 db 0x53 ; ec a9bcae53 db 0xc5 ; ed debb9ec5 db 0x7f ; ee 47b2cf7f db 0xe9 ; ef 30b5ffe9 db 0x1c ; f0 bdbdf21c db 0x8a ; f1 cabac28a db 0x30 ; f2 53b39330 db 0xa6 ; f3 24b4a3a6 db 0x05 ; f4 bad03605 db 0x93 ; f5 cdd70693 db 0x29 ; f6 54de5729 db 0xbf ; f7 23d967bf db 0x2e ; f8 b3667a2e db 0xb8 ; f9 c4614ab8 db 0x02 ; fa 5d681b02 db 0x94 ; fb 2a6f2b94 db 0x37 ; fc b40bbe37 db 0xa1 ; fd c30c8ea1 db 0x1b ; fe 5a05df1b db 0x8d ; ff 2d02ef8d db 0x00 ; 00 00000000 db 0x30 ; 01 77073096 db 0x61 ; 02 ee0e612c db 0x51 ; 03 990951ba db 0xc4 ; 04 076dc419 db 0xf4 ; 05 706af48f db 0xa5 ; 06 e963a535 db 0x95 ; 07 9e6495a3 db 0x88 ; 08 0edb8832 db 0xb8 ; 09 79dcb8a4 db 0xe9 ; 0a e0d5e91e db 0xd9 ; 0b 97d2d988 db 0x4c ; 0c 09b64c2b db 0x7c ; 0d 7eb17cbd db 0x2d ; 0e e7b82d07 db 0x1d ; 0f 90bf1d91 db 0x10 ; 10 1db71064 db 0x20 ; 11 6ab020f2 db 0x71 ; 12 f3b97148 db 0x41 ; 13 84be41de db 0xd4 ; 14 1adad47d db 0xe4 ; 15 6ddde4eb db 0xb5 ; 16 f4d4b551 db 0x85 ; 17 83d385c7 db 0x98 ; 18 136c9856 db 0xa8 ; 19 646ba8c0 db 0xf9 ; 1a fd62f97a db 0xc9 ; 1b 8a65c9ec db 0x5c ; 1c 14015c4f db 0x6c ; 1d 63066cd9 db 0x3d ; 1e fa0f3d63 db 0x0d ; 1f 8d080df5 db 0x20 ; 20 3b6e20c8 db 0x10 ; 21 4c69105e db 0x41 ; 22 d56041e4 db 0x71 ; 23 a2677172 db 0xe4 ; 24 3c03e4d1 db 0xd4 ; 25 4b04d447 db 0x85 ; 26 d20d85fd db 0xb5 ; 27 a50ab56b db 0xa8 ; 28 35b5a8fa db 0x98 ; 29 42b2986c db 0xc9 ; 2a dbbbc9d6 db 0xf9 ; 2b acbcf940 db 0x6c ; 2c 32d86ce3 db 0x5c ; 2d 45df5c75 db 0x0d ; 2e dcd60dcf db 0x3d ; 2f abd13d59 db 0x30 ; 30 26d930ac db 0x00 ; 31 51de003a db 0x51 ; 32 c8d75180 db 0x61 ; 33 bfd06116 db 0xf4 ; 34 21b4f4b5 db 0xc4 ; 35 56b3c423 db 0x95 ; 36 cfba9599 db 0xa5 ; 37 b8bda50f db 0xb8 ; 38 2802b89e db 0x88 ; 39 5f058808 db 0xd9 ; 3a c60cd9b2 db 0xe9 ; 3b b10be924 db 0x7c ; 3c 2f6f7c87 db 0x4c ; 3d 58684c11 db 0x1d ; 3e c1611dab db 0x2d ; 3f b6662d3d db 0x41 ; 40 76dc4190 db 0x71 ; 41 01db7106 db 0x20 ; 42 98d220bc db 0x10 ; 43 efd5102a db 0x85 ; 44 71b18589 db 0xb5 ; 45 06b6b51f db 0xe4 ; 46 9fbfe4a5 db 0xd4 ; 47 e8b8d433 db 0xc9 ; 48 7807c9a2 db 0xf9 ; 49 0f00f934 db 0xa8 ; 4a 9609a88e db 0x98 ; 4b e10e9818 db 0x0d ; 4c 7f6a0dbb db 0x3d ; 4d 086d3d2d db 0x6c ; 4e 91646c97 db 0x5c ; 4f e6635c01 db 0x51 ; 50 6b6b51f4 db 0x61 ; 51 1c6c6162 db 0x30 ; 52 856530d8 db 0x00 ; 53 f262004e db 0x95 ; 54 6c0695ed db 0xa5 ; 55 1b01a57b db 0xf4 ; 56 8208f4c1 db 0xc4 ; 57 f50fc457 db 0xd9 ; 58 65b0d9c6 db 0xe9 ; 59 12b7e950 db 0xb8 ; 5a 8bbeb8ea db 0x88 ; 5b fcb9887c db 0x1d ; 5c 62dd1ddf db 0x2d ; 5d 15da2d49 db 0x7c ; 5e 8cd37cf3 db 0x4c ; 5f fbd44c65 db 0x61 ; 60 4db26158 db 0x51 ; 61 3ab551ce db 0x00 ; 62 a3bc0074 db 0x30 ; 63 d4bb30e2 db 0xa5 ; 64 4adfa541 db 0x95 ; 65 3dd895d7 db 0xc4 ; 66 a4d1c46d db 0xf4 ; 67 d3d6f4fb db 0xe9 ; 68 4369e96a db 0xd9 ; 69 346ed9fc db 0x88 ; 6a ad678846 db 0xb8 ; 6b da60b8d0 db 0x2d ; 6c 44042d73 db 0x1d ; 6d 33031de5 db 0x4c ; 6e aa0a4c5f db 0x7c ; 6f dd0d7cc9 db 0x71 ; 70 5005713c db 0x41 ; 71 270241aa db 0x10 ; 72 be0b1010 db 0x20 ; 73 c90c2086 db 0xb5 ; 74 5768b525 db 0x85 ; 75 206f85b3 db 0xd4 ; 76 b966d409 db 0xe4 ; 77 ce61e49f db 0xf9 ; 78 5edef90e db 0xc9 ; 79 29d9c998 db 0x98 ; 7a b0d09822 db 0xa8 ; 7b c7d7a8b4 db 0x3d ; 7c 59b33d17 db 0x0d ; 7d 2eb40d81 db 0x5c ; 7e b7bd5c3b db 0x6c ; 7f c0ba6cad db 0x83 ; 80 edb88320 db 0xb3 ; 81 9abfb3b6 db 0xe2 ; 82 03b6e20c db 0xd2 ; 83 74b1d29a db 0x47 ; 84 ead54739 db 0x77 ; 85 9dd277af db 0x26 ; 86 04db2615 db 0x16 ; 87 73dc1683 db 0x0b ; 88 e3630b12 db 0x3b ; 89 94643b84 db 0x6a ; 8a 0d6d6a3e db 0x5a ; 8b 7a6a5aa8 db 0xcf ; 8c e40ecf0b db 0xff ; 8d 9309ff9d db 0xae ; 8e 0a00ae27 db 0x9e ; 8f 7d079eb1 db 0x93 ; 90 f00f9344 db 0xa3 ; 91 8708a3d2 db 0xf2 ; 92 1e01f268 db 0xc2 ; 93 6906c2fe db 0x57 ; 94 f762575d db 0x67 ; 95 806567cb db 0x36 ; 96 196c3671 db 0x06 ; 97 6e6b06e7 db 0x1b ; 98 fed41b76 db 0x2b ; 99 89d32be0 db 0x7a ; 9a 10da7a5a db 0x4a ; 9b 67dd4acc db 0xdf ; 9c f9b9df6f db 0xef ; 9d 8ebeeff9 db 0xbe ; 9e 17b7be43 db 0x8e ; 9f 60b08ed5 db 0xa3 ; a0 d6d6a3e8 db 0x93 ; a1 a1d1937e db 0xc2 ; a2 38d8c2c4 db 0xf2 ; a3 4fdff252 db 0x67 ; a4 d1bb67f1 db 0x57 ; a5 a6bc5767 db 0x06 ; a6 3fb506dd db 0x36 ; a7 48b2364b db 0x2b ; a8 d80d2bda db 0x1b ; a9 af0a1b4c db 0x4a ; aa 36034af6 db 0x7a ; ab 41047a60 db 0xef ; ac df60efc3 db 0xdf ; ad a867df55 db 0x8e ; ae 316e8eef db 0xbe ; af 4669be79 db 0xb3 ; b0 cb61b38c db 0x83 ; b1 bc66831a db 0xd2 ; b2 256fd2a0 db 0xe2 ; b3 5268e236 db 0x77 ; b4 cc0c7795 db 0x47 ; b5 bb0b4703 db 0x16 ; b6 220216b9 db 0x26 ; b7 5505262f db 0x3b ; b8 c5ba3bbe db 0x0b ; b9 b2bd0b28 db 0x5a ; ba 2bb45a92 db 0x6a ; bb 5cb36a04 db 0xff ; bc c2d7ffa7 db 0xcf ; bd b5d0cf31 db 0x9e ; be 2cd99e8b db 0xae ; bf 5bdeae1d db 0xc2 ; c0 9b64c2b0 db 0xf2 ; c1 ec63f226 db 0xa3 ; c2 756aa39c db 0x93 ; c3 026d930a db 0x06 ; c4 9c0906a9 db 0x36 ; c5 eb0e363f db 0x67 ; c6 72076785 db 0x57 ; c7 05005713 db 0x4a ; c8 95bf4a82 db 0x7a ; c9 e2b87a14 db 0x2b ; ca 7bb12bae db 0x1b ; cb 0cb61b38 db 0x8e ; cc 92d28e9b db 0xbe ; cd e5d5be0d db 0xef ; ce 7cdcefb7 db 0xdf ; cf 0bdbdf21 db 0xd2 ; d0 86d3d2d4 db 0xe2 ; d1 f1d4e242 db 0xb3 ; d2 68ddb3f8 db 0x83 ; d3 1fda836e db 0x16 ; d4 81be16cd db 0x26 ; d5 f6b9265b db 0x77 ; d6 6fb077e1 db 0x47 ; d7 18b74777 db 0x5a ; d8 88085ae6 db 0x6a ; d9 ff0f6a70 db 0x3b ; da 66063bca db 0x0b ; db 11010b5c db 0x9e ; dc 8f659eff db 0xae ; dd f862ae69 db 0xff ; de 616bffd3 db 0xcf ; df 166ccf45 db 0xe2 ; e0 a00ae278 db 0xd2 ; e1 d70dd2ee db 0x83 ; e2 4e048354 db 0xb3 ; e3 3903b3c2 db 0x26 ; e4 a7672661 db 0x16 ; e5 d06016f7 db 0x47 ; e6 4969474d db 0x77 ; e7 3e6e77db db 0x6a ; e8 aed16a4a db 0x5a ; e9 d9d65adc db 0x0b ; ea 40df0b66 db 0x3b ; eb 37d83bf0 db 0xae ; ec a9bcae53 db 0x9e ; ed debb9ec5 db 0xcf ; ee 47b2cf7f db 0xff ; ef 30b5ffe9 db 0xf2 ; f0 bdbdf21c db 0xc2 ; f1 cabac28a db 0x93 ; f2 53b39330 db 0xa3 ; f3 24b4a3a6 db 0x36 ; f4 bad03605 db 0x06 ; f5 cdd70693 db 0x57 ; f6 54de5729 db 0x67 ; f7 23d967bf db 0x7a ; f8 b3667a2e db 0x4a ; f9 c4614ab8 db 0x1b ; fa 5d681b02 db 0x2b ; fb 2a6f2b94 db 0xbe ; fc b40bbe37 db 0x8e ; fd c30c8ea1 db 0xdf ; fe 5a05df1b db 0xef ; ff 2d02ef8d db 0x00 ; 00 00000000 db 0x07 ; 01 77073096 db 0x0e ; 02 ee0e612c db 0x09 ; 03 990951ba db 0x6d ; 04 076dc419 db 0x6a ; 05 706af48f db 0x63 ; 06 e963a535 db 0x64 ; 07 9e6495a3 db 0xdb ; 08 0edb8832 db 0xdc ; 09 79dcb8a4 db 0xd5 ; 0a e0d5e91e db 0xd2 ; 0b 97d2d988 db 0xb6 ; 0c 09b64c2b db 0xb1 ; 0d 7eb17cbd db 0xb8 ; 0e e7b82d07 db 0xbf ; 0f 90bf1d91 db 0xb7 ; 10 1db71064 db 0xb0 ; 11 6ab020f2 db 0xb9 ; 12 f3b97148 db 0xbe ; 13 84be41de db 0xda ; 14 1adad47d db 0xdd ; 15 6ddde4eb db 0xd4 ; 16 f4d4b551 db 0xd3 ; 17 83d385c7 db 0x6c ; 18 136c9856 db 0x6b ; 19 646ba8c0 db 0x62 ; 1a fd62f97a db 0x65 ; 1b 8a65c9ec db 0x01 ; 1c 14015c4f db 0x06 ; 1d 63066cd9 db 0x0f ; 1e fa0f3d63 db 0x08 ; 1f 8d080df5 db 0x6e ; 20 3b6e20c8 db 0x69 ; 21 4c69105e db 0x60 ; 22 d56041e4 db 0x67 ; 23 a2677172 db 0x03 ; 24 3c03e4d1 db 0x04 ; 25 4b04d447 db 0x0d ; 26 d20d85fd db 0x0a ; 27 a50ab56b db 0xb5 ; 28 35b5a8fa db 0xb2 ; 29 42b2986c db 0xbb ; 2a dbbbc9d6 db 0xbc ; 2b acbcf940 db 0xd8 ; 2c 32d86ce3 db 0xdf ; 2d 45df5c75 db 0xd6 ; 2e dcd60dcf db 0xd1 ; 2f abd13d59 db 0xd9 ; 30 26d930ac db 0xde ; 31 51de003a db 0xd7 ; 32 c8d75180 db 0xd0 ; 33 bfd06116 db 0xb4 ; 34 21b4f4b5 db 0xb3 ; 35 56b3c423 db 0xba ; 36 cfba9599 db 0xbd ; 37 b8bda50f db 0x02 ; 38 2802b89e db 0x05 ; 39 5f058808 db 0x0c ; 3a c60cd9b2 db 0x0b ; 3b b10be924 db 0x6f ; 3c 2f6f7c87 db 0x68 ; 3d 58684c11 db 0x61 ; 3e c1611dab db 0x66 ; 3f b6662d3d db 0xdc ; 40 76dc4190 db 0xdb ; 41 01db7106 db 0xd2 ; 42 98d220bc db 0xd5 ; 43 efd5102a db 0xb1 ; 44 71b18589 db 0xb6 ; 45 06b6b51f db 0xbf ; 46 9fbfe4a5 db 0xb8 ; 47 e8b8d433 db 0x07 ; 48 7807c9a2 db 0x00 ; 49 0f00f934 db 0x09 ; 4a 9609a88e db 0x0e ; 4b e10e9818 db 0x6a ; 4c 7f6a0dbb db 0x6d ; 4d 086d3d2d db 0x64 ; 4e 91646c97 db 0x63 ; 4f e6635c01 db 0x6b ; 50 6b6b51f4 db 0x6c ; 51 1c6c6162 db 0x65 ; 52 856530d8 db 0x62 ; 53 f262004e db 0x06 ; 54 6c0695ed db 0x01 ; 55 1b01a57b db 0x08 ; 56 8208f4c1 db 0x0f ; 57 f50fc457 db 0xb0 ; 58 65b0d9c6 db 0xb7 ; 59 12b7e950 db 0xbe ; 5a 8bbeb8ea db 0xb9 ; 5b fcb9887c db 0xdd ; 5c 62dd1ddf db 0xda ; 5d 15da2d49 db 0xd3 ; 5e 8cd37cf3 db 0xd4 ; 5f fbd44c65 db 0xb2 ; 60 4db26158 db 0xb5 ; 61 3ab551ce db 0xbc ; 62 a3bc0074 db 0xbb ; 63 d4bb30e2 db 0xdf ; 64 4adfa541 db 0xd8 ; 65 3dd895d7 db 0xd1 ; 66 a4d1c46d db 0xd6 ; 67 d3d6f4fb db 0x69 ; 68 4369e96a db 0x6e ; 69 346ed9fc db 0x67 ; 6a ad678846 db 0x60 ; 6b da60b8d0 db 0x04 ; 6c 44042d73 db 0x03 ; 6d 33031de5 db 0x0a ; 6e aa0a4c5f db 0x0d ; 6f dd0d7cc9 db 0x05 ; 70 5005713c db 0x02 ; 71 270241aa db 0x0b ; 72 be0b1010 db 0x0c ; 73 c90c2086 db 0x68 ; 74 5768b525 db 0x6f ; 75 206f85b3 db 0x66 ; 76 b966d409 db 0x61 ; 77 ce61e49f db 0xde ; 78 5edef90e db 0xd9 ; 79 29d9c998 db 0xd0 ; 7a b0d09822 db 0xd7 ; 7b c7d7a8b4 db 0xb3 ; 7c 59b33d17 db 0xb4 ; 7d 2eb40d81 db 0xbd ; 7e b7bd5c3b db 0xba ; 7f c0ba6cad db 0xb8 ; 80 edb88320 db 0xbf ; 81 9abfb3b6 db 0xb6 ; 82 03b6e20c db 0xb1 ; 83 74b1d29a db 0xd5 ; 84 ead54739 db 0xd2 ; 85 9dd277af db 0xdb ; 86 04db2615 db 0xdc ; 87 73dc1683 db 0x63 ; 88 e3630b12 db 0x64 ; 89 94643b84 db 0x6d ; 8a 0d6d6a3e db 0x6a ; 8b 7a6a5aa8 db 0x0e ; 8c e40ecf0b db 0x09 ; 8d 9309ff9d db 0x00 ; 8e 0a00ae27 db 0x07 ; 8f 7d079eb1 db 0x0f ; 90 f00f9344 db 0x08 ; 91 8708a3d2 db 0x01 ; 92 1e01f268 db 0x06 ; 93 6906c2fe db 0x62 ; 94 f762575d db 0x65 ; 95 806567cb db 0x6c ; 96 196c3671 db 0x6b ; 97 6e6b06e7 db 0xd4 ; 98 fed41b76 db 0xd3 ; 99 89d32be0 db 0xda ; 9a 10da7a5a db 0xdd ; 9b 67dd4acc db 0xb9 ; 9c f9b9df6f db 0xbe ; 9d 8ebeeff9 db 0xb7 ; 9e 17b7be43 db 0xb0 ; 9f 60b08ed5 db 0xd6 ; a0 d6d6a3e8 db 0xd1 ; a1 a1d1937e db 0xd8 ; a2 38d8c2c4 db 0xdf ; a3 4fdff252 db 0xbb ; a4 d1bb67f1 db 0xbc ; a5 a6bc5767 db 0xb5 ; a6 3fb506dd db 0xb2 ; a7 48b2364b db 0x0d ; a8 d80d2bda db 0x0a ; a9 af0a1b4c db 0x03 ; aa 36034af6 db 0x04 ; ab 41047a60 db 0x60 ; ac df60efc3 db 0x67 ; ad a867df55 db 0x6e ; ae 316e8eef db 0x69 ; af 4669be79 db 0x61 ; b0 cb61b38c db 0x66 ; b1 bc66831a db 0x6f ; b2 256fd2a0 db 0x68 ; b3 5268e236 db 0x0c ; b4 cc0c7795 db 0x0b ; b5 bb0b4703 db 0x02 ; b6 220216b9 db 0x05 ; b7 5505262f db 0xba ; b8 c5ba3bbe db 0xbd ; b9 b2bd0b28 db 0xb4 ; ba 2bb45a92 db 0xb3 ; bb 5cb36a04 db 0xd7 ; bc c2d7ffa7 db 0xd0 ; bd b5d0cf31 db 0xd9 ; be 2cd99e8b db 0xde ; bf 5bdeae1d db 0x64 ; c0 9b64c2b0 db 0x63 ; c1 ec63f226 db 0x6a ; c2 756aa39c db 0x6d ; c3 026d930a db 0x09 ; c4 9c0906a9 db 0x0e ; c5 eb0e363f db 0x07 ; c6 72076785 db 0x00 ; c7 05005713 db 0xbf ; c8 95bf4a82 db 0xb8 ; c9 e2b87a14 db 0xb1 ; ca 7bb12bae db 0xb6 ; cb 0cb61b38 db 0xd2 ; cc 92d28e9b db 0xd5 ; cd e5d5be0d db 0xdc ; ce 7cdcefb7 db 0xdb ; cf 0bdbdf21 db 0xd3 ; d0 86d3d2d4 db 0xd4 ; d1 f1d4e242 db 0xdd ; d2 68ddb3f8 db 0xda ; d3 1fda836e db 0xbe ; d4 81be16cd db 0xb9 ; d5 f6b9265b db 0xb0 ; d6 6fb077e1 db 0xb7 ; d7 18b74777 db 0x08 ; d8 88085ae6 db 0x0f ; d9 ff0f6a70 db 0x06 ; da 66063bca db 0x01 ; db 11010b5c db 0x65 ; dc 8f659eff db 0x62 ; dd f862ae69 db 0x6b ; de 616bffd3 db 0x6c ; df 166ccf45 db 0x0a ; e0 a00ae278 db 0x0d ; e1 d70dd2ee db 0x04 ; e2 4e048354 db 0x03 ; e3 3903b3c2 db 0x67 ; e4 a7672661 db 0x60 ; e5 d06016f7 db 0x69 ; e6 4969474d db 0x6e ; e7 3e6e77db db 0xd1 ; e8 aed16a4a db 0xd6 ; e9 d9d65adc db 0xdf ; ea 40df0b66 db 0xd8 ; eb 37d83bf0 db 0xbc ; ec a9bcae53 db 0xbb ; ed debb9ec5 db 0xb2 ; ee 47b2cf7f db 0xb5 ; ef 30b5ffe9 db 0xbd ; f0 bdbdf21c db 0xba ; f1 cabac28a db 0xb3 ; f2 53b39330 db 0xb4 ; f3 24b4a3a6 db 0xd0 ; f4 bad03605 db 0xd7 ; f5 cdd70693 db 0xde ; f6 54de5729 db 0xd9 ; f7 23d967bf db 0x66 ; f8 b3667a2e db 0x61 ; f9 c4614ab8 db 0x68 ; fa 5d681b02 db 0x6f ; fb 2a6f2b94 db 0x0b ; fc b40bbe37 db 0x0c ; fd c30c8ea1 db 0x05 ; fe 5a05df1b db 0x02 ; ff 2d02ef8d db 0x00 ; 00 00000000 db 0x77 ; 01 77073096 db 0xee ; 02 ee0e612c db 0x99 ; 03 990951ba db 0x07 ; 04 076dc419 db 0x70 ; 05 706af48f db 0xe9 ; 06 e963a535 db 0x9e ; 07 9e6495a3 db 0x0e ; 08 0edb8832 db 0x79 ; 09 79dcb8a4 db 0xe0 ; 0a e0d5e91e db 0x97 ; 0b 97d2d988 db 0x09 ; 0c 09b64c2b db 0x7e ; 0d 7eb17cbd db 0xe7 ; 0e e7b82d07 db 0x90 ; 0f 90bf1d91 db 0x1d ; 10 1db71064 db 0x6a ; 11 6ab020f2 db 0xf3 ; 12 f3b97148 db 0x84 ; 13 84be41de db 0x1a ; 14 1adad47d db 0x6d ; 15 6ddde4eb db 0xf4 ; 16 f4d4b551 db 0x83 ; 17 83d385c7 db 0x13 ; 18 136c9856 db 0x64 ; 19 646ba8c0 db 0xfd ; 1a fd62f97a db 0x8a ; 1b 8a65c9ec db 0x14 ; 1c 14015c4f db 0x63 ; 1d 63066cd9 db 0xfa ; 1e fa0f3d63 db 0x8d ; 1f 8d080df5 db 0x3b ; 20 3b6e20c8 db 0x4c ; 21 4c69105e db 0xd5 ; 22 d56041e4 db 0xa2 ; 23 a2677172 db 0x3c ; 24 3c03e4d1 db 0x4b ; 25 4b04d447 db 0xd2 ; 26 d20d85fd db 0xa5 ; 27 a50ab56b db 0x35 ; 28 35b5a8fa db 0x42 ; 29 42b2986c db 0xdb ; 2a dbbbc9d6 db 0xac ; 2b acbcf940 db 0x32 ; 2c 32d86ce3 db 0x45 ; 2d 45df5c75 db 0xdc ; 2e dcd60dcf db 0xab ; 2f abd13d59 db 0x26 ; 30 26d930ac db 0x51 ; 31 51de003a db 0xc8 ; 32 c8d75180 db 0xbf ; 33 bfd06116 db 0x21 ; 34 21b4f4b5 db 0x56 ; 35 56b3c423 db 0xcf ; 36 cfba9599 db 0xb8 ; 37 b8bda50f db 0x28 ; 38 2802b89e db 0x5f ; 39 5f058808 db 0xc6 ; 3a c60cd9b2 db 0xb1 ; 3b b10be924 db 0x2f ; 3c 2f6f7c87 db 0x58 ; 3d 58684c11 db 0xc1 ; 3e c1611dab db 0xb6 ; 3f b6662d3d db 0x76 ; 40 76dc4190 db 0x01 ; 41 01db7106 db 0x98 ; 42 98d220bc db 0xef ; 43 efd5102a db 0x71 ; 44 71b18589 db 0x06 ; 45 06b6b51f db 0x9f ; 46 9fbfe4a5 db 0xe8 ; 47 e8b8d433 db 0x78 ; 48 7807c9a2 db 0x0f ; 49 0f00f934 db 0x96 ; 4a 9609a88e db 0xe1 ; 4b e10e9818 db 0x7f ; 4c 7f6a0dbb db 0x08 ; 4d 086d3d2d db 0x91 ; 4e 91646c97 db 0xe6 ; 4f e6635c01 db 0x6b ; 50 6b6b51f4 db 0x1c ; 51 1c6c6162 db 0x85 ; 52 856530d8 db 0xf2 ; 53 f262004e db 0x6c ; 54 6c0695ed db 0x1b ; 55 1b01a57b db 0x82 ; 56 8208f4c1 db 0xf5 ; 57 f50fc457 db 0x65 ; 58 65b0d9c6 db 0x12 ; 59 12b7e950 db 0x8b ; 5a 8bbeb8ea db 0xfc ; 5b fcb9887c db 0x62 ; 5c 62dd1ddf db 0x15 ; 5d 15da2d49 db 0x8c ; 5e 8cd37cf3 db 0xfb ; 5f fbd44c65 db 0x4d ; 60 4db26158 db 0x3a ; 61 3ab551ce db 0xa3 ; 62 a3bc0074 db 0xd4 ; 63 d4bb30e2 db 0x4a ; 64 4adfa541 db 0x3d ; 65 3dd895d7 db 0xa4 ; 66 a4d1c46d db 0xd3 ; 67 d3d6f4fb db 0x43 ; 68 4369e96a db 0x34 ; 69 346ed9fc db 0xad ; 6a ad678846 db 0xda ; 6b da60b8d0 db 0x44 ; 6c 44042d73 db 0x33 ; 6d 33031de5 db 0xaa ; 6e aa0a4c5f db 0xdd ; 6f dd0d7cc9 db 0x50 ; 70 5005713c db 0x27 ; 71 270241aa db 0xbe ; 72 be0b1010 db 0xc9 ; 73 c90c2086 db 0x57 ; 74 5768b525 db 0x20 ; 75 206f85b3 db 0xb9 ; 76 b966d409 db 0xce ; 77 ce61e49f db 0x5e ; 78 5edef90e db 0x29 ; 79 29d9c998 db 0xb0 ; 7a b0d09822 db 0xc7 ; 7b c7d7a8b4 db 0x59 ; 7c 59b33d17 db 0x2e ; 7d 2eb40d81 db 0xb7 ; 7e b7bd5c3b db 0xc0 ; 7f c0ba6cad db 0xed ; 80 edb88320 db 0x9a ; 81 9abfb3b6 db 0x03 ; 82 03b6e20c db 0x74 ; 83 74b1d29a db 0xea ; 84 ead54739 db 0x9d ; 85 9dd277af db 0x04 ; 86 04db2615 db 0x73 ; 87 73dc1683 db 0xe3 ; 88 e3630b12 db 0x94 ; 89 94643b84 db 0x0d ; 8a 0d6d6a3e db 0x7a ; 8b 7a6a5aa8 db 0xe4 ; 8c e40ecf0b db 0x93 ; 8d 9309ff9d db 0x0a ; 8e 0a00ae27 db 0x7d ; 8f 7d079eb1 db 0xf0 ; 90 f00f9344 db 0x87 ; 91 8708a3d2 db 0x1e ; 92 1e01f268 db 0x69 ; 93 6906c2fe db 0xf7 ; 94 f762575d db 0x80 ; 95 806567cb db 0x19 ; 96 196c3671 db 0x6e ; 97 6e6b06e7 db 0xfe ; 98 fed41b76 db 0x89 ; 99 89d32be0 db 0x10 ; 9a 10da7a5a db 0x67 ; 9b 67dd4acc db 0xf9 ; 9c f9b9df6f db 0x8e ; 9d 8ebeeff9 db 0x17 ; 9e 17b7be43 db 0x60 ; 9f 60b08ed5 db 0xd6 ; a0 d6d6a3e8 db 0xa1 ; a1 a1d1937e db 0x38 ; a2 38d8c2c4 db 0x4f ; a3 4fdff252 db 0xd1 ; a4 d1bb67f1 db 0xa6 ; a5 a6bc5767 db 0x3f ; a6 3fb506dd db 0x48 ; a7 48b2364b db 0xd8 ; a8 d80d2bda db 0xaf ; a9 af0a1b4c db 0x36 ; aa 36034af6 db 0x41 ; ab 41047a60 db 0xdf ; ac df60efc3 db 0xa8 ; ad a867df55 db 0x31 ; ae 316e8eef db 0x46 ; af 4669be79 db 0xcb ; b0 cb61b38c db 0xbc ; b1 bc66831a db 0x25 ; b2 256fd2a0 db 0x52 ; b3 5268e236 db 0xcc ; b4 cc0c7795 db 0xbb ; b5 bb0b4703 db 0x22 ; b6 220216b9 db 0x55 ; b7 5505262f db 0xc5 ; b8 c5ba3bbe db 0xb2 ; b9 b2bd0b28 db 0x2b ; ba 2bb45a92 db 0x5c ; bb 5cb36a04 db 0xc2 ; bc c2d7ffa7 db 0xb5 ; bd b5d0cf31 db 0x2c ; be 2cd99e8b db 0x5b ; bf 5bdeae1d db 0x9b ; c0 9b64c2b0 db 0xec ; c1 ec63f226 db 0x75 ; c2 756aa39c db 0x02 ; c3 026d930a db 0x9c ; c4 9c0906a9 db 0xeb ; c5 eb0e363f db 0x72 ; c6 72076785 db 0x05 ; c7 05005713 db 0x95 ; c8 95bf4a82 db 0xe2 ; c9 e2b87a14 db 0x7b ; ca 7bb12bae db 0x0c ; cb 0cb61b38 db 0x92 ; cc 92d28e9b db 0xe5 ; cd e5d5be0d db 0x7c ; ce 7cdcefb7 db 0x0b ; cf 0bdbdf21 db 0x86 ; d0 86d3d2d4 db 0xf1 ; d1 f1d4e242 db 0x68 ; d2 68ddb3f8 db 0x1f ; d3 1fda836e db 0x81 ; d4 81be16cd db 0xf6 ; d5 f6b9265b db 0x6f ; d6 6fb077e1 db 0x18 ; d7 18b74777 db 0x88 ; d8 88085ae6 db 0xff ; d9 ff0f6a70 db 0x66 ; da 66063bca db 0x11 ; db 11010b5c db 0x8f ; dc 8f659eff db 0xf8 ; dd f862ae69 db 0x61 ; de 616bffd3 db 0x16 ; df 166ccf45 db 0xa0 ; e0 a00ae278 db 0xd7 ; e1 d70dd2ee db 0x4e ; e2 4e048354 db 0x39 ; e3 3903b3c2 db 0xa7 ; e4 a7672661 db 0xd0 ; e5 d06016f7 db 0x49 ; e6 4969474d db 0x3e ; e7 3e6e77db db 0xae ; e8 aed16a4a db 0xd9 ; e9 d9d65adc db 0x40 ; ea 40df0b66 db 0x37 ; eb 37d83bf0 db 0xa9 ; ec a9bcae53 db 0xde ; ed debb9ec5 db 0x47 ; ee 47b2cf7f db 0x30 ; ef 30b5ffe9 db 0xbd ; f0 bdbdf21c db 0xca ; f1 cabac28a db 0x53 ; f2 53b39330 db 0x24 ; f3 24b4a3a6 db 0xba ; f4 bad03605 db 0xcd ; f5 cdd70693 db 0x54 ; f6 54de5729 db 0x23 ; f7 23d967bf db 0xb3 ; f8 b3667a2e db 0xc4 ; f9 c4614ab8 db 0x5d ; fa 5d681b02 db 0x2a ; fb 2a6f2b94 db 0xb4 ; fc b40bbe37 db 0xc3 ; fd c30c8ea1 db 0x5a ; fe 5a05df1b db 0x2d ; ff 2d02ef8d ; EOF ;
41.736031
80
0.383662
997e0848746a8a26826ed5234ac3119de25a5bbe
287
asm
Assembly
oeis/021/A021380.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021380.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021380.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021380: Decimal expansion of 1/376. ; 0,0,2,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5 seq $0,173833 ; 10^n - 3. div $0,376 mod $0,10
41
199
0.54007
54e8f08d6c1fe72d9e8e46387db45c30478675b7
603
asm
Assembly
src/third_party/nasm/test/br3392538.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
src/third_party/nasm/test/br3392538.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
src/third_party/nasm/test/br3392538.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
bits 64 default rel section .text global _start _start: mov rax, 1 ; write syscall mov rdi, 1 mov rsi, msg mov rdx, msglen syscall mov rax, 60 ; exit syscall sub rdi, rdi syscall ; either of the following lines cause: Error in `nasm': double free or corruption ; Aborted (core dumped) foo ; warning: label alone on a line without a colon might be in error [-w+label-orphan] mov r8, r9, r10 ; error: invalid combination of opcode and operands add r8d, byte 80h ; warning: signed byte value exceeds bounds [-w+number-overflow] section .data msg db "Hello, world!", 10 msglen equ $-msg
21.535714
105
0.721393
07d518a942aaabc0ca67fcc3d9fcb6419fa51733
591
asm
Assembly
programs/oeis/337/A337286.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/337/A337286.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/337/A337286.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A337286: a(n) = Sum_{i=0..n} i^2*T(i)^2, where T(i) = A000073(i) is the i-th tribonacci number. ; 0,0,4,13,77,477,2241,10522,47386,204202,860302,3546623,14357567,57286271,225714755,879795380,3397426356,13012405492,49478890936,186932228945,702169068945,2623863676449,9758799153349,36140284390030,133317609306766,490032600916766,1795262239190210,6557012850772931 mov $27,$0 mov $29,$0 lpb $29 clr $0,27 mov $0,$27 sub $29,1 sub $0,$29 cal $0,337281 ; a(n) = n*T(n), where T(n) = A000073(n) = n-th tribonacci number. add $3,$0 mov $4,$0 mul $4,$3 add $28,$4 lpe mov $1,$28
32.833333
264
0.7022
0746da7609c941bc94c88d6c038c074a51745233
416
asm
Assembly
programs/oeis/027/A027271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027271.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A027271: a(n) = Sum_{k=0..2n} (k+1)*T(n,k), where T is given by A026536. ; 1,4,18,48,180,432,1512,3456,11664,25920,85536,186624,606528,1306368,4199040,8957952,28553472,60466176,191476224,403107840,1269789696,2660511744,8344332288,17414258688,54419558400,113192681472 mov $2,$0 add $2,1 mov $0,$2 mov $1,$2 mov $4,3 lpb $0,1 sub $0,1 mul $1,$4 mov $3,6 div $3,$4 mov $4,$3 lpe sub $1,3 div $1,3 add $1,1
21.894737
193
0.680288
920478491dbeb6c09c1c908ae5f2516f8e37e193
1,767
asm
Assembly
audio/music/meetmaletrainer.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
audio/music/meetmaletrainer.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
audio/music/meetmaletrainer.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
Music_MeetMaleTrainer_Ch1:: tempo 112 volume 7, 7 duty 3 vibrato 20, 3, 3 toggleperfectpitch notetype 12, 11, 4 octave 3 C# 1 D_ 1 D# 1 E_ 1 F_ 12 rest 16 Music_MeetMaleTrainer_branch_7f78f:: octave 3 B_ 4 A_ 4 G# 2 F# 2 E_ 2 D# 2 F# 4 E_ 6 F_ 2 F# 4 G_ 8 octave 4 D_ 8 E_ 16 loopchannel 0, Music_MeetMaleTrainer_branch_7f78f Music_MeetMaleTrainer_Ch2:: duty 3 vibrato 24, 2, 2 notetype 12, 12, 4 octave 4 E_ 1 D# 1 D_ 1 C# 1 octave 3 B_ 12 rest 2 E_ 1 rest 3 E_ 1 rest 9 Music_MeetMaleTrainer_branch_7f7b5:: notetype 12, 12, 4 octave 4 E_ 6 D# 6 C# 4 octave 3 B_ 2 A_ 2 G# 2 F# 2 G# 2 A_ 2 B_ 2 octave 4 C# 2 notetype 12, 12, 7 F_ 16 notetype 12, 12, 5 octave 3 F# 8 octave 4 C# 8 loopchannel 0, Music_MeetMaleTrainer_branch_7f7b5 Music_MeetMaleTrainer_Ch3:: notetype 12, 1, 0 rest 6 octave 4 B_ 1 rest 1 E_ 1 rest 1 B_ 1 rest 3 B_ 1 rest 1 E_ 1 rest 1 B_ 1 rest 3 B_ 1 rest 3 E_ 1 rest 1 F_ 1 rest 1 F# 1 rest 1 Music_MeetMaleTrainer_branch_7f7ea:: E_ 1 rest 1 B_ 1 rest 1 E_ 1 rest 1 B_ 1 rest 1 E_ 1 rest 1 B_ 1 rest 1 E_ 1 rest 1 B_ 1 rest 1 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 G_ 1 rest 1 octave 5 D_ 1 rest 1 octave 4 G_ 1 rest 1 octave 5 D_ 1 rest 1 octave 4 G_ 1 rest 1 octave 5 D_ 1 rest 1 octave 4 G_ 1 rest 1 octave 5 D_ 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 octave 5 C# 1 rest 1 octave 4 F# 1 rest 1 D# 1 rest 1 loopchannel 0, Music_MeetMaleTrainer_branch_7f7ea
9.251309
50
0.644029
863a0c91badf51df2cb0be1e852525efdbda0bf9
4,845
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_4565_396.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_4565_396.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_4565_396.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %rcx push %rdi push %rsi lea addresses_D_ht+0x1984, %rsi lea addresses_WT_ht+0x19380, %rdi nop nop dec %r11 mov $98, %rcx rep movsq nop nop nop and %r15, %r15 lea addresses_A_ht+0xc3d9, %rsi lea addresses_A_ht+0x182f9, %rdi add %r12, %r12 mov $54, %rcx rep movsl nop nop nop nop nop cmp $54388, %r15 pop %rsi pop %rdi pop %rcx pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rax push %rbp push %rdi // Load lea addresses_normal+0x3ce4, %rbp nop nop nop nop nop inc %r14 mov (%rbp), %r12d nop nop nop nop nop xor %rbp, %rbp // Load mov $0x72aa00000000824, %r14 nop sub %r12, %r12 movb (%r14), %r10b nop nop nop dec %rax // Faulty Load lea addresses_PSE+0x13d04, %rbp nop and $24691, %rax mov (%rbp), %r14w lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rdi pop %rbp pop %rax pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'33': 4565} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
46.142857
2,999
0.660268
702ccb011c7423ade7ba533d06870ca4afa8a77a
4,437
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca_notsx.log_21829_1815.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca_notsx.log_21829_1815.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca_notsx.log_21829_1815.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 %r15 push %rax push %rbp push %rbx push %rdi push %rsi // Store lea addresses_A+0xf153, %r14 nop cmp %rsi, %rsi mov $0x5152535455565758, %r15 movq %r15, (%r14) nop inc %rsi // Store mov $0xd23, %rax nop nop nop sub $4618, %rsi movl $0x51525354, (%rax) nop nop nop nop nop xor $46585, %rsi // Load lea addresses_UC+0x150ff, %rbp nop nop nop nop nop cmp %rbx, %rbx mov (%rbp), %r14 nop and $17725, %rbp // Faulty Load lea addresses_US+0x723, %r15 nop nop nop nop nop add $54627, %r14 mov (%r15), %rsi lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rbx pop %rbp pop %rax pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
52.2
2,999
0.656975
29d1a2e6258dd16803e05572a22b3c04db02ca74
1,167
asm
Assembly
programs/oeis/164/A164464.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/164/A164464.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/164/A164464.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A164464: Number of binary strings of length n with no substrings equal to 0001, 0100, or 0111. ; 13,20,31,47,70,104,154,227,334,491,721,1058,1552,2276,3337,4892,7171,10511,15406,22580,33094,48503,71086,104183,152689,223778,327964,480656,704437,1032404,1513063,2217503,3249910,4762976,6980482,10230395,14993374,21973859,32204257,47197634,69171496,101375756,148573393,217744892,319120651,467694047,685438942,1004559596,1472253646,2157692591,3162252190,4634505839,6792198433,9954450626,14588956468,21381154904,31335605533,45924562004,67305716911,98641322447,144565884454,211871601368,310512923818,455078808275,666950409646,977463333467,1432542141745,2099492551394,3076955884864,4509498026612,6608990578009,9685946462876,14195444489491,20804435067503,30490381530382,44685826019876,65490261087382,95980642617767,140666468637646,206156729725031,302137372342801,442803840980450,648960570705484,951097943048288,1393901784028741,2042862354734228,2993960297782519,4387862081811263,6430724436545494 mul $0,2 mov $1,2 mov $4,9 add $4,$0 mov $0,$4 mov $2,1 mov $3,1 mov $4,2 lpb $0 trn $0,2 sub $4,1 mov $5,$1 add $1,$3 add $1,$4 mov $4,$2 mov $2,$5 lpe sub $1,3
53.045455
892
0.825193
b2ee194578efd63e9df755247c8c6c3a3dcf4d9d
24
asm
Assembly
tmp.asm
GarkGarcia/CAMat-Wiki
2488ce79bf7182bc25d5cf54bd836b344e36db1a
[ "MIT" ]
null
null
null
tmp.asm
GarkGarcia/CAMat-Wiki
2488ce79bf7182bc25d5cf54bd836b344e36db1a
[ "MIT" ]
null
null
null
tmp.asm
GarkGarcia/CAMat-Wiki
2488ce79bf7182bc25d5cf54bd836b344e36db1a
[ "MIT" ]
2
2020-06-20T13:03:42.000Z
2020-06-20T13:06:11.000Z
[BITS 64] mov [10], eip
8
13
0.583333
f26232b25c5951a7fe5bc8748381b37f75bbc867
9,030
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_567.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_567.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_567.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1c571, %rsi lea addresses_A_ht+0x10b3d, %rdi nop nop sub $32906, %rbp mov $54, %rcx rep movsb nop nop cmp %rax, %rax lea addresses_WT_ht+0xcb39, %r15 nop nop xor %r12, %r12 movw $0x6162, (%r15) nop nop nop dec %rdi lea addresses_D_ht+0x9471, %rsi lea addresses_UC_ht+0x590d, %rdi nop nop nop nop xor %r9, %r9 mov $54, %rcx rep movsl sub $23266, %rbp lea addresses_D_ht+0x105f1, %rdi nop cmp $10164, %r12 vmovups (%rdi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbp nop sub $49040, %rsi lea addresses_A_ht+0x19dd1, %rax nop nop nop nop nop xor %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, (%rax) nop nop nop dec %rax lea addresses_WT_ht+0x3161, %rbp nop nop nop nop lfence mov $0x6162636465666768, %r12 movq %r12, %xmm7 vmovups %ymm7, (%rbp) nop add $29972, %rbp lea addresses_WC_ht+0x436d, %rsi lea addresses_D_ht+0x7591, %rdi nop nop and %r15, %r15 mov $81, %rcx rep movsq nop add %rsi, %rsi lea addresses_UC_ht+0x153d4, %rsi lea addresses_WC_ht+0x10071, %rdi clflush (%rdi) nop nop nop add %r15, %r15 mov $51, %rcx rep movsq nop nop cmp $31582, %rcx lea addresses_WT_ht+0x3481, %r15 nop nop and %rbp, %rbp mov (%r15), %r12w nop xor $57058, %r9 lea addresses_WT_ht+0xcb7d, %rbp nop and %rax, %rax movups (%rbp), %xmm6 vpextrq $1, %xmm6, %r9 nop nop nop nop add %rbp, %rbp lea addresses_WT_ht+0x161d0, %rsi lea addresses_normal_ht+0x1ac71, %rdi nop nop nop nop nop cmp %rbp, %rbp mov $33, %rcx rep movsq nop nop nop nop cmp $50006, %r9 lea addresses_normal_ht+0x1db71, %r15 nop nop nop nop nop sub %rax, %rax mov $0x6162636465666768, %rbp movq %rbp, (%r15) nop nop nop sub $14719, %rsi lea addresses_WT_ht+0x17a71, %rsi lea addresses_A_ht+0x5871, %rdi nop nop nop cmp %r9, %r9 mov $99, %rcx rep movsw nop nop sub $18332, %rax lea addresses_UC_ht+0x5731, %rcx nop nop nop nop nop and $47810, %rdi vmovups (%rcx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r12 dec %rsi lea addresses_D_ht+0x5471, %rsi lea addresses_normal_ht+0x9471, %rdi nop nop nop nop nop and $31644, %r15 mov $77, %rcx rep movsw nop nop nop nop nop xor $39055, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rax push %rcx push %rdi push %rdx // Load lea addresses_US+0x6e11, %r11 nop dec %r8 vmovups (%r11), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdi nop cmp %rdi, %rdi // Load lea addresses_US+0x113a1, %rax clflush (%rax) nop nop add %rcx, %rcx movb (%rax), %r8b nop nop nop nop nop xor $5637, %rax // Store mov $0xa1d, %r15 nop add $11918, %rdx movl $0x51525354, (%r15) nop nop nop cmp %rax, %rax // Store lea addresses_normal+0x9071, %r15 nop add $60767, %rdi mov $0x5152535455565758, %rcx movq %rcx, %xmm5 vmovups %ymm5, (%r15) nop nop nop nop add %r8, %r8 // Faulty Load lea addresses_UC+0x471, %rdi nop nop cmp $33858, %r11 mov (%rdi), %r8d lea oracles, %r15 and $0xff, %r8 shlq $12, %r8 mov (%r15,%r8,1), %r8 pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': True, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}} {'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.030928
2,999
0.656035
5964ce327c6c5d0aa434e43d861bb8292301667d
7,067
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1487.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_1487.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_1487.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17b5e, %r11 nop nop cmp $64876, %rdi mov (%r11), %r12w nop nop nop nop nop dec %rbp lea addresses_UC_ht+0xfee6, %r10 nop inc %rsi mov $0x6162636465666768, %rbp movq %rbp, %xmm6 movups %xmm6, (%r10) nop xor %rdi, %rdi lea addresses_WT_ht+0x1775e, %rsi lea addresses_WC_ht+0x1c21e, %rdi clflush (%rsi) nop nop xor %r13, %r13 mov $35, %rcx rep movsl nop nop nop nop nop xor %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_D+0x755e, %r10 nop add $59992, %rbx movl $0x51525354, (%r10) and $23196, %r14 // Store lea addresses_UC+0x1fd5e, %r14 nop nop nop and $60813, %r13 mov $0x5152535455565758, %rax movq %rax, (%r14) nop cmp $37035, %rbx // Store lea addresses_WT+0xdb5e, %r8 inc %rcx mov $0x5152535455565758, %rax movq %rax, %xmm0 movups %xmm0, (%r8) nop nop sub %r14, %r14 // Store lea addresses_A+0x1245e, %r14 nop nop nop nop nop and %rcx, %rcx mov $0x5152535455565758, %rbx movq %rbx, (%r14) nop nop nop nop inc %rax // Store lea addresses_WC+0x840e, %r14 nop nop nop inc %rcx mov $0x5152535455565758, %r13 movq %r13, %xmm3 vmovups %ymm3, (%r14) nop nop inc %rcx // Store lea addresses_A+0x835e, %r14 and %r13, %r13 mov $0x5152535455565758, %r8 movq %r8, (%r14) nop nop nop nop nop add %rax, %rax // Store lea addresses_PSE+0xd15e, %r8 xor $48085, %r13 mov $0x5152535455565758, %r10 movq %r10, %xmm7 vmovups %ymm7, (%r8) nop nop add %rbx, %rbx // Store lea addresses_PSE+0x1aa37, %rbx nop inc %r14 movw $0x5152, (%rbx) nop nop nop nop sub $64121, %r13 // REPMOV lea addresses_normal+0xa7c2, %rsi lea addresses_WC+0x163fe, %rdi nop nop nop nop nop xor $53533, %r13 mov $45, %rcx rep movsw nop nop cmp $26205, %r14 // Faulty Load lea addresses_PSE+0x1575e, %rax clflush (%rax) xor %r14, %r14 mov (%rax), %r10w lea oracles, %rcx and $0xff, %r10 shlq $12, %r10 mov (%rcx,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_normal', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 5, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.178404
2,999
0.655016
d65c96d394ebd113a04e69e7742c1abe98e7fc67
1,182
asm
Assembly
programs/oeis/017/A017056.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017056.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017056.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017056: a(n) = (7*n + 6)^4. ; 1296,28561,160000,531441,1336336,2825761,5308416,9150625,14776336,22667121,33362176,47458321,65610000,88529281,116985856,151807041,193877776,244140625,303595776,373301041,454371856,547981281,655360000,777796321,916636176,1073283121,1249198336,1445900625,1664966416,1908029761,2176782336,2472973441,2798410000,3154956561,3544535296,3969126001,4430766096,4931550625,5473632256,6059221281,6690585616,7370050801,8100000000,8882874001,9721171216,10617447681,11574317056,12594450625,13680577296,14835483601,16062013696,17363069361,18741610000,20200652641,21743271936,23372600161,25091827216,26904200625,28813025536,30821664721,32933538576,35152125121,37480960000,39923636481,42483805456,45165175441,47971512576,50906640625,53974440976,57178852641,60523872256,64013554081,67652010000,71443409521,75391979776,79502005521,83777829136,88223850625,92844527616,97644375361,102627966736,107799932241,113164960000,118727795761,124493242896,130466162401,136651472896,143054150625,149679229456,156531800881,163617014016,170940075601,178506250000,186320859201,194389282816,202716958081,211309379856,220172100625,229310730496,238730937201 mul $0,7 add $0,6 pow $0,4
168.857143
1,122
0.887479
1545f5752923db77c4eb2770d4cb856815ce9275
337
asm
Assembly
programs/oeis/072/A072262.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/072/A072262.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/072/A072262.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A072262: a(n) = 4*a(n-1) + 1, a(1)=11. ; 11,45,181,725,2901,11605,46421,185685,742741,2970965,11883861,47535445,190141781,760567125,3042268501,12169074005,48676296021,194705184085,778820736341,3115282945365,12461131781461,49844527125845,199378108503381,797512434013525,3190049736054101 mov $1,4 pow $1,$0 div $1,3 mul $1,34 add $1,11
37.444444
246
0.78635
e2a890039da427a1ae5ff582bee02bf1f5bc0658
7,684
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1c3cc, %rdx sub $5443, %r12 movb (%rdx), %r11b and %rbp, %rbp lea addresses_D_ht+0xe33f, %rcx nop nop xor %r11, %r11 movl $0x61626364, (%rcx) nop nop nop nop nop sub $62034, %r10 lea addresses_D_ht+0x1e13f, %r12 cmp %r15, %r15 mov (%r12), %ebp add $7321, %r11 lea addresses_D_ht+0x537f, %rdx nop xor %r15, %r15 mov (%rdx), %bp nop nop and %r15, %r15 lea addresses_normal_ht+0xc33f, %rsi lea addresses_normal_ht+0x1783f, %rdi sub $33177, %r11 mov $58, %rcx rep movsl nop nop nop add $62615, %rcx lea addresses_UC_ht+0x107ff, %r12 clflush (%r12) nop nop nop nop nop and $53788, %rdi mov (%r12), %esi cmp %rbp, %rbp lea addresses_UC_ht+0x1a723, %rsi lea addresses_normal_ht+0x176bf, %rdi clflush (%rsi) nop nop nop nop inc %r10 mov $7, %rcx rep movsw nop nop nop nop xor %r10, %r10 lea addresses_WT_ht+0x233f, %rsi lea addresses_D_ht+0x10b3f, %rdi nop nop xor %r12, %r12 mov $19, %rcx rep movsl add $60499, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbx push %rcx push %rdx push %rsi // Load lea addresses_RW+0x1b358, %rbx nop nop nop nop dec %r12 mov (%rbx), %r10w nop sub %r12, %r12 // Store lea addresses_WT+0x89ff, %r8 nop nop nop sub %rsi, %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%r8) nop nop nop nop nop xor %rcx, %rcx // Store lea addresses_UC+0x12467, %r8 nop nop nop nop nop add %rsi, %rsi mov $0x5152535455565758, %r10 movq %r10, %xmm6 vmovntdq %ymm6, (%r8) nop nop nop nop nop cmp $17464, %r12 // Store lea addresses_WC+0x14daf, %r8 nop nop nop sub %r10, %r10 mov $0x5152535455565758, %rdx movq %rdx, (%r8) nop sub $11551, %rcx // Store lea addresses_D+0x1f93f, %r8 nop and $7947, %rbx mov $0x5152535455565758, %rdx movq %rdx, (%r8) nop nop nop nop add $17862, %r8 // Load lea addresses_A+0x11baf, %rbx nop nop nop sub $13399, %rdx mov (%rbx), %r8w nop dec %r8 // Store lea addresses_WC+0x1aa0b, %rsi nop cmp $62016, %rdx mov $0x5152535455565758, %r10 movq %r10, (%rsi) nop add %r10, %r10 // Faulty Load lea addresses_UC+0x4b3f, %rsi cmp $8604, %r12 mov (%rsi), %rbx lea oracles, %rdx and $0xff, %rbx shlq $12, %rbx mov (%rdx,%rbx,1), %rbx pop %rsi pop %rdx pop %rcx pop %rbx pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_D', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'src': {'same': True, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.408696
2,999
0.652395
75965a5081abcf1e1bf32dd2140af4611e932ced
584
asm
Assembly
programs/oeis/292/A292117.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/292/A292117.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/292/A292117.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A292117: Coefficients of a power series f(q) with coefficients +1 or -1 such that Product_{m >= 1} f(q^(2m-1)) = Sum_{m = -oo..oo} q^(m(3m-1)/2). ; 1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1 div $0,3 seq $0,10060 ; Thue-Morse sequence: let A_k denote the first 2^k terms; then A_0 = 0 and for k >= 0, A_{k+1} = A_k B_k, where B_k is obtained from A_k by interchanging 0's and 1's. mov $1,-1 bin $1,$0 mov $0,$1
64.888889
214
0.554795
a5d43e9aaa10f88fc68d4a20a30872c9f4392b25
22,278
asm
Assembly
12_02CBMScrDisp/bak/12_01ScrDisp.asm
phaze101/C64-Bedtime-Coding-Public
f74eb3c454479f3df9c1122ecc1b27f6633570d9
[ "MIT" ]
null
null
null
12_02CBMScrDisp/bak/12_01ScrDisp.asm
phaze101/C64-Bedtime-Coding-Public
f74eb3c454479f3df9c1122ecc1b27f6633570d9
[ "MIT" ]
null
null
null
12_02CBMScrDisp/bak/12_01ScrDisp.asm
phaze101/C64-Bedtime-Coding-Public
f74eb3c454479f3df9c1122ecc1b27f6633570d9
[ "MIT" ]
1
2021-03-01T21:27:42.000Z
2021-03-01T21:27:42.000Z
;============================================================================ ; C64 Bedtime Coding ; By Phaze 101 ; ; Article 12 - Example 01 ;============================================================================ ; I wish to thank all those that sent me emails or get in touch with me ; regarding this serious or articles. ; ; Also I would like to thank my team for their help in making these articles ; possible and for their help in translating these articles to Italian. ; ; If you find any bugs (I am not not perfect) or issues please get in touch. ; I will do my best to help out where possible however do allow sometime ; since I also have a day job to deal with. ;============================================================================== ; Where to assemble in memory ;============================================================================== * = $c000 ;============================================================================== ; Constants V1.0 ; ; In future this will be a separate file ;============================================================================== ;Base Addresses ScrBase = $0400 ScrCol = $d800 ZeroPtr1Low = $03 ZeroPtr1High = $04 ZeroPtr2Low = $05 ZeroPtr2High = $06 ;Temp Memory Locations in Page Zero ZeroTmpMem01 = $02 ZeroTmpMem02 = $2A ZeroTmpMem03 = $52 ;C64 colours Definitions Black = 0 White = 1 Red = 2 Cyan = 3 Purple = 4 Green = 5 Blue = 6 Yellow = 7 Orange = 8 Brown = 9 LightRed = 10 DarkGray = 11 MediumGray = 12 LightGreen = 13 LightBlue = 14 LightGray = 15 ;Character Values SpaceCharacter = 32 ;Logic constants False = 0 True = 1 ;============================================================================== ; Main Entry ;============================================================================== Main ldx #Green ldy #LightGreen jsr SetBgBorder jsr DisplayScreens jsr WaitForSpace ldx #Blue ;Restore Background Colour ldy #LightBlue ;Restore Border Colour jsr SetBgBorder lda #SpaceCharacter ;Fill value ldy #Black ;Colour Value jsr ScrFill rts ;============================================================================== ; Set Baground and Border ; ; Input ; X Register - Value for Background ; Y Register - Valeu for Border ;============================================================================== SetBgBorder stx $d021 sty $d020 rts ;============================================================================== ; Screen Fill ; Set the screen text to a colour ; ; Input ; A register = Fill Value ; Y register = Colour Value ;============================================================================== ScrFill sta $fb ;Fill Character ldx #$00 ScrLoop lda $fb sta ScrBase,x ; Screen 1024 sta ScrBase+250,x ; Screen 1024 + 250 sta ScrBase+500,x ; Screen 1024 + 500 sta ScrBase+750,x ; Screen 1024 + 750 tya ; Colour Value is in Y register sta ScrCol,x ; Colour Mem 55296 sta ScrCol+250,x ; Colour Mem 55296 + 250 sta ScrCol+500,x ; Colour Mem 55296 + 500 sta ScrCol+750,x ; Colour Mem 55296 + 750 inx cpx #$fa bne ScrLoop rts ;============================================================================== ; Wait for Space bar to be pressed ;============================================================================== WaitForSpace ; sei lda #%11111111 sta $dc02 lda #%00000000 sta $dc03 lda #$7f ;%01111111 - only row 7 KB matrix sta $dc00 WaitLoop1 lda $dc01 and #$10 ;mask %00010000 bne WaitLoop1 WaitLoop2 lda $dc01 and #$10 ;mask %00010000 beq WaitLoop2 ; cli rts ;============================================================================== ; Set Cursor Position on Screen ; ; Input ; X register - number of Colums ; Y register - number of rows ;============================================================================== SetCurs cld cpy #$0 beq AddColumn ;Use an addition to calculate rows CalcRow clc lda #$28 adc Buf2 sta Buf2 lda #$0 adc Buf2+1 sta Buf2+1 dey bne CalcRow ;Add Column AddColumn cpx #$0 beq AddScrBase clc txa adc Buf2 sta Buf2 lda #$0 adc Buf2+1 sta Buf2+1 ;Add position to base address AddScrBase clc lda Buf1 adc Buf2 sta Buf3 lda Buf1+1 adc Buf2+1 sta Buf3+1 rts Buf1 word ScrBase Buf2 word $0000 ;Holds offset from Screen Base Address Buf3 word $0000 ;Holds Screen Address where to write first char ;============================================================================== ; Print At with Colour ; 1. Handles number Strings in one Pass ; 2. Read X and Y values from first 2 bytes before each string ; 3. String 3rd byte contains Colour ; 4. Handles colour for the string ; ; PrintAT requires that ZeroTmpMem01 is set before it is called. ; ZeroTmpMem01 is used by PrintAT to know how many strings it needs to print ;============================================================================== PrintAT ;Init Part sta $fb ;source - Pointing to first byte X value sty $fc ;Get offset for screen and colour men SetPos jsr ClearBuffers ;make sure buffers are clear ldy #$0 lda ($fb),y ;Get No of Columns tax iny lda ($fb),y ;Get No of Rows tay jsr SetCurs ;Calculate Offset in colour memory clc lda #<ScrCol adc Buf2 sta ZeroPtr1Low lda #>ScrCol adc Buf2+1 sta ZeroPtr1High ;Get text colour and sore it in memory ldy #$2 lda ($fb),y sta ZeroTmpMem02 ;Set Source to the String that will be Printed - skip 3 Bytes clc lda #$03 adc $fb sta $fb lda #$0 adc $fc sta $fc ;Set Destination on the Screen lda Buf3 ;destination sta $fd lda Buf3+1 sta $fe ;Read String and Display it ldy #$0 lda ($fb),y PrtLoop beq PrintNextString sta ($fd),y lda ZeroTmpMem02 sta (ZeroPtr1Low),y iny lda ($fb),y bne PrtLoop ;Is there more strings to print PrintNextString dec ZeroTmpMem01 ;we could have used DEC NoStrs but in doing so ;the next time we run the program NoStrs will ;be a zero and we will not know how many ;strings there are to read ; cmp NoStrs ;this is not needed but for clarity is commented beq PrintExit ;If there is then Point to the next String iny ;AddrNextString clc tya adc $fb sta $fb lda #$0 adc $fc sta $fc jmp SetPos PrintExit rts ;============================================================================== ; Display Screen with Text ;============================================================================== DisplayScreens lda #SpaceCharacter ;Fill value ldy #Black ;Colour Value jsr ScrFill ;Display Home Screen lda HomeScreen ;Get number of strings sta ZeroTmpMem01 ;store it in out templocation lda #<HomeScreen+1 ;CBMProgStudio Enable ;Calc address first then Lo/Hi Byte ldy #>HomeScreen+1 ;CBMProgStudio Enable ;Calc address first then Lo/Hi Byte jsr PrintAT jsr WaitForSpace lda #SpaceCharacter ;Fill value ldy #Black ;Colour Value jsr ScrFill ;Display Game Screen jsr CBMScreen jsr WaitForSpace lda #SpaceCharacter ;Fill value ldy #Black ;Colour Value jsr ScrFill ;Display Game Over Screen lda GameOverScreen ;Get number of strings sta ZeroTmpMem01 ;store it in out temp location lda #<GameOverScreen+1 ;CBMProgStudio Enable ;Calc address first then Lo/Hi Byte ldy #>GameOverScreen+1 ;CBMProgStudio Enable ;Calc address first then Lo/Hi Byte jsr PrintAT rts ;============================================================================== ; CBM Prog Studio Screen Display ;============================================================================== CBMScreen ldx #$00 ldy #$00 @Loop lda Screen_1_Screen_data,y sta ScrBase,x ; Screen 1024 lda Screen_1_Screen_data+250,y sta ScrBase+250,x ; Screen 1024 + 250 lda Screen_1_Screen_data+500,y sta ScrBase+500,x ; Screen 1024 + 500 lda Screen_1_Screen_data+750,y sta ScrBase+750,x ; Screen 1024 + 750 lda Screen_1_Colour_data,y sta ScrCol,x ; Colour Mem 55296 lda Screen_1_Colour_data+250,y sta ScrCol+250,x ; Colour Mem 55296 + 250 lda Screen_1_Colour_data+500,y sta ScrCol+500,x ; Colour Mem 55296 + 500 lda Screen_1_Colour_data+750,y sta ScrCol+750,x ; Colour Mem 55296 + 750 iny inx cpx #$fa bne @Loop rts ;============================================================================== ; Clear Memory Buffers ;============================================================================== ClearBuffers ldy #$4 lda #$0 ClrBufLoop dey sta Buf2,y bne ClrBufLoop rts ;============================================================================== ; Data ; ; First byte is number of strings to Read ; First 2 bytes of each string are the X and Y position on the screen ; Third Byte is the colour of our string ; Each String ternimantes with a value of 0 ;============================================================================== HomeScreen byte $06 byte $01,$01,Black ;X,Y Position text 'phaze101',0 byte $04,$05,DarkGray text 'in collaboration with',0 byte $07,$09,MediumGray text 'retroprogramming italia',0 byte $0a,$0d,LightGray text 'presents',0 byte $0d,$11,MediumGray text 'panic 101',0 byte $10,$15,White text 'press any key to play',0 GameScreen byte $08 ;No of Strings to Print byte $01,$00,White ;X,Y Position + colour text 'score:0000',0 byte $0f,$00,Blue text 'hi-score:0000',0 byte $20,$00,Red text 'Lives:3',0 byte $00,$04,Brown text '{127*40}',0 byte $00,$09,Brown text '{127*40}',0 byte $00,$0e,Brown text '{127*40}',0 byte $00,$13,Brown text '{127*40}',0 byte $00,$18,Black text '{102*40}',0 GameOverScreen byte $02 byte $0f,$0c,Black ;X,Y Position text 'Game Over',0 byte $0c,$18,White text 'press any key to play again',0 ;============================================================================== ; CBM Prg Studio Screen Editor Output Data - Saved as Assember data ; ; Please note that this is nearly 2K of Data (1000 chars + 1000 colours) ;============================================================================== ; Screen 1 - Screen data Screen_1_Screen_data BYTE $20,$13,$03,$0F,$12,$05,$3A,$30,$30,$30,$30,$20,$20,$20,$20,$08,$09,$2D,$13,$03,$0F,$12,$05,$3A,$30,$30,$30,$30,$20,$20,$20,$20,$0C,$09,$16,$05,$13,$3A,$33,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66 BYTE $20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20 BYTE $66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20 BYTE $66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$6B,$73,$66,$66,$66,$66,$66,$66 BYTE $20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20 BYTE $20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6B,$73,$20,$20,$20,$20,$20,$20 BYTE $66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66,$66 ; Screen 1 - Colour data Screen_1_Colour_data BYTE $05,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$05,$05,$05,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$06,$05,$05,$05,$02,$02,$02,$02,$02,$02,$02,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 BYTE $05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05 BYTE $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05 BYTE $00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0C,$0C,$00,$00,$00,$00,$00,$00 BYTE $05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05 BYTE $05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$05,$0C,$0C,$05,$05,$05,$05,$05,$05 BYTE $09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09,$09
41.332096
175
0.438729
5e33b8a9d8a2b9efebe48c2d3f5fc1fbc57f5b27
416
asm
Assembly
programs/oeis/159/A159917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/159/A159917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/159/A159917.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A159917: Fixed point of the morphism 0 -> 01, 1 -> 2, 2 -> 01, starting from a(0) = 0. ; 0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2 lpb $0 mov $2,$0 seq $2,296135 ; {0->01}-transform of the Fibonacci word A003849. sub $0,$2 add $1,$2 lpe mov $0,$1
37.818182
201
0.545673
25bd2f690efcf7a16e3f4957e0ec22fcdd51bc18
34,658
asm
Assembly
ioq3/build/release-js-js/baseq3/ui/ui_playersettings.asm
RawTechnique/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
1
2021-12-31T10:26:58.000Z
2021-12-31T10:26:58.000Z
ioq3/build/release-js-js/baseq3/ui/ui_playersettings.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
28
2019-03-05T20:45:07.000Z
2019-03-05T20:45:57.000Z
ioq3/build/release-js-js/baseq3/ui/ui_playersettings.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
null
null
null
data align 4 LABELV gamecodetoui byte 4 4 byte 4 2 byte 4 3 byte 4 0 byte 4 5 byte 4 1 byte 4 6 align 4 LABELV uitogamecode byte 4 4 byte 4 6 byte 4 2 byte 4 3 byte 4 1 byte 4 5 byte 4 7 align 4 LABELV handicap_items address $69 address $70 address $71 address $72 address $73 address $74 address $75 address $76 address $77 address $78 address $79 address $80 address $81 address $82 address $83 address $84 address $85 address $86 address $87 address $88 byte 4 0 code proc PlayerSettings_DrawName 100 20 ADDRLP4 32 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 36 ADDRLP4 32 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 ASGNI4 ADDRLP4 24 ADDRLP4 32 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 ASGNI4 ADDRLP4 32 INDIRP4 CNSTI4 36 ADDP4 INDIRP4 INDIRI4 ADDRLP4 32 INDIRP4 CNSTI4 40 ADDP4 INDIRI4 NEI4 $91 ADDRLP4 72 CNSTI4 1 ASGNI4 ADDRGP4 $92 JUMPV LABELV $91 ADDRLP4 72 CNSTI4 0 ASGNI4 LABELV $92 ADDRLP4 28 ADDRLP4 72 INDIRI4 ASGNI4 ADDRLP4 20 CNSTI4 16 ASGNI4 ADDRLP4 12 ADDRGP4 text_color_normal ASGNP4 ADDRLP4 28 INDIRI4 CNSTI4 0 EQI4 $93 ADDRLP4 20 ADDRLP4 20 INDIRI4 CNSTI4 16384 BORI4 ASGNI4 ADDRLP4 12 ADDRGP4 text_color_highlight ASGNP4 LABELV $93 ADDRLP4 36 INDIRI4 ARGI4 ADDRLP4 24 INDIRI4 ARGI4 ADDRGP4 $95 ARGP4 ADDRLP4 20 INDIRI4 ARGI4 ADDRLP4 12 INDIRP4 ARGP4 ADDRGP4 UI_DrawProportionalString CALLV pop ADDRLP4 36 ADDRLP4 36 INDIRI4 CNSTI4 64 ADDI4 ASGNI4 ADDRLP4 24 ADDRLP4 24 INDIRI4 CNSTI4 27 ADDI4 ASGNI4 ADDRLP4 0 ADDRLP4 32 INDIRP4 CNSTI4 72 ADDP4 ASGNP4 ADDRLP4 12 ADDRGP4 g_color_table+112 ASGNP4 ADDRLP4 8 ADDRLP4 36 INDIRI4 ASGNI4 ADDRGP4 $98 JUMPV LABELV $97 ADDRLP4 80 CNSTI4 0 ASGNI4 ADDRLP4 28 INDIRI4 ADDRLP4 80 INDIRI4 NEI4 $100 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $100 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 94 NEI4 $100 ADDRLP4 88 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 88 INDIRI4 ADDRLP4 80 INDIRI4 EQI4 $100 ADDRLP4 88 INDIRI4 CNSTI4 65 LTI4 $103 ADDRLP4 88 INDIRI4 CNSTI4 90 LEI4 $102 LABELV $103 ADDRLP4 92 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 92 INDIRI4 CNSTI4 97 LTI4 $104 ADDRLP4 92 INDIRI4 CNSTI4 122 LEI4 $102 LABELV $104 ADDRLP4 96 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 96 INDIRI4 CNSTI4 48 LTI4 $100 ADDRLP4 96 INDIRI4 CNSTI4 57 GTI4 $100 LABELV $102 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 CNSTI4 48 SUBI4 CNSTI4 7 BANDI4 ASGNI4 ADDRLP4 16 INDIRI4 CNSTI4 0 NEI4 $105 ADDRLP4 16 CNSTI4 7 ASGNI4 LABELV $105 ADDRLP4 12 ADDRLP4 16 INDIRI4 CNSTI4 4 LSHI4 ADDRGP4 g_color_table ADDP4 ASGNP4 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 2 ADDP4 ASGNP4 ADDRGP4 $98 JUMPV LABELV $100 ADDRLP4 8 INDIRI4 ARGI4 ADDRLP4 24 INDIRI4 ARGI4 ADDRLP4 4 INDIRI1 CVII4 1 ARGI4 ADDRLP4 20 INDIRI4 ARGI4 ADDRLP4 12 INDIRP4 ARGP4 ADDRGP4 UI_DrawChar CALLV pop ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 ASGNP4 ADDRLP4 8 ADDRLP4 8 INDIRI4 CNSTI4 8 ADDI4 ASGNI4 LABELV $98 ADDRLP4 80 ADDRLP4 0 INDIRP4 INDIRI1 ASGNI1 ADDRLP4 4 ADDRLP4 80 INDIRI1 ASGNI1 ADDRLP4 80 INDIRI1 CVII4 1 CNSTI4 0 NEI4 $97 ADDRLP4 28 INDIRI4 CNSTI4 0 EQI4 $107 ADDRLP4 84 ADDRGP4 trap_Key_GetOverstrikeMode CALLI4 ASGNI4 ADDRLP4 84 INDIRI4 CNSTI4 0 EQI4 $109 ADDRLP4 4 CNSTI1 11 ASGNI1 ADDRGP4 $110 JUMPV LABELV $109 ADDRLP4 4 CNSTI1 10 ASGNI1 LABELV $110 ADDRLP4 20 ADDRLP4 20 INDIRI4 CNSTI4 -16385 BANDI4 ASGNI4 ADDRLP4 20 ADDRLP4 20 INDIRI4 CNSTI4 4096 BORI4 ASGNI4 ADDRLP4 36 INDIRI4 ADDRLP4 32 INDIRP4 CNSTI4 60 ADDP4 INDIRI4 CNSTI4 3 LSHI4 ADDI4 ARGI4 ADDRLP4 24 INDIRI4 ARGI4 ADDRLP4 4 INDIRI1 CVII4 1 ARGI4 ADDRLP4 20 INDIRI4 ARGI4 ADDRGP4 color_white ARGP4 ADDRGP4 UI_DrawChar CALLV pop LABELV $107 ADDRLP4 40 ARGP4 ADDRLP4 32 INDIRP4 CNSTI4 72 ADDP4 ARGP4 CNSTI4 32 ARGI4 ADDRGP4 Q_strncpyz CALLV pop ADDRLP4 40 ARGP4 ADDRGP4 Q_CleanStr CALLP4 pop CNSTI4 320 ARGI4 CNSTI4 440 ARGI4 ADDRLP4 40 ARGP4 CNSTI4 33 ARGI4 ADDRGP4 text_color_normal ARGP4 ADDRGP4 UI_DrawProportionalString CALLV pop LABELV $89 endproc PlayerSettings_DrawName 100 20 proc PlayerSettings_DrawHandicap 36 20 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 INDIRP4 INDIRI4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 INDIRI4 NEI4 $113 ADDRLP4 16 CNSTI4 1 ASGNI4 ADDRGP4 $114 JUMPV LABELV $113 ADDRLP4 16 CNSTI4 0 ASGNI4 LABELV $114 ADDRLP4 12 ADDRLP4 16 INDIRI4 ASGNI4 ADDRLP4 4 CNSTI4 16 ASGNI4 ADDRLP4 8 ADDRGP4 text_color_normal ASGNP4 ADDRLP4 12 INDIRI4 CNSTI4 0 EQI4 $115 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 16384 BORI4 ASGNI4 ADDRLP4 8 ADDRGP4 text_color_highlight ASGNP4 LABELV $115 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 ARGI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 ARGI4 ADDRGP4 $117 ARGP4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 8 INDIRP4 ARGP4 ADDRGP4 UI_DrawProportionalString CALLV pop ADDRLP4 32 CNSTI4 64 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 ADDRLP4 32 INDIRI4 ADDI4 ARGI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CNSTI4 27 ADDI4 ARGI4 ADDRLP4 0 INDIRP4 ADDRLP4 32 INDIRI4 ADDP4 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 handicap_items ADDP4 INDIRP4 ARGP4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 8 INDIRP4 ARGP4 ADDRGP4 UI_DrawProportionalString CALLV pop LABELV $111 endproc PlayerSettings_DrawHandicap 36 20 proc PlayerSettings_DrawEffects 44 20 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 INDIRP4 INDIRI4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 INDIRI4 NEI4 $120 ADDRLP4 16 CNSTI4 1 ASGNI4 ADDRGP4 $121 JUMPV LABELV $120 ADDRLP4 16 CNSTI4 0 ASGNI4 LABELV $121 ADDRLP4 12 ADDRLP4 16 INDIRI4 ASGNI4 ADDRLP4 4 CNSTI4 16 ASGNI4 ADDRLP4 8 ADDRGP4 text_color_normal ASGNP4 ADDRLP4 12 INDIRI4 CNSTI4 0 EQI4 $122 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 16384 BORI4 ASGNI4 ADDRLP4 8 ADDRGP4 text_color_highlight ASGNP4 LABELV $122 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 ARGI4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 ARGI4 ADDRGP4 $124 ARGP4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 8 INDIRP4 ARGP4 ADDRGP4 UI_DrawProportionalString CALLV pop ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 CNSTI4 64 ADDI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CNSTI4 27 ADDI4 CNSTI4 8 ADDI4 CVIF4 4 ARGF4 CNSTF4 1124073472 ARGF4 CNSTF4 1090519040 ARGF4 ADDRGP4 s_playersettings+1412 INDIRI4 ARGI4 ADDRGP4 UI_DrawHandlePic CALLV pop ADDRLP4 36 CNSTI4 64 ASGNI4 ADDRLP4 40 ADDRLP4 0 INDIRP4 ADDRLP4 36 INDIRI4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 ADDRLP4 36 INDIRI4 ADDI4 ADDRLP4 40 INDIRI4 CNSTI4 4 LSHI4 ADDI4 CNSTI4 8 ADDI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CNSTI4 27 ADDI4 CNSTI4 6 ADDI4 CVIF4 4 ARGF4 CNSTF4 1098907648 ARGF4 CNSTF4 1094713344 ARGF4 ADDRLP4 40 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 s_playersettings+1416 ADDP4 INDIRI4 ARGI4 ADDRGP4 UI_DrawHandlePic CALLV pop LABELV $118 endproc PlayerSettings_DrawEffects 44 20 proc PlayerSettings_DrawPlayer 88 28 ADDRGP4 $128 ARGP4 ADDRLP4 4 ARGP4 CNSTI4 64 ARGI4 ADDRGP4 trap_Cvar_VariableStringBuffer CALLV pop ADDRLP4 4 ARGP4 ADDRGP4 s_playersettings+2572 ARGP4 ADDRLP4 80 ADDRGP4 qk_strcmp CALLI4 ASGNI4 ADDRLP4 80 INDIRI4 CNSTI4 0 EQI4 $129 ADDRGP4 s_playersettings+1444 ARGP4 ADDRLP4 4 ARGP4 ADDRGP4 UI_PlayerInfo_SetModel CALLV pop ADDRGP4 s_playersettings+2572 ARGP4 ADDRLP4 4 ARGP4 ADDRGP4 qk_strcpy CALLP4 pop ADDRLP4 68+4 CNSTF4 1125515264 ASGNF4 ADDRLP4 84 CNSTF4 0 ASGNF4 ADDRLP4 68 ADDRLP4 84 INDIRF4 ASGNF4 ADDRLP4 68+8 ADDRLP4 84 INDIRF4 ASGNF4 ADDRGP4 s_playersettings+1444 ARGP4 CNSTI4 22 ARGI4 CNSTI4 11 ARGI4 ADDRLP4 68 ARGP4 ADDRGP4 vec3_origin ARGP4 CNSTI4 2 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 UI_PlayerInfo_SetInfo CALLV pop LABELV $129 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 76 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 80 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRGP4 s_playersettings+1444 ARGP4 ADDRGP4 uis+4 INDIRI4 CNSTI4 2 DIVI4 ARGI4 ADDRGP4 UI_DrawPlayer CALLV pop LABELV $127 endproc PlayerSettings_DrawPlayer 88 28 proc PlayerSettings_SaveChanges 0 8 ADDRGP4 $140 ARGP4 ADDRGP4 s_playersettings+624+60+12 ARGP4 ADDRGP4 trap_Cvar_Set CALLV pop ADDRGP4 $144 ARGP4 CNSTI4 100 CNSTI4 5 ADDRGP4 s_playersettings+956+64 INDIRI4 MULI4 SUBI4 CVIF4 4 ARGF4 ADDRGP4 trap_Cvar_SetValue CALLV pop ADDRGP4 $147 ARGP4 ADDRGP4 s_playersettings+1052+64 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 uitogamecode ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRGP4 trap_Cvar_SetValue CALLV pop LABELV $139 endproc PlayerSettings_SaveChanges 0 8 proc PlayerSettings_MenuKey 8 8 ADDRFP4 0 ADDRFP4 0 INDIRI4 ASGNI4 ADDRFP4 0 INDIRI4 CNSTI4 179 EQI4 $153 ADDRFP4 0 INDIRI4 CNSTI4 27 NEI4 $151 LABELV $153 ADDRGP4 PlayerSettings_SaveChanges CALLV pop LABELV $151 ADDRGP4 s_playersettings ARGP4 ADDRFP4 0 INDIRI4 ARGI4 ADDRLP4 4 ADDRGP4 Menu_DefaultKey CALLI4 ASGNI4 ADDRLP4 4 INDIRI4 RETI4 LABELV $150 endproc PlayerSettings_MenuKey 8 8 proc PlayerSettings_SetMenuItems 48 28 ADDRGP4 $140 ARGP4 ADDRLP4 20 ADDRGP4 UI_Cvar_VariableString CALLP4 ASGNP4 ADDRGP4 s_playersettings+624+60+12 ARGP4 ADDRLP4 20 INDIRP4 ARGP4 CNSTI4 256 ARGI4 ADDRGP4 Q_strncpyz CALLV pop ADDRGP4 $147 ARGP4 ADDRLP4 24 ADDRGP4 trap_Cvar_VariableValue CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 24 INDIRF4 CNSTF4 1065353216 SUBF4 CVFI4 4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 0 LTI4 $163 ADDRLP4 0 INDIRI4 CNSTI4 6 LEI4 $161 LABELV $163 ADDRLP4 0 CNSTI4 6 ASGNI4 LABELV $161 ADDRGP4 s_playersettings+1052+64 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 gamecodetoui ADDP4 INDIRI4 ASGNI4 ADDRGP4 s_playersettings+1444 ARGP4 CNSTI4 0 ARGI4 CNSTU4 1124 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRLP4 4+4 CNSTF4 1125515264 ASGNF4 ADDRLP4 32 CNSTF4 0 ASGNF4 ADDRLP4 4 ADDRLP4 32 INDIRF4 ASGNF4 ADDRLP4 4+8 ADDRLP4 32 INDIRF4 ASGNF4 ADDRGP4 $128 ARGP4 ADDRLP4 36 ADDRGP4 UI_Cvar_VariableString CALLP4 ASGNP4 ADDRGP4 s_playersettings+1444 ARGP4 ADDRLP4 36 INDIRP4 ARGP4 ADDRGP4 UI_PlayerInfo_SetModel CALLV pop ADDRGP4 s_playersettings+1444 ARGP4 CNSTI4 22 ARGI4 CNSTI4 11 ARGI4 ADDRLP4 4 ARGP4 ADDRGP4 vec3_origin ARGP4 CNSTI4 2 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 UI_PlayerInfo_SetInfo CALLV pop ADDRGP4 $144 ARGP4 ADDRLP4 40 ADDRGP4 trap_Cvar_VariableValue CALLF4 ASGNF4 CNSTF4 1084227584 ARGF4 CNSTF4 1120403456 ARGF4 ADDRLP4 40 INDIRF4 ARGF4 ADDRLP4 44 ADDRGP4 Com_Clamp CALLF4 ASGNF4 ADDRLP4 16 ADDRLP4 44 INDIRF4 CVFI4 4 ASGNI4 ADDRGP4 s_playersettings+956+64 CNSTI4 20 ADDRLP4 16 INDIRI4 CNSTI4 5 DIVI4 SUBI4 ASGNI4 LABELV $154 endproc PlayerSettings_SetMenuItems 48 28 proc PlayerSettings_MenuEvent 12 8 ADDRFP4 4 INDIRI4 CNSTI4 3 EQI4 $174 ADDRGP4 $173 JUMPV LABELV $174 ADDRLP4 0 ADDRFP4 0 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 11 EQI4 $179 ADDRLP4 0 INDIRI4 CNSTI4 13 EQI4 $184 ADDRLP4 0 INDIRI4 CNSTI4 14 EQI4 $183 ADDRGP4 $176 JUMPV LABELV $179 ADDRGP4 $180 ARGP4 CNSTI4 100 CNSTI4 25 ADDRGP4 s_playersettings+956+64 INDIRI4 MULI4 SUBI4 ARGI4 ADDRLP4 8 ADDRGP4 va CALLP4 ASGNP4 ADDRGP4 $144 ARGP4 ADDRLP4 8 INDIRP4 ARGP4 ADDRGP4 trap_Cvar_Set CALLV pop ADDRGP4 $177 JUMPV LABELV $183 ADDRGP4 PlayerSettings_SaveChanges CALLV pop ADDRGP4 UI_PlayerModelMenu CALLV pop ADDRGP4 $177 JUMPV LABELV $184 ADDRGP4 PlayerSettings_SaveChanges CALLV pop ADDRGP4 UI_PopMenu CALLV pop LABELV $176 LABELV $177 LABELV $173 endproc PlayerSettings_MenuEvent 12 8 proc PlayerSettings_MenuInit 4 12 ADDRGP4 s_playersettings ARGP4 CNSTI4 0 ARGI4 CNSTU4 2636 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRGP4 PlayerSettings_Cache CALLV pop ADDRGP4 s_playersettings+272 ADDRGP4 PlayerSettings_MenuKey ASGNP4 ADDRGP4 s_playersettings+276 CNSTI4 1 ASGNI4 ADDRGP4 s_playersettings+280 CNSTI4 1 ASGNI4 ADDRGP4 s_playersettings+288 CNSTI4 10 ASGNI4 ADDRGP4 s_playersettings+288+12 CNSTI4 320 ASGNI4 ADDRGP4 s_playersettings+288+16 CNSTI4 16 ASGNI4 ADDRGP4 s_playersettings+288+60 ADDRGP4 $196 ASGNP4 ADDRGP4 s_playersettings+288+68 ADDRGP4 color_white ASGNP4 ADDRGP4 s_playersettings+288+64 CNSTI4 1 ASGNI4 ADDRGP4 s_playersettings+360 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+360+4 ADDRGP4 $204 ASGNP4 ADDRGP4 s_playersettings+360+44 CNSTU4 16388 ASGNU4 ADDRGP4 s_playersettings+360+12 CNSTI4 0 ASGNI4 ADDRGP4 s_playersettings+360+16 CNSTI4 78 ASGNI4 ADDRGP4 s_playersettings+360+76 CNSTI4 256 ASGNI4 ADDRGP4 s_playersettings+360+80 CNSTI4 329 ASGNI4 ADDRGP4 s_playersettings+448 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+448+4 ADDRGP4 $218 ASGNP4 ADDRGP4 s_playersettings+448+44 CNSTU4 16388 ASGNU4 ADDRGP4 s_playersettings+448+12 CNSTI4 376 ASGNI4 ADDRGP4 s_playersettings+448+16 CNSTI4 76 ASGNI4 ADDRGP4 s_playersettings+448+76 CNSTI4 256 ASGNI4 ADDRGP4 s_playersettings+448+80 CNSTI4 334 ASGNI4 ADDRLP4 0 CNSTI4 144 ASGNI4 ADDRGP4 s_playersettings+624 CNSTI4 4 ASGNI4 ADDRGP4 s_playersettings+624+44 CNSTU4 32768 ASGNU4 ADDRGP4 s_playersettings+624+56 ADDRGP4 PlayerSettings_DrawName ASGNP4 ADDRGP4 s_playersettings+624+60+8 CNSTI4 20 ASGNI4 ADDRGP4 s_playersettings+624+60+268 CNSTI4 20 ASGNI4 ADDRGP4 s_playersettings+624+12 CNSTI4 192 ASGNI4 ADDRGP4 s_playersettings+624+16 ADDRLP4 0 INDIRI4 ASGNI4 ADDRGP4 s_playersettings+624+20 CNSTI4 184 ASGNI4 ADDRGP4 s_playersettings+624+24 ADDRLP4 0 INDIRI4 CNSTI4 8 SUBI4 ASGNI4 ADDRGP4 s_playersettings+624+28 CNSTI4 392 ASGNI4 ADDRGP4 s_playersettings+624+32 ADDRLP4 0 INDIRI4 CNSTI4 54 ADDI4 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 81 ADDI4 ASGNI4 ADDRGP4 s_playersettings+956 CNSTI4 3 ASGNI4 ADDRGP4 s_playersettings+956+44 CNSTU4 32768 ASGNU4 ADDRGP4 s_playersettings+956+8 CNSTI4 11 ASGNI4 ADDRGP4 s_playersettings+956+56 ADDRGP4 PlayerSettings_DrawHandicap ASGNP4 ADDRGP4 s_playersettings+956+12 CNSTI4 192 ASGNI4 ADDRGP4 s_playersettings+956+16 ADDRLP4 0 INDIRI4 ASGNI4 ADDRGP4 s_playersettings+956+20 CNSTI4 184 ASGNI4 ADDRGP4 s_playersettings+956+24 ADDRLP4 0 INDIRI4 CNSTI4 8 SUBI4 ASGNI4 ADDRGP4 s_playersettings+956+28 CNSTI4 392 ASGNI4 ADDRGP4 s_playersettings+956+32 ADDRLP4 0 INDIRI4 CNSTI4 54 ADDI4 ASGNI4 ADDRGP4 s_playersettings+956+68 CNSTI4 20 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 81 ADDI4 ASGNI4 ADDRGP4 s_playersettings+1052 CNSTI4 3 ASGNI4 ADDRGP4 s_playersettings+1052+44 CNSTU4 32768 ASGNU4 ADDRGP4 s_playersettings+1052+8 CNSTI4 12 ASGNI4 ADDRGP4 s_playersettings+1052+56 ADDRGP4 PlayerSettings_DrawEffects ASGNP4 ADDRGP4 s_playersettings+1052+12 CNSTI4 192 ASGNI4 ADDRGP4 s_playersettings+1052+16 ADDRLP4 0 INDIRI4 ASGNI4 ADDRGP4 s_playersettings+1052+20 CNSTI4 184 ASGNI4 ADDRGP4 s_playersettings+1052+24 ADDRLP4 0 INDIRI4 CNSTI4 8 SUBI4 ASGNI4 ADDRGP4 s_playersettings+1052+28 CNSTI4 392 ASGNI4 ADDRGP4 s_playersettings+1052+32 ADDRLP4 0 INDIRI4 CNSTI4 54 ADDI4 ASGNI4 ADDRGP4 s_playersettings+1052+68 CNSTI4 7 ASGNI4 ADDRGP4 s_playersettings+1236 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+1236+4 ADDRGP4 $297 ASGNP4 ADDRGP4 s_playersettings+1236+44 CNSTU4 272 ASGNU4 ADDRGP4 s_playersettings+1236+8 CNSTI4 14 ASGNI4 ADDRGP4 s_playersettings+1236+48 ADDRGP4 PlayerSettings_MenuEvent ASGNP4 ADDRGP4 s_playersettings+1236+12 CNSTI4 640 ASGNI4 ADDRGP4 s_playersettings+1236+16 CNSTI4 416 ASGNI4 ADDRGP4 s_playersettings+1236+76 CNSTI4 128 ASGNI4 ADDRGP4 s_playersettings+1236+80 CNSTI4 64 ASGNI4 ADDRGP4 s_playersettings+1236+60 ADDRGP4 $314 ASGNP4 ADDRGP4 s_playersettings+536 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+536+44 CNSTU4 16384 ASGNU4 ADDRGP4 s_playersettings+536+56 ADDRGP4 PlayerSettings_DrawPlayer ASGNP4 ADDRGP4 s_playersettings+536+12 CNSTI4 400 ASGNI4 ADDRGP4 s_playersettings+536+16 CNSTI4 -40 ASGNI4 ADDRGP4 s_playersettings+536+76 CNSTI4 320 ASGNI4 ADDRGP4 s_playersettings+536+80 CNSTI4 560 ASGNI4 ADDRGP4 s_playersettings+1148 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+1148+4 ADDRGP4 $331 ASGNP4 ADDRGP4 s_playersettings+1148+44 CNSTU4 260 ASGNU4 ADDRGP4 s_playersettings+1148+8 CNSTI4 13 ASGNI4 ADDRGP4 s_playersettings+1148+48 ADDRGP4 PlayerSettings_MenuEvent ASGNP4 ADDRGP4 s_playersettings+1148+12 CNSTI4 0 ASGNI4 ADDRGP4 s_playersettings+1148+16 CNSTI4 416 ASGNI4 ADDRGP4 s_playersettings+1148+76 CNSTI4 128 ASGNI4 ADDRGP4 s_playersettings+1148+80 CNSTI4 64 ASGNI4 ADDRGP4 s_playersettings+1148+60 ADDRGP4 $348 ASGNP4 ADDRGP4 s_playersettings+1324 CNSTI4 6 ASGNI4 ADDRGP4 s_playersettings+1324+44 CNSTU4 1050628 ASGNU4 ADDRGP4 s_playersettings+1324+12 CNSTI4 0 ASGNI4 ADDRGP4 s_playersettings+1324+16 CNSTI4 0 ASGNI4 ADDRGP4 s_playersettings+1324+76 CNSTI4 640 ASGNI4 ADDRGP4 s_playersettings+1324+80 CNSTI4 480 ASGNI4 ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+288 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+360 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+448 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+624 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+956 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+1052 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+1236 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+1148 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+536 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 s_playersettings+1324 ARGP4 ADDRGP4 Menu_AddItem CALLV pop ADDRGP4 PlayerSettings_SetMenuItems CALLV pop LABELV $185 endproc PlayerSettings_MenuInit 4 12 export PlayerSettings_Cache proc PlayerSettings_Cache 32 4 ADDRGP4 $204 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $218 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $297 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $314 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $331 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $348 ARGP4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 pop ADDRGP4 $372 ARGP4 ADDRLP4 0 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1412 ADDRLP4 0 INDIRI4 ASGNI4 ADDRGP4 $374 ARGP4 ADDRLP4 4 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416 ADDRLP4 4 INDIRI4 ASGNI4 ADDRGP4 $377 ARGP4 ADDRLP4 8 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRGP4 $380 ARGP4 ADDRLP4 12 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+8 ADDRLP4 12 INDIRI4 ASGNI4 ADDRGP4 $383 ARGP4 ADDRLP4 16 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+12 ADDRLP4 16 INDIRI4 ASGNI4 ADDRGP4 $386 ARGP4 ADDRLP4 20 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+16 ADDRLP4 20 INDIRI4 ASGNI4 ADDRGP4 $389 ARGP4 ADDRLP4 24 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+20 ADDRLP4 24 INDIRI4 ASGNI4 ADDRGP4 $392 ARGP4 ADDRLP4 28 ADDRGP4 trap_R_RegisterShaderNoMip CALLI4 ASGNI4 ADDRGP4 s_playersettings+1416+24 ADDRLP4 28 INDIRI4 ASGNI4 LABELV $370 endproc PlayerSettings_Cache 32 4 export UI_PlayerSettingsMenu proc UI_PlayerSettingsMenu 0 4 ADDRGP4 PlayerSettings_MenuInit CALLV pop ADDRGP4 s_playersettings ARGP4 ADDRGP4 UI_PushMenu CALLV pop LABELV $393 endproc UI_PlayerSettingsMenu 0 4 bss align 4 LABELV s_playersettings skip 2636 import UI_RankStatusMenu import RankStatus_Cache import UI_SignupMenu import Signup_Cache import UI_LoginMenu import Login_Cache import UI_RankingsMenu import Rankings_Cache import Rankings_DrawPassword import Rankings_DrawName import Rankings_DrawText import UI_InitGameinfo import UI_SPUnlockMedals_f import UI_SPUnlock_f import UI_GetAwardLevel import UI_LogAwardData import UI_NewGame import UI_GetCurrentGame import UI_CanShowTierVideo import UI_ShowTierVideo import UI_TierCompleted import UI_SetBestScore import UI_GetBestScore import UI_GetNumBots import UI_GetBotInfoByName import UI_GetBotInfoByNumber import UI_GetNumSPTiers import UI_GetNumSPArenas import UI_GetNumArenas import UI_GetSpecialArenaInfo import UI_GetArenaInfoByMap import UI_GetArenaInfoByNumber import UI_NetworkOptionsMenu import UI_NetworkOptionsMenu_Cache import UI_SoundOptionsMenu import UI_SoundOptionsMenu_Cache import UI_DisplayOptionsMenu import UI_DisplayOptionsMenu_Cache import UI_SaveConfigMenu import UI_SaveConfigMenu_Cache import UI_LoadConfigMenu import UI_LoadConfig_Cache import UI_TeamOrdersMenu_Cache import UI_TeamOrdersMenu_f import UI_TeamOrdersMenu import UI_RemoveBotsMenu import UI_RemoveBots_Cache import UI_AddBotsMenu import UI_AddBots_Cache import trap_SetPbClStatus import trap_VerifyCDKey import trap_SetCDKey import trap_GetCDKey import trap_MemoryRemaining import trap_LAN_GetPingInfo import trap_LAN_GetPing import trap_LAN_ClearPing import trap_LAN_ServerStatus import trap_LAN_GetPingQueueCount import trap_LAN_GetServerInfo import trap_LAN_GetServerAddressString import trap_LAN_GetServerCount import trap_GetConfigString import trap_GetGlconfig import trap_GetClientState import trap_GetClipboardData import trap_Key_SetCatcher import trap_Key_GetCatcher import trap_Key_ClearStates import trap_Key_SetOverstrikeMode import trap_Key_GetOverstrikeMode import trap_Key_IsDown import trap_Key_SetBinding import trap_Key_GetBindingBuf import trap_Key_KeynumToStringBuf import trap_S_RegisterSound import trap_S_StartLocalSound import trap_CM_LerpTag import trap_UpdateScreen import trap_R_DrawStretchPic import trap_R_SetColor import trap_R_RenderScene import trap_R_AddLightToScene import trap_R_AddPolyToScene import trap_R_AddRefEntityToScene import trap_R_ClearScene import trap_R_RegisterShaderNoMip import trap_R_RegisterSkin import trap_R_RegisterModel 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_Cmd_ExecuteText import trap_Argv import trap_Argc import trap_Cvar_InfoStringBuffer import trap_Cvar_Create import trap_Cvar_Reset import trap_Cvar_SetValue import trap_Cvar_VariableStringBuffer import trap_Cvar_VariableValue import trap_Cvar_Set import trap_Cvar_Update import trap_Cvar_Register import trap_Milliseconds import trap_Error import trap_Print import UI_SPSkillMenu_Cache import UI_SPSkillMenu import UI_SPPostgameMenu_f import UI_SPPostgameMenu_Cache import UI_SPArena_Start import UI_SPLevelMenu_ReInit import UI_SPLevelMenu_f import UI_SPLevelMenu import UI_SPLevelMenu_Cache import uis import m_entersound import UI_StartDemoLoop import UI_Cvar_VariableString import UI_Argv import UI_ForceMenuOff import UI_PopMenu import UI_PushMenu import UI_SetActiveMenu import UI_IsFullscreen import UI_DrawTextBox import UI_AdjustFrom640 import UI_CursorInRect import UI_DrawChar import UI_DrawString import UI_ProportionalStringWidth import UI_DrawProportionalString_AutoWrapped import UI_DrawProportionalString import UI_ProportionalSizeScale import UI_DrawBannerString import UI_LerpColor import UI_SetColor import UI_UpdateScreen import UI_DrawRect import UI_FillRect import UI_DrawHandlePic import UI_DrawNamedPic import UI_ClampCvar import UI_ConsoleCommand import UI_Refresh import UI_MouseEvent import UI_KeyEvent import UI_Shutdown import UI_Init import UI_RegisterClientModelname import UI_PlayerInfo_SetInfo import UI_PlayerInfo_SetModel import UI_DrawPlayer import DriverInfo_Cache import GraphicsOptions_Cache import UI_GraphicsOptionsMenu import ServerInfo_Cache import UI_ServerInfoMenu import UI_BotSelectMenu_Cache import UI_BotSelectMenu import ServerOptions_Cache import StartServer_Cache import UI_StartServerMenu import ArenaServers_Cache import UI_ArenaServersMenu import SpecifyServer_Cache import UI_SpecifyServerMenu import SpecifyLeague_Cache import UI_SpecifyLeagueMenu import Preferences_Cache import UI_PreferencesMenu import PlayerModel_Cache import UI_PlayerModelMenu import UI_CDKeyMenu_f import UI_CDKeyMenu_Cache import UI_CDKeyMenu import UI_ModsMenu_Cache import UI_ModsMenu import UI_CinematicsMenu_Cache import UI_CinematicsMenu_f import UI_CinematicsMenu import Demos_Cache import UI_DemosMenu import Controls_Cache import UI_ControlsMenu import UI_DrawConnectScreen import TeamMain_Cache import UI_TeamMainMenu import UI_SetupMenu import UI_SetupMenu_Cache import UI_Message import UI_ConfirmMenu_Style import UI_ConfirmMenu import ConfirmMenu_Cache import UI_InGameMenu import InGame_Cache import UI_CreditMenu import UI_UpdateCvars import UI_RegisterCvars import UI_MainMenu import MainMenu_Cache import MenuField_Key import MenuField_Draw import MenuField_Init import MField_Draw import MField_CharEvent import MField_KeyDownEvent import MField_Clear import ui_medalSounds import ui_medalPicNames import ui_medalNames import text_color_highlight import text_color_normal import text_color_disabled import listbar_color import list_color import name_color import color_dim import color_red import color_orange import color_blue import color_yellow import color_white import color_black import menu_dim_color import menu_black_color import menu_red_color import menu_highlight_color import menu_dark_color import menu_grayed_color import menu_text_color import weaponChangeSound import menu_null_sound import menu_buzz_sound import menu_out_sound import menu_move_sound import menu_in_sound import ScrollList_Key import ScrollList_Draw import Bitmap_Draw import Bitmap_Init import Menu_DefaultKey import Menu_SetCursorToItem import Menu_SetCursor import Menu_ActivateItem import Menu_ItemAtCursor import Menu_Draw import Menu_AdjustCursor import Menu_AddItem import Menu_Focus import Menu_Cache import ui_ioq3 import ui_cdkeychecked import ui_cdkey import ui_server16 import ui_server15 import ui_server14 import ui_server13 import ui_server12 import ui_server11 import ui_server10 import ui_server9 import ui_server8 import ui_server7 import ui_server6 import ui_server5 import ui_server4 import ui_server3 import ui_server2 import ui_server1 import ui_marks import ui_drawCrosshairNames import ui_drawCrosshair import ui_brassTime import ui_browserShowEmpty import ui_browserShowFull import ui_browserSortKey import ui_browserGameType import ui_browserMaster import ui_spSelection import ui_spSkill import ui_spVideos import ui_spAwards import ui_spScores5 import ui_spScores4 import ui_spScores3 import ui_spScores2 import ui_spScores1 import ui_botsFile import ui_arenasFile import ui_ctf_friendly import ui_ctf_timelimit import ui_ctf_capturelimit import ui_team_friendly import ui_team_timelimit import ui_team_fraglimit import ui_tourney_timelimit import ui_tourney_fraglimit import ui_ffa_timelimit import ui_ffa_fraglimit 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 $392 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 119 byte 1 104 byte 1 105 byte 1 116 byte 1 101 byte 1 0 align 1 LABELV $389 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 99 byte 1 121 byte 1 97 byte 1 110 byte 1 0 align 1 LABELV $386 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 98 byte 1 108 byte 1 117 byte 1 101 byte 1 0 align 1 LABELV $383 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 116 byte 1 101 byte 1 97 byte 1 108 byte 1 0 align 1 LABELV $380 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 103 byte 1 114 byte 1 110 byte 1 0 align 1 LABELV $377 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 121 byte 1 101 byte 1 108 byte 1 0 align 1 LABELV $374 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 114 byte 1 101 byte 1 100 byte 1 0 align 1 LABELV $372 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 120 byte 1 95 byte 1 98 byte 1 97 byte 1 115 byte 1 101 byte 1 0 align 1 LABELV $348 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 98 byte 1 97 byte 1 99 byte 1 107 byte 1 95 byte 1 49 byte 1 0 align 1 LABELV $331 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 98 byte 1 97 byte 1 99 byte 1 107 byte 1 95 byte 1 48 byte 1 0 align 1 LABELV $314 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 109 byte 1 111 byte 1 100 byte 1 101 byte 1 108 byte 1 95 byte 1 49 byte 1 0 align 1 LABELV $297 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 109 byte 1 111 byte 1 100 byte 1 101 byte 1 108 byte 1 95 byte 1 48 byte 1 0 align 1 LABELV $218 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 114 byte 1 97 byte 1 109 byte 1 101 byte 1 49 byte 1 95 byte 1 114 byte 1 0 align 1 LABELV $204 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 47 byte 1 97 byte 1 114 byte 1 116 byte 1 47 byte 1 102 byte 1 114 byte 1 97 byte 1 109 byte 1 101 byte 1 50 byte 1 95 byte 1 108 byte 1 0 align 1 LABELV $196 byte 1 80 byte 1 76 byte 1 65 byte 1 89 byte 1 69 byte 1 82 byte 1 32 byte 1 83 byte 1 69 byte 1 84 byte 1 84 byte 1 73 byte 1 78 byte 1 71 byte 1 83 byte 1 0 align 1 LABELV $180 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $147 byte 1 99 byte 1 111 byte 1 108 byte 1 111 byte 1 114 byte 1 49 byte 1 0 align 1 LABELV $144 byte 1 104 byte 1 97 byte 1 110 byte 1 100 byte 1 105 byte 1 99 byte 1 97 byte 1 112 byte 1 0 align 1 LABELV $140 byte 1 110 byte 1 97 byte 1 109 byte 1 101 byte 1 0 align 1 LABELV $128 byte 1 109 byte 1 111 byte 1 100 byte 1 101 byte 1 108 byte 1 0 align 1 LABELV $124 byte 1 69 byte 1 102 byte 1 102 byte 1 101 byte 1 99 byte 1 116 byte 1 115 byte 1 0 align 1 LABELV $117 byte 1 72 byte 1 97 byte 1 110 byte 1 100 byte 1 105 byte 1 99 byte 1 97 byte 1 112 byte 1 0 align 1 LABELV $95 byte 1 78 byte 1 97 byte 1 109 byte 1 101 byte 1 0 align 1 LABELV $88 byte 1 53 byte 1 0 align 1 LABELV $87 byte 1 49 byte 1 48 byte 1 0 align 1 LABELV $86 byte 1 49 byte 1 53 byte 1 0 align 1 LABELV $85 byte 1 50 byte 1 48 byte 1 0 align 1 LABELV $84 byte 1 50 byte 1 53 byte 1 0 align 1 LABELV $83 byte 1 51 byte 1 48 byte 1 0 align 1 LABELV $82 byte 1 51 byte 1 53 byte 1 0 align 1 LABELV $81 byte 1 52 byte 1 48 byte 1 0 align 1 LABELV $80 byte 1 52 byte 1 53 byte 1 0 align 1 LABELV $79 byte 1 53 byte 1 48 byte 1 0 align 1 LABELV $78 byte 1 53 byte 1 53 byte 1 0 align 1 LABELV $77 byte 1 54 byte 1 48 byte 1 0 align 1 LABELV $76 byte 1 54 byte 1 53 byte 1 0 align 1 LABELV $75 byte 1 55 byte 1 48 byte 1 0 align 1 LABELV $74 byte 1 55 byte 1 53 byte 1 0 align 1 LABELV $73 byte 1 56 byte 1 48 byte 1 0 align 1 LABELV $72 byte 1 56 byte 1 53 byte 1 0 align 1 LABELV $71 byte 1 57 byte 1 48 byte 1 0 align 1 LABELV $70 byte 1 57 byte 1 53 byte 1 0 align 1 LABELV $69 byte 1 78 byte 1 111 byte 1 110 byte 1 101 byte 1 0
13.687994
45
0.85103
5a70b209e7e754f1a8913bc768e5c96486dc1c94
473
asm
Assembly
oeis/094/A094790.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/094/A094790.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/094/A094790.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A094790: Number of (s(0), s(1), ..., s(2n)) such that 0 < s(i) < 7 and |s(i) - s(i-1)| = 1 for i = 1,2,...,2n, s(0) = 1, s(2n) = 3. ; Submitted by Jon Maiga ; 1,3,9,28,89,286,924,2993,9707,31501,102256,331981,1077870,3499720,11363361,36896355,119801329,388991876,1263047761,4101088878,13316149700,43237262993,140390505643,455845099957,1480119728920 mov $4,1 lpb $0 sub $0,1 add $2,1 sub $3,$4 add $3,$2 add $3,$2 add $4,$2 add $2,$3 lpe mov $0,$2 add $0,1
27.823529
191
0.632135
48a902e11944dd845a7ade22a24ffc0020fca7f7
6,962
asm
Assembly
src/headers.asm
remy/next-http
61c4d3139178f375e61d703671c1a7533725b8c2
[ "MIT" ]
14
2021-04-09T18:45:38.000Z
2022-02-27T15:58:52.000Z
src/headers.asm
remy/next-http
61c4d3139178f375e61d703671c1a7533725b8c2
[ "MIT" ]
2
2021-05-19T18:44:15.000Z
2022-02-27T16:37:09.000Z
src/headers.asm
remy/next-httpbank
61c4d3139178f375e61d703671c1a7533725b8c2
[ "MIT" ]
3
2021-04-11T23:56:32.000Z
2022-02-27T15:49:17.000Z
; DEFINE TEST_HEADERS IFDEF TEST_HEADERS OPT reset --zxnext --syntax=abfw INCLUDE "constants.inc.asm" DEVICE ZXSPECTRUM48 SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION ORG $8000 start: di exx ld hl, s2 exx call Headers.findContentLength ld de, 1299 call Headers.contentLengthSub ; call Uart.read jr $ INCLUDE "utils.asm" MODULE Uart ; Fake Uart.read ; ; A <- result ; Modifies: BC read: exx ld a, (hl) inc hl exx ret ENDMODULE result: DS 256 ENDIF MODULE Headers contentLength: ; 32bit result DISPLAY "Header.contentLength @ ",/H,$ DWORD 0 tmpBuffer: DISPLAY "Header.buffer @ ",/H,$ BLOCK 9, 0 ; Subtracts DE from contentLength ; ; DE=integer ; Fz=all bytes consumed ; Fc=error ; Modifies: AF, HL, DE contentLengthSub: or a ; reset carry for sbc ld hl, (contentLength) ; do the LSW first sbc hl, de ld (contentLength), hl ret nc or a ld hl, (contentLength+2) ld de, 1 sbc hl, de ld (contentLength+2), hl jr z, .checkZero ret .checkZero ld hl, (contentLength) ld a, h or l ret ; Takes DE and searches the text for the content length setting it in (HL) ; searching through the headers for `content-length: nnnn`. If successful ; carry is clear and the Header.contentLength is set to 32bits. ; This reduces DE as it works through the Uart.read ; ; DE=length of UART buffer ; Fc=failed to find header ; Modifies: AF, BC, DE, HL findContentLength push ix ld hl, tmpBuffer ;; process a single header .processHeader call Uart.read ; load A with the next character dec de ;; convert character to uppercase cp 'a' ; if A < 'a' then skip case shift jr c, .noCaseShiftC sub $20 .noCaseShiftC ;; narrow down what we're looking for, ref: ;; https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers cp 'C' jp nz, .TestForLineEndingHeader ;; slurp to the `-` character .findDash call Uart.read dec de cp CR ; always check if we have an EOL jr z, .processHeader cp '-' ; now check for the char we want jr nz, .findDash call Uart.read ; after `-` we're looking for L dec de ;; shift case cp 'a' ; if A < 'a' then skip case shift jr c, .noCaseShiftL sub $20 .noCaseShiftL cp CR jr z, .processHeader ; is this EOL? cp 'L' ; L? jr nz, .slurpToEndOfHeader call Uart.read ; E? dec de cp CR ; EOL? jr z, .processHeader cp 'a' ; if A < 'a' then skip case shift jr c, .noCaseShiftE sub $20 .noCaseShiftE cp 'E' ; this now the content-length jr nz, .slurpToEndOfHeader .findColon call Uart.read dec de cp CR ; always check if we have an EOL jr z, .processHeader cp ':' jr nz, .findColon .eatSpaces call Uart.read dec de cp CR ; always check if we have an EOL jr z, .processHeader cp ' ' jr z, .eatSpaces ;; now we have our numbers - store this in a buffer for later conversion ld (hl), a inc hl .captureNumeric call Uart.read dec de cp CR ; always check if we have an EOL jr z, .convertToUint32 ld (hl), a inc hl jr .captureNumeric .convertToUint32 push de ld de, tmpBuffer call atoui32 ld (contentLength), ix ld (contentLength+2), hl ld a, (Bank.rollingActive) and a jr z, .doneWithContentLengthChecks ;; Now we have the content length both as text and as a numeric ;; we also need to do some prep calculations for writing to disk ;; so we do this now. ld a, h ld c, l ; ACIX=dividend ld de, $2000 call Div32By16 ;; check memory limits and store values for bank rolling ld a, ixh and a jp nz, notEnoughMemory ld a, ixl ld (Bank.pagesRequired), a ld (Bank.lastPageSize), hl push af call Bank.availablePages pop af ;; I'm reducing E because A (pages required) is rounded down dec e cp e ;; we already know we don't have enough memory jp nc, notEnoughMemory .doneWithContentLengthChecks pop de jp .slurpToEndOfAllHeaders .TestForLineEndingHeader ;; this could actually be a blank line in which case we need to return cp CR jr nz, .slurpToEndOfHeader ;; this was a CR and we've not found the content length ;; flush the next character: LF call Uart.read dec de scf jr .exit .slurpToEndOfHeader call Uart.read : dec de : cp CR : jr nz, .slurpToEndOfHeader call Uart.read : dec de ; LR jp .processHeader .slurpToEndOfAllHeaders call Uart.read : dec de : cp CR : jr nz, .slurpToEndOfAllHeaders call Uart.read : dec de ; LR call Uart.read : dec de : cp CR : jr nz, .slurpToEndOfAllHeaders call Uart.read : dec de ; LR .exit pop ix ret Parse Post ld hl, HeaderStrings.post ld bc, 5 jr method Get ld hl, HeaderStrings.get ld bc, 4 method ldir ret GetTrailer ld hl, HeaderStrings.reqTail ld bc, HeaderStrings.reqTailLen ldir ret PostTrailer ld hl, HeaderStrings.reqTail ld bc, HeaderStrings.postLen ldir ret ; HL = copy from buffer terminated with null ; DE = copy to ; DE <- end of buffer ; Modifies: AF Host push hl ld hl, HeaderStrings.host ld bc, 6 ldir pop hl ;; intentionally fall through to copyHLtoDE ; HL = copy from buffer terminated with null ; DE = copy to ; DE <- end of buffer ; Modifies: AF Url copyHLtoDE ld a, (hl) and a ret z ld (de), a inc hl inc de jr copyHLtoDE NewLine ld hl, HeaderStrings.newLine ld bc, 2 ldir ret EndPost ld hl, HeaderStrings.emptyLine ld bc, 5 ldir ret EndGet ld hl, HeaderStrings.newLine ld bc, 3 ldir ret ENDMODULE MODULE HeaderStrings emptyLine DEFB CR, LF newLine DEFB CR, LF, 0 get DEFB "GET " post DEFB "POST " host DEFB "Host: " reqTail DEFB " HTTP/1.1", CR, LF, "Connection: keep-alive", CR, LF reqTailLen EQU $-reqTail postLength DEFB "Content-Type: application/x-www-form-urlencoded", CR, LF, "Content-Length: " postLen EQU $-reqTail ENDMODULE IFDEF TEST_HEADERS s1: DEFB "HTTP/1.1 200 OK",CR,LF DEFB "Server: nginx/1.14.2",CR,LF DEFB "Date: Fri, 23 Apr 2021 18:42:46 GMT",CR,LF DEFB "Content-Type: text/html",CR,LF DEFB "Content-Length: 6608",CR,LF DEFB "Last-Modified: Fri, 10 Jul 2020 15:43:55 GMT",CR,LF DEFB "Connection: keep-alive",CR,LF DEFB "Permissions-Policy: interest-cohort=()",CR,LF DEFB "Referrer-Policy: no-referrer",CR,LF DEFB "Accept-Ranges: bytes",CR,LF DEFB CR,LF DEFB "<!DOCTYPE html>",0 s2: DEFB "HTTP/1.1 200 OK",CR,LF DEFB "Content-Type: application/octet-stream",CR,LF DEFB "Content-Length: 65536",CR,LF DEFB "Date: Fri, 23 Apr 2021 22:22:26 GMT",CR,LF DEFB "Connection: keep-alive",CR,LF DEFB "Keep-Alive: timeout=5",CR,LF DEFB CR,LF DEFB "<!DOCTYPE html>",0 s3: DEFB "HTTP/1.1 200 OK",CR,LF DEFB "Content-Type: application/octet-stream",CR,LF DEFB "Date: Fri, 23 Apr 2021 22:22:26 GMT",CR,LF DEFB "Connection: keep-alive",CR,LF DEFB "Keep-Alive: timeout=5",CR,LF DEFB CR,LF DEFB "<!DOCTYPE html>",0 SAVESNA "headers.sna", start ENDIF
18.867209
93
0.674519
38cc91122c169f8bb480657ccabaf9d5a53a78f1
670
asm
Assembly
oeis/052/A052468.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052468.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052468.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052468: Numerators in the Taylor series for arccosh(x) - log(2*x). ; 1,3,5,35,63,77,429,6435,12155,46189,88179,676039,1300075,5014575,646323,300540195,583401555,756261275,4418157975,6892326441,22427411435,263012370465,514589420475,2687300306925,15801325804719,61989816618513,121683714103007,136583760727865,1879204156221315,7391536347803839,14544636039226909,916312070471295267,601619036168022145,7113260368810144185,2003326389583265097,110628135069209194801,218266320541953276229,861577581086657669325,1701063429324939500975,5375360436666808823081 mov $2,1 add $2,$0 add $0,$2 bin $0,$2 gcd $2,$0 div $0,$2 lpb $0 mov $2,-2 bin $2,$0 div $2,2 sub $0,$2 lpe
41.875
481
0.816418
aa25683244f5fb56ec1e13c40e707a0206937f8a
2,912
asm
Assembly
libsrc/stdlib/qsort_sccz80_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/stdlib/qsort_sccz80_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/stdlib/qsort_sccz80_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; ; QSORT - compiled, then hand-adjusted ; Stefano, 29/10/2010 ; ; $Id: qsort_callee.asm,v 1.4 2016-03-04 23:48:13 dom Exp $ ; ; Original code taken from the BDS C by Leor Zolman ; ;void qsort(char *base, unsigned int nel, unsigned int width, void *compar) ;{ int i, j; ; unsigned gap, ngap, t1; ; int jd, t2; ; ; t1 = nel * width; ; for (ngap = nel / 2; ngap > 0; ngap /= 2) { ; gap = ngap * width; ; t2 = gap + width; ; jd = (unsigned int) base + gap; ; for (i = t2; i <= t1; i += width) ; for (j = i - t2; j >= 0; j -= gap) { ; if ((*compar)(base+j, jd+j) <=0) break; ; memswap(base+j, jd+j, width); ; } ; } ;} PUBLIC qsort_sccz80_callee PUBLIC _qsort_sccz80_callee PUBLIC qsort_sccz80_enter EXTERN l_mult EXTERN l_le EXTERN memswap_callee .qsort_sccz80_callee ._qsort_sccz80_callee pop af pop ix ; *compar pop hl ; width pop de ; nel pop bc ; base ; __CALLEE__ push af qsort_sccz80_enter: push de ; ngap push hl ;width ld (_base),bc ; t1 = nel * width; call l_mult ld (_t1),hl ; for (ngap = nel / 2; ngap > 0; ngap /= 2) { .i_3 pop de ; width pop hl ; ngap srl h ; _ngap/2 ..bit rotation rr l ld a,h or l ret z push hl ; ngap push de ; width ; gap = ngap * width; ;ld d,h ;ld e,l ;ld hl,(_width) call l_mult ld (_gap),hl ; t2 = gap + width; pop de push de push hl ;ex de,hl ;ld hl,(_width) add hl,de ld (_t2),hl ; jd = (unsigned int) base + gap; ld de,(_base) ex (sp),hl ; retrieve 'gap' add hl,de ld (_jd),hl pop hl ; t2 jr i_8 .i_6 ld de,(_i) pop hl push hl ;ld hl,(_width) add hl,de ;ld (_i),hl ; for (i = t2 .... .i_8 ld (_i),hl ld de,(_t1) ex de,hl call l_le jr nc,i_3 ; for (j = i - t2.. ld de,(_i) ld hl,(_t2) .i_11 ex de,hl ; same subtraction is used twice in the for loop and a sbc hl,de ld (_j),hl ; for ..; j>0; .. jp m,i_6 push ix ; 1st arg: base+j ld de,(_base) ;ld hl,(_j) push hl add hl,de ex (sp),hl ; j <--> base+j ; 2nd arg: jd+j ld de,(_jd) add hl,de push hl ld bc,ret_addr push bc jp (ix) ; compare function .ret_addr pop bc ; we're keeping the same args for the next call ! pop de pop ix ; if ((*compar)(base+j, jd+j) <=0) break; dec hl bit 7,h jr nz,i_6 ; Negative sign ? exit loop pop hl ; width push hl push de ; 1st arg: base+j push bc ; 2nd arg: jd+j push hl ; width call memswap_callee ; for ... j -= gap) ld de,(_j) ld hl,(_gap) jr i_11 SECTION bss_clib ._i defs 2 ._j defs 2 ._t1 defs 2 ._t2 defs 2 ._jd defs 2 ;._width defs 2 ._base defs 2 ; ._ngap defs 2 ._gap defs 2
16.088398
75
0.528503
e2b57ac336f648f82b7ef126ae304d3ed7b89327
7,898
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_11699_20.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_11699_20.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_11699_20.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1cabe, %rsi lea addresses_A_ht+0x729e, %rdi nop cmp %r13, %r13 mov $126, %rcx rep movsq nop nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0xa4be, %r15 nop xor %r9, %r9 movups (%r15), %xmm4 vpextrq $1, %xmm4, %r12 nop nop add $21587, %r15 lea addresses_UC_ht+0x6536, %rdi nop nop nop nop dec %rsi mov (%rdi), %cx sub %r13, %r13 lea addresses_D_ht+0xac3e, %rsi nop inc %rdi mov (%rsi), %cx nop nop nop dec %rdi lea addresses_UC_ht+0x56be, %rcx nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, %xmm1 movups %xmm1, (%rcx) nop add $38825, %r12 lea addresses_D_ht+0x173ec, %r12 nop nop nop nop inc %rcx movb (%r12), %r15b nop inc %r15 lea addresses_A_ht+0x6bbe, %r13 nop nop nop sub $42010, %rcx and $0xffffffffffffffc0, %r13 movaps (%r13), %xmm4 vpextrq $0, %xmm4, %rdi nop nop nop nop nop and %rsi, %rsi lea addresses_WC_ht+0x1c9ae, %rdi nop nop sub $52279, %r13 movl $0x61626364, (%rdi) nop nop nop nop cmp $61802, %rcx lea addresses_normal_ht+0x16be, %rcx nop nop cmp %r13, %r13 mov (%rcx), %esi xor $65179, %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Load lea addresses_WC+0x553e, %rdx nop cmp $2871, %rbp mov (%rdx), %eax nop xor %r8, %r8 // REPMOV lea addresses_D+0x14abe, %rsi lea addresses_normal+0x56be, %rdi nop nop xor %r11, %r11 mov $18, %rcx rep movsl nop nop nop and %rax, %rax // Load lea addresses_normal+0x56be, %rbp nop nop nop nop cmp $64145, %r11 movb (%rbp), %r8b nop nop nop nop lfence // Store lea addresses_A+0x275e, %rdi nop nop nop nop nop add %rbp, %rbp movw $0x5152, (%rdi) nop cmp $48897, %rax // Store lea addresses_PSE+0x138be, %rcx nop inc %r11 movl $0x51525354, (%rcx) nop nop xor %r8, %r8 // Store lea addresses_US+0xbefe, %rcx clflush (%rcx) nop nop nop nop xor %rsi, %rsi movw $0x5152, (%rcx) cmp $49606, %rdx // Load mov $0x817b20000000a9e, %rbp clflush (%rbp) nop nop nop add %r8, %r8 vmovaps (%rbp), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %rax inc %rcx // Faulty Load lea addresses_normal+0x56be, %rcx nop nop nop nop sub %rsi, %rsi vmovups (%rcx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rax lea oracles, %rdx and $0xff, %rax shlq $12, %rax mov (%rdx,%rax,1), %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': True}} {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': True, 'type': 'addresses_US', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': True}} {'src': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'36': 11699} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
32.236735
2,999
0.651178
1403ef913ab2c6ecd44c42f2455ce1bfcbe47f7a
285
asm
Assembly
programs/oeis/067/A067239.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/067/A067239.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/067/A067239.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A067239: a(0)=1, a(n) = 8n*(2n-1). ; 1,8,48,120,224,360,528,728,960,1224,1520,1848,2208,2600,3024,3480,3968,4488,5040,5624,6240,6888,7568,8280,9024,9800,10608,11448,12320,13224,14160,15128,16128,17160,18224,19320,20448,21608,22800,24024 mul $0,2 bin $0,2 mul $0,8 trn $0,1 add $0,1
31.666667
201
0.708772
79c99a7628518903b94df8a7fd2942d454b48763
173
asm
Assembly
programs/oeis/145/A145577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/145/A145577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/145/A145577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A145577: A045944 mod 9. Period 9: repeat 0,5,7,6,2,4,3,8,1. ; 0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1 mul $0,3 add $0,2 bin $0,4 mod $0,9
21.625
73
0.554913
1c1a23626c24738eb9044a5a8357d5ecaac03650
5,586
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1127.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1127.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1127.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r8 push %r9 push %rax lea addresses_D_ht+0xfe35, %r11 nop nop nop nop nop dec %r14 movw $0x6162, (%r11) nop nop nop and %r9, %r9 lea addresses_normal_ht+0x9d45, %r14 nop add %r9, %r9 mov (%r14), %r10d nop nop nop add %r11, %r11 lea addresses_UC_ht+0x13585, %r9 nop nop nop nop cmp %rax, %rax movb (%r9), %r11b nop nop nop nop add $43358, %r9 lea addresses_UC_ht+0x6d5, %rax nop add $55508, %r8 mov $0x6162636465666768, %r10 movq %r10, %xmm7 vmovups %ymm7, (%rax) nop nop nop nop nop dec %r8 pop %rax pop %r9 pop %r8 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %r9 push %rbp push %rbx push %rdx push %rsi // Store lea addresses_normal+0x134d5, %rsi nop nop nop nop nop xor $17084, %r13 mov $0x5152535455565758, %r8 movq %r8, (%rsi) inc %rsi // Store lea addresses_WC+0xac92, %r8 sub $3483, %rbp mov $0x5152535455565758, %rsi movq %rsi, %xmm2 movaps %xmm2, (%r8) nop nop nop nop xor %r8, %r8 // Load lea addresses_RW+0x11155, %rbx nop nop nop and $63263, %rsi mov (%rbx), %r13 nop nop and $41661, %r8 // Faulty Load lea addresses_WT+0xe755, %rbp nop nop nop nop nop xor $1936, %rdx movb (%rbp), %r13b lea oracles, %r8 and $0xff, %r13 shlq $12, %r13 mov (%r8,%r13,1), %r13 pop %rsi pop %rdx pop %rbx pop %rbp pop %r9 pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'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 */
38
2,999
0.655926
87092bbeea168a0fbdca797837ba2879ec598630
685
asm
Assembly
Application/AssemblyCode/working_and_tmp_asm_files/testInitLevel.asm
t0ddpar0dy/Handmade_Pacman
68cfdd355bd26e5f5d8d8d6ba344a71f2e19fd70
[ "MIT" ]
null
null
null
Application/AssemblyCode/working_and_tmp_asm_files/testInitLevel.asm
t0ddpar0dy/Handmade_Pacman
68cfdd355bd26e5f5d8d8d6ba344a71f2e19fd70
[ "MIT" ]
null
null
null
Application/AssemblyCode/working_and_tmp_asm_files/testInitLevel.asm
t0ddpar0dy/Handmade_Pacman
68cfdd355bd26e5f5d8d8d6ba344a71f2e19fd70
[ "MIT" ]
null
null
null
JAL r1 initlevel # maybe macro to JAL initlevel LUI 255 r0 ORI 247 r0 MOVI 8 r1 STOR r1 r0 BUC 0 initlevel: LUI 55 r0 # Make the address for where init function starts ORI 182 r0 # MOV r0 r3 # r3 current address of where we are reading from memory LUI 63 r1 # make address for writting location in frame buffer ORI 255 r1 MOVI 53 r8 MULI -5 r8 ADD r8 r1 # Offset by rows ADDI -13 r1 # Offset by columns MOVI 0 r6 loopi: CMPI 31 r6 BEQ 16 #this should support labels, jump endloopi MOVI 0 r7 loopj: CMPI 28 r7 BEQ 11 #jump to endloopj MOV r6 r4 MULI 53 r4 ADD r7 r4 MULI -1 r4 ADD r1 r4 LOAD r5 r3 STOR r5 r4 SUBI 1 r3 ADDI 1 r7 BUC -11 endloopj: ADDI 1 r6 BUC -16 endloopi: RETX ra
17.125
68
0.741606
90a5be96f810c810bdc35781a1f3d50e188f445c
395
asm
Assembly
programs/oeis/176/A176566.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/176/A176566.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/176/A176566.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A176566: Triangle T(n, k) = binomial(n*(n+1)/2 + k, k), read by rows. ; 1,1,1,1,2,3,1,4,10,20,1,7,28,84,210,1,11,66,286,1001,3003,1,16,136,816,3876,15504,54264,1,22,253,2024,12650,65780,296010,1184040,1,29,435,4495,35960,237336,1344904,6724520,30260340,1,37,703,9139,91390,749398,5245786,32224114,177232627,886163135 mov $1,$0 lpb $0 sub $1,1 add $2,1 sub $0,$2 lpe bin $1,$0 mov $0,$1
32.916667
246
0.681013
9a862696be1d49357a06acbaedb6df0b449b0ca1
7,490
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1aa67, %rsi lea addresses_normal_ht+0x1388f, %rdi nop nop nop xor %r13, %r13 mov $13, %rcx rep movsq nop nop nop nop nop sub $56352, %r13 lea addresses_UC_ht+0xf33f, %rbp nop nop nop sub $46183, %r11 movw $0x6162, (%rbp) nop nop nop nop add %rcx, %rcx lea addresses_D_ht+0x10adf, %rsi lea addresses_WC_ht+0xf5df, %rdi and %r13, %r13 mov $82, %rcx rep movsq nop sub %rsi, %rsi lea addresses_D_ht+0x1b6bf, %r13 nop nop nop nop nop and $4455, %rdi mov $0x6162636465666768, %rbp movq %rbp, %xmm2 movups %xmm2, (%r13) nop nop nop and %rcx, %rcx lea addresses_normal_ht+0xa4df, %r11 nop nop nop dec %rsi movb (%r11), %cl nop nop nop nop nop and $37883, %rbp lea addresses_WT_ht+0x72df, %rsi lea addresses_A_ht+0xccdf, %rdi nop sub $63315, %r14 mov $53, %rcx rep movsq nop mfence lea addresses_WT_ht+0x50b3, %rdi nop sub %r14, %r14 mov (%rdi), %esi nop nop nop add %r13, %r13 lea addresses_A_ht+0xf87f, %r13 clflush (%r13) nop nop nop xor %rbp, %rbp movb $0x61, (%r13) xor %rdi, %rdi lea addresses_WC_ht+0x1690c, %r13 nop nop nop xor %rsi, %rsi mov $0x6162636465666768, %r14 movq %r14, %xmm2 movups %xmm2, (%r13) nop nop nop nop sub $62214, %r14 lea addresses_WC_ht+0x14fdf, %rsi cmp %r14, %r14 movw $0x6162, (%rsi) nop nop nop xor %rbp, %rbp lea addresses_A_ht+0x1049f, %rsi lea addresses_WC_ht+0xbedf, %rdi add $62027, %r11 mov $20, %rcx rep movsw nop dec %rdi lea addresses_UC_ht+0xfb5f, %r14 nop nop nop add $45083, %rdi movw $0x6162, (%r14) nop nop nop dec %rcx lea addresses_normal_ht+0xfe4d, %rsi lea addresses_D_ht+0xd2bb, %rdi nop nop nop nop nop xor $59077, %r13 mov $91, %rcx rep movsb nop nop nop nop xor %rdi, %rdi lea addresses_WT_ht+0x187, %rdi nop add %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm0 vmovups %ymm0, (%rdi) nop nop nop dec %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %rdi push %rdx // Faulty Load lea addresses_WT+0x38df, %rdi nop nop nop add $55779, %r10 movb (%rdi), %dl lea oracles, %r15 and $0xff, %rdx shlq $12, %rdx mov (%r15,%rdx,1), %rdx pop %rdx pop %rdi pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}, 'dst': {'same': True, 'type': 'addresses_D_ht', 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.837209
2,999
0.658745
67ec8f1eeb0cc92269339646c674ec4ce81457dd
5,123
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_/i3-7100_9_0x84_notsx.log_21829_2335.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_/i3-7100_9_0x84_notsx.log_21829_2335.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_/i3-7100_9_0x84_notsx.log_21829_2335.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1887, %rsi lea addresses_normal_ht+0x7d17, %rdi nop nop add %rax, %rax mov $68, %rcx rep movsl nop nop nop nop cmp %rdi, %rdi lea addresses_UC_ht+0x1c317, %rcx nop cmp %rax, %rax movw $0x6162, (%rcx) sub $4496, %rsi lea addresses_WT_ht+0xf117, %rbp clflush (%rbp) nop nop nop nop sub $54064, %rdi movups (%rbp), %xmm7 vpextrq $0, %xmm7, %rsi xor $40260, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r9 push %rax push %rbx push %rcx push %rdx // Load mov $0x5f7, %rax nop nop nop cmp $59808, %rbx vmovups (%rax), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r10 inc %rcx // Store lea addresses_D+0x11bb7, %rbx dec %r9 movb $0x51, (%rbx) nop xor $55067, %r10 // Faulty Load lea addresses_A+0x11917, %rcx add %rdx, %rdx vmovntdqa (%rcx), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r9 lea oracles, %rdx and $0xff, %r9 shlq $12, %r9 mov (%rdx,%r9,1), %r9 pop %rdx pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_P', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'46': 21829} 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 */
48.330189
2,999
0.656451
25724dad83be8a53308b95ad223df9d217df6a6e
517
asm
Assembly
programs/oeis/212/A212793.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/212/A212793.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/212/A212793.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A212793: Characteristic function of cubefree numbers, A004709. ; 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1 seq $0,336551 ; a(n) = A003557(n) - 1. seq $0,188 ; (1) Number of solutions to x^2 == 0 (mod n). (2) Also square root of largest square dividing n. (3) Also max_{ d divides n } gcd(d, n/d). mov $4,$0 mov $6,$0 pow $6,2 clr $2,$6 mov $1,$4 mov $0,$1
43.083333
201
0.582205
94d44c575a2d1cf8aa8f3f4e11debab600e068e3
563
asm
Assembly
libsrc/stdio/ansi/ticalc/f_ansi_dline.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio/ansi/ticalc/f_ansi_dline.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio/ansi/ticalc/f_ansi_dline.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; ; ANSI Video handling for the TI calculators ; By Stefano Bodrato - Dec. 2000 ; ; Clean a text line ; ; in: A = text row number ; ; ; $Id: f_ansi_dline.asm,v 1.6 2016-06-12 16:06:43 dom Exp $ ; INCLUDE "stdio/ansi/ticalc/ticalc.inc" SECTION code_clib PUBLIC ansi_del_line EXTERN base_graphics EXTERN cpygraph .ansi_del_line ld de,row_bytes*8 ld b,a ld hl,(base_graphics) and a jr z,zline .lloop add hl,de djnz lloop .zline ld d,h ld e,l inc de ld (hl),0 ld bc,row_bytes*8 ldir jp cpygraph ; Copy GRAPH_MEM to LCD, then return
14.435897
59
0.689165
5a896cd8e11df4f9a19a16e26ad9d6c6de640031
430
asm
Assembly
programs/oeis/076/A076618.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/076/A076618.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/076/A076618.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A076618: Least x>1 such that x^d == 1 (mod d) for each divisor d of n. ; 2,3,4,3,6,7,8,3,4,11,12,7,14,15,16,3,18,7,20,11,22,23,24,7,6,27,4,15,30,31,32,3,34,35,36,7,38,39,40,11,42,43,44,23,16,47,48,7,8,11,52,27,54,7,56,15,58,59,60,31,62,63,22,3,66,67,68,35,70,71,72,7,74,75,16,39 lpb $0 mov $2,$0 seq $2,71773 ; a(n) = gcd(rad(n), n/rad(n)), where rad(n) = A007947(n) is the squarefree kernel of n. div $0,$2 lpe add $0,2
43
207
0.611628