content
stringlengths
5
918k
size
int64
5
918k
lang
stringclasses
1 value
ext
stringclasses
3 values
avg_line_length
float64
1.67
3.94k
max_line_length
int64
3
3.94k
alphanum_fraction
float64
0.08
0.95
hexsha
stringlengths
40
40
max_stars_repo_name
stringlengths
7
71
max_stars_repo_licenses
listlengths
1
6
max_stars_count
int64
1
26.9k
; A180119: a(n) = (n+2)! * Sum_{k = 1..n} 1/((k+1)*(k+2)). ; 0,1,6,36,240,1800,15120,141120,1451520,16329600,199584000,2634508800,37362124800,566658892800,9153720576000,156920924160000,2845499424768000,54420176498688000,1094805903679488000,23112569077678080000,510909421717094400000,11802007641664880640000,284372184127734743040000,7135156619932253552640000,186134520519971831808000000,5041143264082570444800000000,141555302855438578089984000000,4115992652258137116770304000000,123784667912355827363610624000000,3846166467276770350226472960000000,123342579812668842265883443200000000 mov $1,$0 mov $2,$0 pow $2,2 add $0,$2 mod $0,1024 div $0,2 lpb $1 mul $0,$1 sub $1,1 lpe
679
Assembly
asm
48.5
524
0.832106
f700161a95f9a24839ebe185e126e5a9f81eb0e8
neoneye/loda
[ "Apache-2.0" ]
22
; size_t w_vector_erase_callee(w_vector_t *v, size_t idx) SECTION code_clib SECTION code_adt_w_vector PUBLIC _w_vector_erase_callee EXTERN _w_array_erase_callee defc _w_vector_erase_callee = _w_array_erase_callee
218
Assembly
asm
18.166667
57
0.866972
f7003de408ef2565cbe16c08f1a335ad1d5f395d
jpoikela/z88dk
[ "ClArtistic" ]
640
PROGRAM 4 BR L1 L0: PROC 1 LDLADDR 8 LDCB 1 STOREB LDLADDR 8 LOADB PUTBYTE LDCSTR " " PUTSTR RET 0 L1: LDGADDR 0 LDCINT 5 STOREW CALL L0 LDGADDR 0 LOADW PUTINT PUTEOL HALT
237
Assembly
asm
9.875
15
0.556962
f7006af344336f589e0d6bb6d4dc9196a630c80d
SoftMoore/CPRL-Kt
[ "Unlicense" ]
6
; size_t b_array_erase_block(b_array_t *a, size_t idx, size_t n) SECTION code_clib SECTION code_adt_b_array PUBLIC b_array_erase_block EXTERN asm_b_array_erase_block b_array_erase_block: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_b_array_erase_block
315
Assembly
asm
13.125
64
0.736508
f7006b953eb42413b146284ce21ecf529271b419
teknoplop/z88dk
[ "ClArtistic" ]
8
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Item (Sample PC GEOS application) FILE: list.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/1/92 Initial version DESCRIPTION: This file source code for the Item application. This code will be assembled by ESP, and then linked by the GLUE linker to produce a runnable .geo application file. RCS STAMP: $Id: list.asm,v 1.1 97/04/04 16:34:28 newdeal Exp $ ------------------------------------------------------------------------------@ ;------------------------------------------------------------------------------ ; Structure Definitions ;------------------------------------------------------------------------------ ;###################################################################### ListNode struc LN_value word ; numeric data for the node LN_next lptr.ListNode ; chunk handle of next ListNode ListNode ends ;###################################################################### ;------------------------------------------------------------------------------ ; Initialized Variables ;------------------------------------------------------------------------------ idata segment ;###################################################################### itemListHead lptr.ListNode ; chunk handle of 1st item in list ;###################################################################### idata ends ;------------------------------------------------------------------------------ ; Code ;------------------------------------------------------------------------------ ItemCommonCode segment resource ;start of code resource COMMENT @---------------------------------------------------------------------- FUNCTION: ItemInitializeList DESCRIPTION: Initialize our ItemList as follows: Create a global memory block Set up the LMemHeader structure at the beginning of that block. < ANYTHING ELSE THAT IS NECESSARY > CALLED BY: ItemGenProcessOpenApplication PASS: ds = dgroup RETURN: nothing DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 Initial version ------------------------------------------------------------------------------@ INITIAL_LMEM_HEAP_FREE_SPACE equ 10 ;will be resized bigger INITIAL_NUMBER_OF_CHUNK_HANDLES equ 10 ;should be plenty ItemInitializeList proc near uses ds ;OK to push and pop ds, because ;dgroup segments are not movable ;or swapable. .enter ;###################################################################### ;FILL THIS IN ;###################################################################### .leave ret ItemInitializeList endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemDestroyList DESCRIPTION: Free the global memory block that contains our list. CALLED BY: ItemGenProcessCloseApplication PASS: ds = dgroup RETURN: nothing DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 Initial version ------------------------------------------------------------------------------@ ItemDestroyList proc near .enter ;get the handle for the LMem block on the heap, and free that block mov bx, ds:[itemListBlock] EC < tst bx > EC < ERROR_Z ITEM_ERROR_BLOCK_ALREADY_DESTROYED > call MemFree clr ds:[itemListBlock] .leave ret ItemDestroyList endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemGetValue DESCRIPTION: Get the value for the specified item in the list. PASS: ds = dgroup cx = item # (0 means first item in the list) RETURN: ds, cx = same ax = value DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 initial version ------------------------------------------------------------------------------@ ItemGetValue proc near ;###################################################################### ;FILL THIS IN mov ax, cx ;this is just a place-holder. ;You can nuke it. ;###################################################################### ret ItemGetValue endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemSetValue DESCRIPTION: Set the value for the specified item in the list. PASS: ds = dgroup cx = item # (0 means first item in the list) ax = new value RETURN: ds, cx = same DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 initial version ------------------------------------------------------------------------------@ ItemSetValue proc near ;###################################################################### ;FILL THIS IN ;###################################################################### ret ItemSetValue endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemInsert DESCRIPTION: Insert an item before the specified item in the list, and give it an initial value. PASS: ds = dgroup cx = item # (0 means first item in the list) ax = initial value for item RETURN: ds, cx = same DESTROYED: ax PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 initial version ------------------------------------------------------------------------------@ ItemInsert proc near uses cx, ds ;OK to push and pop ds, because ;dgroup segments are not movable ;or swapable. .enter ;###################################################################### ;FILL THIS IN ;###################################################################### .leave ret ItemInsert endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemDelete DESCRIPTION: Delete the specified item in the list. PASS: ds = dgroup cx = item # (0 means first item in the list) RETURN: ds, cx = same DESTROYED: ax PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 6/92 initial version ------------------------------------------------------------------------------@ ItemDelete proc near ;###################################################################### ;FILL THIS IN ;###################################################################### ret ItemDelete endp COMMENT @---------------------------------------------------------------------- FUNCTION: ItemFindNode DESCRIPTION: Locates a specified node within the linked list CALLED BY: ItemInsert, ItemDelete, ItemGetValue, ItemSetValue PASS: es = dgroup ds = segment of the block containing the linked list cx = item # (0 means first item in the list) RETURN: si = chunk handle of the specified item/node DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ? ?/92 Initial version ------------------------------------------------------------------------------@ ItemFindNode proc near .enter ;###################################################################### ;FILL THIS IN ;###################################################################### .leave ret ItemFindNode endp ItemCommonCode ends ;end of CommonCode resource
7,783
Assembly
asm
24.170807
80
0.418733
f700bdc868ad14c4c37181a3e0b7dd173a74eb5a
steakknife/pcgeos
[ "Apache-2.0" ]
504
; A016793: a(n) = (3*n + 2)^5. ; 32,3125,32768,161051,537824,1419857,3200000,6436343,11881376,20511149,33554432,52521875,79235168,115856201,164916224,229345007,312500000,418195493,550731776,714924299,916132832,1160290625,1453933568,1804229351,2219006624,2706784157,3276800000,3939040643,4704270176,5584059449,6590815232,7737809375,9039207968,10510100501,12166529024,14025517307,16105100000,18424351793,21003416576,23863536599,27027081632,30517578125,34359738368,38579489651,43204003424,48261724457,53782400000,59797108943 mul $0,3 add $0,2 pow $0,5
550
Assembly
asm
78.571429
490
0.852727
f700c338fcce6a364a251e749fb8c9fc6fc15111
neoneye/loda-programs
[ "Apache-2.0" ]
11
==================== Asm code ==================== .section .data .align 8 .align 1 .globl abc .type abc, @object abc: .quad xyz_info
138
Assembly
asm
11.5
50
0.478261
f700cc568367a021a307baf3989a31987ce14ef0
takenobu-hs/haskell-ghc-cmm-examples
[ "BSD-3-Clause" ]
1
; ; Fast background save ; ; Generic version (just a bit slow) ; ; $Id: w_bksave.asm $ ; SECTION smc_clib PUBLIC bksave PUBLIC _bksave EXTERN w_pixeladdress .bksave ._bksave push ix ld hl,4 add hl,sp ld e,(hl) inc hl ld d,(hl) ;sprite address push de pop ix inc hl ld e,(hl) inc hl ld d,(hl) ; y inc hl ld a,(hl) inc hl ld h,(hl) ld l,a ; x ; ld h,d ; current x coordinate ; ld l,e ; current y coordinate ld (ix+2),l ; store x ld (ix+3),h ld (ix+4),e ; store y ;ld (ix+5),d ld d,0 ld (x_coord+1),hl ld c,e ; y coordinate push bc call w_pixeladdress pop bc ld a,(ix+0) ld b,(ix+1) dec a srl a srl a srl a inc a inc a ; INT ((Xsize-1)/8+2) ld (rbytes+1),a .bksaves push bc .rbytes ld b,0 .rloop ld a,(de) ld (ix+6),a inc de inc ix djnz rloop ld d,0 ld e,c inc e ; y .x_coord ld hl,0 call w_pixeladdress pop bc inc c ; y djnz bksaves pop ix ret
1,098
Assembly
asm
12.2
39
0.510018
f700e96c771173fef1e98106a43868288c07897b
jpoikela/z88dk
[ "ClArtistic" ]
null
; $Id: bs3-wc32-U8LS.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; BS3Kit - 32-bit Watcom C/C++, 64-bit integer left shift. ; ; ; Copyright (C) 2007-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; %include "bs3kit-template-header.mac" ;; ; 64-bit integer left shift. ; ; @returns EDX:EAX ; @param EDX:EAX Value to shift. ; @param BL Shift count (it's specified as ECX:EBX, but we only use BL). ; global $??U8LS $??U8LS: global $??I8LS $??I8LS: push ecx ; We're allowed to trash ECX, but why bother. mov cl, bl and cl, 3fh test cl, 20h jnz .big_shift ; Shifting less than 32. shld edx, eax, cl shl eax, cl .return: pop ecx ret .big_shift: ; Shifting 32 or more. mov edx, eax shl edx, cl ; Only uses lower 5 bits. xor eax, eax jmp .return
1,878
Assembly
asm
29.809524
85
0.642705
f700feff0683a2473dfad8d637ec7142ef5ec983
Nurzamal/rest_api_docker
[ "MIT" ]
null
; A140341: The number of bits needed to write the universal code for an Elias delta coding, the simplest asymptotically optimal code. ; Submitted by Jon Maiga ; 1,4,4,5,5,5,5,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11 add $0,2 mul $0,4 sub $0,1 mov $5,-1 lpb $0 div $0,2 add $5,1 lpe mov $0,$5 mul $0,2 mov $4,$0 lpb $0 div $0,2 add $0,1 add $1,$4 mov $2,$3 sub $2,1 add $1,$2 mov $3,4 mov $4,1 lpe sub $1,7 mov $0,$1 div $0,2 add $0,1
669
Assembly
asm
22.3
270
0.620329
f7012a54ccaf5a4f18748ef4aff453c3725501e1
neoneye/loda-programs
[ "Apache-2.0" ]
11
00000000: 4E4553 LSR $5345 00000003: 1A .DB $1A 00000004: 0100 ORA ($00,X) 00000006: 00 BRK 00000007: 00 BRK 00000008: 00 BRK 00000009: 00 BRK 0000000A: 00 BRK 0000000B: 00 BRK 0000000C: 00 BRK 0000000D: 00 BRK 0000000E: 00 BRK 0000000F: 00 BRK 00000010: 78 SEI 00000011: D8 CLD 00000012: A240 LDX #$40 00000014: 8E1740 STX $4017 00000017: A2FF LDX #$FF 00000019: 9A TXS 0000001A: E8 INX 0000001B: 8E0020 STX $2000 0000001E: 8E0120 STX $2001 00000021: 8E1040 STX $4010 00000024: 8A TXA 00000025: 9500 STA $00,X 00000027: 9D0001 STA $0100,X 0000002A: 9D0002 STA $0200,X 0000002D: 9D0003 STA $0300,X 00000030: 9D0004 STA $0400,X 00000033: 9D0005 STA $0500,X 00000036: 9D0006 STA $0600,X 00000039: 9D0007 STA $0700,X 0000003C: E8 INX 0000003D: D0E6 BNE $E6 0000003F: A9FE LDA #$FE 00000041: 9D0007 STA $0700,X 00000044: E8 INX 00000045: E8 INX 00000046: E8 INX 00000047: E8 INX 00000048: D0F7 BNE $F7 0000004A: A9AC LDA #$AC 0000004C: A2E1 LDX #$E1 0000004E: 8D2902 STA $0229 00000051: 8E2A02 STX $022A 00000054: 2028C2 JSR $C228 00000057: A207 LDX #$07 00000059: A900 LDA #$00 0000005B: 9D4202 STA $0242,X 0000005E: 9D6202 STA $0262,X 00000061: A9FC LDA #$FC 00000063: 9D4A02 STA $024A,X 00000066: 8A TXA 00000067: 9D3202 STA $0232,X 0000006A: CA DEX 0000006B: 10EC BPL $EC 0000006D: A900 LDA #$00 0000006F: 8D6C02 STA $026C 00000072: 8D6B02 STA $026B 00000075: 2C0220 BIT $2002 00000078: 2C0220 BIT $2002 0000007B: 10FB BPL $FB 0000007D: 2C0220 BIT $2002 00000080: 10FB BPL $FB 00000082: A234 LDX #$34 00000084: A018 LDY #$18 00000086: CA DEX 00000087: D0FD BNE $FD 00000089: 88 DEY 0000008A: D0FA BNE $FA 0000008C: AD0220 LDA $2002 0000008F: 2980 AND #$80 00000091: 8D1F02 STA $021F 00000094: 20A0CA JSR $CAA0 00000097: AD0202 LDA $0202 0000009A: 0940 ORA #$40 0000009C: 8D0202 STA $0202 0000009F: AD0002 LDA $0200 000000A2: 8D0020 STA $2000 000000A5: AD0202 LDA $0202 000000A8: 10FB BPL $FB 000000AA: 297F AND #$7F 000000AC: 8D0202 STA $0202 000000AF: 20CECB JSR $CBCE 000000B2: 4C95C0 JMP $C095 000000B5: 2407 BIT $07 000000B7: 1001 BPL $01 000000B9: 40 RTI 000000BA: 48 PHA 000000BB: 8A TXA 000000BC: 48 PHA 000000BD: 98 TYA 000000BE: 48 PHA 000000BF: C607 DEC $07 000000C1: AD1F02 LDA $021F 000000C4: 100E BPL $0E 000000C6: EE1F02 INC $021F 000000C9: C985 CMP #$85 000000CB: D007 BNE $07 000000CD: A980 LDA #$80 000000CF: 8D1F02 STA $021F 000000D2: 306B BMI $6B 000000D4: EE1E02 INC $021E 000000D7: AD0202 LDA $0202 000000DA: 2940 AND #$40 000000DC: F006 BEQ $06 000000DE: AD0102 LDA $0201 000000E1: 8D0120 STA $2001 000000E4: A980 LDA #$80 000000E6: 8D0202 STA $0202 000000E9: A900 LDA #$00 000000EB: 8D0320 STA $2003 000000EE: A907 LDA #$07 000000F0: 8D1440 STA $4014 000000F3: A93F LDA #$3F 000000F5: 8D0620 STA $2006 000000F8: A200 LDX #$00 000000FA: 8E0620 STX $2006 000000FD: AC0502 LDY $0205 00000100: 8C0720 STY $2007 00000103: BD0602 LDA $0206,X 00000106: 8D0720 STA $2007 00000109: BD0702 LDA $0207,X 0000010C: 8D0720 STA $2007 0000010F: BD0802 LDA $0208,X 00000112: 8D0720 STA $2007 00000115: 8C0720 STY $2007 00000118: E8 INX 00000119: E8 INX 0000011A: E8 INX 0000011B: E018 CPX #$18 0000011D: D0E4 BNE $E4 0000011F: 2056D1 JSR $D156 00000122: AD0620 LDA $2006 00000125: A900 LDA #$00 00000127: 8D0620 STA $2006 0000012A: 8D0620 STA $2006 0000012D: AD0302 LDA $0203 00000130: 8D0520 STA $2005 00000133: AD0402 LDA $0204 00000136: 8D0520 STA $2005 00000139: AD0002 LDA $0200 0000013C: 8D0020 STA $2000 0000013F: 202EC5 JSR $C52E 00000142: A900 LDA #$00 00000144: 8507 STA $07 00000146: 68 PLA 00000147: A8 TAY 00000148: 68 PLA 00000149: AA TAX 0000014A: 68 PLA 0000014B: 40 RTI 0000014C: 8D0302 STA $0203 0000014F: 4E0002 LSR $0200 00000152: 8A TXA 00000153: 4A LSR A 00000154: 2E0002 ROL $0200 00000157: 60 RTS 00000158: E000 CPX #$00 0000015A: D010 BNE $10 0000015C: C9F0 CMP #$F0 0000015E: B00C BCS $0C 00000160: 8D0402 STA $0204 00000163: AD0002 LDA $0200 00000166: 29FD AND #$FD 00000168: 8D0002 STA $0200 0000016B: 60 RTS 0000016C: 38 SEC 0000016D: E9F0 SBC #$F0 0000016F: 8D0402 STA $0204 00000172: AD0002 LDA $0200 00000175: 0902 ORA #$02 00000177: 8D0002 STA $0200 0000017A: 60 RTS 0000017B: A000 LDY #$00 0000017D: E603 INC $03 0000017F: A602 LDX $02 00000181: 4C7EC1 JMP $C17E 00000184: 2095C1 JSR $C195 00000187: 18 CLC 00000188: 6506 ADC $06 0000018A: 8D0720 STA $2007 0000018D: CA DEX 0000018E: D0F4 BNE $F4 00000190: C603 DEC $03 00000192: D0F0 BNE $F0 00000194: 60 RTS 00000195: B100 LDA ($00),Y 00000197: C8 INY 00000198: AA TAX 00000199: F009 BEQ $09 0000019B: B100 LDA ($00),Y 0000019D: 8D0720 STA $2007 000001A0: C8 INY 000001A1: CA DEX 000001A2: D0F7 BNE $F7 000001A4: 60 RTS 000001A5: B100 LDA ($00),Y 000001A7: E600 INC $00 000001A9: D002 BNE $02 000001AB: E601 INC $01 000001AD: 60 RTS 000001AE: A000 LDY #$00 000001B0: A200 LDX #$00 000001B2: 2095C1 JSR $C195 000001B5: 9D0502 STA $0205,X 000001B8: E8 INX 000001B9: E019 CPX #$19 000001BB: D0F5 BNE $F5 000001BD: 60 RTS 000001BE: 18 CLC 000001BF: 7500 ADC $00,X 000001C1: 9500 STA $00,X 000001C3: 98 TYA 000001C4: 7501 ADC $01,X 000001C6: 9501 STA $01,X 000001C8: 60 RTS 000001C9: F600 INC $00,X 000001CB: D002 BNE $02 000001CD: F601 INC $01,X 000001CF: 60 RTS 000001D0: D500 CMP $00,X 000001D2: B002 BCS $02 000001D4: B501 LDA $01,X 000001D6: 60 RTS 000001D7: 38 SEC 000001D8: F501 SBC $01,X 000001DA: 9501 STA $01,X 000001DC: 98 TYA 000001DD: F500 SBC $00,X 000001DF: 9500 STA $00,X 000001E1: 38 SEC 000001E2: A900 LDA #$00 000001E4: F501 SBC $01,X 000001E6: 9501 STA $01,X 000001E8: A900 LDA #$00 000001EA: F500 SBC $00,X 000001EC: 9500 STA $00,X 000001EE: 60 RTS 000001EF: 1600 ASL $00,X 000001F1: 3601 ROL $01,X 000001F3: 88 DEY 000001F4: 10F9 BPL $F9 000001F6: 60 RTS 000001F7: 5601 LSR $01,X 000001F9: 7600 ROR $00,X 000001FB: 88 DEY 000001FC: 10F9 BPL $F9 000001FE: 60 RTS 000001FF: A203 LDX #$03 00000201: 4A LSR A 00000202: B003 BCS $03 00000204: CA DEX 00000205: 10FA BPL $FA 00000207: 60 RTS 00000208: AD2902 LDA $0229 0000020B: F01A BEQ $1A 0000020D: 0E2902 ASL $0229 00000210: AD2A02 LDA $022A 00000213: 2A ROL A 00000214: 901B BCC $1B 00000216: 4981 EOR #$81 00000218: 8D2A02 STA $022A 0000021B: AD2902 LDA $0229 0000021E: 4917 EOR #$17 00000220: 8D2902 STA $0229 00000223: 4D2A02 EOR $022A 00000226: 60 RTS 00000227: AD2A02 LDA $022A 0000022A: F0EA BEQ $EA 0000022C: 0A ASL A 0000022D: F002 BEQ $02 0000022F: B0E5 BCS $E5 00000231: 8D2A02 STA $022A 00000234: 4D2902 EOR $0229 00000237: 60 RTS 00000238: A900 LDA #$00 0000023A: 8D2B02 STA $022B 0000023D: 8D2C02 STA $022C 00000240: A9FF LDA #$FF 00000242: A204 LDX #$04 00000244: 9D2D02 STA $022D,X 00000247: CA DEX 00000248: 10FA BPL $FA 0000024A: 60 RTS 0000024B: 0A ASL A 0000024C: AA TAX 0000024D: BCFCE7 LDY $E7FC,X 00000250: 8400 STY $00 00000252: BCFDE7 LDY $E7FD,X 00000255: 8401 STY $01 00000257: 08 PHP 00000258: 4A LSR A 00000259: 28 PLP 0000025A: AA TAX 0000025B: 8504 STA $04 0000025D: A9FF LDA #$FF 0000025F: 5D2D02 EOR $022D,X 00000262: F002 BEQ $02 00000264: 18 CLC 00000265: 60 RTS 00000266: A000 LDY #$00 00000268: 2095C1 JSR $C195 0000026B: 9001 BCC $01 0000026D: C8 INY 0000026E: 8403 STY $03 00000270: BE2B02 LDX $022B,Y 00000273: 8602 STX $02 00000275: 38 SEC 00000276: 6502 ADC $02 00000278: 9005 BCC $05 0000027A: F001 BEQ $01 0000027C: 60 RTS 0000027D: A9FF LDA #$FF 0000027F: 992B02 STA $022B,Y 00000282: A404 LDY $04 00000284: 8A TXA 00000285: 992D02 STA $022D,Y 00000288: A004 LDY #$04 0000028A: A202 LDX #$02 0000028C: 20E3C1 JSR $C1E3 0000028F: AE0220 LDX $2002 00000292: A603 LDX $03 00000294: 8E0620 STX $2006 00000297: A602 LDX $02 00000299: 8E0620 STX $2006 0000029C: 20B7C3 JSR $C3B7 0000029F: 18 CLC 000002A0: 90DA BCC $DA 000002A2: A506 LDA $06 000002A4: 48 PHA 000002A5: BD2D02 LDA $022D,X 000002A8: 8506 STA $06 000002AA: 20B7C3 JSR $C3B7 000002AD: 68 PLA 000002AE: 8506 STA $06 000002B0: 60 RTS 000002B1: A006 LDY #$06 000002B3: BE3202 LDX $0232,Y 000002B6: BD4202 LDA $0242,X 000002B9: BE3302 LDX $0233,Y 000002BC: 38 SEC 000002BD: DD4202 CMP $0242,X 000002C0: B00A BCS $0A 000002C2: B93202 LDA $0232,Y 000002C5: 993302 STA $0233,Y 000002C8: 8A TXA 000002C9: 993202 STA $0232,Y 000002CC: 88 DEY 000002CD: 10E4 BPL $E4 000002CF: 60 RTS 000002D0: A000 LDY #$00 000002D2: 98 TYA 000002D3: 48 PHA 000002D4: BE3202 LDX $0232,Y 000002D7: 20D2C2 JSR $C2D2 000002DA: 68 PLA 000002DB: A8 TAY 000002DC: C8 INY 000002DD: C007 CPY #$07 000002DF: D0F1 BNE $F1 000002E1: 60 RTS 000002E2: BD3A02 LDA $023A,X 000002E5: 8500 STA $00 000002E7: BD4202 LDA $0242,X 000002EA: 8501 STA $01 000002EC: D001 BNE $01 000002EE: 60 RTS 000002EF: BC5202 LDY $0252,X 000002F2: B92D02 LDA $022D,Y 000002F5: 4A LSR A 000002F6: 8503 STA $03 000002F8: 98 TYA 000002F9: 0A ASL A 000002FA: A8 TAY 000002FB: B906E8 LDA $E806,Y 000002FE: 8504 STA $04 00000300: B907E8 LDA $E807,Y 00000303: 8505 STA $05 00000305: BD5A02 LDA $025A,X 00000308: 0A ASL A 00000309: A8 TAY 0000030A: B104 LDA ($04),Y 0000030C: C8 INY 0000030D: 48 PHA 0000030E: B104 LDA ($04),Y 00000310: 8505 STA $05 00000312: 68 PLA 00000313: 8504 STA $04 00000315: BD4A02 LDA $024A,X 00000318: BC6202 LDY $0262,X 0000031B: 2062C3 JSR $C362 0000031E: 9D4A02 STA $024A,X 00000321: 98 TYA 00000322: 9D6202 STA $0262,X 00000325: B104 LDA ($04),Y 00000327: A8 TAY 00000328: A201 LDX #$01 0000032A: B500 LDA $00,X 0000032C: 38 SEC 0000032D: E920 SBC #$20 0000032F: 9500 STA $00,X 00000331: CA DEX 00000332: 10F6 BPL $F6 00000334: AE6C02 LDX $026C 00000337: B104 LDA ($04),Y 00000339: C8 INY 0000033A: 48 PHA 0000033B: 29C0 AND #$C0 0000033D: 8502 STA $02 0000033F: 68 PLA 00000340: 293F AND #$3F 00000342: 18 CLC 00000343: 6501 ADC $01 00000345: 9D0007 STA $0700,X 00000348: B104 LDA ($04),Y 0000034A: C8 INY 0000034B: 48 PHA 0000034C: 2903 AND #$03 0000034E: 0502 ORA $02 00000350: 9D0207 STA $0702,X 00000353: 68 PLA 00000354: 4A LSR A 00000355: 4A LSR A 00000356: 18 CLC 00000357: 6500 ADC $00 00000359: 9D0307 STA $0703,X 0000035C: B104 LDA ($04),Y 0000035E: C8 INY 0000035F: 18 CLC 00000360: 6503 ADC $03 00000362: 0A ASL A 00000363: 0901 ORA #$01 00000365: 9D0107 STA $0701,X 00000368: E8 INX 00000369: E8 INX 0000036A: E8 INX 0000036B: E8 INX 0000036C: 90C9 BCC $C9 0000036E: 8E6C02 STX $026C 00000371: 60 RTS 00000372: C9FB CMP #$FB 00000374: 9001 BCC $01 00000376: 60 RTS 00000377: 38 SEC 00000378: E904 SBC #$04 0000037A: 9001 BCC $01 0000037C: 60 RTS 0000037D: C8 INY 0000037E: B104 LDA ($04),Y 00000380: 1002 BPL $02 00000382: A0FF LDY #$FF 00000384: C8 INY 00000385: C8 INY 00000386: B104 LDA ($04),Y 00000388: 88 DEY 00000389: 0A ASL A 0000038A: 60 RTS 0000038B: AD6B02 LDA $026B 0000038E: 8500 STA $00 00000390: AE6C02 LDX $026C 00000393: 8E6B02 STX $026B 00000396: A900 LDA #$00 00000398: 8D6C02 STA $026C 0000039B: A9FE LDA #$FE 0000039D: E400 CPX $00 0000039F: B009 BCS $09 000003A1: 9D0007 STA $0700,X 000003A4: E8 INX 000003A5: E8 INX 000003A6: E8 INX 000003A7: E8 INX 000003A8: D0F3 BNE $F3 000003AA: 60 RTS 000003AB: DD5A02 CMP $025A,X 000003AE: F00D BEQ $0D 000003B0: 297F AND #$7F 000003B2: 9D5A02 STA $025A,X 000003B5: A900 LDA #$00 000003B7: 9D6202 STA $0262,X 000003BA: 9D4A02 STA $024A,X 000003BD: 60 RTS 000003BE: BD4A02 LDA $024A,X 000003C1: 09FC ORA #$FC 000003C3: 9D4A02 STA $024A,X 000003C6: 60 RTS 000003C7: A200 LDX #$00 000003C9: A000 LDY #$00 000003CB: B100 LDA ($00),Y 000003CD: 4A LSR A 000003CE: 900D BCC $0D 000003D0: 8503 STA $03 000003D2: 2095C1 JSR $C195 000003D5: 2095C1 JSR $C195 000003D8: 8502 STA $02 000003DA: 4C6BC1 JMP $C16B 000003DD: A980 LDA #$80 000003DF: 8503 STA $03 000003E1: 2095C1 JSR $C195 000003E4: 8504 STA $04 000003E6: 4604 LSR $04 000003E8: B00E BCS $0E 000003EA: 2095C1 JSR $C195 000003ED: 6506 ADC $06 000003EF: 2004C4 JSR $C404 000003F2: 4603 LSR $03 000003F4: 90F0 BCC $F0 000003F6: B0E5 BCS $E5 000003F8: 2095C1 JSR $C195 000003FB: 8502 STA $02 000003FD: 2095C1 JSR $C195 00000400: A8 TAY 00000401: C402 CPY $02 00000403: F016 BEQ $16 00000405: B90006 LDA $0600,Y 00000408: C8 INY 00000409: 2004C4 JSR $C404 0000040C: C402 CPY $02 0000040E: D0F5 BNE $F5 00000410: A000 LDY #$00 00000412: F0DE BEQ $DE 00000414: 8D0720 STA $2007 00000417: 9D0006 STA $0600,X 0000041A: E8 INX 0000041B: 60 RTS 0000041C: 8E6505 STX $0565 0000041F: 8C6605 STY $0566 00000422: 8608 STX $08 00000424: 8409 STY $09 00000426: AA TAX 00000427: F002 BEQ $02 00000429: A940 LDA #$40 0000042B: 8D6405 STA $0564 0000042E: 2064C4 JSR $C464 00000431: A001 LDY #$01 00000433: B108 LDA ($08),Y 00000435: 8D6705 STA $0567 00000438: C8 INY 00000439: B108 LDA ($08),Y 0000043B: 8D6805 STA $0568 0000043E: C8 INY 0000043F: B108 LDA ($08),Y 00000441: 8D6D05 STA $056D 00000444: C8 INY 00000445: B108 LDA ($08),Y 00000447: 8D6E05 STA $056E 0000044A: A9FF LDA #$FF 0000044C: 8D6105 STA $0561 0000044F: 8D6305 STA $0563 00000452: A90F LDA #$0F 00000454: 8D1540 STA $4015 00000457: A980 LDA #$80 00000459: 8D0840 STA $4008 0000045C: A900 LDA #$00 0000045E: 8D0F40 STA $400F 00000461: A930 LDA #$30 00000463: 8D0040 STA $4000 00000466: 8D0440 STA $4004 00000469: 8D0C40 STA $400C 0000046C: A908 LDA #$08 0000046E: 8D0140 STA $4001 00000471: 8D0540 STA $4005 00000474: A900 LDA #$00 00000476: 8D4A05 STA $054A 00000479: 8D6F05 STA $056F 0000047C: A237 LDX #$37 0000047E: A900 LDA #$00 00000480: 9D1405 STA $0514,X 00000483: 9D0F05 STA $050F,X 00000486: 9D0A05 STA $050A,X 00000489: 9D2305 STA $0523,X 0000048C: A930 LDA #$30 0000048E: 9D2805 STA $0528,X 00000491: E8 INX 00000492: E03C CPX #$3C 00000494: D0E8 BNE $E8 00000496: A200 LDX #$00 00000498: A969 LDA #$69 0000049A: 9D1605 STA $0516,X 0000049D: A9C9 LDA #$C9 0000049F: 9D2105 STA $0521,X 000004A2: A900 LDA #$00 000004A4: 9D0B05 STA $050B,X 000004A7: 9D0005 STA $0500,X 000004AA: E8 INX 000004AB: E00B CPX #$0B 000004AD: D0E9 BNE $E9 000004AF: 60 RTS 000004B0: AE6505 LDX $0565 000004B3: 8608 STX $08 000004B5: AE6605 LDX $0566 000004B8: 8609 STX $09 000004BA: A000 LDY #$00 000004BC: D108 CMP ($08),Y 000004BE: B05C BCS $5C 000004C0: 0A ASL A 000004C1: 8508 STA $08 000004C3: 0A ASL A 000004C4: AA TAX 000004C5: 0A ASL A 000004C6: 6508 ADC $08 000004C8: 8608 STX $08 000004CA: 6508 ADC $08 000004CC: 6905 ADC #$05 000004CE: A8 TAY 000004CF: AD6505 LDA $0565 000004D2: 8508 STA $08 000004D4: 2064C4 JSR $C464 000004D7: A237 LDX #$37 000004D9: B108 LDA ($08),Y 000004DB: 9D0005 STA $0500,X 000004DE: C8 INY 000004DF: B108 LDA ($08),Y 000004E1: 9D0505 STA $0505,X 000004E4: C8 INY 000004E5: A900 LDA #$00 000004E7: 9D1405 STA $0514,X 000004EA: 9D0F05 STA $050F,X 000004ED: 9D0A05 STA $050A,X 000004F0: 9D2305 STA $0523,X 000004F3: A930 LDA #$30 000004F5: 9D2805 STA $0528,X 000004F8: E8 INX 000004F9: E03C CPX #$3C 000004FB: D0DC BNE $DC 000004FD: AD6405 LDA $0564 00000500: F002 BEQ $02 00000502: C8 INY 00000503: C8 INY 00000504: B108 LDA ($08),Y 00000506: 8D6905 STA $0569 00000509: C8 INY 0000050A: B108 LDA ($08),Y 0000050C: 8D6A05 STA $056A 0000050F: A900 LDA #$00 00000511: 8D6B05 STA $056B 00000514: A906 LDA #$06 00000516: 8D6C05 STA $056C 00000519: 8D4A05 STA $054A 0000051C: 60 RTS 0000051D: AA TAX 0000051E: F015 BEQ $15 00000520: A900 LDA #$00 00000522: 8D0005 STA $0500 00000525: 8D0305 STA $0503 00000528: 8D0605 STA $0506 0000052B: 8D0905 STA $0509 0000052E: AD4A05 LDA $054A 00000531: 0980 ORA #$80 00000533: D005 BNE $05 00000535: AD4A05 LDA $054A 00000538: 297F AND #$7F 0000053A: 8D4A05 STA $054A 0000053D: 60 RTS 0000053E: A508 LDA $08 00000540: 48 PHA 00000541: A509 LDA $09 00000543: 48 PHA 00000544: AD4A05 LDA $054A 00000547: 3002 BMI $02 00000549: D003 BNE $03 0000054B: 4CF5C5 JMP $C5F5 0000054E: 18 CLC 0000054F: AD6B05 LDA $056B 00000552: 6D6905 ADC $0569 00000555: 8D6B05 STA $056B 00000558: AD6C05 LDA $056C 0000055B: 6D6A05 ADC $056A 0000055E: CD4A05 CMP $054A 00000561: B006 BCS $06 00000563: 8D6C05 STA $056C 00000566: 4CB9C5 JMP $C5B9 00000569: 38 SEC 0000056A: ED4A05 SBC $054A 0000056D: 8D6C05 STA $056C 00000570: A237 LDX #$37 00000572: 205DC7 JSR $C75D 00000575: 900B BCC $0B 00000577: A200 LDX #$00 00000579: AD4605 LDA $0546 0000057C: 200AC7 JSR $C70A 0000057F: 8D5F05 STA $055F 00000582: A238 LDX #$38 00000584: 205DC7 JSR $C75D 00000587: 900B BCC $0B 00000589: A203 LDX #$03 0000058B: AD4705 LDA $0547 0000058E: 200AC7 JSR $C70A 00000591: 8D6005 STA $0560 00000594: A239 LDX #$39 00000596: 205DC7 JSR $C75D 00000599: 9008 BCC $08 0000059B: A206 LDX #$06 0000059D: AD4805 LDA $0548 000005A0: 200AC7 JSR $C70A 000005A3: A23A LDX #$3A 000005A5: 205DC7 JSR $C75D 000005A8: 900B BCC $0B 000005AA: A209 LDX #$09 000005AC: AD4905 LDA $0549 000005AF: 200AC7 JSR $C70A 000005B2: 8D6205 STA $0562 000005B5: A23B LDX #$3B 000005B7: 205DC7 JSR $C75D 000005BA: 900D BCC $0D 000005BC: AD4505 LDA $0545 000005BF: D005 BNE $05 000005C1: 200BC8 JSR $C80B 000005C4: D003 BNE $03 000005C6: 2011C8 JSR $C811 000005C9: A200 LDX #$00 000005CB: BD0B05 LDA $050B,X 000005CE: F005 BEQ $05 000005D0: DE0B05 DEC $050B,X 000005D3: D02B BNE $2B 000005D5: BD1605 LDA $0516,X 000005D8: 8508 STA $08 000005DA: BD2105 LDA $0521,X 000005DD: 8509 STA $09 000005DF: BC2C05 LDY $052C,X 000005E2: B108 LDA ($08),Y 000005E4: 1009 BPL $09 000005E6: 18 CLC 000005E7: 6940 ADC #$40 000005E9: 9D0005 STA $0500,X 000005EC: C8 INY 000005ED: D00D BNE $0D 000005EF: D007 BNE $07 000005F1: C8 INY 000005F2: B108 LDA ($08),Y 000005F4: A8 TAY 000005F5: 4CD2C5 JMP $C5D2 000005F8: C8 INY 000005F9: 9D0B05 STA $050B,X 000005FC: 98 TYA 000005FD: 9D2C05 STA $052C,X 00000600: E8 INX 00000601: E00B CPX #$0B 00000603: D0C6 BNE $C6 00000605: AD4105 LDA $0541 00000608: F022 BEQ $22 0000060A: 18 CLC 0000060B: 6D0105 ADC $0501 0000060E: 0D6405 ORA $0564 00000611: AA TAX 00000612: AD0205 LDA $0502 00000615: A8 TAY 00000616: 7D6CC9 ADC $C96C,X 00000619: 8D7105 STA $0571 0000061C: 98 TYA 0000061D: 097F ORA #$7F 0000061F: 3002 BMI $02 00000621: A900 LDA #$00 00000623: 7DECC9 ADC $C9EC,X 00000626: 8D7205 STA $0572 00000629: AD0005 LDA $0500 0000062C: 0D5F05 ORA $055F 0000062F: 8D7005 STA $0570 00000632: AD4205 LDA $0542 00000635: F022 BEQ $22 00000637: 18 CLC 00000638: 6D0405 ADC $0504 0000063B: 0D6405 ORA $0564 0000063E: AA TAX 0000063F: AD0505 LDA $0505 00000642: A8 TAY 00000643: 7D6CC9 ADC $C96C,X 00000646: 8D7405 STA $0574 00000649: 98 TYA 0000064A: 097F ORA #$7F 0000064C: 3002 BMI $02 0000064E: A900 LDA #$00 00000650: 7DECC9 ADC $C9EC,X 00000653: 8D7505 STA $0575 00000656: AD0305 LDA $0503 00000659: 0D6005 ORA $0560 0000065C: 8D7305 STA $0573 0000065F: AD4305 LDA $0543 00000662: F022 BEQ $22 00000664: 18 CLC 00000665: 6D0705 ADC $0507 00000668: 0D6405 ORA $0564 0000066B: AA TAX 0000066C: AD0805 LDA $0508 0000066F: A8 TAY 00000670: 7D6CC9 ADC $C96C,X 00000673: 8D7705 STA $0577 00000676: 98 TYA 00000677: 097F ORA #$7F 00000679: 3002 BMI $02 0000067B: A900 LDA #$00 0000067D: 7DECC9 ADC $C9EC,X 00000680: 8D7805 STA $0578 00000683: AD0605 LDA $0506 00000686: 0980 ORA #$80 00000688: 8D7605 STA $0576 0000068B: AD4405 LDA $0544 0000068E: F018 BEQ $18 00000690: 18 CLC 00000691: 6D0A05 ADC $050A 00000694: 290F AND #$0F 00000696: 490F EOR #$0F 00000698: 850A STA $0A 0000069A: AD6205 LDA $0562 0000069D: 0A ASL A 0000069E: 2980 AND #$80 000006A0: 050A ORA $0A 000006A2: 8D7A05 STA $057A 000006A5: AD0905 LDA $0509 000006A8: 09F0 ORA #$F0 000006AA: 8D7905 STA $0579 000006AD: A200 LDX #$00 000006AF: 20B4C8 JSR $C8B4 000006B2: A20F LDX #$0F 000006B4: 20B4C8 JSR $C8B4 000006B7: A21E LDX #$1E 000006B9: 20B4C8 JSR $C8B4 000006BC: A22D LDX #$2D 000006BE: 20B4C8 JSR $C8B4 000006C1: AD7005 LDA $0570 000006C4: 8D0040 STA $4000 000006C7: AD7105 LDA $0571 000006CA: 8D0240 STA $4002 000006CD: AD7205 LDA $0572 000006D0: CD6105 CMP $0561 000006D3: F006 BEQ $06 000006D5: 8D6105 STA $0561 000006D8: 8D0340 STA $4003 000006DB: AD7305 LDA $0573 000006DE: 8D0440 STA $4004 000006E1: AD7405 LDA $0574 000006E4: 8D0640 STA $4006 000006E7: AD7505 LDA $0575 000006EA: CD6305 CMP $0563 000006ED: F006 BEQ $06 000006EF: 8D6305 STA $0563 000006F2: 8D0740 STA $4007 000006F5: AD7605 LDA $0576 000006F8: 8D0840 STA $4008 000006FB: AD7705 LDA $0577 000006FE: 8D0A40 STA $400A 00000701: AD7805 LDA $0578 00000704: 8D0B40 STA $400B 00000707: AD7905 LDA $0579 0000070A: 8D0C40 STA $400C 0000070D: AD7A05 LDA $057A 00000710: 8D0E40 STA $400E 00000713: 68 PLA 00000714: 8509 STA $09 00000716: 68 PLA 00000717: 8508 STA $08 00000719: 60 RTS 0000071A: 0A ASL A 0000071B: A8 TAY 0000071C: AD6805 LDA $0568 0000071F: 6900 ADC #$00 00000721: 8509 STA $09 00000723: AD6705 LDA $0567 00000726: 8508 STA $08 00000728: B108 LDA ($08),Y 0000072A: 850A STA $0A 0000072C: C8 INY 0000072D: B108 LDA ($08),Y 0000072F: 9D1605 STA $0516,X 00000732: C8 INY 00000733: B108 LDA ($08),Y 00000735: C8 INY 00000736: 9D2105 STA $0521,X 00000739: E8 INX 0000073A: B108 LDA ($08),Y 0000073C: 9D1605 STA $0516,X 0000073F: C8 INY 00000740: B108 LDA ($08),Y 00000742: 9D2105 STA $0521,X 00000745: A900 LDA #$00 00000747: 9D0A05 STA $050A,X 0000074A: 9D2B05 STA $052B,X 0000074D: 9D0B05 STA $050B,X 00000750: 9D2C05 STA $052C,X 00000753: E009 CPX #$09 00000755: B013 BCS $13 00000757: E8 INX 00000758: C8 INY 00000759: 9D0B05 STA $050B,X 0000075C: 9D2C05 STA $052C,X 0000075F: B108 LDA ($08),Y 00000761: 9D1605 STA $0516,X 00000764: C8 INY 00000765: B108 LDA ($08),Y 00000767: 9D2105 STA $0521,X 0000076A: A50A LDA $0A 0000076C: 60 RTS 0000076D: BD1405 LDA $0514,X 00000770: F005 BEQ $05 00000772: DE1405 DEC $0514,X 00000775: 18 CLC 00000776: 60 RTS 00000777: BD0005 LDA $0500,X 0000077A: 8508 STA $08 0000077C: BD0505 LDA $0505,X 0000077F: 8509 STA $09 00000781: A000 LDY #$00 00000783: B108 LDA ($08),Y 00000785: E608 INC $08 00000787: D002 BNE $02 00000789: E609 INC $09 0000078B: 0900 ORA #$00 0000078D: 300C BMI $0C 0000078F: 4A LSR A 00000790: 9003 BCC $03 00000792: FE1405 INC $0514,X 00000795: 9D0A05 STA $050A,X 00000798: 38 SEC 00000799: B05E BCS $5E 0000079B: 297F AND #$7F 0000079D: 4A LSR A 0000079E: B007 BCS $07 000007A0: 0A ASL A 000007A1: 0A ASL A 000007A2: 9D0F05 STA $050F,X 000007A5: 90DC BCC $DC 000007A7: C93D CMP #$3D 000007A9: 904B BCC $4B 000007AB: F02B BEQ $2B 000007AD: C93E CMP #$3E 000007AF: F034 BEQ $34 000007B1: 18 CLC 000007B2: A508 LDA $08 000007B4: 6903 ADC #$03 000007B6: 9D1905 STA $0519,X 000007B9: A509 LDA $09 000007BB: 6900 ADC #$00 000007BD: 9D1E05 STA $051E,X 000007C0: B108 LDA ($08),Y 000007C2: 9D2305 STA $0523,X 000007C5: C8 INY 000007C6: B108 LDA ($08),Y 000007C8: 850A STA $0A 000007CA: C8 INY 000007CB: B108 LDA ($08),Y 000007CD: 8509 STA $09 000007CF: A50A LDA $0A 000007D1: 8508 STA $08 000007D3: A000 LDY #$00 000007D5: 4C73C7 JMP $C773 000007D8: B108 LDA ($08),Y 000007DA: 8D4A05 STA $054A 000007DD: E608 INC $08 000007DF: D0A2 BNE $A2 000007E1: E609 INC $09 000007E3: D09E BNE $9E 000007E5: B108 LDA ($08),Y 000007E7: 850A STA $0A 000007E9: C8 INY 000007EA: B108 LDA ($08),Y 000007EC: 8509 STA $09 000007EE: A50A LDA $0A 000007F0: 8508 STA $08 000007F2: 88 DEY 000007F3: 4C73C7 JMP $C773 000007F6: 9D1405 STA $0514,X 000007F9: BD2305 LDA $0523,X 000007FC: F012 BEQ $12 000007FE: DE2305 DEC $0523,X 00000801: D00D BNE $0D 00000803: BD1905 LDA $0519,X 00000806: 9D0005 STA $0500,X 00000809: BD1E05 LDA $051E,X 0000080C: 9D0505 STA $0505,X 0000080F: 60 RTS 00000810: A508 LDA $08 00000812: 9D0005 STA $0500,X 00000815: A509 LDA $09 00000817: 9D0505 STA $0505,X 0000081A: 60 RTS 0000081B: A90F LDA #$0F 0000081D: 8D1540 STA $4015 00000820: 60 RTS 00000821: AE6F05 LDX $056F 00000824: F015 BEQ $15 00000826: AA TAX 00000827: AD1540 LDA $4015 0000082A: 2910 AND #$10 0000082C: F001 BEQ $01 0000082E: 60 RTS 0000082F: 8D6F05 STA $056F 00000832: 8A TXA 00000833: 4C2BC8 JMP $C82B 00000836: A201 LDX #$01 00000838: 8E6F05 STX $056F 0000083B: 0A ASL A 0000083C: 0A ASL A 0000083D: 6D6D05 ADC $056D 00000840: 8508 STA $08 00000842: A900 LDA #$00 00000844: 6D6E05 ADC $056E 00000847: 8509 STA $09 00000849: A90F LDA #$0F 0000084B: 8D1540 STA $4015 0000084E: A000 LDY #$00 00000850: B108 LDA ($08),Y 00000852: 8D1240 STA $4012 00000855: C8 INY 00000856: B108 LDA ($08),Y 00000858: 8D1340 STA $4013 0000085B: C8 INY 0000085C: B108 LDA ($08),Y 0000085E: 8D1040 STA $4010 00000861: A920 LDA #$20 00000863: 8D1140 STA $4011 00000866: A91F LDA #$1F 00000868: 8D1540 STA $4015 0000086B: 60 RTS 0000086C: AD6405 LDA $0564 0000086F: D008 BNE $08 00000871: E8 INX 00000872: D001 BNE $01 00000874: C8 INY 00000875: E8 INX 00000876: D001 BNE $01 00000878: C8 INY 00000879: 8E7B05 STX $057B 0000087C: 8C7C05 STY $057C 0000087F: A200 LDX #$00 00000881: 207EC8 JSR $C87E 00000884: 8A TXA 00000885: 18 CLC 00000886: 690F ADC #$0F 00000888: AA TAX 00000889: E03C CPX #$3C 0000088B: D0F4 BNE $F4 0000088D: 60 RTS 0000088E: A900 LDA #$00 00000890: 9D7F05 STA $057F,X 00000893: 9D7D05 STA $057D,X 00000896: 9D8005 STA $0580,X 00000899: 9D8705 STA $0587,X 0000089C: A930 LDA #$30 0000089E: 9D8105 STA $0581,X 000008A1: 9D8405 STA $0584,X 000008A4: 9D8A05 STA $058A,X 000008A7: 60 RTS 000008A8: 0A ASL A 000008A9: 0A ASL A 000008AA: A8 TAY 000008AB: 207EC8 JSR $C87E 000008AE: AD7B05 LDA $057B 000008B1: 8508 STA $08 000008B3: AD7C05 LDA $057C 000008B6: 8509 STA $09 000008B8: B108 LDA ($08),Y 000008BA: 9D7E05 STA $057E,X 000008BD: C8 INY 000008BE: B108 LDA ($08),Y 000008C0: 9D7F05 STA $057F,X 000008C3: 60 RTS 000008C4: BD7D05 LDA $057D,X 000008C7: F005 BEQ $05 000008C9: DE7D05 DEC $057D,X 000008CC: D036 BNE $36 000008CE: BD7F05 LDA $057F,X 000008D1: D001 BNE $01 000008D3: 60 RTS 000008D4: 8509 STA $09 000008D6: BD7E05 LDA $057E,X 000008D9: 8508 STA $08 000008DB: BC8005 LDY $0580,X 000008DE: 18 CLC 000008DF: B108 LDA ($08),Y 000008E1: 300D BMI $0D 000008E3: F01C BEQ $1C 000008E5: C8 INY 000008E6: 9D7D05 STA $057D,X 000008E9: 98 TYA 000008EA: 9D8005 STA $0580,X 000008ED: 4CF4C8 JMP $C8F4 000008F0: C8 INY 000008F1: 860A STX $0A 000008F3: 650A ADC $0A 000008F5: AA TAX 000008F6: B108 LDA ($08),Y 000008F8: C8 INY 000008F9: 9D0105 STA $0501,X 000008FC: A60A LDX $0A 000008FE: 4CCFC8 JMP $C8CF 00000901: 9D7F05 STA $057F,X 00000904: AD7005 LDA $0570 00000907: 290F AND #$0F 00000909: 850A STA $0A 0000090B: BD8105 LDA $0581,X 0000090E: 290F AND #$0F 00000910: C50A CMP $0A 00000912: 9012 BCC $12 00000914: BD8105 LDA $0581,X 00000917: 8D7005 STA $0570 0000091A: BD8205 LDA $0582,X 0000091D: 8D7105 STA $0571 00000920: BD8305 LDA $0583,X 00000923: 8D7205 STA $0572 00000926: AD7305 LDA $0573 00000929: 290F AND #$0F 0000092B: 850A STA $0A 0000092D: BD8405 LDA $0584,X 00000930: 290F AND #$0F 00000932: C50A CMP $0A 00000934: 9012 BCC $12 00000936: BD8405 LDA $0584,X 00000939: 8D7305 STA $0573 0000093C: BD8505 LDA $0585,X 0000093F: 8D7405 STA $0574 00000942: BD8605 LDA $0586,X 00000945: 8D7505 STA $0575 00000948: BD8705 LDA $0587,X 0000094B: F00F BEQ $0F 0000094D: 8D7605 STA $0576 00000950: BD8805 LDA $0588,X 00000953: 8D7705 STA $0577 00000956: BD8905 LDA $0589,X 00000959: 8D7805 STA $0578 0000095C: AD7905 LDA $0579 0000095F: 290F AND #$0F 00000961: 850A STA $0A 00000963: BD8A05 LDA $058A,X 00000966: 290F AND #$0F 00000968: C50A CMP $0A 0000096A: 900C BCC $0C 0000096C: BD8A05 LDA $058A,X 0000096F: 8D7905 STA $0579 00000972: BD8B05 LDA $058B,X 00000975: 8D7A05 STA $057A 00000978: 60 RTS 00000979: C000 CPY #$00 0000097B: 00 BRK 0000097C: 00 BRK 0000097D: 33 .DB $33 0000097E: DA .DB $DA 0000097F: 8636 STX $36 00000981: EB .DB $EB 00000982: A562 LDA $62 00000984: 23 .DB $23 00000985: E7 .DB $E7 00000986: AF .DB $AF 00000987: 7A .DB $7A 00000988: 48 PHA 00000989: 19ECC2 ORA $C2EC,Y 0000098C: 9A TXS 0000098D: 7552 ADC $52,X 0000098F: 3011 BMI $11 00000991: F3 .DB $F3 00000992: D7 .DB $D7 00000993: BCA38C LDY $8CA3,X 00000996: 7560 ADC $60,X 00000998: 4C3A28 JMP $283A 0000099B: 17 .DB $17 0000099C: 08 PHP 0000099D: F9EBDD SBC $DDEB,Y 000009A0: D1C5 CMP ($C5),Y 000009A2: BA TSX 000009A3: AF .DB $AF 000009A4: A59C LDA $9C 000009A6: 93 .DB $93 000009A7: 8B .DB $8B 000009A8: 83 .DB $83 000009A9: 7C .DB $7C 000009AA: 756E ADC $6E,X 000009AC: 68 PLA 000009AD: 62 .DB $62 000009AE: 5C .DB $5C 000009AF: 57 .DB $57 000009B0: 52 .DB $52 000009B1: 4D4945 EOR $4549 000009B4: 413D EOR ($3D,X) 000009B6: 3A .DB $3A 000009B7: 3633 ROL $33,X 000009B9: 302D BMI $2D 000009BB: 2B .DB $2B 000009BC: 00 BRK 000009BD: AD4DF2 LDA $F24D 000009C0: 9D4C00 STA $004C,X 000009C3: B8 CLV 000009C4: 74 .DB $74 000009C5: 34 .DB $34 000009C6: F7 .DB $F7 000009C7: BE8856 LDX $5688,Y 000009CA: 26F8 ROL $F8 000009CC: CEA57F DEC $7FA5 000009CF: 5B .DB $5B 000009D0: 3919FB AND $FB19,Y 000009D3: DEC3AA DEC $AAC3,X 000009D6: 92 .DB $92 000009D7: 7B .DB $7B 000009D8: 6652 ROR $52 000009DA: 3F .DB $3F 000009DB: 2D1C0C AND $0C1C 000009DE: FDEEE1 SBC $E1EE,X 000009E1: D4 .DB $D4 000009E2: C8 INY 000009E3: BDB2A8 LDA $A8B2,X 000009E6: 9F .DB $9F 000009E7: 968D STX $8D,Y 000009E9: 857E STA $7E 000009EB: 7670 ROR $70,X 000009ED: 6963 ADC #$63 000009EF: 5E5853 LSR $5358,X 000009F2: 4F .DB $4F 000009F3: 4A LSR A 000009F4: 4642 LSR $42 000009F6: 3E3A37 ROL $373A,X 000009F9: 34 .DB $34 000009FA: 312E AND ($2E),Y 000009FC: 00 BRK 000009FD: 0605 ASL $05 000009FF: 0505 ORA $05 00000A01: 04 .DB $04 00000A02: 04 .DB $04 00000A03: 04 .DB $04 00000A04: 04 .DB $04 00000A05: 03 .DB $03 00000A06: 03 .DB $03 00000A07: 03 .DB $03 00000A08: 03 .DB $03 00000A09: 03 .DB $03 00000A0A: 02 .DB $02 00000A0B: 02 .DB $02 00000A0C: 02 .DB $02 00000A0D: 02 .DB $02 00000A0E: 02 .DB $02 00000A0F: 02 .DB $02 00000A10: 02 .DB $02 00000A11: 0101 ORA ($01,X) 00000A13: 0101 ORA ($01,X) 00000A15: 0101 ORA ($01,X) 00000A17: 0101 ORA ($01,X) 00000A19: 0101 ORA ($01,X) 00000A1B: 0101 ORA ($01,X) 00000A1D: 00 BRK 00000A1E: 00 BRK 00000A1F: 00 BRK 00000A20: 00 BRK 00000A21: 00 BRK 00000A22: 00 BRK 00000A23: 00 BRK 00000A24: 00 BRK 00000A25: 00 BRK 00000A26: 00 BRK 00000A27: 00 BRK 00000A28: 00 BRK 00000A29: 00 BRK 00000A2A: 00 BRK 00000A2B: 00 BRK 00000A2C: 00 BRK 00000A2D: 00 BRK 00000A2E: 00 BRK 00000A2F: 00 BRK 00000A30: 00 BRK 00000A31: 00 BRK 00000A32: 00 BRK 00000A33: 00 BRK 00000A34: 00 BRK 00000A35: 00 BRK 00000A36: 00 BRK 00000A37: 00 BRK 00000A38: 00 BRK 00000A39: 00 BRK 00000A3A: 00 BRK 00000A3B: 00 BRK 00000A3C: 00 BRK 00000A3D: 0606 ASL $06 00000A3F: 0505 ORA $05 00000A41: 0505 ORA $05 00000A43: 04 .DB $04 00000A44: 04 .DB $04 00000A45: 04 .DB $04 00000A46: 03 .DB $03 00000A47: 03 .DB $03 00000A48: 03 .DB $03 00000A49: 03 .DB $03 00000A4A: 03 .DB $03 00000A4B: 02 .DB $02 00000A4C: 02 .DB $02 00000A4D: 02 .DB $02 00000A4E: 02 .DB $02 00000A4F: 02 .DB $02 00000A50: 02 .DB $02 00000A51: 02 .DB $02 00000A52: 0101 ORA ($01,X) 00000A54: 0101 ORA ($01,X) 00000A56: 0101 ORA ($01,X) 00000A58: 0101 ORA ($01,X) 00000A5A: 0101 ORA ($01,X) 00000A5C: 0101 ORA ($01,X) 00000A5E: 00 BRK 00000A5F: 00 BRK 00000A60: 00 BRK 00000A61: 00 BRK 00000A62: 00 BRK 00000A63: 00 BRK 00000A64: 00 BRK 00000A65: 00 BRK 00000A66: 00 BRK 00000A67: 00 BRK 00000A68: 00 BRK 00000A69: 00 BRK 00000A6A: 00 BRK 00000A6B: 00 BRK 00000A6C: 00 BRK 00000A6D: 00 BRK 00000A6E: 00 BRK 00000A6F: 00 BRK 00000A70: 00 BRK 00000A71: 00 BRK 00000A72: 00 BRK 00000A73: 00 BRK 00000A74: 00 BRK 00000A75: 00 BRK 00000A76: 00 BRK 00000A77: 00 BRK 00000A78: 00 BRK 00000A79: 00 BRK 00000A7A: 00 BRK 00000A7B: 00 BRK 00000A7C: 88 DEY 00000A7D: 840B STY $0B 00000A7F: F019 BEQ $19 00000A81: A000 LDY #$00 00000A83: 18 CLC 00000A84: B100 LDA ($00),Y 00000A86: 7500 ADC $00,X 00000A88: C90A CMP #$0A 00000A8A: 9002 BCC $02 00000A8C: E90A SBC #$0A 00000A8E: 9500 STA $00,X 00000A90: E8 INX 00000A91: C8 INY 00000A92: C60B DEC $0B 00000A94: 10EE BPL $EE 00000A96: A900 LDA #$00 00000A98: B0EC BCS $EC 00000A9A: 60 RTS 00000A9B: 8602 STX $02 00000A9D: 98 TYA 00000A9E: 18 CLC 00000A9F: 6502 ADC $02 00000AA1: AA TAX 00000AA2: CA DEX 00000AA3: 88 DEY 00000AA4: 1003 BPL $03 00000AA6: C8 INY 00000AA7: 38 SEC 00000AA8: 60 RTS 00000AA9: B100 LDA ($00),Y 00000AAB: D500 CMP $00,X 00000AAD: F0F3 BEQ $F3 00000AAF: 60 RTS 00000AB0: A9A8 LDA #$A8 00000AB2: 8D0002 STA $0200 00000AB5: A91E LDA #$1E 00000AB7: 8D0102 STA $0201 00000ABA: A20F LDX #$0F 00000ABC: 8A TXA 00000ABD: 9D8F02 STA $028F,X 00000AC0: CA DEX 00000AC1: 10F9 BPL $F9 00000AC3: A9F0 LDA #$F0 00000AC5: 8501 STA $01 00000AC7: A9C8 LDA #$C8 00000AC9: 8500 STA $00 00000ACB: 209EC1 JSR $C19E 00000ACE: A901 LDA #$01 00000AD0: 203BC2 JSR $C23B 00000AD3: A902 LDA #$02 00000AD5: 203BC2 JSR $C23B 00000AD8: A904 LDA #$04 00000ADA: 203BC2 JSR $C23B 00000ADD: A903 LDA #$03 00000ADF: 203BC2 JSR $C23B 00000AE2: A980 LDA #$80 00000AE4: 203BC2 JSR $C23B 00000AE7: A9F0 LDA #$F0 00000AE9: 8501 STA $01 00000AEB: A9E1 LDA #$E1 00000AED: 8500 STA $00 00000AEF: AD0220 LDA $2002 00000AF2: A928 LDA #$28 00000AF4: 8D0620 STA $2006 00000AF7: A900 LDA #$00 00000AF9: 8D0620 STA $2006 00000AFC: A202 LDX #$02 00000AFE: 2092C2 JSR $C292 00000B01: AD0220 LDA $2002 00000B04: A92B LDA #$2B 00000B06: 8D0620 STA $2006 00000B09: A9C0 LDA #$C0 00000B0B: 8D0620 STA $2006 00000B0E: 20B7C3 JSR $C3B7 00000B11: A204 LDX #$04 00000B13: AD0220 LDA $2002 00000B16: A920 LDA #$20 00000B18: 8D0620 STA $2006 00000B1B: A900 LDA #$00 00000B1D: 8D0620 STA $2006 00000B20: 2092C2 JSR $C292 00000B23: AD0220 LDA $2002 00000B26: A923 LDA #$23 00000B28: 8D0620 STA $2006 00000B2B: A9C0 LDA #$C0 00000B2D: 8D0620 STA $2006 00000B30: 20B7C3 JSR $C3B7 00000B33: A900 LDA #$00 00000B35: A200 LDX #$00 00000B37: 2048C1 JSR $C148 00000B3A: A205 LDX #$05 00000B3C: A900 LDA #$00 00000B3E: 9D5202 STA $0252,X 00000B41: CA DEX 00000B42: 10FA BPL $FA 00000B44: A960 LDA #$60 00000B46: 8D3A02 STA $023A 00000B49: A988 LDA #$88 00000B4B: 8D4202 STA $0242 00000B4E: A900 LDA #$00 00000B50: 8D5A02 STA $025A 00000B53: A900 LDA #$00 00000B55: 8D4A02 STA $024A 00000B58: A97F LDA #$7F 00000B5A: 8D3F02 STA $023F 00000B5D: A900 LDA #$00 00000B5F: 8D4702 STA $0247 00000B62: A904 LDA #$04 00000B64: 8D5F02 STA $025F 00000B67: A900 LDA #$00 00000B69: 8D4F02 STA $024F 00000B6C: A9D3 LDA #$D3 00000B6E: 8501 STA $01 00000B70: A9D9 LDA #$D9 00000B72: 8500 STA $00 00000B74: A000 LDY #$00 00000B76: AD0220 LDA $2002 00000B79: A928 LDA #$28 00000B7B: 8D0620 STA $2006 00000B7E: A984 LDA #$84 00000B80: 8D0620 STA $2006 00000B83: 2085C1 JSR $C185 00000B86: AD0220 LDA $2002 00000B89: A928 LDA #$28 00000B8B: 8D0620 STA $2006 00000B8E: A991 LDA #$91 00000B90: 8D0620 STA $2006 00000B93: 2085C1 JSR $C185 00000B96: A9D3 LDA #$D3 00000B98: 8501 STA $01 00000B9A: A9E4 LDA #$E4 00000B9C: 8500 STA $00 00000B9E: A000 LDY #$00 00000BA0: AD0220 LDA $2002 00000BA3: A922 LDA #$22 00000BA5: 8D0620 STA $2006 00000BA8: A92C LDA #$2C 00000BAA: 8D0620 STA $2006 00000BAD: 2085C1 JSR $C185 00000BB0: A9D3 LDA #$D3 00000BB2: 8501 STA $01 00000BB4: A9F6 LDA #$F6 00000BB6: 8500 STA $00 00000BB8: A000 LDY #$00 00000BBA: AD0220 LDA $2002 00000BBD: A922 LDA #$22 00000BBF: 8D0620 STA $2006 00000BC2: A9E0 LDA #$E0 00000BC4: 8D0620 STA $2006 00000BC7: 2085C1 JSR $C185 00000BCA: A2AC LDX #$AC 00000BCC: A0D6 LDY #$D6 00000BCE: AD1F02 LDA $021F 00000BD1: 2980 AND #$80 00000BD3: 200CC4 JSR $C40C 00000BD6: A2D9 LDX #$D9 00000BD8: A0E3 LDY #$E3 00000BDA: 205CC8 JSR $C85C 00000BDD: 60 RTS 00000BDE: AD2102 LDA $0221 00000BE1: 8D2302 STA $0223 00000BE4: A001 LDY #$01 00000BE6: A200 LDX #$00 00000BE8: 8C1640 STY $4016 00000BEB: 8E1640 STX $4016 00000BEE: 8400 STY $00 00000BF0: AD1640 LDA $4016 00000BF3: 2903 AND #$03 00000BF5: C901 CMP #$01 00000BF7: 2600 ROL $00 00000BF9: 90F5 BCC $F5 00000BFB: 8C1640 STY $4016 00000BFE: 8E1640 STX $4016 00000C01: 8401 STY $01 00000C03: AD1640 LDA $4016 00000C06: 2903 AND #$03 00000C08: C901 CMP #$01 00000C0A: 2601 ROL $01 00000C0C: 90F5 BCC $F5 00000C0E: 8C1640 STY $4016 00000C11: 8E1640 STX $4016 00000C14: 8402 STY $02 00000C16: AD1640 LDA $4016 00000C19: 2903 AND #$03 00000C1B: C901 CMP #$01 00000C1D: 2602 ROL $02 00000C1F: 90F5 BCC $F5 00000C21: A500 LDA $00 00000C23: C502 CMP $02 00000C25: F002 BEQ $02 00000C27: A501 LDA $01 00000C29: 8D2102 STA $0221 00000C2C: 4D2302 EOR $0223 00000C2F: 48 PHA 00000C30: 2D2102 AND $0221 00000C33: 8D2502 STA $0225 00000C36: 68 PLA 00000C37: 2D2302 AND $0223 00000C3A: 8D2702 STA $0227 00000C3D: A210 LDX #$10 00000C3F: CA DEX 00000C40: 20F8C1 JSR $C1F8 00000C43: 290F AND #$0F 00000C45: A8 TAY 00000C46: BD8F02 LDA $028F,X 00000C49: 48 PHA 00000C4A: B98F02 LDA $028F,Y 00000C4D: 9D8F02 STA $028F,X 00000C50: 68 PLA 00000C51: 998F02 STA $028F,Y 00000C54: 8A TXA 00000C55: D0E8 BNE $E8 00000C57: AD4702 LDA $0247 00000C5A: C9F0 CMP #$F0 00000C5C: B018 BCS $18 00000C5E: 48 PHA 00000C5F: 38 SEC 00000C60: E978 SBC #$78 00000C62: 1005 BPL $05 00000C64: 49FF EOR #$FF 00000C66: 18 CLC 00000C67: 6901 ADC #$01 00000C69: 4A LSR A 00000C6A: 4A LSR A 00000C6B: 4A LSR A 00000C6C: 4A LSR A 00000C6D: AA TAX 00000C6E: 68 PLA 00000C6F: 38 SEC 00000C70: FD9AD3 SBC $D39A,X 00000C73: 8D4702 STA $0247 00000C76: A900 LDA #$00 00000C78: CD8202 CMP $0282 00000C7B: F019 BEQ $19 00000C7D: AD8B02 LDA $028B 00000C80: CE8B02 DEC $028B 00000C83: D011 BNE $11 00000C85: A900 LDA #$00 00000C87: 8D4202 STA $0242 00000C8A: 8D4302 STA $0243 00000C8D: 8D4402 STA $0244 00000C90: 8D4502 STA $0245 00000C93: 8D4602 STA $0246 00000C96: AD8C02 LDA $028C 00000C99: F005 BEQ $05 00000C9B: CE8C02 DEC $028C 00000C9E: D009 BNE $09 00000CA0: A900 LDA #$00 00000CA2: A206 LDX #$06 00000CA4: 9579 STA $79,X 00000CA6: CA DEX 00000CA7: 10FB BPL $FB 00000CA9: 20ABCC JSR $CCAB 00000CAC: 2025D0 JSR $D025 00000CAF: 208AD0 JSR $D08A 00000CB2: 20A1C2 JSR $C2A1 00000CB5: 20C0C2 JSR $C2C0 00000CB8: 4C7BC3 JMP $C37B 00000CBB: AC8202 LDY $0282 00000CBE: B9CDCC LDA $CCCD,Y 00000CC1: 48 PHA 00000CC2: B9CCCC LDA $CCCC,Y 00000CC5: 48 PHA 00000CC6: 60 RTS 00000CC7: 48 PHA 00000CC8: AD8202 LDA $0282 00000CCB: 8D8302 STA $0283 00000CCE: 68 PLA 00000CCF: 8D8202 STA $0282 00000CD2: A8 TAY 00000CD3: B9D5CC LDA $CCD5,Y 00000CD6: 48 PHA 00000CD7: B9D4CC LDA $CCD4,Y 00000CDA: 48 PHA 00000CDB: 60 RTS 00000CDC: 0A ASL A 00000CDD: CD62CD CMP $CD62 00000CE0: 81CD STA ($CD,X) 00000CE2: 4A LSR A 00000CE3: CEDBCC DEC $CCDB 00000CE6: CCCBCC CPY $CCCB 00000CE9: CB .DB $CB 00000CEA: 8ECDA9 STX $A9CD 00000CED: 0120 ORA ($20,X) 00000CEF: 0DC5A9 ORA $A9C5 00000CF2: 02 .DB $02 00000CF3: A20F LDX #$0F 00000CF5: 2098C8 JSR $C898 00000CF8: A960 LDA #$60 00000CFA: 8D3A02 STA $023A 00000CFD: A998 LDA #$98 00000CFF: 8D4202 STA $0242 00000D02: A200 LDX #$00 00000D04: A980 LDA #$80 00000D06: 209BC3 JSR $C39B 00000D09: A900 LDA #$00 00000D0B: 8D4302 STA $0243 00000D0E: 8D4402 STA $0244 00000D11: 8D4502 STA $0245 00000D14: 8D4602 STA $0246 00000D17: 8D4702 STA $0247 00000D1A: 60 RTS 00000D1B: A900 LDA #$00 00000D1D: A200 LDX #$00 00000D1F: 2048C1 JSR $C148 00000D22: AD2502 LDA $0225 00000D25: C910 CMP #$10 00000D27: D02C BNE $2C 00000D29: A910 LDA #$10 00000D2B: 2C4202 BIT $0242 00000D2E: D014 BNE $14 00000D30: A905 LDA #$05 00000D32: A20F LDX #$0F 00000D34: 2098C8 JSR $C898 00000D37: A900 LDA #$00 00000D39: 20A0C4 JSR $C4A0 00000D3C: 207BCE JSR $CE7B 00000D3F: A906 LDA #$06 00000D41: 4CB7CC JMP $CCB7 00000D44: A903 LDA #$03 00000D46: A20F LDX #$0F 00000D48: 2098C8 JSR $C898 00000D4B: A900 LDA #$00 00000D4D: 200DC5 JSR $C50D 00000D50: A906 LDA #$06 00000D52: 4CB7CC JMP $CCB7 00000D55: AD8302 LDA $0283 00000D58: C900 CMP #$00 00000D5A: F016 BEQ $16 00000D5C: AD2502 LDA $0225 00000D5F: C920 CMP #$20 00000D61: D00F BNE $0F 00000D63: A904 LDA #$04 00000D65: A20F LDX #$0F 00000D67: 2098C8 JSR $C898 00000D6A: AD4202 LDA $0242 00000D6D: 4910 EOR #$10 00000D6F: 8D4202 STA $0242 00000D72: 60 RTS 00000D73: AD8002 LDA $0280 00000D76: 48 PHA 00000D77: A900 LDA #$00 00000D79: 8D7E02 STA $027E 00000D7C: 20A4CF JSR $CFA4 00000D7F: 68 PLA 00000D80: CD8002 CMP $0280 00000D83: F001 BEQ $01 00000D85: 60 RTS 00000D86: A904 LDA #$04 00000D88: CD8302 CMP $0283 00000D8B: D002 BNE $02 00000D8D: A906 LDA #$06 00000D8F: 4CB7CC JMP $CCB7 00000D92: A901 LDA #$01 00000D94: 8D7E02 STA $027E 00000D97: 20A4CF JSR $CFA4 00000D9A: A902 LDA #$02 00000D9C: 4CB7CC JMP $CCB7 00000D9F: A900 LDA #$00 00000DA1: CD8302 CMP $0283 00000DA4: D005 BNE $05 00000DA6: A900 LDA #$00 00000DA8: 8D4202 STA $0242 00000DAB: AD8102 LDA $0281 00000DAE: D02E BNE $2E 00000DB0: AD8002 LDA $0280 00000DB3: F028 BEQ $28 00000DB5: A900 LDA #$00 00000DB7: A20F LDX #$0F 00000DB9: 2098C8 JSR $C898 00000DBC: 20C7CF JSR $CFC7 00000DBF: A900 LDA #$00 00000DC1: 8D8002 STA $0280 00000DC4: 8D8102 STA $0281 00000DC7: 20EBCF JSR $CFEB 00000DCA: F011 BEQ $11 00000DCC: A206 LDX #$06 00000DCE: 2083CF JSR $CF83 00000DD1: A901 LDA #$01 00000DD3: 20A0C4 JSR $C4A0 00000DD6: A906 LDA #$06 00000DD8: A20F LDX #$0F 00000DDA: 2098C8 JSR $C898 00000DDD: 60 RTS 00000DDE: AD4702 LDA $0247 00000DE1: C96F CMP #$6F 00000DE3: 1007 BPL $07 00000DE5: A901 LDA #$01 00000DE7: A20F LDX #$0F 00000DE9: 2098C8 JSR $C898 00000DEC: A900 LDA #$00 00000DEE: 8501 STA $01 00000DF0: A962 LDA #$62 00000DF2: 8500 STA $00 00000DF4: A25C LDX #$5C 00000DF6: A006 LDY #$06 00000DF8: 206CCA JSR $CA6C 00000DFB: A90B LDA #$0B 00000DFD: 8579 STA $79 00000DFF: A900 LDA #$00 00000E01: A205 LDX #$05 00000E03: 957A STA $7A,X 00000E05: CA DEX 00000E06: 10FB BPL $FB 00000E08: 18 CLC 00000E09: A200 LDX #$00 00000E0B: A567 LDA $67 00000E0D: D014 BNE $14 00000E0F: A566 LDA $66 00000E11: D017 BNE $17 00000E13: A565 LDA $65 00000E15: D01A BNE $1A 00000E17: A564 LDA $64 00000E19: D01D BNE $1D 00000E1B: A563 LDA $63 00000E1D: D020 BNE $20 00000E1F: A562 LDA $62 00000E21: 9023 BCC $23 00000E23: 6910 ADC #$10 00000E25: 957A STA $7A,X 00000E27: E8 INX 00000E28: A566 LDA $66 00000E2A: 6910 ADC #$10 00000E2C: 957A STA $7A,X 00000E2E: E8 INX 00000E2F: A565 LDA $65 00000E31: 6910 ADC #$10 00000E33: 957A STA $7A,X 00000E35: E8 INX 00000E36: A564 LDA $64 00000E38: 6910 ADC #$10 00000E3A: 957A STA $7A,X 00000E3C: E8 INX 00000E3D: A563 LDA $63 00000E3F: 6910 ADC #$10 00000E41: 957A STA $7A,X 00000E43: E8 INX 00000E44: A562 LDA $62 00000E46: 6910 ADC #$10 00000E48: 957A STA $7A,X 00000E4A: A900 LDA #$00 00000E4C: A205 LDX #$05 00000E4E: 9562 STA $62,X 00000E50: CA DEX 00000E51: 10FB BPL $FB 00000E53: A950 LDA #$50 00000E55: 8D8C02 STA $028C 00000E58: 4CACCD JMP $CDAC 00000E5B: AD0202 LDA $0202 00000E5E: 0940 ORA #$40 00000E60: 8D0202 STA $0202 00000E63: A9F8 LDA #$F8 00000E65: A200 LDX #$00 00000E67: 2048C1 JSR $C148 00000E6A: AD2502 LDA $0225 00000E6D: 20EFC1 JSR $C1EF 00000E70: 300A BMI $0A 00000E72: 8E7D02 STX $027D 00000E75: A902 LDA #$02 00000E77: 20B7CC JSR $CCB7 00000E7A: 100E BPL $0E 00000E7C: AD2502 LDA $0225 00000E7F: C910 CMP #$10 00000E81: D007 BNE $07 00000E83: A900 LDA #$00 00000E85: 20B7CC JSR $CCB7 00000E88: 1000 BPL $00 00000E8A: 60 RTS 00000E8B: A901 LDA #$01 00000E8D: 8D8D02 STA $028D 00000E90: A900 LDA #$00 00000E92: 8D8C02 STA $028C 00000E95: 8D8402 STA $0284 00000E98: A205 LDX #$05 00000E9A: 955C STA $5C,X 00000E9C: 9562 STA $62,X 00000E9E: 956D STA $6D,X 00000EA0: CA DEX 00000EA1: 10F7 BPL $F7 00000EA3: A205 LDX #$05 00000EA5: 2083CF JSR $CF83 00000EA8: A20F LDX #$0F 00000EAA: A900 LDA #$00 00000EAC: 9D6D02 STA $026D,X 00000EAF: CA DEX 00000EB0: 10FA BPL $FA 00000EB2: 20C7CF JSR $CFC7 00000EB5: 20C7CF JSR $CFC7 00000EB8: A900 LDA #$00 00000EBA: 8D0120 STA $2001 00000EBD: AD0220 LDA $2002 00000EC0: A92B LDA #$2B 00000EC2: 8D0620 STA $2006 00000EC5: A940 LDA #$40 00000EC7: 8D0620 STA $2006 00000ECA: A220 LDX #$20 00000ECC: A900 LDA #$00 00000ECE: 8D0720 STA $2007 00000ED1: CA DEX 00000ED2: D0FA BNE $FA 00000ED4: 60 RTS 00000ED5: 8A TXA 00000ED6: 18 CLC 00000ED7: 6568 ADC $68 00000ED9: A8 TAY 00000EDA: A904 LDA #$04 00000EDC: 8502 STA $02 00000EDE: A903 LDA #$03 00000EE0: 8503 STA $03 00000EE2: A900 LDA #$00 00000EE4: 8D7F02 STA $027F 00000EE7: AD7E02 LDA $027E 00000EEA: F01F BEQ $1F 00000EEC: D034 BNE $34 00000EEE: 98 TYA 00000EEF: 18 CLC 00000EF0: 6568 ADC $68 00000EF2: A8 TAY 00000EF3: 8A TXA 00000EF4: 18 CLC 00000EF5: 6568 ADC $68 00000EF7: AA TAX 00000EF8: C603 DEC $03 00000EFA: D0EB BNE $EB 00000EFC: 98 TYA 00000EFD: 18 CLC 00000EFE: 6569 ADC $69 00000F00: A8 TAY 00000F01: 8A TXA 00000F02: 18 CLC 00000F03: 6569 ADC $69 00000F05: AA TAX 00000F06: C602 DEC $02 00000F08: D0D4 BNE $D4 00000F0A: 60 RTS 00000F0B: BD6D02 LDA $026D,X 00000F0E: D0DE BNE $DE 00000F10: B96D02 LDA $026D,Y 00000F13: F0D9 BEQ $D9 00000F15: EE8002 INC $0280 00000F18: 9D6D02 STA $026D,X 00000F1B: A900 LDA #$00 00000F1D: 996D02 STA $026D,Y 00000F20: F0CC BEQ $CC 00000F22: AD7F02 LDA $027F 00000F25: D0C7 BNE $C7 00000F27: BD6D02 LDA $026D,X 00000F2A: F0C2 BEQ $C2 00000F2C: D96D02 CMP $026D,Y 00000F2F: D0BD BNE $BD 00000F31: C90D CMP #$0D 00000F33: B0B9 BCS $B9 00000F35: 8404 STY $04 00000F37: 8605 STX $05 00000F39: EE7F02 INC $027F 00000F3C: EE8102 INC $0281 00000F3F: 6901 ADC #$01 00000F41: 9D6D02 STA $026D,X 00000F44: 48 PHA 00000F45: CD8402 CMP $0284 00000F48: F015 BEQ $15 00000F4A: 9013 BCC $13 00000F4C: 8D8402 STA $0284 00000F4F: 38 SEC 00000F50: E909 SBC #$09 00000F52: 900B BCC $0B 00000F54: AA TAX 00000F55: 2083CF JSR $CF83 00000F58: A905 LDA #$05 00000F5A: A20F LDX #$0F 00000F5C: 2098C8 JSR $C898 00000F5F: A900 LDA #$00 00000F61: A404 LDY $04 00000F63: 996D02 STA $026D,Y 00000F66: AA TAX 00000F67: 8501 STA $01 00000F69: 68 PLA 00000F6A: 38 SEC 00000F6B: E902 SBC #$02 00000F6D: 0A ASL A 00000F6E: 0A ASL A 00000F6F: 8500 STA $00 00000F71: A9A2 LDA #$A2 00000F73: A0D3 LDY #$D3 00000F75: 20AEC1 JSR $C1AE 00000F78: A262 LDX #$62 00000F7A: A004 LDY #$04 00000F7C: 206CCA JSR $CA6C 00000F7F: A405 LDY $05 00000F81: AE8102 LDX $0281 00000F84: 200CD0 JSR $D00C 00000F87: A981 LDA #$81 00000F89: 209BC3 JSR $C39B 00000F8C: A404 LDY $04 00000F8E: A605 LDX $05 00000F90: 4CDECE JMP $CEDE 00000F93: BDA5D6 LDA $D6A5,X 00000F96: 856B STA $6B 00000F98: BD9ED6 LDA $D69E,X 00000F9B: 856C STA $6C 00000F9D: A000 LDY #$00 00000F9F: 8C8E02 STY $028E 00000FA2: C8 INY 00000FA3: 8C8D02 STY $028D 00000FA6: BDD2D3 LDA $D3D2,X 00000FA9: A205 LDX #$05 00000FAB: 209BC3 JSR $C39B 00000FAE: A9EF LDA #$EF 00000FB0: 8D4702 STA $0247 00000FB3: 60 RTS 00000FB4: AC7D02 LDY $027D 00000FB7: B98AD3 LDA $D38A,Y 00000FBA: 8568 STA $68 00000FBC: B98ED3 LDA $D38E,Y 00000FBF: 8569 STA $69 00000FC1: BE92D3 LDX $D392,Y 00000FC4: 4CC5CE JMP $CEC5 00000FC7: 38 SEC 00000FC8: A20F LDX #$0F 00000FCA: BC8F02 LDY $028F,X 00000FCD: B96D02 LDA $026D,Y 00000FD0: F004 BEQ $04 00000FD2: CA DEX 00000FD3: 10F5 BPL $F5 00000FD5: 18 CLC 00000FD6: 60 RTS 00000FD7: 20B7CF JSR $CFB7 00000FDA: 901E BCC $1E 00000FDC: A201 LDX #$01 00000FDE: 20F8C1 JSR $C1F8 00000FE1: C919 CMP #$19 00000FE3: B002 BCS $02 00000FE5: A202 LDX #$02 00000FE7: 8A TXA 00000FE8: 996D02 STA $026D,Y 00000FEB: A200 LDX #$00 00000FED: 200CD0 JSR $D00C 00000FF0: A981 LDA #$81 00000FF2: 209BC3 JSR $C39B 00000FF5: A904 LDA #$04 00000FF7: 8D8B02 STA $028B 00000FFA: 60 RTS 00000FFB: A20F LDX #$0F 00000FFD: BD6D02 LDA $026D,X 00001000: F019 BEQ $19 00001002: E004 CPX #$04 00001004: 9005 BCC $05 00001006: DD6902 CMP $0269,X 00001009: F010 BEQ $10 0000100B: 8A TXA 0000100C: 2903 AND #$03 0000100E: F008 BEQ $08 00001010: BD6D02 LDA $026D,X 00001013: DD6C02 CMP $026C,X 00001016: F003 BEQ $03 00001018: CA DEX 00001019: 10E2 BPL $E2 0000101B: 60 RTS 0000101C: 98 TYA 0000101D: 2903 AND #$03 0000101F: 0A ASL A 00001020: 0A ASL A 00001021: 0A ASL A 00001022: 0A ASL A 00001023: 0A ASL A 00001024: 694C ADC #$4C 00001026: 9D3A02 STA $023A,X 00001029: 98 TYA 0000102A: 290C AND #$0C 0000102C: 0A ASL A 0000102D: 0A ASL A 0000102E: 0A ASL A 0000102F: 6943 ADC #$43 00001031: 9D4202 STA $0242,X 00001034: 60 RTS 00001035: 18 CLC 00001036: A200 LDX #$00 00001038: A561 LDA $61 0000103A: D014 BNE $14 0000103C: A560 LDA $60 0000103E: D017 BNE $17 00001040: A55F LDA $5F 00001042: D01A BNE $1A 00001044: A55E LDA $5E 00001046: D01D BNE $1D 00001048: A55D LDA $5D 0000104A: D020 BNE $20 0000104C: A55C LDA $5C 0000104E: 9023 BCC $23 00001050: 6910 ADC #$10 00001052: 956D STA $6D,X 00001054: E8 INX 00001055: A560 LDA $60 00001057: 6910 ADC #$10 00001059: 956D STA $6D,X 0000105B: E8 INX 0000105C: A55F LDA $5F 0000105E: 6910 ADC #$10 00001060: 956D STA $6D,X 00001062: E8 INX 00001063: A55E LDA $5E 00001065: 6910 ADC #$10 00001067: 956D STA $6D,X 00001069: E8 INX 0000106A: A55D LDA $5D 0000106C: 6910 ADC #$10 0000106E: 956D STA $6D,X 00001070: E8 INX 00001071: A55C LDA $5C 00001073: 6910 ADC #$10 00001075: 956D STA $6D,X 00001077: A902 LDA #$02 00001079: 8501 STA $01 0000107B: A985 LDA #$85 0000107D: 8500 STA $00 0000107F: A25C LDX #$5C 00001081: A006 LDY #$06 00001083: 208BCA JSR $CA8B 00001086: F003 BEQ $03 00001088: 9001 BCC $01 0000108A: 60 RTS 0000108B: A205 LDX #$05 0000108D: B55C LDA $5C,X 0000108F: 9D8502 STA $0285,X 00001092: B56D LDA $6D,X 00001094: 9573 STA $73,X 00001096: CA DEX 00001097: 10F4 BPL $F4 00001099: 60 RTS 0000109A: AD3002 LDA $0230 0000109D: 8500 STA $00 0000109F: A20F LDX #$0F 000010A1: BD6D02 LDA $026D,X 000010A4: A8 TAY 000010A5: 0A ASL A 000010A6: 0A ASL A 000010A7: 0A ASL A 000010A8: 6500 ADC $00 000010AA: 950C STA $0C,X 000010AC: 6904 ADC #$04 000010AE: 951C STA $1C,X 000010B0: 98 TYA 000010B1: 2903 AND #$03 000010B3: A8 TAY 000010B4: B996D3 LDA $D396,Y 000010B7: 954C STA $4C,X 000010B9: CA DEX 000010BA: 10E5 BPL $E5 000010BC: A20F LDX #$0F 000010BE: 18 CLC 000010BF: A500 LDA $00 000010C1: 6970 ADC #$70 000010C3: 8500 STA $00 000010C5: BD6D02 LDA $026D,X 000010C8: F002 BEQ $02 000010CA: A906 LDA #$06 000010CC: 6500 ADC $00 000010CE: 952C STA $2C,X 000010D0: 6903 ADC #$03 000010D2: 953C STA $3C,X 000010D4: CA DEX 000010D5: 10EE BPL $EE 000010D7: 60 RTS 000010D8: B60C LDX $0C,Y 000010DA: C8 INY 000010DB: 8E0720 STX $2007 000010DE: E8 INX 000010DF: 8E0720 STX $2007 000010E2: E8 INX 000010E3: 8E0720 STX $2007 000010E6: E8 INX 000010E7: 8E0720 STX $2007 000010EA: B60C LDX $0C,Y 000010EC: C8 INY 000010ED: 8E0720 STX $2007 000010F0: E8 INX 000010F1: 8E0720 STX $2007 000010F4: E8 INX 000010F5: 8E0720 STX $2007 000010F8: E8 INX 000010F9: 8E0720 STX $2007 000010FC: B60C LDX $0C,Y 000010FE: C8 INY 000010FF: 8E0720 STX $2007 00001102: E8 INX 00001103: 8E0720 STX $2007 00001106: E8 INX 00001107: 8E0720 STX $2007 0000110A: E8 INX 0000110B: 8E0720 STX $2007 0000110E: B60C LDX $0C,Y 00001110: C8 INY 00001111: 8E0720 STX $2007 00001114: E8 INX 00001115: 8E0720 STX $2007 00001118: E8 INX 00001119: 8E0720 STX $2007 0000111C: E8 INX 0000111D: 8E0720 STX $2007 00001120: 60 RTS 00001121: B60C LDX $0C,Y 00001123: C8 INY 00001124: 8E0720 STX $2007 00001127: E8 INX 00001128: 8E0720 STX $2007 0000112B: 8E0720 STX $2007 0000112E: E8 INX 0000112F: 8E0720 STX $2007 00001132: B60C LDX $0C,Y 00001134: C8 INY 00001135: 8E0720 STX $2007 00001138: E8 INX 00001139: 8E0720 STX $2007 0000113C: 8E0720 STX $2007 0000113F: E8 INX 00001140: 8E0720 STX $2007 00001143: B60C LDX $0C,Y 00001145: C8 INY 00001146: 8E0720 STX $2007 00001149: E8 INX 0000114A: 8E0720 STX $2007 0000114D: 8E0720 STX $2007 00001150: E8 INX 00001151: 8E0720 STX $2007 00001154: B60C LDX $0C,Y 00001156: C8 INY 00001157: 8E0720 STX $2007 0000115A: E8 INX 0000115B: 8E0720 STX $2007 0000115E: 8E0720 STX $2007 00001161: E8 INX 00001162: 8E0720 STX $2007 00001165: 60 RTS 00001166: A900 LDA #$00 00001168: CD8202 CMP $0282 0000116B: D020 BNE $20 0000116D: CD8302 CMP $0283 00001170: F01A BEQ $1A 00001172: A9D3 LDA #$D3 00001174: 8501 STA $01 00001176: A9ED LDA #$ED 00001178: 8500 STA $00 0000117A: A000 LDY #$00 0000117C: AD0220 LDA $2002 0000117F: A922 LDA #$22 00001181: 8D0620 STA $2006 00001184: A96C LDA #$6C 00001186: 8D0620 STA $2006 00001189: 2085C1 JSR $C185 0000118C: 60 RTS 0000118D: A56A LDA $6A 0000118F: 4980 EOR #$80 00001191: 856A STA $6A 00001193: 3003 BMI $03 00001195: 4C84D2 JMP $D284 00001198: A928 LDA #$28 0000119A: 8D0620 STA $2006 0000119D: A98A LDA #$8A 0000119F: 8D0620 STA $2006 000011A2: A56D LDA $6D 000011A4: 8D0720 STA $2007 000011A7: A56E LDA $6E 000011A9: 8D0720 STA $2007 000011AC: A56F LDA $6F 000011AE: 8D0720 STA $2007 000011B1: A570 LDA $70 000011B3: 8D0720 STA $2007 000011B6: A571 LDA $71 000011B8: 8D0720 STA $2007 000011BB: A572 LDA $72 000011BD: 8D0720 STA $2007 000011C0: A928 LDA #$28 000011C2: 8D0620 STA $2006 000011C5: A9AA LDA #$AA 000011C7: 8D0620 STA $2006 000011CA: A579 LDA $79 000011CC: 8D0720 STA $2007 000011CF: A57A LDA $7A 000011D1: 8D0720 STA $2007 000011D4: A57B LDA $7B 000011D6: 8D0720 STA $2007 000011D9: A57C LDA $7C 000011DB: 8D0720 STA $2007 000011DE: A57D LDA $7D 000011E0: 8D0720 STA $2007 000011E3: A57E LDA $7E 000011E5: 8D0720 STA $2007 000011E8: A92B LDA #$2B 000011EA: 8D0620 STA $2006 000011ED: A9D2 LDA #$D2 000011EF: 8D0620 STA $2006 000011F2: A54C LDA $4C 000011F4: 8D0720 STA $2007 000011F7: A54D LDA $4D 000011F9: 8D0720 STA $2007 000011FC: A54E LDA $4E 000011FE: 8D0720 STA $2007 00001201: A54F LDA $4F 00001203: 8D0720 STA $2007 00001206: A92B LDA #$2B 00001208: 8D0620 STA $2006 0000120B: A9DA LDA #$DA 0000120D: 8D0620 STA $2006 00001210: A550 LDA $50 00001212: 8D0720 STA $2007 00001215: A551 LDA $51 00001217: 8D0720 STA $2007 0000121A: A552 LDA $52 0000121C: 8D0720 STA $2007 0000121F: A553 LDA $53 00001221: 8D0720 STA $2007 00001224: A000 LDY #$00 00001226: A929 LDA #$29 00001228: 8D0620 STA $2006 0000122B: A928 LDA #$28 0000122D: 8D0620 STA $2006 00001230: 20C8D0 JSR $D0C8 00001233: A929 LDA #$29 00001235: 8D0620 STA $2006 00001238: A9A8 LDA #$A8 0000123A: 8D0620 STA $2006 0000123D: 20C8D0 JSR $D0C8 00001240: A010 LDY #$10 00001242: A929 LDA #$29 00001244: 8D0620 STA $2006 00001247: A948 LDA #$48 00001249: 8D0620 STA $2006 0000124C: 20C8D0 JSR $D0C8 0000124F: A929 LDA #$29 00001251: 8D0620 STA $2006 00001254: A9C8 LDA #$C8 00001256: 8D0620 STA $2006 00001259: 20C8D0 JSR $D0C8 0000125C: A020 LDY #$20 0000125E: A929 LDA #$29 00001260: 8D0620 STA $2006 00001263: A908 LDA #$08 00001265: 8D0620 STA $2006 00001268: 2011D1 JSR $D111 0000126B: A929 LDA #$29 0000126D: 8D0620 STA $2006 00001270: A988 LDA #$88 00001272: 8D0620 STA $2006 00001275: 2011D1 JSR $D111 00001278: A030 LDY #$30 0000127A: A929 LDA #$29 0000127C: 8D0620 STA $2006 0000127F: A968 LDA #$68 00001281: 8D0620 STA $2006 00001284: 2011D1 JSR $D111 00001287: A929 LDA #$29 00001289: 8D0620 STA $2006 0000128C: A9E8 LDA #$E8 0000128E: 8D0620 STA $2006 00001291: 4C11D1 JMP $D111 00001294: A928 LDA #$28 00001296: 8D0620 STA $2006 00001299: A996 LDA #$96 0000129B: 8D0620 STA $2006 0000129E: A573 LDA $73 000012A0: 8D0720 STA $2007 000012A3: A574 LDA $74 000012A5: 8D0720 STA $2007 000012A8: A575 LDA $75 000012AA: 8D0720 STA $2007 000012AD: A576 LDA $76 000012AF: 8D0720 STA $2007 000012B2: A577 LDA $77 000012B4: 8D0720 STA $2007 000012B7: A578 LDA $78 000012B9: 8D0720 STA $2007 000012BC: 205BD3 JSR $D35B 000012BF: A92B LDA #$2B 000012C1: 8D0620 STA $2006 000012C4: A9E2 LDA #$E2 000012C6: 8D0620 STA $2006 000012C9: A554 LDA $54 000012CB: 8D0720 STA $2007 000012CE: A555 LDA $55 000012D0: 8D0720 STA $2007 000012D3: A556 LDA $56 000012D5: 8D0720 STA $2007 000012D8: A557 LDA $57 000012DA: 8D0720 STA $2007 000012DD: A92B LDA #$2B 000012DF: 8D0620 STA $2006 000012E2: A9EA LDA #$EA 000012E4: 8D0620 STA $2006 000012E7: A558 LDA $58 000012E9: 8D0720 STA $2007 000012EC: A559 LDA $59 000012EE: 8D0720 STA $2007 000012F1: A55A LDA $5A 000012F3: 8D0720 STA $2007 000012F6: A55B LDA $5B 000012F8: 8D0720 STA $2007 000012FB: A008 LDY #$08 000012FD: A92A LDA #$2A 000012FF: 8D0620 STA $2006 00001302: A928 LDA #$28 00001304: 8D0620 STA $2006 00001307: 20C8D0 JSR $D0C8 0000130A: A92A LDA #$2A 0000130C: 8D0620 STA $2006 0000130F: A9A8 LDA #$A8 00001311: 8D0620 STA $2006 00001314: 20C8D0 JSR $D0C8 00001317: A018 LDY #$18 00001319: A92A LDA #$2A 0000131B: 8D0620 STA $2006 0000131E: A948 LDA #$48 00001320: 8D0620 STA $2006 00001323: 20C8D0 JSR $D0C8 00001326: A92A LDA #$2A 00001328: 8D0620 STA $2006 0000132B: A9C8 LDA #$C8 0000132D: 8D0620 STA $2006 00001330: 20C8D0 JSR $D0C8 00001333: A028 LDY #$28 00001335: A92A LDA #$2A 00001337: 8D0620 STA $2006 0000133A: A908 LDA #$08 0000133C: 8D0620 STA $2006 0000133F: 2011D1 JSR $D111 00001342: A92A LDA #$2A 00001344: 8D0620 STA $2006 00001347: A988 LDA #$88 00001349: 8D0620 STA $2006 0000134C: 2011D1 JSR $D111 0000134F: A038 LDY #$38 00001351: A92A LDA #$2A 00001353: 8D0620 STA $2006 00001356: A968 LDA #$68 00001358: 8D0620 STA $2006 0000135B: 2011D1 JSR $D111 0000135E: A92A LDA #$2A 00001360: 8D0620 STA $2006 00001363: A9E8 LDA #$E8 00001365: 8D0620 STA $2006 00001368: 4C11D1 JMP $D111 0000136B: A000 LDY #$00 0000136D: B16B LDA ($6B),Y 0000136F: AA TAX 00001370: AD8E02 LDA $028E 00001373: 291F AND #$1F 00001375: D005 BNE $05 00001377: CE8D02 DEC $028D 0000137A: D01D BNE $1D 0000137C: A02B LDY #$2B 0000137E: 8C0620 STY $2006 00001381: 0940 ORA #$40 00001383: 8D0620 STA $2006 00001386: 8A TXA 00001387: 18 CLC 00001388: 1001 BPL $01 0000138A: 0A ASL A 0000138B: 8D0720 STA $2007 0000138E: EE8E02 INC $028E 00001391: B006 BCS $06 00001393: E66B INC $6B 00001395: D002 BNE $02 00001397: E66C INC $6C 00001399: 60 RTS 0000139A: 04 .DB $04 0000139B: FC .DB $FC 0000139C: 01FF ORA ($FF,X) 0000139E: F50B SBC $0B,X 000013A0: 01FF ORA ($FF,X) 000013A2: 00 BRK 000013A3: 0F .DB $0F 000013A4: 00 BRK 000013A5: 0F .DB $0F 000013A6: 00 BRK 000013A7: 55AA EOR $AA,X 000013A9: FF .DB $FF 000013AA: 0101 ORA ($01,X) 000013AC: 0102 ORA ($02,X) 000013AE: 03 .DB $03 000013AF: 04 .DB $04 000013B0: 0608 ASL $08 000013B2: 04 .DB $04 000013B3: 00 BRK 000013B4: 00 BRK 000013B5: 00 BRK 000013B6: 08 PHP 000013B7: 00 BRK 000013B8: 00 BRK 000013B9: 00 BRK 000013BA: 0601 ASL $01 000013BC: 00 BRK 000013BD: 00 BRK 000013BE: 02 .DB $02 000013BF: 03 .DB $03 000013C0: 00 BRK 000013C1: 00 BRK 000013C2: 04 .DB $04 000013C3: 0600 ASL $00 000013C5: 00 BRK 000013C6: 08 PHP 000013C7: 02 .DB $02 000013C8: 0100 ORA ($00,X) 000013CA: 0605 ASL $05 000013CC: 02 .DB $02 000013CD: 00 BRK 000013CE: 02 .DB $02 000013CF: 0105 ORA ($05,X) 000013D1: 00 BRK 000013D2: 04 .DB $04 000013D3: 02 .DB $02 000013D4: 00 BRK 000013D5: 0108 ORA ($08,X) 000013D7: 04 .DB $04 000013D8: 00 BRK 000013D9: 02 .DB $02 000013DA: 0609 ASL $09 000013DC: 00 BRK 000013DD: 04 .DB $04 000013DE: 02 .DB $02 000013DF: 0901 ORA #$01 000013E1: 08 PHP 000013E2: 82 .DB $82 000013E3: 83 .DB $83 000013E4: 8484 STY $84 000013E6: 8486 STY $86 000013E8: 8505 STA $05 000013EA: 33 .DB $33 000013EB: 23 .DB $23 000013EC: 2F .DB $2F 000013ED: 32 .DB $32 000013EE: 2504 AND $04 000013F0: 28 PLP 000013F1: 2927 AND #$27 000013F3: 28 PLP 000013F4: 08 PHP 000013F5: 2E2537 ROL $3725 000013F8: 00 BRK 000013F9: 27 .DB $27 000013FA: 212D AND ($2D,X) 000013FC: 2508 AND $08 000013FE: 23 .DB $23 000013FF: 2F .DB $2F 00001400: 2E3429 ROL $2934 00001403: 2E3525 ROL $2535 00001406: A000 LDY #$00 00001408: 00 BRK 00001409: 00 BRK 0000140A: 00 BRK 0000140B: 00 BRK 0000140C: 00 BRK 0000140D: 00 BRK 0000140E: 00 BRK 0000140F: 00 BRK 00001410: 08 PHP 00001411: 23 .DB $23 00001412: 0900 ORA #$00 00001414: 12 .DB $12 00001415: 1011 BPL $11 00001417: 14 .DB $14 00001418: 00 BRK 00001419: 34 .DB $34 0000141A: 33 .DB $33 0000141B: 2F .DB $2F 0000141C: 2E2500 ROL $0025 0000141F: 00 BRK 00001420: 00 BRK 00001421: 00 BRK 00001422: 00 BRK 00001423: 00 BRK 00001424: 00 BRK 00001425: 00 BRK 00001426: 00 BRK 00001427: 00 BRK 00001428: 00 BRK 00001429: 00 BRK 0000142A: 00 BRK 0000142B: 00 BRK 0000142C: 00 BRK 0000142D: 00 BRK 0000142E: 00 BRK 0000142F: 00 BRK 00001430: 00 BRK 00001431: 00 BRK 00001432: 00 BRK 00001433: 00 BRK 00001434: 00 BRK 00001435: 00 BRK 00001436: 00 BRK 00001437: 00 BRK 00001438: 00 BRK 00001439: 00 BRK 0000143A: 00 BRK 0000143B: 00 BRK 0000143C: 00 BRK 0000143D: 00 BRK 0000143E: 00 BRK 0000143F: 00 BRK 00001440: 00 BRK 00001441: 00 BRK 00001442: 00 BRK 00001443: 00 BRK 00001444: 00 BRK 00001445: 00 BRK 00001446: 00 BRK 00001447: 00 BRK 00001448: 00 BRK 00001449: 2F .DB $2F 0000144A: 32 .DB $32 0000144B: 2927 AND #$27 0000144D: 292E AND #$2E 0000144F: 212C AND ($2C,X) 00001451: 00 BRK 00001452: 22 .DB $22 00001453: 390027 AND $2700,Y 00001456: 2122 AND ($22,X) 00001458: 32 .DB $32 00001459: 2925 AND #$25 0000145B: 2C2500 BIT $0025 0000145E: 23 .DB $23 0000145F: 2932 AND #$32 00001461: 352C AND $2C,X 00001463: 2C2900 BIT $0029 00001466: 00 BRK 00001467: 00 BRK 00001468: 00 BRK 00001469: 00 BRK 0000146A: 262F ROL $2F 0000146C: 2E3400 ROL $0034 0000146F: 212E AND ($2E,X) 00001471: 2400 BIT $00 00001473: 34 .DB $34 00001474: 292C AND #$2C 00001476: 2533 AND $33 00001478: 00 BRK 00001479: 22 .DB $22 0000147A: 39002F AND $2F00,Y 0000147D: 2532 AND $32 0000147F: 27 .DB $27 00001480: 18 CLC 00001481: 1616 ASL $16,X 00001483: 00 BRK 00001484: 00 BRK 00001485: 00 BRK 00001486: 00 BRK 00001487: 00 BRK 00001488: 00 BRK 00001489: 00 BRK 0000148A: 00 BRK 0000148B: 00 BRK 0000148C: 00 BRK 0000148D: 00 BRK 0000148E: 2621 ROL $21 00001490: 2D2934 AND $3429 00001493: 2F .DB $2F 00001494: 2E2512 ROL $1225 00001497: 00 BRK 00001498: 22 .DB $22 00001499: 390033 AND $3300,Y 0000149C: 28 PLP 0000149D: 2932 AND #$32 0000149F: 3500 AND $00,X 000014A1: 00 BRK 000014A2: 00 BRK 000014A3: 00 BRK 000014A4: 00 BRK 000014A5: 00 BRK 000014A6: 00 BRK 000014A7: 00 BRK 000014A8: 00 BRK 000014A9: 00 BRK 000014AA: 00 BRK 000014AB: 00 BRK 000014AC: 00 BRK 000014AD: 00 BRK 000014AE: 00 BRK 000014AF: 34 .DB $34 000014B0: 32 .DB $32 000014B1: 390034 AND $3400,Y 000014B4: 2F .DB $2F 000014B5: 00 BRK 000014B6: 27 .DB $27 000014B7: 2534 AND $34 000014B9: 00 BRK 000014BA: 12 .DB $12 000014BB: 1014 BPL $14 000014BD: 18 CLC 000014BE: 0E0000 ASL $0000 000014C1: 00 BRK 000014C2: 00 BRK 000014C3: 00 BRK 000014C4: 00 BRK 000014C5: 00 BRK 000014C6: 00 BRK 000014C7: 00 BRK 000014C8: 00 BRK 000014C9: 00 BRK 000014CA: 00 BRK 000014CB: 00 BRK 000014CC: 00 BRK 000014CD: 00 BRK 000014CE: 00 BRK 000014CF: 00 BRK 000014D0: 392F35 AND $352F,Y 000014D3: 00 BRK 000014D4: 23 .DB $23 000014D5: 212E AND ($2E,X) 000014D7: 00 BRK 000014D8: 242F BIT $2F 000014DA: 00 BRK 000014DB: 2934 AND #$34 000014DD: 0E0000 ASL $0000 000014E0: 00 BRK 000014E1: 00 BRK 000014E2: 00 BRK 000014E3: 00 BRK 000014E4: 00 BRK 000014E5: 00 BRK 000014E6: 00 BRK 000014E7: 80 .DB $80 000014E8: 00 BRK 000014E9: 00 BRK 000014EA: 00 BRK 000014EB: 00 BRK 000014EC: 00 BRK 000014ED: 00 BRK 000014EE: 00 BRK 000014EF: 00 BRK 000014F0: 00 BRK 000014F1: 00 BRK 000014F2: 392F35 AND $352F,Y 000014F5: 00 BRK 000014F6: 27 .DB $27 000014F7: 2F .DB $2F 000014F8: 34 .DB $34 000014F9: 00 BRK 000014FA: 1511 ORA $11,X 000014FC: 12 .DB $12 000014FD: 0100 ORA ($00,X) 000014FF: 00 BRK 00001500: 00 BRK 00001501: 00 BRK 00001502: 00 BRK 00001503: 00 BRK 00001504: 00 BRK 00001505: 00 BRK 00001506: 00 BRK 00001507: 00 BRK 00001508: 80 .DB $80 00001509: 00 BRK 0000150A: 00 BRK 0000150B: 00 BRK 0000150C: 00 BRK 0000150D: 00 BRK 0000150E: 00 BRK 0000150F: 00 BRK 00001510: 2E2923 ROL $2329 00001513: 2501 AND $01 00001515: 00 BRK 00001516: 392F35 AND $352F,Y 00001519: 00 BRK 0000151A: 27 .DB $27 0000151B: 2F .DB $2F 0000151C: 34 .DB $34 0000151D: 00 BRK 0000151E: 1110 ORA ($10),Y 00001520: 12 .DB $12 00001521: 14 .DB $14 00001522: 0E0000 ASL $0000 00001525: 00 BRK 00001526: 00 BRK 00001527: 00 BRK 00001528: 00 BRK 00001529: 00 BRK 0000152A: 00 BRK 0000152B: 00 BRK 0000152C: 00 BRK 0000152D: 00 BRK 0000152E: 00 BRK 0000152F: 00 BRK 00001530: 23 .DB $23 00001531: 2F .DB $2F 00001532: 2E3429 ROL $2934 00001535: 2E3525 ROL $2535 00001538: 00 BRK 00001539: 262F ROL $2F 0000153B: 32 .DB $32 0000153C: 00 BRK 0000153D: 12 .DB $12 0000153E: 1014 BPL $14 00001540: 18 CLC 00001541: 0E0000 ASL $0000 00001544: 00 BRK 00001545: 00 BRK 00001546: 00 BRK 00001547: 00 BRK 00001548: 00 BRK 00001549: 80 .DB $80 0000154A: 00 BRK 0000154B: 00 BRK 0000154C: 00 BRK 0000154D: 00 BRK 0000154E: 00 BRK 0000154F: 2137 AND ($37,X) 00001551: 2533 AND $33 00001553: 2F .DB $2F 00001554: 2D2501 AND $0125 00001557: 00 BRK 00001558: 392F35 AND $352F,Y 0000155B: 00 BRK 0000155C: 27 .DB $27 0000155D: 2F .DB $2F 0000155E: 34 .DB $34 0000155F: 00 BRK 00001560: 12 .DB $12 00001561: 1014 BPL $14 00001563: 18 CLC 00001564: 0100 ORA ($00,X) 00001566: 00 BRK 00001567: 00 BRK 00001568: 00 BRK 00001569: 00 BRK 0000156A: 00 BRK 0000156B: 00 BRK 0000156C: 00 BRK 0000156D: 00 BRK 0000156E: 00 BRK 0000156F: 00 BRK 00001570: 00 BRK 00001571: 00 BRK 00001572: 23 .DB $23 00001573: 2F .DB $2F 00001574: 2E2732 ROL $3227 00001577: 2134 AND ($34,X) 00001579: 352C AND $2C,X 0000157B: 2134 AND ($34,X) 0000157D: 292F AND #$2F 0000157F: 2E3301 ROL $0133 00001582: 00 BRK 00001583: 00 BRK 00001584: 00 BRK 00001585: 00 BRK 00001586: 00 BRK 00001587: 00 BRK 00001588: 00 BRK 00001589: 00 BRK 0000158A: 00 BRK 0000158B: 00 BRK 0000158C: 00 BRK 0000158D: 00 BRK 0000158E: 00 BRK 0000158F: 00 BRK 00001590: 392F35 AND $352F,Y 00001593: 07 .DB $07 00001594: 3625 ROL $25,X 00001596: 00 BRK 00001597: 22 .DB $22 00001598: 2521 AND $21 0000159A: 34 .DB $34 0000159B: 00 BRK 0000159C: 34 .DB $34 0000159D: 28 PLP 0000159E: 2500 AND $00 000015A0: 27 .DB $27 000015A1: 212D AND ($2D,X) 000015A3: 250E AND $0E 000015A5: 00 BRK 000015A6: 00 BRK 000015A7: 00 BRK 000015A8: 00 BRK 000015A9: 00 BRK 000015AA: 00 BRK 000015AB: 00 BRK 000015AC: 00 BRK 000015AD: 00 BRK 000015AE: 23 .DB $23 000015AF: 2F .DB $2F 000015B0: 2E3429 ROL $2934 000015B3: 2E3525 ROL $2535 000015B6: 00 BRK 000015B7: 262F ROL $2F 000015B9: 32 .DB $32 000015BA: 00 BRK 000015BB: 28 PLP 000015BC: 2927 AND #$27 000015BE: 28 PLP 000015BF: 00 BRK 000015C0: 33 .DB $33 000015C1: 23 .DB $23 000015C2: 2F .DB $2F 000015C3: 32 .DB $32 000015C4: 250E AND $0E 000015C6: 00 BRK 000015C7: 00 BRK 000015C8: 00 BRK 000015C9: 00 BRK 000015CA: 80 .DB $80 000015CB: 00 BRK 000015CC: 00 BRK 000015CD: 00 BRK 000015CE: 00 BRK 000015CF: 00 BRK 000015D0: 00 BRK 000015D1: 00 BRK 000015D2: 292D AND #$2D 000015D4: 3032 BMI $32 000015D6: 2533 AND $33 000015D8: 33 .DB $33 000015D9: 2936 AND #$36 000015DB: 2501 AND $01 000015DD: 0100 ORA ($00,X) 000015DF: 14 .DB $14 000015E0: 1019 BPL $19 000015E2: 1601 ASL $01,X 000015E4: 00 BRK 000015E5: 00 BRK 000015E6: 00 BRK 000015E7: 00 BRK 000015E8: 00 BRK 000015E9: 00 BRK 000015EA: 00 BRK 000015EB: 00 BRK 000015EC: 00 BRK 000015ED: 00 BRK 000015EE: 00 BRK 000015EF: 0E0E0E ASL $0E0E 000015F2: 22 .DB $22 000015F3: 3534 AND $34,X 000015F5: 00 BRK 000015F6: 23 .DB $23 000015F7: 212E AND ($2E,X) 000015F9: 00 BRK 000015FA: 392F35 AND $352F,Y 000015FD: 00 BRK 000015FE: 27 .DB $27 000015FF: 2534 AND $34 00001601: 00 BRK 00001602: 18 CLC 00001603: 1119 ORA ($19),Y 00001605: 12 .DB $12 00001606: 1F .DB $1F 00001607: 00 BRK 00001608: 00 BRK 00001609: 00 BRK 0000160A: 00 BRK 0000160B: 80 .DB $80 0000160C: 00 BRK 0000160D: 00 BRK 0000160E: 18 CLC 0000160F: 1119 ORA ($19),Y 00001611: 12 .DB $12 00001612: 0101 ORA ($01,X) 00001614: 0100 ORA ($00,X) 00001616: 392F35 AND $352F,Y 00001619: 00 BRK 0000161A: 2D3533 AND $3335 0000161D: 34 .DB $34 0000161E: 00 BRK 0000161F: 22 .DB $22 00001620: 2500 AND $00 00001622: 2B .DB $2B 00001623: 2924 AND #$24 00001625: 2429 BIT $29 00001627: 2E270E ROL $0E27 0000162A: 00 BRK 0000162B: 00 BRK 0000162C: 00 BRK 0000162D: 00 BRK 0000162E: 00 BRK 0000162F: 18 CLC 00001630: 1119 ORA ($19),Y 00001632: 12 .DB $12 00001633: 00 BRK 00001634: 2933 AND #$33 00001636: 00 BRK 00001637: 34 .DB $34 00001638: 28 PLP 00001639: 2500 AND $00 0000163B: 2D2138 AND $3821 0000163E: 292D AND #$2D 00001640: 352D AND $2D,X 00001642: 00 BRK 00001643: 22 .DB $22 00001644: 2C2F23 BIT $232F 00001647: 2B .DB $2B 00001648: 0E0000 ASL $0000 0000164B: 00 BRK 0000164C: 00 BRK 0000164D: 00 BRK 0000164E: 00 BRK 0000164F: 00 BRK 00001650: 23 .DB $23 00001651: 2F .DB $2F 00001652: 2E3429 ROL $2934 00001655: 2E3525 ROL $2535 00001658: 00 BRK 00001659: 262F ROL $2F 0000165B: 32 .DB $32 0000165C: 00 BRK 0000165D: 2D2F32 AND $322F 00001660: 2500 AND $00 00001662: 302F BMI $2F 00001664: 292E AND #$2E 00001666: 34 .DB $34 00001667: 33 .DB $33 00001668: 0E0000 ASL $0000 0000166B: 00 BRK 0000166C: 80 .DB $80 0000166D: 00 BRK 0000166E: 00 BRK 0000166F: 00 BRK 00001670: 00 BRK 00001671: 00 BRK 00001672: 00 BRK 00001673: 33 .DB $33 00001674: 2F .DB $2F 00001675: 32 .DB $32 00001676: 32 .DB $32 00001677: 390100 AND $0001,Y 0000167A: 2F .DB $2F 0000167B: 3534 AND $34,X 0000167D: 00 BRK 0000167E: 2F .DB $2F 0000167F: 2600 ROL $00 00001681: 2D2F36 AND $362F 00001684: 2533 AND $33 00001686: 0100 ORA ($00,X) 00001688: 00 BRK 00001689: 00 BRK 0000168A: 00 BRK 0000168B: 00 BRK 0000168C: 00 BRK 0000168D: 00 BRK 0000168E: 00 BRK 0000168F: 00 BRK 00001690: 00 BRK 00001691: 3032 BMI $32 00001693: 2533 AND $33 00001695: 33 .DB $33 00001696: 00 BRK 00001697: 33 .DB $33 00001698: 34 .DB $34 00001699: 2132 AND ($32,X) 0000169B: 34 .DB $34 0000169C: 00 BRK 0000169D: 262F ROL $2F 0000169F: 32 .DB $32 000016A0: 00 BRK 000016A1: 2E2537 ROL $3725 000016A4: 00 BRK 000016A5: 27 .DB $27 000016A6: 212D AND ($2D,X) 000016A8: 250E AND $0E 000016AA: 00 BRK 000016AB: 00 BRK 000016AC: 00 BRK 000016AD: 80 .DB $80 000016AE: D4 .DB $D4 000016AF: D4 .DB $D4 000016B0: D5D5 CMP $D5,X 000016B2: D5D4 CMP $D4,X 000016B4: D6D8 DEC $D8,X 000016B6: F93ABB SBC $BB3A,Y 000016B9: FC .DB $FC 000016BA: 97 .DB $97 000016BB: 5D02CD EOR $CD02,X 000016BE: D621 DEC $21,X 000016C0: D7 .DB $D7 000016C1: E9D7 SBC #$D7 000016C3: 1B .DB $1B 000016C4: DA .DB $DA 000016C5: FEDAA3 INC $A3DA,X 000016C8: DC .DB $DC 000016C9: 49DF EOR #$DF 000016CB: 33 .DB $33 000016CC: 0100 ORA ($00,X) 000016CE: 0168 ORA ($68,X) 000016D0: E3 .DB $E3 000016D1: 70E3 BVS $E3 000016D3: 78 SEI 000016D4: E3 .DB $E3 000016D5: 89 .DB $89 000016D6: E3 .DB $E3 000016D7: B0E3 BCS $E3 000016D9: 33 .DB $33 000016DA: 0100 ORA ($00,X) 000016DC: 0130 ORA ($30,X) 000016DE: 76D7 ROR $D7,X 000016E0: 55D7 EOR $D7,X 000016E2: C8 INY 000016E3: D7 .DB $D7 000016E4: 00 BRK 000016E5: 3058 BMI $58 000016E7: D7 .DB $D7 000016E8: 55D7 EOR $D7,X 000016EA: 55D7 EOR $D7,X 000016EC: 00 BRK 000016ED: 305D BMI $5D 000016EF: D7 .DB $D7 000016F0: 55D7 EOR $D7,X 000016F2: 55D7 EOR $D7,X 000016F4: 00 BRK 000016F5: B063 BCS $63 000016F7: D7 .DB $D7 000016F8: 55D7 EOR $D7,X 000016FA: C8 INY 000016FB: D7 .DB $D7 000016FC: 00 BRK 000016FD: 3076 BMI $76 000016FF: D7 .DB $D7 00001700: 55D7 EOR $D7,X 00001702: D6D7 DEC $D7,X 00001704: 00 BRK 00001705: B07B BCS $7B 00001707: D7 .DB $D7 00001708: 55D7 EOR $D7,X 0000170A: C8 INY 0000170B: D7 .DB $D7 0000170C: 00 BRK 0000170D: 3076 BMI $76 0000170F: D7 .DB $D7 00001710: B0D7 BCS $D7 00001712: E4D7 CPX $D7 00001714: 00 BRK 00001715: B087 BCS $87 00001717: D7 .DB $D7 00001718: 55D7 EOR $D7,X 0000171A: C8 INY 0000171B: D7 .DB $D7 0000171C: 00 BRK 0000171D: B08F BCS $8F 0000171F: D7 .DB $D7 00001720: 55D7 EOR $D7,X 00001722: C8 INY 00001723: D7 .DB $D7 00001724: 00 BRK 00001725: 3096 BMI $96 00001727: D7 .DB $D7 00001728: A8 TAY 00001729: D7 .DB $D7 0000172A: 55D7 EOR $D7,X 0000172C: 00 BRK 0000172D: 3096 BMI $96 0000172F: D7 .DB $D7 00001730: C0D7 CPY #$D7 00001732: 55D7 EOR $D7,X 00001734: 00 BRK 00001735: E025 CPX #$25 00001737: 0F .DB $0F 00001738: 00 BRK 00001739: E000 CPX #$00 0000173B: 00 BRK 0000173C: 00 BRK 0000173D: E000 CPX #$00 0000173F: 00 BRK 00001740: 00 BRK 00001741: E000 CPX #$00 00001743: 00 BRK 00001744: 00 BRK 00001745: E000 CPX #$00 00001747: 00 BRK 00001748: 00 BRK 00001749: E000 CPX #$00 0000174B: 00 BRK 0000174C: 00 BRK 0000174D: E000 CPX #$00 0000174F: 00 BRK 00001750: 00 BRK 00001751: E000 CPX #$00 00001753: 00 BRK 00001754: 00 BRK 00001755: E000 CPX #$00 00001757: 00 BRK 00001758: 00 BRK 00001759: E000 CPX #$00 0000175B: 00 BRK 0000175C: 00 BRK 0000175D: E000 CPX #$00 0000175F: 00 BRK 00001760: 00 BRK 00001761: E000 CPX #$00 00001763: 00 BRK 00001764: 00 BRK 00001765: C000 CPY #$00 00001767: 00 BRK 00001768: C0C8 CPY #$C8 0000176A: C000 CPY #$00 0000176C: 02 .DB $02 0000176D: C0CB CPY #$CB 0000176F: C4C0 CPY $C0 00001771: 00 BRK 00001772: 03 .DB $03 00001773: C0C3 CPY #$C3 00001775: C6C7 DEC $C7 00001777: C7 .DB $C7 00001778: C6C5 DEC $C5 0000177A: C5C4 CMP $C4 0000177C: C4C3 CPY $C3 0000177E: 02 .DB $02 0000177F: C2 .DB $C2 00001780: 02 .DB $02 00001781: C103 CMP ($03,X) 00001783: C000 CPY #$00 00001785: 10C0 BPL $C0 00001787: C0CF CPY #$CF 00001789: 00 BRK 0000178A: 02 .DB $02 0000178B: C0C3 CPY #$C3 0000178D: C5C4 CMP $C4 0000178F: C3 .DB $C3 00001790: C2 .DB $C2 00001791: C2 .DB $C2 00001792: C102 CMP ($02,X) 00001794: C000 CPY #$00 00001796: 09C0 ORA #$C0 00001798: C1C2 CMP ($C2,X) 0000179A: C104 CMP ($04,X) 0000179C: C000 CPY #$00 0000179E: 05C0 ORA $C0 000017A0: C0C1 CPY #$C1 000017A2: 03 .DB $03 000017A3: C000 CPY #$00 000017A5: 04 .DB $04 000017A6: C0C3 CPY #$C3 000017A8: C5C5 CMP $C5 000017AA: C4C4 CPY $C4 000017AC: C3 .DB $C3 000017AD: C2 .DB $C2 000017AE: C2 .DB $C2 000017AF: C1C1 CMP ($C1,X) 000017B1: C000 CPY #$00 000017B3: 0B .DB $0B 000017B4: C0CC CPY #$CC 000017B6: 00 BRK 000017B7: 01C0 ORA ($C0,X) 000017B9: C0C4 CPY #$C4 000017BB: C4C7 CPY $C7 000017BD: C7 .DB $C7 000017BE: 00 BRK 000017BF: 00 BRK 000017C0: C0BE CPY #$BE 000017C2: BCBAB8 LDY $B8BA,X 000017C5: B6B4 LDX $B4,Y 000017C7: B3 .DB $B3 000017C8: B2 .DB $B2 000017C9: B1B0 LDA ($B0),Y 000017CB: AF .DB $AF 000017CC: AEAD00 LDX $00AD 000017CF: 0DC0C0 ORA $C0C0 000017D2: C3 .DB $C3 000017D3: C3 .DB $C3 000017D4: C8 INY 000017D5: C8 INY 000017D6: 00 BRK 000017D7: 00 BRK 000017D8: C003 CPY #$03 000017DA: C1C0 CMP ($C0,X) 000017DC: 03 .DB $03 000017DD: BF .DB $BF 000017DE: C003 CPY #$03 000017E0: BF .DB $BF 000017E1: C003 CPY #$03 000017E3: C100 CMP ($00,X) 000017E5: 00 BRK 000017E6: C0C0 CPY #$C0 000017E8: C7 .DB $C7 000017E9: C0C0 CPY #$C0 000017EB: B9C0C0 LDA $C0C0,Y 000017EE: B9C0C0 LDA $C0C0,Y 000017F1: C7 .DB $C7 000017F2: 00 BRK 000017F3: 00 BRK 000017F4: C8 INY 000017F5: 06C8 ASL $C8 000017F7: 00 BRK 000017F8: 02 .DB $02 000017F9: 00 BRK 000017FA: BD862C LDA $2C86,X 000017FD: 8D8A2C STA $2C8A 00001800: 8586 STA $86 00001802: 3A .DB $3A 00001803: 858E STA $8E 00001805: 2C858A BIT $8A85 00001808: 3A .DB $3A 00001809: 858E STA $8E 0000180B: 2C853A BIT $3A85 0000180E: 8590 STA $90 00001810: 2C853A BIT $3A85 00001813: 852C STA $2C 00001815: 8586 STA $86 00001817: 34 .DB $34 00001818: 858E STA $8E 0000181A: 2C8586 BIT $8685 0000181D: 3685 ROL $85,X 0000181F: 34 .DB $34 00001820: 852C STA $2C 00001822: 8528 STA $28 00001824: 858A STA $8A 00001826: 2C8528 BIT $2885 00001829: 8586 STA $86 0000182B: 3685 ROL $85,X 0000182D: 8E2885 STX $8528 00001830: 8636 STX $36 00001832: 8534 STA $34 00001834: 858A STA $8A 00001836: 3685 ROL $85,X 00001838: 34 .DB $34 00001839: 858E STA $8E 0000183B: 3685 ROL $85,X 0000183D: 34 .DB $34 0000183E: 8590 STA $90 00001840: 3685 ROL $85,X 00001842: 34 .DB $34 00001843: 8536 STA $36 00001845: 8534 STA $34 00001847: 8536 STA $36 00001849: 85FF STA $FF 0000184B: 1EEBD7 ASL $D7EB,X 0000184E: 28 PLP 0000184F: 858A STA $8A 00001851: 2C8528 BIT $2885 00001854: 8586 STA $86 00001856: 3685 ROL $85,X 00001858: 8E2885 STX $8528 0000185B: 8636 STX $36 0000185D: 8534 STA $34 0000185F: 852C STA $2C 00001861: 858A STA $8A 00001863: 34 .DB $34 00001864: 852C STA $2C 00001866: 858E STA $8E 00001868: 34 .DB $34 00001869: 852C STA $2C 0000186B: 8590 STA $90 0000186D: 34 .DB $34 0000186E: 852C STA $2C 00001870: 8534 STA $34 00001872: 852C STA $2C 00001874: 85FF STA $FF 00001876: 1EEBD7 ASL $D7EB,X 00001879: FF .DB $FF 0000187A: 2013D8 JSR $D813 0000187D: FF .DB $FF 0000187E: 1EEBD7 ASL $D7EB,X 00001881: FF .DB $FF 00001882: 203ED8 JSR $D83E 00001885: 863A STX $3A 00001887: 8D8A3A STA $3A8A 0000188A: 8D8E3A STA $3A8E 0000188D: 8D862C STA $2C86 00001890: 8534 STA $34 00001892: 858E STA $8E 00001894: 2C8586 BIT $8685 00001897: 2C8590 BIT $9085 0000189A: 2C858A BIT $8A85 0000189D: 2C8D8E BIT $8E8D 000018A0: 2C8586 BIT $8685 000018A3: 2C8534 BIT $3485 000018A6: 8536 STA $36 000018A8: 8590 STA $90 000018AA: 34 .DB $34 000018AB: 858A STA $8A 000018AD: 368D ROL $8D,X 000018AF: 8E368D STX $8D36 000018B2: 8628 STX $28 000018B4: 8530 STA $30 000018B6: 8590 STA $90 000018B8: 28 PLP 000018B9: 8586 STA $86 000018BB: 28 PLP 000018BC: 8590 STA $90 000018BE: 28 PLP 000018BF: 858A STA $8A 000018C1: 28 PLP 000018C2: 8D8E28 STA $288E 000018C5: 8D9028 STA $2890 000018C8: 8586 STA $86 000018CA: 3A .DB $3A 000018CB: 8D8A3A STA $3A8A 000018CE: 8D8E3A STA $3A8E 000018D1: 8D863A STA $3A86 000018D4: 8544 STA $44 000018D6: 858E STA $8E 000018D8: 3A .DB $3A 000018D9: 8586 STA $86 000018DB: 2C8590 BIT $9085 000018DE: 3A .DB $3A 000018DF: 858A STA $8A 000018E1: 2C8D8E BIT $8E8D 000018E4: 2C8586 BIT $8685 000018E7: 2C8534 BIT $3485 000018EA: 85FF STA $FF 000018EC: 18 CLC 000018ED: 97 .DB $97 000018EE: D8 CLD 000018EF: FF .DB $FF 000018F0: 1EEBD7 ASL $D7EB,X 000018F3: FF .DB $FF 000018F4: 2013D8 JSR $D813 000018F7: FF .DB $FF 000018F8: 1EEBD7 ASL $D7EB,X 000018FB: FF .DB $FF 000018FC: 203ED8 JSR $D83E 000018FF: FF .DB $FF 00001900: 1EEBD7 ASL $D7EB,X 00001903: FF .DB $FF 00001904: 2013D8 JSR $D813 00001907: FF .DB $FF 00001908: 1EEBD7 ASL $D7EB,X 0000190B: FF .DB $FF 0000190C: 203ED8 JSR $D83E 0000190F: FF .DB $FF 00001910: 18 CLC 00001911: 75D8 ADC $D8,X 00001913: FF .DB $FF 00001914: 18 CLC 00001915: 97 .DB $97 00001916: D8 CLD 00001917: FF .DB $FF 00001918: 18 CLC 00001919: B9D8FF LDA $FFD8,Y 0000191C: 18 CLC 0000191D: 97 .DB $97 0000191E: D8 CLD 0000191F: 00 BRK 00001920: BD8645 LDA $4586,X 00001923: 00 BRK 00001924: 89 .DB $89 00001925: 8A TXA 00001926: 4500 EOR $00 00001928: 89 .DB $89 00001929: 8E4500 STX $0045 0000192C: 89 .DB $89 0000192D: 9045 BCC $45 0000192F: 00 BRK 00001930: C9FF CMP #$FF 00001932: 0C .DB $0C 00001933: 11D9 ORA ($D9),Y 00001935: FF .DB $FF 00001936: 0C .DB $0C 00001937: 11D9 ORA ($D9),Y 00001939: FF .DB $FF 0000193A: 0C .DB $0C 0000193B: 11D9 ORA ($D9),Y 0000193D: 4F .DB $4F 0000193E: 4F .DB $4F 0000193F: 8E5390 STX $9053 00001942: 53 .DB $53 00001943: 8E5990 STX $9059 00001946: 595353 EOR $5353,Y 00001949: 4F .DB $4F 0000194A: 4F .DB $4F 0000194B: 8E5390 STX $9053 0000194E: 53 .DB $53 0000194F: 8E5990 STX $9059 00001952: 595353 EOR $5353,Y 00001955: 4F .DB $4F 00001956: 4F .DB $4F 00001957: 8E5390 STX $9053 0000195A: 53 .DB $53 0000195B: 8E5990 STX $9059 0000195E: 595353 EOR $5353,Y 00001961: 4F .DB $4F 00001962: 4F .DB $4F 00001963: 8E5390 STX $9053 00001966: 53 .DB $53 00001967: 8E5990 STX $9059 0000196A: 595352 EOR $5253,Y 0000196D: 818E STA ($8E,X) 0000196F: 53 .DB $53 00001970: 9053 BCC $53 00001972: 8E5990 STX $9059 00001975: 598E5D EOR $5D8E,Y 00001978: 905D BCC $5D 0000197A: 59598E EOR $8E59,Y 0000197D: 53 .DB $53 0000197E: 9053 BCC $53 00001980: 8E5990 STX $9059 00001983: 598E5D EOR $5D8E,Y 00001986: 905D BCC $5D 00001988: 59598E EOR $8E59,Y 0000198B: 53 .DB $53 0000198C: 9053 BCC $53 0000198E: 8E5990 STX $9059 00001991: 598E5D EOR $5D8E,Y 00001994: 905D BCC $5D 00001996: 59598E EOR $8E59,Y 00001999: 53 .DB $53 0000199A: 9053 BCC $53 0000199C: 8E5990 STX $9059 0000199F: 598E5D EOR $5D8E,Y 000019A2: 905D BCC $5D 000019A4: 595881 EOR $8158,Y 000019A7: FF .DB $FF 000019A8: 212D AND ($2D,X) 000019AA: D98E53 CMP $538E,Y 000019AD: 9053 BCC $53 000019AF: 8E5990 STX $9059 000019B2: 598E5D EOR $5D8E,Y 000019B5: 905D BCC $5D 000019B7: 59598E EOR $8E59,Y 000019BA: 53 .DB $53 000019BB: 9053 BCC $53 000019BD: 8E5990 STX $9059 000019C0: 598E5D EOR $5D8E,Y 000019C3: 905D BCC $5D 000019C5: 595986 EOR $8659,Y 000019C8: 4500 EOR $00 000019CA: 89 .DB $89 000019CB: 8A TXA 000019CC: 4500 EOR $00 000019CE: 89 .DB $89 000019CF: 8E4500 STX $0045 000019D2: 89 .DB $89 000019D3: 9045 BCC $45 000019D5: 00 BRK 000019D6: 89 .DB $89 000019D7: FF .DB $FF 000019D8: 1EEBD7 ASL $D7EB,X 000019DB: FF .DB $FF 000019DC: 2013D8 JSR $D813 000019DF: FF .DB $FF 000019E0: 1EEBD7 ASL $D7EB,X 000019E3: FF .DB $FF 000019E4: 203ED8 JSR $D83E 000019E7: FF .DB $FF 000019E8: 1EEBD7 ASL $D7EB,X 000019EB: FF .DB $FF 000019EC: 2013D8 JSR $D813 000019EF: FF .DB $FF 000019F0: 1EEBD7 ASL $D7EB,X 000019F3: 28 PLP 000019F4: 858A STA $8A 000019F6: 2C8528 BIT $2885 000019F9: 8586 STA $86 000019FB: 3685 ROL $85,X 000019FD: 8E2885 STX $8528 00001A00: 8636 STX $36 00001A02: 8534 STA $34 00001A04: 852C STA $2C 00001A06: 8545 STA $45 00001A08: 00 BRK 00001A09: 89 .DB $89 00001A0A: 8A TXA 00001A0B: 4501 EOR $01 00001A0D: 943E STY $3E,X 00001A0F: 858E STA $8E 00001A11: 4500 EOR $00 00001A13: 89 .DB $89 00001A14: 9045 BCC $45 00001A16: 00 BRK 00001A17: 89 .DB $89 00001A18: FF .DB $FF 00001A19: 212D AND ($2D,X) 00001A1B: D9FF21 CMP $21FF,Y 00001A1E: 5ED9FF LSR $FFD9,X 00001A21: 212D AND ($2D,X) 00001A23: D9FF1C CMP $1CFF,Y 00001A26: 9B .DB $9B 00001A27: D9FDEB CMP $EBFD,Y 00001A2A: D7 .DB $D7 00001A2B: 00 BRK 00001A2C: BD8792 LDA $9287,X 00001A2F: 44 .DB $44 00001A30: 9D449D STA $9D44,X 00001A33: 44 .DB $44 00001A34: 9D4495 STA $9544,X 00001A37: 87 .DB $87 00001A38: 40 RTI 00001A39: 9D409D STA $9D40,X 00001A3C: 40 RTI 00001A3D: 9D4095 STA $9540,X 00001A40: 87 .DB $87 00001A41: 44 .DB $44 00001A42: 9D449D STA $9D44,X 00001A45: 44 .DB $44 00001A46: 9D4495 STA $9544,X 00001A49: FF .DB $FF 00001A4A: 0927 ORA #$27 00001A4C: DA .DB $DA 00001A4D: FF .DB $FF 00001A4E: 0930 ORA #$30 00001A50: DA .DB $DA 00001A51: FF .DB $FF 00001A52: 0927 ORA #$27 00001A54: DA .DB $DA 00001A55: FF .DB $FF 00001A56: 0930 ORA #$30 00001A58: DA .DB $DA 00001A59: FF .DB $FF 00001A5A: 0927 ORA #$27 00001A5C: DA .DB $DA 00001A5D: FF .DB $FF 00001A5E: 0930 ORA #$30 00001A60: DA .DB $DA 00001A61: FF .DB $FF 00001A62: 0927 ORA #$27 00001A64: DA .DB $DA 00001A65: FF .DB $FF 00001A66: 0930 ORA #$30 00001A68: DA .DB $DA 00001A69: FF .DB $FF 00001A6A: 0927 ORA #$27 00001A6C: DA .DB $DA 00001A6D: FF .DB $FF 00001A6E: 0930 ORA #$30 00001A70: DA .DB $DA 00001A71: FF .DB $FF 00001A72: 0927 ORA #$27 00001A74: DA .DB $DA 00001A75: FF .DB $FF 00001A76: 0930 ORA #$30 00001A78: DA .DB $DA 00001A79: FF .DB $FF 00001A7A: 0927 ORA #$27 00001A7C: DA .DB $DA 00001A7D: FF .DB $FF 00001A7E: 0930 ORA #$30 00001A80: DA .DB $DA 00001A81: FF .DB $FF 00001A82: 0927 ORA #$27 00001A84: DA .DB $DA 00001A85: FF .DB $FF 00001A86: 0930 ORA #$30 00001A88: DA .DB $DA 00001A89: FF .DB $FF 00001A8A: 0927 ORA #$27 00001A8C: DA .DB $DA 00001A8D: 87 .DB $87 00001A8E: 44 .DB $44 00001A8F: 9D4544 STA $4445,X 00001A92: 99449D STA $9D44,Y 00001A95: 44 .DB $44 00001A96: 9587 STA $87,X 00001A98: 40 RTI 00001A99: 9D4140 STA $4041,X 00001A9C: 99409D STA $9D40,Y 00001A9F: 40 RTI 00001AA0: 95FF STA $FF,X 00001AA2: 0A ASL A 00001AA3: 7DDAFF ADC $FFDA,X 00001AA6: 0A ASL A 00001AA7: 87 .DB $87 00001AA8: DA .DB $DA 00001AA9: 87 .DB $87 00001AAA: 44 .DB $44 00001AAB: B587 LDA $87,X 00001AAD: 44 .DB $44 00001AAE: F587 SBC $87,X 00001AB0: 44 .DB $44 00001AB1: F587 SBC $87,X 00001AB3: 44 .DB $44 00001AB4: 9D449D STA $9D44,X 00001AB7: 40 RTI 00001AB8: 8D943E STA $3E94 00001ABB: 8D3E95 STA $953E 00001ABE: 87 .DB $87 00001ABF: 92 .DB $92 00001AC0: 44 .DB $44 00001AC1: 9D449D STA $9D44,X 00001AC4: 40 RTI 00001AC5: 8D943E STA $3E94 00001AC8: 8D3E95 STA $953E 00001ACB: FF .DB $FF 00001ACC: 0B .DB $0B 00001ACD: AEDAFF LDX $FFDA 00001AD0: 0B .DB $0B 00001AD1: AEDAFF LDX $FFDA 00001AD4: 0B .DB $0B 00001AD5: AEDA87 LDX $87DA 00001AD8: 92 .DB $92 00001AD9: 44 .DB $44 00001ADA: F5FF SBC $FF,X 00001ADC: 0930 ORA #$30 00001ADE: DA .DB $DA 00001ADF: FF .DB $FF 00001AE0: 0927 ORA #$27 00001AE2: DA .DB $DA 00001AE3: FF .DB $FF 00001AE4: 0930 ORA #$30 00001AE6: DA .DB $DA 00001AE7: FF .DB $FF 00001AE8: 0927 ORA #$27 00001AEA: DA .DB $DA 00001AEB: FF .DB $FF 00001AEC: 0930 ORA #$30 00001AEE: DA .DB $DA 00001AEF: FF .DB $FF 00001AF0: 0927 ORA #$27 00001AF2: DA .DB $DA 00001AF3: FF .DB $FF 00001AF4: 0A ASL A 00001AF5: 7DDAFF ADC $FFDA,X 00001AF8: 0A ASL A 00001AF9: 87 .DB $87 00001AFA: DA .DB $DA 00001AFB: FF .DB $FF 00001AFC: 0B .DB $0B 00001AFD: A2DA LDX #$DA 00001AFF: FF .DB $FF 00001B00: 0B .DB $0B 00001B01: AEDAFF LDX $FFDA 00001B04: 0B .DB $0B 00001B05: AEDA87 LDX $87DA 00001B08: 92 .DB $92 00001B09: 44 .DB $44 00001B0A: F5FD SBC $FD,X 00001B0C: 1DDA00 ORA $00DA,X 00001B0F: A58C LDA $8C 00001B11: 58 CLI 00001B12: 58 CLI 00001B13: 58 CLI 00001B14: 00 BRK 00001B15: 58 CLI 00001B16: 00 BRK 00001B17: 58 CLI 00001B18: 00 BRK 00001B19: 4C0083 JMP $8300 00001B1C: 00 BRK 00001B1D: 8580 STA $80 00001B1F: 14 .DB $14 00001B20: 8500 STA $00 00001B22: 852C STA $2C 00001B24: 9100 STA ($00),Y 00001B26: 992C85 STA $852C,Y 00001B29: 00 BRK 00001B2A: 8514 STA $14 00001B2C: 9100 STA ($00),Y 00001B2E: 9100 STA ($00),Y 00001B30: 8510 STA $10 00001B32: 8500 STA $00 00001B34: 8528 STA $28 00001B36: 9100 STA ($00),Y 00001B38: 992885 STA $8528,Y 00001B3B: 00 BRK 00001B3C: 8510 STA $10 00001B3E: 9100 STA ($00),Y 00001B40: 9100 STA ($00),Y 00001B42: 8514 STA $14 00001B44: 8500 STA $00 00001B46: 852C STA $2C 00001B48: 9100 STA ($00),Y 00001B4A: 992C85 STA $852C,Y 00001B4D: 00 BRK 00001B4E: 8514 STA $14 00001B50: 9100 STA ($00),Y 00001B52: 91FF STA ($FF),Y 00001B54: 12 .DB $12 00001B55: 1F .DB $1F 00001B56: DB .DB $DB 00001B57: FF .DB $FF 00001B58: 12 .DB $12 00001B59: 31DB AND ($DB),Y 00001B5B: FF .DB $FF 00001B5C: 12 .DB $12 00001B5D: 1F .DB $1F 00001B5E: DB .DB $DB 00001B5F: FF .DB $FF 00001B60: 12 .DB $12 00001B61: 31DB AND ($DB),Y 00001B63: 87 .DB $87 00001B64: 88 DEY 00001B65: 1085 BPL $85 00001B67: 00 BRK 00001B68: 8580 STA $80 00001B6A: 28 PLP 00001B6B: 9100 STA ($00),Y 00001B6D: 992885 STA $8528,Y 00001B70: 00 BRK 00001B71: 8588 STA $88 00001B73: 108D BPL $8D 00001B75: 8C5800 STY $0058 00001B78: 83 .DB $83 00001B79: 58 CLI 00001B7A: 00 BRK 00001B7B: 83 .DB $83 00001B7C: 4C0083 JMP $8300 00001B7F: FF .DB $FF 00001B80: 12 .DB $12 00001B81: 0C .DB $0C 00001B82: DB .DB $DB 00001B83: FF .DB $FF 00001B84: 12 .DB $12 00001B85: 1F .DB $1F 00001B86: DB .DB $DB 00001B87: FF .DB $FF 00001B88: 12 .DB $12 00001B89: 31DB AND ($DB),Y 00001B8B: FF .DB $FF 00001B8C: 18 CLC 00001B8D: 53 .DB $53 00001B8E: DB .DB $DB 00001B8F: FF .DB $FF 00001B90: 12 .DB $12 00001B91: 0C .DB $0C 00001B92: DB .DB $DB 00001B93: FF .DB $FF 00001B94: 12 .DB $12 00001B95: 1F .DB $1F 00001B96: DB .DB $DB 00001B97: FF .DB $FF 00001B98: 12 .DB $12 00001B99: 31DB AND ($DB),Y 00001B9B: FF .DB $FF 00001B9C: 12 .DB $12 00001B9D: 1F .DB $1F 00001B9E: DB .DB $DB 00001B9F: FF .DB $FF 00001BA0: 12 .DB $12 00001BA1: 31DB AND ($DB),Y 00001BA3: FF .DB $FF 00001BA4: 12 .DB $12 00001BA5: 1F .DB $1F 00001BA6: DB .DB $DB 00001BA7: FF .DB $FF 00001BA8: 12 .DB $12 00001BA9: 31DB AND ($DB),Y 00001BAB: FF .DB $FF 00001BAC: 18 CLC 00001BAD: 53 .DB $53 00001BAE: DB .DB $DB 00001BAF: FF .DB $FF 00001BB0: 12 .DB $12 00001BB1: 0C .DB $0C 00001BB2: DB .DB $DB 00001BB3: FF .DB $FF 00001BB4: 12 .DB $12 00001BB5: 1F .DB $1F 00001BB6: DB .DB $DB 00001BB7: FF .DB $FF 00001BB8: 12 .DB $12 00001BB9: 31DB AND ($DB),Y 00001BBB: FF .DB $FF 00001BBC: 18 CLC 00001BBD: 53 .DB $53 00001BBE: DB .DB $DB 00001BBF: 4C0083 JMP $8300 00001BC2: 80 .DB $80 00001BC3: 2C8500 BIT $0085 00001BC6: 913B STA ($3B),Y 00001BC8: 37 .DB $37 00001BC9: 33 .DB $33 00001BCA: 37 .DB $37 00001BCB: 33 .DB $33 00001BCC: 2D2881 AND $8128 00001BCF: 012D ORA ($2D,X) 00001BD1: 152D ORA $2D,X 00001BD3: 012D ORA ($2D,X) 00001BD5: 2D2D01 AND $012D 00001BD8: 2D152D AND $2D15 00001BDB: 22 .DB $22 00001BDC: 8528 STA $28 00001BDE: 8501 STA $01 00001BE0: 2D152D AND $2D15 00001BE3: 012D ORA ($2D,X) 00001BE5: 2D2D01 AND $012D 00001BE8: 2D152D AND $2D15 00001BEB: 22 .DB $22 00001BEC: 8528 STA $28 00001BEE: 85FF STA $FF 00001BF0: 20BFDB JSR $DBBF 00001BF3: FF .DB $FF 00001BF4: 20BFDB JSR $DBBF 00001BF7: 012D ORA ($2D,X) 00001BF9: 152D ORA $2D,X 00001BFB: 012D ORA ($2D,X) 00001BFD: 2D2D01 AND $012D 00001C00: 2D152D AND $2D15 00001C03: 22 .DB $22 00001C04: 8528 STA $28 00001C06: 8501 STA $01 00001C08: 2D152D AND $2D15 00001C0B: 012D ORA ($2D,X) 00001C0D: 2D2D01 AND $012D 00001C10: 3B .DB $3B 00001C11: 37 .DB $37 00001C12: 33 .DB $33 00001C13: 37 .DB $37 00001C14: 33 .DB $33 00001C15: 2D2881 AND $8128 00001C18: FF .DB $FF 00001C19: 20BFDB JSR $DBBF 00001C1C: FF .DB $FF 00001C1D: 20BFDB JSR $DBBF 00001C20: FF .DB $FF 00001C21: 20BFDB JSR $DBBF 00001C24: 012D ORA ($2D,X) 00001C26: 152D ORA $2D,X 00001C28: 012D ORA ($2D,X) 00001C2A: 2D2D01 AND $012D 00001C2D: 2D152D AND $2D15 00001C30: 22 .DB $22 00001C31: 8528 STA $28 00001C33: 8500 STA $00 00001C35: 8514 STA $14 00001C37: 8500 STA $00 00001C39: 852D STA $2D 00001C3B: 2D0F26 AND $260F 00001C3E: 8501 STA $01 00001C40: 28 PLP 00001C41: 858C STA $8C 00001C43: 58 CLI 00001C44: 00 BRK 00001C45: 4C8101 JMP $0181 00001C48: 80 .DB $80 00001C49: 2D152D AND $2D15 00001C4C: 012D ORA ($2D,X) 00001C4E: 2D2D01 AND $012D 00001C51: 2D152D AND $2D15 00001C54: 22 .DB $22 00001C55: 8528 STA $28 00001C57: 8501 STA $01 00001C59: 2D152D AND $2D15 00001C5C: 012D ORA ($2D,X) 00001C5E: 2D2D01 AND $012D 00001C61: 2D152D AND $2D15 00001C64: 22 .DB $22 00001C65: 8528 STA $28 00001C67: 85FF STA $FF 00001C69: 20BFDB JSR $DBBF 00001C6C: FF .DB $FF 00001C6D: 20BFDB JSR $DBBF 00001C70: FF .DB $FF 00001C71: 21E7 AND ($E7,X) 00001C73: DB .DB $DB 00001C74: FF .DB $FF 00001C75: 20BFDB JSR $DBBF 00001C78: FF .DB $FF 00001C79: 20BFDB JSR $DBBF 00001C7C: FF .DB $FF 00001C7D: 20BFDB JSR $DBBF 00001C80: 012D ORA ($2D,X) 00001C82: 152D ORA $2D,X 00001C84: 012D ORA ($2D,X) 00001C86: 2D2D01 AND $012D 00001C89: 2D152D AND $2D15 00001C8C: 22 .DB $22 00001C8D: 8528 STA $28 00001C8F: 8501 STA $01 00001C91: 2D152D AND $2D15 00001C94: 00 BRK 00001C95: 9115 STA ($15),Y 00001C97: 2D1500 AND $0015 00001C9A: 858C STA $8C 00001C9C: 58 CLI 00001C9D: 00 BRK 00001C9E: 4C00FF JMP $FF00 00001CA1: 2037DC JSR $DC37 00001CA4: FF .DB $FF 00001CA5: 20BFDB JSR $DBBF 00001CA8: FF .DB $FF 00001CA9: 20BFDB JSR $DBBF 00001CAC: FF .DB $FF 00001CAD: 22 .DB $22 00001CAE: 14 .DB $14 00001CAF: DC .DB $DC 00001CB0: FD0CDB SBC $DB0C,X 00001CB3: 82 .DB $82 00001CB4: 1E8D1C ASL $1C8D,X 00001CB7: 8D1885 STA $8518 00001CBA: 840A STY $0A 00001CBC: 08 PHP 00001CBD: 0B .DB $0B 00001CBE: 090B ORA #$0B 00001CC0: 08 PHP 00001CC1: 8582 STA $82 00001CC3: 1E8519 ASL $1985,X 00001CC6: 19840A ORA $0A84,Y 00001CC9: 8582 STA $82 00001CCB: 1C .DB $1C 00001CCC: 851E STA $1E 00001CCE: 8519 STA $19 00001CD0: 19840A ORA $0A84,Y 00001CD3: 8582 STA $82 00001CD5: 1C .DB $1C 00001CD6: 851E STA $1E 00001CD8: 8519 STA $19 00001CDA: 19840A ORA $0A84,Y 00001CDD: 8582 STA $82 00001CDF: 1C .DB $1C 00001CE0: 851E STA $1E 00001CE2: 8519 STA $19 00001CE4: 19840A ORA $0A84,Y 00001CE7: 8582 STA $82 00001CE9: 1C .DB $1C 00001CEA: 851E STA $1E 00001CEC: 8519 STA $19 00001CEE: 19840A ORA $0A84,Y 00001CF1: 8582 STA $82 00001CF3: 1C .DB $1C 00001CF4: 851E STA $1E 00001CF6: 8519 STA $19 00001CF8: 19840B ORA $0B84,Y 00001CFB: 82 .DB $82 00001CFC: 19840A ORA $0A84,Y 00001CFF: 8582 STA $82 00001D01: 1E8519 ASL $1985,X 00001D04: 19840A ORA $0A84,Y 00001D07: 8582 STA $82 00001D09: 1C .DB $1C 00001D0A: 851E STA $1E 00001D0C: 8519 STA $19 00001D0E: 19840A ORA $0A84,Y 00001D11: 8582 STA $82 00001D13: 1C .DB $1C 00001D14: 851E STA $1E 00001D16: 8519 STA $19 00001D18: 19840A ORA $0A84,Y 00001D1B: 8582 STA $82 00001D1D: 1C .DB $1C 00001D1E: 851E STA $1E 00001D20: 8519 STA $19 00001D22: 19840A ORA $0A84,Y 00001D25: 8582 STA $82 00001D27: 1C .DB $1C 00001D28: 851E STA $1E 00001D2A: 8519 STA $19 00001D2C: 19840A ORA $0A84,Y 00001D2F: 8582 STA $82 00001D31: 1C .DB $1C 00001D32: 851E STA $1E 00001D34: 8519 STA $19 00001D36: 19840A ORA $0A84,Y 00001D39: 8582 STA $82 00001D3B: 1C .DB $1C 00001D3C: 851E STA $1E 00001D3E: 8519 STA $19 00001D40: 19840A ORA $0A84,Y 00001D43: 8582 STA $82 00001D45: 1C .DB $1C 00001D46: 851E STA $1E 00001D48: 8519 STA $19 00001D4A: 19840B ORA $0B84,Y 00001D4D: 82 .DB $82 00001D4E: 19840A ORA $0A84,Y 00001D51: 8582 STA $82 00001D53: 1E8519 ASL $1985,X 00001D56: 19840A ORA $0A84,Y 00001D59: 8582 STA $82 00001D5B: 1F .DB $1F 00001D5C: 1D1F84 ORA $841F,X 00001D5F: 0B .DB $0B 00001D60: 82 .DB $82 00001D61: 1F .DB $1F 00001D62: 1F .DB $1F 00001D63: 840A STY $0A 00001D65: 8582 STA $82 00001D67: 1C .DB $1C 00001D68: 85FF STA $FF 00001D6A: 2005DD JSR $DD05 00001D6D: FF .DB $FF 00001D6E: 20DBDC JSR $DCDB 00001D71: FF .DB $FF 00001D72: 2005DD JSR $DD05 00001D75: 1E8519 ASL $1985,X 00001D78: 19840A ORA $0A84,Y 00001D7B: 8582 STA $82 00001D7D: 1C .DB $1C 00001D7E: 851E STA $1E 00001D80: 8519 STA $19 00001D82: 19840B ORA $0B84,Y 00001D85: 82 .DB $82 00001D86: 19840A ORA $0A84,Y 00001D89: 8582 STA $82 00001D8B: 1E8519 ASL $1985,X 00001D8E: 19840A ORA $0A84,Y 00001D91: 8582 STA $82 00001D93: 1F .DB $1F 00001D94: 1D1F1D ORA $1D1F,X 00001D97: 840B STY $0B 00001D99: 0B .DB $0B 00001D9A: 0A ASL A 00001D9B: 8508 STA $08 00001D9D: 85FF STA $FF 00001D9F: 20B2DC JSR $DCB2 00001DA2: FF .DB $FF 00001DA3: 202DDD JSR $DD2D 00001DA6: FF .DB $FF 00001DA7: 2005DD JSR $DD05 00001DAA: FF .DB $FF 00001DAB: 2065DD JSR $DD65 00001DAE: 82 .DB $82 00001DAF: 1E8519 ASL $1985,X 00001DB2: 19840A ORA $0A84,Y 00001DB5: 8582 STA $82 00001DB7: 1C .DB $1C 00001DB8: 851E STA $1E 00001DBA: 8519 STA $19 00001DBC: 19840A ORA $0A84,Y 00001DBF: 8582 STA $82 00001DC1: 1C .DB $1C 00001DC2: 851E STA $1E 00001DC4: 8519 STA $19 00001DC6: 19840A ORA $0A84,Y 00001DC9: 8582 STA $82 00001DCB: 1C .DB $1C 00001DCC: 851F STA $1F 00001DCE: 840B STY $0B 00001DD0: 82 .DB $82 00001DD1: 191984 ORA $8419,Y 00001DD4: 0A ASL A 00001DD5: 8582 STA $82 00001DD7: 1F .DB $1F 00001DD8: 18 CLC 00001DD9: 81FF STA ($FF,X) 00001DDB: 202DDD JSR $DD2D 00001DDE: 1E8519 ASL $1985,X 00001DE1: 19840A ORA $0A84,Y 00001DE4: 8582 STA $82 00001DE6: 1C .DB $1C 00001DE7: 851E STA $1E 00001DE9: 8519 STA $19 00001DEB: 19840A ORA $0A84,Y 00001DEE: 8582 STA $82 00001DF0: 1C .DB $1C 00001DF1: 851E STA $1E 00001DF3: 8519 STA $19 00001DF5: 19840A ORA $0A84,Y 00001DF8: 8582 STA $82 00001DFA: 1C .DB $1C 00001DFB: 851F STA $1F 00001DFD: 840B STY $0B 00001DFF: 82 .DB $82 00001E00: 191984 ORA $8419,Y 00001E03: 0A ASL A 00001E04: 8582 STA $82 00001E06: 1F .DB $1F 00001E07: 18 CLC 00001E08: 81FF STA ($FF,X) 00001E0A: 202DDD JSR $DD2D 00001E0D: FF .DB $FF 00001E0E: 21CE AND ($CE,X) 00001E10: DDFF20 CMP $20FF,X 00001E13: 2DDDFF AND $FFDD 00001E16: 21CE AND ($CE,X) 00001E18: DDFF20 CMP $20FF,X 00001E1B: 65DD ADC $DD 00001E1D: FF .DB $FF 00001E1E: 219E AND ($9E,X) 00001E20: DDFF20 CMP $20FF,X 00001E23: 2DDDFF AND $FFDD 00001E26: 21CE AND ($CE,X) 00001E28: DDFF20 CMP $20FF,X 00001E2B: 65DD ADC $DD 00001E2D: 08 PHP 00001E2E: 8586 STA $86 00001E30: 1685 ASL $85,X 00001E32: 82 .DB $82 00001E33: 18 CLC 00001E34: 8518 STA $18 00001E36: 851C STA $1C 00001E38: 8518 STA $18 00001E3A: 8584 STA $84 00001E3C: 0B .DB $0B 00001E3D: 82 .DB $82 00001E3E: 191F18 ORA $181F,Y 00001E41: 811F STA ($1F,X) 00001E43: 1D1919 ORA $1919,X 00001E46: 840A STY $0A 00001E48: 8582 STA $82 00001E4A: 1C .DB $1C 00001E4B: 851F STA $1F 00001E4D: 1D1919 ORA $1919,X 00001E50: 840A STY $0A 00001E52: 8582 STA $82 00001E54: 1C .DB $1C 00001E55: 851F STA $1F 00001E57: 1D1919 ORA $1919,X 00001E5A: 840A STY $0A 00001E5C: 8582 STA $82 00001E5E: 1C .DB $1C 00001E5F: 851F STA $1F 00001E61: 1D1919 ORA $1919,X 00001E64: 840A STY $0A 00001E66: 8582 STA $82 00001E68: 1C .DB $1C 00001E69: 851F STA $1F 00001E6B: 1D1919 ORA $1919,X 00001E6E: 840A STY $0A 00001E70: 8582 STA $82 00001E72: 1C .DB $1C 00001E73: 851F STA $1F 00001E75: 1D1919 ORA $1919,X 00001E78: 840A STY $0A 00001E7A: 8582 STA $82 00001E7C: 1C .DB $1C 00001E7D: 851F STA $1F 00001E7F: 1D1919 ORA $1919,X 00001E82: 840A STY $0A 00001E84: 8582 STA $82 00001E86: 1C .DB $1C 00001E87: 851F STA $1F 00001E89: 840B STY $0B 00001E8B: 82 .DB $82 00001E8C: 191984 ORA $8419,Y 00001E8F: 0A ASL A 00001E90: 8582 STA $82 00001E92: 1F .DB $1F 00001E93: 1C .DB $1C 00001E94: 81FF STA ($FF,X) 00001E96: 2032DE JSR $DE32 00001E99: 1F .DB $1F 00001E9A: 1D1919 ORA $1919,X 00001E9D: 840A STY $0A 00001E9F: 8582 STA $82 00001EA1: 1C .DB $1C 00001EA2: 851F STA $1F 00001EA4: 1D1919 ORA $1919,X 00001EA7: 840B STY $0B 00001EA9: 82 .DB $82 00001EAA: 19840A ORA $0A84,Y 00001EAD: 8582 STA $82 00001EAF: 1F .DB $1F 00001EB0: 1D1919 ORA $1919,X 00001EB3: 840A STY $0A 00001EB5: 8582 STA $82 00001EB7: 1F .DB $1F 00001EB8: 1D1F84 ORA $841F,X 00001EBB: 0B .DB $0B 00001EBC: 82 .DB $82 00001EBD: 1F .DB $1F 00001EBE: 1F .DB $1F 00001EBF: 840A STY $0A 00001EC1: 8582 STA $82 00001EC3: 1D840A ORA $0A84,X 00001EC6: 8182 STA ($82,X) 00001EC8: 1F .DB $1F 00001EC9: 1D1919 ORA $1919,X 00001ECC: 840A STY $0A 00001ECE: 8582 STA $82 00001ED0: 1C .DB $1C 00001ED1: 851F STA $1F 00001ED3: 1D1919 ORA $1919,X 00001ED6: 840A STY $0A 00001ED8: 8582 STA $82 00001EDA: 1C .DB $1C 00001EDB: 851F STA $1F 00001EDD: 1D1919 ORA $1919,X 00001EE0: 840A STY $0A 00001EE2: 8582 STA $82 00001EE4: 1C .DB $1C 00001EE5: 851F STA $1F 00001EE7: 1D1919 ORA $1919,X 00001EEA: 840A STY $0A 00001EEC: 8582 STA $82 00001EEE: 1C .DB $1C 00001EEF: 85FF STA $FF 00001EF1: 215A AND ($5A,X) 00001EF3: DEFF21 DEC $21FF,X 00001EF6: CEDD1F DEC $1FDD 00001EF9: 1D1919 ORA $1919,X 00001EFC: 840A STY $0A 00001EFE: 8582 STA $82 00001F00: 1C .DB $1C 00001F01: 851F STA $1F 00001F03: 1D1919 ORA $1919,X 00001F06: 840B STY $0B 00001F08: 82 .DB $82 00001F09: 19840A ORA $0A84,Y 00001F0C: 8586 STA $86 00001F0E: 1685 ASL $85,X 00001F10: 82 .DB $82 00001F11: 18 CLC 00001F12: 8584 STA $84 00001F14: 0A ASL A 00001F15: 8582 STA $82 00001F17: 18 CLC 00001F18: 8584 STA $84 00001F1A: 0A ASL A 00001F1B: 8582 STA $82 00001F1D: 18 CLC 00001F1E: 8584 STA $84 00001F20: 0A ASL A 00001F21: 850B STA $0B 00001F23: 82 .DB $82 00001F24: 1C .DB $1C 00001F25: 81FF STA ($FF,X) 00001F27: 2032DE JSR $DE32 00001F2A: FF .DB $FF 00001F2B: 215A AND ($5A,X) 00001F2D: DEFF21 DEC $21FF,X 00001F30: CEDDFF DEC $FFDD 00001F33: 215A AND ($5A,X) 00001F35: DEFF20 DEC $20FF,X 00001F38: 32 .DB $32 00001F39: DEFF21 DEC $21FF,X 00001F3C: 5A .DB $5A 00001F3D: DEFF21 DEC $21FF,X 00001F40: CEDDFF DEC $FFDD 00001F43: 215A AND ($5A,X) 00001F45: DEFF20 DEC $20FF,X 00001F48: 32 .DB $32 00001F49: DEFF21 DEC $21FF,X 00001F4C: 5A .DB $5A 00001F4D: DEFF21 DEC $21FF,X 00001F50: CEDDFF DEC $FFDD 00001F53: 21E8 AND ($E8,X) 00001F55: DEFDB2 DEC $B2FD,X 00001F58: DC .DB $DC 00001F59: FB .DB $FB 00001F5A: 03 .DB $03 00001F5B: FB .DB $FB 00001F5C: 0683 ASL $83 00001F5E: FB .DB $FB 00001F5F: 03 .DB $03 00001F60: 83 .DB $83 00001F61: FB .DB $FB 00001F62: 0683 ASL $83 00001F64: FB .DB $FB 00001F65: 03 .DB $03 00001F66: 83 .DB $83 00001F67: FB .DB $FB 00001F68: 0683 ASL $83 00001F6A: FB .DB $FB 00001F6B: 03 .DB $03 00001F6C: 83 .DB $83 00001F6D: FB .DB $FB 00001F6E: 0683 ASL $83 00001F70: FB .DB $FB 00001F71: 03 .DB $03 00001F72: 83 .DB $83 00001F73: FB .DB $FB 00001F74: 0683 ASL $83 00001F76: FB .DB $FB 00001F77: 03 .DB $03 00001F78: 83 .DB $83 00001F79: FB .DB $FB 00001F7A: 0683 ASL $83 00001F7C: FB .DB $FB 00001F7D: 03 .DB $03 00001F7E: 83 .DB $83 00001F7F: FB .DB $FB 00001F80: 0603 ASL $03 00001F82: FB .DB $FB 00001F83: 03 .DB $03 00001F84: 83 .DB $83 00001F85: FB .DB $FB 00001F86: 0603 ASL $03 00001F88: FB .DB $FB 00001F89: 03 .DB $03 00001F8A: 83 .DB $83 00001F8B: FB .DB $FB 00001F8C: 0603 ASL $03 00001F8E: FB .DB $FB 00001F8F: 03 .DB $03 00001F90: 83 .DB $83 00001F91: FB .DB $FB 00001F92: 0683 ASL $83 00001F94: FB .DB $FB 00001F95: 03 .DB $03 00001F96: 83 .DB $83 00001F97: FB .DB $FB 00001F98: 0603 ASL $03 00001F9A: FB .DB $FB 00001F9B: 03 .DB $03 00001F9C: 83 .DB $83 00001F9D: FB .DB $FB 00001F9E: 0683 ASL $83 00001FA0: FB .DB $FB 00001FA1: 03 .DB $03 00001FA2: 83 .DB $83 00001FA3: FB .DB $FB 00001FA4: 0683 ASL $83 00001FA6: FB .DB $FB 00001FA7: 03 .DB $03 00001FA8: 83 .DB $83 00001FA9: FB .DB $FB 00001FAA: 0683 ASL $83 00001FAC: FB .DB $FB 00001FAD: 03 .DB $03 00001FAE: 83 .DB $83 00001FAF: FB .DB $FB 00001FB0: 0603 ASL $03 00001FB2: FB .DB $FB 00001FB3: 03 .DB $03 00001FB4: 83 .DB $83 00001FB5: FB .DB $FB 00001FB6: 0683 ASL $83 00001FB8: FB .DB $FB 00001FB9: 03 .DB $03 00001FBA: 83 .DB $83 00001FBB: FB .DB $FB 00001FBC: 0603 ASL $03 00001FBE: FB .DB $FB 00001FBF: 03 .DB $03 00001FC0: 83 .DB $83 00001FC1: FB .DB $FB 00001FC2: 0683 ASL $83 00001FC4: FB .DB $FB 00001FC5: 03 .DB $03 00001FC6: 83 .DB $83 00001FC7: FB .DB $FB 00001FC8: 0603 ASL $03 00001FCA: FB .DB $FB 00001FCB: 03 .DB $03 00001FCC: 83 .DB $83 00001FCD: FB .DB $FB 00001FCE: 0683 ASL $83 00001FD0: FB .DB $FB 00001FD1: 03 .DB $03 00001FD2: 83 .DB $83 00001FD3: FB .DB $FB 00001FD4: 0683 ASL $83 00001FD6: FB .DB $FB 00001FD7: 03 .DB $03 00001FD8: 83 .DB $83 00001FD9: FB .DB $FB 00001FDA: 0683 ASL $83 00001FDC: FB .DB $FB 00001FDD: 03 .DB $03 00001FDE: 83 .DB $83 00001FDF: FB .DB $FB 00001FE0: 0603 ASL $03 00001FE2: FB .DB $FB 00001FE3: 03 .DB $03 00001FE4: 83 .DB $83 00001FE5: FB .DB $FB 00001FE6: 0683 ASL $83 00001FE8: FB .DB $FB 00001FE9: 03 .DB $03 00001FEA: 83 .DB $83 00001FEB: FB .DB $FB 00001FEC: 0603 ASL $03 00001FEE: FB .DB $FB 00001FEF: 03 .DB $03 00001FF0: 83 .DB $83 00001FF1: FB .DB $FB 00001FF2: 0683 ASL $83 00001FF4: FB .DB $FB 00001FF5: 03 .DB $03 00001FF6: 83 .DB $83 00001FF7: FB .DB $FB 00001FF8: 0603 ASL $03 00001FFA: FB .DB $FB 00001FFB: 03 .DB $03 00001FFC: 83 .DB $83 00001FFD: FB .DB $FB 00001FFE: 0683 ASL $83 00002000: FB .DB $FB 00002001: 03 .DB $03 00002002: 83 .DB $83 00002003: FB .DB $FB 00002004: 0683 ASL $83 00002006: FB .DB $FB 00002007: 03 .DB $03 00002008: 83 .DB $83 00002009: FB .DB $FB 0000200A: 0683 ASL $83 0000200C: FB .DB $FB 0000200D: 03 .DB $03 0000200E: 83 .DB $83 0000200F: FB .DB $FB 00002010: 0603 ASL $03 00002012: FB .DB $FB 00002013: 03 .DB $03 00002014: 83 .DB $83 00002015: FB .DB $FB 00002016: 0603 ASL $03 00002018: FB .DB $FB 00002019: 03 .DB $03 0000201A: 83 .DB $83 0000201B: FB .DB $FB 0000201C: 0603 ASL $03 0000201E: FB .DB $FB 0000201F: 03 .DB $03 00002020: 83 .DB $83 00002021: FB .DB $FB 00002022: 0683 ASL $83 00002024: FB .DB $FB 00002025: 03 .DB $03 00002026: 83 .DB $83 00002027: FB .DB $FB 00002028: 0603 ASL $03 0000202A: FB .DB $FB 0000202B: 03 .DB $03 0000202C: 83 .DB $83 0000202D: FB .DB $FB 0000202E: 0683 ASL $83 00002030: FB .DB $FB 00002031: 03 .DB $03 00002032: 83 .DB $83 00002033: FB .DB $FB 00002034: 0683 ASL $83 00002036: FB .DB $FB 00002037: 03 .DB $03 00002038: 83 .DB $83 00002039: FB .DB $FB 0000203A: 0683 ASL $83 0000203C: FB .DB $FB 0000203D: 03 .DB $03 0000203E: 83 .DB $83 0000203F: FB .DB $FB 00002040: 0603 ASL $03 00002042: FB .DB $FB 00002043: 03 .DB $03 00002044: 83 .DB $83 00002045: FB .DB $FB 00002046: 0683 ASL $83 00002048: FB .DB $FB 00002049: 03 .DB $03 0000204A: 83 .DB $83 0000204B: FF .DB $FF 0000204C: 207BDF JSR $DF7B 0000204F: FF .DB $FF 00002050: 20DBDF JSR $DFDB 00002053: FF .DB $FF 00002054: 207BDF JSR $DF7B 00002057: FF .DB $FF 00002058: 20DBDF JSR $DFDB 0000205B: FF .DB $FF 0000205C: 207BDF JSR $DF7B 0000205F: FF .DB $FF 00002060: 20DBDF JSR $DFDB 00002063: FF .DB $FF 00002064: 207BDF JSR $DF7B 00002067: FF .DB $FF 00002068: 20DBDF JSR $DFDB 0000206B: FF .DB $FF 0000206C: 207BDF JSR $DF7B 0000206F: FF .DB $FF 00002070: 20DBDF JSR $DFDB 00002073: FF .DB $FF 00002074: 207BDF JSR $DF7B 00002077: FF .DB $FF 00002078: 20DBDF JSR $DFDB 0000207B: FF .DB $FF 0000207C: 207BDF JSR $DF7B 0000207F: FF .DB $FF 00002080: 20DBDF JSR $DFDB 00002083: FF .DB $FF 00002084: 207BDF JSR $DF7B 00002087: FF .DB $FF 00002088: 20DBDF JSR $DFDB 0000208B: FF .DB $FF 0000208C: 207BDF JSR $DF7B 0000208F: FF .DB $FF 00002090: 20DBDF JSR $DFDB 00002093: FF .DB $FF 00002094: 207BDF JSR $DF7B 00002097: FF .DB $FF 00002098: 20DBDF JSR $DFDB 0000209B: FF .DB $FF 0000209C: 207BDF JSR $DF7B 0000209F: FF .DB $FF 000020A0: 20DBDF JSR $DFDB 000020A3: FB .DB $FB 000020A4: 0602 ASL $02 000020A6: FB .DB $FB 000020A7: 03 .DB $03 000020A8: 81FB STA ($FB,X) 000020AA: 0681 ASL $81 000020AC: FB .DB $FB 000020AD: 03 .DB $03 000020AE: 81FB STA ($FB,X) 000020B0: 0602 ASL $02 000020B2: FB .DB $FB 000020B3: 03 .DB $03 000020B4: 81FB STA ($FB,X) 000020B6: 0681 ASL $81 000020B8: FB .DB $FB 000020B9: 03 .DB $03 000020BA: 81FB STA ($FB,X) 000020BC: 0681 ASL $81 000020BE: FB .DB $FB 000020BF: 03 .DB $03 000020C0: 81FB STA ($FB,X) 000020C2: 0681 ASL $81 000020C4: FB .DB $FB 000020C5: 03 .DB $03 000020C6: 81FB STA ($FB,X) 000020C8: 0681 ASL $81 000020CA: FB .DB $FB 000020CB: 03 .DB $03 000020CC: 81FB STA ($FB,X) 000020CE: 0681 ASL $81 000020D0: FB .DB $FB 000020D1: 03 .DB $03 000020D2: 81FB STA ($FB,X) 000020D4: 0602 ASL $02 000020D6: FB .DB $FB 000020D7: 03 .DB $03 000020D8: 81FB STA ($FB,X) 000020DA: 0681 ASL $81 000020DC: FB .DB $FB 000020DD: 03 .DB $03 000020DE: 81FB STA ($FB,X) 000020E0: 0681 ASL $81 000020E2: FB .DB $FB 000020E3: 03 .DB $03 000020E4: 81FB STA ($FB,X) 000020E6: 0681 ASL $81 000020E8: FB .DB $FB 000020E9: 03 .DB $03 000020EA: 81FB STA ($FB,X) 000020EC: 0602 ASL $02 000020EE: FB .DB $FB 000020EF: 03 .DB $03 000020F0: 81FB STA ($FB,X) 000020F2: 0681 ASL $81 000020F4: FB .DB $FB 000020F5: 03 .DB $03 000020F6: 81FB STA ($FB,X) 000020F8: 0602 ASL $02 000020FA: FB .DB $FB 000020FB: 03 .DB $03 000020FC: 81FB STA ($FB,X) 000020FE: 0681 ASL $81 00002100: FB .DB $FB 00002101: 03 .DB $03 00002102: 81FB STA ($FB,X) 00002104: 0602 ASL $02 00002106: FB .DB $FB 00002107: 03 .DB $03 00002108: 81FB STA ($FB,X) 0000210A: 0681 ASL $81 0000210C: FB .DB $FB 0000210D: 03 .DB $03 0000210E: 81FB STA ($FB,X) 00002110: 0681 ASL $81 00002112: FB .DB $FB 00002113: 03 .DB $03 00002114: 81FB STA ($FB,X) 00002116: 0681 ASL $81 00002118: FB .DB $FB 00002119: 03 .DB $03 0000211A: 81FB STA ($FB,X) 0000211C: 0602 ASL $02 0000211E: FB .DB $FB 0000211F: 03 .DB $03 00002120: 81FB STA ($FB,X) 00002122: 0681 ASL $81 00002124: FB .DB $FB 00002125: 03 .DB $03 00002126: 81FB STA ($FB,X) 00002128: 0681 ASL $81 0000212A: FB .DB $FB 0000212B: 03 .DB $03 0000212C: 81FB STA ($FB,X) 0000212E: 0681 ASL $81 00002130: FB .DB $FB 00002131: 03 .DB $03 00002132: 81FB STA ($FB,X) 00002134: 0681 ASL $81 00002136: FB .DB $FB 00002137: 03 .DB $03 00002138: 81FB STA ($FB,X) 0000213A: 0681 ASL $81 0000213C: FB .DB $FB 0000213D: 03 .DB $03 0000213E: 81FB STA ($FB,X) 00002140: 0681 ASL $81 00002142: FB .DB $FB 00002143: 03 .DB $03 00002144: 81FB STA ($FB,X) 00002146: 0681 ASL $81 00002148: FB .DB $FB 00002149: 03 .DB $03 0000214A: 81FB STA ($FB,X) 0000214C: 0602 ASL $02 0000214E: FB .DB $FB 0000214F: 03 .DB $03 00002150: 81FB STA ($FB,X) 00002152: 0681 ASL $81 00002154: FB .DB $FB 00002155: 03 .DB $03 00002156: 81FB STA ($FB,X) 00002158: 0681 ASL $81 0000215A: FB .DB $FB 0000215B: 03 .DB $03 0000215C: 81FB STA ($FB,X) 0000215E: 0681 ASL $81 00002160: FB .DB $FB 00002161: 03 .DB $03 00002162: 81FB STA ($FB,X) 00002164: 0602 ASL $02 00002166: FB .DB $FB 00002167: 03 .DB $03 00002168: 81FB STA ($FB,X) 0000216A: 0681 ASL $81 0000216C: FB .DB $FB 0000216D: 03 .DB $03 0000216E: 81FB STA ($FB,X) 00002170: 0681 ASL $81 00002172: FB .DB $FB 00002173: 03 .DB $03 00002174: 81FB STA ($FB,X) 00002176: 0681 ASL $81 00002178: FB .DB $FB 00002179: 03 .DB $03 0000217A: 81FB STA ($FB,X) 0000217C: 0602 ASL $02 0000217E: FB .DB $FB 0000217F: 03 .DB $03 00002180: 81FB STA ($FB,X) 00002182: 0681 ASL $81 00002184: FB .DB $FB 00002185: 03 .DB $03 00002186: 81FB STA ($FB,X) 00002188: 0681 ASL $81 0000218A: FB .DB $FB 0000218B: 03 .DB $03 0000218C: 81FB STA ($FB,X) 0000218E: 0681 ASL $81 00002190: FB .DB $FB 00002191: 03 .DB $03 00002192: 81FB STA ($FB,X) 00002194: 0681 ASL $81 00002196: FB .DB $FB 00002197: 03 .DB $03 00002198: 81FB STA ($FB,X) 0000219A: 0681 ASL $81 0000219C: FB .DB $FB 0000219D: 03 .DB $03 0000219E: 81FB STA ($FB,X) 000021A0: 0681 ASL $81 000021A2: FB .DB $FB 000021A3: 03 .DB $03 000021A4: 81FB STA ($FB,X) 000021A6: 0681 ASL $81 000021A8: FB .DB $FB 000021A9: 03 .DB $03 000021AA: 81FB STA ($FB,X) 000021AC: 0602 ASL $02 000021AE: FB .DB $FB 000021AF: 03 .DB $03 000021B0: 81FB STA ($FB,X) 000021B2: 0681 ASL $81 000021B4: FB .DB $FB 000021B5: 03 .DB $03 000021B6: 81FB STA ($FB,X) 000021B8: 0681 ASL $81 000021BA: FB .DB $FB 000021BB: 03 .DB $03 000021BC: 81FB STA ($FB,X) 000021BE: 0681 ASL $81 000021C0: FB .DB $FB 000021C1: 03 .DB $03 000021C2: 81FF STA ($FF,X) 000021C4: 40 RTI 000021C5: F3 .DB $F3 000021C6: E0FF CPX #$FF 000021C8: 40 RTI 000021C9: F3 .DB $F3 000021CA: E0FF CPX #$FF 000021CC: 40 RTI 000021CD: F3 .DB $F3 000021CE: E0FF CPX #$FF 000021D0: 40 RTI 000021D1: F3 .DB $F3 000021D2: E0FF CPX #$FF 000021D4: 40 RTI 000021D5: F3 .DB $F3 000021D6: E0FF CPX #$FF 000021D8: 40 RTI 000021D9: F3 .DB $F3 000021DA: E0FF CPX #$FF 000021DC: 40 RTI 000021DD: F3 .DB $F3 000021DE: E0FF CPX #$FF 000021E0: 40 RTI 000021E1: F3 .DB $F3 000021E2: E0FF CPX #$FF 000021E4: 40 RTI 000021E5: F3 .DB $F3 000021E6: E0FF CPX #$FF 000021E8: 40 RTI 000021E9: F3 .DB $F3 000021EA: E0FF CPX #$FF 000021EC: 40 RTI 000021ED: F3 .DB $F3 000021EE: E0FF CPX #$FF 000021F0: 40 RTI 000021F1: F3 .DB $F3 000021F2: E0FF CPX #$FF 000021F4: 40 RTI 000021F5: F3 .DB $F3 000021F6: E0FF CPX #$FF 000021F8: 40 RTI 000021F9: F3 .DB $F3 000021FA: E0FB CPX #$FB 000021FC: 0602 ASL $02 000021FE: FB .DB $FB 000021FF: 03 .DB $03 00002200: 81FB STA ($FB,X) 00002202: 0681 ASL $81 00002204: FB .DB $FB 00002205: 03 .DB $03 00002206: 81FB STA ($FB,X) 00002208: 0681 ASL $81 0000220A: FB .DB $FB 0000220B: 03 .DB $03 0000220C: 81FB STA ($FB,X) 0000220E: 0681 ASL $81 00002210: FB .DB $FB 00002211: 03 .DB $03 00002212: 81FB STA ($FB,X) 00002214: 0602 ASL $02 00002216: FB .DB $FB 00002217: 03 .DB $03 00002218: 81FB STA ($FB,X) 0000221A: 0681 ASL $81 0000221C: FB .DB $FB 0000221D: 03 .DB $03 0000221E: 81FB STA ($FB,X) 00002220: 0681 ASL $81 00002222: FB .DB $FB 00002223: 03 .DB $03 00002224: 81FB STA ($FB,X) 00002226: 0681 ASL $81 00002228: FB .DB $FB 00002229: 03 .DB $03 0000222A: 81FB STA ($FB,X) 0000222C: 0681 ASL $81 0000222E: FB .DB $FB 0000222F: 03 .DB $03 00002230: 81FB STA ($FB,X) 00002232: 0681 ASL $81 00002234: FB .DB $FB 00002235: 03 .DB $03 00002236: 81FB STA ($FB,X) 00002238: 0681 ASL $81 0000223A: FB .DB $FB 0000223B: 03 .DB $03 0000223C: 81FB STA ($FB,X) 0000223E: 0681 ASL $81 00002240: FB .DB $FB 00002241: 03 .DB $03 00002242: 81FB STA ($FB,X) 00002244: 0602 ASL $02 00002246: FB .DB $FB 00002247: 03 .DB $03 00002248: 81FB STA ($FB,X) 0000224A: 0681 ASL $81 0000224C: FB .DB $FB 0000224D: 03 .DB $03 0000224E: 81FB STA ($FB,X) 00002250: 0602 ASL $02 00002252: FB .DB $FB 00002253: 03 .DB $03 00002254: 81FB STA ($FB,X) 00002256: 0681 ASL $81 00002258: FB .DB $FB 00002259: 03 .DB $03 0000225A: 81FB STA ($FB,X) 0000225C: 0602 ASL $02 0000225E: FB .DB $FB 0000225F: 03 .DB $03 00002260: 81FB STA ($FB,X) 00002262: 0681 ASL $81 00002264: FB .DB $FB 00002265: 03 .DB $03 00002266: 81FB STA ($FB,X) 00002268: 0681 ASL $81 0000226A: FB .DB $FB 0000226B: 03 .DB $03 0000226C: 81FB STA ($FB,X) 0000226E: 0681 ASL $81 00002270: FB .DB $FB 00002271: 03 .DB $03 00002272: 81FB STA ($FB,X) 00002274: 0602 ASL $02 00002276: FB .DB $FB 00002277: 03 .DB $03 00002278: 81FB STA ($FB,X) 0000227A: 0681 ASL $81 0000227C: FB .DB $FB 0000227D: 03 .DB $03 0000227E: 81FB STA ($FB,X) 00002280: 0681 ASL $81 00002282: FB .DB $FB 00002283: 03 .DB $03 00002284: 81FB STA ($FB,X) 00002286: 0681 ASL $81 00002288: FB .DB $FB 00002289: 03 .DB $03 0000228A: 81FB STA ($FB,X) 0000228C: 0602 ASL $02 0000228E: FB .DB $FB 0000228F: 03 .DB $03 00002290: 81FB STA ($FB,X) 00002292: 0681 ASL $81 00002294: FB .DB $FB 00002295: 03 .DB $03 00002296: 81FB STA ($FB,X) 00002298: 0681 ASL $81 0000229A: FB .DB $FB 0000229B: 03 .DB $03 0000229C: 81FB STA ($FB,X) 0000229E: 0681 ASL $81 000022A0: FB .DB $FB 000022A1: 03 .DB $03 000022A2: 81FB STA ($FB,X) 000022A4: 0602 ASL $02 000022A6: FB .DB $FB 000022A7: 03 .DB $03 000022A8: 81FB STA ($FB,X) 000022AA: 0681 ASL $81 000022AC: FB .DB $FB 000022AD: 03 .DB $03 000022AE: 81FB STA ($FB,X) 000022B0: 0681 ASL $81 000022B2: FB .DB $FB 000022B3: 03 .DB $03 000022B4: 81FB STA ($FB,X) 000022B6: 0681 ASL $81 000022B8: FB .DB $FB 000022B9: 03 .DB $03 000022BA: 81FF STA ($FF,X) 000022BC: 40 RTI 000022BD: F3 .DB $F3 000022BE: E0FF CPX #$FF 000022C0: 40 RTI 000022C1: F3 .DB $F3 000022C2: E0FF CPX #$FF 000022C4: 40 RTI 000022C5: F3 .DB $F3 000022C6: E0FB CPX #$FB 000022C8: 0602 ASL $02 000022CA: FB .DB $FB 000022CB: 03 .DB $03 000022CC: 81FB STA ($FB,X) 000022CE: 0681 ASL $81 000022D0: FB .DB $FB 000022D1: 03 .DB $03 000022D2: 81FB STA ($FB,X) 000022D4: 0681 ASL $81 000022D6: FB .DB $FB 000022D7: 03 .DB $03 000022D8: 81FB STA ($FB,X) 000022DA: 0681 ASL $81 000022DC: FB .DB $FB 000022DD: 03 .DB $03 000022DE: 81FB STA ($FB,X) 000022E0: 0602 ASL $02 000022E2: FB .DB $FB 000022E3: 03 .DB $03 000022E4: 81FB STA ($FB,X) 000022E6: 0681 ASL $81 000022E8: FB .DB $FB 000022E9: 03 .DB $03 000022EA: 81FB STA ($FB,X) 000022EC: 0681 ASL $81 000022EE: FB .DB $FB 000022EF: 03 .DB $03 000022F0: 81FB STA ($FB,X) 000022F2: 0681 ASL $81 000022F4: FB .DB $FB 000022F5: 03 .DB $03 000022F6: 81FB STA ($FB,X) 000022F8: 0681 ASL $81 000022FA: FB .DB $FB 000022FB: 03 .DB $03 000022FC: 81FB STA ($FB,X) 000022FE: 0681 ASL $81 00002300: FB .DB $FB 00002301: 03 .DB $03 00002302: 81FB STA ($FB,X) 00002304: 0681 ASL $81 00002306: FB .DB $FB 00002307: 03 .DB $03 00002308: 81FB STA ($FB,X) 0000230A: 0681 ASL $81 0000230C: FB .DB $FB 0000230D: 03 .DB $03 0000230E: 81FB STA ($FB,X) 00002310: 0602 ASL $02 00002312: FB .DB $FB 00002313: 03 .DB $03 00002314: 81FB STA ($FB,X) 00002316: 0681 ASL $81 00002318: FB .DB $FB 00002319: 03 .DB $03 0000231A: 81FB STA ($FB,X) 0000231C: 0602 ASL $02 0000231E: FB .DB $FB 0000231F: 03 .DB $03 00002320: 81FB STA ($FB,X) 00002322: 0681 ASL $81 00002324: FB .DB $FB 00002325: 03 .DB $03 00002326: 81FB STA ($FB,X) 00002328: 0602 ASL $02 0000232A: FB .DB $FB 0000232B: 03 .DB $03 0000232C: 81FB STA ($FB,X) 0000232E: 0681 ASL $81 00002330: FB .DB $FB 00002331: 03 .DB $03 00002332: 81FB STA ($FB,X) 00002334: 0681 ASL $81 00002336: FB .DB $FB 00002337: 03 .DB $03 00002338: 81FB STA ($FB,X) 0000233A: 0681 ASL $81 0000233C: FB .DB $FB 0000233D: 03 .DB $03 0000233E: 81FB STA ($FB,X) 00002340: 0602 ASL $02 00002342: FB .DB $FB 00002343: 03 .DB $03 00002344: 81FB STA ($FB,X) 00002346: 0681 ASL $81 00002348: FB .DB $FB 00002349: 03 .DB $03 0000234A: 81FB STA ($FB,X) 0000234C: 0681 ASL $81 0000234E: FB .DB $FB 0000234F: 03 .DB $03 00002350: 81FB STA ($FB,X) 00002352: 0681 ASL $81 00002354: FB .DB $FB 00002355: 03 .DB $03 00002356: 81FB STA ($FB,X) 00002358: 0602 ASL $02 0000235A: FB .DB $FB 0000235B: 03 .DB $03 0000235C: 81FB STA ($FB,X) 0000235E: 0681 ASL $81 00002360: FB .DB $FB 00002361: 03 .DB $03 00002362: 81FB STA ($FB,X) 00002364: 0683 ASL $83 00002366: FB .DB $FB 00002367: 03 .DB $03 00002368: 83 .DB $83 00002369: FB .DB $FB 0000236A: 0603 ASL $03 0000236C: FB .DB $FB 0000236D: 03 .DB $03 0000236E: 83 .DB $83 0000236F: FB .DB $FB 00002370: 0683 ASL $83 00002372: FB .DB $FB 00002373: 03 .DB $03 00002374: 83 .DB $83 00002375: FD7BDF SBC $DF7B,X 00002378: 00 BRK 00002379: 9D9F9F STA $9F9F,X 0000237C: 9F .DB $9F 0000237D: FD68E3 SBC $E368,X 00002380: 00 BRK 00002381: 9D9F9F STA $9F9F,X 00002384: 9F .DB $9F 00002385: FD70E3 SBC $E370,X 00002388: 00 BRK 00002389: 9D8F80 STA $808F,X 0000238C: 2D1500 AND $0015 0000238F: 859F STA $9F 00002391: 8F .DB $8F 00002392: 2D0010 AND $1000 00002395: 87 .DB $87 00002396: FD78E3 SBC $E378,X 00002399: 82 .DB $82 0000239A: 1E8518 ASL $1885,X 0000239D: 8584 STA $84 0000239F: 0A ASL A 000023A0: 8582 STA $82 000023A2: 1C .DB $1C 000023A3: 851E STA $1E 000023A5: 8518 STA $18 000023A7: 8584 STA $84 000023A9: 0A ASL A 000023AA: 8582 STA $82 000023AC: 1D1C81 ORA $811C,X 000023AF: 1E8518 ASL $1885,X 000023B2: 8584 STA $84 000023B4: 0A ASL A 000023B5: 8582 STA $82 000023B7: 1C .DB $1C 000023B8: 85FF STA $FF 000023BA: 0994 ORA #$94 000023BC: E3 .DB $E3 000023BD: FD89E3 SBC $E389,X 000023C0: FB .DB $FB 000023C1: 06FB ASL $FB 000023C3: 0683 ASL $83 000023C5: FB .DB $FB 000023C6: 03 .DB $03 000023C7: 83 .DB $83 000023C8: FB .DB $FB 000023C9: 0683 ASL $83 000023CB: FB .DB $FB 000023CC: 03 .DB $03 000023CD: 83 .DB $83 000023CE: FB .DB $FB 000023CF: 0603 ASL $03 000023D1: FB .DB $FB 000023D2: 03 .DB $03 000023D3: 83 .DB $83 000023D4: FB .DB $FB 000023D5: 0683 ASL $83 000023D7: FB .DB $FB 000023D8: 03 .DB $03 000023D9: 83 .DB $83 000023DA: FF .DB $FF 000023DB: 08 PHP 000023DC: B2 .DB $B2 000023DD: E3 .DB $E3 000023DE: FF .DB $FF 000023DF: 08 PHP 000023E0: B2 .DB $B2 000023E1: E3 .DB $E3 000023E2: FF .DB $FF 000023E3: 08 PHP 000023E4: B2 .DB $B2 000023E5: E3 .DB $E3 000023E6: FDB2E3 SBC $E3B2,X 000023E9: F9E3AC SBC $ACE3,Y 000023EC: E50A SBC $0A 000023EE: E4BD CPX $BD 000023F0: E523 SBC $23 000023F2: E4D6 CPX $D6 000023F4: E545 SBC $45 000023F6: E4F8 CPX $F8 000023F8: E567 SBC $67 000023FA: E41A CPX $1A 000023FC: E674 INC $74 000023FE: E427 CPX $27 00002400: E6D8 INC $D8 00002402: E489 CPX $89 00002404: E614 INC $14 00002406: E5BF SBC $BF 00002408: E683 INC $83 0000240A: B484 LDY $84,X 0000240C: FB .DB $FB 0000240D: 8501 STA $01 0000240F: 02 .DB $02 00002410: 83 .DB $83 00002411: B2 .DB $B2 00002412: 84FD STY $FD 00002414: 8500 STA $00 00002416: 02 .DB $02 00002417: 83 .DB $83 00002418: 3000 BMI $00 0000241A: 83 .DB $83 0000241B: B484 LDY $84,X 0000241D: FD8500 SBC $0085,X 00002420: 02 .DB $02 00002421: 83 .DB $83 00002422: B2 .DB $B2 00002423: 847E STY $7E 00002425: 02 .DB $02 00002426: 83 .DB $83 00002427: 3002 BMI $02 00002429: 83 .DB $83 0000242A: B184 LDA ($84),Y 0000242C: FB .DB $FB 0000242D: 8501 STA $01 0000242F: 02 .DB $02 00002430: 83 .DB $83 00002431: 3000 BMI $00 00002433: 83 .DB $83 00002434: F4 .DB $F4 00002435: 847E STY $7E 00002437: 8500 STA $00 00002439: 03 .DB $03 0000243A: 83 .DB $83 0000243B: 3003 BMI $03 0000243D: 83 .DB $83 0000243E: B584 LDA $84,X 00002440: FD0383 SBC $8303,X 00002443: 3003 BMI $03 00002445: 83 .DB $83 00002446: F2 .DB $F2 00002447: 847E STY $7E 00002449: 03 .DB $03 0000244A: 83 .DB $83 0000244B: 3003 BMI $03 0000244D: 83 .DB $83 0000244E: B184 LDA ($84),Y 00002450: FD0383 SBC $8303,X 00002453: 3000 BMI $00 00002455: 83 .DB $83 00002456: B484 LDY $84,X 00002458: FD8500 SBC $0085,X 0000245B: 03 .DB $03 0000245C: 83 .DB $83 0000245D: 3003 BMI $03 0000245F: 83 .DB $83 00002460: F4 .DB $F4 00002461: 847E STY $7E 00002463: 03 .DB $03 00002464: 83 .DB $83 00002465: 3003 BMI $03 00002467: 83 .DB $83 00002468: B2 .DB $B2 00002469: 84FD STY $FD 0000246B: 03 .DB $03 0000246C: 83 .DB $83 0000246D: 3003 BMI $03 0000246F: 83 .DB $83 00002470: F184 SBC ($84),Y 00002472: 7E0383 ROR $8303,X 00002475: 3000 BMI $00 00002477: 83 .DB $83 00002478: F3 .DB $F3 00002479: 847E STY $7E 0000247B: 8500 STA $00 0000247D: 02 .DB $02 0000247E: 83 .DB $83 0000247F: B102 LDA ($02),Y 00002481: 83 .DB $83 00002482: 3000 BMI $00 00002484: 83 .DB $83 00002485: B584 LDA $84,X 00002487: FD8500 SBC $0085,X 0000248A: 03 .DB $03 0000248B: 83 .DB $83 0000248C: B103 LDA ($03),Y 0000248E: 83 .DB $83 0000248F: F603 INC $03,X 00002491: 83 .DB $83 00002492: F103 SBC ($03),Y 00002494: 83 .DB $83 00002495: B684 LDX $84,Y 00002497: 7E0383 ROR $8303,X 0000249A: B2 .DB $B2 0000249B: 03 .DB $03 0000249C: 80 .DB $80 0000249D: B2 .DB $B2 0000249E: 81C9 STA ($C9,X) 000024A0: 82 .DB $82 000024A1: 00 BRK 000024A2: 83 .DB $83 000024A3: F4 .DB $F4 000024A4: 08 PHP 000024A5: 83 .DB $83 000024A6: F3 .DB $F3 000024A7: 08 PHP 000024A8: 83 .DB $83 000024A9: F2 .DB $F2 000024AA: 02 .DB $02 000024AB: 81C6 STA ($C6,X) 000024AD: 0181 ORA ($81,X) 000024AF: C502 CMP $02 000024B1: 81C8 STA ($C8,X) 000024B3: 0181 ORA ($81,X) 000024B5: CA DEX 000024B6: 0181 ORA ($81,X) 000024B8: CD0180 CMP $8001 000024BB: B183 LDA ($83),Y 000024BD: F101 SBC ($01),Y 000024BF: 81CC STA ($CC,X) 000024C1: 0181 ORA ($81,X) 000024C3: C901 CMP #$01 000024C5: 81C7 STA ($C7,X) 000024C7: 0181 ORA ($81,X) 000024C9: C502 CMP $02 000024CB: 81C8 STA ($C8,X) 000024CD: 0181 ORA ($81,X) 000024CF: C901 CMP #$01 000024D1: 81CC STA ($CC,X) 000024D3: 83 .DB $83 000024D4: 3001 BMI $01 000024D6: 81CD STA ($CD,X) 000024D8: 0181 ORA ($81,X) 000024DA: CC0181 CPY $8101 000024DD: C901 CMP #$01 000024DF: 81C7 STA ($C7,X) 000024E1: 0181 ORA ($81,X) 000024E3: C502 CMP $02 000024E5: 80 .DB $80 000024E6: 3000 BMI $00 000024E8: 83 .DB $83 000024E9: F3 .DB $F3 000024EA: 84FA STY $FA 000024EC: 8500 STA $00 000024EE: 0184 ORA ($84,X) 000024F0: F7 .DB $F7 000024F1: 0184 ORA ($84,X) 000024F3: F4 .DB $F4 000024F4: 0183 ORA ($83,X) 000024F6: F184 SBC ($84),Y 000024F8: F101 SBC ($01),Y 000024FA: 84EE STY $EE 000024FC: 0184 ORA ($84,X) 000024FE: EB .DB $EB 000024FF: 0183 ORA ($83,X) 00002501: F584 SBC $84,X 00002503: 7B .DB $7B 00002504: 0184 ORA ($84,X) 00002506: 78 SEI 00002507: 0184 ORA ($84,X) 00002509: 7501 ADC $01,X 0000250B: 83 .DB $83 0000250C: F2 .DB $F2 0000250D: 8472 STY $72 0000250F: 0184 ORA ($84,X) 00002511: 6F .DB $6F 00002512: 0184 ORA ($84,X) 00002514: 6C0184 JMP ($8401) 00002517: 6901 ADC #$01 00002519: 83 .DB $83 0000251A: F184 SBC ($84),Y 0000251C: 6601 ROR $01 0000251E: 8463 STY $63 00002520: 0183 ORA ($83,X) 00002522: 3000 BMI $00 00002524: 80 .DB $80 00002525: B2 .DB $B2 00002526: 81C9 STA ($C9,X) 00002528: 82 .DB $82 00002529: 00 BRK 0000252A: 83 .DB $83 0000252B: B584 LDA $84,X 0000252D: FD8500 SBC $0085,X 00002530: 03 .DB $03 00002531: 83 .DB $83 00002532: B103 LDA ($03),Y 00002534: 83 .DB $83 00002535: F603 INC $03,X 00002537: 83 .DB $83 00002538: F103 SBC ($03),Y 0000253A: 80 .DB $80 0000253B: B183 LDA ($83),Y 0000253D: B684 LDX $84,Y 0000253F: 1A .DB $1A 00002540: 8502 STA $02 00002542: 03 .DB $03 00002543: 80 .DB $80 00002544: B2 .DB $B2 00002545: 81D5 STA ($D5,X) 00002547: 83 .DB $83 00002548: B2 .DB $B2 00002549: 03 .DB $03 0000254A: 83 .DB $83 0000254B: F503 SBC $03,X 0000254D: 83 .DB $83 0000254E: F103 SBC ($03),Y 00002550: 83 .DB $83 00002551: B684 LDX $84,Y 00002553: 74 .DB $74 00002554: 8504 STA $04 00002556: 03 .DB $03 00002557: 80 .DB $80 00002558: B183 LDA ($83),Y 0000255A: B2 .DB $B2 0000255B: 03 .DB $03 0000255C: 80 .DB $80 0000255D: B2 .DB $B2 0000255E: 81E1 STA ($E1,X) 00002560: 83 .DB $83 00002561: F60C INC $0C,X 00002563: 83 .DB $83 00002564: F503 SBC $03,X 00002566: 81DE STA ($DE,X) 00002568: 0181 ORA ($81,X) 0000256A: DD0281 CMP $8102,X 0000256D: E001 CPX #$01 0000256F: 81E2 STA ($E2,X) 00002571: 0181 ORA ($81,X) 00002573: E583 SBC $83 00002575: F4 .DB $F4 00002576: 02 .DB $02 00002577: 81E4 STA ($E4,X) 00002579: 0181 ORA ($81,X) 0000257B: E101 SBC ($01,X) 0000257D: 81DF STA ($DF,X) 0000257F: 0181 ORA ($81,X) 00002581: DD0280 CMP $8002,X 00002584: B181 LDA ($81),Y 00002586: E001 CPX #$01 00002588: 81E1 STA ($E1,X) 0000258A: 83 .DB $83 0000258B: F3 .DB $F3 0000258C: 0181 ORA ($81,X) 0000258E: E401 CPX $01 00002590: 81E5 STA ($E5,X) 00002592: 0181 ORA ($81,X) 00002594: E401 CPX $01 00002596: 81E1 STA ($E1,X) 00002598: 0181 ORA ($81,X) 0000259A: DF .DB $DF 0000259B: 0181 ORA ($81,X) 0000259D: DD0281 CMP $8102,X 000025A0: DF .DB $DF 000025A1: 83 .DB $83 000025A2: F2 .DB $F2 000025A3: 0181 ORA ($81,X) 000025A5: E101 SBC ($01,X) 000025A7: 81E4 STA ($E4,X) 000025A9: 0181 ORA ($81,X) 000025AB: E501 SBC $01 000025AD: 81E4 STA ($E4,X) 000025AF: 0181 ORA ($81,X) 000025B1: E101 SBC ($01,X) 000025B3: 80 .DB $80 000025B4: 3002 BMI $02 000025B6: 83 .DB $83 000025B7: F104 SBC ($04),Y 000025B9: 83 .DB $83 000025BA: 3000 BMI $00 000025BC: 83 .DB $83 000025BD: B484 LDY $84,X 000025BF: D7 .DB $D7 000025C0: 8501 STA $01 000025C2: 02 .DB $02 000025C3: 83 .DB $83 000025C4: B2 .DB $B2 000025C5: 84EB STY $EB 000025C7: 8500 STA $00 000025C9: 02 .DB $02 000025CA: 83 .DB $83 000025CB: 3000 BMI $00 000025CD: 83 .DB $83 000025CE: B484 LDY $84,X 000025D0: EB .DB $EB 000025D1: 8500 STA $00 000025D3: 02 .DB $02 000025D4: 83 .DB $83 000025D5: B2 .DB $B2 000025D6: 8475 STY $75 000025D8: 02 .DB $02 000025D9: 83 .DB $83 000025DA: 3001 BMI $01 000025DC: 83 .DB $83 000025DD: B184 LDA ($84),Y 000025DF: D7 .DB $D7 000025E0: 8501 STA $01 000025E2: 02 .DB $02 000025E3: 83 .DB $83 000025E4: 3000 BMI $00 000025E6: 83 .DB $83 000025E7: F4 .DB $F4 000025E8: 8475 STY $75 000025EA: 8500 STA $00 000025EC: 03 .DB $03 000025ED: 83 .DB $83 000025EE: 3002 BMI $02 000025F0: 83 .DB $83 000025F1: B584 LDA $84,X 000025F3: EB .DB $EB 000025F4: 03 .DB $03 000025F5: 83 .DB $83 000025F6: 3002 BMI $02 000025F8: 83 .DB $83 000025F9: F2 .DB $F2 000025FA: 8475 STY $75 000025FC: 03 .DB $03 000025FD: 83 .DB $83 000025FE: 3002 BMI $02 00002600: 83 .DB $83 00002601: B184 LDA ($84),Y 00002603: EB .DB $EB 00002604: 03 .DB $03 00002605: 83 .DB $83 00002606: 3000 BMI $00 00002608: 83 .DB $83 00002609: B484 LDY $84,X 0000260B: EB .DB $EB 0000260C: 8500 STA $00 0000260E: 03 .DB $03 0000260F: 83 .DB $83 00002610: 3002 BMI $02 00002612: 83 .DB $83 00002613: F4 .DB $F4 00002614: 8475 STY $75 00002616: 03 .DB $03 00002617: 83 .DB $83 00002618: 3002 BMI $02 0000261A: 83 .DB $83 0000261B: B2 .DB $B2 0000261C: 84EB STY $EB 0000261E: 03 .DB $03 0000261F: 83 .DB $83 00002620: 3002 BMI $02 00002622: 83 .DB $83 00002623: F184 SBC ($84),Y 00002625: 7503 ADC $03,X 00002627: 83 .DB $83 00002628: 3000 BMI $00 0000262A: 83 .DB $83 0000262B: F3 .DB $F3 0000262C: 8475 STY $75 0000262E: 8500 STA $00 00002630: 02 .DB $02 00002631: 83 .DB $83 00002632: B102 LDA ($02),Y 00002634: 83 .DB $83 00002635: 3000 BMI $00 00002637: 83 .DB $83 00002638: B584 LDA $84,X 0000263A: EB .DB $EB 0000263B: 8500 STA $00 0000263D: 03 .DB $03 0000263E: 83 .DB $83 0000263F: B102 LDA ($02),Y 00002641: 83 .DB $83 00002642: F603 INC $03,X 00002644: 83 .DB $83 00002645: F102 SBC ($02),Y 00002647: 83 .DB $83 00002648: B684 LDX $84,Y 0000264A: 7503 ADC $03,X 0000264C: 83 .DB $83 0000264D: B2 .DB $B2 0000264E: 02 .DB $02 0000264F: 80 .DB $80 00002650: B2 .DB $B2 00002651: 81BA STA ($BA,X) 00002653: 82 .DB $82 00002654: 00 BRK 00002655: 83 .DB $83 00002656: F4 .DB $F4 00002657: 08 PHP 00002658: 83 .DB $83 00002659: F3 .DB $F3 0000265A: 07 .DB $07 0000265B: 81B7 STA ($B7,X) 0000265D: 0181 ORA ($81,X) 0000265F: B683 LDX $83,Y 00002661: F2 .DB $F2 00002662: 02 .DB $02 00002663: 81B9 STA ($B9,X) 00002665: 0181 ORA ($81,X) 00002667: BB .DB $BB 00002668: 0180 ORA ($80,X) 0000266A: B181 LDA ($81),Y 0000266C: BE0281 LDX $8102,Y 0000266F: BD0181 LDA $8101,X 00002672: BA TSX 00002673: 0181 ORA ($81,X) 00002675: B8 CLV 00002676: 83 .DB $83 00002677: F101 SBC ($01),Y 00002679: 81B6 STA ($B6,X) 0000267B: 02 .DB $02 0000267C: 81B9 STA ($B9,X) 0000267E: 0181 ORA ($81,X) 00002680: BA TSX 00002681: 0181 ORA ($81,X) 00002683: BD0181 LDA $8101,X 00002686: BE0181 LDX $8101,Y 00002689: BD0181 LDA $8101,X 0000268C: BA TSX 0000268D: 83 .DB $83 0000268E: 3001 BMI $01 00002690: 81B8 STA ($B8,X) 00002692: 0181 ORA ($81,X) 00002694: B601 LDX $01,Y 00002696: 80 .DB $80 00002697: 3000 BMI $00 00002699: 83 .DB $83 0000269A: F3 .DB $F3 0000269B: 84E8 STY $E8 0000269D: 8500 STA $00 0000269F: 0184 ORA ($84,X) 000026A1: E501 SBC $01 000026A3: 84E2 STY $E2 000026A5: 0183 ORA ($83,X) 000026A7: F184 SBC ($84),Y 000026A9: DF .DB $DF 000026AA: 0184 ORA ($84,X) 000026AC: DC .DB $DC 000026AD: 0183 ORA ($83,X) 000026AF: F584 SBC $84,X 000026B1: 72 .DB $72 000026B2: 0184 ORA ($84,X) 000026B4: 6F .DB $6F 000026B5: 0184 ORA ($84,X) 000026B7: 6C0183 JMP ($8301) 000026BA: F2 .DB $F2 000026BB: 8469 STY $69 000026BD: 0184 ORA ($84,X) 000026BF: 6601 ROR $01 000026C1: 8463 STY $63 000026C3: 0183 ORA ($83,X) 000026C5: F184 SBC ($84),Y 000026C7: 60 RTS 000026C8: 0184 ORA ($84,X) 000026CA: 5D0183 EOR $8301,X 000026CD: 3000 BMI $00 000026CF: 80 .DB $80 000026D0: B2 .DB $B2 000026D1: 81BA STA ($BA,X) 000026D3: 82 .DB $82 000026D4: 00 BRK 000026D5: 83 .DB $83 000026D6: B584 LDA $84,X 000026D8: EB .DB $EB 000026D9: 8500 STA $00 000026DB: 03 .DB $03 000026DC: 83 .DB $83 000026DD: B102 LDA ($02),Y 000026DF: 83 .DB $83 000026E0: F603 INC $03,X 000026E2: 83 .DB $83 000026E3: F102 SBC ($02),Y 000026E5: 80 .DB $80 000026E6: B183 LDA ($83),Y 000026E8: B684 LDX $84,Y 000026EA: F3 .DB $F3 000026EB: 8501 STA $01 000026ED: 03 .DB $03 000026EE: 80 .DB $80 000026EF: B2 .DB $B2 000026F0: 81C6 STA ($C6,X) 000026F2: 83 .DB $83 000026F3: B2 .DB $B2 000026F4: 02 .DB $02 000026F5: 83 .DB $83 000026F6: F503 SBC $03,X 000026F8: 83 .DB $83 000026F9: F102 SBC ($02),Y 000026FB: 83 .DB $83 000026FC: B684 LDX $84,Y 000026FE: 23 .DB $23 000026FF: 8504 STA $04 00002701: 03 .DB $03 00002702: 80 .DB $80 00002703: B183 LDA ($83),Y 00002705: B2 .DB $B2 00002706: 02 .DB $02 00002707: 80 .DB $80 00002708: B2 .DB $B2 00002709: 81D1 STA ($D1,X) 0000270B: 83 .DB $83 0000270C: F60A INC $0A,X 0000270E: 83 .DB $83 0000270F: F503 SBC $03,X 00002711: 81CE STA ($CE,X) 00002713: 0181 ORA ($81,X) 00002715: CD0281 CMP $8102 00002718: D001 BNE $01 0000271A: 81D2 STA ($D2,X) 0000271C: 0181 ORA ($81,X) 0000271E: D583 CMP $83,X 00002720: F4 .DB $F4 00002721: 02 .DB $02 00002722: 81D4 STA ($D4,X) 00002724: 0181 ORA ($81,X) 00002726: D101 CMP ($01),Y 00002728: 81CF STA ($CF,X) 0000272A: 0180 ORA ($80,X) 0000272C: B181 LDA ($81),Y 0000272E: CD0281 CMP $8102 00002731: D001 BNE $01 00002733: 81D1 STA ($D1,X) 00002735: 83 .DB $83 00002736: F3 .DB $F3 00002737: 0181 ORA ($81,X) 00002739: D4 .DB $D4 0000273A: 0181 ORA ($81,X) 0000273C: D501 CMP $01,X 0000273E: 81D4 STA ($D4,X) 00002740: 0181 ORA ($81,X) 00002742: D101 CMP ($01),Y 00002744: 81CF STA ($CF,X) 00002746: 0181 ORA ($81,X) 00002748: CD0281 CMP $8102 0000274B: CF .DB $CF 0000274C: 83 .DB $83 0000274D: F2 .DB $F2 0000274E: 0181 ORA ($81,X) 00002750: D101 CMP ($01),Y 00002752: 81D4 STA ($D4,X) 00002754: 0181 ORA ($81,X) 00002756: D501 CMP $01,X 00002758: 80 .DB $80 00002759: 3002 BMI $02 0000275B: 83 .DB $83 0000275C: 3000 BMI $00 0000275E: 5C .DB $5C 0000275F: E7 .DB $E7 00002760: 66E7 ROR $E7 00002762: 80 .DB $80 00002763: E7 .DB $E7 00002764: 94E7 STY $E7,X 00002766: AEE7C8 LDX $C8E7 00002769: E7 .DB $E7 0000276A: E2 .DB $E2 0000276B: E7 .DB $E7 0000276C: 04 .DB $04 0000276D: 12 .DB $12 0000276E: 07 .DB $07 0000276F: 92 .DB $92 00002770: 206080 JSR $8060 00002773: 206081 JSR $8160 00002776: 02 .DB $02 00002777: BC1450 LDY $5014,X 0000277A: 02 .DB $02 0000277B: 14 .DB $14 0000277C: 7003 BVS $03 0000277E: 54 .DB $54 0000277F: 9003 BCC $03 00002781: 54 .DB $54 00002782: B002 BCS $02 00002784: A450 LDY $50 00002786: 02 .DB $02 00002787: A470 LDY $70 00002789: 03 .DB $03 0000278A: E490 CPX $90 0000278C: 03 .DB $03 0000278D: E4B0 CPX $B0 0000278F: 82 .DB $82 00002790: 02 .DB $02 00002791: BC1820 LDY $2018,X 00002794: 04 .DB $04 00002795: 18 CLC 00002796: 40 RTI 00002797: 0518 ORA $18 00002799: 60 RTS 0000279A: 0618 ASL $18 0000279C: 80 .DB $80 0000279D: 07 .DB $07 0000279E: 18 CLC 0000279F: A008 LDY #$08 000027A1: 18 CLC 000027A2: C089 CPY #$89 000027A4: 02 .DB $02 000027A5: BC1800 LDY $0018,X 000027A8: 0A ASL A 000027A9: 18 CLC 000027AA: 200B18 JSR $180B 000027AD: 40 RTI 000027AE: 0C .DB $0C 000027AF: 18 CLC 000027B0: 60 RTS 000027B1: 0D1880 ORA $8018 000027B4: 0E18A0 ASL $A018 000027B7: 0F .DB $0F 000027B8: 18 CLC 000027B9: C010 CPY #$10 000027BB: 18 CLC 000027BC: E089 CPX #$89 000027BE: 02 .DB $02 000027BF: BC1800 LDY $0018,X 000027C2: 1118 ORA ($18),Y 000027C4: 201218 JSR $1812 000027C7: 40 RTI 000027C8: 13 .DB $13 000027C9: 18 CLC 000027CA: 60 RTS 000027CB: 14 .DB $14 000027CC: 18 CLC 000027CD: 80 .DB $80 000027CE: 1518 ORA $18,X 000027D0: A016 LDY #$16 000027D2: 18 CLC 000027D3: C017 CPY #$17 000027D5: 18 CLC 000027D6: E089 CPX #$89 000027D8: 02 .DB $02 000027D9: BC1800 LDY $0018,X 000027DC: 18 CLC 000027DD: 18 CLC 000027DE: 201918 JSR $1819 000027E1: 40 RTI 000027E2: 1A .DB $1A 000027E3: 18 CLC 000027E4: 60 RTS 000027E5: 1B .DB $1B 000027E6: 18 CLC 000027E7: 80 .DB $80 000027E8: 1C .DB $1C 000027E9: 18 CLC 000027EA: A01D LDY #$1D 000027EC: 18 CLC 000027ED: C01E CPY #$1E 000027EF: 18 CLC 000027F0: E089 CPX #$89 000027F2: 02 .DB $02 000027F3: BC1800 LDY $0018,X 000027F6: 18 CLC 000027F7: 18 CLC 000027F8: 201918 JSR $1819 000027FB: 40 RTI 000027FC: 1A .DB $1A 000027FD: 18 CLC 000027FE: 60 RTS 000027FF: 1F .DB $1F 00002800: 18 CLC 00002801: 80 .DB $80 00002802: 2018A0 JSR $A018 00002805: 2118 AND ($18,X) 00002807: C010 CPY #$10 00002809: 18 CLC 0000280A: E0A2 CPX #$A2 0000280C: 68 PLA 0000280D: EDF6EA SBC $EAF6 00002810: A7 .DB $A7 00002811: F008 BEQ $08 00002813: E8 INX 00002814: AB .DB $AB 00002815: EF .DB $EF 00002816: 4EE77B LSR $7BE7 00002819: BA TSX 0000281A: 00 BRK 0000281B: 07 .DB $07 0000281C: 00 BRK 0000281D: C00F CPY #$0F 0000281F: 08 PHP 00002820: 08 PHP 00002821: 00 BRK 00002822: 3010 BMI $10 00002824: 03 .DB $03 00002825: 3F .DB $3F 00002826: 38 SEC 00002827: 2D4000 AND $0040 0000282A: 3F .DB $3F 0000282B: 87 .DB $87 0000282C: 80 .DB $80 0000282D: 1008 BPL $08 0000282F: FF .DB $FF 00002830: 97 .DB $97 00002831: 9007 BCC $07 00002833: 0F .DB $0F 00002834: 0A ASL A 00002835: 0E0400 ASL $0004 00002838: 0198 ORA ($98,X) 0000283A: 90F0 BCC $F0 0000283C: F8 SED 0000283D: 38 SEC 0000283E: 38 SEC 0000283F: 60 RTS 00002840: 38 SEC 00002841: 78 SEI 00002842: F0E0 BEQ $E0 00002844: FC .DB $FC 00002845: B7 .DB $B7 00002846: B098 BCS $98 00002848: 78 SEI 00002849: 03 .DB $03 0000284A: 219B AND ($9B,X) 0000284C: 98 TYA 0000284D: 0E0F0F ASL $0F0F 00002850: 00 BRK 00002851: 98 TYA 00002852: 90C0 BCC $C0 00002854: 80 .DB $80 00002855: 1103 ORA ($03),Y 00002857: 00 BRK 00002858: F8 SED 00002859: F8 SED 0000285A: 00 BRK 0000285B: D8 CLD 0000285C: B000 BCS $00 0000285E: 0103 ORA ($03,X) 00002860: 20070E JSR $0E07 00002863: 1C .DB $1C 00002864: 3F .DB $3F 00002865: 3F .DB $3F 00002866: A9A0 LDA #$A0 00002868: F0F0 BEQ $F0 0000286A: F8 SED 0000286B: 7070 BVS $70 0000286D: 70B8 BVS $B8 0000286F: B019 BCS $19 00002871: F660 INC $60,X 00002873: 599890 EOR $9098,Y 00002876: 2E2B03 ROL $032B 00002879: 6C6818 JMP ($1868) 0000287C: EF .DB $EF 0000287D: 07 .DB $07 0000287E: 0F .DB $0F 0000287F: 1C .DB $1C 00002880: 18 CLC 00002881: 1C .DB $1C 00002882: 0F .DB $0F 00002883: 04 .DB $04 00002884: 07 .DB $07 00002885: 0F .DB $0F 00002886: A8 TAY 00002887: A0E0 LDY #$E0 00002889: F038 BEQ $38 0000288B: 18 CLC 0000288C: 38 SEC 0000288D: 08 PHP 0000288E: F0E0 BEQ $E0 00002890: F0D8 BEQ $D8 00002892: B01C BCS $1C 00002894: 38 SEC 00002895: 38 SEC 00002896: 38 SEC 00002897: C3 .DB $C3 00002898: 9F .DB $9F 00002899: 9C .DB $9C 0000289A: E8 INX 0000289B: DF .DB $DF 0000289C: 38 SEC 0000289D: 1C .DB $1C 0000289E: 1C .DB $1C 0000289F: 1C .DB $1C 000028A0: AF .DB $AF 000028A1: AC0BEF LDY $EF0B 000028A4: 04 .DB $04 000028A5: C1C1 CMP ($C1,X) 000028A7: 18 CLC 000028A8: 0D3C7C ORA $7C3C 000028AB: FC .DB $FC 000028AC: FC .DB $FC 000028AD: DC .DB $DC 000028AE: 03 .DB $03 000028AF: ECE928 CPX $28E9 000028B2: 203E7F JSR $7F3E 000028B5: F7 .DB $F7 000028B6: E3 .DB $E3 000028B7: E0E0 CPX #$E0 000028B9: E4FE CPX $FE 000028BB: FF .DB $FF 000028BC: 3A .DB $3A 000028BD: 3083 BMI $83 000028BF: 83 .DB $83 000028C0: D9BC5E CMP $5EBC,Y 000028C3: 58 CLI 000028C4: 68 PLA 000028C5: 5F .DB $5F 000028C6: D2 .DB $D2 000028C7: E3 .DB $E3 000028C8: 6C687F JMP ($7F68) 000028CB: 3E786F ROL $6F78,X 000028CE: 83 .DB $83 000028CF: 7C .DB $7C 000028D0: 78 SEI 000028D1: 89 .DB $89 000028D2: 7D0310 ADC $1003,X 000028D5: 0B .DB $0B 000028D6: 98 TYA 000028D7: 8EFCFE STX $FEFC 000028DA: CE0E0E DEC $0E0E 000028DD: 0E047C ASL $7C04 000028E0: 7C .DB $7C 000028E1: A8 TAY 000028E2: A03F LDY #$3F 000028E4: 7F .DB $7F 000028E5: 73 .DB $73 000028E6: 03 .DB $03 000028E7: 03 .DB $03 000028E8: F8 SED 000028E9: 07 .DB $07 000028EA: 0F .DB $0F 000028EB: 1EB9B0 ASL $B0B9,X 000028EE: 7F .DB $7F 000028EF: 78 SEI 000028F0: CCC00F CPY $0FC0 000028F3: 0B .DB $0B 000028F4: D8 CLD 000028F5: D021 BNE $21 000028F7: 9E .DB $9E 000028F8: 9B .DB $9B 000028F9: 0ECEFE ASL $FECE 000028FC: FC .DB $FC 000028FD: E8 INX 000028FE: DF .DB $DF 000028FF: 3C .DB $3C 00002900: 78 SEI 00002901: E070 CPX #$70 00002903: 7070 BVS $70 00002905: 7F .DB $7F 00002906: 7F .DB $7F 00002907: FDEF3D SBC $3DEF,X 0000290A: 3A .DB $3A 0000290B: 8B .DB $8B 0000290C: 80 .DB $80 0000290D: 03 .DB $03 0000290E: 0E099A ASL $9A09 00002911: 9086 BCC $86 00002913: 8680 STX $80 00002915: 80 .DB $80 00002916: FC .DB $FC 00002917: FE0128 INC $2801,X 0000291A: 20060E JSR $0E06 0000291D: 1E3666 ASL $6636,X 00002920: 667F ROR $7F 00002922: BE7FFD LDX $FD7F,Y 00002925: F0BB BEQ $BB 00002927: B8 CLV 00002928: 48 PHA 00002929: 40 RTI 0000292A: 0F .DB $0F 0000292B: 0958 ORA #$58 0000292D: 4E865C LSR $5C86 00002930: 58 CLI 00002931: 1DE8DD ORA $DDE8,X 00002934: 066E ASL $6E 00002936: 68 PLA 00002937: FDEF88 SBC $88EF,X 0000293A: 7DC1C3 ADC $C3C1,X 0000293D: C7 .DB $C7 0000293E: 02 .DB $02 0000293F: C7 .DB $C7 00002940: 18 CLC 00002941: 0C .DB $0C 00002942: 8F .DB $8F 00002943: 9F .DB $9F 00002944: 98 TYA 00002945: 80 .DB $80 00002946: 80 .DB $80 00002947: 8104 STA ($04,X) 00002949: 83 .DB $83 0000294A: 87 .DB $87 0000294B: A8 TAY 0000294C: A087 LDY #$87 0000294E: CF .DB $CF 0000294F: CCCCCC CPY $CCCC 00002952: 08 PHP 00002953: C7 .DB $C7 00002954: 8F .DB $8F 00002955: 0C .DB $0C 00002956: B8 CLV 00002957: B0C3 BCS $C3 00002959: E3 .DB $E3 0000295A: 63 .DB $63 0000295B: 63 .DB $63 0000295C: 1663 ASL $63,X 0000295E: BB .DB $BB 0000295F: B8 CLV 00002960: 4E40C1 LSR $C140 00002963: D8 CLD 00002964: CF .DB $CF 00002965: 8E9C98 STX $989C 00002968: 5098 BVC $98 0000296A: 98 TYA 0000296B: 9F .DB $9F 0000296C: 9F .DB $9F 0000296D: E8 INX 0000296E: DF .DB $DF 0000296F: 0C .DB $0C 00002970: ECE8CF CPX $CFE8 00002973: 86C7 STX $C7 00002975: F8 SED 00002976: EF .DB $EF 00002977: BDBA63 LDA $63BA,X 0000297A: 63 .DB $63 0000297B: E3 .DB $E3 0000297C: C3 .DB $C3 0000297D: 08 PHP 0000297E: FF .DB $FF 0000297F: 30C3 BMI $C3 00002981: C7 .DB $C7 00002982: C6C0 DEC $C0 00002984: 0E0B18 ASL $180B 00002987: 0F .DB $0F 00002988: E7 .DB $E7 00002989: F7 .DB $F7 0000298A: 203636 JSR $3636 0000298D: 3677 ROL $77,X 0000298F: E7 .DB $E7 00002990: 58 CLI 00002991: 4F .DB $4F 00002992: E7 .DB $E7 00002993: EF .DB $EF 00002994: C9EE CMP #$EE 00002996: EA NOP 00002997: EF .DB $EF 00002998: 6CBBB0 JMP ($B0BB) 0000299B: 03 .DB $03 0000299C: 03 .DB $03 0000299D: C8 INY 0000299E: BD0B08 LDA $080B,X 000029A1: 10C6 BPL $C6 000029A3: C6C7 DEC $C7 000029A5: C7 .DB $C7 000029A6: 58 CLI 000029A7: 4F .DB $4F 000029A8: 80 .DB $80 000029A9: 00 BRK 000029AA: 00 BRK 000029AB: 5006 BVC $06 000029AD: 06F7 ASL $F7 000029AF: F3 .DB $F3 000029B0: 68 PLA 000029B1: 5F .DB $5F 000029B2: 6C6C68 JMP ($686C) 000029B5: EF .DB $EF 000029B6: 0508 ORA $08 000029B8: EEC758 INC $58C7 000029BB: 49F0 EOR #$F0 000029BD: F103 SBC ($03),Y 000029BF: 03 .DB $03 000029C0: 00 BRK 000029C1: 88 DEY 000029C2: E0F0 CPX #$F0 000029C4: 30A8 BMI $A8 000029C6: A0C7 LDY #$C7 000029C8: CF .DB $CF 000029C9: CC100C CPY $0C10 000029CC: 1A .DB $1A 000029CD: C3 .DB $C3 000029CE: BEB083 LDX $83B0,Y 000029D1: 08 PHP 000029D2: FF .DB $FF 000029D3: 0F .DB $0F 000029D4: 0B .DB $0B 000029D5: C6C7 DEC $C7 000029D7: C3 .DB $C3 000029D8: 25D8 AND $D8 000029DA: CF .DB $CF 000029DB: 30DC BMI $DC 000029DD: D8 CLD 000029DE: F0E0 BEQ $E0 000029E0: E8 INX 000029E1: DF .DB $DF 000029E2: C6CC DEC $CC 000029E4: 29EC AND #$EC 000029E6: E9CF SBC #$CF 000029E8: CF .DB $CF 000029E9: F8 SED 000029EA: EF .DB $EF 000029EB: 03 .DB $03 000029EC: FC .DB $FC 000029ED: F8 SED 000029EE: E3 .DB $E3 000029EF: E3 .DB $E3 000029F0: 6108 ADC ($08,X) 000029F2: FF .DB $FF 000029F3: C1C3 CMP ($C3,X) 000029F5: C7 .DB $C7 000029F6: C10F CMP ($0F,X) 000029F8: 0B .DB $0B 000029F9: 18 CLC 000029FA: 109E BPL $9E 000029FC: 06B3 ASL $B3 000029FE: 1F .DB $1F 000029FF: 192820 ORA $2028,Y 00002A02: 7018 BVS $18 00002A04: 191B1B ORA $1B1B,Y 00002A07: E8 INX 00002A08: 1B .DB $1B 00002A09: 3B .DB $3B 00002A0A: 7079 BVS $79 00002A0C: 70E3 BVS $E3 00002A0E: BDB948 LDA $48B9,X 00002A11: 3E100B ROL $0B10,X 00002A14: ACC1C1 LDY $C1C1 00002A17: 58 CLI 00002A18: 4F .DB $4F 00002A19: 1F .DB $1F 00002A1A: 199E68 ORA $689E,Y 00002A1D: 5F .DB $5F 00002A1E: 60 RTS 00002A1F: 6D6852 ADC $5268 00002A22: 78 SEI 00002A23: 7D6F63 ADC $636F,X 00002A26: 63 .DB $63 00002A27: 88 DEY 00002A28: 7F .DB $7F 00002A29: CF .DB $CF 00002A2A: 100B BPL $0B 00002A2C: C3 .DB $C3 00002A2D: 2A ROL A 00002A2E: C7 .DB $C7 00002A2F: 98 TYA 00002A30: 901E BCC $1E 00002A32: 1F .DB $1F 00002A33: 1933A8 ORA $A833,Y 00002A36: A00C LDY #$0C 00002A38: 1D403D ORA $3D40,X 00002A3B: 6D6D6D ADC $6D6D 00002A3E: 7C .DB $7C 00002A3F: 0DB8B0 ORA $B0B8 00002A42: E3 .DB $E3 00002A43: 291E AND #$1E 00002A45: 19E3B3 ORA $B3E3,Y 00002A48: C8 INY 00002A49: C0CE CPY #$CE 00002A4B: EDE9CC SBC $CCE9 00002A4E: CF .DB $CF 00002A4F: ADD8CF LDA $CFD8 00002A52: 33 .DB $33 00002A53: DDD868 CMP $68D8,X 00002A56: 5E0DED LSR $ED0D,X 00002A59: E8 INX 00002A5A: 0C .DB $0C 00002A5B: F8 SED 00002A5C: EF .DB $EF 00002A5D: 43 .DB $43 00002A5E: 1F .DB $1F 00002A5F: 190BFE ORA $FE0B,Y 00002A62: CDCDCD CMP $CDCD 00002A65: CF .DB $CF 00002A66: 28 PLP 00002A67: 0F .DB $0F 00002A68: 38 SEC 00002A69: D1AE CMP ($AE),Y 00002A6B: AB .DB $AB 00002A6C: 6D6D3D ADC $3D6D 00002A6F: BA TSX 00002A70: AF .DB $AF 00002A71: 83 .DB $83 00002A72: 3D3AC8 AND $C83A,X 00002A75: BE3368 LDX $6833,Y 00002A78: 48 PHA 00002A79: EDE86D SBC $6DE8 00002A7C: 38 SEC 00002A7D: 08 PHP 00002A7E: EF .DB $EF 00002A7F: 0E0ACD ASL $CD0A 00002A82: CD04C7 CMP $C704 00002A85: CD9890 CMP $9098 00002A88: 068E ASL $8E 00002A8A: 9E .DB $9E 00002A8B: 8686 STX $86 00002A8D: 48 PHA 00002A8E: 8606 STX $06 00002A90: 86A8 STX $A8 00002A92: A039 LDY #$39 00002A94: 6CADA9 JMP ($A9AD) 00002A97: 3C .DB $3C 00002A98: 660C ROR $0C 00002A9A: B9B0DD LDA $DDB0,Y 00002A9D: D8 CLD 00002A9E: 73 .DB $73 00002A9F: E3 .DB $E3 00002AA0: C8 INY 00002AA1: C08E CPY #$8E 00002AA3: 89 .DB $89 00002AA4: CD5EC7 CMP $C75E 00002AA7: D8 CLD 00002AA8: CF .DB $CF 00002AA9: 9E .DB $9E 00002AAA: 9B .DB $9B 00002AAB: 9F .DB $9F 00002AAC: 9B .DB $9B 00002AAD: 6E5F39 ROR $395F 00002AB0: F8 SED 00002AB1: EF .DB $EF 00002AB2: C3 .DB $C3 00002AB3: 213E AND ($3E,X) 00002AB5: 3A .DB $3A 00002AB6: 83 .DB $83 00002AB7: F3 .DB $F3 00002AB8: 03 .DB $03 00002AB9: 00 BRK 00002ABA: 07 .DB $07 00002ABB: 00 BRK 00002ABC: FF .DB $FF 00002ABD: FF .DB $FF 00002ABE: 78 SEI 00002ABF: F0E0 BEQ $E0 00002AC1: C00F CPY #$0F 00002AC3: 0C .DB $0C 00002AC4: 0A ASL A 00002AC5: 00 BRK 00002AC6: 08 PHP 00002AC7: 00 BRK 00002AC8: 0A ASL A 00002AC9: 02 .DB $02 00002ACA: 0F .DB $0F 00002ACB: 9C .DB $9C 00002ACC: 07 .DB $07 00002ACD: 03 .DB $03 00002ACE: 2F .DB $2F 00002ACF: 2C0800 BIT $0008 00002AD2: 100C BPL $0C 00002AD4: E0F0 CPX #$F0 00002AD6: 2A ROL A 00002AD7: 18 CLC 00002AD8: 93 .DB $93 00002AD9: 08 PHP 00002ADA: 00 BRK 00002ADB: 302C BMI $2C 00002ADD: 07 .DB $07 00002ADE: 0F .DB $0F 00002ADF: 1C .DB $1C 00002AE0: 18 CLC 00002AE1: 0F .DB $0F 00002AE2: 1F .DB $1F 00002AE3: 8480 STY $80 00002AE5: E7 .DB $E7 00002AE6: 12 .DB $12 00002AE7: 08 PHP 00002AE8: 98 TYA 00002AE9: 9008 BCC $08 00002AEB: 00 BRK 00002AEC: F0F8 BEQ $F8 00002AEE: B4B0 LDY $B0,X 00002AF0: 3028 BMI $28 00002AF2: C4C0 CPY $C0 00002AF4: 4C1F0F JMP $0F1F 00002AF7: 40 RTI 00002AF8: 3682 ROL $82,X 00002AFA: 74 .DB $74 00002AFB: FF .DB $FF 00002AFC: FF .DB $FF 00002AFD: B4B0 LDY $B0,X 00002AFF: F8 SED 00002B00: 06F0 ASL $F0 00002B02: 60 RTS 00002B03: 56C0 LSR $C0,X 00002B05: C03F CPY #$3F 00002B07: 02 .DB $02 00002B08: 00 BRK 00002B09: 1100 ORA ($00),Y 00002B0B: 18 CLC 00002B0C: 18 CLC 00002B0D: 18 CLC 00002B0E: 00 BRK 00002B0F: 18 CLC 00002B10: 00 BRK 00002B11: 44 .DB $44 00002B12: 00 BRK 00002B13: 3C .DB $3C 00002B14: 1F .DB $1F 00002B15: 190000 ORA $0000,Y 00002B18: 3606 ROL $06,X 00002B1A: 00 BRK 00002B1B: 7F .DB $7F 00002B1C: 04 .DB $04 00002B1D: 7F .DB $7F 00002B1E: 7F .DB $7F 00002B1F: 0600 ASL $00 00002B21: 367E ROL $7E,X 00002B23: 247E BIT $7E 00002B25: 6C052A JMP ($2A05) 00002B28: 27 .DB $27 00002B29: FF .DB $FF 00002B2A: 3E3AFE ROL $FE3A,X 00002B2D: 00 BRK 00002B2E: 00 BRK 00002B2F: 1E2814 ASL $1428,X 00002B32: 1C .DB $1C 00002B33: 0A ASL A 00002B34: 22 .DB $22 00002B35: 1F .DB $1F 00002B36: 3F .DB $3F 00002B37: 2C297F BIT $7F29 00002B3A: 7F .DB $7F 00002B3B: 7E7123 ROR $2371,X 00002B3E: 20061C JSR $1C06 00002B41: 3025 BMI $25 00002B43: 22 .DB $22 00002B44: 4F .DB $4F 00002B45: 4A LSR A 00002B46: 2E2A18 ROL $182A 00002B49: 5020 BVC $20 00002B4B: 1A .DB $1A 00002B4C: 241A BIT $1A 00002B4E: 1A .DB $1A 00002B4F: 17 .DB $17 00002B50: 7C .DB $7C 00002B51: 4E4A3F LSR $3F4A 00002B54: AF .DB $AF 00002B55: 13 .DB $13 00002B56: 1006 BPL $06 00002B58: 00 BRK 00002B59: 22 .DB $22 00002B5A: 1D0400 ORA $0004,X 00002B5D: 0C .DB $0C 00002B5E: 1512 ORA $12,X 00002B60: 0C .DB $0C 00002B61: 43 .DB $43 00002B62: 40 RTI 00002B63: 00 BRK 00002B64: 3E3E3C ROL $3C3E,X 00002B67: 3E3E1E ROL $1E3E,X 00002B6A: 00 BRK 00002B6B: 00 BRK 00002B6C: 02 .DB $02 00002B6D: 3015 BMI $15 00002B6F: 12 .DB $12 00002B70: 3000 BMI $00 00002B72: 00 BRK 00002B73: 78 SEI 00002B74: 7C .DB $7C 00002B75: 7C .DB $7C 00002B76: 103C BPL $3C 00002B78: 7C .DB $7C 00002B79: 7C .DB $7C 00002B7A: 78 SEI 00002B7B: 23 .DB $23 00002B7C: 201C3E JSR $3E1C 00002B7F: 1C .DB $1C 00002B80: 0162 ORA ($62,X) 00002B82: 5608 LSR $08,X 00002B84: 08 PHP 00002B85: 3E0808 ROL $0808,X 00002B88: 00 BRK 00002B89: 00 BRK 00002B8A: E41C CPX $1C 00002B8C: 1C .DB $1C 00002B8D: 2C291C BIT $1C29 00002B90: 1C .DB $1C 00002B91: 13 .DB $13 00002B92: 0D9996 ORA $9699 00002B95: 7A .DB $7A 00002B96: 7671 ROR $71,X 00002B98: A29D LDX #$9D 00002B9A: 00 BRK 00002B9B: 00 BRK 00002B9C: 3E3223 ROL $2332,X 00002B9F: 93 .DB $93 00002BA0: 9006 BCC $06 00002BA2: 00 BRK 00002BA3: 78 SEI 00002BA4: 02 .DB $02 00002BA5: 78 SEI 00002BA6: A29F LDX #$9F 00002BA8: 060C ASL $0C 00002BAA: 18 CLC 00002BAB: 3060 BMI $60 00002BAD: 00 BRK 00002BAE: 00 BRK 00002BAF: 00 BRK 00002BB0: 0F .DB $0F 00002BB1: 1F .DB $1F 00002BB2: 3F .DB $3F 00002BB3: 7EFCF8 ROR $F8FC,X 00002BB6: F0D1 BEQ $D1 00002BB8: BA TSX 00002BB9: B7 .DB $B7 00002BBA: 3636 ROL $36,X 00002BBC: 36C2 ROL $C2,X 00002BBE: BF .DB $BF 00002BBF: 3E4F4A ROL $4A4F,X 00002BC2: D7 .DB $D7 00002BC3: D4 .DB $D4 00002BC4: FC .DB $FC 00002BC5: 1C .DB $1C 00002BC6: 0C .DB $0C 00002BC7: 1613 ASL $13,X 00002BC9: D5D2 CMP $D2,X 00002BCB: 908D BCC $8D 00002BCD: 1F .DB $1F 00002BCE: 1C .DB $1C 00002BCF: 6A ROR A 00002BD0: 67 .DB $67 00002BD1: 5653 LSR $53,X 00002BD3: 85D7 STA $D7 00002BD5: D4 .DB $D4 00002BD6: 7E625A ROR $5A62,X 00002BD9: 3C .DB $3C 00002BDA: 061E ASL $1E 00002BDC: 0649 ASL $49 00002BDE: 4687 LSR $87 00002BE0: 2C294C BIT $4C29 00002BE3: 4953 EOR #$53 00002BE5: 4F .DB $4F 00002BE6: 363E ROL $3E,X 00002BE8: 0606 ASL $06 00002BEA: 5E57E4 LSR $E457,X 00002BED: 0F .DB $0F 00002BEE: 0F .DB $0F 00002BEF: D5D2 CMP $D2,X 00002BF1: 303C BMI $3C 00002BF3: 39355F AND $5F35,Y 00002BF6: 59423F EOR $3F42,Y 00002BF9: 68 PLA 00002BFA: 1C .DB $1C 00002BFB: 303C BMI $3C 00002BFD: 0A ASL A 00002BFE: 057E ORA $7E 00002C00: 2D29D7 AND $D729 00002C03: D4 .DB $D4 00002C04: 3E45F5 ROL $F545,X 00002C07: F2 .DB $F2 00002C08: 18 CLC 00002C09: ACA73F LDY $3FA7 00002C0C: 3E3C39 ROL $393C,X 00002C0F: 361C ROL $1C,X 00002C11: 4636 LSR $36 00002C13: 8582 STA $82 00002C15: 13 .DB $13 00002C16: 07 .DB $07 00002C17: 361E ROL $1E,X 00002C19: 060D ASL $0D 00002C1B: 063F ASL $3F 00002C1D: FA .DB $FA 00002C1E: 3F .DB $3F 00002C1F: D8 CLD 00002C20: D4 .DB $D4 00002C21: 18 CLC 00002C22: A5A2 LDA $A2 00002C24: CDC9AE CMP $AEC9 00002C27: AA TAX 00002C28: C6C1 DEC $C1 00002C2A: CA DEX 00002C2B: C417 CPY $17 00002C2D: ADAAD2 LDA $D2AA 00002C30: CDF6F3 CMP $F3F6 00002C33: 18 CLC 00002C34: 19161E ORA $1E16,Y 00002C37: 3E7EC8 ROL $C87E,X 00002C3A: 7C .DB $7C 00002C3B: 7E3E22 ROR $223E,X 00002C3E: 1F .DB $1F 00002C3F: 00 BRK 00002C40: 3C .DB $3C 00002C41: D5D2 CMP $D2,X 00002C43: DA .DB $DA 00002C44: D7 .DB $D7 00002C45: 767E ROR $7E,X 00002C47: DEDAE7 DEC $E7DA,X 00002C4A: E3 .DB $E3 00002C4B: 18 CLC 00002C4C: F6F3 INC $F3,X 00002C4E: EEEBCF INC $CFEB 00002C51: CC7E1F CPY $1F7E 00002C54: C2 .DB $C2 00002C55: BE2522 LDX $2225,Y 00002C58: A8 TAY 00002C59: A43D LDY $3D 00002C5B: 39827D AND $7D82,Y 00002C5E: 3E222E ROL $2E22,X 00002C61: 0E2012 ASL $1220 00002C64: 0F .DB $0F 00002C65: 302A BMI $2A 00002C67: 32 .DB $32 00002C68: 2F .DB $2F 00002C69: 1C .DB $1C 00002C6A: 363E ROL $3E,X 00002C6C: 3676 ROL $76,X 00002C6E: 368F ROL $8F,X 00002C70: 87 .DB $87 00002C71: 33 .DB $33 00002C72: 2F .DB $2F 00002C73: 3625 ROL $25,X 00002C75: 22 .DB $22 00002C76: 2F .DB $2F 00002C77: 27 .DB $27 00002C78: 42 .DB $42 00002C79: 3F .DB $3F 00002C7A: 1ED830 ASL $30D8,X 00002C7D: 3030 BMI $30 00002C7F: D2 .DB $D2 00002C80: CF .DB $CF 00002C81: 3F .DB $3F 00002C82: 3C .DB $3C 00002C83: 78 SEI 00002C84: 7D7A24 ADC $247A,X 00002C87: 20F636 JSR $36F6 00002C8A: 32 .DB $32 00002C8B: 2555 AND $55 00002C8D: 52 .DB $52 00002C8E: 300C BMI $0C 00002C90: 066F ASL $6F 00002C92: 6B .DB $6B 00002C93: 5650 LSR $50,X 00002C95: B9B689 LDA $89B6,Y 00002C98: 302C BMI $2C 00002C9A: 7E78C2 ROR $C278,X 00002C9D: BF .DB $BF 00002C9E: 1E3036 ASL $3630,X 00002CA1: 89 .DB $89 00002CA2: 851B STA $1B 00002CA4: 3C .DB $3C 00002CA5: 39928C AND $8C92,Y 00002CA8: 3619 ROL $19,X 00002CAA: 13 .DB $13 00002CAB: 12 .DB $12 00002CAC: 093C ORA #$3C 00002CAE: 18 CLC 00002CAF: 18 CLC 00002CB0: 22 .DB $22 00002CB1: 18 CLC 00002CB2: 2A ROL A 00002CB3: 267E ROL $7E 00002CB5: 7E3CE1 ROR $E13C,X 00002CB8: DC .DB $DC 00002CB9: 3E06EC ROL $EC06,X 00002CBC: 0606 ASL $06 00002CBE: B1AE LDA ($AE),Y 00002CC0: 0C .DB $0C 00002CC1: 090F ORA #$0F 00002CC3: 32 .DB $32 00002CC4: 2D4744 AND $4447 00002CC7: 92 .DB $92 00002CC8: 85FB STA $FB 00002CCA: 3633 ROL $33,X 00002CCC: 595578 EOR $7855,Y 00002CCF: CCC912 CPY $12C9 00002CD2: 0D1713 ORA $1317 00002CD5: 93 .DB $93 00002CD6: 8646 STX $46 00002CD8: 43 .DB $43 00002CD9: FF .DB $FF 00002CDA: 19162F ORA $2F16,Y 00002CDD: 2914 AND #$14 00002CDF: 0F .DB $0F 00002CE0: 79741F ADC $1F74,Y 00002CE3: 190906 ORA $0609,Y 00002CE6: 2522 AND $22 00002CE8: 6965 ADC #$65 00002CEA: 83 .DB $83 00002CEB: 2D2972 AND $7229 00002CEE: 6D1824 ADC $2418 00002CF1: 2C241A BIT $1A24 00002CF4: 23 .DB $23 00002CF5: 208F9C JSR $9C8F 00002CF8: 99443D STA $3D44,Y 00002CFB: B9B4F2 LDA $F2B4,Y 00002CFE: E91E SBC #$1E 00002D00: 301C BMI $1C 00002D02: A9A5 LDA #$A5 00002D04: 0B .DB $0B 00002D05: 7F .DB $7F 00002D06: 79524F ADC $4F52,Y 00002D09: 7E9693 ROR $9396,X 00002D0C: 18 CLC 00002D0D: 00 BRK 00002D0E: 00 BRK 00002D0F: FF .DB $FF 00002D10: F8 SED 00002D11: FF .DB $FF 00002D12: FF .DB $FF 00002D13: 3C .DB $3C 00002D14: 4F .DB $4F 00002D15: 4C8480 JMP $8084 00002D18: 79748F ADC $8F74,Y 00002D1B: 89 .DB $89 00002D1C: 847F STY $7F 00002D1E: 48 PHA 00002D1F: 363C ROL $3C,X 00002D21: 38 SEC 00002D22: 8E877E STX $7E87 00002D25: 7C .DB $7C 00002D26: 5550 EOR $50,X 00002D28: 3EC792 ROL $92C7,X 00002D2B: 86F7 STX $F7 00002D2D: F4 .DB $F4 00002D2E: 92 .DB $92 00002D2F: 8536 STA $36 00002D31: 361E ROL $1E,X 00002D33: ACA542 LDY $42A5 00002D36: 3C .DB $3C 00002D37: F8 SED 00002D38: 3E061C ROL $1C06,X 00002D3B: C9C5 CMP #$C5 00002D3D: E3 .DB $E3 00002D3E: D9C5C2 CMP $C2C5,Y 00002D41: 39361D AND $1D36,Y 00002D44: 1A .DB $1A 00002D45: 02 .DB $02 00002D46: 78 SEI 00002D47: 1D1A00 ORA $001A,X 00002D4A: 00 BRK 00002D4B: 60 RTS 00002D4C: 3018 BMI $18 00002D4E: 0C .DB $0C 00002D4F: 00 BRK 00002D50: 0600 ASL $00 00002D52: 00 BRK 00002D53: F0F8 BEQ $F8 00002D55: FC .DB $FC 00002D56: 7E3F44 ROR $443F,X 00002D59: 1F .DB $1F 00002D5A: 0F .DB $0F 00002D5B: E3 .DB $E3 00002D5C: E00C CPX #$0C 00002D5E: 0C .DB $0C 00002D5F: 0C .DB $0C 00002D60: BCB61E LDY $1EB6,X 00002D63: FDC2BD SBC $BDC2,X 00002D66: 1C .DB $1C 00002D67: E9E6 SBC #$E6 00002D69: E7 .DB $E7 00002D6A: E4FD CPX $FD 00002D6C: F9E9E4 SBC $E4E9,Y 00002D6F: EA NOP 00002D70: E5F3 SBC $F3 00002D72: ED030D SBC $0D03 00002D75: 0A ASL A 00002D76: 00 BRK 00002D77: 00 BRK 00002D78: 4500 EOR $00 00002D7A: 00 BRK 00002D7B: 203038 JSR $3830 00002D7E: 3020 BMI $20 00002D80: 00 BRK 00002D81: 00 BRK 00002D82: 00 BRK 00002D83: 60 RTS 00002D84: 7078 BVS $78 00002D86: 7C .DB $7C 00002D87: 78 SEI 00002D88: 7060 BVS $60 00002D8A: 00 BRK 00002D8B: 7141 ADC ($41),Y 00002D8D: 0F .DB $0F 00002D8E: 0F .DB $0F 00002D8F: 1F .DB $1F 00002D90: 3F .DB $3F 00002D91: 47 .DB $47 00002D92: 44 .DB $44 00002D93: 48 PHA 00002D94: 40 RTI 00002D95: 5C .DB $5C 00002D96: 4C003C JMP $3C00 00002D99: 00 BRK 00002D9A: FF .DB $FF 00002D9B: 67 .DB $67 00002D9C: 62 .DB $62 00002D9D: 68 PLA 00002D9E: 60 RTS 00002D9F: 7A .DB $7A 00002DA0: 6A ROR A 00002DA1: 44 .DB $44 00002DA2: 3F .DB $3F 00002DA3: 38 SEC 00002DA4: 38 SEC 00002DA5: 203900 JSR $0039 00002DA8: 1F .DB $1F 00002DA9: 3F .DB $3F 00002DAA: 7F .DB $7F 00002DAB: 6662 ROR $62 00002DAD: 393918 AND $1839,Y 00002DB0: 391F0F AND $0F1F,Y 00002DB3: 12 .DB $12 00002DB4: 0F .DB $0F 00002DB5: 6662 ROR $62 00002DB7: 7F .DB $7F 00002DB8: 3F .DB $3F 00002DB9: 1F .DB $1F 00002DBA: 0113 ORA ($13,X) 00002DBC: 0F .DB $0F 00002DBD: C3 .DB $C3 00002DBE: C7 .DB $C7 00002DBF: 0E0ECE ASL $CE0E 00002DC2: 00 BRK 00002DC3: F7 .DB $F7 00002DC4: 4168 EOR ($68,X) 00002DC6: 62 .DB $62 00002DC7: CECECE DEC $CECE 00002DCA: 87 .DB $87 00002DCB: 03 .DB $03 00002DCC: 9C .DB $9C 00002DCD: 95FF STA $FF,X 00002DCF: 04 .DB $04 00002DD0: CF .DB $CF 00002DD1: 87 .DB $87 00002DD2: 13 .DB $13 00002DD3: 0F .DB $0F 00002DD4: C0E1 CPY #$E1 00002DD6: 73 .DB $73 00002DD7: 73 .DB $73 00002DD8: 73 .DB $73 00002DD9: 98 TYA 00002DDA: 00 BRK 00002DDB: E1F3 SBC ($F3,X) 00002DDD: 67 .DB $67 00002DDE: 62 .DB $62 00002DDF: C8 INY 00002DE0: C5E1 CMP $E1 00002DE2: C0BD CPY #$BD 00002DE4: B504 LDA $04,X 00002DE6: F3 .DB $F3 00002DE7: E113 SBC ($13,X) 00002DE9: 0F .DB $0F 00002DEA: F0F8 BEQ $F8 00002DEC: 9C .DB $9C 00002DED: 9C .DB $9C 00002DEE: 9C .DB $9C 00002DEF: 4C00FB JMP $FB00 00002DF2: 68 PLA 00002DF3: 62 .DB $62 00002DF4: E8 INX 00002DF5: E5F8 SBC $F8 00002DF7: F0BD BEQ $BD 00002DF9: B5FF LDA $FF,X 00002DFB: 02 .DB $02 00002DFC: FB .DB $FB 00002DFD: 13 .DB $13 00002DFE: 0F .DB $0F 00002DFF: FC .DB $FC 00002E00: FEE7E7 INC $E7E7,X 00002E03: E7 .DB $E7 00002E04: 00 BRK 00002E05: A6FE LDX $FE 00002E07: 68 PLA 00002E08: 62 .DB $62 00002E09: 08 PHP 00002E0A: 05FE ORA $FE 00002E0C: FC .DB $FC 00002E0D: FEF5FE INC $FEF5,X 00002E10: 23 .DB $23 00002E11: 1F .DB $1F 00002E12: D2 .DB $D2 00002E13: 38 SEC 00002E14: 27 .DB $27 00002E15: 23 .DB $23 00002E16: 00 BRK 00002E17: FE2F29 INC $292F,X 00002E1A: 38 SEC 00002E1B: 2521 AND $21 00002E1D: 38 SEC 00002E1E: 3583 AND $83,X 00002E20: 3029 BMI $29 00002E22: A3 .DB $A3 00002E23: 9F .DB $9F 00002E24: 00 BRK 00002E25: 00 BRK 00002E26: 0101 ORA ($01,X) 00002E28: 0146 ORA ($46,X) 00002E2A: 43 .DB $43 00002E2B: BC0307 LDY $0703,X 00002E2E: 4F .DB $4F 00002E2F: 4C4A45 JMP $454A 00002E32: 83 .DB $83 00002E33: 80 .DB $80 00002E34: 504C BVC $4C 00002E36: 03 .DB $03 00002E37: 58 CLI 00002E38: 52 .DB $52 00002E39: 60 RTS 00002E3A: 7EFEC0 ROR $C0FE,X 00002E3D: C0CE CPY #$CE 00002E3F: 7169 ADC ($69),Y 00002E41: B3 .DB $B3 00002E42: B0FC BCS $FC 00002E44: 0A ASL A 00002E45: 78 SEI 00002E46: FEF5FD INC $FDF5,X 00002E49: 64 .DB $64 00002E4A: 5F .DB $5F 00002E4B: 7F .DB $7F 00002E4C: 73 .DB $73 00002E4D: 73 .DB $73 00002E4E: 7F .DB $7F 00002E4F: 2F .DB $2F 00002E50: 7068 BVS $68 00002E52: 87 .DB $87 00002E53: 84C9 STY $C9 00002E55: C6FE DEC $FE 00002E57: F6FF INC $FF,X 00002E59: A3 .DB $A3 00002E5A: 9F .DB $9F 00002E5B: 1F .DB $1F 00002E5C: 1F .DB $1F 00002E5D: 60 RTS 00002E5E: 9C .DB $9C 00002E5F: 9C .DB $9C 00002E60: 1F .DB $1F 00002E61: 00 BRK 00002E62: 7F .DB $7F 00002E63: B0AA BCS $AA 00002E65: A7 .DB $A7 00002E66: A49F LDY $9F 00002E68: 82 .DB $82 00002E69: 9F .DB $9F 00002E6A: A3 .DB $A3 00002E6B: 95E1 STA $E1,X 00002E6D: E3 .DB $E3 00002E6E: 07 .DB $07 00002E6F: 07 .DB $07 00002E70: 87 .DB $87 00002E71: F0E8 BEQ $E8 00002E73: 18 CLC 00002E74: 87 .DB $87 00002E75: 07 .DB $07 00002E76: 07 .DB $07 00002E77: 0906 ORA #$06 00002E79: C4B6 CPY $B6 00002E7B: F138 SBC ($38),Y 00002E7D: 38 SEC 00002E7E: 68 PLA 00002E7F: F8 SED 00002E80: 00 BRK 00002E81: F7 .DB $F7 00002E82: 1F .DB $1F 00002E83: 19F829 ORA $29F8,Y 00002E86: 2443 BIT $43 00002E88: 36FF ROL $FF,X 00002E8A: BEFF29 LDX $29FF,Y 00002E8D: 251F AND $1F 00002E8F: 18 CLC 00002E90: 2923 AND #$23 00002E92: 4536 EOR $36 00002E94: 463F LSR $3F 00002E96: 03 .DB $03 00002E97: 2F .DB $2F 00002E98: 2C8330 BIT $3083 00002E9B: 23 .DB $23 00002E9C: 34 .DB $34 00002E9D: 2E3F7F ROL $7F3F 00002EA0: E0E0 CPX #$E0 00002EA2: 7C .DB $7C 00002EA3: B0A8 BCS $A8 00002EA5: 60 RTS 00002EA6: 3E0707 ROL $0707,X 00002EA9: FEFC7E INC $7EFC,X 00002EAC: 7503 ADC $03,X 00002EAE: FE3927 INC $2739,X 00002EB1: 67 .DB $67 00002EB2: 63 .DB $63 00002EB3: 7068 BVS $68 00002EB5: 6663 ROR $63 00002EB7: 1F .DB $1F 00002EB8: 0F .DB $0F 00002EB9: 7D753F ADC $3F75,X 00002EBC: 1F .DB $1F 00002EBD: C183 CMP ($83,X) 00002EBF: 7F .DB $7F 00002EC0: CF .DB $CF 00002EC1: CF .DB $CF 00002EC2: CECECF DEC $CFCE 00002EC5: 9088 BCC $88 00002EC7: 87 .DB $87 00002EC8: 8414 STY $14 00002ECA: 8E0E9E STX $9E0E 00002ECD: 95BF STA $BF,X 00002ECF: A3 .DB $A3 00002ED0: 9F .DB $9F 00002ED1: C3 .DB $C3 00002ED2: E3 .DB $E3 00002ED3: 73 .DB $73 00002ED4: 5073 BVC $73 00002ED6: E3 .DB $E3 00002ED7: 00 BRK 00002ED8: EF .DB $EF 00002ED9: B0AA BCS $AA 00002EDB: C3 .DB $C3 00002EDC: 33 .DB $33 00002EDD: 2CFF18 BIT $18FF 00002EE0: FF .DB $FF 00002EE1: EF .DB $EF 00002EE2: 8F .DB $8F 00002EE3: BEBBC3 LDX $C3BB,Y 00002EE6: BF .DB $BF 00002EE7: FC .DB $FC 00002EE8: FC .DB $FC 00002EE9: 80 .DB $80 00002EEA: 8480 STY $80 00002EEC: F0DF BEQ $DF 00002EEE: D7 .DB $D7 00002EEF: F080 BEQ $80 00002EF1: 80 .DB $80 00002EF2: FC .DB $FC 00002EF3: 5E5401 LSR $0154,X 00002EF6: E3 .DB $E3 00002EF7: DEFCFE DEC $FEFC,X 00002EFA: E7 .DB $E7 00002EFB: E7 .DB $E7 00002EFC: FE00FE INC $FE00,X 00002EFF: 5D1009 EOR $0910,X 00002F02: E7 .DB $E7 00002F03: F4 .DB $F4 00002F04: F1E3 SBC ($E3),Y 00002F06: D52C CMP $2C,X 00002F08: 2901 AND #$01 00002F0A: 2D2807 AND $0728 00002F0D: 0F .DB $0F 00002F0E: 0F .DB $0F 00002F0F: 0C .DB $0C 00002F10: 0A ASL A 00002F11: 02 .DB $02 00002F12: 100B BPL $0B 00002F14: 13 .DB $13 00002F15: 0E007E ASL $7E00 00002F18: FEC004 INC $04C0,X 00002F1B: C0F8 CPY #$F8 00002F1D: 7068 BVS $68 00002F1F: 7C .DB $7C 00002F20: 0E0EFC ASL $FC0E 00002F23: F8 SED 00002F24: 03 .DB $03 00002F25: 5D5558 EOR $5855,X 00002F28: 53 .DB $53 00002F29: 00 BRK 00002F2A: 7F .DB $7F 00002F2B: 7F .DB $7F 00002F2C: 0E0E0E ASL $0E0E 00002F2F: 8D5E57 STA $575E 00002F32: 3F .DB $3F 00002F33: 48 PHA 00002F34: 4549 EOR $49 00002F36: 4600 LSR $00 00002F38: 00 BRK 00002F39: BF .DB $BF 00002F3A: 5B .DB $5B 00002F3B: 58 CLI 00002F3C: 48 PHA 00002F3D: 3F .DB $3F 00002F3E: 3F .DB $3F 00002F3F: 3F .DB $3F 00002F40: 63 .DB $63 00002F41: 5F .DB $5F 00002F42: CECE4F DEC $4FCE 00002F45: 45BF EOR $BF 00002F47: 8D4845 STA $4548 00002F4A: 07 .DB $07 00002F4B: B8 CLV 00002F4C: B45C LDY $5C,X 00002F4E: 58 CLI 00002F4F: 9F .DB $9F 00002F50: 8F .DB $8F 00002F51: 87 .DB $87 00002F52: 83 .DB $83 00002F53: 7F .DB $7F 00002F54: 60 RTS 00002F55: 7071 BVS $71 00002F57: 73 .DB $73 00002F58: 73 .DB $73 00002F59: 73 .DB $73 00002F5A: 9088 BCC $88 00002F5C: 88 DEY 00002F5D: 85E1 STA $E1 00002F5F: 52 .DB $52 00002F60: C09D CPY #$9D 00002F62: 95F3 STA $F3,X 00002F64: E1C7 SBC ($C7,X) 00002F66: BF .DB $BF 00002F67: 80 .DB $80 00002F68: CF .DB $CF 00002F69: C8 INY 00002F6A: E3 .DB $E3 00002F6B: 9B .DB $9B 00002F6C: A8 TAY 00002F6D: A5D8 LDA $D8 00002F6F: D3 .DB $D3 00002F70: E3 .DB $E3 00002F71: E3 .DB $E3 00002F72: D9F4F1 CMP $F1F4,Y 00002F75: EEFCD0 INC $D0FC 00002F78: C8 INY 00002F79: 04 .DB $04 00002F7A: FC .DB $FC 00002F7B: EE03F2 INC $F203 00002F7E: C3 .DB $C3 00002F7F: C7 .DB $C7 00002F80: 0E0E0F ASL $0F0E 00002F83: 74 .DB $74 00002F84: 00 BRK 00002F85: F7 .DB $F7 00002F86: 706A BVS $6A 00002F88: 0F .DB $0F 00002F89: 5C .DB $5C 00002F8A: 515B EOR ($5B),Y 00002F8C: 58 CLI 00002F8D: E4DF CPX $DF 00002F8F: E3 .DB $E3 00002F90: A073 LDY #$73 00002F92: 73 .DB $73 00002F93: F3 .DB $F3 00002F94: 00 BRK 00002F95: EF .DB $EF 00002F96: 2F .DB $2F 00002F97: 29F3 AND #$F3 00002F99: 88 DEY 00002F9A: 8502 STA $02 00002F9C: 73 .DB $73 00002F9D: E3 .DB $E3 00002F9E: D5F1 CMP $F1,X 00002FA0: F99C9C SBC $9C9C,Y 00002FA3: F8 SED 00002FA4: 00 BRK 00002FA5: 72 .DB $72 00002FA6: FB .DB $FB 00002FA7: 302A BMI $2A 00002FA9: F8 SED 00002FAA: 9C .DB $9C 00002FAB: 34 .DB $34 00002FAC: 31E3 AND ($E3),Y 00002FAE: D545 CMP $45,X 00002FB0: 3F .DB $3F 00002FB1: C00F CPY #$0F 00002FB3: 4E4949 LSR $4949 00002FB6: 3F .DB $3F 00002FB7: 463F LSR $3F 00002FB9: 60 RTS 00002FBA: 60 RTS 00002FBB: 2592 AND $92 00002FBD: 00 BRK 00002FBE: 1D0001 ORA $0100,X 00002FC1: 03 .DB $03 00002FC2: 0E00FF ASL $FF00 00002FC5: FF .DB $FF 00002FC6: 0E0024 ASL $2400 00002FC9: 80 .DB $80 00002FCA: C00E CPY #$0E 00002FCC: 00 BRK 00002FCD: 7F .DB $7F 00002FCE: FF .DB $FF 00002FCF: 201D07 JSR $071D 00002FD2: 0F .DB $0F 00002FD3: A157 LDA ($57,X) 00002FD5: 54 .DB $54 00002FD6: 07 .DB $07 00002FD7: 0F .DB $0F 00002FD8: 1F .DB $1F 00002FD9: 3F .DB $3F 00002FDA: 5F .DB $5F 00002FDB: 5B .DB $5B 00002FDC: FF .DB $FF 00002FDD: 6F .DB $6F 00002FDE: 60 RTS 00002FDF: 0940 ORA #$40 00002FE1: 3DE0F0 AND $F0E0,X 00002FE4: 77 .DB $77 00002FE5: 74 .DB $74 00002FE6: E0F0 CPX #$F0 00002FE8: F8 SED 00002FE9: FC .DB $FC 00002FEA: 8F .DB $8F 00002FEB: 7F .DB $7F 00002FEC: 7B .DB $7B 00002FED: 201B5B JSR $5B1B 00002FF0: 58 CLI 00002FF1: 88 DEY 00002FF2: 83 .DB $83 00002FF3: 3F .DB $3F 00002FF4: 7F .DB $7F 00002FF5: FF .DB $FF 00002FF6: 908D BCC $8D 00002FF8: 7F .DB $7F 00002FF9: 6D6080 ADC $8060 00002FFC: 7B .DB $7B 00002FFD: 7E7B68 ROR $687B,X 00003000: 60 RTS 00003001: 58 CLI 00003002: 54 .DB $54 00003003: 04 .DB $04 00003004: 00 BRK 00003005: 60 RTS 00003006: 5B .DB $5B 00003007: 3F .DB $3F 00003008: A7 .DB $A7 00003009: 302C BMI $2C 0000300B: 34 .DB $34 0000300C: 2E716A ROL $6A71 0000300F: 00 BRK 00003010: 80 .DB $80 00003011: 3027 BMI $27 00003013: C0DD CPY #$DD 00003015: DA .DB $DA 00003016: FB .DB $FB 00003017: 1F .DB $1F 00003018: 1C .DB $1C 00003019: 3027 BMI $27 0000301B: 03 .DB $03 0000301C: EF .DB $EF 0000301D: EA NOP 0000301E: 78 SEI 0000301F: 74 .DB $74 00003020: 78 SEI 00003021: 74 .DB $74 00003022: A8 TAY 00003023: A058 LDY #$58 00003025: 54 .DB $54 00003026: F3 .DB $F3 00003027: 58 CLI 00003028: 54 .DB $54 00003029: BEB83F LDX $3FB8,Y 0000302C: 3F .DB $3F 0000302D: DED0DF DEC $DFD0,X 00003030: DC .DB $DC 00003031: 8F .DB $8F 00003032: 88 DEY 00003033: 908A BCC $8A 00003035: 44 .DB $44 00003036: FF .DB $FF 00003037: FF .DB $FF 00003038: 7974C0 ADC $C074,Y 0000303B: 80 .DB $80 0000303C: 00 BRK 0000303D: 80 .DB $80 0000303E: 7B .DB $7B 0000303F: F8 SED 00003040: 7C .DB $7C 00003041: F0E0 BEQ $E0 00003043: 48 PHA 00003044: 40 RTI 00003045: 201AE0 JSR $E01A 00003048: DC .DB $DC 00003049: D7 .DB $D7 0000304A: D1F0 CMP ($F0),Y 0000304C: EA NOP 0000304D: 03 .DB $03 0000304E: 5003 BVC $03 00003050: FF .DB $FF 00003051: FF .DB $FF 00003052: FE403C INC $3C40,X 00003055: C06D CPY #$6D 00003057: 68 PLA 00003058: FEB8FF INC $FFB8,X 0000305B: FF .DB $FF 0000305C: BF .DB $BF 0000305D: 0F .DB $0F 0000305E: 08 PHP 0000305F: 9A TXS 00003060: 92 .DB $92 00003061: D8 CLD 00003062: D180 CMP ($80),Y 00003064: 201AF5 JSR $F51A 00003067: 87 .DB $87 00003068: 7E0168 ROR $6801,X 0000306B: 5A .DB $5A 0000306C: 80 .DB $80 0000306D: C3 .DB $C3 0000306E: BF .DB $BF 0000306F: 67 .DB $67 00003070: 62 .DB $62 00003071: 4940 EOR #$40 00003073: D7 .DB $D7 00003074: D033 BNE $33 00003076: 1008 BPL $08 00003078: 80 .DB $80 00003079: 78 SEI 0000307A: 07 .DB $07 0000307B: 03 .DB $03 0000307C: E3 .DB $E3 0000307D: E024 CPX #$24 0000307F: 213F AND ($3F,X) 00003081: 1F .DB $1F 00003082: 9C .DB $9C 00003083: 0F .DB $0F 00003084: 07 .DB $07 00003085: 27 .DB $27 00003086: 23 .DB $23 00003087: 38 SEC 00003088: 34 .DB $34 00003089: 89 .DB $89 0000308A: 86E0 STX $E0 0000308C: F8 SED 0000308D: 40 RTI 0000308E: 3DF0E0 AND $E0F0,X 00003091: F0F8 BEQ $F8 00003093: FC .DB $FC 00003094: 48 PHA 00003095: 40 RTI 00003096: 87 .DB $87 00003097: 7E4E41 ROR $414E,X 0000309A: 08 PHP 0000309B: F8 SED 0000309C: F8 SED 0000309D: FC .DB $FC 0000309E: FC .DB $FC 0000309F: 0F .DB $0F 000030A0: 23 .DB $23 000030A1: 20D4D0 JSR $D0D4 000030A4: 7671 ROR $71,X 000030A6: DC .DB $DC 000030A7: D94840 CMP $4048,Y 000030AA: 7C .DB $7C 000030AB: 3F .DB $3F 000030AC: 3F .DB $3F 000030AD: 201008 JSR $0810 000030B0: FA .DB $FA 000030B1: D5D1 CMP $D1,X 000030B3: 8480 STY $80 000030B5: 60 RTS 000030B6: 60 RTS 000030B7: 08 PHP 000030B8: 4A LSR A 000030B9: 00 BRK 000030BA: 1E0001 ASL $0100,X 000030BD: 0E00FF ASL $FF00 000030C0: FF .DB $FF 000030C1: 0F .DB $0F 000030C2: 00 BRK 000030C3: 80 .DB $80 000030C4: ED0800 SBC $0008 000030C7: 03 .DB $03 000030C8: 4F .DB $4F 000030C9: 48 PHA 000030CA: 08 PHP 000030CB: 00 BRK 000030CC: C05F CPY #$5F 000030CE: 58 CLI 000030CF: 2E173E ROL $3E17 000030D2: 2D0347 AND $4703 000030D5: 3F .DB $3F 000030D6: 9090 BCC $90 000030D8: 1014 BPL $14 000030DA: 1D3015 ORA $1530,X 000030DD: 1D301A ORA $1A30,X 000030E0: 1D3011 ORA $1130,X 000030E3: 1D3015 ORA $1530,X 000030E6: 1D301D ORA $1D30,X 000030E9: 1D1D1D ORA $1D1D,X 000030EC: 1D1D1D ORA $1D1D,X 000030EF: 1D1D52 ORA $521D,X 000030F2: 00 BRK 000030F3: E600 INC $00 000030F5: 0102 ORA ($02,X) 000030F7: F7 .DB $F7 000030F8: E8 INX 000030F9: 03 .DB $03 000030FA: 0E0004 ASL $0400 000030FD: 4D1808 EOR $0818 00003100: 05F8 ORA $F8 00003102: F90718 SBC $1807,Y 00003105: 0607 ASL $07 00003107: 17 .DB $17 00003108: 08 PHP 00003109: 08 PHP 0000310A: 07 .DB $07 0000310B: 38 SEC 0000310C: 28 PLP 0000310D: B019 BCS $19 0000310F: C0C0 CPY #$C0 00003111: 0600 ASL $00 00003113: 3F .DB $3F 00003114: 00 BRK 00003115: 40 RTI 00003116: 40 RTI 00003117: D2 .DB $D2 00003118: 00 BRK 00003119: 83 .DB $83 0000311A: 00 BRK 0000311B: 0102 ORA ($02,X) 0000311D: 88 DEY 0000311E: 8503 STA $03 00003120: 8A TXA 00003121: 8403 STY $03 00003123: 00 BRK 00003124: 4C0402 JMP $0204 00003127: 8A TXA 00003128: 83 .DB $83 00003129: 08 PHP 0000312A: 00 BRK 0000312B: 0506 ORA $06 0000312D: A8 TAY 0000312E: A507 LDA $07 00003130: C1AA CMP ($AA,X) 00003132: A400 LDY $00 00003134: 00 BRK 00003135: 08 PHP 00003136: 090A ORA #$0A 00003138: AA TAX 00003139: A3 .DB $A3 0000313A: 08 PHP 0000313B: 00 BRK 0000313C: 00 BRK 0000313D: 0B .DB $0B 0000313E: 0C .DB $0C 0000313F: 0D0E06 ORA $060E 00003142: 0F .DB $0F 00003143: 1006 BPL $06 00003145: C611 DEC $11 00003147: CA DEX 00003148: C7 .DB $C7 00003149: B4B1 LDY $B1,X 0000314B: 060A ASL $0A 0000314D: 00 BRK 0000314E: D1CA CMP ($CA),Y 00003150: 857B STA $7B 00003152: 00 BRK 00003153: 12 .DB $12 00003154: 0613 ASL $13 00003156: 1006 BPL $06 00003158: 14 .DB $14 00003159: 1506 ORA $06,X 0000315B: 00 BRK 0000315C: 0F .DB $0F 0000315D: 08 PHP 0000315E: 0916 ORA #$16 00003160: 17 .DB $17 00003161: 0A ASL A 00003162: 02 .DB $02 00003163: 1098 BPL $98 00003165: 0618 ASL $18 00003167: 19E5DA ORA $DAE5,Y 0000316A: E9E6 SBC #$E6 0000316C: 1A .DB $1A 0000316D: 1B .DB $1B 0000316E: F0EA BEQ $EA 00003170: D2 .DB $D2 00003171: 1C .DB $1C 00003172: A9A5 LDA #$A5 00003174: 0A ASL A 00003175: 1DA9A5 ORA $A5A9,X 00003178: 1E0AFD ASL $FD0A,X 0000317B: D8 CLD 0000317C: D581 CMP $81,X 0000317E: F0EC BEQ $EC 00003180: 1F .DB $1F 00003181: 1F .DB $1F 00003182: 1F .DB $1F 00003183: 1C .DB $1C 00003184: 0A ASL A 00003185: 1F .DB $1F 00003186: E4D6 CPX $D6 00003188: EE052A INC $2A05 0000318B: 2630 ROL $30 0000318D: 2953 AND #$53 0000318F: 501C BVC $1C 00003191: D8 CLD 00003192: D4 .DB $D4 00003193: 53 .DB $53 00003194: 4C645F JMP $5F64 00003197: C010 CPY #$10 00003199: 0620 ASL $20 0000319B: 02 .DB $02 0000319C: 02 .DB $02 0000319D: 21FF AND ($FF,X) 0000319F: F658 INC $58,X 000031A1: 53 .DB $53 000031A2: A504 LDA $04 000031A4: F8 SED 000031A5: 10A9 BPL $A9 000031A7: A50F LDA $0F 000031A9: 22 .DB $22 000031AA: A9A5 LDA #$A5 000031AC: 13 .DB $13 000031AD: 5650 LSR $50,X 000031AF: 8B .DB $8B 000031B0: 93 .DB $93 000031B1: 8A TXA 000031B2: A49F LDY $9F 000031B4: 23 .DB $23 000031B5: 33 .DB $33 000031B6: 301F BMI $1F 000031B8: 2425 BIT $25 000031BA: A9A5 LDA #$A5 000031BC: E14A SBC ($4A,X) 000031BE: 47 .DB $47 000031BF: 00 BRK 000031C0: 1F .DB $1F 000031C1: 1F .DB $1F 000031C2: 00 BRK 000031C3: B3 .DB $B3 000031C4: AA TAX 000031C5: BB .DB $BB 000031C6: BCBDBE LDY $BEBD,X 000031C9: 03 .DB $03 000031CA: C0BD CPY #$BD 000031CC: C0C0 CPY #$C0 000031CE: 0600 ASL $00 000031D0: 3F .DB $3F 000031D1: 00 BRK 000031D2: 40 RTI 000031D3: 40 RTI 000031D4: FF .DB $FF 000031D5: FF .DB $FF 000031D6: FF .DB $FF 000031D7: FF .DB $FF 000031D8: FF .DB $FF 000031D9: FF .DB $FF 000031DA: FF .DB $FF 000031DB: FF .DB $FF 000031DC: FF .DB $FF 000031DD: FF .DB $FF 000031DE: FF .DB $FF 000031DF: FF .DB $FF 000031E0: FF .DB $FF 000031E1: FF .DB $FF 000031E2: FF .DB $FF 000031E3: FF .DB $FF 000031E4: FF .DB $FF 000031E5: FF .DB $FF 000031E6: FF .DB $FF 000031E7: FF .DB $FF 000031E8: FF .DB $FF 000031E9: FF .DB $FF 000031EA: FF .DB $FF 000031EB: FF .DB $FF 000031EC: FF .DB $FF 000031ED: FF .DB $FF 000031EE: FF .DB $FF 000031EF: FF .DB $FF 000031F0: FF .DB $FF 000031F1: FF .DB $FF 000031F2: FF .DB $FF 000031F3: FF .DB $FF 000031F4: FF .DB $FF 000031F5: FF .DB $FF 000031F6: FF .DB $FF 000031F7: FF .DB $FF 000031F8: FF .DB $FF 000031F9: FF .DB $FF 000031FA: FF .DB $FF 000031FB: FF .DB $FF 000031FC: FF .DB $FF 000031FD: FF .DB $FF 000031FE: FF .DB $FF 000031FF: FF .DB $FF 00003200: FF .DB $FF 00003201: FF .DB $FF 00003202: FF .DB $FF 00003203: FF .DB $FF 00003204: FF .DB $FF 00003205: FF .DB $FF 00003206: FF .DB $FF 00003207: FF .DB $FF 00003208: FF .DB $FF 00003209: FF .DB $FF 0000320A: FF .DB $FF 0000320B: FF .DB $FF 0000320C: FF .DB $FF 0000320D: FF .DB $FF 0000320E: FF .DB $FF 0000320F: FF .DB $FF 00003210: FF .DB $FF 00003211: FF .DB $FF 00003212: FF .DB $FF 00003213: FF .DB $FF 00003214: FF .DB $FF 00003215: FF .DB $FF 00003216: FF .DB $FF 00003217: FF .DB $FF 00003218: FF .DB $FF 00003219: FF .DB $FF 0000321A: FF .DB $FF 0000321B: FF .DB $FF 0000321C: FF .DB $FF 0000321D: FF .DB $FF 0000321E: FF .DB $FF 0000321F: FF .DB $FF 00003220: FF .DB $FF 00003221: FF .DB $FF 00003222: FF .DB $FF 00003223: FF .DB $FF 00003224: FF .DB $FF 00003225: FF .DB $FF 00003226: FF .DB $FF 00003227: FF .DB $FF 00003228: FF .DB $FF 00003229: FF .DB $FF 0000322A: FF .DB $FF 0000322B: FF .DB $FF 0000322C: FF .DB $FF 0000322D: FF .DB $FF 0000322E: FF .DB $FF 0000322F: FF .DB $FF 00003230: FF .DB $FF 00003231: FF .DB $FF 00003232: FF .DB $FF 00003233: FF .DB $FF 00003234: FF .DB $FF 00003235: FF .DB $FF 00003236: FF .DB $FF 00003237: FF .DB $FF 00003238: FF .DB $FF 00003239: FF .DB $FF 0000323A: FF .DB $FF 0000323B: FF .DB $FF 0000323C: FF .DB $FF 0000323D: FF .DB $FF 0000323E: FF .DB $FF 0000323F: FF .DB $FF 00003240: FF .DB $FF 00003241: FF .DB $FF 00003242: FF .DB $FF 00003243: FF .DB $FF 00003244: FF .DB $FF 00003245: FF .DB $FF 00003246: FF .DB $FF 00003247: FF .DB $FF 00003248: FF .DB $FF 00003249: FF .DB $FF 0000324A: FF .DB $FF 0000324B: FF .DB $FF 0000324C: FF .DB $FF 0000324D: FF .DB $FF 0000324E: FF .DB $FF 0000324F: FF .DB $FF 00003250: FF .DB $FF 00003251: FF .DB $FF 00003252: FF .DB $FF 00003253: FF .DB $FF 00003254: FF .DB $FF 00003255: FF .DB $FF 00003256: FF .DB $FF 00003257: FF .DB $FF 00003258: FF .DB $FF 00003259: FF .DB $FF 0000325A: FF .DB $FF 0000325B: FF .DB $FF 0000325C: FF .DB $FF 0000325D: FF .DB $FF 0000325E: FF .DB $FF 0000325F: FF .DB $FF 00003260: FF .DB $FF 00003261: FF .DB $FF 00003262: FF .DB $FF 00003263: FF .DB $FF 00003264: FF .DB $FF 00003265: FF .DB $FF 00003266: FF .DB $FF 00003267: FF .DB $FF 00003268: FF .DB $FF 00003269: FF .DB $FF 0000326A: FF .DB $FF 0000326B: FF .DB $FF 0000326C: FF .DB $FF 0000326D: FF .DB $FF 0000326E: FF .DB $FF 0000326F: FF .DB $FF 00003270: FF .DB $FF 00003271: FF .DB $FF 00003272: FF .DB $FF 00003273: FF .DB $FF 00003274: FF .DB $FF 00003275: FF .DB $FF 00003276: FF .DB $FF 00003277: FF .DB $FF 00003278: FF .DB $FF 00003279: FF .DB $FF 0000327A: FF .DB $FF 0000327B: FF .DB $FF 0000327C: FF .DB $FF 0000327D: FF .DB $FF 0000327E: FF .DB $FF 0000327F: FF .DB $FF 00003280: FF .DB $FF 00003281: FF .DB $FF 00003282: FF .DB $FF 00003283: FF .DB $FF 00003284: FF .DB $FF 00003285: FF .DB $FF 00003286: FF .DB $FF 00003287: FF .DB $FF 00003288: FF .DB $FF 00003289: FF .DB $FF 0000328A: FF .DB $FF 0000328B: FF .DB $FF 0000328C: FF .DB $FF 0000328D: FF .DB $FF 0000328E: FF .DB $FF 0000328F: FF .DB $FF 00003290: FF .DB $FF 00003291: FF .DB $FF 00003292: FF .DB $FF 00003293: FF .DB $FF 00003294: FF .DB $FF 00003295: FF .DB $FF 00003296: FF .DB $FF 00003297: FF .DB $FF 00003298: FF .DB $FF 00003299: FF .DB $FF 0000329A: FF .DB $FF 0000329B: FF .DB $FF 0000329C: FF .DB $FF 0000329D: FF .DB $FF 0000329E: FF .DB $FF 0000329F: FF .DB $FF 000032A0: FF .DB $FF 000032A1: FF .DB $FF 000032A2: FF .DB $FF 000032A3: FF .DB $FF 000032A4: FF .DB $FF 000032A5: FF .DB $FF 000032A6: FF .DB $FF 000032A7: FF .DB $FF 000032A8: FF .DB $FF 000032A9: FF .DB $FF 000032AA: FF .DB $FF 000032AB: FF .DB $FF 000032AC: FF .DB $FF 000032AD: FF .DB $FF 000032AE: FF .DB $FF 000032AF: FF .DB $FF 000032B0: FF .DB $FF 000032B1: FF .DB $FF 000032B2: FF .DB $FF 000032B3: FF .DB $FF 000032B4: FF .DB $FF 000032B5: FF .DB $FF 000032B6: FF .DB $FF 000032B7: FF .DB $FF 000032B8: FF .DB $FF 000032B9: FF .DB $FF 000032BA: FF .DB $FF 000032BB: FF .DB $FF 000032BC: FF .DB $FF 000032BD: FF .DB $FF 000032BE: FF .DB $FF 000032BF: FF .DB $FF 000032C0: FF .DB $FF 000032C1: FF .DB $FF 000032C2: FF .DB $FF 000032C3: FF .DB $FF 000032C4: FF .DB $FF 000032C5: FF .DB $FF 000032C6: FF .DB $FF 000032C7: FF .DB $FF 000032C8: FF .DB $FF 000032C9: FF .DB $FF 000032CA: FF .DB $FF 000032CB: FF .DB $FF 000032CC: FF .DB $FF 000032CD: FF .DB $FF 000032CE: FF .DB $FF 000032CF: FF .DB $FF 000032D0: FF .DB $FF 000032D1: FF .DB $FF 000032D2: FF .DB $FF 000032D3: FF .DB $FF 000032D4: FF .DB $FF 000032D5: FF .DB $FF 000032D6: FF .DB $FF 000032D7: FF .DB $FF 000032D8: FF .DB $FF 000032D9: FF .DB $FF 000032DA: FF .DB $FF 000032DB: FF .DB $FF 000032DC: FF .DB $FF 000032DD: FF .DB $FF 000032DE: FF .DB $FF 000032DF: FF .DB $FF 000032E0: FF .DB $FF 000032E1: FF .DB $FF 000032E2: FF .DB $FF 000032E3: FF .DB $FF 000032E4: FF .DB $FF 000032E5: FF .DB $FF 000032E6: FF .DB $FF 000032E7: FF .DB $FF 000032E8: FF .DB $FF 000032E9: FF .DB $FF 000032EA: FF .DB $FF 000032EB: FF .DB $FF 000032EC: FF .DB $FF 000032ED: FF .DB $FF 000032EE: FF .DB $FF 000032EF: FF .DB $FF 000032F0: FF .DB $FF 000032F1: FF .DB $FF 000032F2: FF .DB $FF 000032F3: FF .DB $FF 000032F4: FF .DB $FF 000032F5: FF .DB $FF 000032F6: FF .DB $FF 000032F7: FF .DB $FF 000032F8: FF .DB $FF 000032F9: FF .DB $FF 000032FA: FF .DB $FF 000032FB: FF .DB $FF 000032FC: FF .DB $FF 000032FD: FF .DB $FF 000032FE: FF .DB $FF 000032FF: FF .DB $FF 00003300: FF .DB $FF 00003301: FF .DB $FF 00003302: FF .DB $FF 00003303: FF .DB $FF 00003304: FF .DB $FF 00003305: FF .DB $FF 00003306: FF .DB $FF 00003307: FF .DB $FF 00003308: FF .DB $FF 00003309: FF .DB $FF 0000330A: FF .DB $FF 0000330B: FF .DB $FF 0000330C: FF .DB $FF 0000330D: FF .DB $FF 0000330E: FF .DB $FF 0000330F: FF .DB $FF 00003310: FF .DB $FF 00003311: FF .DB $FF 00003312: FF .DB $FF 00003313: FF .DB $FF 00003314: FF .DB $FF 00003315: FF .DB $FF 00003316: FF .DB $FF 00003317: FF .DB $FF 00003318: FF .DB $FF 00003319: FF .DB $FF 0000331A: FF .DB $FF 0000331B: FF .DB $FF 0000331C: FF .DB $FF 0000331D: FF .DB $FF 0000331E: FF .DB $FF 0000331F: FF .DB $FF 00003320: FF .DB $FF 00003321: FF .DB $FF 00003322: FF .DB $FF 00003323: FF .DB $FF 00003324: FF .DB $FF 00003325: FF .DB $FF 00003326: FF .DB $FF 00003327: FF .DB $FF 00003328: FF .DB $FF 00003329: FF .DB $FF 0000332A: FF .DB $FF 0000332B: FF .DB $FF 0000332C: FF .DB $FF 0000332D: FF .DB $FF 0000332E: FF .DB $FF 0000332F: FF .DB $FF 00003330: FF .DB $FF 00003331: FF .DB $FF 00003332: FF .DB $FF 00003333: FF .DB $FF 00003334: FF .DB $FF 00003335: FF .DB $FF 00003336: FF .DB $FF 00003337: FF .DB $FF 00003338: FF .DB $FF 00003339: FF .DB $FF 0000333A: FF .DB $FF 0000333B: FF .DB $FF 0000333C: FF .DB $FF 0000333D: FF .DB $FF 0000333E: FF .DB $FF 0000333F: FF .DB $FF 00003340: FF .DB $FF 00003341: FF .DB $FF 00003342: FF .DB $FF 00003343: FF .DB $FF 00003344: FF .DB $FF 00003345: FF .DB $FF 00003346: FF .DB $FF 00003347: FF .DB $FF 00003348: FF .DB $FF 00003349: FF .DB $FF 0000334A: FF .DB $FF 0000334B: FF .DB $FF 0000334C: FF .DB $FF 0000334D: FF .DB $FF 0000334E: FF .DB $FF 0000334F: FF .DB $FF 00003350: FF .DB $FF 00003351: FF .DB $FF 00003352: FF .DB $FF 00003353: FF .DB $FF 00003354: FF .DB $FF 00003355: FF .DB $FF 00003356: FF .DB $FF 00003357: FF .DB $FF 00003358: FF .DB $FF 00003359: FF .DB $FF 0000335A: FF .DB $FF 0000335B: FF .DB $FF 0000335C: FF .DB $FF 0000335D: FF .DB $FF 0000335E: FF .DB $FF 0000335F: FF .DB $FF 00003360: FF .DB $FF 00003361: FF .DB $FF 00003362: FF .DB $FF 00003363: FF .DB $FF 00003364: FF .DB $FF 00003365: FF .DB $FF 00003366: FF .DB $FF 00003367: FF .DB $FF 00003368: FF .DB $FF 00003369: FF .DB $FF 0000336A: FF .DB $FF 0000336B: FF .DB $FF 0000336C: FF .DB $FF 0000336D: FF .DB $FF 0000336E: FF .DB $FF 0000336F: FF .DB $FF 00003370: FF .DB $FF 00003371: FF .DB $FF 00003372: FF .DB $FF 00003373: FF .DB $FF 00003374: FF .DB $FF 00003375: FF .DB $FF 00003376: FF .DB $FF 00003377: FF .DB $FF 00003378: FF .DB $FF 00003379: FF .DB $FF 0000337A: FF .DB $FF 0000337B: FF .DB $FF 0000337C: FF .DB $FF 0000337D: FF .DB $FF 0000337E: FF .DB $FF 0000337F: FF .DB $FF 00003380: FF .DB $FF 00003381: FF .DB $FF 00003382: FF .DB $FF 00003383: FF .DB $FF 00003384: FF .DB $FF 00003385: FF .DB $FF 00003386: FF .DB $FF 00003387: FF .DB $FF 00003388: FF .DB $FF 00003389: FF .DB $FF 0000338A: FF .DB $FF 0000338B: FF .DB $FF 0000338C: FF .DB $FF 0000338D: FF .DB $FF 0000338E: FF .DB $FF 0000338F: FF .DB $FF 00003390: FF .DB $FF 00003391: FF .DB $FF 00003392: FF .DB $FF 00003393: FF .DB $FF 00003394: FF .DB $FF 00003395: FF .DB $FF 00003396: FF .DB $FF 00003397: FF .DB $FF 00003398: FF .DB $FF 00003399: FF .DB $FF 0000339A: FF .DB $FF 0000339B: FF .DB $FF 0000339C: FF .DB $FF 0000339D: FF .DB $FF 0000339E: FF .DB $FF 0000339F: FF .DB $FF 000033A0: FF .DB $FF 000033A1: FF .DB $FF 000033A2: FF .DB $FF 000033A3: FF .DB $FF 000033A4: FF .DB $FF 000033A5: FF .DB $FF 000033A6: FF .DB $FF 000033A7: FF .DB $FF 000033A8: FF .DB $FF 000033A9: FF .DB $FF 000033AA: FF .DB $FF 000033AB: FF .DB $FF 000033AC: FF .DB $FF 000033AD: FF .DB $FF 000033AE: FF .DB $FF 000033AF: FF .DB $FF 000033B0: FF .DB $FF 000033B1: FF .DB $FF 000033B2: FF .DB $FF 000033B3: FF .DB $FF 000033B4: FF .DB $FF 000033B5: FF .DB $FF 000033B6: FF .DB $FF 000033B7: FF .DB $FF 000033B8: FF .DB $FF 000033B9: FF .DB $FF 000033BA: FF .DB $FF 000033BB: FF .DB $FF 000033BC: FF .DB $FF 000033BD: FF .DB $FF 000033BE: FF .DB $FF 000033BF: FF .DB $FF 000033C0: FF .DB $FF 000033C1: FF .DB $FF 000033C2: FF .DB $FF 000033C3: FF .DB $FF 000033C4: FF .DB $FF 000033C5: FF .DB $FF 000033C6: FF .DB $FF 000033C7: FF .DB $FF 000033C8: FF .DB $FF 000033C9: FF .DB $FF 000033CA: FF .DB $FF 000033CB: FF .DB $FF 000033CC: FF .DB $FF 000033CD: FF .DB $FF 000033CE: FF .DB $FF 000033CF: FF .DB $FF 000033D0: FF .DB $FF 000033D1: FF .DB $FF 000033D2: FF .DB $FF 000033D3: FF .DB $FF 000033D4: FF .DB $FF 000033D5: FF .DB $FF 000033D6: FF .DB $FF 000033D7: FF .DB $FF 000033D8: FF .DB $FF 000033D9: FF .DB $FF 000033DA: FF .DB $FF 000033DB: FF .DB $FF 000033DC: FF .DB $FF 000033DD: FF .DB $FF 000033DE: FF .DB $FF 000033DF: FF .DB $FF 000033E0: FF .DB $FF 000033E1: FF .DB $FF 000033E2: FF .DB $FF 000033E3: FF .DB $FF 000033E4: FF .DB $FF 000033E5: FF .DB $FF 000033E6: FF .DB $FF 000033E7: FF .DB $FF 000033E8: FF .DB $FF 000033E9: FF .DB $FF 000033EA: FF .DB $FF 000033EB: FF .DB $FF 000033EC: FF .DB $FF 000033ED: FF .DB $FF 000033EE: FF .DB $FF 000033EF: FF .DB $FF 000033F0: FF .DB $FF 000033F1: FF .DB $FF 000033F2: FF .DB $FF 000033F3: FF .DB $FF 000033F4: FF .DB $FF 000033F5: FF .DB $FF 000033F6: FF .DB $FF 000033F7: FF .DB $FF 000033F8: FF .DB $FF 000033F9: FF .DB $FF 000033FA: FF .DB $FF 000033FB: FF .DB $FF 000033FC: FF .DB $FF 000033FD: FF .DB $FF 000033FE: FF .DB $FF 000033FF: FF .DB $FF 00003400: FF .DB $FF 00003401: FF .DB $FF 00003402: FF .DB $FF 00003403: FF .DB $FF 00003404: FF .DB $FF 00003405: FF .DB $FF 00003406: FF .DB $FF 00003407: FF .DB $FF 00003408: FF .DB $FF 00003409: FF .DB $FF 0000340A: FF .DB $FF 0000340B: FF .DB $FF 0000340C: FF .DB $FF 0000340D: FF .DB $FF 0000340E: FF .DB $FF 0000340F: FF .DB $FF 00003410: FF .DB $FF 00003411: FF .DB $FF 00003412: FF .DB $FF 00003413: FF .DB $FF 00003414: FF .DB $FF 00003415: FF .DB $FF 00003416: FF .DB $FF 00003417: FF .DB $FF 00003418: FF .DB $FF 00003419: FF .DB $FF 0000341A: FF .DB $FF 0000341B: FF .DB $FF 0000341C: FF .DB $FF 0000341D: FF .DB $FF 0000341E: FF .DB $FF 0000341F: FF .DB $FF 00003420: FF .DB $FF 00003421: FF .DB $FF 00003422: FF .DB $FF 00003423: FF .DB $FF 00003424: FF .DB $FF 00003425: FF .DB $FF 00003426: FF .DB $FF 00003427: FF .DB $FF 00003428: FF .DB $FF 00003429: FF .DB $FF 0000342A: FF .DB $FF 0000342B: FF .DB $FF 0000342C: FF .DB $FF 0000342D: FF .DB $FF 0000342E: FF .DB $FF 0000342F: FF .DB $FF 00003430: FF .DB $FF 00003431: FF .DB $FF 00003432: FF .DB $FF 00003433: FF .DB $FF 00003434: FF .DB $FF 00003435: FF .DB $FF 00003436: FF .DB $FF 00003437: FF .DB $FF 00003438: FF .DB $FF 00003439: FF .DB $FF 0000343A: FF .DB $FF 0000343B: FF .DB $FF 0000343C: FF .DB $FF 0000343D: FF .DB $FF 0000343E: FF .DB $FF 0000343F: FF .DB $FF 00003440: FF .DB $FF 00003441: FF .DB $FF 00003442: FF .DB $FF 00003443: FF .DB $FF 00003444: FF .DB $FF 00003445: FF .DB $FF 00003446: FF .DB $FF 00003447: FF .DB $FF 00003448: FF .DB $FF 00003449: FF .DB $FF 0000344A: FF .DB $FF 0000344B: FF .DB $FF 0000344C: FF .DB $FF 0000344D: FF .DB $FF 0000344E: FF .DB $FF 0000344F: FF .DB $FF 00003450: FF .DB $FF 00003451: FF .DB $FF 00003452: FF .DB $FF 00003453: FF .DB $FF 00003454: FF .DB $FF 00003455: FF .DB $FF 00003456: FF .DB $FF 00003457: FF .DB $FF 00003458: FF .DB $FF 00003459: FF .DB $FF 0000345A: FF .DB $FF 0000345B: FF .DB $FF 0000345C: FF .DB $FF 0000345D: FF .DB $FF 0000345E: FF .DB $FF 0000345F: FF .DB $FF 00003460: FF .DB $FF 00003461: FF .DB $FF 00003462: FF .DB $FF 00003463: FF .DB $FF 00003464: FF .DB $FF 00003465: FF .DB $FF 00003466: FF .DB $FF 00003467: FF .DB $FF 00003468: FF .DB $FF 00003469: FF .DB $FF 0000346A: FF .DB $FF 0000346B: FF .DB $FF 0000346C: FF .DB $FF 0000346D: FF .DB $FF 0000346E: FF .DB $FF 0000346F: FF .DB $FF 00003470: FF .DB $FF 00003471: FF .DB $FF 00003472: FF .DB $FF 00003473: FF .DB $FF 00003474: FF .DB $FF 00003475: FF .DB $FF 00003476: FF .DB $FF 00003477: FF .DB $FF 00003478: FF .DB $FF 00003479: FF .DB $FF 0000347A: FF .DB $FF 0000347B: FF .DB $FF 0000347C: FF .DB $FF 0000347D: FF .DB $FF 0000347E: FF .DB $FF 0000347F: FF .DB $FF 00003480: FF .DB $FF 00003481: FF .DB $FF 00003482: FF .DB $FF 00003483: FF .DB $FF 00003484: FF .DB $FF 00003485: FF .DB $FF 00003486: FF .DB $FF 00003487: FF .DB $FF 00003488: FF .DB $FF 00003489: FF .DB $FF 0000348A: FF .DB $FF 0000348B: FF .DB $FF 0000348C: FF .DB $FF 0000348D: FF .DB $FF 0000348E: FF .DB $FF 0000348F: FF .DB $FF 00003490: FF .DB $FF 00003491: FF .DB $FF 00003492: FF .DB $FF 00003493: FF .DB $FF 00003494: FF .DB $FF 00003495: FF .DB $FF 00003496: FF .DB $FF 00003497: FF .DB $FF 00003498: FF .DB $FF 00003499: FF .DB $FF 0000349A: FF .DB $FF 0000349B: FF .DB $FF 0000349C: FF .DB $FF 0000349D: FF .DB $FF 0000349E: FF .DB $FF 0000349F: FF .DB $FF 000034A0: FF .DB $FF 000034A1: FF .DB $FF 000034A2: FF .DB $FF 000034A3: FF .DB $FF 000034A4: FF .DB $FF 000034A5: FF .DB $FF 000034A6: FF .DB $FF 000034A7: FF .DB $FF 000034A8: FF .DB $FF 000034A9: FF .DB $FF 000034AA: FF .DB $FF 000034AB: FF .DB $FF 000034AC: FF .DB $FF 000034AD: FF .DB $FF 000034AE: FF .DB $FF 000034AF: FF .DB $FF 000034B0: FF .DB $FF 000034B1: FF .DB $FF 000034B2: FF .DB $FF 000034B3: FF .DB $FF 000034B4: FF .DB $FF 000034B5: FF .DB $FF 000034B6: FF .DB $FF 000034B7: FF .DB $FF 000034B8: FF .DB $FF 000034B9: FF .DB $FF 000034BA: FF .DB $FF 000034BB: FF .DB $FF 000034BC: FF .DB $FF 000034BD: FF .DB $FF 000034BE: FF .DB $FF 000034BF: FF .DB $FF 000034C0: FF .DB $FF 000034C1: FF .DB $FF 000034C2: FF .DB $FF 000034C3: FF .DB $FF 000034C4: FF .DB $FF 000034C5: FF .DB $FF 000034C6: FF .DB $FF 000034C7: FF .DB $FF 000034C8: FF .DB $FF 000034C9: FF .DB $FF 000034CA: FF .DB $FF 000034CB: FF .DB $FF 000034CC: FF .DB $FF 000034CD: FF .DB $FF 000034CE: FF .DB $FF 000034CF: FF .DB $FF 000034D0: FF .DB $FF 000034D1: FF .DB $FF 000034D2: FF .DB $FF 000034D3: FF .DB $FF 000034D4: FF .DB $FF 000034D5: FF .DB $FF 000034D6: FF .DB $FF 000034D7: FF .DB $FF 000034D8: FF .DB $FF 000034D9: FF .DB $FF 000034DA: FF .DB $FF 000034DB: FF .DB $FF 000034DC: FF .DB $FF 000034DD: FF .DB $FF 000034DE: FF .DB $FF 000034DF: FF .DB $FF 000034E0: FF .DB $FF 000034E1: FF .DB $FF 000034E2: FF .DB $FF 000034E3: FF .DB $FF 000034E4: FF .DB $FF 000034E5: FF .DB $FF 000034E6: FF .DB $FF 000034E7: FF .DB $FF 000034E8: FF .DB $FF 000034E9: FF .DB $FF 000034EA: FF .DB $FF 000034EB: FF .DB $FF 000034EC: FF .DB $FF 000034ED: FF .DB $FF 000034EE: FF .DB $FF 000034EF: FF .DB $FF 000034F0: FF .DB $FF 000034F1: FF .DB $FF 000034F2: FF .DB $FF 000034F3: FF .DB $FF 000034F4: FF .DB $FF 000034F5: FF .DB $FF 000034F6: FF .DB $FF 000034F7: FF .DB $FF 000034F8: FF .DB $FF 000034F9: FF .DB $FF 000034FA: FF .DB $FF 000034FB: FF .DB $FF 000034FC: FF .DB $FF 000034FD: FF .DB $FF 000034FE: FF .DB $FF 000034FF: FF .DB $FF 00003500: FF .DB $FF 00003501: FF .DB $FF 00003502: FF .DB $FF 00003503: FF .DB $FF 00003504: FF .DB $FF 00003505: FF .DB $FF 00003506: FF .DB $FF 00003507: FF .DB $FF 00003508: FF .DB $FF 00003509: FF .DB $FF 0000350A: FF .DB $FF 0000350B: FF .DB $FF 0000350C: FF .DB $FF 0000350D: FF .DB $FF 0000350E: FF .DB $FF 0000350F: FF .DB $FF 00003510: FF .DB $FF 00003511: FF .DB $FF 00003512: FF .DB $FF 00003513: FF .DB $FF 00003514: FF .DB $FF 00003515: FF .DB $FF 00003516: FF .DB $FF 00003517: FF .DB $FF 00003518: FF .DB $FF 00003519: FF .DB $FF 0000351A: FF .DB $FF 0000351B: FF .DB $FF 0000351C: FF .DB $FF 0000351D: FF .DB $FF 0000351E: FF .DB $FF 0000351F: FF .DB $FF 00003520: FF .DB $FF 00003521: FF .DB $FF 00003522: FF .DB $FF 00003523: FF .DB $FF 00003524: FF .DB $FF 00003525: FF .DB $FF 00003526: FF .DB $FF 00003527: FF .DB $FF 00003528: FF .DB $FF 00003529: FF .DB $FF 0000352A: FF .DB $FF 0000352B: FF .DB $FF 0000352C: FF .DB $FF 0000352D: FF .DB $FF 0000352E: FF .DB $FF 0000352F: FF .DB $FF 00003530: FF .DB $FF 00003531: FF .DB $FF 00003532: FF .DB $FF 00003533: FF .DB $FF 00003534: FF .DB $FF 00003535: FF .DB $FF 00003536: FF .DB $FF 00003537: FF .DB $FF 00003538: FF .DB $FF 00003539: FF .DB $FF 0000353A: FF .DB $FF 0000353B: FF .DB $FF 0000353C: FF .DB $FF 0000353D: FF .DB $FF 0000353E: FF .DB $FF 0000353F: FF .DB $FF 00003540: FF .DB $FF 00003541: FF .DB $FF 00003542: FF .DB $FF 00003543: FF .DB $FF 00003544: FF .DB $FF 00003545: FF .DB $FF 00003546: FF .DB $FF 00003547: FF .DB $FF 00003548: FF .DB $FF 00003549: FF .DB $FF 0000354A: FF .DB $FF 0000354B: FF .DB $FF 0000354C: FF .DB $FF 0000354D: FF .DB $FF 0000354E: FF .DB $FF 0000354F: FF .DB $FF 00003550: FF .DB $FF 00003551: FF .DB $FF 00003552: FF .DB $FF 00003553: FF .DB $FF 00003554: FF .DB $FF 00003555: FF .DB $FF 00003556: FF .DB $FF 00003557: FF .DB $FF 00003558: FF .DB $FF 00003559: FF .DB $FF 0000355A: FF .DB $FF 0000355B: FF .DB $FF 0000355C: FF .DB $FF 0000355D: FF .DB $FF 0000355E: FF .DB $FF 0000355F: FF .DB $FF 00003560: FF .DB $FF 00003561: FF .DB $FF 00003562: FF .DB $FF 00003563: FF .DB $FF 00003564: FF .DB $FF 00003565: FF .DB $FF 00003566: FF .DB $FF 00003567: FF .DB $FF 00003568: FF .DB $FF 00003569: FF .DB $FF 0000356A: FF .DB $FF 0000356B: FF .DB $FF 0000356C: FF .DB $FF 0000356D: FF .DB $FF 0000356E: FF .DB $FF 0000356F: FF .DB $FF 00003570: FF .DB $FF 00003571: FF .DB $FF 00003572: FF .DB $FF 00003573: FF .DB $FF 00003574: FF .DB $FF 00003575: FF .DB $FF 00003576: FF .DB $FF 00003577: FF .DB $FF 00003578: FF .DB $FF 00003579: FF .DB $FF 0000357A: FF .DB $FF 0000357B: FF .DB $FF 0000357C: FF .DB $FF 0000357D: FF .DB $FF 0000357E: FF .DB $FF 0000357F: FF .DB $FF 00003580: FF .DB $FF 00003581: FF .DB $FF 00003582: FF .DB $FF 00003583: FF .DB $FF 00003584: FF .DB $FF 00003585: FF .DB $FF 00003586: FF .DB $FF 00003587: FF .DB $FF 00003588: FF .DB $FF 00003589: FF .DB $FF 0000358A: FF .DB $FF 0000358B: FF .DB $FF 0000358C: FF .DB $FF 0000358D: FF .DB $FF 0000358E: FF .DB $FF 0000358F: FF .DB $FF 00003590: FF .DB $FF 00003591: FF .DB $FF 00003592: FF .DB $FF 00003593: FF .DB $FF 00003594: FF .DB $FF 00003595: FF .DB $FF 00003596: FF .DB $FF 00003597: FF .DB $FF 00003598: FF .DB $FF 00003599: FF .DB $FF 0000359A: FF .DB $FF 0000359B: FF .DB $FF 0000359C: FF .DB $FF 0000359D: FF .DB $FF 0000359E: FF .DB $FF 0000359F: FF .DB $FF 000035A0: FF .DB $FF 000035A1: FF .DB $FF 000035A2: FF .DB $FF 000035A3: FF .DB $FF 000035A4: FF .DB $FF 000035A5: FF .DB $FF 000035A6: FF .DB $FF 000035A7: FF .DB $FF 000035A8: FF .DB $FF 000035A9: FF .DB $FF 000035AA: FF .DB $FF 000035AB: FF .DB $FF 000035AC: FF .DB $FF 000035AD: FF .DB $FF 000035AE: FF .DB $FF 000035AF: FF .DB $FF 000035B0: FF .DB $FF 000035B1: FF .DB $FF 000035B2: FF .DB $FF 000035B3: FF .DB $FF 000035B4: FF .DB $FF 000035B5: FF .DB $FF 000035B6: FF .DB $FF 000035B7: FF .DB $FF 000035B8: FF .DB $FF 000035B9: FF .DB $FF 000035BA: FF .DB $FF 000035BB: FF .DB $FF 000035BC: FF .DB $FF 000035BD: FF .DB $FF 000035BE: FF .DB $FF 000035BF: FF .DB $FF 000035C0: FF .DB $FF 000035C1: FF .DB $FF 000035C2: FF .DB $FF 000035C3: FF .DB $FF 000035C4: FF .DB $FF 000035C5: FF .DB $FF 000035C6: FF .DB $FF 000035C7: FF .DB $FF 000035C8: FF .DB $FF 000035C9: FF .DB $FF 000035CA: FF .DB $FF 000035CB: FF .DB $FF 000035CC: FF .DB $FF 000035CD: FF .DB $FF 000035CE: FF .DB $FF 000035CF: FF .DB $FF 000035D0: FF .DB $FF 000035D1: FF .DB $FF 000035D2: FF .DB $FF 000035D3: FF .DB $FF 000035D4: FF .DB $FF 000035D5: FF .DB $FF 000035D6: FF .DB $FF 000035D7: FF .DB $FF 000035D8: FF .DB $FF 000035D9: FF .DB $FF 000035DA: FF .DB $FF 000035DB: FF .DB $FF 000035DC: FF .DB $FF 000035DD: FF .DB $FF 000035DE: FF .DB $FF 000035DF: FF .DB $FF 000035E0: FF .DB $FF 000035E1: FF .DB $FF 000035E2: FF .DB $FF 000035E3: FF .DB $FF 000035E4: FF .DB $FF 000035E5: FF .DB $FF 000035E6: FF .DB $FF 000035E7: FF .DB $FF 000035E8: FF .DB $FF 000035E9: FF .DB $FF 000035EA: FF .DB $FF 000035EB: FF .DB $FF 000035EC: FF .DB $FF 000035ED: FF .DB $FF 000035EE: FF .DB $FF 000035EF: FF .DB $FF 000035F0: FF .DB $FF 000035F1: FF .DB $FF 000035F2: FF .DB $FF 000035F3: FF .DB $FF 000035F4: FF .DB $FF 000035F5: FF .DB $FF 000035F6: FF .DB $FF 000035F7: FF .DB $FF 000035F8: FF .DB $FF 000035F9: FF .DB $FF 000035FA: FF .DB $FF 000035FB: FF .DB $FF 000035FC: FF .DB $FF 000035FD: FF .DB $FF 000035FE: FF .DB $FF 000035FF: FF .DB $FF 00003600: FF .DB $FF 00003601: FF .DB $FF 00003602: FF .DB $FF 00003603: FF .DB $FF 00003604: FF .DB $FF 00003605: FF .DB $FF 00003606: FF .DB $FF 00003607: FF .DB $FF 00003608: FF .DB $FF 00003609: FF .DB $FF 0000360A: FF .DB $FF 0000360B: FF .DB $FF 0000360C: FF .DB $FF 0000360D: FF .DB $FF 0000360E: FF .DB $FF 0000360F: FF .DB $FF 00003610: FF .DB $FF 00003611: FF .DB $FF 00003612: FF .DB $FF 00003613: FF .DB $FF 00003614: FF .DB $FF 00003615: FF .DB $FF 00003616: FF .DB $FF 00003617: FF .DB $FF 00003618: FF .DB $FF 00003619: FF .DB $FF 0000361A: FF .DB $FF 0000361B: FF .DB $FF 0000361C: FF .DB $FF 0000361D: FF .DB $FF 0000361E: FF .DB $FF 0000361F: FF .DB $FF 00003620: FF .DB $FF 00003621: FF .DB $FF 00003622: FF .DB $FF 00003623: FF .DB $FF 00003624: FF .DB $FF 00003625: FF .DB $FF 00003626: FF .DB $FF 00003627: FF .DB $FF 00003628: FF .DB $FF 00003629: FF .DB $FF 0000362A: FF .DB $FF 0000362B: FF .DB $FF 0000362C: FF .DB $FF 0000362D: FF .DB $FF 0000362E: FF .DB $FF 0000362F: FF .DB $FF 00003630: FF .DB $FF 00003631: FF .DB $FF 00003632: FF .DB $FF 00003633: FF .DB $FF 00003634: FF .DB $FF 00003635: FF .DB $FF 00003636: FF .DB $FF 00003637: FF .DB $FF 00003638: FF .DB $FF 00003639: FF .DB $FF 0000363A: FF .DB $FF 0000363B: FF .DB $FF 0000363C: FF .DB $FF 0000363D: FF .DB $FF 0000363E: FF .DB $FF 0000363F: FF .DB $FF 00003640: FF .DB $FF 00003641: FF .DB $FF 00003642: FF .DB $FF 00003643: FF .DB $FF 00003644: FF .DB $FF 00003645: FF .DB $FF 00003646: FF .DB $FF 00003647: FF .DB $FF 00003648: FF .DB $FF 00003649: FF .DB $FF 0000364A: FF .DB $FF 0000364B: FF .DB $FF 0000364C: FF .DB $FF 0000364D: FF .DB $FF 0000364E: FF .DB $FF 0000364F: FF .DB $FF 00003650: FF .DB $FF 00003651: FF .DB $FF 00003652: FF .DB $FF 00003653: FF .DB $FF 00003654: FF .DB $FF 00003655: FF .DB $FF 00003656: FF .DB $FF 00003657: FF .DB $FF 00003658: FF .DB $FF 00003659: FF .DB $FF 0000365A: FF .DB $FF 0000365B: FF .DB $FF 0000365C: FF .DB $FF 0000365D: FF .DB $FF 0000365E: FF .DB $FF 0000365F: FF .DB $FF 00003660: FF .DB $FF 00003661: FF .DB $FF 00003662: FF .DB $FF 00003663: FF .DB $FF 00003664: FF .DB $FF 00003665: FF .DB $FF 00003666: FF .DB $FF 00003667: FF .DB $FF 00003668: FF .DB $FF 00003669: FF .DB $FF 0000366A: FF .DB $FF 0000366B: FF .DB $FF 0000366C: FF .DB $FF 0000366D: FF .DB $FF 0000366E: FF .DB $FF 0000366F: FF .DB $FF 00003670: FF .DB $FF 00003671: FF .DB $FF 00003672: FF .DB $FF 00003673: FF .DB $FF 00003674: FF .DB $FF 00003675: FF .DB $FF 00003676: FF .DB $FF 00003677: FF .DB $FF 00003678: FF .DB $FF 00003679: FF .DB $FF 0000367A: FF .DB $FF 0000367B: FF .DB $FF 0000367C: FF .DB $FF 0000367D: FF .DB $FF 0000367E: FF .DB $FF 0000367F: FF .DB $FF 00003680: FF .DB $FF 00003681: FF .DB $FF 00003682: FF .DB $FF 00003683: FF .DB $FF 00003684: FF .DB $FF 00003685: FF .DB $FF 00003686: FF .DB $FF 00003687: FF .DB $FF 00003688: FF .DB $FF 00003689: FF .DB $FF 0000368A: FF .DB $FF 0000368B: FF .DB $FF 0000368C: FF .DB $FF 0000368D: FF .DB $FF 0000368E: FF .DB $FF 0000368F: FF .DB $FF 00003690: FF .DB $FF 00003691: FF .DB $FF 00003692: FF .DB $FF 00003693: FF .DB $FF 00003694: FF .DB $FF 00003695: FF .DB $FF 00003696: FF .DB $FF 00003697: FF .DB $FF 00003698: FF .DB $FF 00003699: FF .DB $FF 0000369A: FF .DB $FF 0000369B: FF .DB $FF 0000369C: FF .DB $FF 0000369D: FF .DB $FF 0000369E: FF .DB $FF 0000369F: FF .DB $FF 000036A0: FF .DB $FF 000036A1: FF .DB $FF 000036A2: FF .DB $FF 000036A3: FF .DB $FF 000036A4: FF .DB $FF 000036A5: FF .DB $FF 000036A6: FF .DB $FF 000036A7: FF .DB $FF 000036A8: FF .DB $FF 000036A9: FF .DB $FF 000036AA: FF .DB $FF 000036AB: FF .DB $FF 000036AC: FF .DB $FF 000036AD: FF .DB $FF 000036AE: FF .DB $FF 000036AF: FF .DB $FF 000036B0: FF .DB $FF 000036B1: FF .DB $FF 000036B2: FF .DB $FF 000036B3: FF .DB $FF 000036B4: FF .DB $FF 000036B5: FF .DB $FF 000036B6: FF .DB $FF 000036B7: FF .DB $FF 000036B8: FF .DB $FF 000036B9: FF .DB $FF 000036BA: FF .DB $FF 000036BB: FF .DB $FF 000036BC: FF .DB $FF 000036BD: FF .DB $FF 000036BE: FF .DB $FF 000036BF: FF .DB $FF 000036C0: FF .DB $FF 000036C1: FF .DB $FF 000036C2: FF .DB $FF 000036C3: FF .DB $FF 000036C4: FF .DB $FF 000036C5: FF .DB $FF 000036C6: FF .DB $FF 000036C7: FF .DB $FF 000036C8: FF .DB $FF 000036C9: FF .DB $FF 000036CA: FF .DB $FF 000036CB: FF .DB $FF 000036CC: FF .DB $FF 000036CD: FF .DB $FF 000036CE: FF .DB $FF 000036CF: FF .DB $FF 000036D0: FF .DB $FF 000036D1: FF .DB $FF 000036D2: FF .DB $FF 000036D3: FF .DB $FF 000036D4: FF .DB $FF 000036D5: FF .DB $FF 000036D6: FF .DB $FF 000036D7: FF .DB $FF 000036D8: FF .DB $FF 000036D9: FF .DB $FF 000036DA: FF .DB $FF 000036DB: FF .DB $FF 000036DC: FF .DB $FF 000036DD: FF .DB $FF 000036DE: FF .DB $FF 000036DF: FF .DB $FF 000036E0: FF .DB $FF 000036E1: FF .DB $FF 000036E2: FF .DB $FF 000036E3: FF .DB $FF 000036E4: FF .DB $FF 000036E5: FF .DB $FF 000036E6: FF .DB $FF 000036E7: FF .DB $FF 000036E8: FF .DB $FF 000036E9: FF .DB $FF 000036EA: FF .DB $FF 000036EB: FF .DB $FF 000036EC: FF .DB $FF 000036ED: FF .DB $FF 000036EE: FF .DB $FF 000036EF: FF .DB $FF 000036F0: FF .DB $FF 000036F1: FF .DB $FF 000036F2: FF .DB $FF 000036F3: FF .DB $FF 000036F4: FF .DB $FF 000036F5: FF .DB $FF 000036F6: FF .DB $FF 000036F7: FF .DB $FF 000036F8: FF .DB $FF 000036F9: FF .DB $FF 000036FA: FF .DB $FF 000036FB: FF .DB $FF 000036FC: FF .DB $FF 000036FD: FF .DB $FF 000036FE: FF .DB $FF 000036FF: FF .DB $FF 00003700: FF .DB $FF 00003701: FF .DB $FF 00003702: FF .DB $FF 00003703: FF .DB $FF 00003704: FF .DB $FF 00003705: FF .DB $FF 00003706: FF .DB $FF 00003707: FF .DB $FF 00003708: FF .DB $FF 00003709: FF .DB $FF 0000370A: FF .DB $FF 0000370B: FF .DB $FF 0000370C: FF .DB $FF 0000370D: FF .DB $FF 0000370E: FF .DB $FF 0000370F: FF .DB $FF 00003710: FF .DB $FF 00003711: FF .DB $FF 00003712: FF .DB $FF 00003713: FF .DB $FF 00003714: FF .DB $FF 00003715: FF .DB $FF 00003716: FF .DB $FF 00003717: FF .DB $FF 00003718: FF .DB $FF 00003719: FF .DB $FF 0000371A: FF .DB $FF 0000371B: FF .DB $FF 0000371C: FF .DB $FF 0000371D: FF .DB $FF 0000371E: FF .DB $FF 0000371F: FF .DB $FF 00003720: FF .DB $FF 00003721: FF .DB $FF 00003722: FF .DB $FF 00003723: FF .DB $FF 00003724: FF .DB $FF 00003725: FF .DB $FF 00003726: FF .DB $FF 00003727: FF .DB $FF 00003728: FF .DB $FF 00003729: FF .DB $FF 0000372A: FF .DB $FF 0000372B: FF .DB $FF 0000372C: FF .DB $FF 0000372D: FF .DB $FF 0000372E: FF .DB $FF 0000372F: FF .DB $FF 00003730: FF .DB $FF 00003731: FF .DB $FF 00003732: FF .DB $FF 00003733: FF .DB $FF 00003734: FF .DB $FF 00003735: FF .DB $FF 00003736: FF .DB $FF 00003737: FF .DB $FF 00003738: FF .DB $FF 00003739: FF .DB $FF 0000373A: FF .DB $FF 0000373B: FF .DB $FF 0000373C: FF .DB $FF 0000373D: FF .DB $FF 0000373E: FF .DB $FF 0000373F: FF .DB $FF 00003740: FF .DB $FF 00003741: FF .DB $FF 00003742: FF .DB $FF 00003743: FF .DB $FF 00003744: FF .DB $FF 00003745: FF .DB $FF 00003746: FF .DB $FF 00003747: FF .DB $FF 00003748: FF .DB $FF 00003749: FF .DB $FF 0000374A: FF .DB $FF 0000374B: FF .DB $FF 0000374C: FF .DB $FF 0000374D: FF .DB $FF 0000374E: FF .DB $FF 0000374F: FF .DB $FF 00003750: FF .DB $FF 00003751: FF .DB $FF 00003752: FF .DB $FF 00003753: FF .DB $FF 00003754: FF .DB $FF 00003755: FF .DB $FF 00003756: FF .DB $FF 00003757: FF .DB $FF 00003758: FF .DB $FF 00003759: FF .DB $FF 0000375A: FF .DB $FF 0000375B: FF .DB $FF 0000375C: FF .DB $FF 0000375D: FF .DB $FF 0000375E: FF .DB $FF 0000375F: FF .DB $FF 00003760: FF .DB $FF 00003761: FF .DB $FF 00003762: FF .DB $FF 00003763: FF .DB $FF 00003764: FF .DB $FF 00003765: FF .DB $FF 00003766: FF .DB $FF 00003767: FF .DB $FF 00003768: FF .DB $FF 00003769: FF .DB $FF 0000376A: FF .DB $FF 0000376B: FF .DB $FF 0000376C: FF .DB $FF 0000376D: FF .DB $FF 0000376E: FF .DB $FF 0000376F: FF .DB $FF 00003770: FF .DB $FF 00003771: FF .DB $FF 00003772: FF .DB $FF 00003773: FF .DB $FF 00003774: FF .DB $FF 00003775: FF .DB $FF 00003776: FF .DB $FF 00003777: FF .DB $FF 00003778: FF .DB $FF 00003779: FF .DB $FF 0000377A: FF .DB $FF 0000377B: FF .DB $FF 0000377C: FF .DB $FF 0000377D: FF .DB $FF 0000377E: FF .DB $FF 0000377F: FF .DB $FF 00003780: FF .DB $FF 00003781: FF .DB $FF 00003782: FF .DB $FF 00003783: FF .DB $FF 00003784: FF .DB $FF 00003785: FF .DB $FF 00003786: FF .DB $FF 00003787: FF .DB $FF 00003788: FF .DB $FF 00003789: FF .DB $FF 0000378A: FF .DB $FF 0000378B: FF .DB $FF 0000378C: FF .DB $FF 0000378D: FF .DB $FF 0000378E: FF .DB $FF 0000378F: FF .DB $FF 00003790: FF .DB $FF 00003791: FF .DB $FF 00003792: FF .DB $FF 00003793: FF .DB $FF 00003794: FF .DB $FF 00003795: FF .DB $FF 00003796: FF .DB $FF 00003797: FF .DB $FF 00003798: FF .DB $FF 00003799: FF .DB $FF 0000379A: FF .DB $FF 0000379B: FF .DB $FF 0000379C: FF .DB $FF 0000379D: FF .DB $FF 0000379E: FF .DB $FF 0000379F: FF .DB $FF 000037A0: FF .DB $FF 000037A1: FF .DB $FF 000037A2: FF .DB $FF 000037A3: FF .DB $FF 000037A4: FF .DB $FF 000037A5: FF .DB $FF 000037A6: FF .DB $FF 000037A7: FF .DB $FF 000037A8: FF .DB $FF 000037A9: FF .DB $FF 000037AA: FF .DB $FF 000037AB: FF .DB $FF 000037AC: FF .DB $FF 000037AD: FF .DB $FF 000037AE: FF .DB $FF 000037AF: FF .DB $FF 000037B0: FF .DB $FF 000037B1: FF .DB $FF 000037B2: FF .DB $FF 000037B3: FF .DB $FF 000037B4: FF .DB $FF 000037B5: FF .DB $FF 000037B6: FF .DB $FF 000037B7: FF .DB $FF 000037B8: FF .DB $FF 000037B9: FF .DB $FF 000037BA: FF .DB $FF 000037BB: FF .DB $FF 000037BC: FF .DB $FF 000037BD: FF .DB $FF 000037BE: FF .DB $FF 000037BF: FF .DB $FF 000037C0: FF .DB $FF 000037C1: FF .DB $FF 000037C2: FF .DB $FF 000037C3: FF .DB $FF 000037C4: FF .DB $FF 000037C5: FF .DB $FF 000037C6: FF .DB $FF 000037C7: FF .DB $FF 000037C8: FF .DB $FF 000037C9: FF .DB $FF 000037CA: FF .DB $FF 000037CB: FF .DB $FF 000037CC: FF .DB $FF 000037CD: FF .DB $FF 000037CE: FF .DB $FF 000037CF: FF .DB $FF 000037D0: FF .DB $FF 000037D1: FF .DB $FF 000037D2: FF .DB $FF 000037D3: FF .DB $FF 000037D4: FF .DB $FF 000037D5: FF .DB $FF 000037D6: FF .DB $FF 000037D7: FF .DB $FF 000037D8: FF .DB $FF 000037D9: FF .DB $FF 000037DA: FF .DB $FF 000037DB: FF .DB $FF 000037DC: FF .DB $FF 000037DD: FF .DB $FF 000037DE: FF .DB $FF 000037DF: FF .DB $FF 000037E0: FF .DB $FF 000037E1: FF .DB $FF 000037E2: FF .DB $FF 000037E3: FF .DB $FF 000037E4: FF .DB $FF 000037E5: FF .DB $FF 000037E6: FF .DB $FF 000037E7: FF .DB $FF 000037E8: FF .DB $FF 000037E9: FF .DB $FF 000037EA: FF .DB $FF 000037EB: FF .DB $FF 000037EC: FF .DB $FF 000037ED: FF .DB $FF 000037EE: FF .DB $FF 000037EF: FF .DB $FF 000037F0: FF .DB $FF 000037F1: FF .DB $FF 000037F2: FF .DB $FF 000037F3: FF .DB $FF 000037F4: FF .DB $FF 000037F5: FF .DB $FF 000037F6: FF .DB $FF 000037F7: FF .DB $FF 000037F8: FF .DB $FF 000037F9: FF .DB $FF 000037FA: FF .DB $FF 000037FB: FF .DB $FF 000037FC: FF .DB $FF 000037FD: FF .DB $FF 000037FE: FF .DB $FF 000037FF: FF .DB $FF 00003800: FF .DB $FF 00003801: FF .DB $FF 00003802: FF .DB $FF 00003803: FF .DB $FF 00003804: FF .DB $FF 00003805: FF .DB $FF 00003806: FF .DB $FF 00003807: FF .DB $FF 00003808: FF .DB $FF 00003809: FF .DB $FF 0000380A: FF .DB $FF 0000380B: FF .DB $FF 0000380C: FF .DB $FF 0000380D: FF .DB $FF 0000380E: FF .DB $FF 0000380F: FF .DB $FF 00003810: 5555 EOR $55,X 00003812: 5555 EOR $55,X 00003814: 5555 EOR $55,X 00003816: 5555 EOR $55,X 00003818: 5555 EOR $55,X 0000381A: 5555 EOR $55,X 0000381C: 5555 EOR $55,X 0000381E: 5555 EOR $55,X 00003820: 5595 EOR $95,X 00003822: AA TAX 00003823: 565B LSR $5B,X 00003825: 554A EOR $4A,X 00003827: 25A5 AND $A5 00003829: AA TAX 0000382A: 5A .DB $5A 0000382B: 55B5 EOR $B5,X 0000382D: AA TAX 0000382E: 5655 LSR $55,X 00003830: 5555 EOR $55,X 00003832: B5AA LDA $AA,X 00003834: AA TAX 00003835: AA TAX 00003836: AA TAX 00003837: AA TAX 00003838: 4A LSR A 00003839: 5555 EOR $55,X 0000383B: 5555 EOR $55,X 0000383D: 5555 EOR $55,X 0000383F: 5525 EOR $25,X 00003841: 00 BRK 00003842: FC .DB $FC 00003843: FF .DB $FF 00003844: 9F .DB $9F 00003845: 204054 JSR $5440 00003848: 6DA5AA ADC $AAA5 0000384B: 24A1 BIT $A1 0000384D: B455 LDY $55,X 0000384F: BD7FD7 LDA $D77F,X 00003852: 6F .DB $6F 00003853: 6B .DB $6B 00003854: DB .DB $DB 00003855: AED5DA LDX $DAD5 00003858: B695 LDX $95,Y 0000385A: 92 .DB $92 0000385B: 44 .DB $44 0000385C: 52 .DB $52 0000385D: A52A LDA $2A 0000385F: A524 LDA $24 00003861: 2151 AND ($51,X) 00003863: A42A LDY $2A 00003865: 25A5 AND $A5 00003867: A454 LDY $54 00003869: 49A9 EOR #$A9 0000386B: 54 .DB $54 0000386C: A55A LDA $5A 0000386E: 5B .DB $5B 0000386F: AB .DB $AB 00003870: B5B6 LDA $B6,X 00003872: B5ED LDA $ED,X 00003874: D6D6 DEC $D6,X 00003876: AA TAX 00003877: AA TAX 00003878: B42A LDY $2A,X 0000387A: 95AA STA $AA,X 0000387C: 16B7 ASL $B7,X 0000387E: 54 .DB $54 0000387F: 5555 EOR $55,X 00003881: 556D EOR $6D,X 00003883: 5B .DB $5B 00003884: 55A5 EOR $A5,X 00003886: 95AA STA $AA,X 00003888: AD4AAA LDA $AA4A 0000388B: AA TAX 0000388C: 5A .DB $5A 0000388D: B55A LDA $5A,X 0000388F: AB .DB $AB 00003890: AA TAX 00003891: 55B5 EOR $B5,X 00003893: D6AA DEC $AA,X 00003895: 2A ROL A 00003896: 5555 EOR $55,X 00003898: AB .DB $AB 00003899: AA TAX 0000389A: 52 .DB $52 0000389B: A952 LDA #$52 0000389D: 29A5 AND #$A5 0000389F: 54 .DB $54 000038A0: 2925 AND #$25 000038A2: 2589 AND $89 000038A4: 9492 STY $92,X 000038A6: 2425 BIT $25 000038A8: 4955 EOR #$55 000038AA: 5529 EOR $29,X 000038AC: A594 LDA $94 000038AE: A4A4 LDY $A4 000038B0: A452 LDY $52 000038B2: A954 LDA #$54 000038B4: A954 LDA #$54 000038B6: A9AA LDA #$AA 000038B8: AA TAX 000038B9: AA TAX 000038BA: AA TAX 000038BB: AA TAX 000038BC: AA TAX 000038BD: AA TAX 000038BE: AA TAX 000038BF: AA TAX 000038C0: B556 LDA $56,X 000038C2: B5AD LDA $AD,X 000038C4: D55A CMP $5A,X 000038C6: AB .DB $AB 000038C7: 56AD LSR $AD,X 000038C9: 565B LSR $5B,X 000038CB: 6B .DB $6B 000038CC: B5AD LDA $AD,X 000038CE: B5B6 LDA $B6,X 000038D0: D6DA DEC $DA,X 000038D2: 6DB5B5 ADC $B5B5 000038D5: B5D6 LDA $D6,X 000038D7: 5A .DB $5A 000038D8: 6B .DB $6B 000038D9: 6D5BAD ADC $AD5B 000038DC: B55A LDA $5A,X 000038DE: 6B .DB $6B 000038DF: ADAAB5 LDA $B5AA 000038E2: 6A ROR A 000038E3: 55AD EOR $AD,X 000038E5: 56AB LSR $AB,X 000038E7: 5A .DB $5A 000038E8: ADAA5A LDA $5AAA 000038EB: 55FF EOR $FF,X 000038ED: FF .DB $FF 000038EE: FF .DB $FF 000038EF: FF .DB $FF 000038F0: AF .DB $AF 000038F1: 2A ROL A 000038F2: 5555 EOR $55,X 000038F4: 55A9 EOR $A9,X 000038F6: AA TAX 000038F7: 2A ROL A 000038F8: 55AA EOR $AA,X 000038FA: AA TAX 000038FB: AA TAX 000038FC: 5555 EOR $55,X 000038FE: 55B5 EOR $B5,X 00003900: AA TAX 00003901: AA TAX 00003902: AA TAX 00003903: AA TAX 00003904: AA TAX 00003905: 52 .DB $52 00003906: 95AA STA $AA,X 00003908: 4A LSR A 00003909: 55A5 EOR $A5,X 0000390B: 2A ROL A 0000390C: 55A5 EOR $A5,X 0000390E: AA TAX 0000390F: 52 .DB $52 00003910: 95AA STA $AA,X 00003912: AA TAX 00003913: 2A ROL A 00003914: 55A9 EOR $A9,X 00003916: 2A ROL A 00003917: 55AA EOR $AA,X 00003919: 2A ROL A 0000391A: 954A STA $4A,X 0000391C: 25A5 AND $A5 0000391E: 9452 STY $52,X 00003920: 4A LSR A 00003921: 2995 AND #$95 00003923: 4A LSR A 00003924: A5AA LDA $AA 00003926: 52 .DB $52 00003927: 2A ROL A 00003928: 55AA EOR $AA,X 0000392A: 52 .DB $52 0000392B: 95AA STA $AA,X 0000392D: 52 .DB $52 0000392E: A5AA LDA $AA 00003930: AA TAX 00003931: AA TAX 00003932: AA TAX 00003933: AA TAX 00003934: AA TAX 00003935: AA TAX 00003936: AA TAX 00003937: AA TAX 00003938: AA TAX 00003939: 2A ROL A 0000393A: 5555 EOR $55,X 0000393C: 5555 EOR $55,X 0000393E: 5555 EOR $55,X 00003940: 5555 EOR $55,X 00003942: 5555 EOR $55,X 00003944: AB .DB $AB 00003945: AA TAX 00003946: AA TAX 00003947: 52 .DB $52 00003948: 5555 EOR $55,X 0000394A: 55AA EOR $AA,X 0000394C: 4A LSR A 0000394D: 29A5 AND #$A5 0000394F: 94A4 STY $A4,X 00003951: 4A LSR A 00003952: 5555 EOR $55,X 00003954: A5AA LDA $AA 00003956: AA TAX 00003957: AA TAX 00003958: AA TAX 00003959: 6A ROR A 0000395A: A9AA LDA #$AA 0000395C: AA TAX 0000395D: AA TAX 0000395E: AA TAX 0000395F: AA TAX 00003960: AA TAX 00003961: AA TAX 00003962: AA TAX 00003963: 5A .DB $5A 00003964: 55AD EOR $AD,X 00003966: 5A .DB $5A 00003967: AD6A55 LDA $556A 0000396A: 6B .DB $6B 0000396B: ADD56A LDA $6AD5 0000396E: B55A LDA $5A,X 00003970: B56A LDA $6A,X 00003972: 55AB EOR $AB,X 00003974: AA TAX 00003975: AA TAX 00003976: AA TAX 00003977: AA TAX 00003978: 5555 EOR $55,X 0000397A: 55AB EOR $AB,X 0000397C: 56AD LSR $AD,X 0000397E: AA TAX 0000397F: AA TAX 00003980: AA TAX 00003981: AA TAX 00003982: AA TAX 00003983: AA TAX 00003984: AA TAX 00003985: AA TAX 00003986: 54 .DB $54 00003987: 95AA STA $AA,X 00003989: AA TAX 0000398A: AA TAX 0000398B: 4A LSR A 0000398C: 55A9 EOR $A9,X 0000398E: AA TAX 0000398F: AA TAX 00003990: AA TAX 00003991: 2A ROL A 00003992: D5AA CMP $AA,X 00003994: AA TAX 00003995: AA TAX 00003996: 5555 EOR $55,X 00003998: B5AA LDA $AA,X 0000399A: AA TAX 0000399B: 5555 EOR $55,X 0000399D: 5555 EOR $55,X 0000399F: 5555 EOR $55,X 000039A1: 5555 EOR $55,X 000039A3: 55A5 EOR $A5,X 000039A5: AA TAX 000039A6: AA TAX 000039A7: AA TAX 000039A8: AA TAX 000039A9: AA TAX 000039AA: AA TAX 000039AB: 5A .DB $5A 000039AC: 5555 EOR $55,X 000039AE: B5AA LDA $AA,X 000039B0: AA TAX 000039B1: 6A ROR A 000039B2: A5AA LDA $AA 000039B4: 5555 EOR $55,X 000039B6: 5555 EOR $55,X 000039B8: AB .DB $AB 000039B9: 5669 LSR $69,X 000039BB: 5555 EOR $55,X 000039BD: ADAAAA LDA $AAAA 000039C0: AA TAX 000039C1: AA TAX 000039C2: AA TAX 000039C3: AA TAX 000039C4: AA TAX 000039C5: AA TAX 000039C6: AA TAX 000039C7: AA TAX 000039C8: AA TAX 000039C9: AA TAX 000039CA: AA TAX 000039CB: AA TAX 000039CC: AA TAX 000039CD: 2A ROL A 000039CE: 55A5 EOR $A5,X 000039D0: AA TAX 000039D1: 54 .DB $54 000039D2: 5595 EOR $95,X 000039D4: AA TAX 000039D5: AA TAX 000039D6: AA TAX 000039D7: 4A LSR A 000039D8: 5555 EOR $55,X 000039DA: 95AA STA $AA,X 000039DC: 52 .DB $52 000039DD: 5555 EOR $55,X 000039DF: A5AA LDA $AA 000039E1: AA TAX 000039E2: AA TAX 000039E3: AA TAX 000039E4: AA TAX 000039E5: AA TAX 000039E6: AA TAX 000039E7: AA TAX 000039E8: 5555 EOR $55,X 000039EA: 55B5 EOR $B5,X 000039EC: AA TAX 000039ED: AA TAX 000039EE: AA TAX 000039EF: AA TAX 000039F0: AA TAX 000039F1: AA TAX 000039F2: AA TAX 000039F3: AA TAX 000039F4: AA TAX 000039F5: AA TAX 000039F6: AA TAX 000039F7: AA TAX 000039F8: AA TAX 000039F9: AA TAX 000039FA: AA TAX 000039FB: AA TAX 000039FC: AA TAX 000039FD: AA TAX 000039FE: AA TAX 000039FF: AA TAX 00003A00: 6A ROR A 00003A01: 5555 EOR $55,X 00003A03: 5555 EOR $55,X 00003A05: 55AB EOR $AB,X 00003A07: AA TAX 00003A08: AA TAX 00003A09: AA TAX 00003A0A: AA TAX 00003A0B: AA TAX 00003A0C: 5A .DB $5A 00003A0D: 5555 EOR $55,X 00003A0F: D5AA CMP $AA,X 00003A11: AA TAX 00003A12: AA TAX 00003A13: 5655 LSR $55,X 00003A15: 5555 EOR $55,X 00003A17: 5555 EOR $55,X 00003A19: 5555 EOR $55,X 00003A1B: 5555 EOR $55,X 00003A1D: 5555 EOR $55,X 00003A1F: 5555 EOR $55,X 00003A21: 5555 EOR $55,X 00003A23: 955A STA $5A,X 00003A25: AA TAX 00003A26: AA TAX 00003A27: AA TAX 00003A28: AA TAX 00003A29: AA TAX 00003A2A: AA TAX 00003A2B: AA TAX 00003A2C: AA TAX 00003A2D: 4A LSR A 00003A2E: 5555 EOR $55,X 00003A30: 5555 EOR $55,X 00003A32: 5555 EOR $55,X 00003A34: AA TAX 00003A35: AA TAX 00003A36: AA TAX 00003A37: AA TAX 00003A38: AA TAX 00003A39: AA TAX 00003A3A: AA TAX 00003A3B: AA TAX 00003A3C: AA TAX 00003A3D: AA TAX 00003A3E: AA TAX 00003A3F: AA TAX 00003A40: 72 .DB $72 00003A41: 0F .DB $0F 00003A42: AA TAX 00003A43: AA TAX 00003A44: AA TAX 00003A45: AA TAX 00003A46: AA TAX 00003A47: AA TAX 00003A48: AA TAX 00003A49: AA TAX 00003A4A: AA TAX 00003A4B: AA TAX 00003A4C: AA TAX 00003A4D: AA TAX 00003A4E: AA TAX 00003A4F: AA TAX 00003A50: AA TAX 00003A51: AA TAX 00003A52: AA TAX 00003A53: AA TAX 00003A54: AA TAX 00003A55: AA TAX 00003A56: AA TAX 00003A57: AA TAX 00003A58: AA TAX 00003A59: 5555 EOR $55,X 00003A5B: 5555 EOR $55,X 00003A5D: 5555 EOR $55,X 00003A5F: 5555 EOR $55,X 00003A61: 00 BRK 00003A62: 00 BRK 00003A63: 00 BRK 00003A64: 00 BRK 00003A65: 00 BRK 00003A66: 00 BRK 00003A67: 00 BRK 00003A68: 00 BRK 00003A69: 00 BRK 00003A6A: 00 BRK 00003A6B: 00 BRK 00003A6C: 00 BRK 00003A6D: 00 BRK 00003A6E: 00 BRK 00003A6F: 00 BRK 00003A70: 00 BRK 00003A71: 00 BRK 00003A72: 00 BRK 00003A73: 00 BRK 00003A74: 00 BRK 00003A75: 00 BRK 00003A76: 00 BRK 00003A77: 00 BRK 00003A78: 00 BRK 00003A79: 00 BRK 00003A7A: 00 BRK 00003A7B: 00 BRK 00003A7C: 00 BRK 00003A7D: 00 BRK 00003A7E: 00 BRK 00003A7F: 00 BRK 00003A80: 00 BRK 00003A81: 00 BRK 00003A82: 00 BRK 00003A83: 00 BRK 00003A84: 00 BRK 00003A85: 00 BRK 00003A86: 00 BRK 00003A87: 00 BRK 00003A88: 00 BRK 00003A89: 00 BRK 00003A8A: 00 BRK 00003A8B: 00 BRK 00003A8C: 00 BRK 00003A8D: 00 BRK 00003A8E: 00 BRK 00003A8F: 00 BRK 00003A90: FF .DB $FF 00003A91: FF .DB $FF 00003A92: FF .DB $FF 00003A93: FF .DB $FF 00003A94: FF .DB $FF 00003A95: FF .DB $FF 00003A96: FF .DB $FF 00003A97: FF .DB $FF 00003A98: FF .DB $FF 00003A99: FF .DB $FF 00003A9A: FF .DB $FF 00003A9B: FF .DB $FF 00003A9C: FF .DB $FF 00003A9D: FF .DB $FF 00003A9E: FF .DB $FF 00003A9F: FF .DB $FF 00003AA0: FF .DB $FF 00003AA1: FF .DB $FF 00003AA2: FF .DB $FF 00003AA3: FF .DB $FF 00003AA4: FF .DB $FF 00003AA5: FF .DB $FF 00003AA6: FF .DB $FF 00003AA7: FF .DB $FF 00003AA8: FF .DB $FF 00003AA9: FF .DB $FF 00003AAA: FF .DB $FF 00003AAB: FF .DB $FF 00003AAC: FF .DB $FF 00003AAD: FF .DB $FF 00003AAE: FF .DB $FF 00003AAF: FF .DB $FF 00003AB0: FF .DB $FF 00003AB1: FF .DB $FF 00003AB2: FF .DB $FF 00003AB3: FF .DB $FF 00003AB4: FF .DB $FF 00003AB5: FF .DB $FF 00003AB6: FF .DB $FF 00003AB7: FF .DB $FF 00003AB8: FF .DB $FF 00003AB9: FF .DB $FF 00003ABA: FF .DB $FF 00003ABB: FF .DB $FF 00003ABC: FF .DB $FF 00003ABD: FF .DB $FF 00003ABE: FF .DB $FF 00003ABF: FF .DB $FF 00003AC0: FF .DB $FF 00003AC1: FF .DB $FF 00003AC2: FF .DB $FF 00003AC3: FF .DB $FF 00003AC4: FF .DB $FF 00003AC5: FF .DB $FF 00003AC6: FF .DB $FF 00003AC7: FF .DB $FF 00003AC8: FF .DB $FF 00003AC9: FF .DB $FF 00003ACA: FF .DB $FF 00003ACB: FF .DB $FF 00003ACC: FF .DB $FF 00003ACD: FF .DB $FF 00003ACE: FF .DB $FF 00003ACF: FF .DB $FF 00003AD0: FF .DB $FF 00003AD1: FF .DB $FF 00003AD2: FF .DB $FF 00003AD3: FF .DB $FF 00003AD4: FF .DB $FF 00003AD5: FF .DB $FF 00003AD6: FF .DB $FF 00003AD7: FF .DB $FF 00003AD8: FF .DB $FF 00003AD9: FF .DB $FF 00003ADA: FF .DB $FF 00003ADB: FF .DB $FF 00003ADC: FF .DB $FF 00003ADD: FF .DB $FF 00003ADE: FF .DB $FF 00003ADF: FF .DB $FF 00003AE0: FF .DB $FF 00003AE1: FF .DB $FF 00003AE2: FF .DB $FF 00003AE3: FF .DB $FF 00003AE4: FF .DB $FF 00003AE5: FF .DB $FF 00003AE6: FF .DB $FF 00003AE7: FF .DB $FF 00003AE8: FF .DB $FF 00003AE9: FF .DB $FF 00003AEA: FF .DB $FF 00003AEB: FF .DB $FF 00003AEC: FF .DB $FF 00003AED: FF .DB $FF 00003AEE: FF .DB $FF 00003AEF: FF .DB $FF 00003AF0: FF .DB $FF 00003AF1: FF .DB $FF 00003AF2: FF .DB $FF 00003AF3: FF .DB $FF 00003AF4: FF .DB $FF 00003AF5: FF .DB $FF 00003AF6: FF .DB $FF 00003AF7: FF .DB $FF 00003AF8: FF .DB $FF 00003AF9: FF .DB $FF 00003AFA: FF .DB $FF 00003AFB: FF .DB $FF 00003AFC: FF .DB $FF 00003AFD: FF .DB $FF 00003AFE: FF .DB $FF 00003AFF: FF .DB $FF 00003B00: FF .DB $FF 00003B01: FF .DB $FF 00003B02: FF .DB $FF 00003B03: FF .DB $FF 00003B04: FF .DB $FF 00003B05: FF .DB $FF 00003B06: FF .DB $FF 00003B07: FF .DB $FF 00003B08: FF .DB $FF 00003B09: FF .DB $FF 00003B0A: FF .DB $FF 00003B0B: FF .DB $FF 00003B0C: FF .DB $FF 00003B0D: FF .DB $FF 00003B0E: FF .DB $FF 00003B0F: FF .DB $FF 00003B10: FF .DB $FF 00003B11: FF .DB $FF 00003B12: FF .DB $FF 00003B13: FF .DB $FF 00003B14: FF .DB $FF 00003B15: FF .DB $FF 00003B16: FF .DB $FF 00003B17: FF .DB $FF 00003B18: FF .DB $FF 00003B19: FF .DB $FF 00003B1A: FF .DB $FF 00003B1B: FF .DB $FF 00003B1C: FF .DB $FF 00003B1D: FF .DB $FF 00003B1E: FF .DB $FF 00003B1F: FF .DB $FF 00003B20: FF .DB $FF 00003B21: FF .DB $FF 00003B22: FF .DB $FF 00003B23: FF .DB $FF 00003B24: FF .DB $FF 00003B25: FF .DB $FF 00003B26: FF .DB $FF 00003B27: FF .DB $FF 00003B28: FF .DB $FF 00003B29: FF .DB $FF 00003B2A: FF .DB $FF 00003B2B: FF .DB $FF 00003B2C: FF .DB $FF 00003B2D: FF .DB $FF 00003B2E: FF .DB $FF 00003B2F: FF .DB $FF 00003B30: FF .DB $FF 00003B31: FF .DB $FF 00003B32: FF .DB $FF 00003B33: FF .DB $FF 00003B34: FF .DB $FF 00003B35: FF .DB $FF 00003B36: FF .DB $FF 00003B37: FF .DB $FF 00003B38: FF .DB $FF 00003B39: FF .DB $FF 00003B3A: FF .DB $FF 00003B3B: FF .DB $FF 00003B3C: FF .DB $FF 00003B3D: FF .DB $FF 00003B3E: FF .DB $FF 00003B3F: FF .DB $FF 00003B40: FF .DB $FF 00003B41: FF .DB $FF 00003B42: FF .DB $FF 00003B43: FF .DB $FF 00003B44: FF .DB $FF 00003B45: FF .DB $FF 00003B46: FF .DB $FF 00003B47: FF .DB $FF 00003B48: FF .DB $FF 00003B49: FF .DB $FF 00003B4A: FF .DB $FF 00003B4B: FF .DB $FF 00003B4C: FF .DB $FF 00003B4D: FF .DB $FF 00003B4E: FF .DB $FF 00003B4F: FF .DB $FF 00003B50: FF .DB $FF 00003B51: FF .DB $FF 00003B52: FF .DB $FF 00003B53: FF .DB $FF 00003B54: FF .DB $FF 00003B55: FF .DB $FF 00003B56: FF .DB $FF 00003B57: FF .DB $FF 00003B58: FF .DB $FF 00003B59: FF .DB $FF 00003B5A: FF .DB $FF 00003B5B: FF .DB $FF 00003B5C: FF .DB $FF 00003B5D: FF .DB $FF 00003B5E: FF .DB $FF 00003B5F: FF .DB $FF 00003B60: FF .DB $FF 00003B61: FF .DB $FF 00003B62: FF .DB $FF 00003B63: FF .DB $FF 00003B64: FF .DB $FF 00003B65: FF .DB $FF 00003B66: FF .DB $FF 00003B67: FF .DB $FF 00003B68: FF .DB $FF 00003B69: FF .DB $FF 00003B6A: FF .DB $FF 00003B6B: FF .DB $FF 00003B6C: FF .DB $FF 00003B6D: FF .DB $FF 00003B6E: FF .DB $FF 00003B6F: FF .DB $FF 00003B70: FF .DB $FF 00003B71: FF .DB $FF 00003B72: FF .DB $FF 00003B73: FF .DB $FF 00003B74: FF .DB $FF 00003B75: FF .DB $FF 00003B76: FF .DB $FF 00003B77: FF .DB $FF 00003B78: FF .DB $FF 00003B79: FF .DB $FF 00003B7A: FF .DB $FF 00003B7B: FF .DB $FF 00003B7C: FF .DB $FF 00003B7D: FF .DB $FF 00003B7E: FF .DB $FF 00003B7F: FF .DB $FF 00003B80: FF .DB $FF 00003B81: FF .DB $FF 00003B82: FF .DB $FF 00003B83: FF .DB $FF 00003B84: FF .DB $FF 00003B85: FF .DB $FF 00003B86: FF .DB $FF 00003B87: FF .DB $FF 00003B88: FF .DB $FF 00003B89: FF .DB $FF 00003B8A: FF .DB $FF 00003B8B: FF .DB $FF 00003B8C: FF .DB $FF 00003B8D: FF .DB $FF 00003B8E: FF .DB $FF 00003B8F: FF .DB $FF 00003B90: FF .DB $FF 00003B91: FF .DB $FF 00003B92: FF .DB $FF 00003B93: FF .DB $FF 00003B94: FF .DB $FF 00003B95: FF .DB $FF 00003B96: FF .DB $FF 00003B97: FF .DB $FF 00003B98: FF .DB $FF 00003B99: FF .DB $FF 00003B9A: FF .DB $FF 00003B9B: FF .DB $FF 00003B9C: FF .DB $FF 00003B9D: FF .DB $FF 00003B9E: FF .DB $FF 00003B9F: FF .DB $FF 00003BA0: FF .DB $FF 00003BA1: FF .DB $FF 00003BA2: FF .DB $FF 00003BA3: FF .DB $FF 00003BA4: FF .DB $FF 00003BA5: FF .DB $FF 00003BA6: FF .DB $FF 00003BA7: FF .DB $FF 00003BA8: FF .DB $FF 00003BA9: FF .DB $FF 00003BAA: FF .DB $FF 00003BAB: FF .DB $FF 00003BAC: FF .DB $FF 00003BAD: FF .DB $FF 00003BAE: FF .DB $FF 00003BAF: FF .DB $FF 00003BB0: FF .DB $FF 00003BB1: FF .DB $FF 00003BB2: FF .DB $FF 00003BB3: FF .DB $FF 00003BB4: FF .DB $FF 00003BB5: FF .DB $FF 00003BB6: FF .DB $FF 00003BB7: FF .DB $FF 00003BB8: FF .DB $FF 00003BB9: FF .DB $FF 00003BBA: FF .DB $FF 00003BBB: FF .DB $FF 00003BBC: FF .DB $FF 00003BBD: FF .DB $FF 00003BBE: FF .DB $FF 00003BBF: FF .DB $FF 00003BC0: FF .DB $FF 00003BC1: FF .DB $FF 00003BC2: FF .DB $FF 00003BC3: FF .DB $FF 00003BC4: FF .DB $FF 00003BC5: FF .DB $FF 00003BC6: FF .DB $FF 00003BC7: FF .DB $FF 00003BC8: FF .DB $FF 00003BC9: FF .DB $FF 00003BCA: FF .DB $FF 00003BCB: FF .DB $FF 00003BCC: FF .DB $FF 00003BCD: FF .DB $FF 00003BCE: FF .DB $FF 00003BCF: FF .DB $FF 00003BD0: FF .DB $FF 00003BD1: FF .DB $FF 00003BD2: FF .DB $FF 00003BD3: FF .DB $FF 00003BD4: FF .DB $FF 00003BD5: FF .DB $FF 00003BD6: FF .DB $FF 00003BD7: FF .DB $FF 00003BD8: FF .DB $FF 00003BD9: FF .DB $FF 00003BDA: FF .DB $FF 00003BDB: FF .DB $FF 00003BDC: FF .DB $FF 00003BDD: FF .DB $FF 00003BDE: FF .DB $FF 00003BDF: FF .DB $FF 00003BE0: FF .DB $FF 00003BE1: FF .DB $FF 00003BE2: FF .DB $FF 00003BE3: FF .DB $FF 00003BE4: FF .DB $FF 00003BE5: FF .DB $FF 00003BE6: FF .DB $FF 00003BE7: FF .DB $FF 00003BE8: FF .DB $FF 00003BE9: FF .DB $FF 00003BEA: FF .DB $FF 00003BEB: FF .DB $FF 00003BEC: FF .DB $FF 00003BED: FF .DB $FF 00003BEE: FF .DB $FF 00003BEF: FF .DB $FF 00003BF0: FF .DB $FF 00003BF1: FF .DB $FF 00003BF2: FF .DB $FF 00003BF3: FF .DB $FF 00003BF4: FF .DB $FF 00003BF5: FF .DB $FF 00003BF6: FF .DB $FF 00003BF7: FF .DB $FF 00003BF8: FF .DB $FF 00003BF9: FF .DB $FF 00003BFA: FF .DB $FF 00003BFB: FF .DB $FF 00003BFC: FF .DB $FF 00003BFD: FF .DB $FF 00003BFE: FF .DB $FF 00003BFF: FF .DB $FF 00003C00: FF .DB $FF 00003C01: FF .DB $FF 00003C02: FF .DB $FF 00003C03: FF .DB $FF 00003C04: FF .DB $FF 00003C05: FF .DB $FF 00003C06: FF .DB $FF 00003C07: FF .DB $FF 00003C08: FF .DB $FF 00003C09: FF .DB $FF 00003C0A: FF .DB $FF 00003C0B: FF .DB $FF 00003C0C: FF .DB $FF 00003C0D: FF .DB $FF 00003C0E: FF .DB $FF 00003C0F: FF .DB $FF 00003C10: FF .DB $FF 00003C11: FF .DB $FF 00003C12: FF .DB $FF 00003C13: FF .DB $FF 00003C14: FF .DB $FF 00003C15: FF .DB $FF 00003C16: FF .DB $FF 00003C17: FF .DB $FF 00003C18: FF .DB $FF 00003C19: FF .DB $FF 00003C1A: FF .DB $FF 00003C1B: FF .DB $FF 00003C1C: FF .DB $FF 00003C1D: FF .DB $FF 00003C1E: FF .DB $FF 00003C1F: FF .DB $FF 00003C20: FF .DB $FF 00003C21: FF .DB $FF 00003C22: FF .DB $FF 00003C23: FF .DB $FF 00003C24: FF .DB $FF 00003C25: FF .DB $FF 00003C26: FF .DB $FF 00003C27: FF .DB $FF 00003C28: FF .DB $FF 00003C29: FF .DB $FF 00003C2A: FF .DB $FF 00003C2B: FF .DB $FF 00003C2C: FF .DB $FF 00003C2D: FF .DB $FF 00003C2E: FF .DB $FF 00003C2F: FF .DB $FF 00003C30: FF .DB $FF 00003C31: FF .DB $FF 00003C32: FF .DB $FF 00003C33: FF .DB $FF 00003C34: FF .DB $FF 00003C35: FF .DB $FF 00003C36: FF .DB $FF 00003C37: FF .DB $FF 00003C38: FF .DB $FF 00003C39: FF .DB $FF 00003C3A: FF .DB $FF 00003C3B: FF .DB $FF 00003C3C: FF .DB $FF 00003C3D: FF .DB $FF 00003C3E: FF .DB $FF 00003C3F: FF .DB $FF 00003C40: FF .DB $FF 00003C41: FF .DB $FF 00003C42: FF .DB $FF 00003C43: FF .DB $FF 00003C44: FF .DB $FF 00003C45: FF .DB $FF 00003C46: FF .DB $FF 00003C47: FF .DB $FF 00003C48: FF .DB $FF 00003C49: FF .DB $FF 00003C4A: FF .DB $FF 00003C4B: FF .DB $FF 00003C4C: FF .DB $FF 00003C4D: FF .DB $FF 00003C4E: FF .DB $FF 00003C4F: FF .DB $FF 00003C50: FF .DB $FF 00003C51: FF .DB $FF 00003C52: FF .DB $FF 00003C53: FF .DB $FF 00003C54: FF .DB $FF 00003C55: FF .DB $FF 00003C56: FF .DB $FF 00003C57: FF .DB $FF 00003C58: FF .DB $FF 00003C59: FF .DB $FF 00003C5A: FF .DB $FF 00003C5B: FF .DB $FF 00003C5C: FF .DB $FF 00003C5D: FF .DB $FF 00003C5E: FF .DB $FF 00003C5F: FF .DB $FF 00003C60: FF .DB $FF 00003C61: FF .DB $FF 00003C62: FF .DB $FF 00003C63: FF .DB $FF 00003C64: FF .DB $FF 00003C65: FF .DB $FF 00003C66: FF .DB $FF 00003C67: FF .DB $FF 00003C68: FF .DB $FF 00003C69: FF .DB $FF 00003C6A: FF .DB $FF 00003C6B: FF .DB $FF 00003C6C: FF .DB $FF 00003C6D: FF .DB $FF 00003C6E: FF .DB $FF 00003C6F: FF .DB $FF 00003C70: FF .DB $FF 00003C71: FF .DB $FF 00003C72: FF .DB $FF 00003C73: FF .DB $FF 00003C74: FF .DB $FF 00003C75: FF .DB $FF 00003C76: FF .DB $FF 00003C77: FF .DB $FF 00003C78: FF .DB $FF 00003C79: FF .DB $FF 00003C7A: FF .DB $FF 00003C7B: FF .DB $FF 00003C7C: FF .DB $FF 00003C7D: FF .DB $FF 00003C7E: FF .DB $FF 00003C7F: FF .DB $FF 00003C80: FF .DB $FF 00003C81: FF .DB $FF 00003C82: FF .DB $FF 00003C83: FF .DB $FF 00003C84: FF .DB $FF 00003C85: FF .DB $FF 00003C86: FF .DB $FF 00003C87: FF .DB $FF 00003C88: FF .DB $FF 00003C89: FF .DB $FF 00003C8A: FF .DB $FF 00003C8B: FF .DB $FF 00003C8C: FF .DB $FF 00003C8D: FF .DB $FF 00003C8E: FF .DB $FF 00003C8F: FF .DB $FF 00003C90: FF .DB $FF 00003C91: FF .DB $FF 00003C92: FF .DB $FF 00003C93: FF .DB $FF 00003C94: FF .DB $FF 00003C95: FF .DB $FF 00003C96: FF .DB $FF 00003C97: FF .DB $FF 00003C98: FF .DB $FF 00003C99: FF .DB $FF 00003C9A: FF .DB $FF 00003C9B: FF .DB $FF 00003C9C: FF .DB $FF 00003C9D: FF .DB $FF 00003C9E: FF .DB $FF 00003C9F: FF .DB $FF 00003CA0: FF .DB $FF 00003CA1: FF .DB $FF 00003CA2: FF .DB $FF 00003CA3: FF .DB $FF 00003CA4: FF .DB $FF 00003CA5: FF .DB $FF 00003CA6: FF .DB $FF 00003CA7: FF .DB $FF 00003CA8: FF .DB $FF 00003CA9: FF .DB $FF 00003CAA: FF .DB $FF 00003CAB: FF .DB $FF 00003CAC: FF .DB $FF 00003CAD: FF .DB $FF 00003CAE: FF .DB $FF 00003CAF: FF .DB $FF 00003CB0: FF .DB $FF 00003CB1: FF .DB $FF 00003CB2: FF .DB $FF 00003CB3: FF .DB $FF 00003CB4: FF .DB $FF 00003CB5: FF .DB $FF 00003CB6: FF .DB $FF 00003CB7: FF .DB $FF 00003CB8: FF .DB $FF 00003CB9: FF .DB $FF 00003CBA: FF .DB $FF 00003CBB: FF .DB $FF 00003CBC: FF .DB $FF 00003CBD: FF .DB $FF 00003CBE: FF .DB $FF 00003CBF: FF .DB $FF 00003CC0: FF .DB $FF 00003CC1: FF .DB $FF 00003CC2: FF .DB $FF 00003CC3: FF .DB $FF 00003CC4: FF .DB $FF 00003CC5: FF .DB $FF 00003CC6: FF .DB $FF 00003CC7: FF .DB $FF 00003CC8: FF .DB $FF 00003CC9: FF .DB $FF 00003CCA: FF .DB $FF 00003CCB: FF .DB $FF 00003CCC: FF .DB $FF 00003CCD: FF .DB $FF 00003CCE: FF .DB $FF 00003CCF: FF .DB $FF 00003CD0: FF .DB $FF 00003CD1: FF .DB $FF 00003CD2: FF .DB $FF 00003CD3: FF .DB $FF 00003CD4: FF .DB $FF 00003CD5: FF .DB $FF 00003CD6: FF .DB $FF 00003CD7: FF .DB $FF 00003CD8: FF .DB $FF 00003CD9: FF .DB $FF 00003CDA: FF .DB $FF 00003CDB: FF .DB $FF 00003CDC: FF .DB $FF 00003CDD: FF .DB $FF 00003CDE: FF .DB $FF 00003CDF: FF .DB $FF 00003CE0: FF .DB $FF 00003CE1: FF .DB $FF 00003CE2: FF .DB $FF 00003CE3: FF .DB $FF 00003CE4: FF .DB $FF 00003CE5: FF .DB $FF 00003CE6: FF .DB $FF 00003CE7: FF .DB $FF 00003CE8: FF .DB $FF 00003CE9: FF .DB $FF 00003CEA: FF .DB $FF 00003CEB: FF .DB $FF 00003CEC: FF .DB $FF 00003CED: FF .DB $FF 00003CEE: FF .DB $FF 00003CEF: FF .DB $FF 00003CF0: FF .DB $FF 00003CF1: FF .DB $FF 00003CF2: FF .DB $FF 00003CF3: FF .DB $FF 00003CF4: FF .DB $FF 00003CF5: FF .DB $FF 00003CF6: FF .DB $FF 00003CF7: FF .DB $FF 00003CF8: FF .DB $FF 00003CF9: FF .DB $FF 00003CFA: FF .DB $FF 00003CFB: FF .DB $FF 00003CFC: FF .DB $FF 00003CFD: FF .DB $FF 00003CFE: FF .DB $FF 00003CFF: FF .DB $FF 00003D00: FF .DB $FF 00003D01: FF .DB $FF 00003D02: FF .DB $FF 00003D03: FF .DB $FF 00003D04: FF .DB $FF 00003D05: FF .DB $FF 00003D06: FF .DB $FF 00003D07: FF .DB $FF 00003D08: FF .DB $FF 00003D09: FF .DB $FF 00003D0A: FF .DB $FF 00003D0B: FF .DB $FF 00003D0C: FF .DB $FF 00003D0D: FF .DB $FF 00003D0E: FF .DB $FF 00003D0F: FF .DB $FF 00003D10: FF .DB $FF 00003D11: FF .DB $FF 00003D12: FF .DB $FF 00003D13: FF .DB $FF 00003D14: FF .DB $FF 00003D15: FF .DB $FF 00003D16: FF .DB $FF 00003D17: FF .DB $FF 00003D18: FF .DB $FF 00003D19: FF .DB $FF 00003D1A: FF .DB $FF 00003D1B: FF .DB $FF 00003D1C: FF .DB $FF 00003D1D: FF .DB $FF 00003D1E: FF .DB $FF 00003D1F: FF .DB $FF 00003D20: FF .DB $FF 00003D21: FF .DB $FF 00003D22: FF .DB $FF 00003D23: FF .DB $FF 00003D24: FF .DB $FF 00003D25: FF .DB $FF 00003D26: FF .DB $FF 00003D27: FF .DB $FF 00003D28: FF .DB $FF 00003D29: FF .DB $FF 00003D2A: FF .DB $FF 00003D2B: FF .DB $FF 00003D2C: FF .DB $FF 00003D2D: FF .DB $FF 00003D2E: FF .DB $FF 00003D2F: FF .DB $FF 00003D30: FF .DB $FF 00003D31: FF .DB $FF 00003D32: FF .DB $FF 00003D33: FF .DB $FF 00003D34: FF .DB $FF 00003D35: FF .DB $FF 00003D36: FF .DB $FF 00003D37: FF .DB $FF 00003D38: FF .DB $FF 00003D39: FF .DB $FF 00003D3A: FF .DB $FF 00003D3B: FF .DB $FF 00003D3C: FF .DB $FF 00003D3D: FF .DB $FF 00003D3E: FF .DB $FF 00003D3F: FF .DB $FF 00003D40: FF .DB $FF 00003D41: FF .DB $FF 00003D42: FF .DB $FF 00003D43: FF .DB $FF 00003D44: FF .DB $FF 00003D45: FF .DB $FF 00003D46: FF .DB $FF 00003D47: FF .DB $FF 00003D48: FF .DB $FF 00003D49: FF .DB $FF 00003D4A: FF .DB $FF 00003D4B: FF .DB $FF 00003D4C: FF .DB $FF 00003D4D: FF .DB $FF 00003D4E: FF .DB $FF 00003D4F: FF .DB $FF 00003D50: FF .DB $FF 00003D51: FF .DB $FF 00003D52: FF .DB $FF 00003D53: FF .DB $FF 00003D54: FF .DB $FF 00003D55: FF .DB $FF 00003D56: FF .DB $FF 00003D57: FF .DB $FF 00003D58: FF .DB $FF 00003D59: FF .DB $FF 00003D5A: FF .DB $FF 00003D5B: FF .DB $FF 00003D5C: FF .DB $FF 00003D5D: FF .DB $FF 00003D5E: FF .DB $FF 00003D5F: FF .DB $FF 00003D60: FF .DB $FF 00003D61: FF .DB $FF 00003D62: FF .DB $FF 00003D63: FF .DB $FF 00003D64: FF .DB $FF 00003D65: FF .DB $FF 00003D66: FF .DB $FF 00003D67: FF .DB $FF 00003D68: FF .DB $FF 00003D69: FF .DB $FF 00003D6A: FF .DB $FF 00003D6B: FF .DB $FF 00003D6C: FF .DB $FF 00003D6D: FF .DB $FF 00003D6E: FF .DB $FF 00003D6F: FF .DB $FF 00003D70: FF .DB $FF 00003D71: FF .DB $FF 00003D72: FF .DB $FF 00003D73: FF .DB $FF 00003D74: FF .DB $FF 00003D75: FF .DB $FF 00003D76: FF .DB $FF 00003D77: FF .DB $FF 00003D78: FF .DB $FF 00003D79: FF .DB $FF 00003D7A: FF .DB $FF 00003D7B: FF .DB $FF 00003D7C: FF .DB $FF 00003D7D: FF .DB $FF 00003D7E: FF .DB $FF 00003D7F: FF .DB $FF 00003D80: FF .DB $FF 00003D81: FF .DB $FF 00003D82: FF .DB $FF 00003D83: FF .DB $FF 00003D84: FF .DB $FF 00003D85: FF .DB $FF 00003D86: FF .DB $FF 00003D87: FF .DB $FF 00003D88: FF .DB $FF 00003D89: FF .DB $FF 00003D8A: FF .DB $FF 00003D8B: FF .DB $FF 00003D8C: FF .DB $FF 00003D8D: FF .DB $FF 00003D8E: FF .DB $FF 00003D8F: FF .DB $FF 00003D90: FF .DB $FF 00003D91: FF .DB $FF 00003D92: FF .DB $FF 00003D93: FF .DB $FF 00003D94: FF .DB $FF 00003D95: FF .DB $FF 00003D96: FF .DB $FF 00003D97: FF .DB $FF 00003D98: FF .DB $FF 00003D99: FF .DB $FF 00003D9A: FF .DB $FF 00003D9B: FF .DB $FF 00003D9C: FF .DB $FF 00003D9D: FF .DB $FF 00003D9E: FF .DB $FF 00003D9F: FF .DB $FF 00003DA0: FF .DB $FF 00003DA1: FF .DB $FF 00003DA2: FF .DB $FF 00003DA3: FF .DB $FF 00003DA4: FF .DB $FF 00003DA5: FF .DB $FF 00003DA6: FF .DB $FF 00003DA7: FF .DB $FF 00003DA8: FF .DB $FF 00003DA9: FF .DB $FF 00003DAA: FF .DB $FF 00003DAB: FF .DB $FF 00003DAC: FF .DB $FF 00003DAD: FF .DB $FF 00003DAE: FF .DB $FF 00003DAF: FF .DB $FF 00003DB0: FF .DB $FF 00003DB1: FF .DB $FF 00003DB2: FF .DB $FF 00003DB3: FF .DB $FF 00003DB4: FF .DB $FF 00003DB5: FF .DB $FF 00003DB6: FF .DB $FF 00003DB7: FF .DB $FF 00003DB8: FF .DB $FF 00003DB9: FF .DB $FF 00003DBA: FF .DB $FF 00003DBB: FF .DB $FF 00003DBC: FF .DB $FF 00003DBD: FF .DB $FF 00003DBE: FF .DB $FF 00003DBF: FF .DB $FF 00003DC0: FF .DB $FF 00003DC1: FF .DB $FF 00003DC2: FF .DB $FF 00003DC3: FF .DB $FF 00003DC4: FF .DB $FF 00003DC5: FF .DB $FF 00003DC6: FF .DB $FF 00003DC7: FF .DB $FF 00003DC8: FF .DB $FF 00003DC9: FF .DB $FF 00003DCA: FF .DB $FF 00003DCB: FF .DB $FF 00003DCC: FF .DB $FF 00003DCD: FF .DB $FF 00003DCE: FF .DB $FF 00003DCF: FF .DB $FF 00003DD0: FF .DB $FF 00003DD1: FF .DB $FF 00003DD2: FF .DB $FF 00003DD3: FF .DB $FF 00003DD4: FF .DB $FF 00003DD5: FF .DB $FF 00003DD6: FF .DB $FF 00003DD7: FF .DB $FF 00003DD8: FF .DB $FF 00003DD9: FF .DB $FF 00003DDA: FF .DB $FF 00003DDB: FF .DB $FF 00003DDC: FF .DB $FF 00003DDD: FF .DB $FF 00003DDE: FF .DB $FF 00003DDF: FF .DB $FF 00003DE0: FF .DB $FF 00003DE1: FF .DB $FF 00003DE2: FF .DB $FF 00003DE3: FF .DB $FF 00003DE4: FF .DB $FF 00003DE5: FF .DB $FF 00003DE6: FF .DB $FF 00003DE7: FF .DB $FF 00003DE8: FF .DB $FF 00003DE9: FF .DB $FF 00003DEA: FF .DB $FF 00003DEB: FF .DB $FF 00003DEC: FF .DB $FF 00003DED: FF .DB $FF 00003DEE: FF .DB $FF 00003DEF: FF .DB $FF 00003DF0: FF .DB $FF 00003DF1: FF .DB $FF 00003DF2: FF .DB $FF 00003DF3: FF .DB $FF 00003DF4: FF .DB $FF 00003DF5: FF .DB $FF 00003DF6: FF .DB $FF 00003DF7: FF .DB $FF 00003DF8: FF .DB $FF 00003DF9: FF .DB $FF 00003DFA: FF .DB $FF 00003DFB: FF .DB $FF 00003DFC: FF .DB $FF 00003DFD: FF .DB $FF 00003DFE: FF .DB $FF 00003DFF: FF .DB $FF 00003E00: FF .DB $FF 00003E01: FF .DB $FF 00003E02: FF .DB $FF 00003E03: FF .DB $FF 00003E04: FF .DB $FF 00003E05: FF .DB $FF 00003E06: FF .DB $FF 00003E07: FF .DB $FF 00003E08: FF .DB $FF 00003E09: FF .DB $FF 00003E0A: FF .DB $FF 00003E0B: FF .DB $FF 00003E0C: FF .DB $FF 00003E0D: FF .DB $FF 00003E0E: FF .DB $FF 00003E0F: FF .DB $FF 00003E10: FF .DB $FF 00003E11: FF .DB $FF 00003E12: FF .DB $FF 00003E13: FF .DB $FF 00003E14: FF .DB $FF 00003E15: FF .DB $FF 00003E16: FF .DB $FF 00003E17: FF .DB $FF 00003E18: FF .DB $FF 00003E19: FF .DB $FF 00003E1A: FF .DB $FF 00003E1B: FF .DB $FF 00003E1C: FF .DB $FF 00003E1D: FF .DB $FF 00003E1E: FF .DB $FF 00003E1F: FF .DB $FF 00003E20: FF .DB $FF 00003E21: FF .DB $FF 00003E22: FF .DB $FF 00003E23: FF .DB $FF 00003E24: FF .DB $FF 00003E25: FF .DB $FF 00003E26: FF .DB $FF 00003E27: FF .DB $FF 00003E28: FF .DB $FF 00003E29: FF .DB $FF 00003E2A: FF .DB $FF 00003E2B: FF .DB $FF 00003E2C: FF .DB $FF 00003E2D: FF .DB $FF 00003E2E: FF .DB $FF 00003E2F: FF .DB $FF 00003E30: FF .DB $FF 00003E31: FF .DB $FF 00003E32: FF .DB $FF 00003E33: FF .DB $FF 00003E34: FF .DB $FF 00003E35: FF .DB $FF 00003E36: FF .DB $FF 00003E37: FF .DB $FF 00003E38: FF .DB $FF 00003E39: FF .DB $FF 00003E3A: FF .DB $FF 00003E3B: FF .DB $FF 00003E3C: FF .DB $FF 00003E3D: FF .DB $FF 00003E3E: FF .DB $FF 00003E3F: FF .DB $FF 00003E40: FF .DB $FF 00003E41: FF .DB $FF 00003E42: FF .DB $FF 00003E43: FF .DB $FF 00003E44: FF .DB $FF 00003E45: FF .DB $FF 00003E46: FF .DB $FF 00003E47: FF .DB $FF 00003E48: FF .DB $FF 00003E49: FF .DB $FF 00003E4A: FF .DB $FF 00003E4B: FF .DB $FF 00003E4C: FF .DB $FF 00003E4D: FF .DB $FF 00003E4E: FF .DB $FF 00003E4F: FF .DB $FF 00003E50: FF .DB $FF 00003E51: FF .DB $FF 00003E52: FF .DB $FF 00003E53: FF .DB $FF 00003E54: FF .DB $FF 00003E55: FF .DB $FF 00003E56: FF .DB $FF 00003E57: FF .DB $FF 00003E58: FF .DB $FF 00003E59: FF .DB $FF 00003E5A: FF .DB $FF 00003E5B: FF .DB $FF 00003E5C: FF .DB $FF 00003E5D: FF .DB $FF 00003E5E: FF .DB $FF 00003E5F: FF .DB $FF 00003E60: FF .DB $FF 00003E61: FF .DB $FF 00003E62: FF .DB $FF 00003E63: FF .DB $FF 00003E64: FF .DB $FF 00003E65: FF .DB $FF 00003E66: FF .DB $FF 00003E67: FF .DB $FF 00003E68: FF .DB $FF 00003E69: FF .DB $FF 00003E6A: FF .DB $FF 00003E6B: FF .DB $FF 00003E6C: FF .DB $FF 00003E6D: FF .DB $FF 00003E6E: FF .DB $FF 00003E6F: FF .DB $FF 00003E70: FF .DB $FF 00003E71: FF .DB $FF 00003E72: FF .DB $FF 00003E73: FF .DB $FF 00003E74: FF .DB $FF 00003E75: FF .DB $FF 00003E76: FF .DB $FF 00003E77: FF .DB $FF 00003E78: FF .DB $FF 00003E79: FF .DB $FF 00003E7A: FF .DB $FF 00003E7B: FF .DB $FF 00003E7C: FF .DB $FF 00003E7D: FF .DB $FF 00003E7E: FF .DB $FF 00003E7F: FF .DB $FF 00003E80: FF .DB $FF 00003E81: FF .DB $FF 00003E82: FF .DB $FF 00003E83: FF .DB $FF 00003E84: FF .DB $FF 00003E85: FF .DB $FF 00003E86: FF .DB $FF 00003E87: FF .DB $FF 00003E88: FF .DB $FF 00003E89: FF .DB $FF 00003E8A: FF .DB $FF 00003E8B: FF .DB $FF 00003E8C: FF .DB $FF 00003E8D: FF .DB $FF 00003E8E: FF .DB $FF 00003E8F: FF .DB $FF 00003E90: FF .DB $FF 00003E91: FF .DB $FF 00003E92: FF .DB $FF 00003E93: FF .DB $FF 00003E94: FF .DB $FF 00003E95: FF .DB $FF 00003E96: FF .DB $FF 00003E97: FF .DB $FF 00003E98: FF .DB $FF 00003E99: FF .DB $FF 00003E9A: FF .DB $FF 00003E9B: FF .DB $FF 00003E9C: FF .DB $FF 00003E9D: FF .DB $FF 00003E9E: FF .DB $FF 00003E9F: FF .DB $FF 00003EA0: FF .DB $FF 00003EA1: FF .DB $FF 00003EA2: FF .DB $FF 00003EA3: FF .DB $FF 00003EA4: FF .DB $FF 00003EA5: FF .DB $FF 00003EA6: FF .DB $FF 00003EA7: FF .DB $FF 00003EA8: FF .DB $FF 00003EA9: FF .DB $FF 00003EAA: FF .DB $FF 00003EAB: FF .DB $FF 00003EAC: FF .DB $FF 00003EAD: FF .DB $FF 00003EAE: FF .DB $FF 00003EAF: FF .DB $FF 00003EB0: FF .DB $FF 00003EB1: FF .DB $FF 00003EB2: FF .DB $FF 00003EB3: FF .DB $FF 00003EB4: FF .DB $FF 00003EB5: FF .DB $FF 00003EB6: FF .DB $FF 00003EB7: FF .DB $FF 00003EB8: FF .DB $FF 00003EB9: FF .DB $FF 00003EBA: FF .DB $FF 00003EBB: FF .DB $FF 00003EBC: FF .DB $FF 00003EBD: FF .DB $FF 00003EBE: FF .DB $FF 00003EBF: FF .DB $FF 00003EC0: FF .DB $FF 00003EC1: FF .DB $FF 00003EC2: FF .DB $FF 00003EC3: FF .DB $FF 00003EC4: FF .DB $FF 00003EC5: FF .DB $FF 00003EC6: FF .DB $FF 00003EC7: FF .DB $FF 00003EC8: FF .DB $FF 00003EC9: FF .DB $FF 00003ECA: FF .DB $FF 00003ECB: FF .DB $FF 00003ECC: FF .DB $FF 00003ECD: FF .DB $FF 00003ECE: FF .DB $FF 00003ECF: FF .DB $FF 00003ED0: FF .DB $FF 00003ED1: FF .DB $FF 00003ED2: FF .DB $FF 00003ED3: FF .DB $FF 00003ED4: FF .DB $FF 00003ED5: FF .DB $FF 00003ED6: FF .DB $FF 00003ED7: FF .DB $FF 00003ED8: FF .DB $FF 00003ED9: FF .DB $FF 00003EDA: FF .DB $FF 00003EDB: FF .DB $FF 00003EDC: FF .DB $FF 00003EDD: FF .DB $FF 00003EDE: FF .DB $FF 00003EDF: FF .DB $FF 00003EE0: FF .DB $FF 00003EE1: FF .DB $FF 00003EE2: FF .DB $FF 00003EE3: FF .DB $FF 00003EE4: FF .DB $FF 00003EE5: FF .DB $FF 00003EE6: FF .DB $FF 00003EE7: FF .DB $FF 00003EE8: FF .DB $FF 00003EE9: FF .DB $FF 00003EEA: FF .DB $FF 00003EEB: FF .DB $FF 00003EEC: FF .DB $FF 00003EED: FF .DB $FF 00003EEE: FF .DB $FF 00003EEF: FF .DB $FF 00003EF0: FF .DB $FF 00003EF1: FF .DB $FF 00003EF2: FF .DB $FF 00003EF3: FF .DB $FF 00003EF4: FF .DB $FF 00003EF5: FF .DB $FF 00003EF6: FF .DB $FF 00003EF7: FF .DB $FF 00003EF8: FF .DB $FF 00003EF9: FF .DB $FF 00003EFA: FF .DB $FF 00003EFB: FF .DB $FF 00003EFC: FF .DB $FF 00003EFD: FF .DB $FF 00003EFE: FF .DB $FF 00003EFF: FF .DB $FF 00003F00: FF .DB $FF 00003F01: FF .DB $FF 00003F02: FF .DB $FF 00003F03: FF .DB $FF 00003F04: FF .DB $FF 00003F05: FF .DB $FF 00003F06: FF .DB $FF 00003F07: FF .DB $FF 00003F08: FF .DB $FF 00003F09: FF .DB $FF 00003F0A: FF .DB $FF 00003F0B: FF .DB $FF 00003F0C: FF .DB $FF 00003F0D: FF .DB $FF 00003F0E: FF .DB $FF 00003F0F: FF .DB $FF 00003F10: FF .DB $FF 00003F11: FF .DB $FF 00003F12: FF .DB $FF 00003F13: FF .DB $FF 00003F14: FF .DB $FF 00003F15: FF .DB $FF 00003F16: FF .DB $FF 00003F17: FF .DB $FF 00003F18: FF .DB $FF 00003F19: FF .DB $FF 00003F1A: FF .DB $FF 00003F1B: FF .DB $FF 00003F1C: FF .DB $FF 00003F1D: FF .DB $FF 00003F1E: FF .DB $FF 00003F1F: FF .DB $FF 00003F20: FF .DB $FF 00003F21: FF .DB $FF 00003F22: FF .DB $FF 00003F23: FF .DB $FF 00003F24: FF .DB $FF 00003F25: FF .DB $FF 00003F26: FF .DB $FF 00003F27: FF .DB $FF 00003F28: FF .DB $FF 00003F29: FF .DB $FF 00003F2A: FF .DB $FF 00003F2B: FF .DB $FF 00003F2C: FF .DB $FF 00003F2D: FF .DB $FF 00003F2E: FF .DB $FF 00003F2F: FF .DB $FF 00003F30: FF .DB $FF 00003F31: FF .DB $FF 00003F32: FF .DB $FF 00003F33: FF .DB $FF 00003F34: FF .DB $FF 00003F35: FF .DB $FF 00003F36: FF .DB $FF 00003F37: FF .DB $FF 00003F38: FF .DB $FF 00003F39: FF .DB $FF 00003F3A: FF .DB $FF 00003F3B: FF .DB $FF 00003F3C: FF .DB $FF 00003F3D: FF .DB $FF 00003F3E: FF .DB $FF 00003F3F: FF .DB $FF 00003F40: FF .DB $FF 00003F41: FF .DB $FF 00003F42: FF .DB $FF 00003F43: FF .DB $FF 00003F44: FF .DB $FF 00003F45: FF .DB $FF 00003F46: FF .DB $FF 00003F47: FF .DB $FF 00003F48: FF .DB $FF 00003F49: FF .DB $FF 00003F4A: FF .DB $FF 00003F4B: FF .DB $FF 00003F4C: FF .DB $FF 00003F4D: FF .DB $FF 00003F4E: FF .DB $FF 00003F4F: FF .DB $FF 00003F50: FF .DB $FF 00003F51: FF .DB $FF 00003F52: FF .DB $FF 00003F53: FF .DB $FF 00003F54: FF .DB $FF 00003F55: FF .DB $FF 00003F56: FF .DB $FF 00003F57: FF .DB $FF 00003F58: FF .DB $FF 00003F59: FF .DB $FF 00003F5A: FF .DB $FF 00003F5B: FF .DB $FF 00003F5C: FF .DB $FF 00003F5D: FF .DB $FF 00003F5E: FF .DB $FF 00003F5F: FF .DB $FF 00003F60: FF .DB $FF 00003F61: FF .DB $FF 00003F62: FF .DB $FF 00003F63: FF .DB $FF 00003F64: FF .DB $FF 00003F65: FF .DB $FF 00003F66: FF .DB $FF 00003F67: FF .DB $FF 00003F68: FF .DB $FF 00003F69: FF .DB $FF 00003F6A: FF .DB $FF 00003F6B: FF .DB $FF 00003F6C: FF .DB $FF 00003F6D: FF .DB $FF 00003F6E: FF .DB $FF 00003F6F: FF .DB $FF 00003F70: FF .DB $FF 00003F71: FF .DB $FF 00003F72: FF .DB $FF 00003F73: FF .DB $FF 00003F74: FF .DB $FF 00003F75: FF .DB $FF 00003F76: FF .DB $FF 00003F77: FF .DB $FF 00003F78: FF .DB $FF 00003F79: FF .DB $FF 00003F7A: FF .DB $FF 00003F7B: FF .DB $FF 00003F7C: FF .DB $FF 00003F7D: FF .DB $FF 00003F7E: FF .DB $FF 00003F7F: FF .DB $FF 00003F80: FF .DB $FF 00003F81: FF .DB $FF 00003F82: FF .DB $FF 00003F83: FF .DB $FF 00003F84: FF .DB $FF 00003F85: FF .DB $FF 00003F86: FF .DB $FF 00003F87: FF .DB $FF 00003F88: FF .DB $FF 00003F89: FF .DB $FF 00003F8A: FF .DB $FF 00003F8B: FF .DB $FF 00003F8C: FF .DB $FF 00003F8D: FF .DB $FF 00003F8E: FF .DB $FF 00003F8F: FF .DB $FF 00003F90: FF .DB $FF 00003F91: FF .DB $FF 00003F92: FF .DB $FF 00003F93: FF .DB $FF 00003F94: FF .DB $FF 00003F95: FF .DB $FF 00003F96: FF .DB $FF 00003F97: FF .DB $FF 00003F98: FF .DB $FF 00003F99: FF .DB $FF 00003F9A: FF .DB $FF 00003F9B: FF .DB $FF 00003F9C: FF .DB $FF 00003F9D: FF .DB $FF 00003F9E: FF .DB $FF 00003F9F: FF .DB $FF 00003FA0: FF .DB $FF 00003FA1: FF .DB $FF 00003FA2: FF .DB $FF 00003FA3: FF .DB $FF 00003FA4: FF .DB $FF 00003FA5: FF .DB $FF 00003FA6: FF .DB $FF 00003FA7: FF .DB $FF 00003FA8: FF .DB $FF 00003FA9: FF .DB $FF 00003FAA: FF .DB $FF 00003FAB: FF .DB $FF 00003FAC: FF .DB $FF 00003FAD: FF .DB $FF 00003FAE: FF .DB $FF 00003FAF: FF .DB $FF 00003FB0: FF .DB $FF 00003FB1: FF .DB $FF 00003FB2: FF .DB $FF 00003FB3: FF .DB $FF 00003FB4: FF .DB $FF 00003FB5: FF .DB $FF 00003FB6: FF .DB $FF 00003FB7: FF .DB $FF 00003FB8: FF .DB $FF 00003FB9: FF .DB $FF 00003FBA: FF .DB $FF 00003FBB: FF .DB $FF 00003FBC: FF .DB $FF 00003FBD: FF .DB $FF 00003FBE: FF .DB $FF 00003FBF: FF .DB $FF 00003FC0: FF .DB $FF 00003FC1: FF .DB $FF 00003FC2: FF .DB $FF 00003FC3: FF .DB $FF 00003FC4: FF .DB $FF 00003FC5: FF .DB $FF 00003FC6: FF .DB $FF 00003FC7: FF .DB $FF 00003FC8: FF .DB $FF 00003FC9: FF .DB $FF 00003FCA: FF .DB $FF 00003FCB: FF .DB $FF 00003FCC: FF .DB $FF 00003FCD: FF .DB $FF 00003FCE: FF .DB $FF 00003FCF: FF .DB $FF 00003FD0: FF .DB $FF 00003FD1: FF .DB $FF 00003FD2: FF .DB $FF 00003FD3: FF .DB $FF 00003FD4: FF .DB $FF 00003FD5: FF .DB $FF 00003FD6: FF .DB $FF 00003FD7: FF .DB $FF 00003FD8: FF .DB $FF 00003FD9: FF .DB $FF 00003FDA: FF .DB $FF 00003FDB: FF .DB $FF 00003FDC: FF .DB $FF 00003FDD: FF .DB $FF 00003FDE: FF .DB $FF 00003FDF: FF .DB $FF 00003FE0: FF .DB $FF 00003FE1: FF .DB $FF 00003FE2: FF .DB $FF 00003FE3: FF .DB $FF 00003FE4: FF .DB $FF 00003FE5: FF .DB $FF 00003FE6: FF .DB $FF 00003FE7: FF .DB $FF 00003FE8: FF .DB $FF 00003FE9: FF .DB $FF 00003FEA: FF .DB $FF 00003FEB: FF .DB $FF 00003FEC: FF .DB $FF 00003FED: FF .DB $FF 00003FEE: FF .DB $FF 00003FEF: FF .DB $FF 00003FF0: FF .DB $FF 00003FF1: FF .DB $FF 00003FF2: FF .DB $FF 00003FF3: FF .DB $FF 00003FF4: FF .DB $FF 00003FF5: FF .DB $FF 00003FF6: FF .DB $FF 00003FF7: FF .DB $FF 00003FF8: FF .DB $FF 00003FF9: FF .DB $FF 00003FFA: FF .DB $FF 00003FFB: FF .DB $FF 00003FFC: FF .DB $FF 00003FFD: FF .DB $FF 00003FFE: FF .DB $FF 00003FFF: FF .DB $FF 00004000: FF .DB $FF 00004001: FF .DB $FF 00004002: FF .DB $FF 00004003: FF .DB $FF 00004004: FF .DB $FF 00004005: FF .DB $FF 00004006: FF .DB $FF 00004007: FF .DB $FF 00004008: FF .DB $FF 00004009: FF .DB $FF 0000400A: A5C0 LDA $C0 0000400C: 00 BRK 0000400D: C0 .DB $C0 0000400E: 00 .DB $00 0000400F: 00 .DB $00
238,683
Assembly
asm
22.110514
28
0.708831
f70187b6dfd99f183f24c936d3c424d9d9ddefcb
mattconsto/nes
[ "MIT" ]
4
;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; Licensed under the MIT License. ; ; Module Name: ; ; QgemmU8S8KernelAvx2.asm ; ; Abstract: ; ; This module implements the kernels for the quantized integer matrix/matrix ; multiply operation (QGEMM). ; ; This implementation uses AVX2 instructions. ; ;-- .xlist INCLUDE mlasi.inc INCLUDE QgemmU8X8KernelAvx2Common.inc .list ; ; Stack frame layout for the U8S8 CopyPackA routine. ; GemmU8S8CopyPackAFrame STRUCT PaddedMatrixAData OWORD 4 DUP (?) SavedXmm6 OWORD ? SavedXmm7 OWORD ? SavedXmm8 OWORD ? SavedXmm9 OWORD ? SavedXmm10 OWORD ? Padding QWORD ? SavedR13 QWORD ? SavedR12 QWORD ? SavedRdi QWORD ? SavedRsi QWORD ? SavedRbx QWORD ? SavedRbp QWORD ? ReturnAddress QWORD ? PreviousP1Home QWORD ? PreviousP2Home QWORD ? PreviousP3Home QWORD ? PreviousP4Home QWORD ? CountK QWORD ? RowSumVector QWORD ? offb QWORD ? GemmU8S8CopyPackAFrame ENDS ; ; Stack frame layout for the U8S8 CopyPackB routine. ; GemmU8S8CopyPackBFrame STRUCT PaddedMatrixBData OWORD 4 DUP (?) SavedXmm6 OWORD ? SavedXmm7 OWORD ? SavedXmm8 OWORD ? Padding QWORD ? SavedRdi QWORD ? SavedRsi QWORD ? SavedRbx QWORD ? SavedRbp QWORD ? ReturnAddress QWORD ? PreviousP1Home QWORD ? PreviousP2Home QWORD ? PreviousP3Home QWORD ? PreviousP4Home QWORD ? CountK QWORD ? ColumnSumVector QWORD ? offa QWORD ? GemmU8S8CopyPackBFrame ENDS ;++ ; ; Routine Description: ; ; This routine copies elements from the source matrix to the destination ; packed buffer. ; ; Arguments: ; ; D (rcx) - Supplies the address of the destination packed buffer. ; ; A (rdx) - Supplies the address of the source matrix. ; ; lda (r8) - Supplies the number of elements per row of the source matrix. ; ; CountM (r9) - Supplies the number of rows of the source matrix to copy. ; ; CountK - Supplies the number of columns of the source matrix to copy. ; ; RowSumVector - Supplies the address of the buffer to receive the sums of ; the elements from each of the rows. ; ; offb - Supplies the zero point offset for the other source matrix of the ; matrix multiplication. ; ; Return Value: ; ; None. ; ;-- NESTED_ENTRY MlasGemmU8S8CopyPackAAvx2, _TEXT rex_push_reg rbp push_reg rbx push_reg rsi push_reg rdi push_reg r12 push_reg r13 alloc_stack (GemmU8S8CopyPackAFrame.SavedR13) save_xmm128 xmm6,GemmU8S8CopyPackAFrame.SavedXmm6 save_xmm128 xmm7,GemmU8S8CopyPackAFrame.SavedXmm7 save_xmm128 xmm8,GemmU8S8CopyPackAFrame.SavedXmm8 save_xmm128 xmm9,GemmU8S8CopyPackAFrame.SavedXmm9 save_xmm128 xmm10,GemmU8S8CopyPackAFrame.SavedXmm10 END_PROLOGUE mov rdi,rcx mov rsi,rdx mov r10,GemmU8S8CopyPackAFrame.CountK[rsp] lea r11,[r10+3] and r11,NOT 3 ; align CountK up to quad count mov r12,GemmU8S8CopyPackAFrame.RowSumVector[rsp] vpbroadcastw xmm8,WORD PTR GemmU8S8CopyPackAFrame.offb[rsp] vpcmpeqw ymm9,ymm9,ymm9 ; generate word vector [0xFFFF] vpsrlw ymm9,ymm9,15 ; generate word vector [0x0001] vpsllw ymm0,ymm9,8 ; generate word vector [0x0100] vpor ymm9,ymm9,ymm0 ; generate word vector [0x0101] ; ; Compute the conditional load/store mask for an unaligned CountK. ; mov eax,r10d and eax,15 ; isolate unaligned count add eax,3 shr eax,2 ; align unaligned count to quad count mov DWORD PTR GemmU8S8CopyPackAFrame.CountK[rsp],eax vpbroadcastd xmm10,DWORD PTR GemmU8S8CopyPackAFrame.CountK[rsp] vpcmpgtd xmm10,xmm10,XMMWORD PTR [MlasMaskMoveAvx] ; ; Zero initialize the padded stack buffers. ; vpxor xmm0,xmm0,xmm0 vmovdqu YMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp],ymm0 vmovdqu YMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp+32],ymm0 ; ; Process 4 rows of matrix A in a loop. ; sub r9,4 jb ProcessRemainingRows ProcessNextRowM4: vpxor xmm0,xmm0,xmm0 ; clear row accumulators vpxor xmm1,xmm1,xmm1 vpxor xmm2,xmm2,xmm2 vpxor xmm3,xmm3,xmm3 mov rdx,rsi mov rcx,rdi lea rsi,[rsi+r8*4] ; advance next matrix A by 4 rows lea rdi,[rdi+r11*4] ; advance next matrix D by 4 rows mov rbx,r10 ; reload columns remaining sub rbx,32 jb ProcessRemainingColumnsM4 ProcessNextColumnLoopM4: lea rax,[rdx+r8*2] ; compute matrix A plus 2 rows vmovdqu ymm4,YMMWORD PTR [rdx] vmovdqu ymm5,YMMWORD PTR [rdx+r8] vmovdqu ymm6,YMMWORD PTR [rax] vmovdqu ymm7,YMMWORD PTR [rax+r8] lea rax,[rcx+r11*2] ; compute matrix D plus 2 rows vmovdqu YMMWORD PTR [rcx],ymm4 vmovdqu YMMWORD PTR [rcx+r11],ymm5 vmovdqu YMMWORD PTR [rax],ymm6 vmovdqu YMMWORD PTR [rax+r11],ymm7 vpmaddubsw ymm4,ymm4,ymm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators vpmaddubsw ymm5,ymm5,ymm9 vpaddw ymm1,ymm1,ymm5 vpmaddubsw ymm6,ymm6,ymm9 vpaddw ymm2,ymm2,ymm6 vpmaddubsw ymm7,ymm7,ymm9 vpaddw ymm3,ymm3,ymm7 add rdx,32 ; advance matrix A by 32 bytes add rcx,32 ; advance matrix D by 32 bytes sub rbx,32 ; subtract columns remaining jae ProcessNextColumnLoopM4 ProcessRemainingColumnsM4: add rbx,32 ; correct for over-subtract above jz ReduceRowSumVectorM4 test bl,16 ; (CountK & 16) != 0? jz CopyRemainingCountKLessThan16M4 lea rax,[rdx+r8*2] ; compute matrix A plus 2 rows vmovdqu xmm4,XMMWORD PTR [rdx] vmovdqu xmm5,XMMWORD PTR [rdx+r8] vmovdqu xmm6,XMMWORD PTR [rax] vmovdqu xmm7,XMMWORD PTR [rax+r8] lea rax,[rcx+r11*2] ; compute matrix D plus 2 rows vmovdqu XMMWORD PTR [rcx],xmm4 vmovdqu XMMWORD PTR [rcx+r11],xmm5 vmovdqu XMMWORD PTR [rax],xmm6 vmovdqu XMMWORD PTR [rax+r11],xmm7 vpmaddubsw xmm4,xmm4,xmm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators vpmaddubsw xmm5,xmm5,xmm9 vpaddw ymm1,ymm1,ymm5 vpmaddubsw xmm6,xmm6,xmm9 vpaddw ymm2,ymm2,ymm6 vpmaddubsw xmm7,xmm7,xmm9 vpaddw ymm3,ymm3,ymm7 add rdx,16 ; advance matrix A by 16 bytes add rcx,16 ; advance matrix D by 16 bytes test bl,15 ; test for unaligned columns jz ReduceRowSumVectorM4 ; ; Copy the unaligned CountK columns to a zero padded stack buffer. ; CopyRemainingCountKLessThan16M4: .errnz GemmU8S8CopyPackAFrame.PaddedMatrixAData mov rbp,rsp ; GemmU8S8CopyPackAFrame.PaddedMatrixAData test bl,8 ; (CountK & 8) != 0? jz CopyRemainingCountKLessThan8M4 lea r13,[rdx+r8*2] ; compute matrix A plus 2 rows mov rax,QWORD PTR [rdx] mov QWORD PTR [rbp],rax mov rax,QWORD PTR [rdx+r8] mov QWORD PTR [rbp+16],rax mov rax,QWORD PTR [r13] mov QWORD PTR [rbp+32],rax mov rax,QWORD PTR [r13+r8] mov QWORD PTR [rbp+48],rax add rdx,8 add rbp,8 ; advance padded buffer destination CopyRemainingCountKLessThan8M4: test bl,4 ; (CountK & 4) != 0? jz CopyRemainingCountKLessThan4M4 lea r13,[rdx+r8*2] ; compute matrix A plus 2 rows mov eax,DWORD PTR [rdx] mov DWORD PTR [rbp],eax mov eax,DWORD PTR [rdx+r8] mov DWORD PTR [rbp+16],eax mov eax,DWORD PTR [r13] mov DWORD PTR [rbp+32],eax mov eax,DWORD PTR [r13+r8] mov DWORD PTR [rbp+48],eax add rdx,4 add rbp,4 ; advance padded buffer destination CopyRemainingCountKLessThan4M4: test bl,2 ; (CountK & 2) != 0? jz CopyRemainingCountKLessThan2M4 lea r13,[rdx+r8*2] ; compute matrix A plus 2 rows movzx eax,WORD PTR [rdx] mov WORD PTR [rbp],ax movzx eax,WORD PTR [rdx+r8] mov WORD PTR [rbp+16],ax movzx eax,WORD PTR [r13] mov WORD PTR [rbp+32],ax movzx eax,WORD PTR [r13+r8] mov WORD PTR [rbp+48],ax add rdx,2 add rbp,2 ; advance padded buffer destination CopyRemainingCountKLessThan2M4: test bl,1 ; (CountK & 1) != 0? jz ProcessPaddedMatrixADataM4 lea r13,[rdx+r8*2] ; compute matrix A plus 2 rows movzx eax,BYTE PTR [rdx] mov BYTE PTR [rbp],al movzx eax,BYTE PTR [rdx+r8] mov BYTE PTR [rbp+16],al movzx eax,BYTE PTR [r13] mov BYTE PTR [rbp+32],al movzx eax,BYTE PTR [r13+r8] mov BYTE PTR [rbp+48],al ; ; Process the remaining CountK columns using the zero padded stack buffer. ; ProcessPaddedMatrixADataM4: vmovdqu xmm4,XMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp] vmovdqu xmm5,XMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp+16] vmovdqu xmm6,XMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp+32] vmovdqu xmm7,XMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp+48] lea rax,[rcx+r11*2] ; compute matrix D plus 2 rows vpmaskmovd XMMWORD PTR [rcx],xmm10,xmm4 vpmaskmovd XMMWORD PTR [rcx+r11],xmm10,xmm5 vpmaskmovd XMMWORD PTR [rax],xmm10,xmm6 vpmaskmovd XMMWORD PTR [rax+r11],xmm10,xmm7 vpmaddubsw xmm4,xmm4,xmm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators vpmaddubsw xmm5,xmm5,xmm9 vpaddw ymm1,ymm1,ymm5 vpmaddubsw xmm6,xmm6,xmm9 vpaddw ymm2,ymm2,ymm6 vpmaddubsw xmm7,xmm7,xmm9 vpaddw ymm3,ymm3,ymm7 ; ; Reduce the sums for the four rows of output. ; ReduceRowSumVectorM4: vphaddw ymm0,ymm0,ymm1 ; reduce and interleave Sum1/Sum0 vphaddw ymm1,ymm2,ymm3 ; reduce and interleave Sum3/Sum2 vphaddw ymm0,ymm0,ymm1 ; reduce and interleave Sum3/Sum2/Sum1/Sum0 vextracti128 xmm1,ymm0,1 ; extract high pairs vpaddw xmm0,xmm0,xmm1 ; reduce low/high pairs vpmaddwd xmm0,xmm0,xmm8 ; multiply by offset and reduce 32-bit sum vmovdqu XMMWORD PTR [r12],xmm0 add r12,4*4 ; advance row sum vector by 4 DWORDs sub r9,4 ; subtract rows remaining jae ProcessNextRowM4 ProcessRemainingRows: add r9,4 ; correct for over-subtract above jz ExitRoutine ; ; Process a single row of matrix A in a loop. ; ProcessNextRowM1: vpxor xmm0,xmm0,xmm0 ; clear row accumulator mov rdx,rsi mov rcx,rdi add rsi,r8 add rdi,r11 mov rbx,r10 ; reload columns remaining sub rbx,32 jb ProcessRemainingColumnsM1 ProcessNextColumnLoopM1: vmovdqu ymm4,YMMWORD PTR [rdx] vmovdqu YMMWORD PTR [rcx],ymm4 vpmaddubsw ymm4,ymm4,ymm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators add rdx,32 ; advance matrix A by 32 bytes add rcx,32 ; advance matrix D by 32 bytes sub rbx,32 ; subtract columns remaining jae ProcessNextColumnLoopM1 ProcessRemainingColumnsM1: add rbx,32 ; correct for over-subtract above jz ReduceRowSumVectorM1 test bl,16 ; (CountK & 16) != 0? jz CopyRemainingCountKLessThan16M1 vmovdqu xmm4,XMMWORD PTR [rdx] vmovdqu XMMWORD PTR [rcx],xmm4 vpmaddubsw xmm4,xmm4,xmm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators add rdx,16 ; advance matrix A by 16 bytes add rcx,16 ; advance matrix D by 16 bytes test bl,15 ; test for unaligned columns jz ReduceRowSumVectorM1 ; ; Copy the unaligned CountK columns to a zero padded stack buffer. ; CopyRemainingCountKLessThan16M1: .errnz GemmU8S8CopyPackAFrame.PaddedMatrixAData mov rbp,rsp ; GemmU8S8CopyPackAFrame.PaddedMatrixAData test bl,8 ; (CountK & 8) != 0? jz CopyRemainingCountKLessThan8M1 mov rax,QWORD PTR [rdx] mov QWORD PTR [rbp],rax add rdx,8 add rbp,8 ; advance padded buffer destination CopyRemainingCountKLessThan8M1: test bl,4 ; (CountK & 4) != 0? jz CopyRemainingCountKLessThan4M1 mov eax,DWORD PTR [rdx] mov DWORD PTR [rbp],eax add rdx,4 add rbp,4 ; advance padded buffer destination CopyRemainingCountKLessThan4M1: test bl,2 ; (CountK & 2) != 0? jz CopyRemainingCountKLessThan2M1 movzx eax,WORD PTR [rdx] mov WORD PTR [rbp],ax add rdx,2 add rbp,2 ; advance padded buffer destination CopyRemainingCountKLessThan2M1: test bl,1 ; (CountK & 1) != 0? jz ProcessPaddedMatrixADataM1 movzx eax,BYTE PTR [rdx] mov BYTE PTR [rbp],al ; ; Process the remaining CountK columns using the zero padded stack buffer. ; ProcessPaddedMatrixADataM1: vmovdqu xmm4,XMMWORD PTR GemmU8S8CopyPackAFrame.PaddedMatrixAData[rsp] vpmaskmovd XMMWORD PTR [rcx],xmm10,xmm4 vpmaddubsw ymm4,ymm4,ymm9 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; accumulate per row along columns ; ; Reduce the sum for the single row of output. ; ReduceRowSumVectorM1: vextracti128 xmm1,ymm0,1 ; extract high pairs vpaddw xmm0,xmm0,xmm1 ; reduction vphaddw xmm0,xmm0,xmm0 vphaddw xmm0,xmm0,xmm0 vpmaddwd xmm0,xmm0,xmm8 ; multiply by offset and reduce vmovd DWORD PTR [r12],xmm0 add r12,4 ; advance row sum vector by 1 DWORD dec r9 ; decrement rows remaining jnz ProcessNextRowM1 ; ; Restore non-volatile registers and return. ; ExitRoutine: vzeroupper movaps xmm6,GemmU8S8CopyPackAFrame.SavedXmm6[rsp] movaps xmm7,GemmU8S8CopyPackAFrame.SavedXmm7[rsp] movaps xmm8,GemmU8S8CopyPackAFrame.SavedXmm8[rsp] movaps xmm9,GemmU8S8CopyPackAFrame.SavedXmm9[rsp] movaps xmm10,GemmU8S8CopyPackAFrame.SavedXmm10[rsp] add rsp,(GemmU8S8CopyPackAFrame.SavedR13) BEGIN_EPILOGUE pop r13 pop r12 pop rdi pop rsi pop rbx pop rbp ret NESTED_END MlasGemmU8S8CopyPackAAvx2, _TEXT ;++ ; ; Routine Description: ; ; This routine copies elements from the source matrix to the destination ; packed buffer. ; ; Arguments: ; ; D (rcx) - Supplies the address of the destination packed buffer. ; ; B (rdx) - Supplies the address of the source matrix. ; ; ldb (r8) - Supplies the number of elements per row of the source matrix. ; ; CountN (r9) - Supplies the number of columns of the source matrix to copy. ; ; CountK - Supplies the number of rows of the source matrix to copy. ; ; ColumnSumVector - Supplies the address of the buffer to receive the sums of ; the elements from each of the columns. Each sum has also been multiplied ; by the zero point offset. ; ; offa - Supplies the zero point offset for the other source matrix of the ; matrix multiplication. ; ; Return Value: ; ; None. ; ;-- NESTED_ENTRY MlasGemmU8S8CopyPackBAvx2, _TEXT rex_push_reg rbp push_reg rbx push_reg rsi push_reg rdi alloc_stack (GemmU8S8CopyPackBFrame.SavedRdi) save_xmm128 xmm6,GemmU8S8CopyPackBFrame.SavedXmm6 save_xmm128 xmm7,GemmU8S8CopyPackBFrame.SavedXmm7 save_xmm128 xmm8,GemmU8S8CopyPackBFrame.SavedXmm8 END_PROLOGUE mov rsi,rdx mov r10,GemmU8S8CopyPackBFrame.CountK[rsp] mov r11,GemmU8S8CopyPackBFrame.ColumnSumVector[rsp] vpbroadcastw ymm7,WORD PTR GemmU8S8CopyPackBFrame.offa[rsp] vpcmpeqw ymm8,ymm8,ymm8 ; generate word vector [0xFFFF] vpsrlw ymm8,ymm8,15 ; generate word vector [0x0001] vpsllw ymm0,ymm8,8 ; generate word vector [0x0100] vpor ymm8,ymm8,ymm0 ; generate word vector [0x0101] ; ; Process 16 columns of matrix B in a loop. ; sub r9,16 jb ProcessRemainingColumns ProcessNextColumnN16: vpxor xmm0,xmm0,xmm0 ; clear column accumulators vpxor xmm1,xmm1,xmm1 mov rdx,rsi add rsi,16 ; advance next matrix B by 16 columns mov rbx,r10 ; reload rows remaining sub rbx,4 jb ProcessRemainingRowsN16 ProcessNextRowLoopN16: lea rax,[rdx+r8*2] ; compute matrix B plus 2 rows vmovdqu xmm2,XMMWORD PTR [rdx] ; load 4 rows vmovdqu xmm3,XMMWORD PTR [rdx+r8] vmovdqu xmm4,XMMWORD PTR [rax] vmovdqu xmm5,XMMWORD PTR [rax+r8] lea rdx,[rdx+r8*4] ; advance matrix B by 4 rows InterleaveRowDataN16: vpunpcklbw xmm6,xmm2,xmm3 ; interleave row data vpunpckhbw xmm3,xmm2,xmm3 vpunpcklbw xmm2,xmm4,xmm5 vpunpckhbw xmm5,xmm4,xmm5 vpunpcklwd xmm4,xmm6,xmm2 vpunpckhwd xmm6,xmm6,xmm2 vpunpcklwd xmm2,xmm3,xmm5 vpunpckhwd xmm3,xmm3,xmm5 vinserti128 ymm4,ymm4,xmm6,1 vinserti128 ymm2,ymm2,xmm3,1 vmovdqu YMMWORD PTR [rcx],ymm4 ; store interleaved rows vmovdqu YMMWORD PTR [rcx+32],ymm2 vpmaddubsw ymm4,ymm8,ymm4 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators vpmaddubsw ymm2,ymm8,ymm2 vpaddw ymm1,ymm1,ymm2 add rcx,64 ; advance matrix D by 64 bytes sub rbx,4 ; subtract rows remaining jae ProcessNextRowLoopN16 ; ; Process the less than 4 remaining rows where the row has 16 columns. ; ProcessRemainingRowsN16: add rbx,4 ; correct for over-subtract above jz ReduceColumnSumVectorN16 vmovdqu xmm2,XMMWORD PTR [rdx] vpxor xmm3,xmm3,xmm3 vpxor xmm4,xmm4,xmm4 vpxor xmm5,xmm5,xmm5 xor ebx,ebx ; no more rows remaining test r10b,2 ; (CountK & 2) != 0? jz InterleaveRowDataN16 vmovdqu xmm3,XMMWORD PTR [rdx+r8] test r10b,1 ; (CountK & 1) != 0? jz InterleaveRowDataN16 vmovdqu xmm4,XMMWORD PTR [rdx+r8*2] jmp InterleaveRowDataN16 ReduceColumnSumVectorN16: vpmaddwd ymm0,ymm0,ymm7 ; multiply by offset and reduce vpmaddwd ymm1,ymm1,ymm7 ; multiply by offset and reduce vmovdqu YMMWORD PTR [r11],ymm0 vmovdqu YMMWORD PTR [r11+32],ymm1 add r11,16*4 ; advance column sum vector by 16 DWORDs sub r9,16 ; subtract columns remaining jae ProcessNextColumnN16 ProcessRemainingColumns: add r9,16 ; correct for over-subtract above jnz ProcessColumnNUnaligned ; ; Restore non-volatile registers and return. ; ExitRoutine: vzeroupper movaps xmm6,GemmU8S8CopyPackBFrame.SavedXmm6[rsp] movaps xmm7,GemmU8S8CopyPackBFrame.SavedXmm7[rsp] movaps xmm8,GemmU8S8CopyPackBFrame.SavedXmm8[rsp] add rsp,(GemmU8S8CopyPackBFrame.SavedRdi) BEGIN_EPILOGUE pop rdi pop rsi pop rbx pop rbp ret ; ; Process the remaining columns of matrix B. ; ProcessColumnNUnaligned: vpxor xmm0,xmm0,xmm0 ; clear column accumulators vpxor xmm1,xmm1,xmm1 vmovdqu YMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp],ymm0 vmovdqu YMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp+32],ymm0 sub r10,4 jb ProcessRemainingRowsNUnaligned ProcessNextRowLoopNUnaligned: mov rdx,rsi .errnz GemmU8S8CopyPackBFrame.PaddedMatrixBData mov rbp,rsp ; GemmU8S8CopyPackBFrame.PaddedMatrixBData test r9b,8 ; (CountN & 8) != 0? jz CopyRemainingCountNLessThan8K4 lea rdi,[rdx+r8*2] ; compute matrix B plus 2 rows mov rax,QWORD PTR [rdx] mov QWORD PTR [rbp],rax mov rax,QWORD PTR [rdx+r8] mov QWORD PTR [rbp+16],rax mov rax,QWORD PTR [rdi] mov QWORD PTR [rbp+32],rax mov rax,QWORD PTR [rdi+r8] mov QWORD PTR [rbp+48],rax add rdx,8 ; advance matrix B add rbp,8 ; advance padded buffer destination CopyRemainingCountNLessThan8K4: test r9b,4 ; (CountN & 4) != 0? jz CopyRemainingCountNLessThan4K4 lea rdi,[rdx+r8*2] ; compute matrix B plus 2 rows mov eax,DWORD PTR [rdx] mov DWORD PTR [rbp],eax mov eax,DWORD PTR [rdx+r8] mov DWORD PTR [rbp+16],eax mov eax,DWORD PTR [rdi] mov DWORD PTR [rbp+32],eax mov eax,DWORD PTR [rdi+r8] mov DWORD PTR [rbp+48],eax add rdx,4 ; advance matrix B add rbp,4 ; advance padded buffer destination CopyRemainingCountNLessThan4K4: test r9b,2 ; (CountN & 2) != 0? jz CopyRemainingCountNLessThan2K4 lea rdi,[rdx+r8*2] ; compute matrix B plus 2 rows movzx eax,WORD PTR [rdx] mov WORD PTR [rbp],ax movzx eax,WORD PTR [rdx+r8] mov WORD PTR [rbp+16],ax movzx eax,WORD PTR [rdi] mov WORD PTR [rbp+32],ax movzx eax,WORD PTR [rdi+r8] mov WORD PTR [rbp+48],ax add rdx,2 ; advance matrix B add rbp,2 ; advance padded buffer destination CopyRemainingCountNLessThan2K4: test r9b,1 ; (CountN & 1) != 0? jz ProcessPaddedMatrixBData lea rdi,[rdx+r8*2] ; compute matrix B plus 2 rows movzx eax,BYTE PTR [rdx] mov BYTE PTR [rbp],al movzx eax,BYTE PTR [rdx+r8] mov BYTE PTR [rbp+16],al movzx eax,BYTE PTR [rdi] mov BYTE PTR [rbp+32],al movzx eax,BYTE PTR [rdi+r8] mov BYTE PTR [rbp+48],al ProcessPaddedMatrixBData: vmovdqu xmm2,XMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp] vmovdqu xmm3,XMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp+16] vmovdqu xmm4,XMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp+32] vmovdqu xmm5,XMMWORD PTR GemmU8S8CopyPackBFrame.PaddedMatrixBData[rsp+48] vpunpcklbw xmm6,xmm2,xmm3 ; interleave row data vpunpckhbw xmm3,xmm2,xmm3 vpunpcklbw xmm2,xmm4,xmm5 vpunpckhbw xmm5,xmm4,xmm5 vpunpcklwd xmm4,xmm6,xmm2 vpunpckhwd xmm6,xmm6,xmm2 vpunpcklwd xmm2,xmm3,xmm5 vpunpckhwd xmm3,xmm3,xmm5 vinserti128 ymm4,ymm4,xmm6,1 vinserti128 ymm2,ymm2,xmm3,1 vmovdqu YMMWORD PTR [rcx],ymm4 ; store interleaved rows vmovdqu YMMWORD PTR [rcx+32],ymm2 vpmaddubsw ymm4,ymm8,ymm4 ; horizontal byte+byte=word per row vpaddw ymm0,ymm0,ymm4 ; add words to row accumulators vpmaddubsw ymm2,ymm8,ymm2 vpaddw ymm1,ymm1,ymm2 lea rsi,[rsi+r8*4] ; advance next matrix B by 4 rows add rcx,64 ; advance matrix D by 64 bytes sub r10,4 ; subtract rows remaining jae ProcessNextRowLoopNUnaligned ProcessRemainingRowsNUnaligned: add r10,4 jz ReduceColumnSumVectorNUnaligned ; ; Process the less than 4 remaining rows where the row has less than 16 columns. ; .errnz GemmU8S8CopyPackBFrame.PaddedMatrixBData mov rbp,rsp ; GemmU8S8CopyPackBFrame.PaddedMatrixBData vpxor xmm6,xmm6,xmm6 vmovdqu YMMWORD PTR [rbp],ymm6 vmovdqu YMMWORD PTR [rbp+32],ymm6 CopyUnalignedRowLoop: lea rdi,[rbp+16] ; advance next padded buffer by 16 bytes mov rdx,rsi test r9b,8 ; (CountN & 8) != 0? jz CopyRemainingCountNLessThan8KSmall mov rax,QWORD PTR [rdx] mov QWORD PTR [rbp],rax add rdx,8 ; advance matrix B add rbp,8 ; advance padded buffer destination CopyRemainingCountNLessThan8KSmall: test r9b,4 ; (CountN & 4) != 0? jz CopyRemainingCountNLessThan4KSmall mov eax,DWORD PTR [rdx] mov DWORD PTR [rbp],eax add rdx,4 ; advance matrix B add rbp,4 ; advance padded buffer destination CopyRemainingCountNLessThan4KSmall: test r9b,2 ; (CountN & 2) != 0? jz CopyRemainingCountNLessThan2KSmall movzx eax,WORD PTR [rdx] mov WORD PTR [rbp],ax add rdx,2 ; advance matrix B add rbp,2 ; advance padded buffer destination CopyRemainingCountNLessThan2KSmall: test r9b,1 ; (CountN & 1) != 0? jz DoneCopyRemainingCountNKSmall movzx eax,BYTE PTR [rdx] mov BYTE PTR [rbp],al DoneCopyRemainingCountNKSmall: dec r10 jz ProcessPaddedMatrixBData add rsi,r8 ; advance next matrix B by 1 row mov rbp,rdi jmp CopyUnalignedRowLoop ReduceColumnSumVectorNUnaligned: vpmaddwd ymm0,ymm0,ymm7 ; multiply by offset and reduce vpmaddwd ymm1,ymm1,ymm7 ; multiply by offset and reduce vmovdqu YMMWORD PTR [r11],ymm0 vmovdqu YMMWORD PTR [r11+32],ymm1 jmp ExitRoutine NESTED_END MlasGemmU8S8CopyPackBAvx2, _TEXT ; ; Macro Description: ; ; This macro generates code to multiply and accumulator a single row of the ; output block. ; ; Arguments: ; ; ColumnCount - Supplies the number of columns to produce. ; ; Vec1Reg - Supplies the high block accumulator register (when ColumnCount ; is 16). ; ; Vec2Reg - Supplies the low block accumulator register. ; ; Implicit Arguments: ; ; ymm0 - Supplies the first vector loaded from matrix B. ; ; ymm1 - Supplies the second vector loaded from matrix B (when ColumnCount ; is 16). ; ; ymm2 - Supplies the broadcast value loaded from matrix A. ; ; ymm12 - Supplies a 256-bit with the broadcasted word value 0x0001. ; MultiplyAccumulateRow MACRO ColumnCount, Vec1Reg, Vec2Reg vpmaddubsw ymm3,ymm2,ymm0 vpmaddwd ymm3,ymm3,ymm12 IF ColumnCount EQ 16 vpaddd Vec1Reg,Vec1Reg,ymm3 vpmaddubsw ymm2,ymm2,ymm1 vpmaddwd ymm2,ymm2,ymm12 vpaddd Vec2Reg,Vec2Reg,ymm2 ELSE vpaddd Vec2Reg,Vec2Reg,ymm3 ENDIF ENDM ; ; Macro Description: ; ; This macro generates code to multiply and accumulate each row of the output ; block. ; ; Arguments: ; ; ColumnCount - Supplies the number of columns to produce. ; ; RowCount - Supplies the number of rows to produce. ; ; VectorOffset - Supplies the byte offset from matrix B to fetch elements. ; ; BroadcastOffset - Supplies the byte offset from matrix A to fetch elements. ; ; Implicit Arguments: ; ; rbx - Supplies the address into the matrix A data plus 3 rows. ; ; rcx - Supplies the address into the matrix A data. ; ; rdx - Supplies the address into the matrix B data. ; ; r9 - Supplies the length in bytes of a row from matrix A. ; ; ymm4-ymm11 - Supplies the block accumulators. ; ; ymm12 - Supplies a 256-bit with the broadcasted word value 0x0001. ; ComputeBlock MACRO ColumnCount, RowCount, VectorOffset, BroadcastOffset IF RowCount EQ 1 vpbroadcastd ymm2,DWORD PTR [rcx+BroadcastOffset] vpmaddubsw ymm3,ymm2,YMMWORD PTR [rdx+VectorOffset] vpmaddwd ymm3,ymm3,ymm12 IF ColumnCount EQ 16 vpaddd ymm4,ymm4,ymm3 vpmaddubsw ymm2,ymm2,YMMWORD PTR [rdx+VectorOffset+32] vpmaddwd ymm2,ymm2,ymm12 vpaddd ymm5,ymm5,ymm2 ELSE vpaddd ymm5,ymm5,ymm3 ENDIF ELSE vmovdqu ymm0,YMMWORD PTR [rdx+VectorOffset] EmitIfCountGE ColumnCount, 16, <vmovdqu ymm1,YMMWORD PTR [rdx+VectorOffset+32]> EmitIfCountGE RowCount, 1, <vpbroadcastd ymm2,DWORD PTR [rcx+BroadcastOffset]> EmitIfCountGE RowCount, 1, <MultiplyAccumulateRow ColumnCount, ymm4, ymm5> EmitIfCountGE RowCount, 2, <vpbroadcastd ymm2,DWORD PTR [rcx+r9+BroadcastOffset]> EmitIfCountGE RowCount, 2, <MultiplyAccumulateRow ColumnCount, ymm6, ymm7> EmitIfCountGE RowCount, 3, <vpbroadcastd ymm2,DWORD PTR [rcx+r9*2+BroadcastOffset]> EmitIfCountGE RowCount, 3, <MultiplyAccumulateRow ColumnCount, ymm8, ymm9> EmitIfCountGE RowCount, 4, <vpbroadcastd ymm2,DWORD PTR [rbx+BroadcastOffset]> EmitIfCountGE RowCount, 4, <MultiplyAccumulateRow ColumnCount, ymm10, ymm11> ENDIF ENDM ; ; Macro Description: ; ; This macro generates code to execute the block compute macro multiple ; times and advancing the matrix A and matrix B data pointers. ; ; Arguments: ; ; ColumnCount - Supplies the number of columns to produce. ; ; RowCount - Supplies the number of rows to produce. ; ; Implicit Arguments: ; ; rbx - Supplies the address into the matrix A data plus 3 rows. ; ; rcx - Supplies the address into the matrix A data. ; ; rdx - Supplies the address into the matrix B data. ; ; r9 - Supplies the length in bytes of a row from matrix A. ; ; ymm4-ymm11 - Supplies the block accumulators. ; ComputeBlockLoop MACRO ColumnCount, RowCount LOCAL ComputeBlockBy1Loop mov rsi,r9 ; reload row length remaining ComputeBlockBy1Loop: ComputeBlock ColumnCount, RowCount, 0, 0 add rcx,4 ; advance matrix A by 1 quad IF RowCount GT 3 add rbx,4 ; advance matrix A plus 3 rows by 1 quad ENDIF add rdx,64 ; advance matrix B sub rsi,4 jnz ComputeBlockBy1Loop ENDM ;++ ; ; Routine Description: ; ; This routine is an inner kernel to compute matrix multiplication for a ; set of rows. ; ; Arguments: ; ; A (rcx) - Supplies the address of matrix A. The matrix data has been packed ; using MlasGemmU8S8CopyPackAAvx2. ; ; B (rdx) - Supplies the address of matrix B. The matrix data has been packed ; using MlasGemmU8S8CopyPackBAvx2. ; ; C (r8) - Supplies the address of matrix C. ; ; QuadCountK (r9) - Supplies the number of quad columns from matrix A and the ; number of quad rows from matrix B to iterate over. ; ; CountM - Supplies the maximum number of rows that can be processed for ; matrix A and matrix C. The actual number of rows handled for this ; invocation depends on the kernel implementation. ; ; CountN - Supplies the number of columns from matrix B and matrix C to iterate ; over. ; ; ldc - Supplies the first dimension of matrix C. ; ; RowSumVector - Supplies the sum of each row from matrix A multiplied by the ; zero point offset of matrix B. These values are accumulated into every ; row of matrix C. ; ; ColumnSumVector - Supplies the sum of each column from matrix B multiplied ; by the zero point offset of matrix A. These values are accumulated into ; every column of matrix C. ; ; DepthValue - Supplies the value CountK multiplied by the zero point offset ; of matrix A multplied by the zero point offset of matrix B. This value is ; accumulated into every element of matrix C. ; ; ZeroMode - Supplies true if the output matrix must be zero initialized, ; else false if the output matrix is accumulated into. ; ; Return Value: ; ; Returns the number of rows handled. ; ;-- NESTED_ENTRY MlasGemmU8S8KernelAvx2, _TEXT rex_push_reg rbp push_reg rbx push_reg rsi push_reg rdi push_reg r12 push_reg r13 alloc_stack (GemmU8X8KernelFrame.SavedR13) save_xmm128 xmm6,GemmU8X8KernelFrame.SavedXmm6 save_xmm128 xmm7,GemmU8X8KernelFrame.SavedXmm7 save_xmm128 xmm8,GemmU8X8KernelFrame.SavedXmm8 save_xmm128 xmm9,GemmU8X8KernelFrame.SavedXmm9 save_xmm128 xmm10,GemmU8X8KernelFrame.SavedXmm10 save_xmm128 xmm11,GemmU8X8KernelFrame.SavedXmm11 save_xmm128 xmm12,GemmU8X8KernelFrame.SavedXmm12 END_PROLOGUE mov rdi,rcx mov rbp,GemmU8X8KernelFrame.CountN[rsp] mov rax,GemmU8X8KernelFrame.ldc[rsp] shl rax,2 ; convert ldc to bytes shl r9,2 ; convert to row length movzx r10,BYTE PTR GemmU8X8KernelFrame.ZeroMode[rsp] mov r11,GemmU8X8KernelFrame.CountM[rsp] mov r12,GemmU8X8KernelFrame.RowSumVector[rsp] mov r13,GemmU8X8KernelFrame.ColumnSumVector[rsp] vpcmpeqw ymm12,ymm12,ymm12 ; generate 256-bit word vector [0xFFFF] vpsrlw ymm12,ymm12,15 ; generate 256-bit word vector [0x0001] ; ; Process CountM rows of the matrices. ; cmp r11,3 ja ProcessCountM4 je ProcessCountM3 cmp r11,1 je ProcessCountM1 ProcessCountM2: ProcessCountM 2 ProcessCountM4: mov r11d,4 ; return 4 rows handled ProcessCountM 4, Fallthrough ; ; Restore non-volatile registers and return. ; ExitKernel: mov eax,r11d vzeroupper movaps xmm6,GemmU8X8KernelFrame.SavedXmm6[rsp] movaps xmm7,GemmU8X8KernelFrame.SavedXmm7[rsp] movaps xmm8,GemmU8X8KernelFrame.SavedXmm8[rsp] movaps xmm9,GemmU8X8KernelFrame.SavedXmm9[rsp] movaps xmm10,GemmU8X8KernelFrame.SavedXmm10[rsp] movaps xmm11,GemmU8X8KernelFrame.SavedXmm11[rsp] movaps xmm12,GemmU8X8KernelFrame.SavedXmm12[rsp] add rsp,(GemmU8X8KernelFrame.SavedR13) BEGIN_EPILOGUE pop r13 pop r12 pop rdi pop rsi pop rbx pop rbp ret ProcessCountM1: ProcessCountM 1 ProcessCountM3: ProcessCountM 3 NESTED_END MlasGemmU8S8KernelAvx2, _TEXT END
37,278
Assembly
asm
35.368121
91
0.597672
f701fb623facb3bead214e224628ce0c2d8a288c
lynex/nnfusion
[ "MIT" ]
639
user/_strace: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #include "kernel/types.h" #include "kernel/stat.h" #include "user/user.h" int main(int argc, char *argv[]) { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec26 sd s1,24(sp) 8: e84a sd s2,16(sp) a: e44e sd s3,8(sp) c: 1800 addi s0,sp,48 int mask; if (argc < 3) e: 4789 li a5,2 10: 02a7c063 blt a5,a0,30 <main+0x30> { fprintf(2, "usage: strace mask command [args]\n"); 14: 00001597 auipc a1,0x1 18: 84458593 addi a1,a1,-1980 # 858 <malloc+0xea> 1c: 4509 li a0,2 1e: 00000097 auipc ra,0x0 22: 664080e7 jalr 1636(ra) # 682 <fprintf> exit(1); 26: 4505 li a0,1 28: 00000097 auipc ra,0x0 2c: 300080e7 jalr 768(ra) # 328 <exit> 30: 84aa mv s1,a0 32: 892e mv s2,a1 } mask = atoi(argv[1]); 34: 6588 ld a0,8(a1) 36: 00000097 auipc ra,0x0 3a: 1f2080e7 jalr 498(ra) # 228 <atoi> trace(mask); 3e: 00000097 auipc ra,0x0 42: 38a080e7 jalr 906(ra) # 3c8 <trace> char *execargs[argc - 1]; 46: fff4879b addiw a5,s1,-1 4a: 078e slli a5,a5,0x3 4c: 07bd addi a5,a5,15 4e: 9bc1 andi a5,a5,-16 50: 40f10133 sub sp,sp,a5 54: 898a mv s3,sp for (int i = 0; i < argc - 2; i++) 56: ffe4859b addiw a1,s1,-2 5a: 01090793 addi a5,s2,16 5e: 874e mv a4,s3 60: ffd4869b addiw a3,s1,-3 64: 1682 slli a3,a3,0x20 66: 9281 srli a3,a3,0x20 68: 068e slli a3,a3,0x3 6a: 0961 addi s2,s2,24 6c: 96ca add a3,a3,s2 { execargs[i] = argv[i + 2]; 6e: 6390 ld a2,0(a5) 70: e310 sd a2,0(a4) for (int i = 0; i < argc - 2; i++) 72: 07a1 addi a5,a5,8 74: 0721 addi a4,a4,8 76: fed79ce3 bne a5,a3,6e <main+0x6e> } execargs[argc - 2] = 0; 7a: 00359793 slli a5,a1,0x3 7e: 97ce add a5,a5,s3 80: 0007b023 sd zero,0(a5) exec(execargs[0], execargs); 84: 85ce mv a1,s3 86: 0009b503 ld a0,0(s3) 8a: 00000097 auipc ra,0x0 8e: 2d6080e7 jalr 726(ra) # 360 <exec> fprintf(2, "exec %s failed\n", execargs[0]); 92: 0009b603 ld a2,0(s3) 96: 00000597 auipc a1,0x0 9a: 7ea58593 addi a1,a1,2026 # 880 <malloc+0x112> 9e: 4509 li a0,2 a0: 00000097 auipc ra,0x0 a4: 5e2080e7 jalr 1506(ra) # 682 <fprintf> exit(0); a8: 4501 li a0,0 aa: 00000097 auipc ra,0x0 ae: 27e080e7 jalr 638(ra) # 328 <exit> 00000000000000b2 <strcpy>: #include "kernel/fcntl.h" #include "user/user.h" char* strcpy(char *s, const char *t) { b2: 1141 addi sp,sp,-16 b4: e422 sd s0,8(sp) b6: 0800 addi s0,sp,16 char *os; os = s; while((*s++ = *t++) != 0) b8: 87aa mv a5,a0 ba: 0585 addi a1,a1,1 bc: 0785 addi a5,a5,1 be: fff5c703 lbu a4,-1(a1) c2: fee78fa3 sb a4,-1(a5) c6: fb75 bnez a4,ba <strcpy+0x8> ; return os; } c8: 6422 ld s0,8(sp) ca: 0141 addi sp,sp,16 cc: 8082 ret 00000000000000ce <strcmp>: int strcmp(const char *p, const char *q) { ce: 1141 addi sp,sp,-16 d0: e422 sd s0,8(sp) d2: 0800 addi s0,sp,16 while(*p && *p == *q) d4: 00054783 lbu a5,0(a0) d8: cb91 beqz a5,ec <strcmp+0x1e> da: 0005c703 lbu a4,0(a1) de: 00f71763 bne a4,a5,ec <strcmp+0x1e> p++, q++; e2: 0505 addi a0,a0,1 e4: 0585 addi a1,a1,1 while(*p && *p == *q) e6: 00054783 lbu a5,0(a0) ea: fbe5 bnez a5,da <strcmp+0xc> return (uchar)*p - (uchar)*q; ec: 0005c503 lbu a0,0(a1) } f0: 40a7853b subw a0,a5,a0 f4: 6422 ld s0,8(sp) f6: 0141 addi sp,sp,16 f8: 8082 ret 00000000000000fa <strlen>: uint strlen(const char *s) { fa: 1141 addi sp,sp,-16 fc: e422 sd s0,8(sp) fe: 0800 addi s0,sp,16 int n; for(n = 0; s[n]; n++) 100: 00054783 lbu a5,0(a0) 104: cf91 beqz a5,120 <strlen+0x26> 106: 0505 addi a0,a0,1 108: 87aa mv a5,a0 10a: 4685 li a3,1 10c: 9e89 subw a3,a3,a0 10e: 00f6853b addw a0,a3,a5 112: 0785 addi a5,a5,1 114: fff7c703 lbu a4,-1(a5) 118: fb7d bnez a4,10e <strlen+0x14> ; return n; } 11a: 6422 ld s0,8(sp) 11c: 0141 addi sp,sp,16 11e: 8082 ret for(n = 0; s[n]; n++) 120: 4501 li a0,0 122: bfe5 j 11a <strlen+0x20> 0000000000000124 <memset>: void* memset(void *dst, int c, uint n) { 124: 1141 addi sp,sp,-16 126: e422 sd s0,8(sp) 128: 0800 addi s0,sp,16 char *cdst = (char *) dst; int i; for(i = 0; i < n; i++){ 12a: ce09 beqz a2,144 <memset+0x20> 12c: 87aa mv a5,a0 12e: fff6071b addiw a4,a2,-1 132: 1702 slli a4,a4,0x20 134: 9301 srli a4,a4,0x20 136: 0705 addi a4,a4,1 138: 972a add a4,a4,a0 cdst[i] = c; 13a: 00b78023 sb a1,0(a5) for(i = 0; i < n; i++){ 13e: 0785 addi a5,a5,1 140: fee79de3 bne a5,a4,13a <memset+0x16> } return dst; } 144: 6422 ld s0,8(sp) 146: 0141 addi sp,sp,16 148: 8082 ret 000000000000014a <strchr>: char* strchr(const char *s, char c) { 14a: 1141 addi sp,sp,-16 14c: e422 sd s0,8(sp) 14e: 0800 addi s0,sp,16 for(; *s; s++) 150: 00054783 lbu a5,0(a0) 154: cb99 beqz a5,16a <strchr+0x20> if(*s == c) 156: 00f58763 beq a1,a5,164 <strchr+0x1a> for(; *s; s++) 15a: 0505 addi a0,a0,1 15c: 00054783 lbu a5,0(a0) 160: fbfd bnez a5,156 <strchr+0xc> return (char*)s; return 0; 162: 4501 li a0,0 } 164: 6422 ld s0,8(sp) 166: 0141 addi sp,sp,16 168: 8082 ret return 0; 16a: 4501 li a0,0 16c: bfe5 j 164 <strchr+0x1a> 000000000000016e <gets>: char* gets(char *buf, int max) { 16e: 711d addi sp,sp,-96 170: ec86 sd ra,88(sp) 172: e8a2 sd s0,80(sp) 174: e4a6 sd s1,72(sp) 176: e0ca sd s2,64(sp) 178: fc4e sd s3,56(sp) 17a: f852 sd s4,48(sp) 17c: f456 sd s5,40(sp) 17e: f05a sd s6,32(sp) 180: ec5e sd s7,24(sp) 182: 1080 addi s0,sp,96 184: 8baa mv s7,a0 186: 8a2e mv s4,a1 int i, cc; char c; for(i=0; i+1 < max; ){ 188: 892a mv s2,a0 18a: 4481 li s1,0 cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 18c: 4aa9 li s5,10 18e: 4b35 li s6,13 for(i=0; i+1 < max; ){ 190: 89a6 mv s3,s1 192: 2485 addiw s1,s1,1 194: 0344d863 bge s1,s4,1c4 <gets+0x56> cc = read(0, &c, 1); 198: 4605 li a2,1 19a: faf40593 addi a1,s0,-81 19e: 4501 li a0,0 1a0: 00000097 auipc ra,0x0 1a4: 1a0080e7 jalr 416(ra) # 340 <read> if(cc < 1) 1a8: 00a05e63 blez a0,1c4 <gets+0x56> buf[i++] = c; 1ac: faf44783 lbu a5,-81(s0) 1b0: 00f90023 sb a5,0(s2) if(c == '\n' || c == '\r') 1b4: 01578763 beq a5,s5,1c2 <gets+0x54> 1b8: 0905 addi s2,s2,1 1ba: fd679be3 bne a5,s6,190 <gets+0x22> for(i=0; i+1 < max; ){ 1be: 89a6 mv s3,s1 1c0: a011 j 1c4 <gets+0x56> 1c2: 89a6 mv s3,s1 break; } buf[i] = '\0'; 1c4: 99de add s3,s3,s7 1c6: 00098023 sb zero,0(s3) return buf; } 1ca: 855e mv a0,s7 1cc: 60e6 ld ra,88(sp) 1ce: 6446 ld s0,80(sp) 1d0: 64a6 ld s1,72(sp) 1d2: 6906 ld s2,64(sp) 1d4: 79e2 ld s3,56(sp) 1d6: 7a42 ld s4,48(sp) 1d8: 7aa2 ld s5,40(sp) 1da: 7b02 ld s6,32(sp) 1dc: 6be2 ld s7,24(sp) 1de: 6125 addi sp,sp,96 1e0: 8082 ret 00000000000001e2 <stat>: int stat(const char *n, struct stat *st) { 1e2: 1101 addi sp,sp,-32 1e4: ec06 sd ra,24(sp) 1e6: e822 sd s0,16(sp) 1e8: e426 sd s1,8(sp) 1ea: e04a sd s2,0(sp) 1ec: 1000 addi s0,sp,32 1ee: 892e mv s2,a1 int fd; int r; fd = open(n, O_RDONLY); 1f0: 4581 li a1,0 1f2: 00000097 auipc ra,0x0 1f6: 176080e7 jalr 374(ra) # 368 <open> if(fd < 0) 1fa: 02054563 bltz a0,224 <stat+0x42> 1fe: 84aa mv s1,a0 return -1; r = fstat(fd, st); 200: 85ca mv a1,s2 202: 00000097 auipc ra,0x0 206: 17e080e7 jalr 382(ra) # 380 <fstat> 20a: 892a mv s2,a0 close(fd); 20c: 8526 mv a0,s1 20e: 00000097 auipc ra,0x0 212: 142080e7 jalr 322(ra) # 350 <close> return r; } 216: 854a mv a0,s2 218: 60e2 ld ra,24(sp) 21a: 6442 ld s0,16(sp) 21c: 64a2 ld s1,8(sp) 21e: 6902 ld s2,0(sp) 220: 6105 addi sp,sp,32 222: 8082 ret return -1; 224: 597d li s2,-1 226: bfc5 j 216 <stat+0x34> 0000000000000228 <atoi>: int atoi(const char *s) { 228: 1141 addi sp,sp,-16 22a: e422 sd s0,8(sp) 22c: 0800 addi s0,sp,16 int n; n = 0; while('0' <= *s && *s <= '9') 22e: 00054603 lbu a2,0(a0) 232: fd06079b addiw a5,a2,-48 236: 0ff7f793 andi a5,a5,255 23a: 4725 li a4,9 23c: 02f76963 bltu a4,a5,26e <atoi+0x46> 240: 86aa mv a3,a0 n = 0; 242: 4501 li a0,0 while('0' <= *s && *s <= '9') 244: 45a5 li a1,9 n = n*10 + *s++ - '0'; 246: 0685 addi a3,a3,1 248: 0025179b slliw a5,a0,0x2 24c: 9fa9 addw a5,a5,a0 24e: 0017979b slliw a5,a5,0x1 252: 9fb1 addw a5,a5,a2 254: fd07851b addiw a0,a5,-48 while('0' <= *s && *s <= '9') 258: 0006c603 lbu a2,0(a3) 25c: fd06071b addiw a4,a2,-48 260: 0ff77713 andi a4,a4,255 264: fee5f1e3 bgeu a1,a4,246 <atoi+0x1e> return n; } 268: 6422 ld s0,8(sp) 26a: 0141 addi sp,sp,16 26c: 8082 ret n = 0; 26e: 4501 li a0,0 270: bfe5 j 268 <atoi+0x40> 0000000000000272 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 272: 1141 addi sp,sp,-16 274: e422 sd s0,8(sp) 276: 0800 addi s0,sp,16 char *dst; const char *src; dst = vdst; src = vsrc; if (src > dst) { 278: 02b57663 bgeu a0,a1,2a4 <memmove+0x32> while(n-- > 0) 27c: 02c05163 blez a2,29e <memmove+0x2c> 280: fff6079b addiw a5,a2,-1 284: 1782 slli a5,a5,0x20 286: 9381 srli a5,a5,0x20 288: 0785 addi a5,a5,1 28a: 97aa add a5,a5,a0 dst = vdst; 28c: 872a mv a4,a0 *dst++ = *src++; 28e: 0585 addi a1,a1,1 290: 0705 addi a4,a4,1 292: fff5c683 lbu a3,-1(a1) 296: fed70fa3 sb a3,-1(a4) while(n-- > 0) 29a: fee79ae3 bne a5,a4,28e <memmove+0x1c> src += n; while(n-- > 0) *--dst = *--src; } return vdst; } 29e: 6422 ld s0,8(sp) 2a0: 0141 addi sp,sp,16 2a2: 8082 ret dst += n; 2a4: 00c50733 add a4,a0,a2 src += n; 2a8: 95b2 add a1,a1,a2 while(n-- > 0) 2aa: fec05ae3 blez a2,29e <memmove+0x2c> 2ae: fff6079b addiw a5,a2,-1 2b2: 1782 slli a5,a5,0x20 2b4: 9381 srli a5,a5,0x20 2b6: fff7c793 not a5,a5 2ba: 97ba add a5,a5,a4 *--dst = *--src; 2bc: 15fd addi a1,a1,-1 2be: 177d addi a4,a4,-1 2c0: 0005c683 lbu a3,0(a1) 2c4: 00d70023 sb a3,0(a4) while(n-- > 0) 2c8: fee79ae3 bne a5,a4,2bc <memmove+0x4a> 2cc: bfc9 j 29e <memmove+0x2c> 00000000000002ce <memcmp>: int memcmp(const void *s1, const void *s2, uint n) { 2ce: 1141 addi sp,sp,-16 2d0: e422 sd s0,8(sp) 2d2: 0800 addi s0,sp,16 const char *p1 = s1, *p2 = s2; while (n-- > 0) { 2d4: ca05 beqz a2,304 <memcmp+0x36> 2d6: fff6069b addiw a3,a2,-1 2da: 1682 slli a3,a3,0x20 2dc: 9281 srli a3,a3,0x20 2de: 0685 addi a3,a3,1 2e0: 96aa add a3,a3,a0 if (*p1 != *p2) { 2e2: 00054783 lbu a5,0(a0) 2e6: 0005c703 lbu a4,0(a1) 2ea: 00e79863 bne a5,a4,2fa <memcmp+0x2c> return *p1 - *p2; } p1++; 2ee: 0505 addi a0,a0,1 p2++; 2f0: 0585 addi a1,a1,1 while (n-- > 0) { 2f2: fed518e3 bne a0,a3,2e2 <memcmp+0x14> } return 0; 2f6: 4501 li a0,0 2f8: a019 j 2fe <memcmp+0x30> return *p1 - *p2; 2fa: 40e7853b subw a0,a5,a4 } 2fe: 6422 ld s0,8(sp) 300: 0141 addi sp,sp,16 302: 8082 ret return 0; 304: 4501 li a0,0 306: bfe5 j 2fe <memcmp+0x30> 0000000000000308 <memcpy>: void * memcpy(void *dst, const void *src, uint n) { 308: 1141 addi sp,sp,-16 30a: e406 sd ra,8(sp) 30c: e022 sd s0,0(sp) 30e: 0800 addi s0,sp,16 return memmove(dst, src, n); 310: 00000097 auipc ra,0x0 314: f62080e7 jalr -158(ra) # 272 <memmove> } 318: 60a2 ld ra,8(sp) 31a: 6402 ld s0,0(sp) 31c: 0141 addi sp,sp,16 31e: 8082 ret 0000000000000320 <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 320: 4885 li a7,1 ecall 322: 00000073 ecall ret 326: 8082 ret 0000000000000328 <exit>: .global exit exit: li a7, SYS_exit 328: 4889 li a7,2 ecall 32a: 00000073 ecall ret 32e: 8082 ret 0000000000000330 <wait>: .global wait wait: li a7, SYS_wait 330: 488d li a7,3 ecall 332: 00000073 ecall ret 336: 8082 ret 0000000000000338 <pipe>: .global pipe pipe: li a7, SYS_pipe 338: 4891 li a7,4 ecall 33a: 00000073 ecall ret 33e: 8082 ret 0000000000000340 <read>: .global read read: li a7, SYS_read 340: 4895 li a7,5 ecall 342: 00000073 ecall ret 346: 8082 ret 0000000000000348 <write>: .global write write: li a7, SYS_write 348: 48c1 li a7,16 ecall 34a: 00000073 ecall ret 34e: 8082 ret 0000000000000350 <close>: .global close close: li a7, SYS_close 350: 48d5 li a7,21 ecall 352: 00000073 ecall ret 356: 8082 ret 0000000000000358 <kill>: .global kill kill: li a7, SYS_kill 358: 4899 li a7,6 ecall 35a: 00000073 ecall ret 35e: 8082 ret 0000000000000360 <exec>: .global exec exec: li a7, SYS_exec 360: 489d li a7,7 ecall 362: 00000073 ecall ret 366: 8082 ret 0000000000000368 <open>: .global open open: li a7, SYS_open 368: 48bd li a7,15 ecall 36a: 00000073 ecall ret 36e: 8082 ret 0000000000000370 <mknod>: .global mknod mknod: li a7, SYS_mknod 370: 48c5 li a7,17 ecall 372: 00000073 ecall ret 376: 8082 ret 0000000000000378 <unlink>: .global unlink unlink: li a7, SYS_unlink 378: 48c9 li a7,18 ecall 37a: 00000073 ecall ret 37e: 8082 ret 0000000000000380 <fstat>: .global fstat fstat: li a7, SYS_fstat 380: 48a1 li a7,8 ecall 382: 00000073 ecall ret 386: 8082 ret 0000000000000388 <link>: .global link link: li a7, SYS_link 388: 48cd li a7,19 ecall 38a: 00000073 ecall ret 38e: 8082 ret 0000000000000390 <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 390: 48d1 li a7,20 ecall 392: 00000073 ecall ret 396: 8082 ret 0000000000000398 <chdir>: .global chdir chdir: li a7, SYS_chdir 398: 48a5 li a7,9 ecall 39a: 00000073 ecall ret 39e: 8082 ret 00000000000003a0 <dup>: .global dup dup: li a7, SYS_dup 3a0: 48a9 li a7,10 ecall 3a2: 00000073 ecall ret 3a6: 8082 ret 00000000000003a8 <getpid>: .global getpid getpid: li a7, SYS_getpid 3a8: 48ad li a7,11 ecall 3aa: 00000073 ecall ret 3ae: 8082 ret 00000000000003b0 <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 3b0: 48b1 li a7,12 ecall 3b2: 00000073 ecall ret 3b6: 8082 ret 00000000000003b8 <sleep>: .global sleep sleep: li a7, SYS_sleep 3b8: 48b5 li a7,13 ecall 3ba: 00000073 ecall ret 3be: 8082 ret 00000000000003c0 <uptime>: .global uptime uptime: li a7, SYS_uptime 3c0: 48b9 li a7,14 ecall 3c2: 00000073 ecall ret 3c6: 8082 ret 00000000000003c8 <trace>: .global trace trace: li a7, SYS_trace 3c8: 48d9 li a7,22 ecall 3ca: 00000073 ecall ret 3ce: 8082 ret 00000000000003d0 <set_priority>: .global set_priority set_priority: li a7, SYS_set_priority 3d0: 48dd li a7,23 ecall 3d2: 00000073 ecall ret 3d6: 8082 ret 00000000000003d8 <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 3d8: 1101 addi sp,sp,-32 3da: ec06 sd ra,24(sp) 3dc: e822 sd s0,16(sp) 3de: 1000 addi s0,sp,32 3e0: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 3e4: 4605 li a2,1 3e6: fef40593 addi a1,s0,-17 3ea: 00000097 auipc ra,0x0 3ee: f5e080e7 jalr -162(ra) # 348 <write> } 3f2: 60e2 ld ra,24(sp) 3f4: 6442 ld s0,16(sp) 3f6: 6105 addi sp,sp,32 3f8: 8082 ret 00000000000003fa <printint>: static void printint(int fd, int xx, int base, int sgn) { 3fa: 7139 addi sp,sp,-64 3fc: fc06 sd ra,56(sp) 3fe: f822 sd s0,48(sp) 400: f426 sd s1,40(sp) 402: f04a sd s2,32(sp) 404: ec4e sd s3,24(sp) 406: 0080 addi s0,sp,64 408: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 40a: c299 beqz a3,410 <printint+0x16> 40c: 0805c863 bltz a1,49c <printint+0xa2> neg = 1; x = -xx; } else { x = xx; 410: 2581 sext.w a1,a1 neg = 0; 412: 4881 li a7,0 414: fc040693 addi a3,s0,-64 } i = 0; 418: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 41a: 2601 sext.w a2,a2 41c: 00000517 auipc a0,0x0 420: 47c50513 addi a0,a0,1148 # 898 <digits> 424: 883a mv a6,a4 426: 2705 addiw a4,a4,1 428: 02c5f7bb remuw a5,a1,a2 42c: 1782 slli a5,a5,0x20 42e: 9381 srli a5,a5,0x20 430: 97aa add a5,a5,a0 432: 0007c783 lbu a5,0(a5) 436: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 43a: 0005879b sext.w a5,a1 43e: 02c5d5bb divuw a1,a1,a2 442: 0685 addi a3,a3,1 444: fec7f0e3 bgeu a5,a2,424 <printint+0x2a> if(neg) 448: 00088b63 beqz a7,45e <printint+0x64> buf[i++] = '-'; 44c: fd040793 addi a5,s0,-48 450: 973e add a4,a4,a5 452: 02d00793 li a5,45 456: fef70823 sb a5,-16(a4) 45a: 0028071b addiw a4,a6,2 while(--i >= 0) 45e: 02e05863 blez a4,48e <printint+0x94> 462: fc040793 addi a5,s0,-64 466: 00e78933 add s2,a5,a4 46a: fff78993 addi s3,a5,-1 46e: 99ba add s3,s3,a4 470: 377d addiw a4,a4,-1 472: 1702 slli a4,a4,0x20 474: 9301 srli a4,a4,0x20 476: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 47a: fff94583 lbu a1,-1(s2) 47e: 8526 mv a0,s1 480: 00000097 auipc ra,0x0 484: f58080e7 jalr -168(ra) # 3d8 <putc> while(--i >= 0) 488: 197d addi s2,s2,-1 48a: ff3918e3 bne s2,s3,47a <printint+0x80> } 48e: 70e2 ld ra,56(sp) 490: 7442 ld s0,48(sp) 492: 74a2 ld s1,40(sp) 494: 7902 ld s2,32(sp) 496: 69e2 ld s3,24(sp) 498: 6121 addi sp,sp,64 49a: 8082 ret x = -xx; 49c: 40b005bb negw a1,a1 neg = 1; 4a0: 4885 li a7,1 x = -xx; 4a2: bf8d j 414 <printint+0x1a> 00000000000004a4 <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 4a4: 7119 addi sp,sp,-128 4a6: fc86 sd ra,120(sp) 4a8: f8a2 sd s0,112(sp) 4aa: f4a6 sd s1,104(sp) 4ac: f0ca sd s2,96(sp) 4ae: ecce sd s3,88(sp) 4b0: e8d2 sd s4,80(sp) 4b2: e4d6 sd s5,72(sp) 4b4: e0da sd s6,64(sp) 4b6: fc5e sd s7,56(sp) 4b8: f862 sd s8,48(sp) 4ba: f466 sd s9,40(sp) 4bc: f06a sd s10,32(sp) 4be: ec6e sd s11,24(sp) 4c0: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 4c2: 0005c903 lbu s2,0(a1) 4c6: 18090f63 beqz s2,664 <vprintf+0x1c0> 4ca: 8aaa mv s5,a0 4cc: 8b32 mv s6,a2 4ce: 00158493 addi s1,a1,1 state = 0; 4d2: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 4d4: 02500a13 li s4,37 if(c == 'd'){ 4d8: 06400c13 li s8,100 printint(fd, va_arg(ap, int), 10, 1); } else if(c == 'l') { 4dc: 06c00c93 li s9,108 printint(fd, va_arg(ap, uint64), 10, 0); } else if(c == 'x') { 4e0: 07800d13 li s10,120 printint(fd, va_arg(ap, int), 16, 0); } else if(c == 'p') { 4e4: 07000d93 li s11,112 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 4e8: 00000b97 auipc s7,0x0 4ec: 3b0b8b93 addi s7,s7,944 # 898 <digits> 4f0: a839 j 50e <vprintf+0x6a> putc(fd, c); 4f2: 85ca mv a1,s2 4f4: 8556 mv a0,s5 4f6: 00000097 auipc ra,0x0 4fa: ee2080e7 jalr -286(ra) # 3d8 <putc> 4fe: a019 j 504 <vprintf+0x60> } else if(state == '%'){ 500: 01498f63 beq s3,s4,51e <vprintf+0x7a> for(i = 0; fmt[i]; i++){ 504: 0485 addi s1,s1,1 506: fff4c903 lbu s2,-1(s1) 50a: 14090d63 beqz s2,664 <vprintf+0x1c0> c = fmt[i] & 0xff; 50e: 0009079b sext.w a5,s2 if(state == 0){ 512: fe0997e3 bnez s3,500 <vprintf+0x5c> if(c == '%'){ 516: fd479ee3 bne a5,s4,4f2 <vprintf+0x4e> state = '%'; 51a: 89be mv s3,a5 51c: b7e5 j 504 <vprintf+0x60> if(c == 'd'){ 51e: 05878063 beq a5,s8,55e <vprintf+0xba> } else if(c == 'l') { 522: 05978c63 beq a5,s9,57a <vprintf+0xd6> } else if(c == 'x') { 526: 07a78863 beq a5,s10,596 <vprintf+0xf2> } else if(c == 'p') { 52a: 09b78463 beq a5,s11,5b2 <vprintf+0x10e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ 52e: 07300713 li a4,115 532: 0ce78663 beq a5,a4,5fe <vprintf+0x15a> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 536: 06300713 li a4,99 53a: 0ee78e63 beq a5,a4,636 <vprintf+0x192> putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 53e: 11478863 beq a5,s4,64e <vprintf+0x1aa> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 542: 85d2 mv a1,s4 544: 8556 mv a0,s5 546: 00000097 auipc ra,0x0 54a: e92080e7 jalr -366(ra) # 3d8 <putc> putc(fd, c); 54e: 85ca mv a1,s2 550: 8556 mv a0,s5 552: 00000097 auipc ra,0x0 556: e86080e7 jalr -378(ra) # 3d8 <putc> } state = 0; 55a: 4981 li s3,0 55c: b765 j 504 <vprintf+0x60> printint(fd, va_arg(ap, int), 10, 1); 55e: 008b0913 addi s2,s6,8 562: 4685 li a3,1 564: 4629 li a2,10 566: 000b2583 lw a1,0(s6) 56a: 8556 mv a0,s5 56c: 00000097 auipc ra,0x0 570: e8e080e7 jalr -370(ra) # 3fa <printint> 574: 8b4a mv s6,s2 state = 0; 576: 4981 li s3,0 578: b771 j 504 <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 57a: 008b0913 addi s2,s6,8 57e: 4681 li a3,0 580: 4629 li a2,10 582: 000b2583 lw a1,0(s6) 586: 8556 mv a0,s5 588: 00000097 auipc ra,0x0 58c: e72080e7 jalr -398(ra) # 3fa <printint> 590: 8b4a mv s6,s2 state = 0; 592: 4981 li s3,0 594: bf85 j 504 <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 596: 008b0913 addi s2,s6,8 59a: 4681 li a3,0 59c: 4641 li a2,16 59e: 000b2583 lw a1,0(s6) 5a2: 8556 mv a0,s5 5a4: 00000097 auipc ra,0x0 5a8: e56080e7 jalr -426(ra) # 3fa <printint> 5ac: 8b4a mv s6,s2 state = 0; 5ae: 4981 li s3,0 5b0: bf91 j 504 <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 5b2: 008b0793 addi a5,s6,8 5b6: f8f43423 sd a5,-120(s0) 5ba: 000b3983 ld s3,0(s6) putc(fd, '0'); 5be: 03000593 li a1,48 5c2: 8556 mv a0,s5 5c4: 00000097 auipc ra,0x0 5c8: e14080e7 jalr -492(ra) # 3d8 <putc> putc(fd, 'x'); 5cc: 85ea mv a1,s10 5ce: 8556 mv a0,s5 5d0: 00000097 auipc ra,0x0 5d4: e08080e7 jalr -504(ra) # 3d8 <putc> 5d8: 4941 li s2,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 5da: 03c9d793 srli a5,s3,0x3c 5de: 97de add a5,a5,s7 5e0: 0007c583 lbu a1,0(a5) 5e4: 8556 mv a0,s5 5e6: 00000097 auipc ra,0x0 5ea: df2080e7 jalr -526(ra) # 3d8 <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) 5ee: 0992 slli s3,s3,0x4 5f0: 397d addiw s2,s2,-1 5f2: fe0914e3 bnez s2,5da <vprintf+0x136> printptr(fd, va_arg(ap, uint64)); 5f6: f8843b03 ld s6,-120(s0) state = 0; 5fa: 4981 li s3,0 5fc: b721 j 504 <vprintf+0x60> s = va_arg(ap, char*); 5fe: 008b0993 addi s3,s6,8 602: 000b3903 ld s2,0(s6) if(s == 0) 606: 02090163 beqz s2,628 <vprintf+0x184> while(*s != 0){ 60a: 00094583 lbu a1,0(s2) 60e: c9a1 beqz a1,65e <vprintf+0x1ba> putc(fd, *s); 610: 8556 mv a0,s5 612: 00000097 auipc ra,0x0 616: dc6080e7 jalr -570(ra) # 3d8 <putc> s++; 61a: 0905 addi s2,s2,1 while(*s != 0){ 61c: 00094583 lbu a1,0(s2) 620: f9e5 bnez a1,610 <vprintf+0x16c> s = va_arg(ap, char*); 622: 8b4e mv s6,s3 state = 0; 624: 4981 li s3,0 626: bdf9 j 504 <vprintf+0x60> s = "(null)"; 628: 00000917 auipc s2,0x0 62c: 26890913 addi s2,s2,616 # 890 <malloc+0x122> while(*s != 0){ 630: 02800593 li a1,40 634: bff1 j 610 <vprintf+0x16c> putc(fd, va_arg(ap, uint)); 636: 008b0913 addi s2,s6,8 63a: 000b4583 lbu a1,0(s6) 63e: 8556 mv a0,s5 640: 00000097 auipc ra,0x0 644: d98080e7 jalr -616(ra) # 3d8 <putc> 648: 8b4a mv s6,s2 state = 0; 64a: 4981 li s3,0 64c: bd65 j 504 <vprintf+0x60> putc(fd, c); 64e: 85d2 mv a1,s4 650: 8556 mv a0,s5 652: 00000097 auipc ra,0x0 656: d86080e7 jalr -634(ra) # 3d8 <putc> state = 0; 65a: 4981 li s3,0 65c: b565 j 504 <vprintf+0x60> s = va_arg(ap, char*); 65e: 8b4e mv s6,s3 state = 0; 660: 4981 li s3,0 662: b54d j 504 <vprintf+0x60> } } } 664: 70e6 ld ra,120(sp) 666: 7446 ld s0,112(sp) 668: 74a6 ld s1,104(sp) 66a: 7906 ld s2,96(sp) 66c: 69e6 ld s3,88(sp) 66e: 6a46 ld s4,80(sp) 670: 6aa6 ld s5,72(sp) 672: 6b06 ld s6,64(sp) 674: 7be2 ld s7,56(sp) 676: 7c42 ld s8,48(sp) 678: 7ca2 ld s9,40(sp) 67a: 7d02 ld s10,32(sp) 67c: 6de2 ld s11,24(sp) 67e: 6109 addi sp,sp,128 680: 8082 ret 0000000000000682 <fprintf>: void fprintf(int fd, const char *fmt, ...) { 682: 715d addi sp,sp,-80 684: ec06 sd ra,24(sp) 686: e822 sd s0,16(sp) 688: 1000 addi s0,sp,32 68a: e010 sd a2,0(s0) 68c: e414 sd a3,8(s0) 68e: e818 sd a4,16(s0) 690: ec1c sd a5,24(s0) 692: 03043023 sd a6,32(s0) 696: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); 69a: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); 69e: 8622 mv a2,s0 6a0: 00000097 auipc ra,0x0 6a4: e04080e7 jalr -508(ra) # 4a4 <vprintf> } 6a8: 60e2 ld ra,24(sp) 6aa: 6442 ld s0,16(sp) 6ac: 6161 addi sp,sp,80 6ae: 8082 ret 00000000000006b0 <printf>: void printf(const char *fmt, ...) { 6b0: 711d addi sp,sp,-96 6b2: ec06 sd ra,24(sp) 6b4: e822 sd s0,16(sp) 6b6: 1000 addi s0,sp,32 6b8: e40c sd a1,8(s0) 6ba: e810 sd a2,16(s0) 6bc: ec14 sd a3,24(s0) 6be: f018 sd a4,32(s0) 6c0: f41c sd a5,40(s0) 6c2: 03043823 sd a6,48(s0) 6c6: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); 6ca: 00840613 addi a2,s0,8 6ce: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); 6d2: 85aa mv a1,a0 6d4: 4505 li a0,1 6d6: 00000097 auipc ra,0x0 6da: dce080e7 jalr -562(ra) # 4a4 <vprintf> } 6de: 60e2 ld ra,24(sp) 6e0: 6442 ld s0,16(sp) 6e2: 6125 addi sp,sp,96 6e4: 8082 ret 00000000000006e6 <free>: static Header base; static Header *freep; void free(void *ap) { 6e6: 1141 addi sp,sp,-16 6e8: e422 sd s0,8(sp) 6ea: 0800 addi s0,sp,16 Header *bp, *p; bp = (Header*)ap - 1; 6ec: ff050693 addi a3,a0,-16 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6f0: 00000797 auipc a5,0x0 6f4: 1c07b783 ld a5,448(a5) # 8b0 <freep> 6f8: a805 j 728 <free+0x42> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 6fa: 4618 lw a4,8(a2) 6fc: 9db9 addw a1,a1,a4 6fe: feb52c23 sw a1,-8(a0) bp->s.ptr = p->s.ptr->s.ptr; 702: 6398 ld a4,0(a5) 704: 6318 ld a4,0(a4) 706: fee53823 sd a4,-16(a0) 70a: a091 j 74e <free+0x68> } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 70c: ff852703 lw a4,-8(a0) 710: 9e39 addw a2,a2,a4 712: c790 sw a2,8(a5) p->s.ptr = bp->s.ptr; 714: ff053703 ld a4,-16(a0) 718: e398 sd a4,0(a5) 71a: a099 j 760 <free+0x7a> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 71c: 6398 ld a4,0(a5) 71e: 00e7e463 bltu a5,a4,726 <free+0x40> 722: 00e6ea63 bltu a3,a4,736 <free+0x50> { 726: 87ba mv a5,a4 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 728: fed7fae3 bgeu a5,a3,71c <free+0x36> 72c: 6398 ld a4,0(a5) 72e: 00e6e463 bltu a3,a4,736 <free+0x50> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 732: fee7eae3 bltu a5,a4,726 <free+0x40> if(bp + bp->s.size == p->s.ptr){ 736: ff852583 lw a1,-8(a0) 73a: 6390 ld a2,0(a5) 73c: 02059713 slli a4,a1,0x20 740: 9301 srli a4,a4,0x20 742: 0712 slli a4,a4,0x4 744: 9736 add a4,a4,a3 746: fae60ae3 beq a2,a4,6fa <free+0x14> bp->s.ptr = p->s.ptr; 74a: fec53823 sd a2,-16(a0) if(p + p->s.size == bp){ 74e: 4790 lw a2,8(a5) 750: 02061713 slli a4,a2,0x20 754: 9301 srli a4,a4,0x20 756: 0712 slli a4,a4,0x4 758: 973e add a4,a4,a5 75a: fae689e3 beq a3,a4,70c <free+0x26> } else p->s.ptr = bp; 75e: e394 sd a3,0(a5) freep = p; 760: 00000717 auipc a4,0x0 764: 14f73823 sd a5,336(a4) # 8b0 <freep> } 768: 6422 ld s0,8(sp) 76a: 0141 addi sp,sp,16 76c: 8082 ret 000000000000076e <malloc>: return freep; } void* malloc(uint nbytes) { 76e: 7139 addi sp,sp,-64 770: fc06 sd ra,56(sp) 772: f822 sd s0,48(sp) 774: f426 sd s1,40(sp) 776: f04a sd s2,32(sp) 778: ec4e sd s3,24(sp) 77a: e852 sd s4,16(sp) 77c: e456 sd s5,8(sp) 77e: e05a sd s6,0(sp) 780: 0080 addi s0,sp,64 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 782: 02051493 slli s1,a0,0x20 786: 9081 srli s1,s1,0x20 788: 04bd addi s1,s1,15 78a: 8091 srli s1,s1,0x4 78c: 0014899b addiw s3,s1,1 790: 0485 addi s1,s1,1 if((prevp = freep) == 0){ 792: 00000517 auipc a0,0x0 796: 11e53503 ld a0,286(a0) # 8b0 <freep> 79a: c515 beqz a0,7c6 <malloc+0x58> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 79c: 611c ld a5,0(a0) if(p->s.size >= nunits){ 79e: 4798 lw a4,8(a5) 7a0: 02977f63 bgeu a4,s1,7de <malloc+0x70> 7a4: 8a4e mv s4,s3 7a6: 0009871b sext.w a4,s3 7aa: 6685 lui a3,0x1 7ac: 00d77363 bgeu a4,a3,7b2 <malloc+0x44> 7b0: 6a05 lui s4,0x1 7b2: 000a0b1b sext.w s6,s4 p = sbrk(nu * sizeof(Header)); 7b6: 004a1a1b slliw s4,s4,0x4 p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 7ba: 00000917 auipc s2,0x0 7be: 0f690913 addi s2,s2,246 # 8b0 <freep> if(p == (char*)-1) 7c2: 5afd li s5,-1 7c4: a88d j 836 <malloc+0xc8> base.s.ptr = freep = prevp = &base; 7c6: 00000797 auipc a5,0x0 7ca: 0f278793 addi a5,a5,242 # 8b8 <base> 7ce: 00000717 auipc a4,0x0 7d2: 0ef73123 sd a5,226(a4) # 8b0 <freep> 7d6: e39c sd a5,0(a5) base.s.size = 0; 7d8: 0007a423 sw zero,8(a5) if(p->s.size >= nunits){ 7dc: b7e1 j 7a4 <malloc+0x36> if(p->s.size == nunits) 7de: 02e48b63 beq s1,a4,814 <malloc+0xa6> p->s.size -= nunits; 7e2: 4137073b subw a4,a4,s3 7e6: c798 sw a4,8(a5) p += p->s.size; 7e8: 1702 slli a4,a4,0x20 7ea: 9301 srli a4,a4,0x20 7ec: 0712 slli a4,a4,0x4 7ee: 97ba add a5,a5,a4 p->s.size = nunits; 7f0: 0137a423 sw s3,8(a5) freep = prevp; 7f4: 00000717 auipc a4,0x0 7f8: 0aa73e23 sd a0,188(a4) # 8b0 <freep> return (void*)(p + 1); 7fc: 01078513 addi a0,a5,16 if((p = morecore(nunits)) == 0) return 0; } } 800: 70e2 ld ra,56(sp) 802: 7442 ld s0,48(sp) 804: 74a2 ld s1,40(sp) 806: 7902 ld s2,32(sp) 808: 69e2 ld s3,24(sp) 80a: 6a42 ld s4,16(sp) 80c: 6aa2 ld s5,8(sp) 80e: 6b02 ld s6,0(sp) 810: 6121 addi sp,sp,64 812: 8082 ret prevp->s.ptr = p->s.ptr; 814: 6398 ld a4,0(a5) 816: e118 sd a4,0(a0) 818: bff1 j 7f4 <malloc+0x86> hp->s.size = nu; 81a: 01652423 sw s6,8(a0) free((void*)(hp + 1)); 81e: 0541 addi a0,a0,16 820: 00000097 auipc ra,0x0 824: ec6080e7 jalr -314(ra) # 6e6 <free> return freep; 828: 00093503 ld a0,0(s2) if((p = morecore(nunits)) == 0) 82c: d971 beqz a0,800 <malloc+0x92> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 82e: 611c ld a5,0(a0) if(p->s.size >= nunits){ 830: 4798 lw a4,8(a5) 832: fa9776e3 bgeu a4,s1,7de <malloc+0x70> if(p == freep) 836: 00093703 ld a4,0(s2) 83a: 853e mv a0,a5 83c: fef719e3 bne a4,a5,82e <malloc+0xc0> p = sbrk(nu * sizeof(Header)); 840: 8552 mv a0,s4 842: 00000097 auipc ra,0x0 846: b6e080e7 jalr -1170(ra) # 3b0 <sbrk> if(p == (char*)-1) 84a: fd5518e3 bne a0,s5,81a <malloc+0xac> return 0; 84e: 4501 li a0,0 850: bf45 j 800 <malloc+0x92>
41,421
Assembly
asm
29.671203
61
0.460877
f7025493f1e84f8debf1ece60d285f1b15849e2c
Parth0248/Enhancing-xv6-OS
[ "MIT-0" ]
1
_test_h2o: file format elf32-i386 Disassembly of section .text: 00000000 <main>: void hydrogen(void *arg_ptr); void oxygen(void *arg_ptr); int main(int argc, char *argv[]){ 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 sub $0x20,%esp init_semaphore(&h, 0); 9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 10: 00 11: c7 04 24 f4 0e 00 00 movl $0xef4,(%esp) 18: e8 db 0c 00 00 call cf8 <init_semaphore> init_semaphore(&o, 0); 1d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 24: 00 25: c7 04 24 cc 0e 00 00 movl $0xecc,(%esp) 2c: e8 c7 0c 00 00 call cf8 <init_semaphore> init_semaphore(&l, 1); 31: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) 38: 00 39: c7 04 24 e0 0e 00 00 movl $0xee0,(%esp) 40: e8 b3 0c 00 00 call cf8 <init_semaphore> int pid = fork(); 45: e8 f6 04 00 00 call 540 <fork> 4a: 89 44 24 18 mov %eax,0x18(%esp) if (pid == 0) 4e: 83 7c 24 18 00 cmpl $0x0,0x18(%esp) 53: 0f 85 78 01 00 00 jne 1d1 <main+0x1d1> { //water molecule 1 void *tid = thread_create(hydrogen,(void *)0); 59: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 60: 00 61: c7 04 24 10 02 00 00 movl $0x210,(%esp) 68: e8 a5 0a 00 00 call b12 <thread_create> 6d: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ 71: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) 76: 75 19 jne 91 <main+0x91> printf(1,"thread_create fails\n"); 78: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) 7f: 00 80: c7 04 24 01 00 00 00 movl $0x1,(%esp) 87: e8 5d 06 00 00 call 6e9 <printf> exit(); 8c: e8 b7 04 00 00 call 548 <exit> } tid = thread_create(hydrogen,(void *)0); 91: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 98: 00 99: c7 04 24 10 02 00 00 movl $0x210,(%esp) a0: e8 6d 0a 00 00 call b12 <thread_create> a5: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ a9: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) ae: 75 19 jne c9 <main+0xc9> printf(1,"thread_create fails\n"); b0: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) b7: 00 b8: c7 04 24 01 00 00 00 movl $0x1,(%esp) bf: e8 25 06 00 00 call 6e9 <printf> exit(); c4: e8 7f 04 00 00 call 548 <exit> } tid = thread_create(oxygen,(void *)0); c9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) d0: 00 d1: c7 04 24 6f 02 00 00 movl $0x26f,(%esp) d8: e8 35 0a 00 00 call b12 <thread_create> dd: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ e1: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) e6: 75 19 jne 101 <main+0x101> printf(1,"thread_create fails\n"); e8: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) ef: 00 f0: c7 04 24 01 00 00 00 movl $0x1,(%esp) f7: e8 ed 05 00 00 call 6e9 <printf> exit(); fc: e8 47 04 00 00 call 548 <exit> } //water molecule 2 tid = thread_create(oxygen,(void *)0); 101: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 108: 00 109: c7 04 24 6f 02 00 00 movl $0x26f,(%esp) 110: e8 fd 09 00 00 call b12 <thread_create> 115: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ 119: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) 11e: 75 19 jne 139 <main+0x139> printf(1,"thread_create fails\n"); 120: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) 127: 00 128: c7 04 24 01 00 00 00 movl $0x1,(%esp) 12f: e8 b5 05 00 00 call 6e9 <printf> exit(); 134: e8 0f 04 00 00 call 548 <exit> } tid = thread_create(hydrogen,(void *)0); 139: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 140: 00 141: c7 04 24 10 02 00 00 movl $0x210,(%esp) 148: e8 c5 09 00 00 call b12 <thread_create> 14d: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ 151: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) 156: 75 19 jne 171 <main+0x171> printf(1,"thread_create fails\n"); 158: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) 15f: 00 160: c7 04 24 01 00 00 00 movl $0x1,(%esp) 167: e8 7d 05 00 00 call 6e9 <printf> exit(); 16c: e8 d7 03 00 00 call 548 <exit> } tid = thread_create(hydrogen,(void *)0); 171: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 178: 00 179: c7 04 24 10 02 00 00 movl $0x210,(%esp) 180: e8 8d 09 00 00 call b12 <thread_create> 185: 89 44 24 1c mov %eax,0x1c(%esp) if(tid == 0){ 189: 83 7c 24 1c 00 cmpl $0x0,0x1c(%esp) 18e: 75 19 jne 1a9 <main+0x1a9> printf(1,"thread_create fails\n"); 190: c7 44 24 04 ea 0d 00 movl $0xdea,0x4(%esp) 197: 00 198: c7 04 24 01 00 00 00 movl $0x1,(%esp) 19f: e8 45 05 00 00 call 6e9 <printf> exit(); 1a4: e8 9f 03 00 00 call 548 <exit> } while(wait() >= 0); 1a9: e8 a2 03 00 00 call 550 <wait> 1ae: 85 c0 test %eax,%eax 1b0: 79 f7 jns 1a9 <main+0x1a9> //printf(1, "done \n"); printf(1, "child water = %d \n", water_molecules); 1b2: a1 bc 0e 00 00 mov 0xebc,%eax 1b7: 89 44 24 08 mov %eax,0x8(%esp) 1bb: c7 44 24 04 ff 0d 00 movl $0xdff,0x4(%esp) 1c2: 00 1c3: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1ca: e8 1a 05 00 00 call 6e9 <printf> 1cf: eb 3a jmp 20b <main+0x20b> } else { while(wait() >= 0); 1d1: e8 7a 03 00 00 call 550 <wait> 1d6: 85 c0 test %eax,%eax 1d8: 79 f7 jns 1d1 <main+0x1d1> printf(1, "done \n"); 1da: c7 44 24 04 12 0e 00 movl $0xe12,0x4(%esp) 1e1: 00 1e2: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1e9: e8 fb 04 00 00 call 6e9 <printf> printf(1, "parent water = %d \n", water_molecules); 1ee: a1 bc 0e 00 00 mov 0xebc,%eax 1f3: 89 44 24 08 mov %eax,0x8(%esp) 1f7: c7 44 24 04 19 0e 00 movl $0xe19,0x4(%esp) 1fe: 00 1ff: c7 04 24 01 00 00 00 movl $0x1,(%esp) 206: e8 de 04 00 00 call 6e9 <printf> } exit(); 20b: e8 38 03 00 00 call 548 <exit> 00000210 <hydrogen>: } void hydrogen(void *arg_ptr){ 210: 55 push %ebp 211: 89 e5 mov %esp,%ebp 213: 83 ec 18 sub $0x18,%esp printf(1,"hydrogen!\n"); 216: c7 44 24 04 2d 0e 00 movl $0xe2d,0x4(%esp) 21d: 00 21e: c7 04 24 01 00 00 00 movl $0x1,(%esp) 225: e8 bf 04 00 00 call 6e9 <printf> sem_signal(&h); 22a: c7 04 24 f4 0e 00 00 movl $0xef4,(%esp) 231: e8 5b 0b 00 00 call d91 <sem_signal> printf(1, "acquired h \n"); 236: c7 44 24 04 38 0e 00 movl $0xe38,0x4(%esp) 23d: 00 23e: c7 04 24 01 00 00 00 movl $0x1,(%esp) 245: e8 9f 04 00 00 call 6e9 <printf> sem_acquire(&o); 24a: c7 04 24 cc 0e 00 00 movl $0xecc,(%esp) 251: e8 ce 0a 00 00 call d24 <sem_acquire> printf(1, "acquired o \n"); 256: c7 44 24 04 45 0e 00 movl $0xe45,0x4(%esp) 25d: 00 25e: c7 04 24 01 00 00 00 movl $0x1,(%esp) 265: e8 7f 04 00 00 call 6e9 <printf> texit(); 26a: e8 81 03 00 00 call 5f0 <texit> 0000026f <oxygen>: } void oxygen(void *arg_ptr){ 26f: 55 push %ebp 270: 89 e5 mov %esp,%ebp 272: 83 ec 18 sub $0x18,%esp printf(1,"oxygen!\n"); 275: c7 44 24 04 52 0e 00 movl $0xe52,0x4(%esp) 27c: 00 27d: c7 04 24 01 00 00 00 movl $0x1,(%esp) 284: e8 60 04 00 00 call 6e9 <printf> sem_acquire(&h); 289: c7 04 24 f4 0e 00 00 movl $0xef4,(%esp) 290: e8 8f 0a 00 00 call d24 <sem_acquire> sem_acquire(&h); 295: c7 04 24 f4 0e 00 00 movl $0xef4,(%esp) 29c: e8 83 0a 00 00 call d24 <sem_acquire> sem_signal(&o); 2a1: c7 04 24 cc 0e 00 00 movl $0xecc,(%esp) 2a8: e8 e4 0a 00 00 call d91 <sem_signal> sem_signal(&o); 2ad: c7 04 24 cc 0e 00 00 movl $0xecc,(%esp) 2b4: e8 d8 0a 00 00 call d91 <sem_signal> sem_acquire(&l); 2b9: c7 04 24 e0 0e 00 00 movl $0xee0,(%esp) 2c0: e8 5f 0a 00 00 call d24 <sem_acquire> //printf(1, "ALMOST DONE\n"); water_molecules++; 2c5: a1 bc 0e 00 00 mov 0xebc,%eax 2ca: 83 c0 01 add $0x1,%eax 2cd: a3 bc 0e 00 00 mov %eax,0xebc //printf(1, "WATER = %d\n", water_molecules); sem_signal(&l); 2d2: c7 04 24 e0 0e 00 00 movl $0xee0,(%esp) 2d9: e8 b3 0a 00 00 call d91 <sem_signal> texit(); 2de: e8 0d 03 00 00 call 5f0 <texit> 2e3: 90 nop 000002e4 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 2e4: 55 push %ebp 2e5: 89 e5 mov %esp,%ebp 2e7: 57 push %edi 2e8: 53 push %ebx asm volatile("cld; rep stosb" : 2e9: 8b 4d 08 mov 0x8(%ebp),%ecx 2ec: 8b 55 10 mov 0x10(%ebp),%edx 2ef: 8b 45 0c mov 0xc(%ebp),%eax 2f2: 89 cb mov %ecx,%ebx 2f4: 89 df mov %ebx,%edi 2f6: 89 d1 mov %edx,%ecx 2f8: fc cld 2f9: f3 aa rep stos %al,%es:(%edi) 2fb: 89 ca mov %ecx,%edx 2fd: 89 fb mov %edi,%ebx 2ff: 89 5d 08 mov %ebx,0x8(%ebp) 302: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 305: 5b pop %ebx 306: 5f pop %edi 307: 5d pop %ebp 308: c3 ret 00000309 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 309: 55 push %ebp 30a: 89 e5 mov %esp,%ebp 30c: 83 ec 10 sub $0x10,%esp char *os; os = s; 30f: 8b 45 08 mov 0x8(%ebp),%eax 312: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 315: 8b 45 0c mov 0xc(%ebp),%eax 318: 0f b6 10 movzbl (%eax),%edx 31b: 8b 45 08 mov 0x8(%ebp),%eax 31e: 88 10 mov %dl,(%eax) 320: 8b 45 08 mov 0x8(%ebp),%eax 323: 0f b6 00 movzbl (%eax),%eax 326: 84 c0 test %al,%al 328: 0f 95 c0 setne %al 32b: 83 45 08 01 addl $0x1,0x8(%ebp) 32f: 83 45 0c 01 addl $0x1,0xc(%ebp) 333: 84 c0 test %al,%al 335: 75 de jne 315 <strcpy+0xc> ; return os; 337: 8b 45 fc mov -0x4(%ebp),%eax } 33a: c9 leave 33b: c3 ret 0000033c <strcmp>: int strcmp(const char *p, const char *q) { 33c: 55 push %ebp 33d: 89 e5 mov %esp,%ebp while(*p && *p == *q) 33f: eb 08 jmp 349 <strcmp+0xd> p++, q++; 341: 83 45 08 01 addl $0x1,0x8(%ebp) 345: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 349: 8b 45 08 mov 0x8(%ebp),%eax 34c: 0f b6 00 movzbl (%eax),%eax 34f: 84 c0 test %al,%al 351: 74 10 je 363 <strcmp+0x27> 353: 8b 45 08 mov 0x8(%ebp),%eax 356: 0f b6 10 movzbl (%eax),%edx 359: 8b 45 0c mov 0xc(%ebp),%eax 35c: 0f b6 00 movzbl (%eax),%eax 35f: 38 c2 cmp %al,%dl 361: 74 de je 341 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 363: 8b 45 08 mov 0x8(%ebp),%eax 366: 0f b6 00 movzbl (%eax),%eax 369: 0f b6 d0 movzbl %al,%edx 36c: 8b 45 0c mov 0xc(%ebp),%eax 36f: 0f b6 00 movzbl (%eax),%eax 372: 0f b6 c0 movzbl %al,%eax 375: 89 d1 mov %edx,%ecx 377: 29 c1 sub %eax,%ecx 379: 89 c8 mov %ecx,%eax } 37b: 5d pop %ebp 37c: c3 ret 0000037d <strlen>: uint strlen(char *s) { 37d: 55 push %ebp 37e: 89 e5 mov %esp,%ebp 380: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 383: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 38a: eb 04 jmp 390 <strlen+0x13> 38c: 83 45 fc 01 addl $0x1,-0x4(%ebp) 390: 8b 45 fc mov -0x4(%ebp),%eax 393: 03 45 08 add 0x8(%ebp),%eax 396: 0f b6 00 movzbl (%eax),%eax 399: 84 c0 test %al,%al 39b: 75 ef jne 38c <strlen+0xf> ; return n; 39d: 8b 45 fc mov -0x4(%ebp),%eax } 3a0: c9 leave 3a1: c3 ret 000003a2 <memset>: void* memset(void *dst, int c, uint n) { 3a2: 55 push %ebp 3a3: 89 e5 mov %esp,%ebp 3a5: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 3a8: 8b 45 10 mov 0x10(%ebp),%eax 3ab: 89 44 24 08 mov %eax,0x8(%esp) 3af: 8b 45 0c mov 0xc(%ebp),%eax 3b2: 89 44 24 04 mov %eax,0x4(%esp) 3b6: 8b 45 08 mov 0x8(%ebp),%eax 3b9: 89 04 24 mov %eax,(%esp) 3bc: e8 23 ff ff ff call 2e4 <stosb> return dst; 3c1: 8b 45 08 mov 0x8(%ebp),%eax } 3c4: c9 leave 3c5: c3 ret 000003c6 <strchr>: char* strchr(const char *s, char c) { 3c6: 55 push %ebp 3c7: 89 e5 mov %esp,%ebp 3c9: 83 ec 04 sub $0x4,%esp 3cc: 8b 45 0c mov 0xc(%ebp),%eax 3cf: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 3d2: eb 14 jmp 3e8 <strchr+0x22> if(*s == c) 3d4: 8b 45 08 mov 0x8(%ebp),%eax 3d7: 0f b6 00 movzbl (%eax),%eax 3da: 3a 45 fc cmp -0x4(%ebp),%al 3dd: 75 05 jne 3e4 <strchr+0x1e> return (char*)s; 3df: 8b 45 08 mov 0x8(%ebp),%eax 3e2: eb 13 jmp 3f7 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 3e4: 83 45 08 01 addl $0x1,0x8(%ebp) 3e8: 8b 45 08 mov 0x8(%ebp),%eax 3eb: 0f b6 00 movzbl (%eax),%eax 3ee: 84 c0 test %al,%al 3f0: 75 e2 jne 3d4 <strchr+0xe> if(*s == c) return (char*)s; return 0; 3f2: b8 00 00 00 00 mov $0x0,%eax } 3f7: c9 leave 3f8: c3 ret 000003f9 <gets>: char* gets(char *buf, int max) { 3f9: 55 push %ebp 3fa: 89 e5 mov %esp,%ebp 3fc: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 3ff: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 406: eb 44 jmp 44c <gets+0x53> cc = read(0, &c, 1); 408: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 40f: 00 410: 8d 45 ef lea -0x11(%ebp),%eax 413: 89 44 24 04 mov %eax,0x4(%esp) 417: c7 04 24 00 00 00 00 movl $0x0,(%esp) 41e: e8 3d 01 00 00 call 560 <read> 423: 89 45 f4 mov %eax,-0xc(%ebp) if(cc < 1) 426: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 42a: 7e 2d jle 459 <gets+0x60> break; buf[i++] = c; 42c: 8b 45 f0 mov -0x10(%ebp),%eax 42f: 03 45 08 add 0x8(%ebp),%eax 432: 0f b6 55 ef movzbl -0x11(%ebp),%edx 436: 88 10 mov %dl,(%eax) 438: 83 45 f0 01 addl $0x1,-0x10(%ebp) if(c == '\n' || c == '\r') 43c: 0f b6 45 ef movzbl -0x11(%ebp),%eax 440: 3c 0a cmp $0xa,%al 442: 74 16 je 45a <gets+0x61> 444: 0f b6 45 ef movzbl -0x11(%ebp),%eax 448: 3c 0d cmp $0xd,%al 44a: 74 0e je 45a <gets+0x61> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 44c: 8b 45 f0 mov -0x10(%ebp),%eax 44f: 83 c0 01 add $0x1,%eax 452: 3b 45 0c cmp 0xc(%ebp),%eax 455: 7c b1 jl 408 <gets+0xf> 457: eb 01 jmp 45a <gets+0x61> cc = read(0, &c, 1); if(cc < 1) break; 459: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 45a: 8b 45 f0 mov -0x10(%ebp),%eax 45d: 03 45 08 add 0x8(%ebp),%eax 460: c6 00 00 movb $0x0,(%eax) return buf; 463: 8b 45 08 mov 0x8(%ebp),%eax } 466: c9 leave 467: c3 ret 00000468 <stat>: int stat(char *n, struct stat *st) { 468: 55 push %ebp 469: 89 e5 mov %esp,%ebp 46b: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 46e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 475: 00 476: 8b 45 08 mov 0x8(%ebp),%eax 479: 89 04 24 mov %eax,(%esp) 47c: e8 07 01 00 00 call 588 <open> 481: 89 45 f0 mov %eax,-0x10(%ebp) if(fd < 0) 484: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 488: 79 07 jns 491 <stat+0x29> return -1; 48a: b8 ff ff ff ff mov $0xffffffff,%eax 48f: eb 23 jmp 4b4 <stat+0x4c> r = fstat(fd, st); 491: 8b 45 0c mov 0xc(%ebp),%eax 494: 89 44 24 04 mov %eax,0x4(%esp) 498: 8b 45 f0 mov -0x10(%ebp),%eax 49b: 89 04 24 mov %eax,(%esp) 49e: e8 fd 00 00 00 call 5a0 <fstat> 4a3: 89 45 f4 mov %eax,-0xc(%ebp) close(fd); 4a6: 8b 45 f0 mov -0x10(%ebp),%eax 4a9: 89 04 24 mov %eax,(%esp) 4ac: e8 bf 00 00 00 call 570 <close> return r; 4b1: 8b 45 f4 mov -0xc(%ebp),%eax } 4b4: c9 leave 4b5: c3 ret 000004b6 <atoi>: int atoi(const char *s) { 4b6: 55 push %ebp 4b7: 89 e5 mov %esp,%ebp 4b9: 83 ec 10 sub $0x10,%esp int n; n = 0; 4bc: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 4c3: eb 24 jmp 4e9 <atoi+0x33> n = n*10 + *s++ - '0'; 4c5: 8b 55 fc mov -0x4(%ebp),%edx 4c8: 89 d0 mov %edx,%eax 4ca: c1 e0 02 shl $0x2,%eax 4cd: 01 d0 add %edx,%eax 4cf: 01 c0 add %eax,%eax 4d1: 89 c2 mov %eax,%edx 4d3: 8b 45 08 mov 0x8(%ebp),%eax 4d6: 0f b6 00 movzbl (%eax),%eax 4d9: 0f be c0 movsbl %al,%eax 4dc: 8d 04 02 lea (%edx,%eax,1),%eax 4df: 83 e8 30 sub $0x30,%eax 4e2: 89 45 fc mov %eax,-0x4(%ebp) 4e5: 83 45 08 01 addl $0x1,0x8(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 4e9: 8b 45 08 mov 0x8(%ebp),%eax 4ec: 0f b6 00 movzbl (%eax),%eax 4ef: 3c 2f cmp $0x2f,%al 4f1: 7e 0a jle 4fd <atoi+0x47> 4f3: 8b 45 08 mov 0x8(%ebp),%eax 4f6: 0f b6 00 movzbl (%eax),%eax 4f9: 3c 39 cmp $0x39,%al 4fb: 7e c8 jle 4c5 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 4fd: 8b 45 fc mov -0x4(%ebp),%eax } 500: c9 leave 501: c3 ret 00000502 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 502: 55 push %ebp 503: 89 e5 mov %esp,%ebp 505: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 508: 8b 45 08 mov 0x8(%ebp),%eax 50b: 89 45 f8 mov %eax,-0x8(%ebp) src = vsrc; 50e: 8b 45 0c mov 0xc(%ebp),%eax 511: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0) 514: eb 13 jmp 529 <memmove+0x27> *dst++ = *src++; 516: 8b 45 fc mov -0x4(%ebp),%eax 519: 0f b6 10 movzbl (%eax),%edx 51c: 8b 45 f8 mov -0x8(%ebp),%eax 51f: 88 10 mov %dl,(%eax) 521: 83 45 f8 01 addl $0x1,-0x8(%ebp) 525: 83 45 fc 01 addl $0x1,-0x4(%ebp) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 529: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 52d: 0f 9f c0 setg %al 530: 83 6d 10 01 subl $0x1,0x10(%ebp) 534: 84 c0 test %al,%al 536: 75 de jne 516 <memmove+0x14> *dst++ = *src++; return vdst; 538: 8b 45 08 mov 0x8(%ebp),%eax } 53b: c9 leave 53c: c3 ret 53d: 90 nop 53e: 90 nop 53f: 90 nop 00000540 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 540: b8 01 00 00 00 mov $0x1,%eax 545: cd 40 int $0x40 547: c3 ret 00000548 <exit>: SYSCALL(exit) 548: b8 02 00 00 00 mov $0x2,%eax 54d: cd 40 int $0x40 54f: c3 ret 00000550 <wait>: SYSCALL(wait) 550: b8 03 00 00 00 mov $0x3,%eax 555: cd 40 int $0x40 557: c3 ret 00000558 <pipe>: SYSCALL(pipe) 558: b8 04 00 00 00 mov $0x4,%eax 55d: cd 40 int $0x40 55f: c3 ret 00000560 <read>: SYSCALL(read) 560: b8 05 00 00 00 mov $0x5,%eax 565: cd 40 int $0x40 567: c3 ret 00000568 <write>: SYSCALL(write) 568: b8 10 00 00 00 mov $0x10,%eax 56d: cd 40 int $0x40 56f: c3 ret 00000570 <close>: SYSCALL(close) 570: b8 15 00 00 00 mov $0x15,%eax 575: cd 40 int $0x40 577: c3 ret 00000578 <kill>: SYSCALL(kill) 578: b8 06 00 00 00 mov $0x6,%eax 57d: cd 40 int $0x40 57f: c3 ret 00000580 <exec>: SYSCALL(exec) 580: b8 07 00 00 00 mov $0x7,%eax 585: cd 40 int $0x40 587: c3 ret 00000588 <open>: SYSCALL(open) 588: b8 0f 00 00 00 mov $0xf,%eax 58d: cd 40 int $0x40 58f: c3 ret 00000590 <mknod>: SYSCALL(mknod) 590: b8 11 00 00 00 mov $0x11,%eax 595: cd 40 int $0x40 597: c3 ret 00000598 <unlink>: SYSCALL(unlink) 598: b8 12 00 00 00 mov $0x12,%eax 59d: cd 40 int $0x40 59f: c3 ret 000005a0 <fstat>: SYSCALL(fstat) 5a0: b8 08 00 00 00 mov $0x8,%eax 5a5: cd 40 int $0x40 5a7: c3 ret 000005a8 <link>: SYSCALL(link) 5a8: b8 13 00 00 00 mov $0x13,%eax 5ad: cd 40 int $0x40 5af: c3 ret 000005b0 <mkdir>: SYSCALL(mkdir) 5b0: b8 14 00 00 00 mov $0x14,%eax 5b5: cd 40 int $0x40 5b7: c3 ret 000005b8 <chdir>: SYSCALL(chdir) 5b8: b8 09 00 00 00 mov $0x9,%eax 5bd: cd 40 int $0x40 5bf: c3 ret 000005c0 <dup>: SYSCALL(dup) 5c0: b8 0a 00 00 00 mov $0xa,%eax 5c5: cd 40 int $0x40 5c7: c3 ret 000005c8 <getpid>: SYSCALL(getpid) 5c8: b8 0b 00 00 00 mov $0xb,%eax 5cd: cd 40 int $0x40 5cf: c3 ret 000005d0 <sbrk>: SYSCALL(sbrk) 5d0: b8 0c 00 00 00 mov $0xc,%eax 5d5: cd 40 int $0x40 5d7: c3 ret 000005d8 <sleep>: SYSCALL(sleep) 5d8: b8 0d 00 00 00 mov $0xd,%eax 5dd: cd 40 int $0x40 5df: c3 ret 000005e0 <uptime>: SYSCALL(uptime) 5e0: b8 0e 00 00 00 mov $0xe,%eax 5e5: cd 40 int $0x40 5e7: c3 ret 000005e8 <clone>: SYSCALL(clone) 5e8: b8 16 00 00 00 mov $0x16,%eax 5ed: cd 40 int $0x40 5ef: c3 ret 000005f0 <texit>: SYSCALL(texit) 5f0: b8 17 00 00 00 mov $0x17,%eax 5f5: cd 40 int $0x40 5f7: c3 ret 000005f8 <tsleep>: SYSCALL(tsleep) 5f8: b8 18 00 00 00 mov $0x18,%eax 5fd: cd 40 int $0x40 5ff: c3 ret 00000600 <twakeup>: SYSCALL(twakeup) 600: b8 19 00 00 00 mov $0x19,%eax 605: cd 40 int $0x40 607: c3 ret 00000608 <thread_yield>: SYSCALL(thread_yield) 608: b8 1a 00 00 00 mov $0x1a,%eax 60d: cd 40 int $0x40 60f: c3 ret 00000610 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 610: 55 push %ebp 611: 89 e5 mov %esp,%ebp 613: 83 ec 28 sub $0x28,%esp 616: 8b 45 0c mov 0xc(%ebp),%eax 619: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 61c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 623: 00 624: 8d 45 f4 lea -0xc(%ebp),%eax 627: 89 44 24 04 mov %eax,0x4(%esp) 62b: 8b 45 08 mov 0x8(%ebp),%eax 62e: 89 04 24 mov %eax,(%esp) 631: e8 32 ff ff ff call 568 <write> } 636: c9 leave 637: c3 ret 00000638 <printint>: static void printint(int fd, int xx, int base, int sgn) { 638: 55 push %ebp 639: 89 e5 mov %esp,%ebp 63b: 53 push %ebx 63c: 83 ec 44 sub $0x44,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 63f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 646: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 64a: 74 17 je 663 <printint+0x2b> 64c: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 650: 79 11 jns 663 <printint+0x2b> neg = 1; 652: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 659: 8b 45 0c mov 0xc(%ebp),%eax 65c: f7 d8 neg %eax 65e: 89 45 f4 mov %eax,-0xc(%ebp) char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 661: eb 06 jmp 669 <printint+0x31> neg = 1; x = -xx; } else { x = xx; 663: 8b 45 0c mov 0xc(%ebp),%eax 666: 89 45 f4 mov %eax,-0xc(%ebp) } i = 0; 669: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) do{ buf[i++] = digits[x % base]; 670: 8b 4d ec mov -0x14(%ebp),%ecx 673: 8b 5d 10 mov 0x10(%ebp),%ebx 676: 8b 45 f4 mov -0xc(%ebp),%eax 679: ba 00 00 00 00 mov $0x0,%edx 67e: f7 f3 div %ebx 680: 89 d0 mov %edx,%eax 682: 0f b6 80 a8 0e 00 00 movzbl 0xea8(%eax),%eax 689: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) 68d: 83 45 ec 01 addl $0x1,-0x14(%ebp) }while((x /= base) != 0); 691: 8b 45 10 mov 0x10(%ebp),%eax 694: 89 45 d4 mov %eax,-0x2c(%ebp) 697: 8b 45 f4 mov -0xc(%ebp),%eax 69a: ba 00 00 00 00 mov $0x0,%edx 69f: f7 75 d4 divl -0x2c(%ebp) 6a2: 89 45 f4 mov %eax,-0xc(%ebp) 6a5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 6a9: 75 c5 jne 670 <printint+0x38> if(neg) 6ab: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 6af: 74 28 je 6d9 <printint+0xa1> buf[i++] = '-'; 6b1: 8b 45 ec mov -0x14(%ebp),%eax 6b4: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) 6b9: 83 45 ec 01 addl $0x1,-0x14(%ebp) while(--i >= 0) 6bd: eb 1a jmp 6d9 <printint+0xa1> putc(fd, buf[i]); 6bf: 8b 45 ec mov -0x14(%ebp),%eax 6c2: 0f b6 44 05 dc movzbl -0x24(%ebp,%eax,1),%eax 6c7: 0f be c0 movsbl %al,%eax 6ca: 89 44 24 04 mov %eax,0x4(%esp) 6ce: 8b 45 08 mov 0x8(%ebp),%eax 6d1: 89 04 24 mov %eax,(%esp) 6d4: e8 37 ff ff ff call 610 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 6d9: 83 6d ec 01 subl $0x1,-0x14(%ebp) 6dd: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 6e1: 79 dc jns 6bf <printint+0x87> putc(fd, buf[i]); } 6e3: 83 c4 44 add $0x44,%esp 6e6: 5b pop %ebx 6e7: 5d pop %ebp 6e8: c3 ret 000006e9 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 6e9: 55 push %ebp 6ea: 89 e5 mov %esp,%ebp 6ec: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 6ef: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) ap = (uint*)(void*)&fmt + 1; 6f6: 8d 45 0c lea 0xc(%ebp),%eax 6f9: 83 c0 04 add $0x4,%eax 6fc: 89 45 f4 mov %eax,-0xc(%ebp) for(i = 0; fmt[i]; i++){ 6ff: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 706: e9 7e 01 00 00 jmp 889 <printf+0x1a0> c = fmt[i] & 0xff; 70b: 8b 55 0c mov 0xc(%ebp),%edx 70e: 8b 45 ec mov -0x14(%ebp),%eax 711: 8d 04 02 lea (%edx,%eax,1),%eax 714: 0f b6 00 movzbl (%eax),%eax 717: 0f be c0 movsbl %al,%eax 71a: 25 ff 00 00 00 and $0xff,%eax 71f: 89 45 e8 mov %eax,-0x18(%ebp) if(state == 0){ 722: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 726: 75 2c jne 754 <printf+0x6b> if(c == '%'){ 728: 83 7d e8 25 cmpl $0x25,-0x18(%ebp) 72c: 75 0c jne 73a <printf+0x51> state = '%'; 72e: c7 45 f0 25 00 00 00 movl $0x25,-0x10(%ebp) 735: e9 4b 01 00 00 jmp 885 <printf+0x19c> } else { putc(fd, c); 73a: 8b 45 e8 mov -0x18(%ebp),%eax 73d: 0f be c0 movsbl %al,%eax 740: 89 44 24 04 mov %eax,0x4(%esp) 744: 8b 45 08 mov 0x8(%ebp),%eax 747: 89 04 24 mov %eax,(%esp) 74a: e8 c1 fe ff ff call 610 <putc> 74f: e9 31 01 00 00 jmp 885 <printf+0x19c> } } else if(state == '%'){ 754: 83 7d f0 25 cmpl $0x25,-0x10(%ebp) 758: 0f 85 27 01 00 00 jne 885 <printf+0x19c> if(c == 'd'){ 75e: 83 7d e8 64 cmpl $0x64,-0x18(%ebp) 762: 75 2d jne 791 <printf+0xa8> printint(fd, *ap, 10, 1); 764: 8b 45 f4 mov -0xc(%ebp),%eax 767: 8b 00 mov (%eax),%eax 769: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 770: 00 771: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 778: 00 779: 89 44 24 04 mov %eax,0x4(%esp) 77d: 8b 45 08 mov 0x8(%ebp),%eax 780: 89 04 24 mov %eax,(%esp) 783: e8 b0 fe ff ff call 638 <printint> ap++; 788: 83 45 f4 04 addl $0x4,-0xc(%ebp) 78c: e9 ed 00 00 00 jmp 87e <printf+0x195> } else if(c == 'x' || c == 'p'){ 791: 83 7d e8 78 cmpl $0x78,-0x18(%ebp) 795: 74 06 je 79d <printf+0xb4> 797: 83 7d e8 70 cmpl $0x70,-0x18(%ebp) 79b: 75 2d jne 7ca <printf+0xe1> printint(fd, *ap, 16, 0); 79d: 8b 45 f4 mov -0xc(%ebp),%eax 7a0: 8b 00 mov (%eax),%eax 7a2: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 7a9: 00 7aa: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 7b1: 00 7b2: 89 44 24 04 mov %eax,0x4(%esp) 7b6: 8b 45 08 mov 0x8(%ebp),%eax 7b9: 89 04 24 mov %eax,(%esp) 7bc: e8 77 fe ff ff call 638 <printint> ap++; 7c1: 83 45 f4 04 addl $0x4,-0xc(%ebp) } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 7c5: e9 b4 00 00 00 jmp 87e <printf+0x195> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 7ca: 83 7d e8 73 cmpl $0x73,-0x18(%ebp) 7ce: 75 46 jne 816 <printf+0x12d> s = (char*)*ap; 7d0: 8b 45 f4 mov -0xc(%ebp),%eax 7d3: 8b 00 mov (%eax),%eax 7d5: 89 45 e4 mov %eax,-0x1c(%ebp) ap++; 7d8: 83 45 f4 04 addl $0x4,-0xc(%ebp) if(s == 0) 7dc: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 7e0: 75 27 jne 809 <printf+0x120> s = "(null)"; 7e2: c7 45 e4 5b 0e 00 00 movl $0xe5b,-0x1c(%ebp) while(*s != 0){ 7e9: eb 1f jmp 80a <printf+0x121> putc(fd, *s); 7eb: 8b 45 e4 mov -0x1c(%ebp),%eax 7ee: 0f b6 00 movzbl (%eax),%eax 7f1: 0f be c0 movsbl %al,%eax 7f4: 89 44 24 04 mov %eax,0x4(%esp) 7f8: 8b 45 08 mov 0x8(%ebp),%eax 7fb: 89 04 24 mov %eax,(%esp) 7fe: e8 0d fe ff ff call 610 <putc> s++; 803: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 807: eb 01 jmp 80a <printf+0x121> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 809: 90 nop 80a: 8b 45 e4 mov -0x1c(%ebp),%eax 80d: 0f b6 00 movzbl (%eax),%eax 810: 84 c0 test %al,%al 812: 75 d7 jne 7eb <printf+0x102> 814: eb 68 jmp 87e <printf+0x195> putc(fd, *s); s++; } } else if(c == 'c'){ 816: 83 7d e8 63 cmpl $0x63,-0x18(%ebp) 81a: 75 1d jne 839 <printf+0x150> putc(fd, *ap); 81c: 8b 45 f4 mov -0xc(%ebp),%eax 81f: 8b 00 mov (%eax),%eax 821: 0f be c0 movsbl %al,%eax 824: 89 44 24 04 mov %eax,0x4(%esp) 828: 8b 45 08 mov 0x8(%ebp),%eax 82b: 89 04 24 mov %eax,(%esp) 82e: e8 dd fd ff ff call 610 <putc> ap++; 833: 83 45 f4 04 addl $0x4,-0xc(%ebp) 837: eb 45 jmp 87e <printf+0x195> } else if(c == '%'){ 839: 83 7d e8 25 cmpl $0x25,-0x18(%ebp) 83d: 75 17 jne 856 <printf+0x16d> putc(fd, c); 83f: 8b 45 e8 mov -0x18(%ebp),%eax 842: 0f be c0 movsbl %al,%eax 845: 89 44 24 04 mov %eax,0x4(%esp) 849: 8b 45 08 mov 0x8(%ebp),%eax 84c: 89 04 24 mov %eax,(%esp) 84f: e8 bc fd ff ff call 610 <putc> 854: eb 28 jmp 87e <printf+0x195> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 856: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 85d: 00 85e: 8b 45 08 mov 0x8(%ebp),%eax 861: 89 04 24 mov %eax,(%esp) 864: e8 a7 fd ff ff call 610 <putc> putc(fd, c); 869: 8b 45 e8 mov -0x18(%ebp),%eax 86c: 0f be c0 movsbl %al,%eax 86f: 89 44 24 04 mov %eax,0x4(%esp) 873: 8b 45 08 mov 0x8(%ebp),%eax 876: 89 04 24 mov %eax,(%esp) 879: e8 92 fd ff ff call 610 <putc> } state = 0; 87e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 885: 83 45 ec 01 addl $0x1,-0x14(%ebp) 889: 8b 55 0c mov 0xc(%ebp),%edx 88c: 8b 45 ec mov -0x14(%ebp),%eax 88f: 8d 04 02 lea (%edx,%eax,1),%eax 892: 0f b6 00 movzbl (%eax),%eax 895: 84 c0 test %al,%al 897: 0f 85 6e fe ff ff jne 70b <printf+0x22> putc(fd, c); } state = 0; } } } 89d: c9 leave 89e: c3 ret 89f: 90 nop 000008a0 <free>: static Header base; static Header *freep; void free(void *ap) { 8a0: 55 push %ebp 8a1: 89 e5 mov %esp,%ebp 8a3: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 8a6: 8b 45 08 mov 0x8(%ebp),%eax 8a9: 83 e8 08 sub $0x8,%eax 8ac: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 8af: a1 c8 0e 00 00 mov 0xec8,%eax 8b4: 89 45 fc mov %eax,-0x4(%ebp) 8b7: eb 24 jmp 8dd <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 8b9: 8b 45 fc mov -0x4(%ebp),%eax 8bc: 8b 00 mov (%eax),%eax 8be: 3b 45 fc cmp -0x4(%ebp),%eax 8c1: 77 12 ja 8d5 <free+0x35> 8c3: 8b 45 f8 mov -0x8(%ebp),%eax 8c6: 3b 45 fc cmp -0x4(%ebp),%eax 8c9: 77 24 ja 8ef <free+0x4f> 8cb: 8b 45 fc mov -0x4(%ebp),%eax 8ce: 8b 00 mov (%eax),%eax 8d0: 3b 45 f8 cmp -0x8(%ebp),%eax 8d3: 77 1a ja 8ef <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) 8d5: 8b 45 fc mov -0x4(%ebp),%eax 8d8: 8b 00 mov (%eax),%eax 8da: 89 45 fc mov %eax,-0x4(%ebp) 8dd: 8b 45 f8 mov -0x8(%ebp),%eax 8e0: 3b 45 fc cmp -0x4(%ebp),%eax 8e3: 76 d4 jbe 8b9 <free+0x19> 8e5: 8b 45 fc mov -0x4(%ebp),%eax 8e8: 8b 00 mov (%eax),%eax 8ea: 3b 45 f8 cmp -0x8(%ebp),%eax 8ed: 76 ca jbe 8b9 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 8ef: 8b 45 f8 mov -0x8(%ebp),%eax 8f2: 8b 40 04 mov 0x4(%eax),%eax 8f5: c1 e0 03 shl $0x3,%eax 8f8: 89 c2 mov %eax,%edx 8fa: 03 55 f8 add -0x8(%ebp),%edx 8fd: 8b 45 fc mov -0x4(%ebp),%eax 900: 8b 00 mov (%eax),%eax 902: 39 c2 cmp %eax,%edx 904: 75 24 jne 92a <free+0x8a> bp->s.size += p->s.ptr->s.size; 906: 8b 45 f8 mov -0x8(%ebp),%eax 909: 8b 50 04 mov 0x4(%eax),%edx 90c: 8b 45 fc mov -0x4(%ebp),%eax 90f: 8b 00 mov (%eax),%eax 911: 8b 40 04 mov 0x4(%eax),%eax 914: 01 c2 add %eax,%edx 916: 8b 45 f8 mov -0x8(%ebp),%eax 919: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 91c: 8b 45 fc mov -0x4(%ebp),%eax 91f: 8b 00 mov (%eax),%eax 921: 8b 10 mov (%eax),%edx 923: 8b 45 f8 mov -0x8(%ebp),%eax 926: 89 10 mov %edx,(%eax) 928: eb 0a jmp 934 <free+0x94> } else bp->s.ptr = p->s.ptr; 92a: 8b 45 fc mov -0x4(%ebp),%eax 92d: 8b 10 mov (%eax),%edx 92f: 8b 45 f8 mov -0x8(%ebp),%eax 932: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 934: 8b 45 fc mov -0x4(%ebp),%eax 937: 8b 40 04 mov 0x4(%eax),%eax 93a: c1 e0 03 shl $0x3,%eax 93d: 03 45 fc add -0x4(%ebp),%eax 940: 3b 45 f8 cmp -0x8(%ebp),%eax 943: 75 20 jne 965 <free+0xc5> p->s.size += bp->s.size; 945: 8b 45 fc mov -0x4(%ebp),%eax 948: 8b 50 04 mov 0x4(%eax),%edx 94b: 8b 45 f8 mov -0x8(%ebp),%eax 94e: 8b 40 04 mov 0x4(%eax),%eax 951: 01 c2 add %eax,%edx 953: 8b 45 fc mov -0x4(%ebp),%eax 956: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 959: 8b 45 f8 mov -0x8(%ebp),%eax 95c: 8b 10 mov (%eax),%edx 95e: 8b 45 fc mov -0x4(%ebp),%eax 961: 89 10 mov %edx,(%eax) 963: eb 08 jmp 96d <free+0xcd> } else p->s.ptr = bp; 965: 8b 45 fc mov -0x4(%ebp),%eax 968: 8b 55 f8 mov -0x8(%ebp),%edx 96b: 89 10 mov %edx,(%eax) freep = p; 96d: 8b 45 fc mov -0x4(%ebp),%eax 970: a3 c8 0e 00 00 mov %eax,0xec8 } 975: c9 leave 976: c3 ret 00000977 <morecore>: static Header* morecore(uint nu) { 977: 55 push %ebp 978: 89 e5 mov %esp,%ebp 97a: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 97d: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 984: 77 07 ja 98d <morecore+0x16> nu = 4096; 986: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 98d: 8b 45 08 mov 0x8(%ebp),%eax 990: c1 e0 03 shl $0x3,%eax 993: 89 04 24 mov %eax,(%esp) 996: e8 35 fc ff ff call 5d0 <sbrk> 99b: 89 45 f0 mov %eax,-0x10(%ebp) if(p == (char*)-1) 99e: 83 7d f0 ff cmpl $0xffffffff,-0x10(%ebp) 9a2: 75 07 jne 9ab <morecore+0x34> return 0; 9a4: b8 00 00 00 00 mov $0x0,%eax 9a9: eb 22 jmp 9cd <morecore+0x56> hp = (Header*)p; 9ab: 8b 45 f0 mov -0x10(%ebp),%eax 9ae: 89 45 f4 mov %eax,-0xc(%ebp) hp->s.size = nu; 9b1: 8b 45 f4 mov -0xc(%ebp),%eax 9b4: 8b 55 08 mov 0x8(%ebp),%edx 9b7: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 9ba: 8b 45 f4 mov -0xc(%ebp),%eax 9bd: 83 c0 08 add $0x8,%eax 9c0: 89 04 24 mov %eax,(%esp) 9c3: e8 d8 fe ff ff call 8a0 <free> return freep; 9c8: a1 c8 0e 00 00 mov 0xec8,%eax } 9cd: c9 leave 9ce: c3 ret 000009cf <malloc>: void* malloc(uint nbytes) { 9cf: 55 push %ebp 9d0: 89 e5 mov %esp,%ebp 9d2: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 9d5: 8b 45 08 mov 0x8(%ebp),%eax 9d8: 83 c0 07 add $0x7,%eax 9db: c1 e8 03 shr $0x3,%eax 9de: 83 c0 01 add $0x1,%eax 9e1: 89 45 f4 mov %eax,-0xc(%ebp) if((prevp = freep) == 0){ 9e4: a1 c8 0e 00 00 mov 0xec8,%eax 9e9: 89 45 f0 mov %eax,-0x10(%ebp) 9ec: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 9f0: 75 23 jne a15 <malloc+0x46> base.s.ptr = freep = prevp = &base; 9f2: c7 45 f0 c0 0e 00 00 movl $0xec0,-0x10(%ebp) 9f9: 8b 45 f0 mov -0x10(%ebp),%eax 9fc: a3 c8 0e 00 00 mov %eax,0xec8 a01: a1 c8 0e 00 00 mov 0xec8,%eax a06: a3 c0 0e 00 00 mov %eax,0xec0 base.s.size = 0; a0b: c7 05 c4 0e 00 00 00 movl $0x0,0xec4 a12: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ a15: 8b 45 f0 mov -0x10(%ebp),%eax a18: 8b 00 mov (%eax),%eax a1a: 89 45 ec mov %eax,-0x14(%ebp) if(p->s.size >= nunits){ a1d: 8b 45 ec mov -0x14(%ebp),%eax a20: 8b 40 04 mov 0x4(%eax),%eax a23: 3b 45 f4 cmp -0xc(%ebp),%eax a26: 72 4d jb a75 <malloc+0xa6> if(p->s.size == nunits) a28: 8b 45 ec mov -0x14(%ebp),%eax a2b: 8b 40 04 mov 0x4(%eax),%eax a2e: 3b 45 f4 cmp -0xc(%ebp),%eax a31: 75 0c jne a3f <malloc+0x70> prevp->s.ptr = p->s.ptr; a33: 8b 45 ec mov -0x14(%ebp),%eax a36: 8b 10 mov (%eax),%edx a38: 8b 45 f0 mov -0x10(%ebp),%eax a3b: 89 10 mov %edx,(%eax) a3d: eb 26 jmp a65 <malloc+0x96> else { p->s.size -= nunits; a3f: 8b 45 ec mov -0x14(%ebp),%eax a42: 8b 40 04 mov 0x4(%eax),%eax a45: 89 c2 mov %eax,%edx a47: 2b 55 f4 sub -0xc(%ebp),%edx a4a: 8b 45 ec mov -0x14(%ebp),%eax a4d: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; a50: 8b 45 ec mov -0x14(%ebp),%eax a53: 8b 40 04 mov 0x4(%eax),%eax a56: c1 e0 03 shl $0x3,%eax a59: 01 45 ec add %eax,-0x14(%ebp) p->s.size = nunits; a5c: 8b 45 ec mov -0x14(%ebp),%eax a5f: 8b 55 f4 mov -0xc(%ebp),%edx a62: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; a65: 8b 45 f0 mov -0x10(%ebp),%eax a68: a3 c8 0e 00 00 mov %eax,0xec8 return (void*)(p + 1); a6d: 8b 45 ec mov -0x14(%ebp),%eax a70: 83 c0 08 add $0x8,%eax a73: eb 38 jmp aad <malloc+0xde> } if(p == freep) a75: a1 c8 0e 00 00 mov 0xec8,%eax a7a: 39 45 ec cmp %eax,-0x14(%ebp) a7d: 75 1b jne a9a <malloc+0xcb> if((p = morecore(nunits)) == 0) a7f: 8b 45 f4 mov -0xc(%ebp),%eax a82: 89 04 24 mov %eax,(%esp) a85: e8 ed fe ff ff call 977 <morecore> a8a: 89 45 ec mov %eax,-0x14(%ebp) a8d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) a91: 75 07 jne a9a <malloc+0xcb> return 0; a93: b8 00 00 00 00 mov $0x0,%eax a98: eb 13 jmp aad <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){ a9a: 8b 45 ec mov -0x14(%ebp),%eax a9d: 89 45 f0 mov %eax,-0x10(%ebp) aa0: 8b 45 ec mov -0x14(%ebp),%eax aa3: 8b 00 mov (%eax),%eax aa5: 89 45 ec mov %eax,-0x14(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } aa8: e9 70 ff ff ff jmp a1d <malloc+0x4e> } aad: c9 leave aae: c3 ret aaf: 90 nop 00000ab0 <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { ab0: 55 push %ebp ab1: 89 e5 mov %esp,%ebp ab3: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : ab6: 8b 55 08 mov 0x8(%ebp),%edx ab9: 8b 45 0c mov 0xc(%ebp),%eax abc: 8b 4d 08 mov 0x8(%ebp),%ecx abf: f0 87 02 lock xchg %eax,(%edx) ac2: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; ac5: 8b 45 fc mov -0x4(%ebp),%eax } ac8: c9 leave ac9: c3 ret 00000aca <lock_init>: #include "x86.h" #include "proc.h" void lock_init(lock_t *lock){ aca: 55 push %ebp acb: 89 e5 mov %esp,%ebp lock->locked = 0; acd: 8b 45 08 mov 0x8(%ebp),%eax ad0: c7 00 00 00 00 00 movl $0x0,(%eax) } ad6: 5d pop %ebp ad7: c3 ret 00000ad8 <lock_acquire>: void lock_acquire(lock_t *lock){ ad8: 55 push %ebp ad9: 89 e5 mov %esp,%ebp adb: 83 ec 08 sub $0x8,%esp while(xchg(&lock->locked,1) != 0); ade: 8b 45 08 mov 0x8(%ebp),%eax ae1: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) ae8: 00 ae9: 89 04 24 mov %eax,(%esp) aec: e8 bf ff ff ff call ab0 <xchg> af1: 85 c0 test %eax,%eax af3: 75 e9 jne ade <lock_acquire+0x6> } af5: c9 leave af6: c3 ret 00000af7 <lock_release>: void lock_release(lock_t *lock){ af7: 55 push %ebp af8: 89 e5 mov %esp,%ebp afa: 83 ec 08 sub $0x8,%esp xchg(&lock->locked,0); afd: 8b 45 08 mov 0x8(%ebp),%eax b00: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) b07: 00 b08: 89 04 24 mov %eax,(%esp) b0b: e8 a0 ff ff ff call ab0 <xchg> } b10: c9 leave b11: c3 ret 00000b12 <thread_create>: void *thread_create(void(*start_routine)(void*), void *arg){ b12: 55 push %ebp b13: 89 e5 mov %esp,%ebp b15: 83 ec 28 sub $0x28,%esp int tid; void * stack = malloc(2 * 4096); b18: c7 04 24 00 20 00 00 movl $0x2000,(%esp) b1f: e8 ab fe ff ff call 9cf <malloc> b24: 89 45 f0 mov %eax,-0x10(%ebp) void *garbage_stack = stack; b27: 8b 45 f0 mov -0x10(%ebp),%eax b2a: 89 45 f4 mov %eax,-0xc(%ebp) // printf(1,"start routine addr : %d\n",(uint)start_routine); if((uint)stack % 4096){ b2d: 8b 45 f0 mov -0x10(%ebp),%eax b30: 25 ff 0f 00 00 and $0xfff,%eax b35: 85 c0 test %eax,%eax b37: 74 15 je b4e <thread_create+0x3c> stack = stack + (4096 - (uint)stack % 4096); b39: 8b 45 f0 mov -0x10(%ebp),%eax b3c: 89 c2 mov %eax,%edx b3e: 81 e2 ff 0f 00 00 and $0xfff,%edx b44: b8 00 10 00 00 mov $0x1000,%eax b49: 29 d0 sub %edx,%eax b4b: 01 45 f0 add %eax,-0x10(%ebp) } if (stack == 0){ b4e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) b52: 75 1b jne b6f <thread_create+0x5d> printf(1,"malloc fail \n"); b54: c7 44 24 04 62 0e 00 movl $0xe62,0x4(%esp) b5b: 00 b5c: c7 04 24 01 00 00 00 movl $0x1,(%esp) b63: e8 81 fb ff ff call 6e9 <printf> return 0; b68: b8 00 00 00 00 mov $0x0,%eax b6d: eb 6f jmp bde <thread_create+0xcc> } tid = clone((uint)stack,PSIZE,(uint)start_routine,(int)arg); b6f: 8b 4d 0c mov 0xc(%ebp),%ecx b72: 8b 55 08 mov 0x8(%ebp),%edx b75: 8b 45 f0 mov -0x10(%ebp),%eax b78: 89 4c 24 0c mov %ecx,0xc(%esp) b7c: 89 54 24 08 mov %edx,0x8(%esp) b80: c7 44 24 04 00 10 00 movl $0x1000,0x4(%esp) b87: 00 b88: 89 04 24 mov %eax,(%esp) b8b: e8 58 fa ff ff call 5e8 <clone> b90: 89 45 ec mov %eax,-0x14(%ebp) if(tid < 0){ b93: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) b97: 79 1b jns bb4 <thread_create+0xa2> printf(1,"clone fails\n"); b99: c7 44 24 04 70 0e 00 movl $0xe70,0x4(%esp) ba0: 00 ba1: c7 04 24 01 00 00 00 movl $0x1,(%esp) ba8: e8 3c fb ff ff call 6e9 <printf> return 0; bad: b8 00 00 00 00 mov $0x0,%eax bb2: eb 2a jmp bde <thread_create+0xcc> } if(tid > 0){ bb4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) bb8: 7e 05 jle bbf <thread_create+0xad> //store threads on thread table return garbage_stack; bba: 8b 45 f4 mov -0xc(%ebp),%eax bbd: eb 1f jmp bde <thread_create+0xcc> } if(tid == 0){ bbf: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) bc3: 75 14 jne bd9 <thread_create+0xc7> printf(1,"tid = 0 return \n"); bc5: c7 44 24 04 7d 0e 00 movl $0xe7d,0x4(%esp) bcc: 00 bcd: c7 04 24 01 00 00 00 movl $0x1,(%esp) bd4: e8 10 fb ff ff call 6e9 <printf> } // wait(); // free(garbage_stack); return 0; bd9: b8 00 00 00 00 mov $0x0,%eax } bde: c9 leave bdf: c3 ret 00000be0 <init_q>: #include "queue.h" #include "types.h" #include "user.h" void init_q(struct queue *q){ be0: 55 push %ebp be1: 89 e5 mov %esp,%ebp q->size = 0; be3: 8b 45 08 mov 0x8(%ebp),%eax be6: c7 00 00 00 00 00 movl $0x0,(%eax) q->head = 0; bec: 8b 45 08 mov 0x8(%ebp),%eax bef: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) q->tail = 0; bf6: 8b 45 08 mov 0x8(%ebp),%eax bf9: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } c00: 5d pop %ebp c01: c3 ret 00000c02 <add_q>: void add_q(struct queue *q, int v){ c02: 55 push %ebp c03: 89 e5 mov %esp,%ebp c05: 83 ec 28 sub $0x28,%esp //printf(1, "here \n"); struct node * n = malloc(sizeof(struct node)); c08: c7 04 24 08 00 00 00 movl $0x8,(%esp) c0f: e8 bb fd ff ff call 9cf <malloc> c14: 89 45 f4 mov %eax,-0xc(%ebp) n->next = 0; c17: 8b 45 f4 mov -0xc(%ebp),%eax c1a: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) n->value = v; c21: 8b 45 f4 mov -0xc(%ebp),%eax c24: 8b 55 0c mov 0xc(%ebp),%edx c27: 89 10 mov %edx,(%eax) if(q->head == 0){ c29: 8b 45 08 mov 0x8(%ebp),%eax c2c: 8b 40 04 mov 0x4(%eax),%eax c2f: 85 c0 test %eax,%eax c31: 75 0b jne c3e <add_q+0x3c> q->head = n; c33: 8b 45 08 mov 0x8(%ebp),%eax c36: 8b 55 f4 mov -0xc(%ebp),%edx c39: 89 50 04 mov %edx,0x4(%eax) c3c: eb 0c jmp c4a <add_q+0x48> }else{ q->tail->next = n; c3e: 8b 45 08 mov 0x8(%ebp),%eax c41: 8b 40 08 mov 0x8(%eax),%eax c44: 8b 55 f4 mov -0xc(%ebp),%edx c47: 89 50 04 mov %edx,0x4(%eax) } q->tail = n; c4a: 8b 45 08 mov 0x8(%ebp),%eax c4d: 8b 55 f4 mov -0xc(%ebp),%edx c50: 89 50 08 mov %edx,0x8(%eax) q->size++; c53: 8b 45 08 mov 0x8(%ebp),%eax c56: 8b 00 mov (%eax),%eax c58: 8d 50 01 lea 0x1(%eax),%edx c5b: 8b 45 08 mov 0x8(%ebp),%eax c5e: 89 10 mov %edx,(%eax) } c60: c9 leave c61: c3 ret 00000c62 <empty_q>: int empty_q(struct queue *q){ c62: 55 push %ebp c63: 89 e5 mov %esp,%ebp if(q->size == 0) c65: 8b 45 08 mov 0x8(%ebp),%eax c68: 8b 00 mov (%eax),%eax c6a: 85 c0 test %eax,%eax c6c: 75 07 jne c75 <empty_q+0x13> return 1; c6e: b8 01 00 00 00 mov $0x1,%eax c73: eb 05 jmp c7a <empty_q+0x18> else return 0; c75: b8 00 00 00 00 mov $0x0,%eax } c7a: 5d pop %ebp c7b: c3 ret 00000c7c <pop_q>: int pop_q(struct queue *q){ c7c: 55 push %ebp c7d: 89 e5 mov %esp,%ebp c7f: 83 ec 28 sub $0x28,%esp int val; struct node *destroy; if(!empty_q(q)){ c82: 8b 45 08 mov 0x8(%ebp),%eax c85: 89 04 24 mov %eax,(%esp) c88: e8 d5 ff ff ff call c62 <empty_q> c8d: 85 c0 test %eax,%eax c8f: 75 5d jne cee <pop_q+0x72> val = q->head->value; c91: 8b 45 08 mov 0x8(%ebp),%eax c94: 8b 40 04 mov 0x4(%eax),%eax c97: 8b 00 mov (%eax),%eax c99: 89 45 f0 mov %eax,-0x10(%ebp) destroy = q->head; c9c: 8b 45 08 mov 0x8(%ebp),%eax c9f: 8b 40 04 mov 0x4(%eax),%eax ca2: 89 45 f4 mov %eax,-0xc(%ebp) q->head = q->head->next; ca5: 8b 45 08 mov 0x8(%ebp),%eax ca8: 8b 40 04 mov 0x4(%eax),%eax cab: 8b 50 04 mov 0x4(%eax),%edx cae: 8b 45 08 mov 0x8(%ebp),%eax cb1: 89 50 04 mov %edx,0x4(%eax) free(destroy); cb4: 8b 45 f4 mov -0xc(%ebp),%eax cb7: 89 04 24 mov %eax,(%esp) cba: e8 e1 fb ff ff call 8a0 <free> q->size--; cbf: 8b 45 08 mov 0x8(%ebp),%eax cc2: 8b 00 mov (%eax),%eax cc4: 8d 50 ff lea -0x1(%eax),%edx cc7: 8b 45 08 mov 0x8(%ebp),%eax cca: 89 10 mov %edx,(%eax) if(q->size == 0){ ccc: 8b 45 08 mov 0x8(%ebp),%eax ccf: 8b 00 mov (%eax),%eax cd1: 85 c0 test %eax,%eax cd3: 75 14 jne ce9 <pop_q+0x6d> q->head = 0; cd5: 8b 45 08 mov 0x8(%ebp),%eax cd8: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) q->tail = 0; cdf: 8b 45 08 mov 0x8(%ebp),%eax ce2: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } return val; ce9: 8b 45 f0 mov -0x10(%ebp),%eax cec: eb 05 jmp cf3 <pop_q+0x77> } return -1; cee: b8 ff ff ff ff mov $0xffffffff,%eax } cf3: c9 leave cf4: c3 ret cf5: 90 nop cf6: 90 nop cf7: 90 nop 00000cf8 <init_semaphore>: #include "semaphore.h" #include "user.h" //lab 2 //Semaphore void init_semaphore(struct Semaphore *s, int count_num) { cf8: 55 push %ebp cf9: 89 e5 mov %esp,%ebp cfb: 83 ec 18 sub $0x18,%esp s->count = count_num; cfe: 8b 45 08 mov 0x8(%ebp),%eax d01: 8b 55 0c mov 0xc(%ebp),%edx d04: 89 10 mov %edx,(%eax) init_q(&s->threads); d06: 8b 45 08 mov 0x8(%ebp),%eax d09: 83 c0 04 add $0x4,%eax d0c: 89 04 24 mov %eax,(%esp) d0f: e8 cc fe ff ff call be0 <init_q> lock_init(&s->lock); d14: 8b 45 08 mov 0x8(%ebp),%eax d17: 83 c0 10 add $0x10,%eax d1a: 89 04 24 mov %eax,(%esp) d1d: e8 a8 fd ff ff call aca <lock_init> } d22: c9 leave d23: c3 ret 00000d24 <sem_acquire>: void sem_acquire(struct Semaphore *s) { d24: 55 push %ebp d25: 89 e5 mov %esp,%ebp d27: 83 ec 18 sub $0x18,%esp while(1) { if (s->count > 0) { //if there are available resources d2a: 8b 45 08 mov 0x8(%ebp),%eax d2d: 8b 00 mov (%eax),%eax d2f: 85 c0 test %eax,%eax d31: 7e 2c jle d5f <sem_acquire+0x3b> //printf(1, "COUNT IS = %d\n", s->count); //printf(1, "acquiring lock\n"); lock_acquire(&s->lock); //acquire count lock d33: 8b 45 08 mov 0x8(%ebp),%eax d36: 83 c0 10 add $0x10,%eax d39: 89 04 24 mov %eax,(%esp) d3c: e8 97 fd ff ff call ad8 <lock_acquire> //printf(1, "acquired lock\n"); s->count = s->count - 1; //decrement resource by one d41: 8b 45 08 mov 0x8(%ebp),%eax d44: 8b 00 mov (%eax),%eax d46: 8d 50 ff lea -0x1(%eax),%edx d49: 8b 45 08 mov 0x8(%ebp),%eax d4c: 89 10 mov %edx,(%eax) //printf(1, "DECREMENT! COUNT IS = %d\n", s->count); lock_release(&s->lock); //release count lock d4e: 8b 45 08 mov 0x8(%ebp),%eax d51: 83 c0 10 add $0x10,%eax d54: 89 04 24 mov %eax,(%esp) d57: e8 9b fd ff ff call af7 <lock_release> break; d5c: 90 nop add_q(&s->threads, getpid()); //add thread to sleep queueu //printf(1, "asleep \n"); tsleep(); } } } d5d: c9 leave d5e: c3 ret //printf(1, "DECREMENT! COUNT IS = %d\n", s->count); lock_release(&s->lock); //release count lock break; } else { //if there are no available resources printf(1, "Waiting for semaphore\n"); d5f: c7 44 24 04 8e 0e 00 movl $0xe8e,0x4(%esp) d66: 00 d67: c7 04 24 01 00 00 00 movl $0x1,(%esp) d6e: e8 76 f9 ff ff call 6e9 <printf> //printf(1, "%d", getpid()); add_q(&s->threads, getpid()); //add thread to sleep queueu d73: e8 50 f8 ff ff call 5c8 <getpid> d78: 8b 55 08 mov 0x8(%ebp),%edx d7b: 83 c2 04 add $0x4,%edx d7e: 89 44 24 04 mov %eax,0x4(%esp) d82: 89 14 24 mov %edx,(%esp) d85: e8 78 fe ff ff call c02 <add_q> //printf(1, "asleep \n"); tsleep(); d8a: e8 69 f8 ff ff call 5f8 <tsleep> } } d8f: eb 99 jmp d2a <sem_acquire+0x6> 00000d91 <sem_signal>: } void sem_signal(struct Semaphore *s) { d91: 55 push %ebp d92: 89 e5 mov %esp,%ebp d94: 83 ec 18 sub $0x18,%esp lock_acquire(&s->lock); d97: 8b 45 08 mov 0x8(%ebp),%eax d9a: 83 c0 10 add $0x10,%eax d9d: 89 04 24 mov %eax,(%esp) da0: e8 33 fd ff ff call ad8 <lock_acquire> s->count++; da5: 8b 45 08 mov 0x8(%ebp),%eax da8: 8b 00 mov (%eax),%eax daa: 8d 50 01 lea 0x1(%eax),%edx dad: 8b 45 08 mov 0x8(%ebp),%eax db0: 89 10 mov %edx,(%eax) lock_release(&s->lock); db2: 8b 45 08 mov 0x8(%ebp),%eax db5: 83 c0 10 add $0x10,%eax db8: 89 04 24 mov %eax,(%esp) dbb: e8 37 fd ff ff call af7 <lock_release> if (!empty_q(&s->threads)) { dc0: 8b 45 08 mov 0x8(%ebp),%eax dc3: 83 c0 04 add $0x4,%eax dc6: 89 04 24 mov %eax,(%esp) dc9: e8 94 fe ff ff call c62 <empty_q> dce: 85 c0 test %eax,%eax dd0: 75 16 jne de8 <sem_signal+0x57> twakeup(pop_q(&s->threads)); //remove thread from queue and wake up dd2: 8b 45 08 mov 0x8(%ebp),%eax dd5: 83 c0 04 add $0x4,%eax dd8: 89 04 24 mov %eax,(%esp) ddb: e8 9c fe ff ff call c7c <pop_q> de0: 89 04 24 mov %eax,(%esp) de3: e8 18 f8 ff ff call 600 <twakeup> } } de8: c9 leave de9: c3 ret
64,793
Assembly
asm
34.537846
75
0.448829
f7025e0067f4f23219f6f64481c9488d8f95df14
phung001/xv6_lab2_mark
[ "MIT-0" ]
null
; A062026: a(n) = n(n+1)(n^2 -3n +6)/4 ; 0,2,6,18,50,120,252,476,828,1350,2090,3102,4446,6188,8400,11160,14552,18666,23598,29450,36330,44352,53636,64308,76500,90350,106002,123606,143318,165300,189720,216752,246576,279378,315350,354690,397602,444296,494988,549900,609260,673302,742266,816398,895950,981180,1072352,1169736,1273608,1384250,1501950,1627002,1759706,1900368,2049300,2206820,2373252,2548926,2734178,2929350,3134790,3350852,3577896,3816288,4066400,4328610,4603302,4890866,5191698,5506200,5834780,6177852,6535836,6909158,7298250 mov $2,$0 bin $0,2 add $0,1 bin $0,2 add $0,$2 mul $0,2
594
Assembly
asm
59.4
497
0.789562
f70266dd68f74c8be78c2eff84ea609d2643d64b
neoneye/loda-programs
[ "Apache-2.0" ]
11
%ifdef CONFIG { "RegData": { "RAX": "0x3ff0000000000000", "RBX": "0x0000000000000000", "RCX": "0x3ff0000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov eax, 0x3f800000 ; 1.0 mov [rdx + 8 * 0], eax fld1 fldz mov eax, 1 cmp eax, 1 fcmovne st0, st1 fldz cmp eax, 0 fcmovne st0, st2 fstp qword [rdx] mov rax, [rdx] fstp qword [rdx] mov rbx, [rdx] fstp qword [rdx] mov rcx, [rdx] hlt
448
Assembly
asm
11.789474
44
0.631696
f702979f5bac84b390816f947a05a6d6190124a3
Seas0/FEX
[ "MIT" ]
null
TITLE uiedit.asm - Misc user interface functions. ;*** ;uiedit.asm ; ; Copyright <C> 1985-1988, Microsoft Corporation ; ;Purpose: ; Interface between CW and parsing code. ; ; ;******************************************************************************* .xlist include version.inc UIEDIT_ASM = ON CONTEXT_NOFUNCS = ON include cw/version.inc include cw/windows.inc include cw/edityp.inc IncludeOnce architec IncludeOnce context IncludeOnce lister IncludeOnce heap IncludeOnce parser IncludeOnce pcode IncludeOnce qbimsgs IncludeOnce rtps IncludeOnce txtmgr IncludeOnce ui IncludeOnce uiint IncludeOnce uinhelp IncludeOnce util IncludeOnce edit .list assumes DS,DATA assumes SS,DATA assumes ES,NOTHING ;------------------------------------------------------------------------- ; DATA Segment Declarations ;------------------------------------------------------------------------- sBegin DATA ; oRs of 'command window' globalW hbufOfCmd,UNDEFINED ; oRs of 'scrap' used as temporary buffer ; for Cut/Copy/Paste operations globalW hbufOfScrap,UNDEFINED ; since we list one line after another when refreshing the content ; of a window, these static variables are used to remember where the ; pcode offset for the next line to be listed. It saves us from ; having to search pcode for the nth line. It must be discarded ; whenever text changes, or another text table is activated. staticW otxLnLast,0 staticW otxGetNext,0 staticW lnGetNext,0 staticW saveLnGetNext,0 staticW saveOtxGetNext,0 staticW saveRsCur,UNDEFINED ; The number of the last line entered in the command windows is kept here. ; For error reporting. staticW lnCmdLast,0 ; Set to TRUE when a command in the parse buffer should be executed. globalW fDoCmd,0 ; Set to TRUE when we have an error that may need the box to be repositioned ; depending upon where the cursor position is (see uimsgbox.c) globalB fAdjustMsgBox,0 ;cbGetLineBuf sets the following two words for LineAttr staticW colStmtStart,0 staticW colStmtEnd,0 staticB fWndHelp,0 ; rgLineAttr is used in GetLineAttrs public rgLineAttr rgLineAttr label word rgLineAttr0 db size LINEATTR dup(?) rgLineAttr1 db size LINEATTR dup(?) rgLineAttr2 db size LINEATTR dup(?) rgLineAttr3 db size LINEATTR dup(?) ;BOOKMARKS: ; Each bookmark is specified in the following structure. Different ; fields are UNDEFINED (-1) to indicate different conditions or ; situation with the bookmark ; ; if BM_oRs == UNDEFINED ; bookmark is invalid ; ; if BM_Nc == NOT_HELPTOPIC ; BM_oRs = register set for non-help window ; BM_oln = line number in the window ; BM_col = column number in the window ; else if BM_oln == UNDEFINED && FV_VARHELP ; BM_oRs = register set of variable help item ; BM_Nc = oName of variable help item ; BM_col = column number in the window ; else ; BM_Nc:BM_oRs = context number of help item ; BM_oln = line number in the window ; BM_col = column number in the window ; ;NOTE: it is Nc:oRs for help engine help but oRs:Nc for Variable help ; (so that we can deallocate based on the oRs). BookMark struc BM_Nc dw UNDEFINED ; oRs for non-help window. Otherwise, BM_oRs dw UNDEFINED BM_oln dw 0 BM_col dw 0 BookMark ends .errnz (-1) - (UNDEFINED) NOT_HELPTOPIC equ UNDEFINED MAXBOOKMARK equ 4 BookMarks BookMark MAXBOOKMARK dup(<>) psSaveLen dw 0 psSaveChar db 0 ; ; ldEMScratch is used by TWIN's EditMgr. ; Since we want is to be a movable heap entry, the structure overlaps a bd. ; public ldEMScratch public bdEMScratch .errnz (size ld) - 8 .errnz (size bd) - 6 ldEMScratch dw 0 ; ld.flags ---+ dw 0 ; ld.cb |--------- ld structure bdEMScratch dw 0 ; ld.cbMax/bd.cbLogical | ----+ dw 0 ; ld.prgch/bd.pb ---+ |--- bd Structure dw 0 ; bd.cbPhysical ---------+ ;next 4 locations are used to construct special dialog for ;runtime errors in compiled code (in ReportError()). EXTRN b$fCompErr:word ;non-zero if error was in compiled code EXTRN b$ErrLin:word ;line # of last runtime error (ERL) EXTRN b$ErrMod:dword ;far ptr to 0-terminated module name EXTRN b$ErrAdr:dword ;far ptr where runtime call was made EXTRN b$ErrInfo:byte ;extended error code EXTRN iHelpId:word externB HelpFlags sEnd DATA sBegin UI assumes CS,UI externNP WndHelpOpen ; Open help window to a given size externNP DisplayHelpOOM ;Extended out-of-memory error messages. ; Moved FAR to save DGROUP twExtOmErr LABEL WORD dw ER_OM ;"Out of memory" dw MSG_OutNearMem ;"Out of data space" dw ER_OM ;"Out of memory" dw MSG_OutOfStack ;"Out of stack space" dw MSG_ProcTooLarge ;"Procedure too large" dw MSG_ModTooLarge ;"Module level code too large" dw MSG_InclTooLarge ;"Include file too large" dw MSG_DocTooLarge ;"Document too large" .errnz OMErr_OM -0 ;generic OM error .errnz OMErr_NH -1 ;out of near heap space ( DS > 64k ) .errnz OMErr_FH -2 ;out or far heap space ( out of system memory ) .errnz OMErr_STK -3 ;out of stack space .errnz OMErr_Proc-4 ;out of Procedure text table space ( > 64k ) .errnz OMErr_Mod -5 ;out of Module text table space ( > 64k ) .errnz OMErr_Inc -6 ;out of Include file text table space ( > 64k ) .errnz OMErr_Doc -7 ;out of Document file text table space ( > 64k ) ;************************************************************************** ; EditMgrFlush ; Purpose: ; Flush the current line out of the editor's internal buffer if ; it is dirty. ; Since replacing the line could cause a procedure to be renamed ; which gives it a different oRs, this routine does not preserve ; grs.oRsCur (and the caller shouldn't either). The reason ; the oRs of the procedure needs to change is because there ; may be references to the old prs in pcode, so the old prs has ; to stay. ; EditMgrFlush1 has same entry conditions and purpose, only it ; flushes the edit mgr's buffer even if edit mgr's buffer isn't dirty. ; This is used when: ; [1] window allocation changes on the screen, so the edit mgr ; forces the cursor within the current window. ; [2] when QB is going to use the edit mgr's buffer for its own ; purposes, so it doesn't want subsequent edit mgr calls ; to think what it has cached in this buffer represents its ; current line. ; Exit: ; ReplaceLineBuf will be called if line was dirty, which can ; modify ps.bdpSrc among other things... ; Active window's oRs is active. ; ;************************************************************************** PUBLIC EditMgrFlush, EditMgrFlush1 EditMgrFlush1 PROC NEAR sub cx,cx SKIP2_PSW EditMgrFlush1 ENDP EditMgrFlush PROC NEAR mov cl,1 DbAssertRel [pwndAct],ne,0,UI,<EditMgrFlush: pwndAct=NULL> ; brif we're to do it even if no dirty buffer (it causes editmgr ; to force the cursor within the current window). jcxz EfFlushFocus ;While edit mgr is active, it has local copy of ldFlags. DbAssertTst [emFlags],e,EMF_IN_EDITMGR,UI,<EditMgrFlush: EditMgr active> mov bx,[pwndAct] mov bx,[bx.pefExtra] mov bx,[bx.EF_pldCur] test [bx.LD_flags],LD_fDirty ;test fDirty flag in window's structure je EfExit ;brif not dirty (speed optimization) EfFlushFocus: cCall FlushFocus SkipFocus: cCall UiRsActivateWnd ;activate active window's oRs EfExit: ret EditMgrFlush ENDP cProc FlushFocus,<NEAR>,<si> cBegin mov si,[pwndAct] mov bx,WM_FLUSHFOCUS ; New EditMgr message sub cx,cx cCall SendMessage,<si,bx,cx,cx,cx> cEnd ;************************************************************************** ; void FAR UiFlushCache() ; Purpose: ; Called by text manager whenever text is changed, or cached text offsets ; become invalid for any other reason. ; Also called every time a context change occurs. ; It resets any variables which speed performance by assuming we're ; in the same context we were the last time the variables were set. ; We flush our cache so we don't look at invalid data. ; ; Entry: ; none ; ; Exit: ; lnGetNext = 0 ; ;************************************************************************** cProc UiFlushCache,<PUBLIC,FAR> cBegin mov [lnGetNext],0 ;Clear cache cEnd ;************************************************************************** ; void KludgePs() ; Purpose: ; Null terminates ps.bdpSrc.pb and saves info to restore it ; later via UnKludgePs. ; ; Entry: ; [ps.bdpSrc.pb] ; cx - length of string at ps.bdpSrc.pb ; Exit: ; [psSaveLen] ; [psSaveChar] ; ;************************************************************************** cProc KludgePs,<NEAR> cBegin mov bx,[ps.PS_bdpSrc.BDP_pb] add bx,cx xor al,al xchg al,[bx] mov [psSaveChar],al mov [psSaveLen],cx cEnd ;************************************************************************** ; void UnKludgePs() ; Purpose: ; Reverses effects of KludgePs. ; ; Entry: ; [ps.bdpSrc.pb] ; [psSaveLen] ; [psSaveChar] ; Exit: ; ps.bdpSrc.pb is restored to state before KludgePs ; ;************************************************************************** cProc UnKludgePs,<NEAR> cBegin mov bx,[ps.PS_bdpSrc.BDP_pb] add bx,[psSaveLen] mov al,[psSaveChar] mov [bx],al cEnd ;************************************************************************** ; void near UpdAltListWnd(ax=lnTop, dx=delta) ; Purpose: ; Update the alternate-list-window if 2 list windows are active ; and both refering to the same text table. ; Entry: ; ax=lnTop is the top line affected by the edit ; dx=delta is the number of lines inserted or deleted ; For example: inserting 1 line after line 0: lnTop=0, delta=1 ; deleting 1 line after line 0: lnTop=0, delta=-1 ; replacing line 5: lnTop=5, delta=0 ; ;************************************************************************** DbPub UpdAltListWnd cProc UpdAltListWnd,<NEAR> cBegin cmp [fWndSplit], 0 je UAltExit mov bx, DATAOffset wnd1 cmp bx, [pwndAct] jne @f mov bx, DATAOffset wnd2 @@: mov bx,[bx.pefExtra] mov cx,[grs.GRS_oRsCur] cmp cx,[bx.EF_hBuffer] jne UAltExit ;brif both don't refer to same txt tbl or dx,dx jns NotDel ;brif lines are not being deleted mov cx,ax ;cx = lnTop sub cx,dx ;cx = 1st line above deleted lines cmp cx,[bx.EF_pdCur.pd_olntop] jbe NotDel ;brif entire delete is below window top mov dx,ax ;cx = lnTop sub dx,[bx.EF_pdCur.pd_olntop] ;dx = -#lines deleted below window top NotDel: cmp ax,[bx.EF_pdCur.pd_olntop] jae UAltNoChg ;brif top line is unaffected by edit add [bx.EF_pdCur.pd_olntop],dx UAltNoChg: call DrawDebugScr ;sledge hammer ok for uncommon state UAltExit: cEnd ;************************************************************************** ; void near ActivateHbuf ; Purpose: ; Tell the context manager to make the module/procedure associated with ; the list window identified by hbuf active. ; ; Algorithm: ; If hbuf is not already active ; if hbuf is for scrap ; saved = current ; else if hbuf <> saved ; saved = undefined ; Activate hbuf ; if hbuf = saved ; current = saved ; saved = undefined ; Entry: ; BX = hbuf - is the handle for a text table. ; It is really an oRs (see context.h) for the text table . ; ; Exit: ; The text table associated with hbuf is activated. ; ;************************************************************************** cProc ActivateHbuf,<NEAR> cBegin DbAssertRel bx,ne,UNDEFINED,UI,<ActivateHbuf(UNDEFINED)> mov [grs.GRS_fDirect],FALSE cmp bx,[grs.GRS_oRsCur] je AHB_End ;brif hbuf is already active ;This optimization is important, ;because UiRsActivate calls UiFlushCache ;which zeros lnGetNext, which is used ;to speed up cbGetLine. ;Now we do a speed optimization for CUT and COPY so cbGetLineBuf ;can be fast even though we are swapping a user's and scrap's text ;tables on a per-line basis. cmp bx,[hbufOfScrap] jne NotScrap1 ;brif not activating the scrap mov ax,[lnGetNext] ;save cached variables used to mov [saveLnGetNext],ax ; make cbGetLineBuf fast mov ax,[otxGetNext] mov [saveOtxGetNext],ax mov ax,[grs.GRS_oRsCur] mov [saveRsCur],ax jmp SHORT NotScrap2 NotScrap1: cmp bx,[saveRsCur] je NotScrap2 ;brif activating rs other than scrap mov [saveRsCur],UNDEFINED ; or saveRsCur - end of Cut/Copy/Paste NotScrap2: cCall UiRsActivate,<bx> mov ax,[grs.GRS_oRsCur] cmp ax,[saveRsCur] jne NotScrap3 ;brif not activating rs which was active ; before scrap was last activated. mov ax,[saveLnGetNext] ;restore cached variables that make mov [lnGetNext],ax ; cbGetLineBuf fast mov ax,[saveOtxGetNext] mov [otxGetNext],ax mov [saveRsCur],UNDEFINED NotScrap3: AHB_End: cEnd ;************************************************************************** ; ModifyingHbuf ; Purpose: ; Same as ActivateHbuf but also does TxtModified ; ; Entry: ; BX = hbuf - is the handle for a list window (an oRs). ; ; Exit: ; The text table associated with hbuf is activated and descanned. ; ;************************************************************************** ModifyAndGrab PROC NEAR cmp bx,[hbufOfCmd] je ModifyingHbuf ;brif edit is in Command Window ; user should be able to type ; CLEAR even if he's low on memory push bx call UiGrabSpace ;don't let user enter such a long ; program that he can't even execute ; a CLEAR statement. pop bx ModifyAndGrab ENDP ;fall into ModifyingHbuf ModifyingHbuf PROC NEAR call ActivateHbuf ;activate oRs [bx] cCall TxtModified ;remember to save this file MhExit: ret ModifyingHbuf ENDP ;************************************************************************** ;UnGrab ;Purpose: ; Release space allocated by ModifyAndGrab ;Entry: ; ax = hbuf (space not released if hbufOfCmd) ; ;************************************************************************** UnGrab PROC NEAR cmp ax,[hbufOfCmd] je NotGrabbed ;brif edit is in Command Window call UiReleaseSpace NotGrabbed: ret UnGrab ENDP ; Added with [51] ;*** ;fDocumentBuf - Is current text table a document buffer ; ;Purpose: ; Deturmines if the currently activated text table should be ; manipulated as a document buffer. This should be done only ; if we are started with the /EDITOR switch and this is not ; a PCODE text table. ; ; NOTE: we can not assert that all items that we are editing with ; /EDITOR are document tables, as we will initialize with a ; pCode table. ; ;Entry: ; None. ; ;Exit: ; psw.Z set if not a document ; ;Uses: ; None. ;**** cProc fDocumentBuf,<NEAR> cBegin test [cmdSwitches],CMD_SW_ED ;Started with /editor? jz NotDocument ;no, can't be a large buffer test [mrsCur.MRS_flags2],FM2_NoPcode ; Is it a document? NotDocument: cEnd ; Added with [51] ;**** ;fEditorActive : test wether we were started with /editor ; ;Purpose: ; Exports the checking for the /EDITOR switch to the components ; of the product that do not have access to cmdSwitches. ; ;Entry: ; None. ; ;Exit: ; psw.z set if not started with /EDITOR (jnz EditorActive) ;**** cProc fEditorActive,<FAR, PUBLIC> cBegin test [cmdSwitches],CMD_SW_ED ;Started with /editor cEnd ;**** ;fQhelpActive : test wether we were started with /QHELP ; ;Purpose: ; Exports the checking for the /QHELP switch to the components ; of the product that do not have access to cmdSwitches. ; ;Entry: ; None. ; ;Exit: ; psw.z set if not started with /QHELP (jnz QhelpActive) ;**** cProc fQhelpActive,<FAR, PUBLIC> cBegin test [cmdSwitches],CMD_SW_QHELP ;Started with /QHELP cEnd ;************************************************************************** ; DeleteLinesBuf - Delete a range of lines from the buffer ; Purpose: ; Called by TextWin's editor when it needs to delete a ; range of source lines. ; cln lines are deleted from buffer hbuf starting at line ln. ; ; Entry: ; hbuf - buffer to delete lines from. ; ln - line number to delete. ; cln - Number of lines to delete. ; ; Exit: ; ;************************************************************************** cProc DeleteLinesBuf,<PUBLIC,FAR>,<si> parmW hbuf parmW ln parmW cln cBegin mov bx,[hbuf] call ModifyingHbuf call fDocumentBuf ; Is this a large document buffer? jz DLB_NotDocument ; brif not, let txtmgr handle it push [mrsCur.MRS_pDocumentBuf] push ln push cln call S_DeleteLinesBuf ; Delete line from document buffer jmp SHORT DLB_Exit DLB_NotDocument: ;*** Don't need to do this because TxtChange calls UiFlushCache. ;*** mov [lnGetNext],0 ; clear cache ; TxtChange(OtxOfLn(ln),OtxOfLn(ln+cln),fNoInsert) mov si,[ln] cCall OtxOfLn,<si> push ax ; 1st parm for TxtChange (otxStart) add si,[cln] cCall OtxOfLn,<si> push ax ; 2nd parm for TxtChange (otxEnd) push sp ; 3rd parm for TxtChange (fNoInsert) call TxtChange ; just delete, don't insert anything mov ax,[ln] ; pass line# above edit in ax mov dx,[cln] neg dx ; pass -#lines deleted in dx call UpdAltListWnd DLB_Exit: cEnd ;************************************************************************** ; ReplaceLineBuf(hbuf, ln, cbNewSrc, pbNewSrc) ; Purpose: ; Replace the line ln in the buffer hbuf with the text pbNewSrc. ; ; Entry: ; hbuf - the buffer containing the line to be replaced. ; ln - the line to replace. ; cbNewSrc - the length of the new line. ; pbNewSrc - the text of the new line. ; ; Exit: ; uierr is set non-zero if any error occurred. ; returns zero if we changed hBufs (ie - line was a SUB or FUNCTION ; definition). This tells the editmgr to stop any futher edits ; to the entry hBuf (keeps us from inserting a BOL for a CR at ; a random location in the text table. ; ;************************************************************************** cProc ReplaceLineBuf,<PUBLIC,FAR>,<si,di> parmW hbuf parmW ln parmW cbNewSrc parmDP pbNewSrc LocalW cbTextOld cBegin DbAssertRel [pbNewSrc],e,[ps.PS_bdpSrc.BDP_pb],UI,<ReplaceLineBuf: bad pbNewSrc> mov si,[ln] mov bx,[hbuf] call ModifyAndGrab call fDocumentBuf ; Is this a large doc buffer? jz RLB_NotDocument ; brif not, let txtmgr handle it push [mrsCur.MRS_pDocumentBuf] push ln push cbNewSrc PUSHI ax,<dataOffset ps.PS_bdpSrc.BDP_pb> ; Ptr to ptr to buffer call S_ReplaceLineBuf ; Replace line in document buffer jmp SHORT RLB_UnGrab RLB_NotDocument: mov cx,[cbNewSrc] cCall KludgePs ;*** Don't need to do this because TxtChange calls UiFlushCache. ;*** mov [lnGetNext],0 ; clear cache cCall OtxOfLn,<si> ; Get otx of begining of line xchg di,ax ; mov di,ax inc si cCall OtxOfLn,<si> ; Get otx of next line xchg si,ax ; mov si,ax mov ax,[txdCur.TXD_bdlText_cbLogical] mov [cbTextOld],ax ; If there is currently an error and it is on the same line as we ; are about to change, clear the error under the assumption it's about ; to be fixed (if it isn't fixed then a new error is generated). ; cmp di,[txtErr.TXER_otx] jne RLB1 cmp [uierr],ER_OM je RLB1 ;don't clear of uierr=ER_OM mov [uierr],0 RLB1: ; ; Now make the change. ; sub ax,ax ;clear fNoInsert flag cCall TxtChange,<di,si,ax> or ax,ax je RLB2 ; ; There was an error ; mov [uierr],ax jmp SHORT RLB_End RLB2: ; There was no error this time. ; cmp [uierr],ax ; ax is zero je RLB_End ; ; There was an error before this call to ReplaceLineBuf. ; Make sure that the otx reflects the changes this call has made. ; cmp di,[txtErr.TXER_otx] ja RLB_End ; brif edit passed error loc mov ax,[txdCur.TXD_bdlText_cbLogical] sub ax,[cbTextOld] add [txtErr.TXER_otx],ax RLB_End: mov ax,[ln] ; pass line# in ax sub dx,dx ; pass line count in dx call UpdAltListWnd cCall UnKludgePs RLB_UnGrab: mov ax,[hbuf] call UnGrab ;free space reserved by ModifyAndGrab sub ax,ax ; Assume we changed hBufs mov bx,[hBuf] cmp bx,[grs.GRS_oRsCur] ;see if hBuf on entry = hBuf on Exit jne RLB_Exit ;return FALSE if not dec ax ;return TRUE (same hBuf) RLB_Exit: cEnd ;************************************************************************** ; InsertLineBuf(hbuf, ln, cbNewSrc, pbNewSrc) ; Purpose: ; Inserts the line specified by pbNewSrc and cbNewSrc into the buffer ; specified by hbuf before the line ln. ; ; Entry: ; hbuf - buffer to insert line into ; ln - line to insert before ; cbNewSrc - length of new line ; pbNewSrc - text to insert ; ; Exit: ; if the line was inserted, returns non-zero ; else sets [uierr] and returns FALSE ; ;************************************************************************** cProc InsertLineBuf,<PUBLIC,FAR> parmW hbuf parmW ln parmW cbNewSrc parmDP pbNewSrc cBegin DbAssertRel [pbNewSrc],e,[ps.PS_bdpSrc.BDP_pb],UI,<InsertLineBuf: bad pbNewSrc> mov bx,[hbuf] call ModifyAndGrab call fDocumentBuf ; is this a large document buffer jz ILB_NotDocument ; brif not, let txtmgr handle it push [mrsCur.MRS_pDocumentBuf] push ln push cbNewSrc PUSHI ax,<dataOffset ps.PS_bdpSrc.BDP_pb> ; Ptr to ptr to buffer PUSHI ax,0 ; FALSE -> check # lines call S_InsertLineBuf ; Insert line in doc buffer push ax ; save result for ILB_UnGrab jmp SHORT ILB_UnGrab ILB_NotDocument: mov cx,[cbNewSrc] cCall KludgePs ;Speed optimization so we don't call OtxOfLn for scrap. ;We only insert lines at the end of the scrap. This makes ;Cut/Copy MUCH faster. mov ax,[hbuf] cmp ax,[hbufOfScrap] jne NotScrap4 mov ax,[txdCur.TXD_bdlText_cbLogical] sub ax,CB_EMPTY_TEXT jmp SHORT GotScrap NotScrap4: cCall OtxOfLn,<ln> ;ax = text offset to line GotScrap: sub bx,bx ;clear fNoInsert flag cCall TxtChange,<ax,ax,bx> or ax,ax je ILB_End ;brif no error mov [uierr],ax mov ax,-1 ILB_End: inc ax ; return 0 if fail, 1 if Ok push ax ; save return value ;The next few lines treat a special case bug. ;If the editor is extending beyond the end of the current window, ;calling UpdAltListWnd will cause DrawDebugScr to cause the ;edit mgr to Draw the debug screen, which will cause its partial ;line to be dumped to ReplaceLineBuf. cmp [cbNewSrc],0 jne NotExtend mov ax,[txdCur.TXD_cLines] dec ax cmp ax,[ln] ; pass line# in ax je ItsExtend NotExtend: mov ax,[ln] ; pass line# in ax mov dx,1 ; pass line count in dx call UpdAltListWnd ItsExtend: cCall UnKludgePs ILB_UnGrab: mov ax,[hbuf] call UnGrab ;free space reserved by ModifyAndGrab pop ax ;restore return value ILB_Exit: or ax,ax ;set condition codes for caller cEnd ;************************************************************************** ; fReadOnlyBuf(hbuf) ; Purpose: ; Tells the EditMgr whether a buffer {is, is not} read only. ; A buffer is read only if it is code and we are viewing include file lines. ; ; Entry ; hbuf - The buffer ; ; Exit: ; if hbuf is read only, Returns TRUE and sets uierr to: ; MSG_InclOff if current line didn't come from $INCLUDE file ; (causes ReportError to ask user if he wants View/IncludeLines turned off) ; MSG_EditIncl if current line came from $INCLUDE file ; (causes ReportError to ask user if he wants to edit $INCLUDE file) ; ;************************************************************************** cProc fReadOnlyBuf,<PUBLIC,FAR> parmW hbuf cBegin mov bx,[hbuf] cmp bx,hbufHelp ; Check for Help buffer. jne @F mov ax,sp ; If so, is help window, return TRUE jmp short ExitFReadOnlyBuf @@: call ActivateHbuf xor ax,ax ;prepare to return FALSE ExitFReadOnlyBuf: cEnd ;************************************************************************** ; LinesInBuf(hbuf) ; Purpose: ; Return number of lines in a given edit buffer ; ; Entry ; hbuf - The buffer ; ; Exit: ; return the number of lines in the buffer. ; ;************************************************************************** cProc LinesInBuf,<PUBLIC,FAR> parmW hbuf cBegin mov bx,[hbuf] cmp bx,hbufHelp ; test for help buffer jne @F PUSHI ax,WM_HELPFILESIZE ; message to send push ax ; garbage parameter cCall SendHelpMsg ; AX = # lines jmp short LIB_End @@: ; Return 1 is hbuf is UNDEFINED (for single line edit fields). mov ax,1 inc bx jz LIB_End dec bx ; else return the number of lines in the buffer. call ActivateHbuf mov ax,[txdCur.TXD_cLines] call fDocumentBuf ; Is this a document buffer? jz LIB_END ; brif not, AX = # lines push [mrsCur.MRS_pDocumentBuf] call S_LinesInBuf ; get # lines in document buffer LIB_End: cEnd ;************************************************************************** ; ListAxSiDi ; Entry: ; ax = otx to next opcode to be executed by interpreter, or ; FFFF if next opcode is not in this text table. ; si = otx to start of line to be listed. ; di = ptr to buffer descriptor for destination. ; Exit: ; ax = number of bytes listed (as returned by ListLine) ; dx = column offset that corresponds to entry's ax ; ;************************************************************************** ListAxSiDi PROC NEAR mov [otxLsCursor],ax cCall ListLine,<si,di> ; cbLine = ListLine(otx, pbd) ret ListAxSiDi ENDP ;************************************************************************** ; ushort cbGetLineBuf(hbuf, ln, cbMax, szDst) ; Purpose: ; Called by TextWin's editor, even when the current buffer has been ; modified and the line needs to be refreshed. This routine gets ; the specified ASCII line of text even it is the current line (i.e. UNDO). ; ; Entry: ; hbuf - buffer handle. ; ln - line to copy ; cbMax - Max number of character to copy to buffer. ; szDst - where to put the zero terminated line ; grs.otxCONT = text offset to next instruction to be executed ; ; Exit: ; if grs.otxCONT points into line being listed: ; colStmtStart = column of start of next statement ; colStmtEnd = column of end of next statement ; else ; colStmtStart = colStmtEnd = UNDEFINED ; return number of characters put in buffer (excluding terminating zero) ; If out-of-memory, sets [uierr] to ER_OM and returns 0 ; ;************************************************************************** cProc cbGetLineBuf,<PUBLIC,FAR>,<si,di> parmW hbuf parmW ln parmW cbMax parmDP szDst cBegin ;Caller can only call us to list to 1 of 2 buffers: ; ps.bdpSrc or bdEMScratch, see which it is ; The reason twin passes an absolute pointer is because twin is used ; by other products that have static buffers. mov di,DATAOFFSET ps.PS_bdpSrc mov ax,[szDst] cmp ax,[di.BD_pb] je GotBdPtr ; brif ps.bdpSrc is our buffer mov di,DATAOFFSET bdEMScratch DbAssertRel ax,e,[di.BD_pb],UI,<cbGetLineBuf called with bad pointer> ;di = ptr to output buffer descriptor GotBdPtr: mov bx,[hbuf] cmp bx,hbufHelp ; Check for help buffer jne @F ; if not, skip ahead mov ax,WM_HELPLINE ; message to send mov bx,OFFSET DGROUP:wndHelp ; window to send to cCall SendMessage,<bx,ax,[ln],[szDst],[cbMax]> inc [fWndHelp] ; Set flag for GetLineAttrs jmp GlbExit @@: mov [fWndHelp],0 ; make sure flag is reset call ActivateHbuf call fDocumentBuf ; Is this a large document buffer? jz GLB_NotDocument ; brif not, let txtmgr handle it push [mrsCur.MRS_pDocumentBuf] push ln push cbMax push szDst call S_cbGetLineBuf ; Get line from document buffer jmp SHORT GlbExit GLB_NotDocument: ; [otxGetNext] is a cached otx for line [lnGetNext]. ; See if we can use it. mov si,[otxGetNext] mov ax,[ln] mov cx,[lnGetNext] inc ax ;cache the otx for [ln]+1 mov [lnGetNext],ax dec ax jcxz RefreshCache ;brif cached otx is invalid cmp ax,cx je GotOtx ; Cached otx was no good, we have to search for the otx. ; RefreshCache: cCall OtxOfLn,<ax> xchg si,ax ; mov si,ax ;Save cached otx for next call GotOtx: mov [otxLnLast],si ; ListLine checks to see if otxLsCursor is in the current line, and if so ; it returns dx=the equivalent column for the opcode at that otx. ; If the current text table is the `active text table' (i.e. the text table ; containing the next statement to be executed), then otxLsCursor is setup ; appropriately. grs.oRsContTxtTbl gets set whenever grs.oRsCONT gets set. ; The only time it is different then grs.oRsCONT is when grs.oRsCONT is ; for a DEF FN, in which case, this gets set to the oRs for the module ; that contains the DEF FN. ; mov ax,UNDEFINED ;assume line doesn't contain next stmt ; to be executed by interpreter mov [colStmtStart],ax mov [colStmtEnd],ax xchg dx,ax ;dx = UNDEFINED mov ax,[grs.GRS_oRsContTxtTbl] cmp ax,[grs.GRS_oRsCur] jne ListTheLine ;brif this isn't the oRs with next ; stmt to exec mov ax,[grs.GRS_otxCONT] inc ax ;test for UNDEFINED jz ListTheLine ;brif grs.GRS_otxCONT == UNDEFINED xchg dx,ax ;dx = otxCONT dec dx ;undo above inc ;Don't be tempted to enable this... Keep the comment around ; as a reminder, because it is very tempting... ; This causes bug where if you edit the line with ; the current instruction, afterward, it looks like the ; previous line contains the next instruction. ; Maybe fix this another way, or always keep a NOP after ; opStSub, opStFunction, opStDefFn, opStStop ;;;;Set dx to otxCONT - 1, so if STOP and BreakPoint after DEF FN, ;;;; SUB, or FUNCTION will highlight the STOPPED stmt. ;;;;je ListTheLine ;brif grs.GRS_otxCONT == 0 ;;;;dec dx ;dx = new otxLsCursor, si = otx to list, di = bdDestination ListTheLine: xchg ax,dx ; ax = new otxLsCursor call ListAxSiDi ; cbLine = ListLine(otx, pbd) inc ax ; test for UNDEFINED je GlbOmErr ; return 0 if out-of-memory dec ax ; restore ax = cbLine push ax ; save cbLine (return value) mov ax,[otxListNext] ; cache this value for next time mov [otxGetNext],ax inc dx ; test for UNDEFINED je NotOnLine ; brif line doesn't contain next stmt ;Since we know this line contains next stmt to be executed, ;call ListLine twice more to find column offset for start and ;end of stmt, LineAttr can highlight the statement. push [otxLsCursor] call OtxBosOfOtx ; ax = otx for next stmt's bos call ListAxSiDi ; cbLine = ListLine(otx, pbd) ; since this line was just listed, ; we are assured not out-of-memory mov [colStmtStart],dx inc dx je NotOnLine push [otxLsCursor] ; push otx arg. call OtxBosNext ; ax = otx for next stmt's eos call ListAxSiDi ; cbLine = ListLine(otx, pbd) ; since this line was just listed, ; we are assured not out-of-memory mov [colStmtEnd],dx inc dx jne NotOnLine ; brif not UNDEFINED dec dx ; dx = UNDEFINED mov [colStmtStart],dx ; if colStmtEnd is UNDEFINED, ; so is colStmtStart NotOnLine: pop ax ; restore ax = cbLine (return value) GlbExit: cEnd GlbOmErr: call SetUiErrOm ; report error in msg loop jmp SHORT GlbExit ; return ax=0 ;************************************************************************** ; LineAttr(attrDefault) ; Purpose: ; Returns an array discribing the screen attributes for the last line ; fetched by cbGetLineBuf. ; ; Entry: ; attrDefault is the screen attribute to use for non-standout text. ; colStmtStart and colStmtEnd are as set by last call to cbGetLineBuf. ; ; Exit: ; returns pointer to array of LineAttr's. ; Each LineAttr consists of a count (cb) and an attribute (attr) ; attr is the attribute to be used for the next cb characters in the line. ; The array is terminated with an attr of 0xffff ; cb may be zero. ; If cb is 0xffff then attr is used for the rest of the line. ; ;************************************************************************** cProc GetLineAttrs,<PUBLIC,FAR>,<si,di> parmW attrDefault cBegin cmp [fWndHelp],0 ; Is being called for help window je @F mov [fWndHelp],0 ; Clear fWndHelp mov ax,WM_HELPATTR ; message to send cCall SendHelpMsg,<ax,ax> ; Send message to help system jmp short AttrEnd @@: mov si,[attrDefault] mov di,dataOFFSET rgLineAttr cCall fCodeWnd jz UseDefaultAttrs ;brif DOCUMENT text table cmp [fLsIncluded],0 je NotIncluded mov si,isaIncludeFileHilite NotIncluded: cCall fBpSet,<otxLnLast> or ax,ax je NoBpSet mov si,isaBreakpoint NoBpSet: mov ax,[colStmtStart] mov dx,[colStmtEnd] inc ax ;test for UNDEFINED je UseDefaultAttrs inc dx ;test for UNDEFINED je UseDefaultAttrs dec ax ;ax = [colStmtStart] ;dx = [colStmtEnd] + 1 ; Ahh, this line has the current statement on it. ; We must setup so that it gets highlighted properly ; ax = [colStmtStart], dx = [colStmtEnd] ; mov [di.LA_cb],ax mov [di.LA_attr],si sub dx,ax ;dx = [colStmtEnd]+1-[colStmtStart] mov ax,isaCurBreakpoint cmp si,isaBreakpoint je GotCurBp ;brif current stmt has breakpoint too mov ax,isaCurStmt GotCurBp: mov [di + (size LINEATTR) + LA_cb],dx mov [di + (size LINEATTR) + LA_attr],ax mov ax,UNDEFINED mov [di + (2*(size LINEATTR)) + LA_cb],ax mov [di + (2*(size LINEATTR)) + LA_attr],si mov [di + (3*(size LINEATTR)) + LA_attr],ax jmp short GLA_End UseDefaultAttrs: mov ax,UNDEFINED mov [di + LA_cb],ax mov [di + LA_attr],si mov [di + (size LINEATTR) + LA_attr],ax GLA_End: xchg ax,di ;return ax = &rgLineAttr AttrEnd: cEnd ;************************************************************************** ; StartBigEdit ; Purpose: ; Called by the Edit Mgr at the start of some operation which results ; multiple calls to InsertLineBuf/ReplaceLineBuf/DeleteLinesBuf. ; Examples include multi-line-paste/cut/copy, line-split, line-join. ; ; Entry: ; ; Exit: ;************************************************************************** cProc StartBigEdit,<PUBLIC,FAR> cBegin cCall TxtStartBigEdit cEnd ;************************************************************************** ; EndBigEdit ; Purpose: ; Called by the Edit Mgr at the end of some operation which results ; multiple calls to InsertLineBuf/ReplaceLineBuf/DeleteLinesBuf. ; Since during a BIG EDIT, all lines are emitted within opReParse ; operands, and not really parsed to pcode until TxtEndBigEdit, ; syntax errors may be discovered during TxtEndBigEdit(). ; ; Exit: ; if error encountered, uierr is set to standard error code ; ;************************************************************************** cProc EndBigEdit,<PUBLIC,FAR> cBegin cCall TxtEndBigEdit ;ax = non-zero if serious error or ax,ax je EndBigEdit_End mov [uierr],ax EndBigEdit_End: cEnd ;************************************************************************** ; InsertBufInBuf() ; Purpose: ; Insert the contents of 1 buffer (usually the scrap) into another buffer ; ; Entry: ; hbufDst - buffer to insert other buffer into. ; lnDst - line before which the buffer is to be inserted. ; hbufSrc - the buffer the be inserted. ; ; Exit: ; returns zero if out-of-memory, non-zero if success ; ;************************************************************************** cProc InsertBufInBuf,<PUBLIC,FAR>,<si,di> parmW hbufDst parmW lnDst parmW hbufSrc cBegin call StartBigEdit ;so we don't stop inserting just ; because of a syntax error mov bx,[hbufDst] call ModifyAndGrab call fDocumentBuf ; Is this a large document buffer jz IBIB_NotDocument ; brif not, let txtmgr handle it push [mrsCur.MRS_pDocumentBuf] push lnDst mov bx,hbufSrc ; bx = oPrs and bh,7Fh ; mask off bit saying it is PRS. RS_BASE add,bx push [bx.MRS_pDocumentBuf] call S_InsertBufInBuf jmp SHORT IBIB_TestRetVal IBIB_NotDocument: push [lnDst] call oTxOfLn ;get oTxInsert for destination buf push ax ;pass oTxInsert push [hBufSrc] ;pass src hBuf call TxtPaste ;insert src buffer at insertion point IBIB_TestRetVal: or ax,ax ;Out of memory jne IBIB_NotOm ;brif not out of memory IBIB_OM: call SetUiErrOm ;set out of memory error IBIB_NotOm: call EndBigEdit ;destination text table is active sub ax,ax ;prepare to return 0 (error) cmp [uierr],ax jne IBIB_Done ;brif got an error dec ax ;return non-zero (success) IBIB_Done: push ax mov ax,[hbufDst] call UnGrab ;free space reserved by ModifyAndGrab pop ax cEnd ;************************************************************************** ; ushort near hbufScrap() ; Purpose: ; Return the handle for the Scrap buffer, allocating the buffer if necessary. ; ; Exit: ; If out-of-memory, returns NULL ; ;************************************************************************** cProc hbufScrap,<PUBLIC,FAR> localV sdName,<size sd> cBegin mov ax,[hbufOfScrap] cmp ax,UNDEFINED jne hbufScrap_End ; Make a text table (the name is unimportant, but cbName must be non-zero - ; otherwise it is the UNTITLED module), so use the 1 byte string starting ; at address 1 as the name of the scrap. lea bx,sdName mov [bx.SD_pb],DATAOFFSET hbufOfScrap ;pb -> FF (impossible mrs name) mov [bx.SD_cb],1 push bx ;pass &sdName PUSHI ax,RS_scrap ;rsType cCall RsMake ;ax = oRs of scrap mov [hbufOfScrap],ax mov [rsNew],UNDEFINED ;don't tell WnReset to display ; scrap in a list window DbAssertRel ax,ne,0,UI,<hbufScrap oRs==0> hbufScrap_End: cEnd ;************************************************************************** ; UiDelAll ; Purpose: ; Delete all text from a specified text table ; Entry: ; bx = hbuf ; ;************************************************************************** cProc UiDelAll,<NEAR> cBegin call ActivateHbuf ;activate text table bx call TxtDelAll ;delete all text in the text ; table except endprog and eot call fDocumentBuf ; is this a large document jz DelAllExit ; brif not, all done push [mrsCur.MRS_pDocumentBuf] call FreeBuf ; Release buffer call NewBuf ; get a new one mov [mrsCur.MRS_pDocumentBuf],ax ; and use that one instead DbAssertRel ax,ne,0,UI,<UiDelAll:NewBuf failed> DelAllExit: cEnd ;************************************************************************** ;FreeCmdHistory ;Purpose: ; This is called when we're getting real tight on memory ; and something needs to be done to free up enough to do ; the most primitive operations ;Exit: ; Caller's grs.oRsCur and txtErr are preserved ; ;************************************************************************** cProc FreeCmdHistory,<PUBLIC,NEAR> cBegin mov bx,[hbufOfCmd] inc bx ;if hbufOfCmd is UNDEFINED, exit je EndFreeCmdHistory dec bx push [grs.GRS_oRsCur] ;pass oRsCur to UiRsActivate below push [txtErr.TXER_errCode] push [txtErr.TXER_otx] push [txtErr.TXER_oRs] push WORD PTR [txtErr.TXER_fDirect] call UiDelAll PUSHI ax,<DATAOFFSET txdCur.TXD_bdlText> call BdlTrim ;If we don't trim the buffer, ; the space isn't made available ; to other callers until TxtDeactivate pop ax mov [txtErr.TXER_fDirect],al pop [txtErr.TXER_oRs] pop [txtErr.TXER_otx] pop [txtErr.TXER_errCode] call UiRsActivate ;parm pushed on entry EndFreeCmdHistory: cEnd ;************************************************************************** ; void near FreeScrap() ; Purpose: ; Release the contents of the 'scrap' buffer. ; ;************************************************************************** cProc FreeScrap,<PUBLIC,FAR> cBegin mov bx,[hbufOfScrap] inc bx ;test for UNDEFINED jz FreeScrap_End ;brif no scrap is allocated dec bx ;restore bx=hbufOfScrap call UiDelAll ;Delete all the lines in hbufOfScrap FreeScrap_End: cEnd ;************************************************************************** ; CutAll(hbufSrc) ; Purpose: ; Cut the entire active text table to the scrap. ; Entry: ; hbufSrc = hbuf (i.e. oRs) of source text table. ; Exit: ; returns zero if out-of-memory, non-zero if success ; ;************************************************************************** cProc CutAll,<PUBLIC,NEAR>,<si,di> parmW hbufSrc localW lnDst cBegin call FreeScrap DbAssertRel [hbufOfScrap],ne,UNDEFINED,UI,<CutAll: no hbufOfScrap> call StartBigEdit ;so we don't stop inserting just ; because of a syntax error ; Cycle through all the lines in the source buffer, inserting each line in ; the Scrap buffer. sub di,di mov [lnDst],di ;init lnDst to 0 CA_NextLine: cCall LinesInBuf,<hbufSrc> cmp ax,di jna CA_Done ;brif done with loop ;Use the line buffer of the source buffer as a scratch buffer. push [hbufSrc] ;pass hbuf push di ;pass line to get push [ps.PS_bdpSrc.BDP_cbLogical] ;pass cbMax push [ps.PS_bdpSrc.BDP_pb] ;pass pbDst call cbGetLineBuf ;ax = #bytes fetched, uierr may = ER_OM inc di ;bump line count push [hbufOfScrap] ;pass Scrap as destination buffer push [lnDst] push ax ;pass cb push [ps.PS_bdpSrc.BDP_pb] ;pass pbSrc call InsertLineBuf je CA_Done ;brif line not inserted (out of memory) inc [lnDst] jmp short CA_NextLine CA_Done: mov bx,[hbufOfScrap] ;activate Scrap text table call ActivateHbuf ; for EndBigEdit call EndBigEdit sub ax,ax ;prepare to return 0 (error) cmp [uierr],ax jne CA_Exit ;brif got an error ; Now delete all source from text table mov bx,[hbufSrc] call UiDelAll ;delete all text in text table CA_Exit: cEnd ;************************************************************************** ; PasteAll ; Purpose: ; Copy the entire scrap to the active text table. ; Entry: ; grs.oRsCur identifies source text table. ; ;************************************************************************** cProc PasteAll,<PUBLIC,NEAR> cBegin push [grs.GRS_oRsCur] ;pass hbufSrc PUSHI ax,0 ;lnInsert = 0 push [hbufOfScrap] ;pass hbufDst call InsertBufInBuf cEnd ;********************************************************************* ; void NEAR MoveCursorPwndCur(ln, col) ; Purpose: ; Position cursor to a particular line/column within the active window. ; ; Entry: ; pwndAct points to active window's structure ; ln - line to position cursor to. ; col - column to position cursor to. ; ; Exit: ; ;********************************************************************* cProc MoveCursorPwndCur,<PUBLIC,NEAR> parmW ln parmW col cBegin DbAssertRel [pwndAct],ne,0,UI,<MoveCursorPwndCur: pwndAct=0> cCall MoveCursorPwnd,<pwndAct,ln,col> cEnd ;********************************************************************* ; void NEAR MoveCursorPwnd(pwnd, ln, col) ; Purpose: ; Position cursor to a particular line/column within the window ; specified ; ; Entry: ; pwnd - points to window's structure ; ln - line to position cursor to. ; col - column to position cursor to. ; ; Exit: ; ;********************************************************************* cProc MoveCursorPwnd,<PUBLIC,NEAR> parmW pwnd parmW ln parmW col cBegin DbAssertRel [ln],ne,0ffffH,UI,<MoveCursorPwnd: ln=ffff> DbAssertRel [col],ne,0ffffH,UI,<MoveCursorPwnd: col=ffff> DbAssertRel [pwnd],ne,0,UI,<MoveCursorPwnd: pwnd=0> push [pwnd] PUSHI ax,EM_SELCHARS ; message push [ln] ; wParam - line. mov ax,[col] push ax ; lParam - start and end column push ax call SendMessage cEnd ;********************************************************************* ; MoveTxdCursor ; Purpose: ; Position cursor where it was last time text was visible. ; Entry: ; pUwinAct points to active window's structure ; pUwinAct->lnCursor = line to position window at ; ;********************************************************************* cProc MoveTxdCursor,<PUBLIC,NEAR> cBegin DbAssertRel [pwndAct],ne,0,UI,<MoveTxdCursor: pwndAct=0> call UiRsActivateWnd ;activate active window's register set mov ax,[txdCur.TXD_lnCursor] inc ax ;test for UNDEFINED je MtxdFirst ;brif 1st time this txd has been shown ; line = 0 dec ax ;restore ax = last line cursor was on MtxdFirst: mov [txdCur.TXD_lnCursor],ax ;if it was UNDEFINED, set it to 0 ; now, so we don't think its the first ; time we've seen it on subsequent calls push ax ;pass line PUSHI ax,0 ;pass column = 0 call MoveCursorPwndCur ;move pwndCur's cursor cEnd ;SetUiErrCond added with revision [47] ;********************************************************************* ; SetUiErr, SetUiErrCond ; Purpose: ; Set uierr, and txterr properly. ; SetUiErrCond conditionally sets uierr and txterr if: ; 1. error code is non-zero ; 2. uierr is not already set. ; ; Entry: ; errCode is the error code ; Exit: ; Sets uierr and txterr ; callers assume that only AX is used. ; AX = error code ; ;********************************************************************* cProc SetUiErrCond,<PUBLIC,NEAR> ; Same parms as SetUiErr parmW errCode cBegin mov ax,[errCode] ; to return error in AX or ax,ax ; got an error? jz NoError ; brif not -- just cmp uierr,0 ; already got another error? je SetUiErr_Start ; brif not -- go ahead & set uierr NoError: cEnd cProc SetUiErr,<PUBLIC,NEAR> parmW errCode cBegin SetUiErr_Start: ; entry point for SetUiErrCond mov [txtErr.TXER_oRs],UNDEFINED mov ax,[errCode] mov [uierr],ax cEnd cProc SetUiErrOm,<PUBLIC,NEAR> cBegin PUSHI ax,ER_OM call SetUiErr cEnd ;********************************************************************* ; SetUiErrFar ; Added with revision [26]. ; Purpose: ; Set uierr, and txterr properly. ; Entry: ; AX is the error code ; Exit: ; Sets uierr and txterr ; callers assume that only AX is used. ; ;********************************************************************* cProc SetUiErrFar,<PUBLIC,FAR> cBegin cCall SetUiErr,<ax> cEnd ;********************************************************************* ; void near ReportError() ; Purpose: ; Display an error dialog box and, if appropriate, position the cursor ; where the error was encountered. ; ; Entry: ; uierr contains an offset into the standard BASIC message table. ; If uierr=ER_GoDirect, this function just returns. ; If high bit is set, the ASCII error message is contained in the ; parser's global structure ps.bdErr. ; If txtErr.oRs is UNDEFINED ; the cursor will not be positioned ; Else ; if txtErr.fDirect is TRUE ; The cursor is put on the last line entered in the command window ; txtErr.oSrc = column where cursor is to be positioned (0..n) ; else ; A list window with register set txtErr.oRs is made active ; The cursor is put on the line indicated by txtErr.otx ; if txtErr.oSrc = UNDEFINED, ; cursor is placed at start of statement indicated by txtErr.otx ; else ; txtErr.oSrc = column where cursor is to be positioned (0..n) ; If b$fCompErr is non-zero, error was in compiled code ; b$ErrLin = line # of last runtime error (ERL) ; b$ErrMod = far ptr to 0-terminated module name ; b$ErrAdr = far ptr where runtime call was made ; Else ; error was in interpreted pcode, a simple dialog is displayed ; ; If uierr == MSG_MrsNotFound ; an OK/Cancel dialog box will be put up. If the user selects ; OK, the current mrs will be unloaded. ; ;********************************************************************* cProc ReportError,<PUBLIC,NEAR>,<si> localW pwndOldFocus localW colSelect localW lnSelect localW cbSelect localW fSelect cBegin ReWhileErr: sub si,si mov [pwndOldFocus],si mov [fSelect],0ffffH ;initialize to UNDEFINED xchg si,[uierr] ;si=uierr, uierr=0 cmp si,ER_OM jne NotOmErr sub bx,bx mov bl,[b$ErrInfo] ;bx = extended error code shl bx,1 ;bx = 2*extended error code mov si,cs:twExtOmErr[bx] ; si = extended error msg ;If user wants to enter a direct mode stmt (like SYSTEM), make sure ; there is room in the command window's buffer to hold the command. ; If we didn't do this, it could be an infinite out-of-memory loop. call FreeCmdHistory NotOmErr: cCall FlushMsgs ;Don't let any pending keys ;foul us up. cmp si,MSG_GoDirect jne NotGoDirect jmp ReEnd ;brif user pressed CANCEL ; button in some Dialog box NotGoDirect: cmp si,MSG_HelpOOM ; Memory problems in help? jne NotHelpOOM ; no, continue checking cCall DisplayHelpOOM ; handled in shared code jmp ReEnd ; exit NotHelpOOM: mov ax,[txtErr.TXER_oRs] cmp [hbufOfScrap],ax ;see if error during cut/paste ; (like out-of-memory) je ReNoCursor ;can't position to scrap cmp [hbufOfCmd],ax je ReCmdWndErr ;brif error in command window ; since no syntax checking ; in cmd window, probably ; out-of-memory inc ax ;test for UNDEFINED je ReNoCursor ;brif can't position cursor cmp [txtErr.TXER_fDirect],FALSE je ReListCursor ;brif error wasn't in cmd wnd ReCmdWndErr: ;Position cursor at offending point in command window mov ax,[txtErr.TXER_oSrc] ; if txtErr.TXER_oSrc=UNDEFINED inc ax ; then column = 0 je SkipDec1 dec ax ; otherwise, restore its value SkipDec1: cCall MoveCursorPwndCur,<lnCmdLast, ax> jmp SHORT ReNoCursor ReListCursor: ;Position cursor at offending point in list window mov ax,txtErr.TXER_otx ;if txtErr.TXER_otx=UNDEFINED mov [fSelect],ax ;set Select flag inc ax ;then otx=0 jz short SkipDec dec ax SkipDec: cCall ShowTok,<txtErr.TXER_oRs,ax,txtErr.TXER_oSrc> ;Since activation of a dialog box kills an edit window's input focus, ;which causes it to turn off the current selection, we have to play ;some tricks to cause the offending token to be highlighted while the ;dialog box is up. First we find out what line, column and word size the ;cursor is currently on. Then call FlushFocus() to kill the input focus. ;Then select the text. ; cmp [fSelect],0ffffH ;See if we have selection je short ReNoCursor ;if not, don't highlight inc [fAdjustMsgBox] ;set flag for moving error box call GetEditColumn ;ax = edit column mov [colSelect],ax call GetEditLine ;ax = edit line mov [lnSelect],ax PUSHI ax,<DATAOFFSET bufStdMsg> PUSHI ax,41d ;40 + 0-byte terminator PUSHI ax,GEW_NODOTMASK ; do not include . in search call GetEditWordMask ; ax = #chars in current word mov [cbSelect],ax cCall FlushFocus push [lnSelect] push [colSelect] push [cbSelect] call SelectTextPwndCur ;select offending token ; Display a message box containing the error ; if high bit of si is set, the message is in ps.PS_bdErr ; else si is the error number. ; ReNoCursor: cmp [b$fCompErr],0 je NotCompCodeErr jmp CompCodeErr ;brif err was in compiled code NotCompCodeErr: mov dx,dataOFFSET ps.PS_bdErr or si,si jns ReStdMsg ;brif caller didn't build msg cmp [ps.PS_bdErr.BD_cbLogical],76d mov si,ER_SN ;if msg too long to fit on ja ReStdMsg ; one line, Syntax error mov iHelpId,9999 PUSHI ax,MB_OK push dx ;pass <dataOFFSET ps.PS_bdErr> call MsgBoxBd J1_ReEnd: jmp SHORT ReEnd ReStdMsg: mov ax,MB_OK push ax ;pass dialog box type ; to MsgBoxStd, MsgBoxStd2 ; and MsgBoxStdBd NotMsg2: push si ;pass iMsg to MsgBoxStd test HelpFlags,HLP_RTERR ; did this error come from RT? jz NotRtError ; no, call MsgBoxStd call MsgBoxStdRt ; don't muck with iHelpId jmp SHORT ReEnd ; we are done with error NotRtError: call MsgBoxStd jmp SHORT ReEnd ;runtime error was in compiled code CompCodeErr: mov [uierr],si ;set uierr properly call MsgBoxCompErr mov [b$fCompErr],0 cmp [uierr],si ;see if uierr is the same jne ReEnd ;if not, then we have new error mov [uierr],0 ;otherwise, reset uierr ReEnd: ;Turn off highlighted text cmp [fSelect],0ffffH je short ReExit1 cCall MoveCursorPwndCur,<lnSelect, colSelect> ;See if another error has occurred while reporting this error ;For example, we ask user if he wants to edit an include file, ;user responds YES, and we load include file which causes error. ; ReExit1: cmp [uierr],0 je ReExit jmp ReWhileErr ReExit: sub ax,ax mov [b$ErrInfo],al ;reset extended error code mov [ps.PS_bdErr.BD_cbLogical],ax ;release ASCII msg buffer mov [fAdjustMsgBox],FALSE and HelpFlags,NOT HLP_RTERR ; clear the flag cEnd ;********************************************************************* ; void near ShowStmt(oRs, otx, col) ; Purpose: ; Makes a statement visible, activating list window if necessary. ; ; Entry: ; oRs - Text table containing the line to show ; otx - Offset in text table of line to display ; col - Column to position cursor on. If UNDEFINED, ; otx is used to compute column for start of stmt. ; ; Exit: ; alters contents of ps.bdpSrc ; ;********************************************************************* cProc ShowStmt,<PUBLIC,NEAR> parmW oRs parmW otx parmW col cBegin push [oRs] cCall UiRsActivate push [oRs] ;pass to ShowTok push [otx] ;pass to OtxBosOfOtx call OtxBosOfOtx ;ax = otx for beginning of stmt push ax ;pass otx to ShowTok push [col] ;pass col to ShowTok call ShowTok cEnd cProc ShowTok,<PUBLIC,NEAR>,<si> parmW oRs parmW otx parmW col localW line localW oldCol cBegin mov si, [oRs] ;If oRs is for a DECLARE or DEF FN prs, which has no text ;table, use the module's test table instead cCall UiRsActivate,<si> ;grs.oRsCur = si test [txdCur.TXD_flags],FTX_mrs je NotMrs ;brif cur txt tbl is for procedure mov si,[grs.GRS_oMrsCur] ;use module's oRs, so we don't ; activate oRs of DEF FN or DECLARE cCall UiRsActivate,<si> ;grs.oRsCur = si NotMrs: cCall WndAssignList1 ;make grs.oRsCur visible in list window ; Which line is the statement on? cCall LnOfOtx,<otx> cmp [fLnNotIncl],0 jne SS_NotIncludedLine ; Line was in an include file. ; Turn on viewing of include files, and recalulate the line. ; PUSHI ax,TRUE ; push TRUE call CmdViewInclude cCall UiRsActivate,<si> ; CmdViewInclude activates ; other text tables. cCall LnOfOtx,<otx> ; ax = line ;Call cbGetLineBuf to set colStmtStart and colStmtEnd to mark the ;columns for the start and end of statement that surround grs.otxCONT ; SS_NotIncludedLine: mov [line],ax cCall cbGetLineBuf,<si,ax,[ps.PS_bdpSrc.BDP_cbLogical],[ps.PS_bdpSrc.BDP_pb]> mov dx,[col] cmp dx,UNDEFINED jne SS_SetCursor ; brif caller know's column ;We need to map otx to column, by listing the pcode. mov ax,[otx] mov [otxLsCursor],ax ; tell ListLine to find column ; offset for stmt cCall OtxOfLn,<[line]> ; ax = otx for start of line push ax ; pass otx to ListLine PUSHI ax,<DATAOFFSET ps.PS_bdpSrc> cCall ListLine ; ax = cbLine ; dx = column for otxLsCursor inc ax ; test for UNDEFINED (out of memory) jne NotOmErr1 ; brif not out-of-memory ; ax = 0 (just list a blank line) call SetUiErrOm ; report error in msg loop ; dx is preserved NotOmErr1: inc dx ; test for UNDEFINED je SS_SetCursor ; if UNDEFINED, column=0 dec dx ; restore dx=column equivalent to [otx] ;If showing current statement, force entire statement to be visible if possible ;by first positioning to end-of-stmt, then to start-of-stmt ; SS_SetCursor: mov [oldCol],dx ; save the column equivalent to [otx] cmp dx,[colStmtStart] ; if we are at the start of a statement jne SkipAddCursor ; then ensure entire statement visible mov dx,[colStmtEnd] SkipAddCursor: cCall MoveCursorPwndCur,<[line],dx> cCall MoveCursorPwndCur,<[line],[oldCol]> ; move back to old column call DoDrawDebugScr ; update debug screen if a or al,al ; new register set has been ; made active. jne SS_Exit ; brif debug screen was redrawn ;If only change has been current line in active window, at least ; draw that window. We could have just called DrawDebugScr before ; DoDrawDebugScr and eliminated this code, but this is faster for ; animation. cCall DrawWindow,<[pwndAct]> SS_Exit: cEnd ;************************************************************************** ; DoCmd(szCmd) ; Purpose: ; Setup to execute a direct mode command. ; ; Entry: ; szCmd points to a 0-byte terminated ASCII command to be executed. ; if szCmd == NULL, command has already been copied to ps.bdpSrc. ; ; Exit: ; If command contains no parser/scanner errors, ; fGotCmd == TRUE ; grs.bdlDirect contains pcode to be executed ; else ; uierr = error to be reported by GetCmd's loop ; ;************************************************************************** cProc DoCmd,<PUBLIC,NEAR> parmDP szCmd cBegin mov ax,[grs.GRS_oMrsMain] inc ax ;test for UNDEFINED jne DoCmdGotMain ;brif no main module PUSHI ax,MSG_NoMainProg call SetUiErr jmp SHORT DoCmd_Exit DoCmdGotMain: ;so edit mgr doesn't think it already has current line cached. cCall EditMgrFlush1 mov cx,[szCmd] jcxz DoCmd_EndOk cCall SetPsBufSz,<cx> DoCmd_EndOk: mov [fDoCmd],sp ; sp is TRUE mov [fGotCmd],sp DoCmd_Exit: cEnd ;************************************************************************** ; boolean NEAR CmdEnter() ; Purpose: ; Called by the main message pump to filter Carriage Return events ; out of the event stream when the command window is active. This ; allows CR to have a different meaning in the command window than it ; does in list windows. In a list window, it means split the line. ; In the command window, it means execute this entire line. ; ; Exit: ; If command window is active, ; Causes command to be executed ; If command contains no parser/scanner errors, ; fGotCmd == TRUE ; grs.bdlDirect contains pcode to be executed ; else ; uierr = error to be reported by GetCmd's loop ; returns TRUE ; else ; returns FALSE ; ;************************************************************************** cProc CmdEnter,<PUBLIC,NEAR>,<si,di> cBegin mov bx,offset DGROUP:wndCmd ; bx -> command window's UWIN cmp bx,[pwndAct] je CE1 ;brif command window is active ; Ignore if command window is not active. sub ax,ax ;tell caller it wasn't in Cmd Window jmp CE_End ; Copy the line that ENTER was pressed on, and setup to execute it. ; CE1: mov cl,[bx.arcClipping.ayBottomArc] sub cl,[bx.arcClipping.ayTopArc]; See if window has zero lines jnz CmdEnterOk jmp CE_ExitTrue ; return true CmdEnterOk: mov bx,[bx.pefExtra] mov di,[bx.EF_ipCur_oln] ; Keep lnCmd in di ;flush dirty line in active window. Also makes sure edit mgr ; doesn't think it already has current line cached call EditMgrFlush1 cCall cbGetLineBuf,<[hbufOfCmd],di,[ps.PS_bdpSrc.BDP_cbLogical],[ps.PS_bdpSrc.BDP_pb]> sub ax,ax cCall DoCmd,<ax> mov si,[txdCur.TXD_cLines] dec si ; si = number of last line (0..n) js CE_BottomLine ; brif cmd window has 0 lines cmp di,si je CE_BottomLine ; brif editing bottom line mov si,di ; si = command line inc si ; si = line after command line jmp SHORT CE5 ; (place to move cursor to) ; ENTER was pressed on the last line of the COMMAND window, so add a blank ; line to the end for the next command to be entered into. ; CE_BottomLine: sub ax,ax inc si ; bump # lines in window cCall InsertLineBuf,<[hbufOfCmd],si,ax,[ps.PS_bdpSrc.BDP_pb]> je CE_ExitTrue ; brif line not inserted (out of memory) ; If there are more than ten lines in the command window then ; get rid of the first. ; mov di,offset DGROUP:wndCmd ; di points to cmd wnd from now on mov ax,si ; ax = #lines in window sub ax,10d jbe CE4 ; brif not more than 10 push ax ; pass oldest line to be deleted cCall OtxOfLn ; ax = text offset to top line to delete sub bx,bx cCall TxtChange,<bx,ax,sp> ; delete top line of command window mov bx,[di.pefExtra] dec [bx.EF_pdCur_olnTop] dec si ; decrement current line ; If there are more lines in the buffer than in the window, make sure that ; when the cursor is put on the last line (at CE5:), that that line is ; at the bottom of the window (so that the most possible history is displayed). ; CE4: sub ch,ch mov cl,[di.arcClipping.ayBottomArc] sub cl,[di.arcClipping.ayTopArc] cmp cx,si ja CE5 sub ax,ax cCall MoveCursorPwndCur,<si,ax> mov ax,si sub ch,ch mov cl,[di.arcClipping.ayBottomArc] sub cl,[di.arcClipping.ayTopArc] sub ax,cx inc ax sub bx,bx cCall MoveCursorPwndCur,<ax,bx> ; Put the cursor on the last line of the buffer (the blank line we inserted). CE5: sub ax,ax cCall MoveCursorPwndCur,<si,ax> or si,si ;if the line is zero, jz CE6 ;old line has disappeared dec si CE6: mov [lnCmdLast],si ;save for error reporting CE_ExitTrue: mov ax,sp ;mov ax,TRUE ;ax = TRUE if Enter key was handled, FALSE if ignored (cmd window not active) CE_End: cEnd ;************************************************************************** ; fCodeWnd() ; Purpose: ; returns TRUE if the active window contains pcode. ; ; Entry: ; ; Exit: ; returns TRUE (nonzero in al/ax) if the active window contains code. ; condition codes set based on value in ax ; ;************************************************************************** cProc fCodeWnd,<PUBLIC,NEAR> cBegin mov al,[mrsCur.MRS_flags2] mov dx,FM2_NoPcode and ax,dx ;isolate FM2_NoPcode bit xor ax,dx ;ax = non-zero iff FM2_NoPcode 0 cEnd ;************************************************************************** ; GetSelText ; Purpose: ; Copies the selected text in the current window to the specified buffer. ; ; Entry: ; pb - Near pointer to where text is to go. ; cbMax - max number of chars to copy ; ; Exit: ; returns the number of chars copied. ; The string is copied to pb, and is null terminated. ; ;************************************************************************** cProc GetSelText,<PUBLIC,NEAR> parmW pb parmW cbMax cBegin cCall GetEditText,<[pwndAct],[pb],[cbMax]> cEnd ;*************************************************************************** ; SetBookMark ; Purpose: ; Sets to the specified bookmark (0 to 3) ; ; Entry: ; cMark - integer in range 0 to 3 specifying bookmark ; ; Exit: ; Sets the specified bookmark to the current register set, otx, and column ; ;*************************************************************************** cProc SetBookMark,<PUBLIC,NEAR>,<si> parmW cMark cBegin DbAssertRel cMark,b,MAXBOOKMARK,UI,<SetBookMark:cMark out of range> mov si,dataOFFSET BookMarks mov ax,size BookMark mov cx,[cMark] BookMarkValid: mul cl add si,ax cCall GetEditLine cmp pwndAct,OFFSET DGROUP:wndHelp ; displaying in help window DJMP jne SetBookMarkNormal ; no, continue as normal ;Since pwndAct = &wndHelp, the help window must be open. Thus ;we must be displaying a topic, hense the buffers must be allocated. DbAssertTst HelpFlags,nz,HLP_GOTBUF,UI,<SetBookMark:HLP_GOTBUF is FALSE> push ax ; save edit line cCall RetrieveHelpHistory ; pop last item DbAssertRel cx,ne,0,UI,<SetBookMark:Help Open with no help history> cCall RecordHelpHistory ; put it back xchg ax,cx ; CX = low word of item ; DX = high word of item pop ax ; AX = line # jmp short SaveBookMarkVal SetBookMarkNormal: mov dx,NOT_HELPTOPIC ; flag as not a help topic mov cx,[grs.GRS_oRsCur] ; Get oRs SaveBookMarkVal: mov [si].BM_Nc,dx ; save Nc mov [si].BM_oRs,cx ; save oRs mov [si].BM_oln,ax cCall GetEditColumn mov [si].BM_col,ax SetBookMark_Exit: cEnd ;*************************************************************************** ; GotoBookMark ; Purpose: ; Moves to the specified bookmark (0 to 3) ; ; Entry: ; cMark - integer in range 0 to 3 specifying bookmark ; ; Exit: ; moves cursor to the specified bookmark ; ;*************************************************************************** cProc GotoBookMark,<PUBLIC,NEAR>,<si,di> parmW cMark cBegin DbAssertRel cMark,b,MAXBOOKMARK,UI,<GotoBookMark:cMark out of range> mov si,dataOFFSET BookMarks mov ax,size BookMark mov cx,[cMark] mul cl add si,ax cmp [si].BM_oRs,UNDEFINED ; is this bookmark defined? jne CheckHelpBookmark ; yes, go process it Bleep_n_Exit: cCall CowMoo ; inform user of problem DJMP jmp short Nomark ; and exit CheckHelpBookmark: mov dx,[si].BM_Nc ; get high word of help id cmp dx,NOT_HELPTOPIC ; reference a help topic? je GotoBookMarkNormal ; no, process as normally ; we do not try to start the help system, as it is impossible ; to have a help bookmark unless the help system is running. ; Whenever the help system gets shut down, we are suspose to ; clear all bookmarks into help related code. DbAssertTst HelpFlags,nz,HLP_GOTBUF,UI,<GotoBookMark:Help Bookmark exists when help system not started> mov ax,[si].BM_oRs ; set DX:AX to context number mov di,[si].BM_oLn ; DI = line # (engine) or -1 (varhlp) xor bx,bx ; BX = 0 ;di = line # (engine) or 0 (varhelp) ;bx = 0 (engine) or -1 (varhelp) PUSHI cx,<OFFSET DGROUP:wndHelp> ; window to send message to PUSHI cx,WM_HELPDISP ; message to send push bx ; varhelp/engine help flag push dx ; (long)context number push ax cCall SendMessage ; redisplay the topic cmp al,HELP_HANDLED ; was it a handled error? DJMP je NoMark ; yes, exit quietly or al,al ; did we succeed? DJMP jne Bleep_n_Exit ; no, inform user and exit PUSHI ax,<OFFSET DGROUP:WndHelp> ; window to activate cCall WndActivate ; goto help window mov bx,di ; BX = line number jmp short GotHelpBookMark ; move cursor GotoBookMarkNormal: mov ax,[si].BM_oRs cCall UiRsActivate,<ax> cmp [mRsCur.MRS_ogNam],OGNAM_IMMEDIATE ; is it immediate wnd? jne PutInListWnd ; no, process as normal PUSHI ax,<OFFSET DGROUP:WndCmd> ; window to activate cCall WndActivate ; goto immediate window jmp short GetBookMarkLine ; go move cursor PutInListWnd: cCall WndAssignList1 GetBookMarkLine: mov bx,[si].BM_oln GotHelpBookMark: mov cx,[si].BM_col ;This is just MoveCursorPwndCur with a PostMsg instead of a SendMsg DbAssertRel [pwndAct],ne,0,UI,<GotoBookMark: pwndAct=0> DbAssertRel bx,ne,0ffffH,UI,<GotoBookMark: ln=ffff> DbAssertRel cx,ne,0ffffH,UI,<GotoBookMark: col=ffff> PUSHI ax,[pwndAct] ; pwnd PUSHI ax,EM_SELCHARS ; message push bx ; wParam - line. push cx ; lParam - start and end column push cx ;We must post the message as opposed to sending it, because since the ;EditMgr can't be called recursively, it doesn't work properly. call PostMessage NoMark: cEnd ;Added with [20] ;*** ;ReAssignBookMark - change the oRs of bookmarks ; ;Purpose: ; Changes the oRs of all bookmarks that match oRsOld to oRsNew. ; This routine can be used to invalidate any bookmarks with a given ; oRs by specifying UNDEFINED for oRsNew. ; ;Entry: ; oRsOld : oRs of bookmarks to be matched ; oRsNew : replacement value for oRs ; ;Exit: ; None. ; ;Uses: ; Per C Convention ; ;**** cProc ReAssignBookMark,<PUBLIC,NEAR> parmW oRsOld parmW oRsNew cBegin mov bx,OFFSET DGROUP:BookMarks mov cx,MAXBOOKMARK mov ax,oRsOld ; put in AX for comparisons mov dx,oRsNew ; put in DX for move DiscardBookMarks: cmp [bx].BM_oRs,ax ; does this bookmark have the oRs? jne NextBookMark ; no, try the next one cmp [bx].BM_Nc,NOT_HELPTOPIC; is it help engine help (not real ors) je ChangeBookMark ; no, go reassign it ChangeBookMark: mov [bx].BM_oRs,dx ; reassign the bookmark NextBookMark: add bx,size BookMark loop DiscardBookMarks cEnd ;Added with [22] ;*** ;DiscardHelpBookMarks - discard all bookmarks dealing with help ; ;Entry: ; None. ; ;Exit: ; None. ; ;Uses: ; Per C Convention ; ;**** cProc DiscardHelpBookMarks,<PUBLIC,NEAR> cBegin mov bx,OFFSET DGROUP:BookMarks mov cx,MAXBOOKMARK DiscardHelpBM: cmp [bx].BM_Nc,NOT_HELPTOPIC ; is it help topic ? je DiscardNext ; no, skip it mov [bx].BM_oRs,UNDEFINED ; indicate no longer in use DiscardNext: add bx,size BookMark ; point to next bookmark loop DiscardHelpBM ; check next one cEnd ;*** ;CowMoo: Beep the speaker ; ;Purpose: ; Beeps the speaker by doing DoSound(0). ; ;Entry: ; None. ; ;Exit: ; None ; ;Preserves: ; AX,BX,DX ;Uses: ; CX,ES ; ;**** cProc CowMoo,<PUBLIC,NEAR>,<AX,BX,DX> cBegin xor ax,ax ; do a regular beep, not a click cCall DoSound,<ax> ; beep the speaker cEnd sEnd UI END
67,103
Assembly
asm
27.808952
103
0.661163
f702a4c498727c53c9d442243be5246315ad6bf3
minblock/msdos
[ "Apache-2.0" ]
null
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x17495, %rsi lea addresses_UC_ht+0xc8e0, %rdi nop nop nop nop xor $25931, %rbp mov $86, %rcx rep movsq nop nop nop nop and $51232, %rax lea addresses_WT_ht+0xeef2, %rbx nop nop nop nop nop dec %r8 movl $0x61626364, (%rbx) nop nop nop nop sub $4653, %rsi lea addresses_D_ht+0x16dca, %rsi lea addresses_D_ht+0x12994, %rdi add %r14, %r14 mov $16, %rcx rep movsq nop nop nop cmp %rdi, %rdi lea addresses_UC_ht+0x5c1a, %rcx clflush (%rcx) nop nop nop sub $369, %rdi mov (%rcx), %ebp sub $31215, %rcx lea addresses_WT_ht+0x14b9a, %rbp nop nop nop nop nop sub %r8, %r8 and $0xffffffffffffffc0, %rbp movaps (%rbp), %xmm0 vpextrq $1, %xmm0, %rax nop cmp $38379, %rbx lea addresses_D_ht+0xeda, %rsi clflush (%rsi) nop nop cmp %rbx, %rbx mov $0x6162636465666768, %rax movq %rax, %xmm3 movups %xmm3, (%rsi) nop nop nop nop xor $23811, %rbp lea addresses_normal_ht+0xb51a, %rsi lea addresses_A_ht+0x1ee7a, %rdi nop nop nop nop nop xor $37505, %rax mov $4, %rcx rep movsb inc %r14 lea addresses_D_ht+0xf65d, %rbp nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %r14 movq %r14, (%rbp) sub %rsi, %rsi lea addresses_normal_ht+0xd04e, %rsi lea addresses_normal_ht+0xbc9a, %rdi nop nop nop cmp $4378, %rax mov $88, %rcx rep movsl nop nop add $34878, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r9 push %rcx push %rdi push %rdx // Load lea addresses_UC+0xb3e2, %rcx nop nop nop sub $18362, %r14 vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r9 and $2980, %rcx // Store lea addresses_A+0x12080, %r11 nop nop sub %r13, %r13 movb $0x51, (%r11) nop nop nop nop xor $3514, %rdi // Store lea addresses_WT+0x1a19a, %r9 cmp %r13, %r13 mov $0x5152535455565758, %r11 movq %r11, %xmm4 vmovups %ymm4, (%r9) nop nop nop nop cmp $50736, %rdx // Store lea addresses_A+0xab9a, %r13 nop inc %rdi movw $0x5152, (%r13) nop nop nop nop nop and $35832, %r9 // Faulty Load lea addresses_A+0x1999a, %r11 nop nop nop xor %rdi, %rdi mov (%r11), %r14w lea oracles, %rcx and $0xff, %r14 shlq $12, %r14 mov (%rcx,%r14,1), %r14 pop %rdx pop %rdi pop %rcx pop %r9 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'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 */
7,378
Assembly
asm
33.536364
2,999
0.656953
f702da484458ea7518a7e0fefae61f3d4c6a9904
ljhsiun2/medusa
[ "MIT" ]
9
// ============================================================================ // Instructions not yet implemented in hardware, but will be in near future // ============================================================================ // Multiply MACRO MUL ( _rX_, _rY_, _imm_ ) ... ENDMACRO // Divide MACRO DIV ( _rX_, _rY_, _imm_ ) ... ENDMACRO // ============================================================================ // Common instructions not implemented in hardware, with no plans of doing so // ============================================================================ // Increment register MACRO INC ( _rX_ ) ADD _rX_ r0 1 ENDMACRO // Decrement register MACRO INC ( _rX_ ) SUB _rX_ r0 1 ENDMACRO // Square root MACRO SQRT ( _rX_ ) ... ENDMACRO // Rotatate right MACRO ROR ( _rX_ ) ... ENDMACRO // double word (32bit) arithmetic...? ex. increment, add
899
Assembly
asm
16.648148
79
0.434928
f702dce4b6ed96314aabec21d97ca6b72020dd1d
JetStarBlues/Nand-2-Tetris
[ "MIT" ]
null
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x137f3, %rbx clflush (%rbx) nop nop nop nop dec %r12 movups (%rbx), %xmm5 vpextrq $1, %xmm5, %r8 nop nop nop nop nop xor $5398, %rbp lea addresses_UC_ht+0x36c3, %r14 clflush (%r14) nop nop nop nop cmp %rax, %rax mov $0x6162636465666768, %r8 movq %r8, (%r14) nop nop nop and %rbp, %rbp lea addresses_normal_ht+0x1338f, %rax nop nop nop nop nop dec %r11 mov (%rax), %r14d nop nop nop nop add %r14, %r14 lea addresses_WT_ht+0x6483, %rsi lea addresses_A_ht+0xbd2e, %rdi clflush (%rsi) nop nop nop nop nop sub %rbx, %rbx mov $64, %rcx rep movsl nop nop cmp $2150, %rsi lea addresses_normal_ht+0x5483, %rsi nop nop nop nop xor $40727, %rax movw $0x6162, (%rsi) nop nop nop nop nop xor $35034, %rbp lea addresses_WT_ht+0x4cc3, %rcx nop and $29282, %r14 mov $0x6162636465666768, %r11 movq %r11, %xmm3 and $0xffffffffffffffc0, %rcx movaps %xmm3, (%rcx) nop nop nop sub %r14, %r14 lea addresses_D_ht+0x1bd73, %rbx clflush (%rbx) nop nop nop nop xor %rax, %rax mov (%rbx), %rdi nop nop sub %r8, %r8 lea addresses_D_ht+0x1c2c3, %rsi lea addresses_A_ht+0x19c83, %rdi nop nop nop nop nop sub %rbp, %rbp mov $24, %rcx rep movsq nop nop nop nop inc %r8 lea addresses_WT_ht+0x133c3, %rsi lea addresses_WC_ht+0x186c3, %rdi clflush (%rsi) clflush (%rdi) nop nop and %rbx, %rbx mov $63, %rcx rep movsb nop nop nop nop and $60742, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %r9 push %rax push %rsi // Store lea addresses_normal+0x9cc3, %r9 nop nop nop nop and %r10, %r10 movl $0x51525354, (%r9) nop nop nop nop and $15082, %r11 // Load mov $0x5f4cf3000000047e, %r10 nop nop cmp $30478, %rsi vmovups (%r10), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r13 nop dec %r11 // Store lea addresses_WC+0x1fac3, %r13 nop nop nop nop nop cmp $37197, %rsi movl $0x51525354, (%r13) nop nop nop nop nop cmp $60511, %r11 // Faulty Load lea addresses_normal+0x9cc3, %rax nop nop nop xor %r10, %r10 mov (%rax), %esi lea oracles, %r8 and $0xff, %rsi shlq $12, %rsi mov (%r8,%rsi,1), %rsi pop %rsi pop %rax pop %r9 pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'54': 7333} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
7,239
Assembly
asm
30.544304
2,999
0.658793
f702e8ea5bd33f0f0e20cf4ae884032541942008
ljhsiun2/medusa
[ "MIT" ]
9
.text .file "example0-8787f43e282added376259c1adb08b80.rs" .section ".text._ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E","ax",@progbits .globl _ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E .p2align 4, 0x90 .type _ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E,@function _ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E: pushq %rbx movq %rdi, %rbx callq _ZN5alloc3str56_$LT$impl$u20$alloc..borrow..ToOwned$u20$for$u20$str$GT$8to_owned17h6364b00ba4e57363E@PLT movq %rbx, %rax popq %rbx retq .Lfunc_end0: .size _ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E, .Lfunc_end0-_ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E .section ".note.GNU-stack","",@progbits
1,283
Assembly
asm
71.277778
280
0.674981
f7030092309939ce2f0b21a66a769f5ae8ec4dd0
OfekShilon/compiler-explorer
[ "BSD-2-Clause" ]
4,668
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r9 push %rax push %rcx push %rdx // Store lea addresses_WC+0x8cec, %r10 nop sub $61857, %r12 mov $0x5152535455565758, %rcx movq %rcx, %xmm1 movups %xmm1, (%r10) nop nop nop nop cmp $33050, %r10 // Store lea addresses_PSE+0x2cec, %r14 nop nop nop nop nop and $57744, %rax movl $0x51525354, (%r14) nop dec %r14 // Load lea addresses_RW+0xcfa4, %r10 clflush (%r10) nop nop nop nop and $17817, %rdx mov (%r10), %r14 nop nop nop nop add $28222, %r12 // Faulty Load lea addresses_PSE+0x2cec, %r12 cmp %rdx, %rdx movb (%r12), %r14b lea oracles, %r12 and $0xff, %r14 shlq $12, %r14 mov (%r12,%r14,1), %r14 pop %rdx pop %rcx pop %rax pop %r9 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'54': 113} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
1,823
Assembly
asm
21.447059
338
0.646736
f7032ec21e5a0ab43edec0f6231ca8d84da6723d
ljhsiun2/medusa
[ "MIT" ]
9
; A025009: Expansion of 1/((1-x)(1-9x)(1-10x)(1-11x)). ; Submitted by Jon Maiga ; 1,31,632,10682,162183,2297253,31000054,403684144,5115788645,63462153755,773891110356,9306180096486,110619493115587,1302189143870737,15203564170082738,176265669269562908 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,9 mul $3,10 add $3,$1 mul $1,11 add $1,$2 lpe mov $0,$3 div $0,18
373
Assembly
asm
21.941176
170
0.707775
f7033a672483e122bdea8e97292c54ed391ee2c9
neoneye/loda-programs
[ "Apache-2.0" ]
11
GLOBAL sys_read, sys_write, sys_time, quadSolver GLOBAL _getMem, sys_loadProcess GLOBAL raiseOpcodeExc GLOBAL _getRegs, sys_switchContext GLOBAL cpu_id, cpu_id_support GLOBAL sys_exit, sys_ps, sys_free, sys_malloc, sys_sem, sys_openPipe, sys_closePipe, sys_semClose GLOBAL sys_nice, sys_semWait, sys_semPost, sys_semOpen, sys_sleep, sys_kill, sys_getPid, GLOBAL sys_block, sys_unblock, sys_wait, sys_pipes, sys_quitCPU, sys_dumpMM section .text sys_write: push rbp mov rbp, rsp push rdi push rsi push rdx push rcx mov rcx, rdx mov rdx, rsi mov rsi, rdi mov rdi, 0 int 80h pop rcx pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_read: push rbp mov rbp, rsp push rdi push rsi push rdx push rcx mov rcx, rdx mov rdx, rsi mov rsi, rdi mov rdi, 1 int 80h pop rcx pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_openPipe: push rbp mov rbp, rsp push rdi push rsi push rdx mov rdx, rsi mov rsi, rdi mov rdi, 10 int 80h pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_closePipe: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 24 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_exit: push rbp mov rbp, rsp push rdi push rsi mov rdi, 4 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_block: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 19 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_unblock: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 20 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_malloc: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 8 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_free: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 9 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_ps: push rbp mov rbp, rsp push rdi mov rdi, 6 int 80h pop rdi mov rsp, rbp pop rbp ret sys_sem: push rbp mov rbp, rsp push rdi mov rdi, 7 int 80h pop rdi mov rsp, rbp pop rbp ret sys_pipes: push rbp mov rbp, rsp push rdi mov rdi, 22 int 80h pop rdi mov rsp, rbp pop rbp ret sys_getPid: push rbp mov rbp, rsp push rdi mov rdi, 17 int 80h pop rdi mov rsp, rbp pop rbp ret sys_quitCPU: push rbp mov rbp, rsp push rdi mov rdi, 23 int 80h pop rdi mov rsp, rbp pop rbp ret sys_dumpMM: push rbp mov rbp, rsp push rdi mov rdi, 5 int 80h pop rdi mov rsp, rbp pop rbp ret sys_wait: push rbp mov rbp, rsp push rdi mov rdi, 21 int 80h pop rdi mov rsp, rbp pop rbp ret sys_nice: push rbp mov rbp, rsp push rdi push rsi push rdx mov rdx, rsi mov rsi, rdi mov rdi, 11 int 80h pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_semOpen: push rbp mov rbp, rsp push rdi push rsi push rdx mov rdx, rsi mov rsi, rdi mov rdi, 15 int 80h pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_semWait: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 13 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_semPost: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 14 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_semClose: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 18 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_sleep: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 12 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret sys_kill: push rbp mov rbp, rsp push rdi push rsi mov rsi, rdi mov rdi, 16 int 80h pop rsi pop rdi mov rsp, rbp pop rbp ret _getMem: push rbp mov rbp, rsp mov eax, dword [rdi] mov rsp, rbp pop rbp ret _getRegs: mov [regs], rax mov [regs + 8], rbx mov [regs + 16], rcx mov [regs + 24], rdx mov [regs + 32], rbp mov [regs + 40], rdi mov [regs + 48], rsi mov [regs + 56], r8 mov [regs + 64], r9 mov [regs + 72], r10 mov [regs + 80], r11 mov [regs + 88], r12 mov [regs + 96], r13 mov [regs + 104], r14 mov [regs + 112], r15 lea rax, [rsp + 8] mov [regs + 120], rax mov rax, [rsp] mov [regs + 128], rax mov rax, regs ret cpu_id: push rbp mov rbp, rsp push rax mov rax, rdi mov qword [auxRDI], rax mov rax, rsi mov qword [auxRSI], rax mov rax, rdx mov qword [auxRDX], rax mov rax, rcx mov qword [auxRCX], rax mov eax, [rcx] mov ecx, [rdx] cpuid push r12 mov r12, 0 mov r12, qword [auxRDI] mov [r12], edx mov r12, qword [auxRSI] mov [r12], ecx mov r12, qword [auxRDX] mov [r12], ebx mov r12, qword [auxRCX] mov [r12], eax pop r12 pop rax mov rsp, rbp pop rbp ret cpu_id_support: pushfq ;Save EFLAGS pushfq ;Store EFLAGS xor dword [rsp], 0x00200000 ;Invert the ID bit in stored EFLAGS popfq ;Load stored EFLAGS (with ID bit inverted) pushfq ;Store EFLAGS again (ID bit may or may not be inverted) pop rax ;eax = modified EFLAGS (ID bit may or may not be inverted) xor rax, [rsp] ;eax = whichever bits were changed popfq ;Restore original EFLAGS and rax, 0x00200000 ;eax = zero if ID bit can't be changed, else non-zero ret raiseOpcodeExc: ud2 sys_loadProcess: push rbp mov rbp, rsp push rdi push rsi push rdx push rcx push r8 push r9 mov r9, r8 mov r8, rcx mov rcx, rdx mov rdx, rsi mov rsi, rdi mov rdi, 3 int 80h pop r9 pop r8 pop rcx pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret sys_switchContext: push rbp mov rbp, rsp int 81h mov rsp, rbp pop rbp ret sys_time: push rbp mov rbp, rsp push rdi push rsi push rdx push rcx mov rsi, rdi ; option mov rdi, 2 int 80h pop rcx pop rdx pop rsi pop rdi mov rsp, rbp pop rbp ret quadSolver: push rbp mov rbp, rsp mov word [number4], -4 fild word [number4] movsd qword [varA], xmm0 fld qword [varA] ; a fmulp ; st(1) * st(0) y deja en st(1), ademas popea (saca st(0)) movsd qword [varC], xmm2 fld qword [varC] ; xmm2 fmulp ; ahora tengo -4ac movsd qword [varB], xmm1 fld qword [varB] ; b fld qword [varB] ; b fmulp ; hago b**2 y dejo en st(0) faddp fstp qword [resAux] mov word [number0], 0 fild word [number0] fld qword [resAux] fcomi st0, st1 jc .notReal ; si 0 > st(1) faddp fsqrt mov qword [resAux], 0 fstp qword [resAux] ; guardo la raíz fld qword [varA] mov word [number2], 2 fild qword [number2] fmulp mov qword [number1], 1 fild qword [number1] fdivrp ; divide 1/2a fst qword [divAux] ; guardo el 1/2a fld qword [varB] fld qword [resAux] fsubrp fmulp fstp qword [resOne] movsd xmm4, qword [resOne] movsd qword [rdi], xmm4 ; guardamos primera solucion fld qword [varB] fld qword [resAux] fchs fsubrp fmul qword [divAux] fstp qword [resTwo] movsd xmm5, qword [resTwo] movsd qword [rsi], xmm5 ; guardamos primera solucion mov rax, 1 jmp .quit .notReal: mov rax, 0 .quit: mov rsp, rbp pop rbp ret section .bss number4 resb 8 number0 resb 8 number1 resb 8 number2 resb 8 number5 resb 8 varA resb 8 varB resb 8 varC resb 8 resOne resb 8 resTwo resb 8 resAux resb 8 divAux resb 8 regs resb 120 ; 8 bytes * 16 regs auxRDI resb 8 auxRSI resb 8 auxRDX resb 8 auxRCX resb 8
7,977
Assembly
asm
12.1231
99
0.603861
f7035b6d0031e0a625a178ae9abcbbc7f4f166e1
slococo/TP2-SO
[ "BSD-3-Clause" ]
null
; A081016: a(n) = (Lucas(4*n+3) + 1)/5, or Fibonacci(2*n+1)*Fibonacci(2*n+2), or A081015(n)/5. ; 1,6,40,273,1870,12816,87841,602070,4126648,28284465,193864606,1328767776,9107509825,62423800998,427859097160,2932589879121,20100270056686,137769300517680,944284833567073,6472224534451830,44361286907595736,304056783818718321,2084036199823432510,14284196614945309248,97905340104793732225,671053184118610816326,4599466948725481982056,31525215456959763058065,216077041249992859424398,1481014073292990252912720,10151021471800938910964641,69576136229313582123839766,476881932133394135955913720,3268597388704445369567556273,22403299788797723451016980190,153554501132879618787551305056,1052478208141359608061842155201,7213792955856637637645343781350,49444072482855103855455564314248,338894714424129089350543606418385,2322818928486048521598349680614446,15920837784978210561837904157882736,109123045566361425411266979424564705,747940481179551767317030951814070198 lpb $0 sub $0,1 add $1,1 add $2,$1 add $1,$2 add $2,$1 add $1,$2 lpe add $1,1 mov $0,$1
1,052
Assembly
asm
75.142857
855
0.867871
f7039fb715ef2d38d217dc6c041c350e73530d3a
neoneye/loda
[ "Apache-2.0" ]
22
.data mat1: .space 1024 mat2: .space 1024 ans: .space 1024 .macro input(%in) li $v0, 5 syscall move %in, $v0 .end_macro .macro print(%out) li $v0, 1 move $a0, %out syscall .end_macro .macro println() li $v0, 11 li $a0, '\n' syscall .end_macro .macro printspace() li $v0, 11 li $a0, ' ' syscall .end_macro .macro get(%addr, %i, %j, %target) sll $t9, %i, 4 add $t9, $t9, %j sll $t9, $t9, 2 lw %target, %addr($t9) .end_macro .macro set(%addr, %i, %j, %source) sll $t9, %i, 4 add $t9, $t9, %j sll $t9, $t9, 2 sw %source, %addr($t9) .end_macro .text # $s0 - n main: input($s0) li $t0, 0 in_mat1_for1: #for(i=0;i<n;i++) beq $t0, $s0, end_in_mat1_for1 li $t1, 0 in_mat1_for2: #for(j=0;j<n;j++) beq $t1, $s0, end_in_mat1_for2 input($t3) set(mat1, $t0, $t1, $t3) addiu $t1, $t1, 1 j in_mat1_for2 end_in_mat1_for2: addiu $t0, $t0, 1 j in_mat1_for1 end_in_mat1_for1: li $t0, 0 in_mat2_for1: #for(i=0;i<n;i++) beq $t0, $s0, end_in_mat2_for1 li $t1, 0 in_mat2_for2: #for(j=0;j<n;j++) beq $t1, $s0, end_in_mat2_for2 input($t3) set(mat2, $t0, $t1, $t3) addiu $t1, $t1, 1 j in_mat2_for2 end_in_mat2_for2: addiu $t0, $t0, 1 j in_mat2_for1 end_in_mat2_for1: #calc li $t0, 0 calc_for1: beq $t0, $s0, end_calc_for1 li $t1, 0 calc_for2: beq $t1, $s0, end_calc_for2 li $t2, 0 li $t3, 0 calc_for3: beq $t2, $s0, end_calc_for3 get(mat1, $t0, $t2, $t4) get(mat2, $t2, $t1, $t5) mult $t4, $t5 mflo $t5 add $t3, $t3, $t5 #print($t3) #println() addiu $t2, $t2, 1 j calc_for3 end_calc_for3: print($t3) printspace() addiu $t1, $t1, 1 j calc_for2 end_calc_for2: println() addiu $t0, $t0, 1 j calc_for1 end_calc_for1: li $v0,10 syscall
1,764
Assembly
asm
16.961538
34
0.597506
f703a8d72835b35db03ad45e00497f233ee54435
flyinglandlord/BUAA-CO-2021
[ "MIT" ]
5
TextMode.println : ; ebx is String pusha call TextMode.print call TextMode.newline popa ret TextMode.print : ; ebx is String pusha mov ah, 0x0F mov ecx, [TextMode.charpos] TextMode.println.loop : mov al, [ebx] cmp al, 0x0 je TextMode.println.ret mov [ecx], ax add ecx, 2 add ebx, 1 jmp TextMode.println.loop TextMode.println.ret : mov [TextMode.charpos], ecx call TextMode.scroll popa ret TextMode.cprint : pusha mov ecx, [TextMode.charpos] mov [ecx], ax add ecx, 2 mov [TextMode.charpos], ecx popa ret TextMode.newline : pusha mov eax, [TextMode.charpos] sub eax, 0xb8000 xor ebx, ebx xor edx, edx mov ecx, 160 idiv ecx add eax, 1 imul eax, 160 add eax, 0xb8000 mov [TextMode.charpos], eax call TextMode.scroll popa ret TextMode.clearScreen : pusha mov eax, 0xb8000 mov [TextMode.charpos], eax TextMode.clearScreen.loop : cmp eax, 0xb9000 je TextMode.clearScreen.ret mov dword [eax], 0x0 add eax, 4 jmp TextMode.clearScreen.loop TextMode.clearScreen.ret : popa ret DebugLogEAX : pusha mov ecx, DebugStringStor mov dword [ecx], 0x0 add ecx, 4 mov dword [ecx], 0x0 mov ebx, eax mov eax, DebugStringStor call String.fromHex ;mov ebx, eax ;call String.copyColorToRaw ;call TextMode.clearScreen call TextMode.print popa ret TextMode.scroll : pusha mov ecx, [TextMode.charpos] cmp ecx, 0xb8ec0 ; should be less than b9000! jle TextMode.scroll.ret ; call TextMode.clearScreen ;mov esi, 0xb9000 ;mov edx, 0xb8000 ;mov ecx, 0x1000 ;rep movsb sub ecx, 0xA0 mov [TextMode.charpos], ecx mov eax, 0xb80A0 mov ebx, 0xb8000 mov ecx, 0x1000 mov edx, 1 call Image.copyLinear TextMode.scroll.ret : popa ret TextMode.charpos : dd 0xb8000 DebugStringStor : dd 0x0, 0x0, 0x0, 0x0, 0x0
1,732
Assembly
asm
16.653846
46
0.735566
f703fb07e0234644ca3d2f0938ed48e6a81d8c4f
jaredwhitney/os3
[ "MIT" ]
5
; A215960: First differences of A016759. ; 2186,75938,745418,3959426,14704202,43261346,108110858,239479298,483533066,907216802,1603736906,2698690178,4356837578,6789523106,10262737802,15105828866,21720853898,30592580258,42299129546,57523267202,77064337226,101850842018,132953667338,171599952386,219187605002,277300461986,347724094538,432462258818,533753991626,654091351202,796237803146,963247251458,1158483714698,1385641647266,1648766905802,1952278360706,2300990152778,2700134594978,3155385719306,3672883468802,4259258534666,4921657838498,5667770659658,6505855407746,7444767040202,8493985125026,9663642548618,10964554868738,12408250312586,14007000420002,15773851331786,17722655723138,19868105382218,22225764433826,24812103208202,27644532754946,30741440002058,34122223560098,37807330171466,41818291804802,46177763394506,50909561225378,56038701962378,61591442325506,67595319409802,74079191650466,81073280433098,88609212349058,96720062095946,105440396023202,114806316322826,124855505865218,135627273680138,147162601082786,159504188445002,172696502611586,186785824961738,201820300115618,217849985286026,234926900275202,253105078116746,272440616362658,292991729015498,314818799105666,337984431913802,362553508838306,388593241907978,416173228939778,445365509341706,476244620560802,508887655176266,543374318637698,579786987648458,618210769194146,658733560216202,701446107930626,746442070791818,793818080101538,843673802262986,896112001680002,951238604301386,1009162761810338,1069996916459018,1133856866548226,1200861832552202,1271134523888546,1344801206333258,1421991770080898,1502839798449866,1587482637232802,1676061464692106,1768721362200578,1865611385527178,1966884636767906,2072698336921802,2183213899112066,2298597002452298,2419017666557858,2544650326702346,2675673909619202,2812271909948426,2954632467328418,3102948444132938,3257417503853186,3418242190125002,3585630006401186,3759793496268938,3940950324412418,4129323358220426,4325140750039202,4528636020070346,4740048139913858,4959621616756298,5187606578204066,5424258857761802,5669840080955906,5924617752103178,6188865341724578,6462862374604106,6746894518492802,7041253673457866,7346238061876898,7662152319077258,7989307584620546,8328021594232202,8678618772376226,9041430325475018 add $0,1 mul $0,2 pow $0,2 mov $1,1 mov $2,2 add $2,$0 pow $2,2 lpb $0 sub $0,1 add $1,$2 add $2,2 lpe sub $1,157 div $1,12 mul $1,168 add $1,2186
2,386
Assembly
asm
119.3
2,190
0.904862
f70432f5b81be9937f827057447664b9ec941e3f
jmorken/loda
[ "Apache-2.0" ]
1
dnl AMD64 mpn_hamdist -- hamming distance. dnl Copyright 2008, 2010-2012, 2017 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C AMD K8,K9 - C AMD K10 2.0 = C AMD bd1 ~4.4 = C AMD bd2 ~4.4 = C AMD bd3 C AMD bd4 C AMD bobcat 7.55 = C AMD jaguar 2.52 - C Intel P4 - C Intel core2 - C Intel NHM 2.03 + C Intel SBR 2.01 + C Intel IBR 1.96 + C Intel HWL 1.64 = C Intel BWL 1.56 - C Intel SKL 1.52 = C Intel atom C Intel SLM 3.0 - C VIA nano define(`ap', `%rdi') define(`bp', `%rsi') define(`n', `%rdx') ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) ASM_START() TEXT ALIGN(32) PROLOGUE(mpn_hamdist) FUNC_ENTRY(3) mov (ap), %r8 xor (bp), %r8 lea (ap,n,8), ap C point at A operand end lea (bp,n,8), bp C point at B operand end neg n test $1, R8(n) jz L(2) L(1): .byte 0xf3,0x49,0x0f,0xb8,0xc0 C popcnt %r8, %rax xor R32(%r10), R32(%r10) inc n js L(top) FUNC_EXIT() ret ALIGN(16) L(2): mov 8(ap,n,8), %r9 .byte 0xf3,0x49,0x0f,0xb8,0xc0 C popcnt %r8, %rax xor 8(bp,n,8), %r9 .byte 0xf3,0x4d,0x0f,0xb8,0xd1 C popcnt %r9, %r10 add $2, n js L(top) lea (%r10, %rax), %rax FUNC_EXIT() ret ALIGN(16) L(top): mov (ap,n,8), %r8 lea (%r10, %rax), %rax mov 8(ap,n,8), %r9 xor (bp,n,8), %r8 xor 8(bp,n,8), %r9 .byte 0xf3,0x49,0x0f,0xb8,0xc8 C popcnt %r8, %rcx lea (%rcx, %rax), %rax .byte 0xf3,0x4d,0x0f,0xb8,0xd1 C popcnt %r9, %r10 add $2, n js L(top) lea (%r10, %rax), %rax FUNC_EXIT() ret EPILOGUE()
2,533
Assembly
asm
23.027273
79
0.672325
f70494a33a217fec75dc98b7b39e9eb988f35eef
jhh67/chapel
[ "ECL-2.0", "Apache-2.0" ]
1,602
; Get window size for a string 1989 Jochen Merz V0.01 section utility xdef ut_gwszs ;+++ ; This routine calculates the number of lines and characters per line needed to ; put in a string into a window. The string may contain the \ characters which ; are replaced by <LF>. The pointer to the string may be 0. ; ; Entry Exit ; D1.l no of lines/max no of chars ; A1 pointer to string preserved ;--- ut_gwszs gwsz_reg reg d2-d4/a1 movem.l gwsz_reg,-(sp) move.l a1,d1 ; zero pointer? beq.s gwsz_ret ; yes, return zero size moveq #0,d1 ; presume empty string moveq #0,d2 ; max characters counter move.w (a1)+,d3 ; no of characters beq.s gwsz_ret ; does not contain any character! gwsz_lin move.b (a1)+,d4 ; get character cmp.b #'\',d4 ; do we have to replace it? bne.s gwsz_nrp ; no! moveq #10,d4 ; it is <LF> now move.b d4,-1(a1) gwsz_nrp cmp.b #10,d4 ; new line? bne.s gwsz_chr ; no add.l #$00010000,d1 ; add a line cmp.w d1,d2 ; is the current line longest one? bls.s gwsz_cct ; no move.w d2,d1 ; put it in! gwsz_cct moveq #0,d2 ; reset counter bra.s gwsz_nxt gwsz_chr addq.w #1,d2 ; add one character gwsz_nxt subq.w #1,d3 ; decrement string length bne.s gwsz_lin ; until end of string cmp.b #10,d4 ; did the line end with <LF> ? beq.s gwsz_ret ; yes! add.l #$00010000,d1 ; no, so add one line cmp.w d1,d2 ; is current line longest one? bls.s gwsz_ret move.w d2,d1 ; yes, so use it gwsz_ret movem.l (sp)+,gwsz_reg rts end
2,269
Assembly
asm
39.12069
79
0.447334
f704cdf72bd2981f011fba1c637c9955e595d7b3
olifink/smsqe
[ "BSD-2-Clause" ]
null
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xd813, %rsi lea addresses_WT_ht+0xbc53, %rdi xor %r9, %r9 mov $12, %rcx rep movsb inc %rdx lea addresses_normal_ht+0x1d53, %rsi lea addresses_D_ht+0x8293, %rdi clflush (%rdi) nop nop nop nop sub $43245, %r14 mov $6, %rcx rep movsl nop nop nop nop nop inc %r9 lea addresses_WT_ht+0x17e13, %rdx clflush (%rdx) nop nop nop nop xor %r13, %r13 mov (%rdx), %rcx nop sub %r14, %r14 lea addresses_normal_ht+0x3013, %r14 nop nop add $8627, %rdi movl $0x61626364, (%r14) nop nop nop nop nop and %r9, %r9 lea addresses_WC_ht+0x13513, %rsi sub $26719, %r9 mov (%rsi), %edi nop nop sub $33788, %rcx lea addresses_normal_ht+0xb401, %r14 xor $49528, %rdi mov (%r14), %rcx nop nop nop nop and %rdx, %rdx lea addresses_UC_ht+0x1d713, %rsi lea addresses_WC_ht+0x63a3, %rdi clflush (%rdi) nop add $57999, %r13 mov $27, %rcx rep movsb nop and %rsi, %rsi lea addresses_WC_ht+0xdc13, %r13 nop nop nop nop sub $60378, %rdi mov (%r13), %r14 sub $47188, %rdx lea addresses_UC_ht+0xf313, %r9 nop nop nop nop nop sub %rcx, %rcx mov $0x6162636465666768, %r13 movq %r13, %xmm5 and $0xffffffffffffffc0, %r9 vmovntdq %ymm5, (%r9) dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi // Store lea addresses_D+0x448c, %r10 nop nop nop add $33537, %rdx movl $0x51525354, (%r10) nop nop nop nop nop dec %r12 // REPMOV lea addresses_UC+0xca93, %rsi lea addresses_WC+0x18c33, %rdi and %r12, %r12 mov $127, %rcx rep movsb cmp %r9, %r9 // Store mov $0x5fd, %r12 nop dec %r9 mov $0x5152535455565758, %rdi movq %rdi, (%r12) // Exception!!! nop nop mov (0), %r12 and $63993, %rsi // Store lea addresses_WC+0x17413, %r12 nop nop nop cmp $8648, %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm3 movaps %xmm3, (%r12) nop add $63733, %rsi // Store lea addresses_A+0x5813, %rbx nop cmp $24811, %r12 movw $0x5152, (%rbx) nop nop nop nop cmp %rsi, %rsi // Store lea addresses_RW+0x18e93, %rsi nop nop nop nop and $640, %r10 movw $0x5152, (%rsi) dec %rbx // Load lea addresses_WT+0x10ed3, %r12 clflush (%r12) nop nop nop nop nop inc %rsi mov (%r12), %r10w nop xor $22511, %rsi // Faulty Load lea addresses_A+0x5813, %r9 inc %r10 movb (%r9), %bl lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': True, 'NT': True, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 8, 'same': False}} {'52': 41} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
5,048
Assembly
asm
20.946058
151
0.642433
f704ecef21598ea663b70dc8b0023842472a11a5
ljhsiun2/medusa
[ "MIT" ]
9
; A214587: Greatest common divisor of a number and its last decimal digit: a(n) = gcd(n, n mod 10). ; 0,1,2,3,4,5,6,7,8,9,10,1,2,1,2,5,2,1,2,1,20,1,2,1,4,5,2,1,4,1,30,1,2,3,2,5,6,1,2,3,40,1,2,1,4,5,2,1,8,1,50,1,2,1,2,5,2,1,2,1,60,1,2,3,4,5,6,1,4,3,70,1,2,1,2,5,2,7,2,1,80,1,2,1,4,5 mov $1,$0 pow $2,$0 add $2,$0 lpb $0,2 add $1,$0 mod $0,10 gcd $1,$2 lpe
362
Assembly
asm
30.166667
181
0.563536
f7054fc41afd0a194cb58fa48da528bdf0742fb1
karttu/loda
[ "Apache-2.0" ]
1
; 0 - PUSH constant 0 leaw $0,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 1 - POP temp 0 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $5,%A movw %D,(%A) ; 2 - PUSH constant 1 leaw $1,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 3 - POP temp 1 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $6,%A movw %D,(%A) ; Label (marcador) scripts/../src/vmExamples/BasicLoop..LOOP_START: ; 4 - PUSH temp 0 leaw $5,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 5 - PUSH constant 10 leaw $10,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 6 - EQ leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A subw (%A),%D,%D leaw $EQscripts/../src/vmExamples/BasicLoop0,%A je %D nop leaw $SP,%A subw (%A),$1,%A movw $0,(%A) leaw $EQ2scripts/../src/vmExamples/BasicLoop0,%A jmp nop EQscripts/../src/vmExamples/BasicLoop0: leaw $SP,%A subw (%A),$1,%A movw $-1,(%A) EQ2scripts/../src/vmExamples/BasicLoop0: ; 7 - Goto Condicional leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $scripts/../src/vmExamples/BasicLoop..END,%A jne %D nop ; 8 - PUSH temp 0 leaw $5,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 9 - PUSH constant 1 leaw $1,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 10 - ADD leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A addw (%A),%D,%D movw %D,(%A) ; 11 - POP temp 0 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $5,%A movw %D,(%A) ; 12 - PUSH temp 1 leaw $6,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 13 - PUSH temp 1 leaw $6,%A movw (%A),%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 14 - ADD leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A addw (%A),%D,%D movw %D,(%A) ; 15 - POP temp 1 leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $6,%A movw %D,(%A) ; 16 - Goto Incondicional leaw $scripts/../src/vmExamples/BasicLoop..LOOP_START,%A jmp nop ; Label (marcador) scripts/../src/vmExamples/BasicLoop..END: ; End
2,540
Assembly
nasm
13.956044
56
0.560236
f70622ee63104b3c07ece50eada8dfdab0e98f28
mariaeduardabicalho/Z01
[ "Unlicense" ]
2
; A000127: Maximal number of regions obtained by joining n points around a circle by straight lines. Also number of regions in 4-space formed by n-1 hyperplanes. ; 1,2,4,8,16,31,57,99,163,256,386,562,794,1093,1471,1941,2517,3214,4048,5036,6196,7547,9109,10903,12951,15276,17902,20854,24158,27841,31931,36457,41449,46938,52956,59536,66712,74519,82993,92171,102091,112792,124314,136698,149986,164221,179447,195709,213053,231526,251176,272052,294204,317683,342541,368831,396607,425924,456838,489406,523686,559737,597619,637393,679121,722866,768692,816664,866848,919311,974121,1031347,1091059,1153328,1218226,1285826,1356202,1429429,1505583,1584741,1666981,1752382 mov $1,$0 bin $0,3 add $1,1 mul $1,2 mov $2,2 sub $2,$1 sub $0,$2 mul $0,$1 div $0,8 add $0,1
756
Assembly
asm
54
498
0.785714
f70644071e4a88b08c4839dba9457ec8185bee68
neoneye/loda-programs
[ "Apache-2.0" ]
11
; A281908: a(n) = (Sum_{k=1..n} C(n,k) mod k) mod n. ; Submitted by Christian Krause ; 0,1,2,2,3,2,2,3,6,3,3,2,1,0,2,14,13,13,12,8,18,16,14,20,2,23,24,21,19,22,19,15,21,2,25,6,1,26,25,38,33,4,42,19,34,19,14,38,31,18,22,20,14,42,29,13,9,44,38,39,31,9,4,9,25,7,63,22,2,17,7,38,27,44,25,12,7,63,53,14,8,39,26,6,43,68,57,60,48,73,39,20,17,72,17,63,48,68,27,4 add $0,1 mov $2,2 mov $3,$0 mov $4,$0 lpb $3 mov $5,$4 lpb $5 mul $5,$6 mov $7,$0 bin $7,$2 mod $7,$2 lpe add $1,$7 add $2,1 mov $7,$0 cmp $7,0 cmp $7,0 sub $3,$7 lpe mod $1,$0 mov $0,$1
577
Assembly
asm
22.192308
269
0.554593
f70645f5353be340e292b493ecde2c54033309fa
neoneye/loda-programs
[ "Apache-2.0" ]
11
; Stub for the TI 83 calculator ; ; Stefano Bodrato - Dec 2000 ; Henk Poley - Apr 2001 Fixed and add some things ; ; $Id: ti83_crt0.asm,v 1.32 2016-07-11 05:58:34 stefano Exp $ ; ; startup = ; n - Primary shell(s); compatible shell(s) ; (Primary shell merely means it's the smallest implementation ; for that shell, that uses full capabilities of the shell) ; ; 1 - Ion; Ti-Explorer (default) ; 2 - Venus; ; 3 - ZES; ; 4 - Anova; SOS ; 5 - Ti-Explorer, AShell; SOS, Anova (same as 6) ; 6 - AShell, Ti-Explorer; SOS, Anova (same as 5) ; 7 - SOS; Anova ; 8 - Venus Explorer; Venus ; 9 - Ion, Ti-Explorer; ZASMLOAD, plain TIOS ; 10 - Plain TIOS, ZASMLOAD ; ;----------------------------------------------------- ; Some general PUBLICs and EXTERNs needed by the assembler ;----------------------------------------------------- MODULE Ti83_crt0 EXTERN _main ; No matter what set up we have, main is ; always, always external to this file. PUBLIC cleanup ; used by exit() PUBLIC l_dcal ; used by calculated calls = "call (hl)" PUBLIC cpygraph ; TI calc specific stuff PUBLIC tidi ; PUBLIC tiei ; ;------------------------- ; Begin of (shell) headers ;------------------------- LSTOFF ; Don't list these (huge) files defc crt0 = 1 INCLUDE "Ti83.def" ; ROM / RAM adresses on Ti83 INCLUDE "zcc_opt.def" ; Receive all compiler-defines LSTON ; List again defc CONSOLE_ROWS = 8 defc TAR__clib_exit_stack_size = 3 defc TAR__register_sp = -1 defc __CPU_CLOCK = 6000000 INCLUDE "crt/classic/crt_rules.inc" ;---------------------------------- ; 2-Venus and 8-Venus Explorer (VE) ;---------------------------------- IF (startup=2) | (startup=8) DEFINE Venus DEFINE NOT_DEFAULT_SHELL ; else we would use Ion org $932C defm "ç9_[?" ; send(9prgm0 (where 0 is theta) IF (startup=2) ; 2-Venus defb $0,$1,$1 ; No description nor icon ELSE ; 8-Venus Explorer DEFINE V_Explorer defb $1 defb enddesc-description+1 ; lengthOfDescription+1 description: DEFINE NEED_name ; The next time we'll include zcc_opt.def ; it will have the programs namestring. ; Usage in C file: ; #pragma string name xxxx INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name ; If no namestring provided, display full compiler ident defm "Z88DK Small C+ Program" ENDIF enddesc: defb endicon-icon+1 ; heightOfIcon+1 icon: DEFINE NEED_icon INCLUDE "zcc_opt.def" ; Get icon from zcc_opt.def UNDEFINE NEED_icon IF !DEFINED_NEED_icon defb @00000000 ; Icon (max. heightOfIcon = 7 bytes) defb @00110010 ; C with a small '+' defb @01000111 defb @01000010 defb @01000000 defb @00110000 defb @00000000 ENDIF endicon: externals: ENDIF IF DEFINED_GRAYlib defb $1 ; numberOfExternals+1 (maximum = 11d) ELSE ; No graylib, so we use FastCopy defc vnFastCopy = $FE6F defb $2 ; numberOfExternals+1 (maximum = 11d) defb $5 ; We use the FastCopy-lib defm "~FCPY" ; defb $ff ; ENDIF ENDIF ;------ ; 3-ZES ;------ IF (startup=3) DEFINE ZES DEFINE NOT_DEFAULT_SHELL org $931E defm "ç9_ZES" ; Send(9prgmZES defb $3F,$D5,$3F ; :Return ENDIF ;-------- ; 4-Anova ;-------- IF (startup=4) DEFINE Anova DEFINE NOT_DEFAULT_SHELL org Entry xor a ; One byte instruction, meaningless jr start ; Relative jump defw 0 ; pointer to libs, 0 if no libs used defw description ; pointer to a description defw icon ; pointer to an 8x5 icon description: DEFINE NEED_name INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name defm "Z88DK Small C+ Program" ENDIF defb $0 icon: DEFINE NEED_icon INCLUDE "zcc_opt.def" UNDEFINE NEED_icon IF !DEFINED_NEED_icon defb @00110010 ; icon (5 bytes, Anova icon) defb @01000111 ; C with a small '+' defb @01000010 defb @01000000 ; Bigger icons don't give problems defb @00110000 ; They are only truncated to 5 bytes ENDIF ENDIF ;------------------------------- ; 5,6 - Ti-Explorer, AShell, SOS ;------------------------------- IF (startup=5) | (startup=6) DEFINE Ti_Explorer DEFINE NOT_DEFAULT_SHELL org Entry nop ; makes it compatible with AShell jr start defw 0 ; pointer to libs, 0 if no libs used defw description ; pointer to a description defw icon ; pointer to an 8x8 icon.description description: DEFINE NEED_name INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name defm "Z88DK Small C+ Program" ENDIF defb $0 icon: DEFINE NEED_icon INCLUDE "zcc_opt.def" UNDEFINE NEED_icon IF !DEFINED_NEED_icon defb @00000000 ; 8x8 icon defb @00110010 ; C with a small '+' defb @01000111 defb @01000010 defb @01000000 defb @00110000 defb @00000000 ; Bigger icons don't give problems defb @00000000 ; They are only truncated to 8 bytes ENDIF ENDIF ;--------- ; 7 - SOS ;--------- IF (startup=7) DEFINE SOS DEFINE NOT_DEFAULT_SHELL org Entry ccf ; Makes program invisible to AShell jr start defw 0 ; pointer to libs, 0 if no libs used defw description ; pointer to a description description: DEFINE NEED_name INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name defm "Z88DK Small C+ Program" ENDIF defb $0 ENDIF ;--------------------------- ; 9-Ion, ZASMLOAD compatible ;--------------------------- IF (startup=9) DEFINE ZASMLOAD DEFINE NOT_DEFAULT_SHELL org Entry xor a ; We don't use the Ionlibs jr nc,start ; Ion identifier DEFINE NEED_name INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name defm "Z88DK Small C+ Program" ENDIF defb $0 ENDIF ;---------------------------------------------------------- ; 10-No shell, send(9 or ZASMLOAD version (NOT recommended) ;---------------------------------------------------------- ; ; for send(9 version, create .83p file with bin2var2.exe ; for ZASMLOAD version, create .83p file with bin2var.exe IF (startup=10) DEFINE ZASMLOAD DEFINE NOT_DEFAULT_SHELL org Entry ENDIF ;---------------- ; 1-Ion (default) ;---------------- IF !NOT_DEFAULT_SHELL DEFINE Ion org Entry IF DEFINED_GRAYlib xor a ; We don't use the Ionlibs (doesn't matter) ELSE ret ; We use the Ionlibs (doesn't matter) ENDIF jr nc,start ; Ion identifier description: DEFINE NEED_name INCLUDE "zcc_opt.def" UNDEFINE NEED_name IF !DEFINED_NEED_name defm "Z88DK Small C+ Program" ENDIF defb $0 ENDIF ;------------------------------------- ; End of header, begin of startup part ;------------------------------------- start: IF ZASMLOAD call _runIndicOff ; stop anoing run-indicator ENDIF ld (__restore_sp_onexit+1),sp INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" call crt0_init_bss ld (exitsp),sp IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF EXTERN fputc_cons ld hl,12 push hl call fputc_cons pop hl IF ZASMLOAD IF NONANSI call _CLRTXTSHD ; Clear textbuffer call _homeup ; Set cursor to (0,0) ENDIF call _clrScrnFull ; Clear plotSScreen and LCD ENDIF IF DEFINED_GRAYlib INCLUDE "target/ti83/classic/gray83.asm" ELSE INCLUDE "target/ti83/classic/intwrap83.asm" ENDIF im 2 call _main cleanup: ; exit() jumps to this point __restore_sp_onexit: ld sp,0 ; writeback ld iy,_IY_TABLE ; Restore flag-pointer IF !(Ion | SOS | Ti_Explorer | V_Explorer | Anova) IF NONANSI call _CLRTXTSHD ; Clear textbuffer call _homeup ; Set cursor to (0,0) ENDIF call _clrScrnFull ; Clear plotSScreen and LCD res onInterrupt,(iy+onflags) ; Reset [On]-flag (stops "ERR:Break") ENDIF im 1 tiei: ei IF DEFINED_GRAYlib cpygraph: ENDIF tidi: ret ;---------------------------------------- ; End of startup part, routines following ;---------------------------------------- defc l_dcal = $52E8 ; jp (hl) IF !DEFINED_GRAYlib IF Ion DEFINE Do_Not_Include_FastCopy defc cpygraph = $9157+80+15 ; ionFastCopy call ENDIF IF Venus DEFINE Do_Not_Include_FastCopy defc cpygraph = vnFastCopy ENDIF IF !Do_Not_Include_FastCopy cpygraph: ;(ion)FastCopy from Joe Wingbermuehle di ld a,$80 ; 7 out ($10),a ; 11 ld hl,plotSScreen-12-(-(12*64)+1) ; 10 ld a,$20 ; 7 ld c,a ; 4 inc hl ; 6 waste dec hl ; 6 waste fastCopyAgain: ld b,64 ; 7 inc c ; 4 ld de,-(12*64)+1 ; 10 out ($10),a ; 11 add hl,de ; 11 ld de,10 ; 10 fastCopyLoop: add hl,de ; 11 inc hl ; 6 waste inc hl ; 6 waste inc de ; 6 ld a,(hl) ; 7 out ($11),a ; 11 dec de ; 6 djnz fastCopyLoop ; 13/8 ld a,c ; 4 cp $2B+1 ; 7 jr nz,fastCopyAgain ; 10/1 ret ; 10 ENDIF ENDIF defc ansipixels = 96 IF !DEFINED_ansicolumns defc DEFINED_ansicolumns = 1 defc ansicolumns = 32 ENDIF INCLUDE "crt/classic/crt_runtime_selection.asm" INCLUDE "crt/classic/crt_section.asm" SECTION code_crt_init ld hl,plotSScreen ld (base_graphics),hl
8,858
Assembly
asm
22.712821
68
0.645857
f7070d44a3b729bc52408187f842fdbcdf238760
dikdom/z88dk
[ "ClArtistic" ]
1
;------------------------------------------------------------------------------ ; ; Copyright (c) 2009-2013, ARM Ltd. All rights reserved. ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ EXPORT SetJump EXPORT InternalLongJump ; MS_CHANGE: change area name to |.text| and add an ALIGN directive AREA |.text|, ALIGN=3, CODE, READONLY ;/** ; Saves the current CPU context that can be restored with a call to LongJump() and returns 0.# ; ; Saves the current CPU context in the buffer specified by JumpBuffer and returns 0. The initial ; call to SetJump() must always return 0. Subsequent calls to LongJump() cause a non-zero ; value to be returned by SetJump(). ; ; If JumpBuffer is NULL, then ASSERT(). ; For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT(). ; ; @param JumpBuffer A pointer to CPU context buffer. ; ;**/ ; ;UINTN ;EFIAPI ;SetJump ( ; IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer // X0 ; ); ; ; MS_CHANGE: do not use the pre-processor macro as it doesn't work with VS ARM Assembler SetJump mov x16, sp // use IP0 so save SP stp x19, x20, [x0, #0] stp x21, x22, [x0, #16] stp x23, x24, [x0, #32] stp x25, x26, [x0, #48] stp x27, x28, [x0, #64] stp x29, x30, [x0, #80] str x16, [x0, #96] stp d8, d9, [x0, #112] stp d10, d11, [x0, #128] stp d12, d13, [x0, #144] stp d14, d15, [x0, #160] mov w0, #0 ret ;/** ; Restores the CPU context that was saved with SetJump().# ; ; Restores the CPU context from the buffer specified by JumpBuffer. ; This function never returns to the caller. ; Instead is resumes execution based on the state of JumpBuffer. ; ; @param JumpBuffer A pointer to CPU context buffer. ; @param Value The value to return when the SetJump() context is restored. ; ;**/ ;VOID ;EFIAPI ;InternalLongJump ( ; IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer, // X0 ; IN UINTN Value // X1 ; ); ; ; MS_CHANGE: do not use the pre-processor macro as it doesn't work with VS ARM Assembler InternalLongJump ldp x19, x20, [x0, #0] ldp x21, x22, [x0, #16] ldp x23, x24, [x0, #32] ldp x25, x26, [x0, #48] ldp x27, x28, [x0, #64] ldp x29, x30, [x0, #80] ldr x16, [x0, #96] ldp d8, d9, [x0, #112] ldp d10, d11, [x0, #128] ldp d12, d13, [x0, #144] ldp d14, d15, [x0, #160] mov sp, x16 cmp w1, #0 mov w0, #1 beq exit mov w0, w1 exit // use br not ret, as ret is guaranteed to mispredict br x30 ASM_FUNCTION_REMOVE_IF_UNREFERENCED END
2,923
Assembly
asm
30.768421
99
0.539514
f707368ad7949c62b2fef9b16d5cc5b13eea85a0
makubacki/mu_basecore
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
100
user/_strace: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #include "kernel/types.h" #include "kernel/stat.h" #include "user/user.h" int main(int argc, char **argv) { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec26 sd s1,24(sp) 8: 1800 addi s0,sp,48 a: 84ae mv s1,a1 int pid = fork(); c: 00000097 auipc ra,0x0 10: 2c4080e7 jalr 708(ra) # 2d0 <fork> if (!pid) 14: ed05 bnez a0,4c <main+0x4c> { trace(atoi(argv[1])); 16: 6488 ld a0,8(s1) 18: 00000097 auipc ra,0x0 1c: 1c0080e7 jalr 448(ra) # 1d8 <atoi> 20: 00000097 auipc ra,0x0 24: 360080e7 jalr 864(ra) # 380 <trace> if (exec(argv[2], argv + 2) < 0) 28: 01048593 addi a1,s1,16 2c: 6888 ld a0,16(s1) 2e: 00000097 auipc ra,0x0 32: 2e2080e7 jalr 738(ra) # 310 <exec> 36: 02055163 bgez a0,58 <main+0x58> printf("Exec error\n"); 3a: 00000517 auipc a0,0x0 3e: 7ce50513 addi a0,a0,1998 # 808 <malloc+0xea> 42: 00000097 auipc ra,0x0 46: 61e080e7 jalr 1566(ra) # 660 <printf> 4a: a039 j 58 <main+0x58> } else { int status; wait(&status); 4c: fdc40513 addi a0,s0,-36 50: 00000097 auipc ra,0x0 54: 290080e7 jalr 656(ra) # 2e0 <wait> } // return 0; exit(0); 58: 4501 li a0,0 5a: 00000097 auipc ra,0x0 5e: 27e080e7 jalr 638(ra) # 2d8 <exit> 0000000000000062 <strcpy>: 62: 1141 addi sp,sp,-16 64: e422 sd s0,8(sp) 66: 0800 addi s0,sp,16 68: 87aa mv a5,a0 6a: 0585 addi a1,a1,1 6c: 0785 addi a5,a5,1 6e: fff5c703 lbu a4,-1(a1) 72: fee78fa3 sb a4,-1(a5) 76: fb75 bnez a4,6a <strcpy+0x8> 78: 6422 ld s0,8(sp) 7a: 0141 addi sp,sp,16 7c: 8082 ret 000000000000007e <strcmp>: 7e: 1141 addi sp,sp,-16 80: e422 sd s0,8(sp) 82: 0800 addi s0,sp,16 84: 00054783 lbu a5,0(a0) 88: cb91 beqz a5,9c <strcmp+0x1e> 8a: 0005c703 lbu a4,0(a1) 8e: 00f71763 bne a4,a5,9c <strcmp+0x1e> 92: 0505 addi a0,a0,1 94: 0585 addi a1,a1,1 96: 00054783 lbu a5,0(a0) 9a: fbe5 bnez a5,8a <strcmp+0xc> 9c: 0005c503 lbu a0,0(a1) a0: 40a7853b subw a0,a5,a0 a4: 6422 ld s0,8(sp) a6: 0141 addi sp,sp,16 a8: 8082 ret 00000000000000aa <strlen>: aa: 1141 addi sp,sp,-16 ac: e422 sd s0,8(sp) ae: 0800 addi s0,sp,16 b0: 00054783 lbu a5,0(a0) b4: cf91 beqz a5,d0 <strlen+0x26> b6: 0505 addi a0,a0,1 b8: 87aa mv a5,a0 ba: 4685 li a3,1 bc: 9e89 subw a3,a3,a0 be: 00f6853b addw a0,a3,a5 c2: 0785 addi a5,a5,1 c4: fff7c703 lbu a4,-1(a5) c8: fb7d bnez a4,be <strlen+0x14> ca: 6422 ld s0,8(sp) cc: 0141 addi sp,sp,16 ce: 8082 ret d0: 4501 li a0,0 d2: bfe5 j ca <strlen+0x20> 00000000000000d4 <memset>: d4: 1141 addi sp,sp,-16 d6: e422 sd s0,8(sp) d8: 0800 addi s0,sp,16 da: ce09 beqz a2,f4 <memset+0x20> dc: 87aa mv a5,a0 de: fff6071b addiw a4,a2,-1 e2: 1702 slli a4,a4,0x20 e4: 9301 srli a4,a4,0x20 e6: 0705 addi a4,a4,1 e8: 972a add a4,a4,a0 ea: 00b78023 sb a1,0(a5) ee: 0785 addi a5,a5,1 f0: fee79de3 bne a5,a4,ea <memset+0x16> f4: 6422 ld s0,8(sp) f6: 0141 addi sp,sp,16 f8: 8082 ret 00000000000000fa <strchr>: fa: 1141 addi sp,sp,-16 fc: e422 sd s0,8(sp) fe: 0800 addi s0,sp,16 100: 00054783 lbu a5,0(a0) 104: cb99 beqz a5,11a <strchr+0x20> 106: 00f58763 beq a1,a5,114 <strchr+0x1a> 10a: 0505 addi a0,a0,1 10c: 00054783 lbu a5,0(a0) 110: fbfd bnez a5,106 <strchr+0xc> 112: 4501 li a0,0 114: 6422 ld s0,8(sp) 116: 0141 addi sp,sp,16 118: 8082 ret 11a: 4501 li a0,0 11c: bfe5 j 114 <strchr+0x1a> 000000000000011e <gets>: 11e: 711d addi sp,sp,-96 120: ec86 sd ra,88(sp) 122: e8a2 sd s0,80(sp) 124: e4a6 sd s1,72(sp) 126: e0ca sd s2,64(sp) 128: fc4e sd s3,56(sp) 12a: f852 sd s4,48(sp) 12c: f456 sd s5,40(sp) 12e: f05a sd s6,32(sp) 130: ec5e sd s7,24(sp) 132: 1080 addi s0,sp,96 134: 8baa mv s7,a0 136: 8a2e mv s4,a1 138: 892a mv s2,a0 13a: 4481 li s1,0 13c: 4aa9 li s5,10 13e: 4b35 li s6,13 140: 89a6 mv s3,s1 142: 2485 addiw s1,s1,1 144: 0344d863 bge s1,s4,174 <gets+0x56> 148: 4605 li a2,1 14a: faf40593 addi a1,s0,-81 14e: 4501 li a0,0 150: 00000097 auipc ra,0x0 154: 1a0080e7 jalr 416(ra) # 2f0 <read> 158: 00a05e63 blez a0,174 <gets+0x56> 15c: faf44783 lbu a5,-81(s0) 160: 00f90023 sb a5,0(s2) 164: 01578763 beq a5,s5,172 <gets+0x54> 168: 0905 addi s2,s2,1 16a: fd679be3 bne a5,s6,140 <gets+0x22> 16e: 89a6 mv s3,s1 170: a011 j 174 <gets+0x56> 172: 89a6 mv s3,s1 174: 99de add s3,s3,s7 176: 00098023 sb zero,0(s3) 17a: 855e mv a0,s7 17c: 60e6 ld ra,88(sp) 17e: 6446 ld s0,80(sp) 180: 64a6 ld s1,72(sp) 182: 6906 ld s2,64(sp) 184: 79e2 ld s3,56(sp) 186: 7a42 ld s4,48(sp) 188: 7aa2 ld s5,40(sp) 18a: 7b02 ld s6,32(sp) 18c: 6be2 ld s7,24(sp) 18e: 6125 addi sp,sp,96 190: 8082 ret 0000000000000192 <stat>: 192: 1101 addi sp,sp,-32 194: ec06 sd ra,24(sp) 196: e822 sd s0,16(sp) 198: e426 sd s1,8(sp) 19a: e04a sd s2,0(sp) 19c: 1000 addi s0,sp,32 19e: 892e mv s2,a1 1a0: 4581 li a1,0 1a2: 00000097 auipc ra,0x0 1a6: 176080e7 jalr 374(ra) # 318 <open> 1aa: 02054563 bltz a0,1d4 <stat+0x42> 1ae: 84aa mv s1,a0 1b0: 85ca mv a1,s2 1b2: 00000097 auipc ra,0x0 1b6: 17e080e7 jalr 382(ra) # 330 <fstat> 1ba: 892a mv s2,a0 1bc: 8526 mv a0,s1 1be: 00000097 auipc ra,0x0 1c2: 142080e7 jalr 322(ra) # 300 <close> 1c6: 854a mv a0,s2 1c8: 60e2 ld ra,24(sp) 1ca: 6442 ld s0,16(sp) 1cc: 64a2 ld s1,8(sp) 1ce: 6902 ld s2,0(sp) 1d0: 6105 addi sp,sp,32 1d2: 8082 ret 1d4: 597d li s2,-1 1d6: bfc5 j 1c6 <stat+0x34> 00000000000001d8 <atoi>: 1d8: 1141 addi sp,sp,-16 1da: e422 sd s0,8(sp) 1dc: 0800 addi s0,sp,16 1de: 00054603 lbu a2,0(a0) 1e2: fd06079b addiw a5,a2,-48 1e6: 0ff7f793 andi a5,a5,255 1ea: 4725 li a4,9 1ec: 02f76963 bltu a4,a5,21e <atoi+0x46> 1f0: 86aa mv a3,a0 1f2: 4501 li a0,0 1f4: 45a5 li a1,9 1f6: 0685 addi a3,a3,1 1f8: 0025179b slliw a5,a0,0x2 1fc: 9fa9 addw a5,a5,a0 1fe: 0017979b slliw a5,a5,0x1 202: 9fb1 addw a5,a5,a2 204: fd07851b addiw a0,a5,-48 208: 0006c603 lbu a2,0(a3) 20c: fd06071b addiw a4,a2,-48 210: 0ff77713 andi a4,a4,255 214: fee5f1e3 bgeu a1,a4,1f6 <atoi+0x1e> 218: 6422 ld s0,8(sp) 21a: 0141 addi sp,sp,16 21c: 8082 ret 21e: 4501 li a0,0 220: bfe5 j 218 <atoi+0x40> 0000000000000222 <memmove>: 222: 1141 addi sp,sp,-16 224: e422 sd s0,8(sp) 226: 0800 addi s0,sp,16 228: 02b57663 bgeu a0,a1,254 <memmove+0x32> 22c: 02c05163 blez a2,24e <memmove+0x2c> 230: fff6079b addiw a5,a2,-1 234: 1782 slli a5,a5,0x20 236: 9381 srli a5,a5,0x20 238: 0785 addi a5,a5,1 23a: 97aa add a5,a5,a0 23c: 872a mv a4,a0 23e: 0585 addi a1,a1,1 240: 0705 addi a4,a4,1 242: fff5c683 lbu a3,-1(a1) 246: fed70fa3 sb a3,-1(a4) 24a: fee79ae3 bne a5,a4,23e <memmove+0x1c> 24e: 6422 ld s0,8(sp) 250: 0141 addi sp,sp,16 252: 8082 ret 254: 00c50733 add a4,a0,a2 258: 95b2 add a1,a1,a2 25a: fec05ae3 blez a2,24e <memmove+0x2c> 25e: fff6079b addiw a5,a2,-1 262: 1782 slli a5,a5,0x20 264: 9381 srli a5,a5,0x20 266: fff7c793 not a5,a5 26a: 97ba add a5,a5,a4 26c: 15fd addi a1,a1,-1 26e: 177d addi a4,a4,-1 270: 0005c683 lbu a3,0(a1) 274: 00d70023 sb a3,0(a4) 278: fee79ae3 bne a5,a4,26c <memmove+0x4a> 27c: bfc9 j 24e <memmove+0x2c> 000000000000027e <memcmp>: 27e: 1141 addi sp,sp,-16 280: e422 sd s0,8(sp) 282: 0800 addi s0,sp,16 284: ca05 beqz a2,2b4 <memcmp+0x36> 286: fff6069b addiw a3,a2,-1 28a: 1682 slli a3,a3,0x20 28c: 9281 srli a3,a3,0x20 28e: 0685 addi a3,a3,1 290: 96aa add a3,a3,a0 292: 00054783 lbu a5,0(a0) 296: 0005c703 lbu a4,0(a1) 29a: 00e79863 bne a5,a4,2aa <memcmp+0x2c> 29e: 0505 addi a0,a0,1 2a0: 0585 addi a1,a1,1 2a2: fed518e3 bne a0,a3,292 <memcmp+0x14> 2a6: 4501 li a0,0 2a8: a019 j 2ae <memcmp+0x30> 2aa: 40e7853b subw a0,a5,a4 2ae: 6422 ld s0,8(sp) 2b0: 0141 addi sp,sp,16 2b2: 8082 ret 2b4: 4501 li a0,0 2b6: bfe5 j 2ae <memcmp+0x30> 00000000000002b8 <memcpy>: 2b8: 1141 addi sp,sp,-16 2ba: e406 sd ra,8(sp) 2bc: e022 sd s0,0(sp) 2be: 0800 addi s0,sp,16 2c0: 00000097 auipc ra,0x0 2c4: f62080e7 jalr -158(ra) # 222 <memmove> 2c8: 60a2 ld ra,8(sp) 2ca: 6402 ld s0,0(sp) 2cc: 0141 addi sp,sp,16 2ce: 8082 ret 00000000000002d0 <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 2d0: 4885 li a7,1 ecall 2d2: 00000073 ecall ret 2d6: 8082 ret 00000000000002d8 <exit>: .global exit exit: li a7, SYS_exit 2d8: 4889 li a7,2 ecall 2da: 00000073 ecall ret 2de: 8082 ret 00000000000002e0 <wait>: .global wait wait: li a7, SYS_wait 2e0: 488d li a7,3 ecall 2e2: 00000073 ecall ret 2e6: 8082 ret 00000000000002e8 <pipe>: .global pipe pipe: li a7, SYS_pipe 2e8: 4891 li a7,4 ecall 2ea: 00000073 ecall ret 2ee: 8082 ret 00000000000002f0 <read>: .global read read: li a7, SYS_read 2f0: 4895 li a7,5 ecall 2f2: 00000073 ecall ret 2f6: 8082 ret 00000000000002f8 <write>: .global write write: li a7, SYS_write 2f8: 48c1 li a7,16 ecall 2fa: 00000073 ecall ret 2fe: 8082 ret 0000000000000300 <close>: .global close close: li a7, SYS_close 300: 48d5 li a7,21 ecall 302: 00000073 ecall ret 306: 8082 ret 0000000000000308 <kill>: .global kill kill: li a7, SYS_kill 308: 4899 li a7,6 ecall 30a: 00000073 ecall ret 30e: 8082 ret 0000000000000310 <exec>: .global exec exec: li a7, SYS_exec 310: 489d li a7,7 ecall 312: 00000073 ecall ret 316: 8082 ret 0000000000000318 <open>: .global open open: li a7, SYS_open 318: 48bd li a7,15 ecall 31a: 00000073 ecall ret 31e: 8082 ret 0000000000000320 <mknod>: .global mknod mknod: li a7, SYS_mknod 320: 48c5 li a7,17 ecall 322: 00000073 ecall ret 326: 8082 ret 0000000000000328 <unlink>: .global unlink unlink: li a7, SYS_unlink 328: 48c9 li a7,18 ecall 32a: 00000073 ecall ret 32e: 8082 ret 0000000000000330 <fstat>: .global fstat fstat: li a7, SYS_fstat 330: 48a1 li a7,8 ecall 332: 00000073 ecall ret 336: 8082 ret 0000000000000338 <link>: .global link link: li a7, SYS_link 338: 48cd li a7,19 ecall 33a: 00000073 ecall ret 33e: 8082 ret 0000000000000340 <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 340: 48d1 li a7,20 ecall 342: 00000073 ecall ret 346: 8082 ret 0000000000000348 <chdir>: .global chdir chdir: li a7, SYS_chdir 348: 48a5 li a7,9 ecall 34a: 00000073 ecall ret 34e: 8082 ret 0000000000000350 <dup>: .global dup dup: li a7, SYS_dup 350: 48a9 li a7,10 ecall 352: 00000073 ecall ret 356: 8082 ret 0000000000000358 <getpid>: .global getpid getpid: li a7, SYS_getpid 358: 48ad li a7,11 ecall 35a: 00000073 ecall ret 35e: 8082 ret 0000000000000360 <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 360: 48b1 li a7,12 ecall 362: 00000073 ecall ret 366: 8082 ret 0000000000000368 <sleep>: .global sleep sleep: li a7, SYS_sleep 368: 48b5 li a7,13 ecall 36a: 00000073 ecall ret 36e: 8082 ret 0000000000000370 <uptime>: .global uptime uptime: li a7, SYS_uptime 370: 48b9 li a7,14 ecall 372: 00000073 ecall ret 376: 8082 ret 0000000000000378 <set_priority>: .global set_priority set_priority: li a7, SYS_set_priority 378: 48d9 li a7,22 ecall 37a: 00000073 ecall ret 37e: 8082 ret 0000000000000380 <trace>: .global trace trace: li a7, SYS_trace 380: 48dd li a7,23 ecall 382: 00000073 ecall ret 386: 8082 ret 0000000000000388 <putc>: 388: 1101 addi sp,sp,-32 38a: ec06 sd ra,24(sp) 38c: e822 sd s0,16(sp) 38e: 1000 addi s0,sp,32 390: feb407a3 sb a1,-17(s0) 394: 4605 li a2,1 396: fef40593 addi a1,s0,-17 39a: 00000097 auipc ra,0x0 39e: f5e080e7 jalr -162(ra) # 2f8 <write> 3a2: 60e2 ld ra,24(sp) 3a4: 6442 ld s0,16(sp) 3a6: 6105 addi sp,sp,32 3a8: 8082 ret 00000000000003aa <printint>: 3aa: 7139 addi sp,sp,-64 3ac: fc06 sd ra,56(sp) 3ae: f822 sd s0,48(sp) 3b0: f426 sd s1,40(sp) 3b2: f04a sd s2,32(sp) 3b4: ec4e sd s3,24(sp) 3b6: 0080 addi s0,sp,64 3b8: 84aa mv s1,a0 3ba: c299 beqz a3,3c0 <printint+0x16> 3bc: 0805c863 bltz a1,44c <printint+0xa2> 3c0: 2581 sext.w a1,a1 3c2: 4881 li a7,0 3c4: fc040693 addi a3,s0,-64 3c8: 4701 li a4,0 3ca: 2601 sext.w a2,a2 3cc: 00000517 auipc a0,0x0 3d0: 45450513 addi a0,a0,1108 # 820 <digits> 3d4: 883a mv a6,a4 3d6: 2705 addiw a4,a4,1 3d8: 02c5f7bb remuw a5,a1,a2 3dc: 1782 slli a5,a5,0x20 3de: 9381 srli a5,a5,0x20 3e0: 97aa add a5,a5,a0 3e2: 0007c783 lbu a5,0(a5) 3e6: 00f68023 sb a5,0(a3) 3ea: 0005879b sext.w a5,a1 3ee: 02c5d5bb divuw a1,a1,a2 3f2: 0685 addi a3,a3,1 3f4: fec7f0e3 bgeu a5,a2,3d4 <printint+0x2a> 3f8: 00088b63 beqz a7,40e <printint+0x64> 3fc: fd040793 addi a5,s0,-48 400: 973e add a4,a4,a5 402: 02d00793 li a5,45 406: fef70823 sb a5,-16(a4) 40a: 0028071b addiw a4,a6,2 40e: 02e05863 blez a4,43e <printint+0x94> 412: fc040793 addi a5,s0,-64 416: 00e78933 add s2,a5,a4 41a: fff78993 addi s3,a5,-1 41e: 99ba add s3,s3,a4 420: 377d addiw a4,a4,-1 422: 1702 slli a4,a4,0x20 424: 9301 srli a4,a4,0x20 426: 40e989b3 sub s3,s3,a4 42a: fff94583 lbu a1,-1(s2) 42e: 8526 mv a0,s1 430: 00000097 auipc ra,0x0 434: f58080e7 jalr -168(ra) # 388 <putc> 438: 197d addi s2,s2,-1 43a: ff3918e3 bne s2,s3,42a <printint+0x80> 43e: 70e2 ld ra,56(sp) 440: 7442 ld s0,48(sp) 442: 74a2 ld s1,40(sp) 444: 7902 ld s2,32(sp) 446: 69e2 ld s3,24(sp) 448: 6121 addi sp,sp,64 44a: 8082 ret 44c: 40b005bb negw a1,a1 450: 4885 li a7,1 452: bf8d j 3c4 <printint+0x1a> 0000000000000454 <vprintf>: 454: 7119 addi sp,sp,-128 456: fc86 sd ra,120(sp) 458: f8a2 sd s0,112(sp) 45a: f4a6 sd s1,104(sp) 45c: f0ca sd s2,96(sp) 45e: ecce sd s3,88(sp) 460: e8d2 sd s4,80(sp) 462: e4d6 sd s5,72(sp) 464: e0da sd s6,64(sp) 466: fc5e sd s7,56(sp) 468: f862 sd s8,48(sp) 46a: f466 sd s9,40(sp) 46c: f06a sd s10,32(sp) 46e: ec6e sd s11,24(sp) 470: 0100 addi s0,sp,128 472: 0005c903 lbu s2,0(a1) 476: 18090f63 beqz s2,614 <vprintf+0x1c0> 47a: 8aaa mv s5,a0 47c: 8b32 mv s6,a2 47e: 00158493 addi s1,a1,1 482: 4981 li s3,0 484: 02500a13 li s4,37 488: 06400c13 li s8,100 48c: 06c00c93 li s9,108 490: 07800d13 li s10,120 494: 07000d93 li s11,112 498: 00000b97 auipc s7,0x0 49c: 388b8b93 addi s7,s7,904 # 820 <digits> 4a0: a839 j 4be <vprintf+0x6a> 4a2: 85ca mv a1,s2 4a4: 8556 mv a0,s5 4a6: 00000097 auipc ra,0x0 4aa: ee2080e7 jalr -286(ra) # 388 <putc> 4ae: a019 j 4b4 <vprintf+0x60> 4b0: 01498f63 beq s3,s4,4ce <vprintf+0x7a> 4b4: 0485 addi s1,s1,1 4b6: fff4c903 lbu s2,-1(s1) 4ba: 14090d63 beqz s2,614 <vprintf+0x1c0> 4be: 0009079b sext.w a5,s2 4c2: fe0997e3 bnez s3,4b0 <vprintf+0x5c> 4c6: fd479ee3 bne a5,s4,4a2 <vprintf+0x4e> 4ca: 89be mv s3,a5 4cc: b7e5 j 4b4 <vprintf+0x60> 4ce: 05878063 beq a5,s8,50e <vprintf+0xba> 4d2: 05978c63 beq a5,s9,52a <vprintf+0xd6> 4d6: 07a78863 beq a5,s10,546 <vprintf+0xf2> 4da: 09b78463 beq a5,s11,562 <vprintf+0x10e> 4de: 07300713 li a4,115 4e2: 0ce78663 beq a5,a4,5ae <vprintf+0x15a> 4e6: 06300713 li a4,99 4ea: 0ee78e63 beq a5,a4,5e6 <vprintf+0x192> 4ee: 11478863 beq a5,s4,5fe <vprintf+0x1aa> 4f2: 85d2 mv a1,s4 4f4: 8556 mv a0,s5 4f6: 00000097 auipc ra,0x0 4fa: e92080e7 jalr -366(ra) # 388 <putc> 4fe: 85ca mv a1,s2 500: 8556 mv a0,s5 502: 00000097 auipc ra,0x0 506: e86080e7 jalr -378(ra) # 388 <putc> 50a: 4981 li s3,0 50c: b765 j 4b4 <vprintf+0x60> 50e: 008b0913 addi s2,s6,8 512: 4685 li a3,1 514: 4629 li a2,10 516: 000b2583 lw a1,0(s6) 51a: 8556 mv a0,s5 51c: 00000097 auipc ra,0x0 520: e8e080e7 jalr -370(ra) # 3aa <printint> 524: 8b4a mv s6,s2 526: 4981 li s3,0 528: b771 j 4b4 <vprintf+0x60> 52a: 008b0913 addi s2,s6,8 52e: 4681 li a3,0 530: 4629 li a2,10 532: 000b2583 lw a1,0(s6) 536: 8556 mv a0,s5 538: 00000097 auipc ra,0x0 53c: e72080e7 jalr -398(ra) # 3aa <printint> 540: 8b4a mv s6,s2 542: 4981 li s3,0 544: bf85 j 4b4 <vprintf+0x60> 546: 008b0913 addi s2,s6,8 54a: 4681 li a3,0 54c: 4641 li a2,16 54e: 000b2583 lw a1,0(s6) 552: 8556 mv a0,s5 554: 00000097 auipc ra,0x0 558: e56080e7 jalr -426(ra) # 3aa <printint> 55c: 8b4a mv s6,s2 55e: 4981 li s3,0 560: bf91 j 4b4 <vprintf+0x60> 562: 008b0793 addi a5,s6,8 566: f8f43423 sd a5,-120(s0) 56a: 000b3983 ld s3,0(s6) 56e: 03000593 li a1,48 572: 8556 mv a0,s5 574: 00000097 auipc ra,0x0 578: e14080e7 jalr -492(ra) # 388 <putc> 57c: 85ea mv a1,s10 57e: 8556 mv a0,s5 580: 00000097 auipc ra,0x0 584: e08080e7 jalr -504(ra) # 388 <putc> 588: 4941 li s2,16 58a: 03c9d793 srli a5,s3,0x3c 58e: 97de add a5,a5,s7 590: 0007c583 lbu a1,0(a5) 594: 8556 mv a0,s5 596: 00000097 auipc ra,0x0 59a: df2080e7 jalr -526(ra) # 388 <putc> 59e: 0992 slli s3,s3,0x4 5a0: 397d addiw s2,s2,-1 5a2: fe0914e3 bnez s2,58a <vprintf+0x136> 5a6: f8843b03 ld s6,-120(s0) 5aa: 4981 li s3,0 5ac: b721 j 4b4 <vprintf+0x60> 5ae: 008b0993 addi s3,s6,8 5b2: 000b3903 ld s2,0(s6) 5b6: 02090163 beqz s2,5d8 <vprintf+0x184> 5ba: 00094583 lbu a1,0(s2) 5be: c9a1 beqz a1,60e <vprintf+0x1ba> 5c0: 8556 mv a0,s5 5c2: 00000097 auipc ra,0x0 5c6: dc6080e7 jalr -570(ra) # 388 <putc> 5ca: 0905 addi s2,s2,1 5cc: 00094583 lbu a1,0(s2) 5d0: f9e5 bnez a1,5c0 <vprintf+0x16c> 5d2: 8b4e mv s6,s3 5d4: 4981 li s3,0 5d6: bdf9 j 4b4 <vprintf+0x60> 5d8: 00000917 auipc s2,0x0 5dc: 24090913 addi s2,s2,576 # 818 <malloc+0xfa> 5e0: 02800593 li a1,40 5e4: bff1 j 5c0 <vprintf+0x16c> 5e6: 008b0913 addi s2,s6,8 5ea: 000b4583 lbu a1,0(s6) 5ee: 8556 mv a0,s5 5f0: 00000097 auipc ra,0x0 5f4: d98080e7 jalr -616(ra) # 388 <putc> 5f8: 8b4a mv s6,s2 5fa: 4981 li s3,0 5fc: bd65 j 4b4 <vprintf+0x60> 5fe: 85d2 mv a1,s4 600: 8556 mv a0,s5 602: 00000097 auipc ra,0x0 606: d86080e7 jalr -634(ra) # 388 <putc> 60a: 4981 li s3,0 60c: b565 j 4b4 <vprintf+0x60> 60e: 8b4e mv s6,s3 610: 4981 li s3,0 612: b54d j 4b4 <vprintf+0x60> 614: 70e6 ld ra,120(sp) 616: 7446 ld s0,112(sp) 618: 74a6 ld s1,104(sp) 61a: 7906 ld s2,96(sp) 61c: 69e6 ld s3,88(sp) 61e: 6a46 ld s4,80(sp) 620: 6aa6 ld s5,72(sp) 622: 6b06 ld s6,64(sp) 624: 7be2 ld s7,56(sp) 626: 7c42 ld s8,48(sp) 628: 7ca2 ld s9,40(sp) 62a: 7d02 ld s10,32(sp) 62c: 6de2 ld s11,24(sp) 62e: 6109 addi sp,sp,128 630: 8082 ret 0000000000000632 <fprintf>: 632: 715d addi sp,sp,-80 634: ec06 sd ra,24(sp) 636: e822 sd s0,16(sp) 638: 1000 addi s0,sp,32 63a: e010 sd a2,0(s0) 63c: e414 sd a3,8(s0) 63e: e818 sd a4,16(s0) 640: ec1c sd a5,24(s0) 642: 03043023 sd a6,32(s0) 646: 03143423 sd a7,40(s0) 64a: fe843423 sd s0,-24(s0) 64e: 8622 mv a2,s0 650: 00000097 auipc ra,0x0 654: e04080e7 jalr -508(ra) # 454 <vprintf> 658: 60e2 ld ra,24(sp) 65a: 6442 ld s0,16(sp) 65c: 6161 addi sp,sp,80 65e: 8082 ret 0000000000000660 <printf>: 660: 711d addi sp,sp,-96 662: ec06 sd ra,24(sp) 664: e822 sd s0,16(sp) 666: 1000 addi s0,sp,32 668: e40c sd a1,8(s0) 66a: e810 sd a2,16(s0) 66c: ec14 sd a3,24(s0) 66e: f018 sd a4,32(s0) 670: f41c sd a5,40(s0) 672: 03043823 sd a6,48(s0) 676: 03143c23 sd a7,56(s0) 67a: 00840613 addi a2,s0,8 67e: fec43423 sd a2,-24(s0) 682: 85aa mv a1,a0 684: 4505 li a0,1 686: 00000097 auipc ra,0x0 68a: dce080e7 jalr -562(ra) # 454 <vprintf> 68e: 60e2 ld ra,24(sp) 690: 6442 ld s0,16(sp) 692: 6125 addi sp,sp,96 694: 8082 ret 0000000000000696 <free>: 696: 1141 addi sp,sp,-16 698: e422 sd s0,8(sp) 69a: 0800 addi s0,sp,16 69c: ff050693 addi a3,a0,-16 6a0: 00000797 auipc a5,0x0 6a4: 1987b783 ld a5,408(a5) # 838 <freep> 6a8: a805 j 6d8 <free+0x42> 6aa: 4618 lw a4,8(a2) 6ac: 9db9 addw a1,a1,a4 6ae: feb52c23 sw a1,-8(a0) 6b2: 6398 ld a4,0(a5) 6b4: 6318 ld a4,0(a4) 6b6: fee53823 sd a4,-16(a0) 6ba: a091 j 6fe <free+0x68> 6bc: ff852703 lw a4,-8(a0) 6c0: 9e39 addw a2,a2,a4 6c2: c790 sw a2,8(a5) 6c4: ff053703 ld a4,-16(a0) 6c8: e398 sd a4,0(a5) 6ca: a099 j 710 <free+0x7a> 6cc: 6398 ld a4,0(a5) 6ce: 00e7e463 bltu a5,a4,6d6 <free+0x40> 6d2: 00e6ea63 bltu a3,a4,6e6 <free+0x50> 6d6: 87ba mv a5,a4 6d8: fed7fae3 bgeu a5,a3,6cc <free+0x36> 6dc: 6398 ld a4,0(a5) 6de: 00e6e463 bltu a3,a4,6e6 <free+0x50> 6e2: fee7eae3 bltu a5,a4,6d6 <free+0x40> 6e6: ff852583 lw a1,-8(a0) 6ea: 6390 ld a2,0(a5) 6ec: 02059713 slli a4,a1,0x20 6f0: 9301 srli a4,a4,0x20 6f2: 0712 slli a4,a4,0x4 6f4: 9736 add a4,a4,a3 6f6: fae60ae3 beq a2,a4,6aa <free+0x14> 6fa: fec53823 sd a2,-16(a0) 6fe: 4790 lw a2,8(a5) 700: 02061713 slli a4,a2,0x20 704: 9301 srli a4,a4,0x20 706: 0712 slli a4,a4,0x4 708: 973e add a4,a4,a5 70a: fae689e3 beq a3,a4,6bc <free+0x26> 70e: e394 sd a3,0(a5) 710: 00000717 auipc a4,0x0 714: 12f73423 sd a5,296(a4) # 838 <freep> 718: 6422 ld s0,8(sp) 71a: 0141 addi sp,sp,16 71c: 8082 ret 000000000000071e <malloc>: 71e: 7139 addi sp,sp,-64 720: fc06 sd ra,56(sp) 722: f822 sd s0,48(sp) 724: f426 sd s1,40(sp) 726: f04a sd s2,32(sp) 728: ec4e sd s3,24(sp) 72a: e852 sd s4,16(sp) 72c: e456 sd s5,8(sp) 72e: e05a sd s6,0(sp) 730: 0080 addi s0,sp,64 732: 02051493 slli s1,a0,0x20 736: 9081 srli s1,s1,0x20 738: 04bd addi s1,s1,15 73a: 8091 srli s1,s1,0x4 73c: 0014899b addiw s3,s1,1 740: 0485 addi s1,s1,1 742: 00000517 auipc a0,0x0 746: 0f653503 ld a0,246(a0) # 838 <freep> 74a: c515 beqz a0,776 <malloc+0x58> 74c: 611c ld a5,0(a0) 74e: 4798 lw a4,8(a5) 750: 02977f63 bgeu a4,s1,78e <malloc+0x70> 754: 8a4e mv s4,s3 756: 0009871b sext.w a4,s3 75a: 6685 lui a3,0x1 75c: 00d77363 bgeu a4,a3,762 <malloc+0x44> 760: 6a05 lui s4,0x1 762: 000a0b1b sext.w s6,s4 766: 004a1a1b slliw s4,s4,0x4 76a: 00000917 auipc s2,0x0 76e: 0ce90913 addi s2,s2,206 # 838 <freep> 772: 5afd li s5,-1 774: a88d j 7e6 <malloc+0xc8> 776: 00000797 auipc a5,0x0 77a: 0ca78793 addi a5,a5,202 # 840 <base> 77e: 00000717 auipc a4,0x0 782: 0af73d23 sd a5,186(a4) # 838 <freep> 786: e39c sd a5,0(a5) 788: 0007a423 sw zero,8(a5) 78c: b7e1 j 754 <malloc+0x36> 78e: 02e48b63 beq s1,a4,7c4 <malloc+0xa6> 792: 4137073b subw a4,a4,s3 796: c798 sw a4,8(a5) 798: 1702 slli a4,a4,0x20 79a: 9301 srli a4,a4,0x20 79c: 0712 slli a4,a4,0x4 79e: 97ba add a5,a5,a4 7a0: 0137a423 sw s3,8(a5) 7a4: 00000717 auipc a4,0x0 7a8: 08a73a23 sd a0,148(a4) # 838 <freep> 7ac: 01078513 addi a0,a5,16 7b0: 70e2 ld ra,56(sp) 7b2: 7442 ld s0,48(sp) 7b4: 74a2 ld s1,40(sp) 7b6: 7902 ld s2,32(sp) 7b8: 69e2 ld s3,24(sp) 7ba: 6a42 ld s4,16(sp) 7bc: 6aa2 ld s5,8(sp) 7be: 6b02 ld s6,0(sp) 7c0: 6121 addi sp,sp,64 7c2: 8082 ret 7c4: 6398 ld a4,0(a5) 7c6: e118 sd a4,0(a0) 7c8: bff1 j 7a4 <malloc+0x86> 7ca: 01652423 sw s6,8(a0) 7ce: 0541 addi a0,a0,16 7d0: 00000097 auipc ra,0x0 7d4: ec6080e7 jalr -314(ra) # 696 <free> 7d8: 00093503 ld a0,0(s2) 7dc: d971 beqz a0,7b0 <malloc+0x92> 7de: 611c ld a5,0(a0) 7e0: 4798 lw a4,8(a5) 7e2: fa9776e3 bgeu a4,s1,78e <malloc+0x70> 7e6: 00093703 ld a4,0(s2) 7ea: 853e mv a0,a5 7ec: fef719e3 bne a4,a5,7de <malloc+0xc0> 7f0: 8552 mv a0,s4 7f2: 00000097 auipc ra,0x0 7f6: b6e080e7 jalr -1170(ra) # 360 <sbrk> 7fa: fd5518e3 bne a0,s5,7ca <malloc+0xac> 7fe: 4501 li a0,0 800: bf45 j 7b0 <malloc+0x92>
33,215
Assembly
asm
33.892857
60
0.464971
f7073ade3d6c81131bb78c6ab76935e019a4d64f
Pallavi-Pamulapati/Modified-xv6
[ "MIT-0" ]
null
; A022370: Fibonacci sequence beginning 2, 16. ; 2,16,18,34,52,86,138,224,362,586,948,1534,2482,4016,6498,10514,17012,27526,44538,72064,116602,188666,305268,493934,799202,1293136,2092338,3385474,5477812,8863286,14341098,23204384,37545482,60749866,98295348,159045214,257340562,416385776,673726338,1090112114,1763838452,2853950566,4617789018,7471739584,12089528602,19561268186,31650796788,51212064974,82862861762,134074926736,216937788498,351012715234,567950503732,918963218966,1486913722698,2405876941664,3892790664362,6298667606026,10191458270388,16490125876414,26681584146802,43171710023216,69853294170018,113025004193234,182878298363252,295903302556486,478781600919738,774684903476224,1253466504395962,2028151407872186,3281617912268148,5309769320140334,8591387232408482 mov $1,1 mov $3,8 lpb $0 sub $0,1 mov $2,$1 mov $1,$3 add $3,$2 lpe mul $1,2
858
Assembly
asm
66
724
0.848485
f70741e0f89bb312f78600bac85943dddf424d27
jmorken/loda
[ "Apache-2.0" ]
1
include asm.inc ;publics: ;setvmode() extrn _bgpic:far text__vid SEGMENT para public 'CODE' ASSUME cs:text__vid .386 modes dw OFFSET v320x200x256 dw OFFSET v320x350x256 dw OFFSET v320x350x256 dw OFFSET v320x240x256 dw OFFSET vtseng640x400x256 PUBLIC setvmode setvmode PROC FAR ;ax=mode => ds:si mov bx,ax shl bx,1 mov bx,cs:modes[bx] mov cx,16 @@1: mov ax,cs:[bx] mov ds:[si],ax mov word ptr ds:[si+2],cs add si,4 add bx,2 loop @@1 ret setvmode ENDP ;video mode structure v320x200x256 LABEL WORD dw OFFSET init320x200 ;init routine dw OFFSET switch320x200 ;page switcher dw OFFSET clear64k ;clear all screens dw OFFSET twpset dw OFFSET twlineto dw OFFSET twhline dw OFFSET twhlinegroup dw OFFSET twthlinegroup dw OFFSET polygroup dw OFFSET clearpage dw OFFSET fwaitborder v320x350x256 LABEL WORD dw OFFSET init320x350 ;init routine dw OFFSET switch320x350 ;page switcher dw OFFSET clear64k ;clear all screens dw OFFSET twpset dw OFFSET twlineto dw OFFSET twhline dw OFFSET twhlinegroup dw OFFSET twthlinegroup dw OFFSET polygroup dw OFFSET clearpage dw OFFSET fwaitborder v320x350x256unr LABEL WORD dw OFFSET init320x350unr ;init routine dw OFFSET switch320x350 ;page switcher dw OFFSET clear64k ;clear all screens dw OFFSET twpset dw OFFSET twlineto dw OFFSET twhline dw OFFSET twhlinegroup dw OFFSET twthlinegroup dw OFFSET polygroup dw OFFSET clearpage dw OFFSET fwaitborder v320x240x256 LABEL WORD dw OFFSET init320x240 ;init routine dw OFFSET switch320x240 ;page switcher dw OFFSET clear64k ;clear all screens dw OFFSET twpset dw OFFSET twlineto dw OFFSET twhline dw OFFSET twhlinegroup dw OFFSET twthlinegroup dw OFFSET polygroup dw OFFSET clearpage dw OFFSET fwaitborder vtseng640x400x256 LABEL WORD dw OFFSET init640x400 ;init routine dw OFFSET switch640x400 ;page switcher dw OFFSET clear640x400 ;clear all screens dw OFFSET twpset dw OFFSET twlineto dw OFFSET twhline dw OFFSET twhlinegroup dw OFFSET twthlinegroup dw OFFSET polygroup dw OFFSET clearpage dw OFFSET fwaitborder include vidmisc.asm include vidinit.asm include vidtwe.asm include vidnrm.asm include vidpoly.asm ;**************************************************************** setrows PROC NEAR mov cs:rowsadd,dx mov cs:truerowsadd,dx xor ax,ax mov bx,OFFSET rows ain1: mov ds:[bx],ax add ax,dx add bx,2 loop ain1 ret setrows ENDP ALIGN 2 pagep dw 0 wpage dw 0,1,2 wpage2 dw 0,4,8 spage dw 2,0,1 init640x400 PROC FAR LOADDS mov ds:projxmul,256*2 mov ds:projymul,213*2 mov ds:projxadd,320 mov ds:projyadd,200 mov ds:projminz,128 mov ds:projminzshr,7 mov ds:wminx,0 mov ds:wminy,0 mov ds:wmaxx,639 mov ds:wmaxy,399 mov ds:framerate10,700 ;70 frames/sec ; mov ax,11h ;640x480/mono int 10h call tweak640x400 mov cx,400 mov dx,160 call setrows ret init640x400 ENDP switch640x400 PROC FAR swipa2: mov ax,0a000h mov cs:vram,ax mov cs:truevram,ax mov bx,cs:pagep inc bx cmp bx,3 jb sws1 xor bx,bx sws1: mov cs:pagep,bx shl bx,1 mov dx,3d4h mov al,33h mov ah,byte ptr cs:spage[bx] out dx,ax ;spage ;set wpage mov al,byte ptr cs:wpage[bx] mov ah,al rol ah,4 or al,ah mov dx,3cdh out dx,al ;page low offset mov dx,3d4h mov ax,000dh out dx,ax mov ax,000ch out dx,ax ret switch640x400 ENDP clear640x400 PROC FAR call switch640x400 call clear64k call switch640x400 call clear64k call switch640x400 call clear64k call switch640x400 call clear64k ret clear640x400 ENDP ;**************************************************************** ALIGN 2 t324v dw 0a5f0h t324v1 dw 0aaa0h t324v2 dw 0a140h t324vout dw 01400h t324vout1 dw 05f00h t324vout2 dw 0aa00h init320x200 PROC FAR LOADDS mov ds:projxmul,256 mov ds:projymul,213 mov ds:projxadd,160 mov ds:projyadd,130 mov ds:projminz,128 mov ds:projminzshr,7 mov ds:wminx,0 mov ds:wminy,0 mov ds:wmaxx,319 mov ds:wmaxy,199 mov ds:framerate10,700 ; ; call tweak320x200 mov cx,200 mov dx,80 call setrows ret init320x200 ENDP init320x240 PROC FAR LOADDS mov ds:projxmul,256 mov ds:projymul,256 mov ds:projxadd,160 mov ds:projyadd,120 mov ds:projminz,128 mov ds:projminzshr,7 mov ds:wminx,0 mov ds:wminy,0 mov ds:wmaxx,319 mov ds:wmaxy,239 mov ds:framerate10,610 ;60 frames/sec ; call tweak320x200 LOADDS mov si,OFFSET hseq1 call sethseq ;to 240 mode mov cx,240 mov dx,80 call setrows ret init320x240 ENDP switch320x240b PROC FAR LOADDS mov ax,cs:t324v mov bx,cs:t324v1 mov cs:t324v,bx mov cs:t324v1,ax mov ds:vram,bx mov ds:truevram,bx mov bx,cs:t324vout1 mov cx,cs:t324vout2 mov cs:t324vout1,cx mov cs:t324vout2,bx mov dx,3d4h mov al,0ch mov ah,bh out dx,ax ret switch320x240b ENDP switch320x240 PROC FAR switch320x200: LOADDS mov ax,cs:t324v mov bx,cs:t324v1 mov cx,cs:t324v2 mov cs:t324v,bx mov cs:t324v1,cx mov cs:t324v2,ax mov ds:vram,bx mov ds:truevram,bx mov ax,cs:t324vout mov bx,cs:t324vout1 mov cx,cs:t324vout2 mov cs:t324vout,bx mov cs:t324vout1,cx mov cs:t324vout2,ax mov dx,3d4h mov al,0ch mov ah,bh out dx,ax ret switch320x240 ENDP clear64k PROC FAR cld mov dx,3c4h mov ax,0f02h out dx,ax mov ax,0a000h mov es,ax mov cx,32768 xor ax,ax xor di,di rep stosw ret clear64k ENDP ;**************************************************************** init320x350unr PROC FAR LOADDS mov ds:projxmul,256 mov ds:projymul,420 mov ds:projxadd,180 mov ds:projyadd,175 mov ds:projminz,128 mov ds:projminzshr,7 mov ds:wminx,0 mov ds:wminy,32 mov ds:wmaxx,359 mov ds:wmaxy,349-32 mov ds:framerate10,700 ;70 frames/sec ; call tweak320x350 mov cx,350 mov dx,92 call setrows ret init320x350unr ENDP init320x350 PROC FAR LOADDS mov ds:projxmul,256 mov ds:projymul,420 mov ds:projxadd,180 mov ds:projyadd,175 mov ds:projminz,128 mov ds:projminzshr,7 mov ds:wminx,0 mov ds:wminy,0 mov ds:wmaxx,359 mov ds:wmaxy,349 mov ds:framerate10,700 ;70 frames/sec ; call tweak360x350 mov cx,350 mov dx,92 call setrows ret init320x350 ENDP ALIGN 2 t365v dw 0a000h t365v1 dw 0a800h t365vo dw 08000h t365vo1 dw 00000h switch320x350 PROC FAR LOADDS mov ax,cs:t365v xchg ax,cs:t365v1 mov cs:t365v,ax mov ds:vram,ax mov ds:truevram,ax mov bx,cs:t365vo xchg bx,cs:t365vo1 mov cs:t365vo,bx mov dx,3d4h mov al,0ch mov ah,bh out dx,ax call waitborder ret switch320x350 ENDP justret PROC FAR ret justret ENDP clearpage PROC FAR push ax mov dx,3c4h mov ax,0f02h out dx,ax mov es,ds:vram mov di,ds:wminy shl di,1 mov di,ds:rows[di] mov ax,ds:wminx mov dx,ds:wmaxx sub dx,ax shr ax,2 add di,ax add dx,7 shr dx,4 mov cx,ds:wmaxy sub cx,ds:wminy inc cx pop ax push ax shl eax,16 pop ax @@1: push cx push di mov cx,dx rep stosd pop di pop cx add di,ds:rowsadd loop @@1 ret clearpage ENDP text__vid ENDS END
7,212
Assembly
asm
17.633252
66
0.693844
f7074576fb54ce200d3a14b9bd480ff5e945baf9
Falken42/SecondReality
[ "Unlicense" ]
9
; A100315: Number of 3 X n 0-1 matrices avoiding simultaneously the right angled numbered polyomino patterns (ranpp) (00;1), (01;0), (10;0) and (01;1). ; 1,8,14,22,34,54,90,158,290,550,1066,2094,4146,8246,16442,32830,65602,131142,262218,524366,1048658,2097238,4194394,8388702,16777314,33554534,67108970,134217838,268435570,536871030,1073741946,2147483774,4294967426,8589934726 mov $1,1 lpb $0 sub $0,1 mul $1,2 trn $2,2 add $2,6 lpe add $1,$2 mov $0,$1
462
Assembly
asm
35.538462
224
0.735931
f707b0fb637706c8aa0d1fc67a2f5335713f491d
neoneye/loda
[ "Apache-2.0" ]
22
; ; feilipu, 2019 April ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ;------------------------------------------------------------------------- ; m32_fsinvsqrt - z80, z180, z80n floating point inverse square root ;------------------------------------------------------------------------- ; ; Searching for 1/x^0.5 being the inverse square root of y. ; ; x = 1/y^0.5 where 1/y^0.5 can be calculated by: ; ; w[i+1] = w[i]*(1.5 - w[i]*w[i]*y/2) where w[0] is approx 1/y^0.5 ; ; float invsqrtf(float x) ; { ; float xhalf = 0.5f*x; ; int i = *(int*)&x; ; i = 0x5f375a86 - (i>>1); ; x = *(float*)&i; ; x = x*(1.5f-xhalf*x*x); // 1st Newton-Raphson Iteration ; x = x*(1.5f-xhalf*x*x); // 2nd Newton-Raphson Iteration ; x = x*(1.5f-xhalf*x*x); // 3rd N-R Iteration (to gild the lily) ; return x; ; } ; ;------------------------------------------------------------------------- ; FIXME clocks ;------------------------------------------------------------------------- SECTION code_clib SECTION code_fp_math32 EXTERN m32_fsmul, m32_fsmul_callee EXTERN m32_fsmul32x32, m32_fsmul24x32, m32_fsadd32x32, m32_fsadd24x32 EXTERN m32_fsconst_nnan, m32_fsconst_pzero PUBLIC m32_fssqrt, m32_fssqrt_fastcall, m32_fsinvsqrt_fastcall PUBLIC _m32_sqrtf, _m32_invsqrtf .m32_fssqrt rl d jp C,m32_fsconst_nnan ; negative number? rr d call m32_fsinvsqrt_fastcall jp m32_fsmul ._m32_sqrtf .m32_fssqrt_fastcall rl d jp C,m32_fsconst_nnan ; negative number? rr d push de ; y msw on stack push hl ; y lsw on stack call m32_fsinvsqrt_fastcall call m32_fsmul_callee ret ._m32_invsqrtf rl d jp C,m32_fsconst_nnan ; negative number? rr d .m32_fsinvsqrt_fastcall ; DEHL sla e rl d jp Z,m32_fsconst_pzero ; zero exponent? zero result rr d rr e ld b,d ; retain original y sign & exponent set 7,d ; make y negative push de ; -y msw on stack for w[3] - remove for 2 iterations push hl ; -y lsw on stack for w[3] - remove for 2 iterations push de ; -y msw on stack for w[2] - remove for 1 iteration push hl ; -y lsw on stack for w[2] - remove for 1 iteration push de ; -y msw on stack for w[1] push hl ; -y lsw on stack for w[1] ex de,hl ; original y in hlde ld c,l ; original y in bcde ; now calculate w[0] srl b rr c ; y>>1 rr d rr e xor a ; w[0] = 0x5f375a86 - (y>>1) ld hl,05a86h sbc hl,de ex de,hl ld hl,05f37h sbc hl,bc ; (float) w[0] in hlde add hl,hl ; get w[0] full exponent into h rr c ; put sign in c scf rr l ; put implicit bit for mantissa in lde ld b,h ; unpack IEEE to expanded float 32-bit mantissa h lde0 -> b dehl ld d,l ld h,e ld e,d ld l,0 ;-------------------------------; Iteration 1 exx pop hl ; -y lsw pop de ; -y msw exx push bc ; w[0] push de push hl exx ld bc,04040h ; (float) 3 = 0x40400000 push bc ld bc,0 push bc push de ; -y msw push hl ; -y lsw exx push bc ; w[0] push de push hl call m32_fsmul32x32 ; (float) w[0]*w[0] call m32_fsmul24x32 ; (float) w[0]*w[0]*-y call m32_fsadd24x32 ; (float) (3 - w[0]*w[0]*y) dec b ; (float) (3 - w[0]*w[0]*y) / 2 call m32_fsmul32x32 ; w[1] = (float) w[0]*(3 - w[0]*w[0]*y)/2 ;----------- snip ---------- ; Iteration 2 exx pop hl ; -y lsw pop de ; -y msw exx push bc ; w[1] push de push hl exx ld bc,04040h ; (float) 3 = 0x40400000 push bc ld bc,0 push bc push de ; -y msw push hl ; -y lsw exx push bc ; w[1] push de push hl call m32_fsmul32x32 ; (float) w[1]*w[1] call m32_fsmul24x32 ; (float) w[1]*w[1]*-y call m32_fsadd24x32 ; (float) (3 - w[1]*w[1]*y) dec b ; (float) (3 - w[1]*w[1]*y) / 2 call m32_fsmul32x32 ; w[2] = (float) w[1]*(3 - w[1]*w[1]*y)/2 ;----------- snip ---------- ; Iteration 3 exx pop hl ; -y lsw pop de ; -y msw exx push bc ; w[2] push de push hl exx ld bc,04040h ; (float) 3 = 0x40400000 push bc ld bc,0 push bc push de ; -y msw push hl ; -y lsw exx push bc ; w[2] push de push hl call m32_fsmul32x32 ; (float) w[2]*w[2] call m32_fsmul24x32 ; (float) w[2]*w[2]*-y call m32_fsadd24x32 ; (float) (3 - w[2]*w[2]*y) dec b ; (float) (3 - w[2]*w[2]*y) / 2 call m32_fsmul32x32 ; w[3] = (float) w[2]*(3 - w[2]*w[2]*y)/2 ;----------- snip ---------- ld a,l ld l,h ; align 32-bit mantissa to IEEE 24-bit mantissa ld h,e ld e,d or a ; round using feilipu method jr Z,fd0 inc l jr NZ,fd0 inc h jr NZ,fd0 inc e jr NZ,fd0 rr e rr h rr l inc b .fd0 sla e xor a ; set sign in C positive rr b rr e ld d,b ret ; return IEEE DEHL
6,230
Assembly
asm
26.738197
96
0.435634
f707baa9c527d7f66c9a19e6f30ebc5e10003a81
jpoikela/z88dk
[ "ClArtistic" ]
null
; ; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD"). ; ; This library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either version 2.1 of the ; License, or (at your option) any later version. ; ; This code is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ; Lesser General Public License for more details. ; ; You should have received a copy of the GNU Lesser General ; Public License along with this library; if not, write to the ; Free Software Foundation, Inc., 59 Temple Place, Suite 330, ; Boston, MA 02111-1307 USA ; ;* Function: * ;* Implements the SYS_GENERATE_IRQ & SYS_MAP_IRQ macros. include vsa2.inc include sysmgr.inc .model tiny,c .586p .CODE externdef sys_system_call:proc ;*********************************************************************** ;*********************************************************************** sys_map_irq proc pascal \ Y_Source: byte, \ IRQ: byte mov bl, [Y_Source] mov cl, [IRQ] mov ax, SYS_CODE_IRQ_MAPPER call sys_system_call ret sys_map_irq endp ;*********************************************************************** ; void sys_generate_IRQ(USHORT Irq); ; ; Generates an IRQ upon exit from SMM ; NOTE: If 8 MSBs of Irq are non-zero, then IRQ is set to external ;*********************************************************************** sys_generate_IRQ proc pascal \ Irq: word xor bx, bx ; Get ptr to SysMgr's IRQ_Mask mov ebx, (VSM_Header PTR [bx]).SysStuff.SysMgr_Ptr mov cx, [Irq] ; Get IRQ number mov eax, 00010001h ; Generate bit mask shl eax, cl or ch, ch ; Disable internal IRQ external ? jz short AssertIRQ not ax ; Yes mov ebx, fs:(InfoStuff PTR [ebx]).IRQ_Base and fs:[ebx], ax ; Mark IRQ as external jmp short Exit AssertIRQ: lea ebx, (InfoStuff PTR [ebx]).IRQ_Mask or fs:[ebx], eax ; Record IRQ to be generated Exit: ret sys_generate_IRQ endp END
2,283
Assembly
asm
27.506024
73
0.587823
f707da584d8aec6550c64e3b532f7f973938c336
fabiojna02/OpenCellular
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ; AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, ; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR ; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. ; ; .globl rsqrtps_newt_sse ; void rsqrtps_newt_sse(float *in, float *out, size_t len) ; On entry: ; rcx = in ; rdx = out ; r8 = len .data ALIGN 16 minus_half REAL4 -0.5, -0.5, -0.5, -0.5 three REAL4 3.0, 3.0, 3.0, 3.0 .code rsqrtps_newt_sse PROC public push rbx mov rax, rcx mov rbx, rdx mov rcx, r8 shl rcx, 2 ; rcx is size of inputs in bytes xor r8, r8 movups xmm3, xmmword ptr three movups xmm4, xmmword ptr minus_half loop1: movups xmm5, [rax+r8] rsqrtps xmm0, xmm5 movaps xmm2, xmm0 mulps xmm0, xmm0 mulps xmm0, xmm5 subps xmm0, xmm3 mulps xmm0, xmm2 mulps xmm0, xmm4 movups [rbx+r8], xmm0 add r8, 16 cmp r8, rcx jl loop1 pop rbx ret rsqrtps_newt_sse ENDP end
1,390
Assembly
asm
23.166667
79
0.722302
f707de8feb8714a2b24ee20595f6143e60be32c5
JamesType/optimization-manual
[ "0BSD" ]
374
; int posix_memalign(void **memptr, size_t alignment, size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _posix_memalign EXTERN asm_posix_memalign _posix_memalign: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_posix_memalign ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _posix_memalign EXTERN _posix_memalign_unlocked defc _posix_memalign = _posix_memalign_unlocked ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
653
Assembly
asm
15.186047
66
0.531394
f707ee0e08816df127abaa5ee9fba53a028c10de
meesokim/z88dk
[ "ClArtistic" ]
null
%include "../utils/printf32.asm" section .data mystring db "This is my string", 0 section .text extern puts extern printf global main main: push ebp mov ebp, esp PRINTF32 `[PRINTF32]: %s\n[PUTS]: \x0`, mystring ; TODO: call puts on string leave ret
284
Assembly
asm
12.909091
52
0.640845
f707ef25a2bd82fdbfc8f3d1ed73236db2f5fa1d
adinasm/iocla-demos
[ "MIT" ]
null
; A073929: a(1) = 1, a(n) = smallest number not included earlier such that the n-th partial sum (n>1) is divisible by n+1. ; 1,2,5,7,3,10,4,13,15,6,18,20,8,23,9,26,28,11,31,12,34,36,14,39,41,16,44,17,47,49,19,52,54,21,57,22,60,62,24,65,25,68,70,27,73,75,29,78,30,81,83,32,86,33,89,91,35,94,96,37,99,38,102,104,40,107,109,42,112,43,115,117,45,120,46,123,125,48,128,130,50,133,51,136,138,53,141,143,55,146,56,149,151,58,154,59,157,159,61,162,164,63,167,64,170,172,66,175,67,178,180,69,183,185,71,188,72,191,193,74,196,198,76,201,77,204,206,79,209,80,212,214,82,217,219,84,222,85,225,227,87,230,88,233,235,90,238,240,92,243,93,246,248,95,251,253,97,256,98,259,261,100,264,101,267,269,103,272,274,105,277,106,280,282,108,285,287,110,290,111,293,295,113,298,114,301,303,116,306,308,118,311,119,314,316,121,319,122,322,324,124,327,329,126,332,127,335,337,129,340,342,131,345,132,348,350,134,353,135,356,358,137,361,363,139,366,140,369,371,142,374,376,144,379,145,382,384,147,387,148,390,392,150,395,397,152,400,153,403,405 mov $4,2 mov $5,$0 lpb $4,1 mov $0,$5 sub $4,1 add $0,$4 add $3,5 cal $0,19445 ; Form a permutation of the positive integers, p_1, p_2, ..., such that the average of each initial segment is an integer, using the greedy algorithm to define p_n; sequence gives p_1+..+p_n. trn $3,$0 sub $0,$3 sub $0,1 mov $2,$4 mov $6,$0 lpb $2,1 mov $1,$6 sub $2,1 lpe lpe lpb $5,1 sub $1,$6 mov $5,0 lpe sub $1,1
1,451
Assembly
asm
53.740741
893
0.678842
f7086d6f5b921925feb05d37f00cfeb443c43dcf
karttu/loda
[ "Apache-2.0" ]
null
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: print drivers FILE: printcomIBMPropDialog.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 10/92 Initial revision DESCRIPTION: This file contains most of the code to implement the 1 bin ASF +tractor and manual feed print driver UI support for IBM Proprinters $Id: printcomIBMPropDialog.asm,v 1.1 97/04/18 11:51:26 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ include UI/uiGetNoMain.asm ;pass no tree for Main box include UI/uiGetOptions.asm ;pass tree for Options box include UI/uiEval.asm ;call the routine specified in device ;info resource. include UI/uiEval1ASFSymbol.asm ;paper input path and country code ;selecting routines.
1,013
Assembly
asm
28.138889
79
0.593287
f7086e716ad980f08c038c9e6219d4c810fdc063
steakknife/pcgeos
[ "Apache-2.0" ]
504
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0xbe16, %rsi lea addresses_WC_ht+0x1dfd6, %rdi clflush (%rsi) nop nop dec %r9 mov $37, %rcx rep movsl nop and $23589, %rsi lea addresses_WC_ht+0x13a16, %r14 xor %r8, %r8 mov (%r14), %r11w sub $47005, %r9 lea addresses_UC_ht+0xef16, %rsi nop sub %r14, %r14 mov (%rsi), %r8w nop nop sub $123, %r11 lea addresses_WT_ht+0x1271a, %rsi nop nop nop add $49770, %rcx mov $0x6162636465666768, %r11 movq %r11, (%rsi) nop sub $10640, %r14 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %rax push %rcx push %rsi // Store lea addresses_US+0x20016, %rsi nop nop xor $63202, %r8 mov $0x5152535455565758, %r12 movq %r12, (%rsi) nop nop nop and $38377, %r12 // Faulty Load lea addresses_WT+0x1c616, %rax nop nop nop xor %rcx, %rcx vmovaps (%rax), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 lea oracles, %r13 and $0xff, %r12 shlq $12, %r12 mov (%r13,%r12,1), %r12 pop %rsi pop %rcx pop %rax pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'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 */
5,117
Assembly
asm
48.273585
2,999
0.658784
f7088a4c08d30880c28752d3681c40b201d7af7c
ljhsiun2/medusa
[ "MIT" ]
9
; A158313: a(n) = 400 * n + 1. ; 401,801,1201,1601,2001,2401,2801,3201,3601,4001,4401,4801,5201,5601,6001,6401,6801,7201,7601,8001,8401,8801,9201,9601,10001,10401,10801,11201,11601,12001,12401,12801,13201,13601,14001,14401,14801,15201,15601,16001,16401,16801,17201,17601,18001,18401,18801,19201,19601,20001,20401,20801,21201,21601,22001,22401,22801,23201,23601,24001,24401,24801,25201,25601,26001,26401,26801,27201,27601,28001,28401,28801,29201,29601,30001,30401,30801,31201,31601,32001,32401,32801,33201,33601,34001,34401,34801 mul $0,400 add $0,401
552
Assembly
asm
92
497
0.791667
f708c1e59884f13bb7c5e817a3c6c6c6b4fe3c92
neoneye/loda-programs
[ "Apache-2.0" ]
11
; A158135: a(n) = 144*n^2 - 2*n. ; 142,572,1290,2296,3590,5172,7042,9200,11646,14380,17402,20712,24310,28196,32370,36832,41582,46620,51946,57560,63462,69652,76130,82896,89950,97292,104922,112840,121046,129540,138322,147392,156750,166396,176330,186552,197062,207860,218946,230320,241982,253932,266170,278696,291510,304612,318002,331680,345646,359900,374442,389272,404390,419796,435490,451472,467742,484300,501146,518280,535702,553412,571410,589696,608270,627132,646282,665720,685446,705460,725762,746352,767230,788396,809850,831592 add $0,1 mul $0,72 bin $0,2 div $0,36 mul $0,2
579
Assembly
asm
64.333333
497
0.799655
f7094b721cfaab2fbb1df9384227a621b68ff700
neoneye/loda-programs
[ "Apache-2.0" ]
11
; Wonderswan test %include "Wonderswan.inc" %macro memcopy 4 xor ax,ax mov es,ax mov di,%1 mov ax,%2 mov ds,ax mov si,%3 mov cx,%4 cld rep movsw %endmacro ; ================================ section .bss start=0 section .data vfollows=.text section .text start=0 vstart=0x0F0000 ProgramStart: cli xor ax,ax mov bx,ax mov cx,ax mov dx,ax mov es,ax out REG_DISP_CTRL,ax out REG_LCD_CTRL,ax mov al,0b11100000 out REG_DISP_MODE,ax xor ax,ax out REG_SCR1_X,ax out REG_SCR1_Y,ax out REG_SCR2_X,ax out REG_SCR2_Y,ax out REG_MAP_BASE,al mov al,DispCtrl_SCR1On out REG_DISP_CTRL,al mov al,LCDIcon_BigCircle out REG_LCD_ICON,al in al,REG_LCD_CTRL or al,0b00000001 out REG_LCD_CTRL,al call DS_Init mov si,DS_TestSong call DS_Load MainLoop: call DS_Update push ax call WaitVBlank pop ax inc ax and ax,0xFF jmp MainLoop WaitFrames: pusha call WaitVBlank popa loop WaitFrames ret WaitVBlank: mov al,100 call WaitLine mov al,144 WaitLine: mov bl,al mov dx,REG_LINE_CUR .loop: in al,dx cmp al,bl jne .loop ret %include "DevSound.asm" section .footer start=0xFFF0 vstart=0x0FFFF0 CartridgeFooter: jmp 0xF000:ProgramStart db 0 ; reserved db 0 ; developer ID db 0 ; color support db 0 ; game ID db 0 ; reserved db 2 ; cartridge size db 0 ; SRAM size db ROMSPEED_1CYCLE | ORIENTATION_HORIZONTAL db 0 ; additional capabilities dw 0 ; checksum
2,139
Assembly
asm
20.970588
58
0.475456
f70956c8df4950b76874686dea08884f96701d45
akumanatt/DevSound-WS
[ "MIT" ]
3
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x13c93, %r11 nop nop nop nop xor $22734, %r15 mov $0x6162636465666768, %r14 movq %r14, %xmm6 and $0xffffffffffffffc0, %r11 vmovntdq %ymm6, (%r11) add $1480, %rbx lea addresses_WT_ht+0x2c3e, %r10 nop add %r8, %r8 movb $0x61, (%r10) sub %r8, %r8 lea addresses_WC_ht+0x4a3e, %rsi lea addresses_normal_ht+0x18bea, %rdi nop nop nop nop nop sub $39636, %r10 mov $17, %rcx rep movsl nop dec %r15 lea addresses_A_ht+0x1873e, %r10 nop sub $64987, %rbp movb (%r10), %r14b nop nop add %r10, %r10 lea addresses_A_ht+0x4efe, %rsi lea addresses_normal_ht+0xfa7e, %rdi clflush (%rsi) nop nop nop nop nop sub $34163, %r14 mov $65, %rcx rep movsw xor $40239, %r15 lea addresses_UC_ht+0x840a, %rsi lea addresses_WT_ht+0x6a3e, %rdi nop add %r14, %r14 mov $74, %rcx rep movsq nop nop nop nop cmp %rbp, %rbp lea addresses_D_ht+0x14a3e, %rsi lea addresses_WC_ht+0x1aa78, %rdi nop nop nop dec %r11 mov $15, %rcx rep movsw nop nop nop nop dec %r15 lea addresses_normal_ht+0xe83e, %rbx nop nop mfence mov (%rbx), %r14 nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x19be, %r15 nop nop nop nop and %rbx, %rbx movl $0x61626364, (%r15) nop nop nop nop inc %rsi lea addresses_WT_ht+0xab3e, %rsi lea addresses_D_ht+0x10c3e, %rdi nop nop sub %r11, %r11 mov $22, %rcx rep movsb nop nop nop nop cmp $62955, %r15 lea addresses_D_ht+0x17d4e, %r11 nop nop nop nop dec %rsi movw $0x6162, (%r11) nop dec %rdi lea addresses_WC_ht+0xcebe, %rbx nop nop xor $62295, %rbp mov $0x6162636465666768, %r14 movq %r14, %xmm6 and $0xffffffffffffffc0, %rbx movaps %xmm6, (%rbx) nop nop nop nop and %rdi, %rdi lea addresses_A_ht+0x8d14, %rsi lea addresses_normal_ht+0x11a3e, %rdi add $15887, %r14 mov $48, %rcx rep movsl nop add $44437, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rcx push %rdx push %rsi // Faulty Load lea addresses_PSE+0x323e, %r12 nop nop add $3137, %r10 vmovups (%r12), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r13 lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rsi pop %rdx pop %rcx pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'33': 686} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
6,487
Assembly
asm
30.890476
2,057
0.661323
f70962f111afbf76d2159bbfe91f9819d37dec61
ljhsiun2/medusa
[ "MIT" ]
9
; Original address was $BB77 ; Unused "Dark" hammer bro fight area .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_INDEX(0) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_OVERWORLD | LEVEL5_TIME_300 .byte $FF
410
Assembly
asm
34.166667
60
0.797561
f7098657276faf9fba770c7ed47681003ca7c55e
narfman0/smb3_pp1
[ "Unlicense" ]
null
;name: nibblebcd2ascii.asm ; ;description: Convert a bcd nibble in lower 4 bits of rdi to ascii in rax. ; This routine is very trivial and exists only to complete the set of ; conversion routines. (byte, word, dword, qword, dqword. ; When using this routine it's better to copy/paste the code if needed ; for a single nibble. ; ;build: nasm -felf64 nibblebcd2ascii.asm -o nibblebcd2ascii.o bits 64 global nibblebcd2ascii section .text nibblebcd2ascii: mov rax,rdi and rax,0x0F ;keep lower 4 bits or al,0x30 ;make ascii ret
612
Assembly
asm
27.818182
82
0.658497
f7099faf0380f12793474442378e5219da85f8b4
agguro/linux-nasm
[ "Unlicense" ]
6
; char *ultoa(unsigned long num, char *buf, int radix) SECTION code_stdlib PUBLIC _ultoa EXTERN asm_ultoa _ultoa: pop af pop hl pop de pop ix pop bc push bc push hl push de push hl push af jp asm_ultoa
249
Assembly
asm
9.96
54
0.626506
f709ec377d17a2b48d0e1f9014a21ee6c564625d
meesokim/z88dk
[ "ClArtistic" ]
null
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x195b0, %rsi lea addresses_UC_ht+0x1d16c, %rdi nop nop nop nop nop xor $23214, %rbp mov $79, %rcx rep movsl nop nop nop nop sub %rdi, %rdi lea addresses_WT_ht+0x192b0, %rdx clflush (%rdx) nop nop nop nop nop add %rsi, %rsi vmovups (%rdx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rax nop nop nop nop nop cmp %rbp, %rbp lea addresses_WC_ht+0x13598, %rdi nop nop nop xor %rbp, %rbp movb $0x61, (%rdi) nop nop nop nop nop sub $63560, %rdi lea addresses_UC_ht+0x7de0, %rdx nop nop add $28016, %r14 movb $0x61, (%rdx) nop nop sub $5984, %rsi lea addresses_UC_ht+0xab46, %rcx clflush (%rcx) xor $7151, %rax mov $0x6162636465666768, %r14 movq %r14, (%rcx) nop nop nop and $36617, %rax lea addresses_normal_ht+0x15eb0, %rdi nop add %rax, %rax movw $0x6162, (%rdi) nop nop add $9215, %rsi lea addresses_UC_ht+0x3dc0, %rsi lea addresses_WT_ht+0x1818, %rdi nop xor $14679, %r12 mov $64, %rcx rep movsq nop nop nop nop nop sub $32299, %rcx lea addresses_WT_ht+0x55b0, %rdx clflush (%rdx) nop nop nop nop and $49351, %rbp vmovups (%rdx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rax nop dec %rbp lea addresses_WT_ht+0xc39a, %rbp nop sub $62344, %rax mov $0x6162636465666768, %rcx movq %rcx, %xmm7 movups %xmm7, (%rbp) nop nop nop nop nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %rax push %rbx push %rdx push %rsi // Store mov $0x60, %r15 clflush (%r15) and $63542, %rbx mov $0x5152535455565758, %r14 movq %r14, (%r15) nop nop nop nop and $48099, %r15 // Store lea addresses_RW+0x1830, %rax nop nop nop nop sub %r11, %r11 mov $0x5152535455565758, %rsi movq %rsi, (%rax) and %r14, %r14 // Faulty Load lea addresses_normal+0x21b0, %rax nop nop nop nop nop inc %rbx mov (%rax), %esi lea oracles, %r14 and $0xff, %rsi shlq $12, %rsi mov (%r14,%rsi,1), %rsi pop %rsi pop %rdx pop %rbx pop %rax pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_P', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 7}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 1}, 'OP': 'STOR'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
6,868
Assembly
asm
34.169154
2,999
0.658561
f70a088c3139fc6f35038068261f1e0246aca339
ljhsiun2/medusa
[ "MIT" ]
9
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x39f5, %rax nop nop nop nop dec %rdx mov $0x6162636465666768, %r14 movq %r14, %xmm5 vmovups %ymm5, (%rax) and $15910, %rdx lea addresses_D_ht+0x125f5, %r11 nop nop inc %r15 mov (%r11), %r9w nop nop nop nop dec %r14 lea addresses_D_ht+0xd226, %rsi lea addresses_A_ht+0x151f5, %rdi nop nop nop nop cmp $22700, %rdx mov $5, %rcx rep movsb nop nop add $9293, %r9 lea addresses_UC_ht+0x4c45, %rdi nop nop nop nop nop sub %rax, %rax mov (%rdi), %r15w nop nop nop nop nop xor $2933, %r15 lea addresses_UC_ht+0x61bf, %rsi lea addresses_WC_ht+0x12d95, %rdi clflush (%rdi) nop nop nop nop nop inc %r14 mov $96, %rcx rep movsq nop nop nop xor %rcx, %rcx lea addresses_A_ht+0x1e525, %r15 nop nop sub $4188, %r9 mov (%r15), %ax nop nop nop nop sub %rax, %rax lea addresses_UC_ht+0x5681, %rcx nop nop nop xor %rax, %rax vmovups (%rcx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop nop nop sub $32650, %rcx lea addresses_WT_ht+0x11285, %rdx clflush (%rdx) nop cmp $7278, %rcx movb (%rdx), %r9b nop nop nop nop nop xor $65452, %rax lea addresses_WC_ht+0xd9f5, %rax nop nop nop cmp %rdx, %rdx mov (%rax), %cx nop cmp $59586, %rdi lea addresses_normal_ht+0x1c015, %rdi add %rsi, %rsi mov $0x6162636465666768, %rax movq %rax, (%rdi) nop nop nop nop and %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rax push %rbx push %rcx push %rdi push %rdx // Store lea addresses_WC+0xfff5, %rdi nop nop nop nop and $60583, %rcx movb $0x51, (%rdi) nop nop nop nop sub $37797, %rax // Load lea addresses_US+0x49f5, %rax nop nop nop nop sub $41143, %r10 vmovups (%rax), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdx nop nop add %rax, %rax // Faulty Load lea addresses_US+0x49f5, %rdx nop nop nop nop and %rcx, %rcx vmovntdqa (%rdx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %rbx lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': True, 'same': False, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'b6': 89, '02': 28, '20': 90, 'ab': 478, '47': 31, 'e0': 90, '48': 87, '98': 105, '78': 91, '00': 18619, '7c': 91, '75': 188, '1e': 92, 'be': 91, 'e2': 92, 'aa': 744, 'c4': 91, 'fa': 93, 'ec': 89, 'a8': 90, '79': 1, 'd8': 91, '0a': 70, 'c0': 89, '12': 91, '9d': 25, '4a': 93} 00 02 02 02 02 02 02 00 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aa aa aa aa aa aa 00 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa 00 aa aa aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 00 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 00 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
7,341
Assembly
asm
33.520548
2,999
0.646915
f70a1e130b0c9ea9ebd2f5d71ca0fef5e7c73eba
ljhsiun2/medusa
[ "MIT" ]
9
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x6342, %r11 sub %rcx, %rcx mov (%r11), %r8 nop nop nop nop dec %r14 lea addresses_WT_ht+0x1d39a, %r9 nop nop nop nop and $1937, %rax mov (%r9), %cx nop nop nop inc %r14 lea addresses_A_ht+0xe43a, %r9 clflush (%r9) nop nop nop inc %r10 movb $0x61, (%r9) nop nop nop xor %rax, %rax lea addresses_normal_ht+0x1ec24, %rsi lea addresses_A_ht+0x15f9a, %rdi clflush (%rsi) nop nop nop nop nop xor %rax, %rax mov $72, %rcx rep movsw nop nop nop nop dec %rsi lea addresses_WT_ht+0xff9a, %rcx nop nop nop nop sub %r14, %r14 mov (%rcx), %r11w and %rax, %rax lea addresses_WT_ht+0x13a4a, %rdi clflush (%rdi) nop nop nop add %r11, %r11 movb $0x61, (%rdi) nop nop nop nop xor $57387, %rdi lea addresses_UC_ht+0x13f9a, %r14 nop nop xor $27200, %r8 mov (%r14), %cx nop nop nop nop sub %rcx, %rcx lea addresses_A_ht+0x1b63a, %rsi nop nop nop nop add %r14, %r14 mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rsi) nop nop nop add $56789, %rax lea addresses_A_ht+0x18d9a, %rcx nop nop xor %rax, %rax mov $0x6162636465666768, %rsi movq %rsi, %xmm2 movups %xmm2, (%rcx) nop nop nop and %rax, %rax lea addresses_WC_ht+0x1dcb6, %rdi nop xor $54225, %r9 mov (%rdi), %rax nop nop and %r11, %r11 lea addresses_WC_ht+0x629a, %r8 nop and %r14, %r14 mov (%r8), %r9 cmp $26770, %r9 lea addresses_A_ht+0x47cc, %rcx nop nop and %rsi, %rsi movups (%rcx), %xmm3 vpextrq $0, %xmm3, %rdi mfence lea addresses_WC_ht+0x1309a, %rcx nop nop nop nop nop and %r11, %r11 vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r14 add $6090, %rdi lea addresses_WC_ht+0x1939a, %rsi nop nop add $30353, %r10 mov $0x6162636465666768, %r11 movq %r11, %xmm3 vmovups %ymm3, (%rsi) nop nop nop nop xor %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %r9 push %rax push %rbx push %rcx // Faulty Load lea addresses_A+0x1e79a, %r14 nop nop nop nop add $51262, %rcx movntdqa (%r14), %xmm7 vpextrq $1, %xmm7, %r9 lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'00': 1674, '44': 624, '45': 394, '48': 21} 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 44 00 00 45 00 00 45 00 00 44 44 00 00 45 44 48 00 44 44 00 45 00 00 00 00 00 00 00 00 44 00 00 00 44 00 00 45 00 44 45 00 45 00 44 00 00 45 00 45 00 00 45 44 00 00 45 44 00 00 45 44 00 00 44 00 44 00 00 45 00 45 45 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 44 45 00 00 00 44 44 44 00 00 00 00 00 00 44 00 00 00 45 44 00 00 00 45 00 00 00 44 00 00 44 45 00 00 00 44 48 00 44 44 45 00 44 00 44 00 00 45 45 44 44 44 00 00 45 00 00 44 00 00 00 00 00 45 44 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 44 44 45 45 44 00 00 00 00 00 44 00 45 00 00 00 45 45 00 00 44 00 00 00 44 44 44 00 00 00 00 00 44 44 00 00 44 00 00 44 45 44 00 00 44 44 44 00 44 00 00 00 00 44 44 00 00 00 44 00 00 00 44 00 00 00 44 44 00 44 00 00 00 00 44 44 00 00 00 44 00 45 44 00 00 00 00 00 45 44 00 44 44 00 45 00 44 44 44 00 45 45 00 44 00 00 45 00 00 00 44 45 44 44 00 44 00 45 44 00 00 00 00 00 00 44 45 45 45 00 00 00 45 00 00 00 44 00 44 00 44 00 44 00 48 00 45 44 00 45 44 00 44 00 44 00 45 00 44 00 00 00 00 00 45 00 00 44 00 00 45 00 00 45 45 00 00 00 44 00 00 44 45 44 45 00 00 45 00 44 44 00 00 00 00 44 00 44 45 00 00 00 00 00 00 00 00 44 00 44 44 00 00 00 00 00 00 00 45 00 00 00 44 00 00 00 00 00 00 44 44 00 00 45 45 45 00 00 00 45 00 00 00 45 00 44 00 44 44 00 00 00 44 00 00 00 44 00 00 45 00 45 00 00 44 00 44 45 00 00 45 44 00 44 00 45 00 44 00 00 00 00 00 44 44 00 00 00 44 00 00 00 00 00 00 00 44 00 44 45 00 00 44 00 44 00 44 45 00 00 44 44 00 00 00 00 44 00 00 45 00 00 00 45 00 00 00 00 00 44 44 00 00 00 00 44 00 00 00 48 44 45 00 00 00 00 00 00 44 00 45 00 48 00 00 00 00 45 44 44 00 00 44 00 44 44 00 00 00 44 00 00 44 48 00 44 45 00 45 44 00 00 00 00 00 00 44 00 00 00 00 00 00 44 00 00 00 00 00 00 44 44 00 00 44 45 00 45 00 44 00 44 00 44 00 45 45 00 44 44 00 44 44 44 45 44 45 45 00 00 00 00 00 44 45 00 00 00 44 00 00 00 00 44 44 00 00 00 44 00 00 45 44 00 00 44 00 44 00 45 00 44 44 00 00 00 45 00 00 00 44 00 00 00 45 00 00 45 00 00 45 45 00 44 45 00 00 44 00 00 00 44 45 44 00 44 44 00 00 44 44 44 44 00 44 44 00 44 00 00 00 44 00 00 00 00 44 44 00 44 00 00 00 45 44 00 00 44 45 44 44 45 00 00 44 44 45 00 00 00 00 44 45 44 45 00 45 00 00 00 00 00 44 00 44 44 00 00 00 44 00 00 48 00 45 00 44 44 00 45 45 44 00 00 00 45 45 00 00 45 44 45 00 44 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 44 00 44 48 00 00 00 00 00 00 00 00 00 44 44 48 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 44 44 45 00 00 00 00 00 44 00 00 00 44 00 44 00 00 00 44 00 00 00 45 00 00 00 45 00 44 00 48 00 00 00 00 00 45 44 00 00 00 00 00 00 44 44 00 00 44 00 00 44 00 00 45 44 00 00 00 00 00 00 44 00 00 44 00 44 00 45 00 45 00 44 00 45 00 44 00 45 00 44 44 00 45 45 45 45 00 45 00 00 44 00 00 45 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 44 00 44 00 44 00 44 44 45 00 44 00 45 44 44 00 00 00 44 00 45 48 44 44 00 00 00 00 44 00 00 00 44 00 00 44 00 00 00 00 44 00 44 44 00 00 00 00 00 45 00 00 */
7,412
Assembly
asm
33.844749
2,999
0.652186
f70a29bab2a03738606ed4ccf586f1a09b988d15
ljhsiun2/medusa
[ "MIT" ]
9
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; TEST16ri mov bx, 0x7 ;TEST_BEGIN_RECORDING test bx, 0x444 ;TEST_END_RECORDING
195
Assembly
asm
16.25
25
0.753846
f70a60440e3b067034a523505747689464d91239
randolphwong/mcsema
[ "BSD-3-Clause" ]
2
;Array reverser ;Author: Frederico Moeller ;Created: 25.02.2021 (in x86 Assembly Programming Language From Ground Up course, Udemy) .386 .model flat,c .code Reverser PROC push ebp mov ebp,esp push esi push edi xor eax,eax mov edi,[ebp+8] mov esi,[ebp+12] mov ecx,[ebp+16] test ecx,ecx lea esi,[esi+ecx*4-4] pushfd std @@: lodsd mov [edi],eax add edi,4 dec ecx jnz @B popfd mov eax,1 pop edi pop eax pop ebp ret Reverser endp end
514
Assembly
asm
11.681818
88
0.616732
f70a65f43f0bb68f3deb1bd1d68bed484d5d7936
FMoller/coding-auxiliary-tools
[ "MIT" ]
null
; A054893: Floor[n/4] + floor[n/16] + floor[n/64] + floor[n/256] + .... ; 0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,63,63,63,63,64,64,64,64,65,65,65,65,66,66,66,66,68,68,68,68,69,69,69,69,70,70,70,70,71,71,71,71,73,73,73,73,74,74,74,74,75,75,75,75,76,76,76,76,78,78,78,78,79,79,79,79,80,80 div $0,4 lpb $0 add $1,$0 div $0,4 lpe
836
Assembly
asm
92.888889
719
0.632775
f70a6c9b3ce5a78b309b9c222d91f6bf22f0469e
jmorken/loda
[ "Apache-2.0" ]
1
; A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion. ; 0,1,3,5,8,11,14,17,21,25,29,33,37,41,45,49,54,59,64,69,74,79,84,89,94,99,104,109,114,119,124,129,135,141,147,153,159,165,171,177,183,189,195,201,207,213,219,225,231,237,243,249,255,261,267,273,279,285,291,297,303,309,315,321,328,335,342,349,356,363,370,377,384,391,398,405,412,419,426,433,440,447,454,461,468,475,482,489,496,503,510,517,524,531,538,545,552,559,566,573,580,587,594,601,608,615,622,629,636,643,650,657,664,671,678,685,692,699,706,713,720,727,734,741,748,755,762,769,777,785,793,801,809,817,825,833,841,849,857,865,873,881,889,897,905,913,921,929,937,945,953,961,969,977,985,993,1001,1009,1017,1025,1033,1041,1049,1057,1065,1073,1081,1089,1097,1105,1113,1121,1129,1137,1145,1153,1161,1169,1177,1185,1193,1201,1209,1217,1225,1233,1241,1249,1257,1265,1273,1281,1289,1297,1305,1313,1321,1329,1337,1345,1353,1361,1369,1377,1385,1393,1401,1409,1417,1425,1433,1441,1449,1457,1465,1473,1481,1489,1497,1505,1513,1521,1529,1537,1545,1553,1561,1569,1577,1585,1593,1601,1609,1617,1625,1633,1641,1649,1657,1665,1673,1681,1689,1697,1705,1713,1721,1729,1737,1745 mov $2,1 lpb $0 add $1,$0 trn $0,$2 mul $2,2 lpe
1,223
Assembly
asm
122.3
1,064
0.754702
f70a6e41112ae83a9cd4194511defbe5793d7460
jmorken/loda
[ "Apache-2.0" ]
1
VermilionPokecenterScript: call Serial_TryEstablishingExternallyClockedConnection jp EnableAutoTextBoxDrawing VermilionPokecenterTextPointers: dw VermilionHealNurseText dw VermilionPokecenterText2 dw VermilionPokecenterText3 dw VermilionTradeNurseText VermilionHealNurseText: TX_POKECENTER_NURSE VermilionPokecenterText2: TX_FAR _VermilionPokecenterText2 db "@" VermilionPokecenterText3: TX_FAR _VermilionPokecenterText3 db "@" VermilionTradeNurseText: TX_CABLE_CLUB_RECEPTIONIST
497
Assembly
asm
20.708333
55
0.885312
f70aed316e3ada8519bfbaa3aac4461789340be9
etdv-thevoid/pokemon-rgb-enhanced
[ "MIT" ]
1
[BITS 64] GLOBAL cpuid_result GLOBAL cpuid_command cpuid_result: resb 8 cpuid_command: mov rax, rdi cpuid mov [cpuid_result], rbx mov [cpuid_result + 4], rdx mov [cpuid_result + 8], rcx mov rax, cpuid_result ret
245
Assembly
asm
16.333333
31
0.669388
f70b42453e8465190e6e0d25339882fedc0bf1c3
AlexandreArduino/mykernel
[ "BSD-3-Clause" ]
9
.globl main main: # sum of the integers from 1 to 100 .text add $t0, $zero, $zero # I is zero add $s0, $zero, $zero # sum is zero addi $t1, $zero, 100 # set the limit value (100) loop: addi $t0, $t0, 1 # I = I + 1 mult $t0 $t0 mflo $t3 add $s0, $s0, $t3 # sum = sum + I^2 blt $t0, $t1, loop # I < 100 loop to do again addi $v0, $zero, 4 # print string la $a0, str # the text for output syscall # call opsys addi $v0, $zero, 1 # print integer add $a0,$zero, $s0 # the integer is sum syscall # call opsys addi $v0, $zero, 10 # finished .. return syscall # to the Operating System .data str: .asciiz "The sum of 1 .. 100 is "
665
Assembly
asm
23.75
50
0.598496
f70b47c62e991c642fa64f1e606eefb3bd731ca6
justincely/classwork
[ "BSD-3-Clause" ]
1
; A040343: Continued fraction for sqrt(363). ; 19,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38 pow $1,$0 sub $1,2 gcd $1,$0 mul $1,19
276
Assembly
asm
34.5
190
0.655797
f70b52f47386a65ee2727cf64d3b67599e697d5e
karttu/loda
[ "Apache-2.0" ]
1
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0xd35d, %rdi mfence movw $0x6162, (%rdi) nop nop nop sub %rcx, %rcx lea addresses_WC_ht+0x1d2fd, %r11 nop xor %rbp, %rbp vmovups (%r11), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r14 nop nop cmp %rax, %rax lea addresses_A_ht+0x1419d, %rax nop nop sub $24290, %r8 mov (%rax), %edi nop nop nop dec %rcx lea addresses_UC_ht+0x137cd, %r14 xor %rcx, %rcx movw $0x6162, (%r14) nop nop nop and $15321, %rdi lea addresses_normal_ht+0x159dd, %rsi lea addresses_WT_ht+0x975d, %rdi clflush (%rdi) nop nop add %r14, %r14 mov $0, %rcx rep movsb nop nop add %rsi, %rsi lea addresses_WT_ht+0x6d3d, %rbp nop nop nop and $5593, %rcx movb (%rbp), %r8b nop nop nop nop nop sub %rbp, %rbp lea addresses_normal_ht+0x1775d, %rbp nop nop nop nop sub %rcx, %rcx mov (%rbp), %rax nop nop nop nop add $63036, %rdi lea addresses_A_ht+0x79e9, %rsi lea addresses_A_ht+0x1711d, %rdi nop nop mfence mov $63, %rcx rep movsq nop nop nop nop nop and $64056, %r8 lea addresses_D_ht+0x11f5d, %rsi lea addresses_D_ht+0xd53d, %rdi add $52227, %rbp mov $118, %rcx rep movsl nop nop lfence lea addresses_WC_ht+0x98ab, %r11 nop nop nop nop nop cmp $4596, %rcx vmovups (%r11), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi sub %r14, %r14 lea addresses_WC_ht+0x65c4, %rax nop nop nop add %r8, %r8 mov $0x6162636465666768, %rdi movq %rdi, (%rax) nop nop nop nop nop dec %r11 lea addresses_D_ht+0x106c9, %rsi lea addresses_normal_ht+0x19d9d, %rdi nop nop nop nop nop inc %r11 mov $45, %rcx rep movsl xor $47770, %r14 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_RW+0x19f53, %r15 nop nop inc %r9 mov $0x5152535455565758, %rcx movq %rcx, (%r15) nop nop nop nop add %rdi, %rdi // Faulty Load mov $0x624b2f000000075d, %r15 nop nop dec %rdi mov (%r15), %r9d lea oracles, %rsi and $0xff, %r9 shlq $12, %r9 mov (%rsi,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_RW', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': True, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 6, 'type': 'addresses_normal_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 */
7,227
Assembly
asm
34.578947
2,999
0.657673
f70b8e948e69a41f1f9bd6d7612a5579e665d37c
ljhsiun2/medusa
[ "MIT" ]
9
SECTION code_clib PUBLIC bit_open_di PUBLIC _bit_open_di EXTERN bit_open EXTERN __snd_tick EXTERN __bit_irqstatus INCLUDE "games/games.inc" .bit_open_di ._bit_open_di ld a,($403B) ld (__bit_irqstatus),a and @01111111 ;Disable NMI (i.e. how interrupts are delivered), set out ($0),a and @01101111 ;Set piezzo to stand-by ld (__snd_tick),a ret
439
Assembly
asm
21.95
73
0.617312
f70ba1f51f284d96500bb4e176770a9eb3876335
jorgegv/z88dk
[ "ClArtistic" ]
null
;; ;; Copyright (c) 2020-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the following disclaimer. ;; * Redistributions in binary form must reproduce the above copyright ;; notice, this list of conditions and the following disclaimer in the ;; documentation and/or other materials provided with the distribution. ;; * Neither the name of Intel Corporation nor the names of its contributors ;; may be used to endorse or promote products derived from this software ;; without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;; ;;; Routine to compute CBC-MAC based on 256 bit CBC AES encryption code %define CBC_MAC %include "sse/aes256_cbc_enc_x4_sse.asm"
1,711
Assembly
asm
53.46875
81
0.75979
f70bc5abb3ffbbb417e46a00516433c3138a9099
dongbinghua/intel-ipsec-mb
[ "BSD-3-Clause" ]
null
; this comes right after the boot sector, and just calls the kernel bits 32 extern kmain call kmain jmp $ ; some initialization required by the kernel ; such as interrupt handlers, etc. %include "kernel/isr.asm" %include "kernel/irq.asm"
242
Assembly
asm
17.285714
67
0.756198
f70bcbd264e1c1877b4425c50362d7c93edc3e3e
yds12/newcOS
[ "MIT" ]
null
.386 .model flat,c .data intArray DWORD 1h, 2h, 3h, 4h .code arraySum proc mov edi, OFFSET intArray ; sets the destenation array pointer mov ecx, LengthOF intArray ;initilize the loop counter C = Counter mov eax, 0 ; sets the accumeltaiver initilize for zerp LP: add eax, [edi] add edi, TYPE intArray loop LP ;this is for returning to the cpp ;mov eax,452 ret arraySum endp end
407
Assembly
asm
19.380952
69
0.707617
f70bea617865dffb5988d52541ed628416b8f25c
ChenPeleg/AsmCourse
[ "Apache-2.0" ]
1
CODE SEGMENT ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE org 1000h CODE ENDS END
87
Assembly
asm
6.692308
40
0.689655
f70c08f0c9949460f5ad88631a8fcaf85a6b544a
mbadry1/FCIFayoum-Computer-architecture-2018
[ "Unlicense" ]
9
;***************************************************************************** ;* x86-optimized functions for interlace filter ;* ;* Copyright (C) 2014 Kieran Kunhya <kierank@obe.tv> ;* Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or modify ;* it under the terms of the GNU General Public License as published by ;* the Free Software Foundation; either version 2 of the License, or ;* (at your option) any later version. ;* ;* FFmpeg is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;* GNU General Public License for more details. ;* ;* You should have received a copy of the GNU General Public License along ;* with FFmpeg; if not, write to the Free Software Foundation, Inc., ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION_RODATA SECTION .text %macro LOWPASS_LINE 0 cglobal lowpass_line, 5, 5, 7 add r0, r1 add r2, r1 add r3, r1 add r4, r1 neg r1 pcmpeqb m6, m6 .loop: mova m0, [r3+r1] mova m1, [r3+r1+mmsize] pavgb m0, [r4+r1] pavgb m1, [r4+r1+mmsize] pxor m0, m6 pxor m1, m6 pxor m2, m6, [r2+r1] pxor m3, m6, [r2+r1+mmsize] pavgb m0, m2 pavgb m1, m3 pxor m0, m6 pxor m1, m6 mova [r0+r1], m0 mova [r0+r1+mmsize], m1 add r1, 2*mmsize jl .loop REP_RET %endmacro INIT_XMM sse2 LOWPASS_LINE INIT_XMM avx LOWPASS_LINE
1,694
Assembly
asm
25.666667
79
0.622786
f70c700965c476f7d58e6d29554bfd1faae8ccec
huyu0415/FFmpeg
[ "Apache-2.0" ]
3,645
;; ;; Copyright (c) 2018-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the following disclaimer. ;; * Redistributions in binary form must reproduce the above copyright ;; notice, this list of conditions and the following disclaimer in the ;; documentation and/or other materials provided with the distribution. ;; * Neither the name of Intel Corporation nor the names of its contributors ;; may be used to endorse or promote products derived from this software ;; without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;; %include "include/aesni_emu.inc" %define AES_CBC_DEC_192 aes_cbc_dec_192_sse_no_aesni %include "sse/aes192_cbc_dec_by4_sse.asm"
1,709
Assembly
asm
55.129032
81
0.76536
f70c9e8522e2639319b22a448730a075d0088f6a
edtubbs/intel-ipsec-mb
[ "BSD-3-Clause" ]
174
; ; Fast CLS for the Robotron KC85/2..5 ; Stefano - Sept 2016 ; ; ; $Id: clg.asm,v 1.2 2017-01-02 22:57:58 aralbrec Exp $ ; SECTION code_clib PUBLIC clg PUBLIC _clg INCLUDE "caos.def" .clg ._clg ; ld a,7 ; Fore color ; ld (FARB),a ld a,7 ld (COLOR),a ; ld l,a ; call PV1 ; defb FNCOLORUP ld a,$0c ; clear screen call PV1 defb FNCRT ret
458
Assembly
asm
14.3125
55
0.491266
f70caa7f1a5dfd127ee45c327c2201bf60049e2c
RC2014Z80/z88dk
[ "ClArtistic" ]
8
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>epoll_ctl_old(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall epoll_ctl_old. See 'man 2 epoll_ctl_old' for more information. Arguments: vararg(int): vararg Returns: long </%docstring> <%page args="vararg_0=None, vararg_1=None, vararg_2=None, vararg_3=None, vararg_4=None"/> <% abi = pwnlib.abi.ABI.syscall() stack = abi.stack regs = abi.register_arguments[1:] allregs = pwnlib.shellcraft.registers.current() can_pushstr = [] can_pushstr_array = [] argument_names = ['vararg_0', 'vararg_1', 'vararg_2', 'vararg_3', 'vararg_4'] argument_values = [vararg_0, vararg_1, vararg_2, vararg_3, vararg_4] # Load all of the arguments into their destination registers / stack slots. register_arguments = dict() stack_arguments = collections.OrderedDict() string_arguments = dict() dict_arguments = dict() array_arguments = dict() syscall_repr = [] for name, arg in zip(argument_names, argument_values): if arg is not None: syscall_repr.append('%s=%r' % (name, arg)) # If the argument itself (input) is a register... if arg in allregs: index = argument_names.index(name) if index < len(regs): target = regs[index] register_arguments[target] = arg elif arg is not None: stack_arguments[index] = arg # The argument is not a register. It is a string value, and we # are expecting a string value elif name in can_pushstr and isinstance(arg, str): string_arguments[name] = arg # The argument is not a register. It is a dictionary, and we are # expecting K:V paris. elif name in can_pushstr_array and isinstance(arg, dict): array_arguments[name] = ['%s=%s' % (k,v) for (k,v) in arg.items()] # The arguent is not a register. It is a list, and we are expecting # a list of arguments. elif name in can_pushstr_array and isinstance(arg, (list, tuple)): array_arguments[name] = arg # The argument is not a register, string, dict, or list. # It could be a constant string ('O_RDONLY') for an integer argument, # an actual integer value, or a constant. else: index = argument_names.index(name) if index < len(regs): target = regs[index] register_arguments[target] = arg elif arg is not None: stack_arguments[target] = arg # Some syscalls have different names on various architectures. # Determine which syscall number to use for the current architecture. for syscall in ['SYS_epoll_ctl_old']: if hasattr(pwnlib.constants, syscall): break else: raise Exception("Could not locate any syscalls: %r" % syscalls) %> /* epoll_ctl_old(${', '.join(syscall_repr)}) */ %for name, arg in string_arguments.items(): ${pwnlib.shellcraft.pushstr(arg, append_null=('\x00' not in arg))} ${pwnlib.shellcraft.mov(regs[argument_names.index(name)], abi.stack)} %endfor %for name, arg in array_arguments.items(): ${pwnlib.shellcraft.pushstr_array(regs[argument_names.index(name)], arg)} %endfor %for name, arg in stack_arguments.items(): ${pwnlib.shellcraft.push(arg)} %endfor ${pwnlib.shellcraft.setregs(register_arguments)} ${pwnlib.shellcraft.syscall(syscall)}
3,552
Assembly
asm
36.244898
89
0.647804
f70cd23c98f5a1dc6b04a47f72b20c13ba03ac9f
mtdcr/pwntools
[ "MIT" ]
7
; void tshr_cls(uchar ink) SECTION code_clib SECTION code_arch PUBLIC _tshr_cls_fastcall EXTERN asm_tshr_cls defc _tshr_cls_fastcall = asm_tshr_cls
152
Assembly
asm
13.818182
38
0.842105
f70d78e5d8f244adecdfdb2e6a6eee50fb68487e
jpoikela/z88dk
[ "ClArtistic" ]
640
song050restored_pri equ 0 song050restored_rev equ 0 song050restored_mvl equ 127 song050restored_key equ 0 song050restored_tbs equ 1 song050restored_exg equ 0 song050restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.1) ****************; @song050restored_1: .byte TEMPO , 60 .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v+0 .byte VOL , 80*song050restored_mvl/mxv .byte PAN , c_v+0 .byte VOL , 80*song050restored_mvl/mxv .byte 28*song050restored_mvl/mxv .byte PAN , c_v+63 .byte c_v+63 .byte VOL , 28*song050restored_mvl/mxv .byte 28*song050restored_mvl/mxv .byte PAN , c_v+63 .byte c_v+63 .byte VOL , 28*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W03 .byte VOL , 80*song050restored_mvl/mxv .byte PAN , c_v+0 .byte BEND , c_v-1 .byte TIE , Gn0 , v100 .byte W92 .byte W01 ; 001 ---------------------------------------- .byte W96 ; 002 ---------------------------------------- .byte W42 .byte EOT .byte W03 .byte BEND , c_v+0 .byte TIE , An0 .byte W48 .byte W03 ; 003 ---------------------------------------- .byte W60 .byte W03 .byte EOT .byte W03 .byte BEND , c_v-1 .byte TIE , Gn0 .byte W30 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W96 ; 006 ---------------------------------------- .byte W09 .byte EOT .byte W04 .byte BEND , c_v+0 .byte TIE , An0 .byte W80 .byte W03 ; 007 ---------------------------------------- .byte W30 .byte W01 .byte EOT .byte W03 .byte VOICE , 36 .byte VOL , 28*song050restored_mvl/mxv .byte PAN , c_v+63 .byte c_v+0 .byte VOL , 80*song050restored_mvl/mxv .byte PAN , c_v+0 .byte VOL , 80*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_1 ;**************** Track 2 (Midi-Chn.2) ****************; @song050restored_2: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v+27 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte VOL , 54*song050restored_mvl/mxv .byte 28*song050restored_mvl/mxv .byte PAN , c_v-64 .byte VOL , 28*song050restored_mvl/mxv .byte 28*song050restored_mvl/mxv .byte PAN , c_v-64 .byte VOL , 28*song050restored_mvl/mxv .byte BEND , c_v-1 .byte W01 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W02 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+63 .byte BEND , c_v-1 .byte TIE , Cs0 , v100 .byte W56 .byte W02 .byte VOL , 47*song050restored_mvl/mxv .byte W32 .byte W03 ; 001 ---------------------------------------- .byte W15 .byte 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte W06 .byte EOT .byte W03 .byte TIE .byte W56 .byte W02 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte W11 ; 002 ---------------------------------------- .byte W42 .byte EOT .byte W03 .byte TIE .byte W44 .byte W01 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte W03 ; 003 ---------------------------------------- .byte W60 .byte W03 .byte EOT .byte W03 .byte TIE .byte W10 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte W20 ; 004 ---------------------------------------- .byte W36 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte W44 .byte W01 .byte EOT .byte W03 .byte TIE .byte W09 ; 005 ---------------------------------------- .byte W23 .byte VOL , 47*song050restored_mvl/mxv .byte W56 .byte W02 .byte 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte W15 ; 006 ---------------------------------------- .byte W64 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W04 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte W28 ; 007 ---------------------------------------- .byte W30 .byte EOT .byte W04 .byte VOICE , 36 .byte VOL , 28*song050restored_mvl/mxv .byte PAN , c_v-64 .byte c_v-18 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte VOL , 54*song050restored_mvl/mxv .byte BEND , c_v-1 .byte GOTO .word @song050restored_2 ;**************** Track 3 (Midi-Chn.4) ****************; @song050restored_3: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W17 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte BEND , c_v+0 .byte TIE , Gn0 , v100 .byte W78 .byte W01 ; 001 ---------------------------------------- .byte W96 ; 002 ---------------------------------------- .byte W56 .byte W01 .byte EOT .byte W03 .byte BEND , c_v+0 .byte TIE , An0 .byte W36 ; 003 ---------------------------------------- .byte W78 .byte EOT .byte W03 .byte BEND , c_v+0 .byte TIE , Gn0 .byte W15 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W96 ; 006 ---------------------------------------- .byte W24 .byte EOT .byte W03 .byte BEND , c_v+0 .byte TIE , An0 .byte W68 .byte W01 ; 007 ---------------------------------------- .byte W30 .byte EOT .byte W04 .byte VOICE , 36 .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v+63 .byte VOL , 47*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_3 ;**************** Track 4 (Midi-Chn.5) ****************; @song050restored_4: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v-64 .byte VOL , 54*song050restored_mvl/mxv .byte 54*song050restored_mvl/mxv .byte 76*song050restored_mvl/mxv .byte PAN , c_v-7 .byte c_v-7 .byte VOL , 76*song050restored_mvl/mxv .byte 76*song050restored_mvl/mxv .byte PAN , c_v-7 .byte c_v-7 .byte VOL , 76*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W32 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v-1 .byte TIE , Gn0 , v100 .byte W64 ; 001 ---------------------------------------- .byte W96 ; 002 ---------------------------------------- .byte W68 .byte W03 .byte EOT .byte W03 .byte BEND , c_v+0 .byte TIE , An0 .byte W22 ; 003 ---------------------------------------- .byte W92 .byte EOT .byte W03 .byte BEND , c_v-1 .byte TIE , Gn0 .byte W01 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W96 ; 006 ---------------------------------------- .byte W36 .byte W02 .byte EOT .byte W04 .byte BEND , c_v+0 .byte N84 , An0 .byte W54 ; 007 ---------------------------------------- .byte W32 .byte W02 .byte VOICE , 36 .byte VOL , 76*song050restored_mvl/mxv .byte PAN , c_v-7 .byte VOL , 54*song050restored_mvl/mxv .byte 54*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_4 ;**************** Track 5 (Midi-Chn.6) ****************; @song050restored_5: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v-18 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte VOL , 54*song050restored_mvl/mxv .byte 73*song050restored_mvl/mxv .byte PAN , c_v-21 .byte c_v-21 .byte VOL , 73*song050restored_mvl/mxv .byte 73*song050restored_mvl/mxv .byte PAN , c_v-21 .byte c_v-21 .byte VOL , 73*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+0 .byte TIE , Cs0 , v100 .byte W56 .byte W02 .byte VOL , 47*song050restored_mvl/mxv .byte W32 .byte W03 ; 001 ---------------------------------------- .byte W15 .byte 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte W06 .byte EOT .byte W03 .byte TIE .byte W56 .byte W02 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte W11 ; 002 ---------------------------------------- .byte W42 .byte EOT .byte W03 .byte TIE .byte W36 .byte W02 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte W10 ; 003 ---------------------------------------- .byte W56 .byte W02 .byte VOL , 47*song050restored_mvl/mxv .byte PAN , c_v-64 .byte W05 .byte EOT .byte W03 .byte TIE .byte W30 ; 004 ---------------------------------------- .byte W12 .byte VOL , 54*song050restored_mvl/mxv .byte W72 .byte EOT .byte W03 .byte TIE .byte W09 ; 005 ---------------------------------------- .byte W48 .byte W02 .byte VOL , 47*song050restored_mvl/mxv .byte W44 .byte W02 ; 006 ---------------------------------------- .byte W04 .byte 54*song050restored_mvl/mxv .byte PAN , c_v-18 .byte W66 .byte W01 .byte VOL , 63*song050restored_mvl/mxv .byte PAN , c_v+0 .byte W03 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte W22 ; 007 ---------------------------------------- .byte W30 .byte EOT .byte W04 .byte VOICE , 36 .byte VOL , 73*song050restored_mvl/mxv .byte PAN , c_v-21 .byte c_v+27 .byte VOL , 54*song050restored_mvl/mxv .byte PAN , c_v+27 .byte VOL , 54*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_5 ;**************** Track 6 (Midi-Chn.3) ****************; @song050restored_6: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v-64 .byte VOL , 0*song050restored_mvl/mxv .byte 73*song050restored_mvl/mxv .byte PAN , c_v+0 .byte c_v+0 .byte VOL , 73*song050restored_mvl/mxv .byte 73*song050restored_mvl/mxv .byte PAN , c_v+0 .byte c_v+0 .byte VOL , 73*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W03 .byte VOL , 28*song050restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+0 .byte N10 , Dn4 , v100 .byte W14 .byte N10 .byte W28 .byte W01 .byte VOL , 27*song050restored_mvl/mxv .byte N11 .byte W01 .byte VOL , 26*song050restored_mvl/mxv .byte W01 .byte 25*song050restored_mvl/mxv .byte W01 .byte 24*song050restored_mvl/mxv .byte W01 .byte 24*song050restored_mvl/mxv .byte W01 .byte 23*song050restored_mvl/mxv .byte W01 .byte 22*song050restored_mvl/mxv .byte W01 .byte 21*song050restored_mvl/mxv .byte W01 .byte 20*song050restored_mvl/mxv .byte W01 .byte 19*song050restored_mvl/mxv .byte W01 .byte 18*song050restored_mvl/mxv .byte W01 .byte 17*song050restored_mvl/mxv .byte W01 .byte 16*song050restored_mvl/mxv .byte W01 .byte 15*song050restored_mvl/mxv .byte W01 .byte 14*song050restored_mvl/mxv .byte W01 .byte 13*song050restored_mvl/mxv .byte N10 .byte W01 .byte VOL , 12*song050restored_mvl/mxv .byte W01 .byte 12*song050restored_mvl/mxv .byte W01 .byte 11*song050restored_mvl/mxv .byte W01 .byte 10*song050restored_mvl/mxv .byte W01 .byte 9*song050restored_mvl/mxv .byte W01 .byte 8*song050restored_mvl/mxv .byte W01 .byte 7*song050restored_mvl/mxv .byte W01 .byte 6*song050restored_mvl/mxv .byte W01 .byte 5*song050restored_mvl/mxv .byte W01 .byte 4*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 2*song050restored_mvl/mxv .byte W01 .byte 1*song050restored_mvl/mxv .byte W01 .byte 0*song050restored_mvl/mxv .byte W01 .byte 0*song050restored_mvl/mxv .byte W14 .byte N10 .byte W06 ; 001 ---------------------------------------- .byte W09 .byte N10 .byte W84 .byte W03 ; 002 ---------------------------------------- .byte W96 ; 003 ---------------------------------------- .byte W42 .byte VOL , 27*song050restored_mvl/mxv .byte W24 .byte N10 .byte W15 .byte N10 .byte W15 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W96 ; 006 ---------------------------------------- .byte W96 ; 007 ---------------------------------------- .byte W32 .byte W02 .byte VOICE , 36 .byte VOL , 73*song050restored_mvl/mxv .byte PAN , c_v+0 .byte VOL , 27*song050restored_mvl/mxv .byte 27*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_6 ;**************** Track 7 (Midi-Chn.7) ****************; @song050restored_7: .byte KEYSH , song050restored_key+0 ; 000 ---------------------------------------- .byte VOICE , 36 .byte PAN , c_v-64 .byte VOL , 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte BEND , c_v+0 .byte W01 .byte VOL , 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte PAN , c_v-64 .byte BEND , c_v+0 .byte N11 , Dn4 , v100 .byte W01 .byte VOL , 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W01 .byte 3*song050restored_mvl/mxv .byte W11 .byte N11 .byte W28 .byte W01 .byte N11 .byte W15 .byte N10 .byte W24 .byte W01 ; 001 ---------------------------------------- .byte W04 .byte N11 .byte W15 .byte N10 .byte W76 .byte W01 ; 002 ---------------------------------------- .byte W96 ; 003 ---------------------------------------- .byte W76 .byte N11 .byte W15 .byte N10 .byte W05 ; 004 ---------------------------------------- .byte W96 ; 005 ---------------------------------------- .byte W96 ; 006 ---------------------------------------- .byte W96 ; 007 ---------------------------------------- .byte W32 .byte W02 .byte VOICE , 36 .byte VOL , 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte 3*song050restored_mvl/mxv .byte BEND , c_v+0 .byte GOTO .word @song050restored_7 ;******************************************************; .align 4 song050restored: .byte 7 ; NumTrks .byte 0 ; NumBlks .byte song050restored_pri ; Priority .byte song050restored_rev ; Reverb. //emit_clean_voicegroup_offset_for_song 50 .word 0x810B030 //Voice Table .word @song050restored_1 .word @song050restored_2 .word @song050restored_3 .word @song050restored_4 .word @song050restored_5 .word @song050restored_6 .word @song050restored_7
16,386
Assembly
asm
24.52994
56
0.529476
f70d9e3ee2dc41c581506b839d869b6ee4de3342
MusicTheorist/Mother2GbaTranslation
[ "MIT" ]
1
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x16d2a, %rsi lea addresses_UC_ht+0xbe2a, %rdi nop nop cmp %r8, %r8 mov $62, %rcx rep movsq nop nop nop nop sub %r13, %r13 lea addresses_UC_ht+0xda6a, %rdi sub %rax, %rax mov (%rdi), %r8 nop nop nop and %r8, %r8 lea addresses_D_ht+0x52aa, %rsi lea addresses_normal_ht+0x15872, %rdi clflush (%rsi) nop dec %r12 mov $53, %rcx rep movsq nop nop add $4756, %r13 lea addresses_A_ht+0x1042a, %rdi nop nop nop nop nop xor $9574, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm5 movups %xmm5, (%rdi) nop nop cmp %r13, %r13 lea addresses_UC_ht+0xcb32, %r12 nop nop nop xor $9580, %rsi movups (%r12), %xmm2 vpextrq $1, %xmm2, %rdi nop inc %r12 lea addresses_A_ht+0xba2a, %rsi lea addresses_A_ht+0x11b9a, %rdi nop nop nop nop nop and %rdx, %rdx mov $120, %rcx rep movsw nop nop cmp $56503, %rdx lea addresses_A_ht+0x1a776, %r12 nop nop nop and $23630, %rcx movb $0x61, (%r12) nop nop nop nop nop cmp $40846, %rsi lea addresses_A_ht+0x522a, %rcx nop and %r8, %r8 mov $0x6162636465666768, %rdi movq %rdi, (%rcx) nop mfence pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi // Store lea addresses_PSE+0x1062a, %r14 nop nop nop nop nop cmp %rdx, %rdx movb $0x51, (%r14) nop nop nop nop nop add %r11, %r11 // REPMOV lea addresses_PSE+0x16a7a, %rsi lea addresses_D+0x122a, %rdi nop nop nop nop xor %rax, %rax mov $96, %rcx rep movsq nop xor $64710, %rbx // Store lea addresses_PSE+0x17bfc, %rdx nop nop nop nop nop sub %rsi, %rsi mov $0x5152535455565758, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rdx) nop nop nop and %r13, %r13 // Faulty Load lea addresses_D+0x122a, %rdi nop nop nop nop add $59000, %rcx movb (%rdi), %al lea oracles, %rdx and $0xff, %rax shlq $12, %rax mov (%rdx,%rax,1), %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_PSE', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': True, 'same': True, 'congruent': 2}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 9}} {'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 */
6,850
Assembly
asm
33.414634
2,999
0.657518
f70da5f8db7f7817fd07184b5ea91d76a43de17f
ljhsiun2/medusa
[ "MIT" ]
9
; A090239: a(n) = A053838(n) + 2 modulo 3. ; 2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,2 mov $3,2 lpb $0,14 mod $3,3 add $3,$0 div $0,3 lpe mov $0,$3
313
Assembly
asm
28.454545
201
0.507987
f70dac6051f93382a6dcd5d3009092be1f3ffbaa
neoneye/loda
[ "Apache-2.0" ]
22
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; ; 11/3/99 djm ***UNTESTED*** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; ; $Id: fdtell.asm,v 1.5 2015/01/19 01:32:44 pauloscustodio Exp $ ; INCLUDE "fileio.def" PUBLIC fdtell ;long fdtell(int fd) .fdtell pop bc ;ret pop ix ;fd push ix push bc ld a,FA_PTR call_oz(os_frm) push bc ;get the var into our preferred regs pop hl ret nc ;Error, return with -1 ld hl,65535 ld d,h ld e,l ret
628
Assembly
asm
18.470588
68
0.511146
f70de2ee67a97364c3d8fc660e86cbfcc133407f
meesokim/z88dk
[ "ClArtistic" ]
null
; void dzx7_agile_rcs_back(void *src, void *dst) SECTION code_clib SECTION code_compress_zx7 PUBLIC _dzx7_agile_rcs_back EXTERN asm_dzx7_agile_rcs_back _dzx7_agile_rcs_back: pop af pop de pop hl push hl push de push af jp asm_dzx7_agile_rcs_back
275
Assembly
asm
12.5
48
0.763636
f70e888dd1fbbe85334bbae2447db7369f143dff
jpoikela/z88dk
[ "ClArtistic" ]
640
; A138443: a(n) = ((n-th prime)^6-(n-th prime^2))/4. ; 15,180,3900,29400,442860,1206660,6034320,11761380,37008840,148705620,221875680,641431260,1187525640,1580340300,2694803280,5541089580,10545132540,12880092660,22614594420,32025069720,37833555240 seq $0,40 ; The prime numbers. mov $2,$0 pow $2,5 sub $2,$0 mul $0,$2 div $0,4
328
Assembly
asm
32.8
194
0.75
f70e9c6489234f525d4d990092f1edad2b9d76a4
neoneye/loda
[ "Apache-2.0" ]
22
DEVICE ZXSPECTRUM48 SLOT 0 PAGE 0 : ORG 0x0000 : DB "00" PAGE 1 : ORG 0x0000 : DB "11" PAGE 2 : ORG 0x0000 : DB "22" PAGE 3 : ORG 0x0000 : DB "33" PAGE 4 ; error - non-existing page (page 3 should be still visible in slot 0) ASSERT {0} == "33" SLOT 1 : PAGE 0 : ASSERT {0x4000} == "00" : PAGE 1 : ASSERT {0x4000} == "11" SLOT 2 : PAGE 2 : ASSERT {0x8000} == "22" : PAGE 3 : ASSERT {0x8000} == "33" SLOT 3 : PAGE 0 : ASSERT {0xC000} == "00" : PAGE 1 : ASSERT {0xC000} == "11" SLOT 4 ; error ; pages: 3:1:3:1 ORG 0xC000-2 DB "AABB" ASSERT {0x4000-2} == "AA" ; should be visible also at these addresses ASSERT {0x4000} == "BB" ORG 0xFFFE DB "CCDD" ; "DD" goes beyond 0x10000 -> lost (error reported) ASSERT {0} == "33" ; still page 3 there ; now try the 128 classic (should be not affected by the 48 device above) DEVICE ZXSPECTRUM128 SLOT 0 PAGE 0 : ASSERT {0} == 0 : ORG 0x0000 : DB "00" PAGE 1 : ASSERT {0} == 0 : ORG 0x0000 : DB "11" PAGE 2 : ASSERT {0} == 0 : ORG 0x0000 : DB "22" PAGE 3 : ASSERT {0} == 0 : ORG 0x0000 : DB "33" PAGE 4 : ASSERT {0} == 0 : ORG 0x0000 : DB "44" PAGE 5 : ASSERT {0} == 0 : ORG 0x0000 : DB "55" PAGE 6 : ASSERT {0} == 0 : ORG 0x0000 : DB "66" PAGE 7 : ASSERT {0} == 0 : ORG 0x0000 : DB "77" PAGE 8 ; error - non-existing page (page 7 should be still visible in slot 0) ASSERT {0} == "77" SLOT 1 : PAGE 4 : ASSERT {0x4000} == "44" : PAGE 5 : ASSERT {0x4000} == "55" SLOT 2 : PAGE 6 : ASSERT {0x8000} == "66" : PAGE 7 : ASSERT {0x8000} == "77" SLOT 3 : PAGE 4 : ASSERT {0xC000} == "44" : PAGE 5 : ASSERT {0xC000} == "55" SLOT 4 ; error ; pages: 7:5:7:5 ORG 0xC000-2 DB "AABB" ASSERT {0x4000-2} == "AA" ; should be visible also at these addresses ASSERT {0x4000} == "BB" ORG 0xFFFE DB "CCDD" ; "DD" goes beyond 0x10000 -> lost (error reported) ASSERT {0} == "77" ; still page 7 there ; some more error states ORG & : PAGE & : ORG 0x1234, & : DISP & : SLOT & ; syntax errors ENT DEVICE none PAGE 1 : SLOT 1
2,198
Assembly
asm
33.30303
86
0.545496
f70ed8fba36b6a540e3f5fe91c207bfd71a266c9
fengjixuchui/sjasmplus
[ "BSD-3-Clause" ]
220
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 14/09/2006 ; Improved by Antonio Schifano, Dec 2008 ; ; int zx_break(); ; ; Check if the CAPS-SPACE (BREAK) key is being pressed ; ( 1 = pressed; 0 = not pressed ) ; ; Caps-shift + space version A.Schifano 29/12/2008 ; ; $Id: zx_break.asm,v 1.2 2008/12/31 13:58:11 stefano Exp $ ; XLIB zx_break zx_break: ld hl,0 ; assume break is not pressed ld a,$7f in a,($fe) rra ret c ; space not pressed ld a,$fe in a,($fe) rra ret c inc l ; both shift & space pressed, ret
541
Assembly
asm
18.033333
59
0.658041
f70ed9a190635a5f22931bd1a92b3ec67a4c242f
andydansby/z88dk-mk2
[ "ClArtistic" ]
1
; A213655: Number of dominating subsets of the theta-graph TH(2,2,n) (n>=1). A tribonacci sequence with initial values 13, 23, and 41. ; Submitted by Jamie Morken(s4) ; 13,23,41,77,141,259,477,877,1613,2967,5457,10037,18461,33955,62453,114869,211277,388599,714745,1314621,2417965,4447331,8179917,15045213,27672461,50897591,93615265,172185317,316698173,582498755 lpb $0 sub $0,1 add $1,8 mov $4,$2 add $4,$3 mov $3,$2 mov $2,$1 add $4,2 add $1,$4 lpe mov $0,$1 add $0,13
487
Assembly
asm
28.647059
194
0.706366
f70f0b9ca68be94431fd1e9389a712f3674a1a60
neoneye/loda-programs
[ "Apache-2.0" ]
11
; ; This file is automatically generated ; ; Do not edit!!! ; ; djm 12/2/2000 ; ; ZSock Lib function: sock_settos SECTION code_clib PUBLIC sock_settos PUBLIC _sock_settos EXTERN no_zsock INCLUDE "packages.def" INCLUDE "zsock.def" .sock_settos ._sock_settos ld a,r_sock_settos call_pkg(tcp_all) ret nc ; We failed..are we installed? cp rc_pnf scf ;signal error ret nz ;Internal error call_pkg(tcp_ayt) jr nc,sock_settos jp no_zsock
458
Assembly
asm
14.774194
38
0.735808
f70f0f43bc3b2e39babb6d22994d1ba27400bc90
jpoikela/z88dk
[ "ClArtistic" ]
640
SFX_Pound_Ch1: unknownnoise0x20 2, 161, 34 endchannel
56
Assembly
asm
14
28
0.803571
f70f6725ee6b85fe06859f41413cd64722f9f83c
adhi-thirumala/EvoYellow
[ "Unlicense" ]
16
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; AND32i32 mov eax, 0x7 ;TEST_BEGIN_RECORDING and eax, 0x6fffffff ;TEST_END_RECORDING
201
Assembly
asm
16.75
25
0.761194
f70f67e4bccb952eba2f4d9488c14657c828889c
randolphwong/mcsema
[ "BSD-3-Clause" ]
2
mov ebp, 0x400 mov esp, ebp mov esi, 0x0f0b0f0b mov edi, 0x0f0b0f0b mov ecx, 0x0f0b0f0b mov edx, 0x0f0b0f0b mov ebx, 0x0f0b0f0b mov eax, 0x0f0b0f0b start: pushad sub esp, 0x20 and esp, 0x3ff jmp start
216
Assembly
asm
16.615385
19
0.722222
f70f7212a403af06572f25943dd21a5f1d92351c
brightprogrammer/r2wars-bots
[ "CC0-1.0" ]
null
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Hierarchy FILE: graphicBodyObjArray.asm AUTHOR: Steve Scholl, Nov 15, 1991 ROUTINES: Name Description ---- ----------- ObjArrayProcessChildren ObjArrayProcessChildrenRV ObjArrayProcessChildrenEnd ObjArrayProcessChildrenCB ChunkArrayEnumRV METHOD HANDLERS Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Steve 11/15/91 Initial revision DESCRIPTION: $Id: bodyObjArray.asm,v 1.1 97/04/04 18:07:50 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrObjInitCode segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: ObjArrayProcessChildren DESCRIPTION: Process the children of a composite object via a callback routine or via several predefined callback routines. The callback routine is called for each child in order, with all passed registers preserved except BX. The callback routine returns the carry set to end processing at this point. CALLED BY: GLOBAL PASS: *ds:si - chunk array of ODs ax, cx, dx, bp - parameters to pass to call back routine on stack (pushed in this order): optr - object descriptor of initial child to process or 0 to start at composite's Nth child, where N is stored in the chunk half of the optr. fptr - address of call back routine (segment pushed first) or if segment = 0 then offset is in ObjCompCallType: (vfptr if XIP'ed) OCCT_SAVE_PARAMS_TEST_ABORT - Save cx, dx and bp around the calling of the child, if carry is set on return from the call then abort with carry set OCCT_SAVE_PARAMS_DONT_TEST_ABORT - Save cx, dx and bp around the calling of the child, don't check carry on return OCCT_DONT_SAVE_PARAMS_TEST_ABORT - Don't save cx, dx and bp around the calling of the child, if carry is set on return from the call then abort with carry set OCCT_DONT_SAVE_PARAMS_DONT_TEST_ABORT - Don't save cx, dx and bp around the calling of the child, don't check carry on return OCCT_DONT_SAVE_PARAMS_ABORT_AFTER_FIRST - Don't save cx, dx, and bp around the calling of the child, and abort after have called one child (usually used with "call nth child" capability. OCCT_COUNT_CHILDREN: DO NOT USE (ChunkArrayGetCount is faster, no?) optr - handle:offset of composite RETURN: call back routine and method popped off stack carry - set if call aborted in the middle ax, cx, dx, bp - returned with call back routine's changes ds - pointing at same block (could have moved) es - untouched (i.e. it ain't fixed up if it points at a block that might have moved) DESTROYED: nothing WARNING: This routine MAY resize LMem and/or object blocks, moving then on the heap and invalidating stored segment pointers to them. CALL BACK ROUTINE: Desc: Process child Pass: *ds:si - child *es:di - composite ax, cx, dx, bp - data Return: carry - set to end processing ax, cx, dx, bp - data to send to next child Destroy: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version Eric 10/89 Added "start at Nth child" capability doug 7/90 Changed to patch up ds, es values around calls to callback routine for each child CDB 10/91 modified for ChunkArray... stuff ------------------------------------------------------------------------------@ ; These params are used by the callback routine to directly access the ; stack frame created by this routine. ArrayProcessParams struct APP_paramBP word APP_retAddr fptr ; caller of ObjArrayProcessChildren APP_composite fptr APP_callBack fptr APP_initialChild optr ArrayProcessParams ends ;****************************************************************************** ; This is kind of weird: Acoording to adam, if I push-initialize a ; variable with BP, it'll be popped upon returning. However, any ; other push-initialized variables WON'T be popped. That's just the ; way it is, I guess... ;****************************************************************************** ObjArrayProcessChildren proc far call \ composite:optr, callBack:fptr, initialChild:optr paramBP local word ; message data passed in bp\ push bp lastLockedBlock local hptr ; block handle of current DS\ push ds:[LMBH_handle] uses bx, di, es .enter ForceRef composite ForceRef callBack ForceRef initialChild ForceRef paramBP ForceRef lastLockedBlock ; Set up the callback routine address tst callBack.segment jnz afterCallBackAddress mov bx, SEGMENT_CS mov callBack.segment, bx ; convert offset from ETYPE to ADDRESS: mov bx, callBack.offset mov bx, cs:[bx].OCCC_callBackTable mov callBack.offset, bx afterCallBackAddress: mov di, offset ObjArrayProcessChildrenCB mov bx, cs call ChunkArrayEnum call ObjArrayProcessChildrenEnd .leave ret @ArgSize ObjArrayProcessChildren endp COMMENT @---------------------------------------------------------------------- FUNCTION: ObjArrayProcessChildrenRV DESCRIPTION: Process an array of objects, starting at the LAST object and moving backwards thru the list The callback routine is called for each child in order, with all passed registers preserved except BX. The callback routine returns the carry set to end processing at this point. CALLED BY: GLOBAL PASS: *ds:si - chunk array of ODs ax, cx, dx, bp - parameters to pass to call back routine on stack (pushed in this order): optr - object descriptor of initial child to process. If handle part is 0, then the chunk part contains the number of objects to skip before processing. Note that this counts back from the last object (ie, if a value of 2 is passed, then the last 2 objects won't be processed, but everything before them will). fptr - address of call back routine (segment pushed first) or if segment = 0 then offset is in ObjCompCallType: OCCT_SAVE_PARAMS_TEST_ABORT - Save cx, dx and bp around the calling of the child, if carry is set on return from the call then abort with carry set OCCT_SAVE_PARAMS_DONT_TEST_ABORT - Save cx, dx and bp around the calling of the child, don't check carry on return OCCT_DONT_SAVE_PARAMS_TEST_ABORT - Don't save cx, dx and bp around the calling of the child, if carry is set on return from the call then abort with carry set OCCT_DONT_SAVE_PARAMS_DONT_TEST_ABORT - Don't save cx, dx and bp around the calling of the child, don't check carry on return OCCT_DONT_SAVE_PARAMS_ABORT_AFTER_FIRST - Don't save cx, dx, and bp around the calling of the child, and abort after have called one child (usually used with "call nth child" capability. OCCT_COUNT_CHILDREN: DO NOT USE (ChunkArrayGetCount is faster, no?) optr - composite RETURN: call back routine and method popped off stack carry - set if call aborted in the middle ax, cx, dx, bp - returned with call back routine's changes ds - pointing at same block (could have moved) es - untouched (i.e. it ain't fixed up if it points at a block that might have moved) DESTROYED: di WARNING: This routine MAY resize LMem and/or object blocks, moving then on the heap and invalidating stored segment pointers to them. CALL BACK ROUTINE: Desc: Process child Pass: *ds:si - child *es:di - composite ax, cx, dx, bp - data Return: carry - set to end processing ax, cx, dx, bp - data to send to next child Destroy: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version Eric 10/89 Added "start at Nth child" capability doug 7/90 Changed to patch up ds, es values around calls to callback routine for each child CDB 10/91 modified for ChunkArray... stuff ------------------------------------------------------------------------------@ ObjArrayProcessChildrenRV proc far call \ composite:optr, callBack:fptr, initialChild:optr paramBP local word ; message data passed in bp\ push bp lastLockedBlock local hptr ; block handle of current DS\ push ds:[LMBH_handle] .enter ForceRef composite ForceRef callBack ForceRef initialChild ForceRef paramBP ForceRef lastLockedBlock ; Set up the callback routine address tst callBack.segment jnz afterCallBackAddress mov bx, SEGMENT_CS mov callBack.segment, bx ; convert offset from ETYPE to ADDRESS: mov bx, callBack.offset mov bx, cs:[bx].OCCC_callBackTable mov callBack.offset, bx afterCallBackAddress: mov di, offset ObjArrayProcessChildrenCB mov bx, cs call ChunkArrayEnumRV call ObjArrayProcessChildrenEnd .leave ret @ArgSize ObjArrayProcessChildrenRV endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ObjArrayProcessChildrenEnd %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: finish up the ObjArrayProcessChildren routine by unlocking the last locked block (if it's different than the ChunkArray's block) CALLED BY: ObjArrayProcessChildren, ObjArrayProcessChildrenRV PASS: *ds:si - chunk array ss:bp - ArrayProcessParams RETURN: nothing DESTROYED: Nothing (flags preserved) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 11/15/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ObjArrayProcessChildrenEnd proc near lastLockedBlock local hptr .enter inherit pushf mov bx, lastLockedBlock cmp bx, ds:[LMBH_handle] je done call MemUnlock done: popf .leave ret ObjArrayProcessChildrenEnd endp ;****************************************************************************** ; ;****************************************************************************** COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ObjArrayProcessChildrenCB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback routine to process children CALLED BY: PASS: ds:di - address of current OD ss:bp - ArrayProcessParams ax, cx, dx - values to pass to lower levels RETURN: ax, cx, dx - possibly modified by called routines DESTROYED: Nothing PSEUDO CODE/STRATEGY: Optimize for simplest case: no initial child & block already locked. SCREWY STACK STUFF: This procedure is called with ss:bp pointing at the data structure ArrayProcessParams, and ss:[bp-2] pointing at lastLockedBlock. The reason I specify everything explicitly in this procedure, and not in ObjArrayProcessChildren, above, is that in the above procedure, I want Swat to know what's going on, but down here, I need to access these values without using bp (since at one point, bx is used to point to this data). KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 10/30/91 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ObjArrayProcessChildrenCB proc far lastLockedBlock local hptr .enter inherit ; get child's OD mov bx, ds:[di].handle mov si, ds:[di].chunk ; Check if there's an initial child tst [bp].APP_initialChild.chunk jnz checkInitial ; The purpose of all this is to get the current child's segment locked ; and into DS. I also want to unlock the last child's block unless ; it's the same block as the chunk array (which must always remain ; locked). checkBlock: push ds:[LMBH_handle] ; chunk array's block handle mov di, bx ; child's handle xchg di, lastLockedBlock ; store, get last one cmp bx, di ; compare current, last jne unlockAndLock call MemDerefDS ; now, the child's block is in DS, and we're ready to go! callRoutine: push bp mov bx, bp mov bp, [bp].APP_paramBP push bx mov di, ss:[bx].APP_composite.offset mov bx, ss:[bx].APP_composite.handle call MemDerefES pop bx NOFXIP< call ss:[bx].APP_callBack > FXIP< pushdw ss:[bx].APP_callBack > FXIP< call PROCCALLFIXEDORMOVABLE_PASCAL > mov bx, bp pop bp mov [bp].APP_paramBP, bx ; restore the chunkArray block to DS so ChunkArrayEnum knows where ; it's at. pop bx call MemDerefDS done: .leave ret ; If the initial child is an OD, compare it with the current object ; (^lbx:si), otherwise skip (since we're using the initialChild.chunk ; field as a countdown). checkInitial: mov di, [bp].APP_initialChild.handle tst di jz skipAndDecrement ; Compare the OD of the "initialChild" with ^lbx:si cmp bx, di ; compare handles jne skipThisOne cmp si, [bp].APP_initialChild.chunk jne skipThisOne ; ODs are identical. Zero out the initialChild chunk so this whole ; business won't be performed again clr [bp].APP_initialChild.chunk jmp checkBlock ; Decrement the counter stored in initialChild.chunk skipAndDecrement: dec [bp].APP_initialChild.chunk skipThisOne: clc jmp done unlockAndLock: ; unlock last block (unless same as chunk array) xchg bx, di ; bx <= last, di <= current cmp bx, ds:[LMBH_handle] je lockNew call MemUnlock lockNew: xchg bx, di ; bx <= current, di <= last push ax call ObjLockObjBlock mov ds, ax pop ax jmp callRoutine ObjArrayProcessChildrenCB endp ;----------------------------------------- OCCC_callBackTable label word word OCCC_save_test word OCCC_save_no_test word OCCC_no_save_test word OCCC_no_save_no_test word OCCC_no_save_abort_after_first ;----------------------------------------- OCCC_callInstanceCommon proc near uses ax .enter call ObjCallInstanceNoLockES .leave ret OCCC_callInstanceCommon endp OCCC_save_test proc far push cx, dx, bp call OCCC_callInstanceCommon pop cx, dx, bp ret OCCC_save_test endp OCCC_save_no_test proc far push cx, dx, bp call OCCC_callInstanceCommon pop cx, dx, bp clc ret OCCC_save_no_test endp OCCC_no_save_test proc far call OCCC_callInstanceCommon ret OCCC_no_save_test endp OCCC_no_save_no_test proc far call OCCC_callInstanceCommon clc ret OCCC_no_save_no_test endp OCCC_no_save_abort_after_first proc far call OCCC_callInstanceCommon stc ;ABORT after calling first child ret OCCC_no_save_abort_after_first endp COMMENT @---------------------------------------------------------------------- FUNCTION: ChunkArrayEnumRV DESCRIPTION: Enumerate all elements in a general array CALLED BY: GLOBAL PASS: *ds:si - array bx:di - offset of callback routine ax, cx, dx, bp, es - data to pass to callback RETURN: ax, cx, dx, bp, es - modified by callbacks carry - set if the callback returned the carry set DESTROYED: bx Callback: Pass: *ds:si - array ds:di - array element being enumerated fixed size elements: ax, cx, dx, bp, es - data passed to GArrayEnum variable sized elements: ax - element size cx, dx, bp, es - data passed to GArrayEnum Return: carry - set to end enumeration ax, cx, dx, bp, es - data to pass to next Destroyed: bx, si, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: Performing other chunk array functions during ChunkArrayEnumRV is a dangerous thing. You CANNOT delete the current element or any elements before it. You CANNOT insert at the current element or before it. Before means elements with lower element numbers, it is not meant to be relative to the direction we are enuming in. REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version Doug 3/90 Converted for KLib use Steve 11/92 Nuked linkage in stack frame ------------------------------------------------------------------------------@ GAE_params struct GAE_curOffset word GAE_vector dword GAE_params ends ChunkArrayEnumRV proc far ; make stack frame push bx ; segment of callback push di ; offset mov bx, bp ; keep bp data in bx ; (GAE_vector is pushed manually) sub sp, (size GAE_params - size GAE_vector) mov bp, sp EC < call ECCheckChunkArray > mov di, ds:[si] cmp ds:[di].CAH_count, 0 ;any elements? LONG je done ;no (carry is clear) ; Get last element push ax, cx, dx ;data for callback mov cx, ds:[di].CAH_count dec cx mov ax, ds:[di].CAH_elementSize EC < tst ax EC < ERROR_Z GROBJ_CHUNK_ARRAY_ENUM_RV_CANT_HANDLE_VARIABLE_SIZED_ELEMENTS mul cx add ax, ds:[di].CAH_offset mov ss:[bp].GAE_curOffset, ax pop ax, cx, dx ;data for callback ; loop: *ds:si = array, ; ss:[bp].GAE_curOffset = offset into array enumLoop: mov di, ds:[si] ; ds:di = array add di, ss:[bp].GAE_curOffset ; di = element push si,bp ; array, frame ptr xchg bp, bx ; bp's call back data, frame ptr call ss:[bx].GAE_vector ; call routine mov bx,bp ; bp's call back data pop si,bp ; array, frame ptr jc done ; if carry returned set, then ; done ; Move to the PREVIOUS element -- stop if we've gotten before the ; beginning of the array. push ax mov di, ds:[si] ; ds:di = array mov ax, ds:[di].CAH_elementSize sub ss:[bp].GAE_curOffset, ax mov ax, ss:[bp].GAE_curOffset cmp ax, ds:[di].CAH_offset pop ax jae enumLoop EC < call ECCheckChunkArray > clc done: EC < call ECCheckChunkArray > mov di, sp ; don't trash carry flag lea sp, ss:[di][(size GAE_params - size GAE_vector)] pop di ; di = callback offset pop bp ; bp = callback segment xchg bx, bp ; bp = data BP ; bx = callback segment ret ChunkArrayEnumRV endp GrObjInitCode ends
18,432
Assembly
asm
26.444763
80
0.653266
f70f75189b26e6c8097c8a84663f316a63985636
steakknife/pcgeos
[ "Apache-2.0" ]
504
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x16fbc, %rsi lea addresses_UC_ht+0x12e5c, %rdi add %r11, %r11 mov $98, %rcx rep movsb nop nop nop nop sub $23544, %rsi lea addresses_A_ht+0xf5c, %rsi lea addresses_WC_ht+0xc75c, %rdi nop nop nop nop sub %rax, %rax mov $122, %rcx rep movsb nop mfence lea addresses_A_ht+0x1c7c, %rsi add $47847, %r15 mov (%rsi), %cx nop nop nop nop add %r11, %r11 lea addresses_WC_ht+0x7e30, %rdi nop nop sub $53358, %r10 movb $0x61, (%rdi) cmp %r10, %r10 lea addresses_D_ht+0x1add9, %r11 add %rsi, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%r11) nop nop nop nop nop xor %r15, %r15 lea addresses_D_ht+0xa01c, %r11 nop nop add %rsi, %rsi movb (%r11), %r10b nop nop nop nop nop sub $32333, %rax lea addresses_UC_ht+0x1b85c, %rsi lea addresses_normal_ht+0x1d95c, %rdi and %r11, %r11 mov $119, %rcx rep movsq nop nop nop nop nop and %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r9 push %rax push %rdi // Store lea addresses_WC+0xeabc, %rdi nop nop inc %r12 movb $0x51, (%rdi) nop dec %rax // Faulty Load lea addresses_WC+0x1c75c, %r9 clflush (%r9) and $9423, %r11 movups (%r9), %xmm4 vpextrq $0, %xmm4, %r12 lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rdi pop %rax pop %r9 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}} [Faulty Load] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
5,893
Assembly
asm
41.794326
2,999
0.658748
f70fa46ddf695d86f8119ab134fe6b0675d1b8b9
ljhsiun2/medusa
[ "MIT" ]
9
.386 .model flat .code ShowSquare = 0 ShowMultiply = 1 ShowDivide = 2 ShowRemainder = 3 ShowDivideFailure = 4 Failure = 0 Success = 1 public _Divide public _Multiply public _Square extrn _PrintResult: proc _Square proc mov ebx, [esp + 4] imul ebx, ebx push ebx push ShowMultiply call _PrintResult add esp, 8 mov eax, ebx ret _Square endp _Multiply proc mov ebx, [esp + 8] mov ecx, [esp + 4] imul ebx, ecx push ebx push ShowMultiply call _PrintResult add esp, 8 mov eax, ebx ret _Multiply endp _Divide proc mov eax, [esp + 4] mov ebx, [esp + 8] mov ecx, [esp + 12] cmp ebx, 0 je Fail cdq idiv ebx mov ecx, [esp + 12] mov ebx, [esp + 16] mov [ecx], eax mov [ebx], edx push edx push ShowRemainder push eax push ShowDivide call _PrintResult add esp, 8 call _PrintResult add esp, 8 mov eax, Success jmp done Fail: push ebx push ShowDivideFailure call _PrintResult add esp, 8 mov eax, Failure done: ret _Divide endp end
1,103
Assembly
asm
11.98913
25
0.6165
f70ff055e31924f8b0d587b8872df8ec0c2f1d4e
CZhang1997/x86-Assembly
[ "MIT" ]
null
; float trunc(float x) SECTION code_fp_math48 PUBLIC cm48_sdccix_trunc EXTERN cm48_sdccix_trunc_fastcall cm48_sdccix_trunc: pop af pop hl pop de push de push hl push af jp cm48_sdccix_trunc_fastcall
234
Assembly
asm
11.142857
33
0.726496
f710c00bba4dd6e99a166ac1a09e1cee1d589801
meesokim/z88dk
[ "ClArtistic" ]
null
start: ldi r1, 8192 add r0, r1, 0 syscall SetGlobalMemory cmp r0, r1 jeq success ret success: xor r0, r0, r0 add r2, r2, 1 cycle: add r4, r2, r3 store r4, r0 add r0, r0, 4 add r2, r4, 0 add r4, r2, r3 store r4, r0 add r0, r0, 4 add r3, r4, 0 cmp r0, r1 jls cycle ret
308
Assembly
asm
13.391304
25
0.581169
f710dd08dbc923071ec513c75c05053df9826e9b
Rus08/mandarin-vm
[ "MIT" ]
null
; A010688: Period 2: repeat (1,7). ; Submitted by Christian Krause ; 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1 mod $0,2 mul $0,6 add $0,1
259
Assembly
asm
32.375
163
0.555985
f710e240c3ecea8011a4818701ea486cf4b8a86c
neoneye/loda-programs
[ "Apache-2.0" ]
11
;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt). ; If you do not agree to the terms, do not use the code. ; ; ; Module Name: ; ; systable.asm ; ; Abstract: ; ; This module implements the system service dispatch table. ; ;-- ; ; To add a system service simply add the name of the service to the below ; table. If the system service has arguments, then immediately ; follow the name of the serice with a comma and following that the number ; of bytes of in memory arguments, e.g. CreateObject,40. ; ;ifdef i386 .386p include callconv.inc TABLE_ERROR macro t .err ; Maximum number of in-memory system service arguments exceeded. endm TABLE_BEGIN1 macro t TITLE t endm TABLE_BEGIN2 macro t _TEXT SEGMENT DWORD PUBLIC 'DATA' ASSUME DS:FLAT endm TABLE_BEGIN3 macro t align 4 endm TABLE_BEGIN4 macro t public _KiServiceTable _KiServiceTable label dword endm TABLE_BEGIN5 macro t endm TABLE_BEGIN6 macro t endm TABLE_BEGIN7 macro t endm TABLE_BEGIN8 macro t endm TABLE_ENTRY macro l,bias,numargs Local Bytes Bytes = numargs*4 EXTRNP _Nt&l,&numargs ComposeInst <dd offset FLAT:>,_Nt,l,<@>,%(Bytes) endm TABLE_END macro n public _KiServiceLimit _KiServiceLimit dd n+1 endm ARGTBL_BEGIN macro public _KiArgumentTable _KiArgumentTable label dword endm ARGTBL_ENTRY macro e0,e1,e2,e3,e4,e5,e6,e7 db e0,e1,e2,e3,e4,e5,e6,e7 endm ARGTBL_END macro _TEXT ENDS end endm ;endif TABLE_BEGIN1 <"System Service Dispatch Table"> TABLE_BEGIN2 <"System Service Dispatch Table"> TABLE_BEGIN3 <"System Service Dispatch Table"> TABLE_BEGIN4 <"System Service Dispatch Table"> TABLE_BEGIN5 <"System Service Dispatch Table"> TABLE_BEGIN6 <"System Service Dispatch Table"> TABLE_BEGIN7 <"System Service Dispatch Table"> TABLE_BEGIN8 <"System Service Dispatch Table"> TABLE_ENTRY AcceptConnectPort, 1, 6 TABLE_ENTRY AccessCheck, 1, 8 TABLE_ENTRY AccessCheckAndAuditAlarm, 1, 11 TABLE_ENTRY AccessCheckByType, 1, 11 TABLE_ENTRY AccessCheckByTypeAndAuditAlarm, 1, 16 TABLE_ENTRY AccessCheckByTypeResultList, 1, 11 TABLE_ENTRY AccessCheckByTypeResultListAndAuditAlarm, 1, 16 TABLE_ENTRY AccessCheckByTypeResultListAndAuditAlarmByHandle, 1, 17 TABLE_ENTRY AddAtom, 1, 3 TABLE_ENTRY AddBootEntry, 1, 2 TABLE_ENTRY AddDriverEntry, 1, 2 TABLE_ENTRY AdjustGroupsToken, 1, 6 TABLE_ENTRY AdjustPrivilegesToken, 1, 6 TABLE_ENTRY AlertResumeThread, 1, 2 TABLE_ENTRY AlertThread, 1, 1 TABLE_ENTRY AllocateLocallyUniqueId, 1, 1 TABLE_ENTRY AllocateUserPhysicalPages, 1, 3 TABLE_ENTRY AllocateUuids, 1, 4 TABLE_ENTRY AllocateVirtualMemory, 1, 6 TABLE_ENTRY ApphelpCacheControl, 1, 2 TABLE_ENTRY AreMappedFilesTheSame, 1, 2 TABLE_ENTRY AssignProcessToJobObject, 1, 2 TABLE_ENTRY CallbackReturn, 1, 3 TABLE_ENTRY CancelDeviceWakeupRequest, 1, 1 TABLE_ENTRY CancelIoFile, 1, 2 TABLE_ENTRY CancelTimer, 1, 2 TABLE_ENTRY ClearEvent, 1, 1 TABLE_ENTRY Close, 1, 1 TABLE_ENTRY CloseObjectAuditAlarm, 1, 3 TABLE_ENTRY CompactKeys, 1, 2 TABLE_ENTRY CompareTokens, 1, 3 TABLE_ENTRY CompleteConnectPort, 1, 1 TABLE_ENTRY CompressKey, 1, 1 TABLE_ENTRY ConnectPort, 1, 8 TABLE_ENTRY Continue, 1, 2 TABLE_ENTRY CreateDebugObject, 1, 4 TABLE_ENTRY CreateDirectoryObject, 1, 3 TABLE_ENTRY CreateEvent, 1, 5 TABLE_ENTRY CreateEventPair, 1, 3 TABLE_ENTRY CreateFile, 1, 11 TABLE_ENTRY CreateIoCompletion, 1, 4 TABLE_ENTRY CreateJobObject, 1, 3 TABLE_ENTRY CreateJobSet, 1, 3 TABLE_ENTRY CreateKey, 1, 7 TABLE_ENTRY CreateMailslotFile, 1, 8 TABLE_ENTRY CreateMutant, 1, 4 TABLE_ENTRY CreateNamedPipeFile, 1, 14 TABLE_ENTRY CreatePagingFile, 1, 4 TABLE_ENTRY CreatePort, 1, 5 TABLE_ENTRY CreateProcess, 1, 8 TABLE_ENTRY CreateProcessEx, 1, 9 TABLE_ENTRY CreateProfile, 1, 9 TABLE_ENTRY CreateSection, 1, 7 TABLE_ENTRY CreateSemaphore, 1, 5 TABLE_ENTRY CreateSymbolicLinkObject, 1, 4 TABLE_ENTRY CreateThread, 1, 8 TABLE_ENTRY CreateTimer, 1, 4 TABLE_ENTRY CreateToken, 1, 13 TABLE_ENTRY CreateWaitablePort, 1, 5 TABLE_ENTRY DebugActiveProcess, 1, 2 TABLE_ENTRY DebugContinue, 1, 3 TABLE_ENTRY DelayExecution, 1, 2 TABLE_ENTRY DeleteAtom, 1, 1 TABLE_ENTRY DeleteBootEntry, 1, 1 TABLE_ENTRY DeleteDriverEntry, 1, 1 TABLE_ENTRY DeleteFile, 1, 1 TABLE_ENTRY DeleteKey, 1, 1 TABLE_ENTRY DeleteObjectAuditAlarm, 1, 3 TABLE_ENTRY DeleteValueKey, 1, 2 TABLE_ENTRY DeviceIoControlFile, 1, 10 TABLE_ENTRY DisplayString, 1, 1 TABLE_ENTRY DuplicateObject, 1, 7 TABLE_ENTRY DuplicateToken, 1, 6 TABLE_ENTRY EnumerateBootEntries, 1, 2 TABLE_ENTRY EnumerateDriverEntries, 1, 2 TABLE_ENTRY EnumerateKey, 1, 6 TABLE_ENTRY EnumerateSystemEnvironmentValuesEx, 1, 3 TABLE_ENTRY EnumerateValueKey, 1, 6 TABLE_ENTRY ExtendSection, 1, 2 TABLE_ENTRY FilterToken, 1, 6 TABLE_ENTRY FindAtom, 1, 3 TABLE_ENTRY FlushBuffersFile, 1, 2 TABLE_ENTRY FlushInstructionCache, 1, 3 TABLE_ENTRY FlushKey, 1, 1 TABLE_ENTRY FlushVirtualMemory, 1, 4 TABLE_ENTRY FlushWriteBuffer, 0, 0 TABLE_ENTRY FreeUserPhysicalPages, 1, 3 TABLE_ENTRY FreeVirtualMemory, 1, 4 TABLE_ENTRY FsControlFile, 1, 10 TABLE_ENTRY GetContextThread, 1, 2 TABLE_ENTRY GetDevicePowerState, 1, 2 TABLE_ENTRY GetPlugPlayEvent, 1, 4 TABLE_ENTRY GetWriteWatch, 1, 7 TABLE_ENTRY ImpersonateAnonymousToken, 1, 1 TABLE_ENTRY ImpersonateClientOfPort, 1, 2 TABLE_ENTRY ImpersonateThread, 1, 3 TABLE_ENTRY InitializeRegistry, 1, 1 TABLE_ENTRY InitiatePowerAction, 1, 4 TABLE_ENTRY IsProcessInJob, 1, 2 TABLE_ENTRY IsSystemResumeAutomatic, 0, 0 TABLE_ENTRY ListenPort, 1, 2 TABLE_ENTRY LoadDriver, 1, 1 TABLE_ENTRY LoadKey, 1, 2 TABLE_ENTRY LoadKey2, 1, 3 TABLE_ENTRY LoadKeyEx, 1, 4 TABLE_ENTRY LockFile, 1, 10 TABLE_ENTRY LockProductActivationKeys, 1, 2 TABLE_ENTRY LockRegistryKey, 1, 1 TABLE_ENTRY LockVirtualMemory, 1, 4 TABLE_ENTRY MakePermanentObject, 1, 1 TABLE_ENTRY MakeTemporaryObject, 1, 1 TABLE_ENTRY MapUserPhysicalPages, 1, 3 TABLE_ENTRY MapUserPhysicalPagesScatter, 1, 3 TABLE_ENTRY MapViewOfSection, 1, 10 TABLE_ENTRY ModifyBootEntry, 1, 1 TABLE_ENTRY ModifyDriverEntry, 1, 1 TABLE_ENTRY NotifyChangeDirectoryFile, 1, 9 TABLE_ENTRY NotifyChangeKey, 1, 10 TABLE_ENTRY NotifyChangeMultipleKeys, 1, 12 TABLE_ENTRY OpenDirectoryObject, 1, 3 TABLE_ENTRY OpenEvent, 1, 3 TABLE_ENTRY OpenEventPair, 1, 3 TABLE_ENTRY OpenFile, 1, 6 TABLE_ENTRY OpenIoCompletion, 1, 3 TABLE_ENTRY OpenJobObject, 1, 3 TABLE_ENTRY OpenKey, 1, 3 TABLE_ENTRY OpenMutant, 1, 3 TABLE_ENTRY OpenObjectAuditAlarm, 1, 12 TABLE_ENTRY OpenProcess, 1, 4 TABLE_ENTRY OpenProcessToken, 1, 3 TABLE_ENTRY OpenProcessTokenEx, 1, 4 TABLE_ENTRY OpenSection, 1, 3 TABLE_ENTRY OpenSemaphore, 1, 3 TABLE_ENTRY OpenSymbolicLinkObject, 1, 3 TABLE_ENTRY OpenThread, 1, 4 TABLE_ENTRY OpenThreadToken, 1, 4 TABLE_ENTRY OpenThreadTokenEx, 1, 5 TABLE_ENTRY OpenTimer, 1, 3 TABLE_ENTRY PlugPlayControl, 1, 3 TABLE_ENTRY PowerInformation, 1, 5 TABLE_ENTRY PrivilegeCheck, 1, 3 TABLE_ENTRY PrivilegeObjectAuditAlarm, 1, 6 TABLE_ENTRY PrivilegedServiceAuditAlarm, 1, 5 TABLE_ENTRY ProtectVirtualMemory, 1, 5 TABLE_ENTRY PulseEvent, 1, 2 TABLE_ENTRY QueryAttributesFile, 1, 2 TABLE_ENTRY QueryBootEntryOrder, 1, 2 TABLE_ENTRY QueryBootOptions, 1, 2 TABLE_ENTRY QueryDebugFilterState, 1, 2 TABLE_ENTRY QueryDefaultLocale, 1, 2 TABLE_ENTRY QueryDefaultUILanguage, 1, 1 TABLE_ENTRY QueryDirectoryFile, 1, 11 TABLE_ENTRY QueryDirectoryObject, 1, 7 TABLE_ENTRY QueryDriverEntryOrder, 1, 2 TABLE_ENTRY QueryEaFile, 1, 9 TABLE_ENTRY QueryEvent, 1, 5 TABLE_ENTRY QueryFullAttributesFile, 1, 2 TABLE_ENTRY QueryInformationAtom, 1, 5 TABLE_ENTRY QueryInformationFile, 1, 5 TABLE_ENTRY QueryInformationJobObject, 1, 5 TABLE_ENTRY QueryInformationPort, 1, 5 TABLE_ENTRY QueryInformationProcess, 1, 5 TABLE_ENTRY QueryInformationThread, 1, 5 TABLE_ENTRY QueryInformationToken, 1, 5 TABLE_ENTRY QueryInstallUILanguage, 1, 1 TABLE_ENTRY QueryIntervalProfile, 1, 2 TABLE_ENTRY QueryIoCompletion, 1, 5 TABLE_ENTRY QueryKey, 1, 5 TABLE_ENTRY QueryMultipleValueKey, 1, 6 TABLE_ENTRY QueryMutant, 1, 5 TABLE_ENTRY QueryObject, 1, 5 TABLE_ENTRY QueryOpenSubKeys, 1, 2 TABLE_ENTRY QueryOpenSubKeysEx, 1, 4 TABLE_ENTRY QueryPerformanceCounter, 1, 2 TABLE_ENTRY QueryQuotaInformationFile, 1, 9 TABLE_ENTRY QuerySection, 1, 5 TABLE_ENTRY QuerySecurityObject, 1, 5 TABLE_ENTRY QuerySemaphore, 1, 5 TABLE_ENTRY QuerySymbolicLinkObject, 1, 3 TABLE_ENTRY QuerySystemEnvironmentValue, 1, 4 TABLE_ENTRY QuerySystemEnvironmentValueEx, 1, 5 TABLE_ENTRY QuerySystemInformation, 1, 4 TABLE_ENTRY QuerySystemTime, 1, 1 TABLE_ENTRY QueryTimer, 1, 5 TABLE_ENTRY QueryTimerResolution, 1, 3 TABLE_ENTRY QueryValueKey, 1, 6 TABLE_ENTRY QueryVirtualMemory, 1, 6 TABLE_ENTRY QueryVolumeInformationFile, 1, 5 TABLE_ENTRY QueueApcThread, 1, 5 TABLE_ENTRY RaiseException, 1, 3 TABLE_ENTRY RaiseHardError, 1, 6 TABLE_ENTRY ReadFile, 1, 9 TABLE_ENTRY ReadFileScatter, 1, 9 TABLE_ENTRY ReadRequestData, 1, 6 TABLE_ENTRY ReadVirtualMemory, 1, 5 TABLE_ENTRY RegisterThreadTerminatePort, 1, 1 TABLE_ENTRY ReleaseMutant, 1, 2 TABLE_ENTRY ReleaseSemaphore, 1, 3 TABLE_ENTRY RemoveIoCompletion, 1, 5 TABLE_ENTRY RemoveProcessDebug, 1, 2 TABLE_ENTRY RenameKey, 1, 2 TABLE_ENTRY ReplaceKey, 1, 3 TABLE_ENTRY ReplyPort, 1, 2 TABLE_ENTRY ReplyWaitReceivePort, 1, 4 TABLE_ENTRY ReplyWaitReceivePortEx, 1, 5 TABLE_ENTRY ReplyWaitReplyPort, 1, 2 TABLE_ENTRY RequestDeviceWakeup, 1, 1 TABLE_ENTRY RequestPort, 1, 2 TABLE_ENTRY RequestWaitReplyPort, 1, 3 TABLE_ENTRY RequestWakeupLatency, 1, 1 TABLE_ENTRY ResetEvent, 1, 2 TABLE_ENTRY ResetWriteWatch, 1, 3 TABLE_ENTRY RestoreKey, 1, 3 TABLE_ENTRY ResumeProcess, 1, 1 TABLE_ENTRY ResumeThread, 1, 2 TABLE_ENTRY SaveKey, 1, 2 TABLE_ENTRY SaveKeyEx, 1, 3 TABLE_ENTRY SaveMergedKeys, 1, 3 TABLE_ENTRY SecureConnectPort, 1, 9 TABLE_ENTRY SetBootEntryOrder, 1, 2 TABLE_ENTRY SetBootOptions, 1, 2 TABLE_ENTRY SetContextThread, 1, 2 TABLE_ENTRY SetDebugFilterState, 1, 3 TABLE_ENTRY SetDefaultHardErrorPort, 1, 1 TABLE_ENTRY SetDefaultLocale, 1, 2 TABLE_ENTRY SetDefaultUILanguage, 1, 1 TABLE_ENTRY SetDriverEntryOrder, 1, 2 TABLE_ENTRY SetEaFile, 1, 4 TABLE_ENTRY SetEvent, 1, 2 TABLE_ENTRY SetEventBoostPriority, 1, 1 TABLE_ENTRY SetHighEventPair, 1, 1 TABLE_ENTRY SetHighWaitLowEventPair, 1, 1 TABLE_ENTRY SetInformationDebugObject, 1, 5 TABLE_ENTRY SetInformationFile, 1, 5 TABLE_ENTRY SetInformationJobObject, 1, 4 TABLE_ENTRY SetInformationKey, 1, 4 TABLE_ENTRY SetInformationObject, 1, 4 TABLE_ENTRY SetInformationProcess, 1, 4 TABLE_ENTRY SetInformationThread, 1, 4 TABLE_ENTRY SetInformationToken, 1, 4 TABLE_ENTRY SetIntervalProfile, 1, 2 TABLE_ENTRY SetIoCompletion, 1, 5 TABLE_ENTRY SetLdtEntries, 1, 6 TABLE_ENTRY SetLowEventPair, 1, 1 TABLE_ENTRY SetLowWaitHighEventPair, 1, 1 TABLE_ENTRY SetQuotaInformationFile, 1, 4 TABLE_ENTRY SetSecurityObject, 1, 3 TABLE_ENTRY SetSystemEnvironmentValue, 1, 2 TABLE_ENTRY SetSystemEnvironmentValueEx, 1, 5 TABLE_ENTRY SetSystemInformation, 1, 3 TABLE_ENTRY SetSystemPowerState, 1, 3 TABLE_ENTRY SetSystemTime, 1, 2 TABLE_ENTRY SetThreadExecutionState, 1, 2 TABLE_ENTRY SetTimer, 1, 7 TABLE_ENTRY SetTimerResolution, 1, 3 TABLE_ENTRY SetUuidSeed, 1, 1 TABLE_ENTRY SetValueKey, 1, 6 TABLE_ENTRY SetVolumeInformationFile, 1, 5 TABLE_ENTRY ShutdownSystem, 1, 1 TABLE_ENTRY SignalAndWaitForSingleObject, 1, 4 TABLE_ENTRY StartProfile, 1, 1 TABLE_ENTRY StopProfile, 1, 1 TABLE_ENTRY SuspendProcess, 1, 1 TABLE_ENTRY SuspendThread, 1, 2 TABLE_ENTRY SystemDebugControl, 1, 6 TABLE_ENTRY TerminateJobObject, 1, 2 TABLE_ENTRY TerminateProcess, 1, 2 TABLE_ENTRY TerminateThread, 1, 2 TABLE_ENTRY TestAlert, 0, 0 TABLE_ENTRY TraceEvent, 1, 4 TABLE_ENTRY TranslateFilePath, 1, 4 TABLE_ENTRY UnloadDriver, 1, 1 TABLE_ENTRY UnloadKey, 1, 1 TABLE_ENTRY UnloadKey2, 1, 2 TABLE_ENTRY UnloadKeyEx, 1, 2 TABLE_ENTRY UnlockFile, 1, 5 TABLE_ENTRY UnlockVirtualMemory, 1, 4 TABLE_ENTRY UnmapViewOfSection, 1, 2 TABLE_ENTRY VdmControl, 1, 2 TABLE_ENTRY WaitForDebugEvent, 1, 4 TABLE_ENTRY WaitForMultipleObjects, 1, 5 TABLE_ENTRY WaitForSingleObject, 1, 3 TABLE_ENTRY WaitHighEventPair, 1, 1 TABLE_ENTRY WaitLowEventPair, 1, 1 TABLE_ENTRY WriteFile, 1, 9 TABLE_ENTRY WriteFileGather, 1, 9 TABLE_ENTRY WriteRequestData, 1, 6 TABLE_ENTRY WriteVirtualMemory, 1, 5 TABLE_ENTRY YieldExecution, 0, 0 TABLE_ENTRY CreateKeyedEvent, 1, 4 TABLE_ENTRY OpenKeyedEvent, 1, 3 TABLE_ENTRY ReleaseKeyedEvent, 1, 4 TABLE_ENTRY WaitForKeyedEvent, 1, 4 TABLE_ENTRY QueryPortInformationProcess, 0, 0 TABLE_ENTRY GetCurrentProcessorNumber, 0, 0 TABLE_ENTRY WaitForMultipleObjects32, 1, 5 TABLE_END 295 ARGTBL_BEGIN ARGTBL_ENTRY 24,32,44,44,64,44,64,68 ARGTBL_ENTRY 12,8,8,24,24,8,4,4 ARGTBL_ENTRY 12,16,24,8,8,8,12,4 ARGTBL_ENTRY 8,8,4,4,12,8,12,4 ARGTBL_ENTRY 4,32,8,16,12,20,12,44 ARGTBL_ENTRY 16,12,12,28,32,16,56,16 ARGTBL_ENTRY 20,32,36,36,28,20,16,32 ARGTBL_ENTRY 16,52,20,8,12,8,4,4 ARGTBL_ENTRY 4,4,4,12,8,40,4,28 ARGTBL_ENTRY 24,8,8,24,12,24,8,24 ARGTBL_ENTRY 12,8,12,4,16,0,12,16 ARGTBL_ENTRY 40,8,8,16,28,4,8,12 ARGTBL_ENTRY 4,16,8,0,8,4,8,12 ARGTBL_ENTRY 16,40,8,4,16,4,4,12 ARGTBL_ENTRY 12,40,4,4,36,40,48,12 ARGTBL_ENTRY 12,12,24,12,12,12,12,48 ARGTBL_ENTRY 16,12,16,12,12,12,16,16 ARGTBL_ENTRY 20,12,12,20,12,24,20,20 ARGTBL_ENTRY 8,8,8,8,8,8,4,44 ARGTBL_ENTRY 28,8,36,20,8,20,20,20 ARGTBL_ENTRY 20,20,20,20,4,8,20,20 ARGTBL_ENTRY 24,20,20,8,16,8,36,20 ARGTBL_ENTRY 20,20,12,16,20,16,4,20 ARGTBL_ENTRY 12,24,24,20,20,12,24,36 ARGTBL_ENTRY 36,24,20,4,8,12,20,8 ARGTBL_ENTRY 8,12,8,16,20,8,4,8 ARGTBL_ENTRY 12,4,8,12,12,4,8,8 ARGTBL_ENTRY 12,12,36,8,8,8,12,4 ARGTBL_ENTRY 8,4,8,16,8,4,4,4 ARGTBL_ENTRY 20,20,16,16,16,16,16,16 ARGTBL_ENTRY 8,20,24,4,4,16,12,8 ARGTBL_ENTRY 20,12,12,8,8,28,12,4 ARGTBL_ENTRY 24,20,4,16,4,4,4,8 ARGTBL_ENTRY 24,8,8,8,0,16,16,4 ARGTBL_ENTRY 4,8,8,20,16,8,8,16 ARGTBL_ENTRY 20,12,4,4,36,36,24,20 ARGTBL_ENTRY 0,16,12,16,16,0,0,20 ARGTBL_END
14,537
Assembly
asm
33.418391
134
0.771617
f71105aae325db36f1f7d8deda35671f18435bcd
yang235/wrk-v1.2
[ "Intel" ]
209
!: lda {c2},y sta {c1},y iny dex bne !-
39
Assembly
asm
6.5
10
0.538462
f7115574fb6612d4c468b1cdfa3397efcbdb20f7
jbrandwood/kickc
[ "MIT" ]
2
; ; Copyright (c) 2014 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "third_party/x86inc/x86inc.asm" SECTION .text %macro TRANSFORM_COLS 0 paddw m0, m1 movq m4, m0 psubw m3, m2 psubw m4, m3 psraw m4, 1 movq m5, m4 psubw m5, m1 ;b1 psubw m4, m2 ;c1 psubw m0, m4 paddw m3, m5 ; m0 a0 SWAP 1, 4 ; m1 c1 SWAP 2, 3 ; m2 d1 SWAP 3, 5 ; m3 b1 %endmacro %macro TRANSPOSE_4X4 0 movq m4, m0 movq m5, m2 punpcklwd m4, m1 punpckhwd m0, m1 punpcklwd m5, m3 punpckhwd m2, m3 movq m1, m4 movq m3, m0 punpckldq m1, m5 punpckhdq m4, m5 punpckldq m3, m2 punpckhdq m0, m2 SWAP 2, 3, 0, 1, 4 %endmacro INIT_MMX mmx cglobal fwht4x4, 3, 4, 8, input, output, stride lea r3q, [inputq + strideq*4] movq m0, [inputq] ;a1 movq m1, [inputq + strideq*2] ;b1 movq m2, [r3q] ;c1 movq m3, [r3q + strideq*2] ;d1 TRANSFORM_COLS TRANSPOSE_4X4 TRANSFORM_COLS TRANSPOSE_4X4 psllw m0, 2 psllw m1, 2 psllw m2, 2 psllw m3, 2 movq [outputq], m0 movq [outputq + 8], m1 movq [outputq + 16], m2 movq [outputq + 24], m3 RET
2,075
Assembly
asm
29.225352
70
0.456386
f71181c5e91ae26385d4775980fdc6982f0a9db7
ittiamvpx/libvpx
[ "BSD-3-Clause" ]
14