repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
DrSHW/notes
621
书籍/Go语言高级编程/examples/ch3.x/binary_search/binary_search_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ TEXT ·BinarySearch+0(SB),$0 start: MOVQ arr+0(FP), CX MOVQ len+8(FP), AX JMP find_index find_index: XORQ DX, DX MOVQ $2, BX IDIVQ BX JMP comp comp: LEAQ (AX * 8), BX ADDQ BX, CX MOVQ num+24(FP), DX CMPQ DX, (CX) JE found JG right JL left JMP not_found left: CMPQ len+8(FP), $1 JE not_found MOVQ AX, len+8(FP) JMP start right: CMPQ len+8(FP), $1 JE not_found MOVQ CX, arr+0(FP) JMP start not_found: MOVQ $0, ret+32(FP) RET found: MOVQ $1, ret+32(FP) RET
DrSHW/notes
481
书籍/Go语言高级编程/examples/ch3.x/vector/vector_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ TEXT ·Find+0(SB),$0 MOVQ $0, SI // zero the iterator MOVQ vec+0(FP), BX // BX = &vec[0] MOVQ vec+8(FP), CX // len(vec) MOVQ num+24(FP), DX start: CMPQ SI, CX JG notfound CMPQ (BX), DX JNE notequal JE found found: MOVQ $1, return+32(FP) RET notequal: INCQ SI LEAQ +8(BX), BX JMP start notfound: MOVQ $0, return+32(FP) RET
DrSHW/notes
337
书籍/Go语言高级编程/examples/ch3.x/vector/sum_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ TEXT ·SumVec+0(SB), $0 MOVQ vec1+0(FP), BX // Move the first vector into BX MOVQ vec2+24(FP), CX // Move the second vector into BX MOVUPS (BX), X0 MOVUPS (CX), X1 ADDPS X0, X1 MOVUPS X1, result+48(FP) RET
DrSHW/notes
690
书籍/Go语言高级编程/examples/ch3.x/min/min_asm_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func AsmMin(a, b int) int TEXT ·AsmMin(SB), NOSPLIT, $0-24 MOVQ a+0(FP), AX // a MOVQ b+8(FP), BX // b CMPQ AX, BX // compare a, b JGT 3(PC) // if a>b, skip 2 line MOVQ AX, ret+16(FP) // return a RET MOVQ BX, ret+16(FP) // return b RET // func AsmMax(a, b int) int TEXT ·AsmMax(SB), NOSPLIT, $0-24 MOVQ a+0(FP), AX // a MOVQ b+8(FP), BX // b CMPQ AX, BX // compare a, b JLT 3(PC) // if a<b, skip 2 line MOVQ AX, ret+16(FP) // return a RET MOVQ BX, ret+16(FP) // return b RET
DrSHW/notes
1,225
书籍/Go语言高级编程/examples/ch3.x/hello/hello_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" #include "funcdata.h" // "Hello World!\n" DATA text<>+0(SB)/8,$"Hello Wo" DATA text<>+8(SB)/8,$"rld!\n" GLOBL text<>(SB),NOPTR,$16 // utf8: "你好, 世界!\n" // hex: e4bda0e5a5bd2c20 e4b896e7958c210a // len: 16 DATA text_zh<>+0(SB)/8,$"\xe4\xbd\xa0\xe5\xa5\xbd\x2c\x20" DATA text_zh<>+8(SB)/8,$"\xe4\xb8\x96\xe7\x95\x8c\x21\x0a" GLOBL text_zh<>(SB),NOPTR,$16 // func PrintHelloWorld_var() TEXT ·PrintHelloWorld_var(SB), $16-0 NO_LOCAL_POINTERS CALL runtime·printlock(SB) MOVQ ·text+0(SB), AX MOVQ AX, (SP) MOVQ ·text+8(SB), AX MOVQ AX, 8(SP) CALL runtime·printstring(SB) CALL runtime·printunlock(SB) RET // func PrintHelloWorld() TEXT ·PrintHelloWorld(SB), $16-0 NO_LOCAL_POINTERS CALL runtime·printlock(SB) MOVQ $text<>+0(SB), AX MOVQ AX, (SP) MOVQ $16, 8(SP) CALL runtime·printstring(SB) CALL runtime·printunlock(SB) RET // func PrintHelloWorld_zh() TEXT ·PrintHelloWorld_zh(SB), $16-0 NO_LOCAL_POINTERS CALL runtime·printlock(SB) MOVQ $text_zh<>+0(SB), AX MOVQ AX, (SP) MOVQ $16, 8(SP) CALL runtime·printstring(SB) CALL runtime·printunlock(SB) RET
DrSHW/notes
664
书籍/Go语言高级编程/examples/ch3.x/add/add_asm_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func AsmAdd(a, b int) int TEXT ·AsmAdd(SB), NOSPLIT, $0-24 MOVQ a+0(FP), AX // a MOVQ b+8(FP), BX // b ADDQ AX, BX // a+b MOVQ BX, ret+16(FP) // return a+b RET // func AsmAddSlice(dst, a, b []int) TEXT ·AsmAddSlice__todo(SB), NOSPLIT, $0-72 MOVQ dst+0(FP), AX // AX: dst MOVQ a+24(FP), BX // BX: &a MOVQ b+48(FP), CX // CX: &b MOVQ dst_len+8(FP), DX // DX: len(dst) MOVQ a_len+32(FP), R8 // R8: len(a) MOVQ b_len+56(FP), R9 // R9: len(b) // TODO: DX = min(DX,R8,R9) RET
DrSHW/notes
931
书籍/Go语言高级编程/examples/ch3.x/ifelse/ifelse_ams_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // // https://github.com/golang/go/issues/14288 // // from rsc: // But expanding what I said yesterday just a bit: // never use MOVB or MOVW with a register destination, // since it's inefficient (it's a read-modify-write on the target register). // Instead use MOVL for reg->reg and use MOVBLZX or MOVWLZX for mem->reg; // those are pure writes on the target register. // // 因此, 加载bool型参数到寄存器时, 建议使用 MOVBLZX. // 如果使用 MOVB 的话, go test 虽然通过了, // 但是 go run runme.go 则出现错误结果. // // func AsmIf(ok bool, a, b int) int TEXT ·AsmIf(SB), NOSPLIT, $0-32 MOVBQZX ok+0(FP), AX // ok MOVQ a+8(FP), BX // a MOVQ b+16(FP), CX // b CMPQ AX, $0 // test ok JEQ 3(PC) // if !ok, skip 2 line MOVQ BX, ret+24(FP) // return a RET MOVQ CX, ret+24(FP) // return b RET
DrSHW/notes
507
书籍/Go语言高级编程/examples/ch3.x/loop/loop_asm_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func AsmLoopAdd(cnt, v0, step int) int TEXT ·AsmLoopAdd(SB), NOSPLIT, $0-32 MOVQ cnt+0(FP), AX // cnt MOVQ v0+8(FP), BX // v0 MOVQ step+16(FP), CX // step loop: CMPQ AX, $0 // compare cnt,0 JLE end // if cnt <= 0: go end DECQ AX // cnt-- ADDQ CX, BX // v0 += step JMP loop // goto loop end: MOVQ BX, ret+24(FP) // return v0 RET
DrSHW/notes
889
书籍/Go语言高级编程/examples/ch3.x/instr/instr_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func Add2(n, m int64) int32 TEXT ·Add2(SB), NOSPLIT, $0-24 MOVQ n+0(FP), AX MOVQ m+8(FP), BX ADDQ AX, BX MOVQ BX, ret+16(FP) RET // func BSF(n int64) int TEXT ·BSF(SB), NOSPLIT, $0 BSFQ n+0(FP), AX JEQ allZero MOVQ AX, ret+8(FP) RET allZero: MOVQ $-1, ret+8(FP) RET // func BSF32(n int32) int32 TEXT ·BSF32(SB), NOSPLIT, $0 BSFL n+0(FP), AX JEQ allZero32 MOVL AX, ret+8(FP) RET allZero32: MOVL $-1, ret+8(FP) RET // func Sum2(s []int64) int64 TEXT ·Sum2(SB), NOSPLIT, $0 MOVQ $0, DX MOVQ s_base+0(FP), AX MOVQ s_len+8(FP), DI MOVQ $0, CX CMPQ CX, DI JGE Sum2End Sum2Loop: MOVQ (AX), BP ADDQ BP, DX ADDQ $8, AX INCQ CX CMPQ CX, DI JL Sum2Loop Sum2End: MOVQ DX, ret+24(FP) RET // vim: set ft=txt:
DrSHW/notes
743
书籍/Go语言高级编程/examples/ch3.x/globalvar/asm_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func GetPkgValue() int TEXT ·GetPkgValue(SB), NOSPLIT, $0-8 MOVQ ·gopkgValue(SB), AX MOVQ AX, ret+0(FP) RET // func GetPkgInfo() PkgInfo TEXT ·GetPkgInfo(SB), NOSPLIT, $0-24 MOVBLZX ·gInfo+0(SB), AX // .V0 byte MOVQ AX, ret+0(FP) MOVWLZX ·gInfo+2(SB), AX // .V1 uint16 MOVQ AX, ret+2(FP) MOVLQZX ·gInfo+4(SB), AX // .V2 int32 MOVQ AX, ret+4(FP) MOVQ ·gInfo+8(SB), AX // .V3 int32 MOVQ AX, ret+8(FP) MOVBLZX ·gInfo+(16+0)(SB), AX // .V4 bool MOVQ AX, ret+(16+0)(FP) MOVBLZX ·gInfo+(16+1)(SB), AX // .V5 bool MOVQ AX, ret+(16+1)(FP) RET
DrSHW/notes
1,252
书籍/Go语言高级编程/examples/ch3.x/slice/slice_asm_amd64.s
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>. // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ #include "textflag.h" // func AsmSumInt16Slice(v []int16) int16 TEXT ·AsmSumInt16Slice(SB), NOSPLIT, $0-26 MOVQ v_base+0(FP), R8 MOVQ v_len+8(FP), R9 SHLQ $1, R9 ADDQ R8, R9 MOVQ $0, R10 loop: CMPQ R8, R9 JE end ADDW (R8), R10 ADDQ $2, R8 JMP loop end: MOVW R10, ret+24(FP) RET // func AsmSumIntSlice(s []int) int TEXT ·AsmSumIntSlice(SB), NOSPLIT, $0-32 MOVQ s+0(FP), AX // &s[0] MOVQ s_len+8(FP), BX // len(s) MOVQ $0, CX // sum = 0 loop: CMPQ BX, $0 // compare cnt,0 JLE end // if cnt <= 0: goto end DECQ BX // cnt-- ADDQ (AX), CX // sum += s[i] ADDQ $8, AX // i++ JMP loop // goto loop end: MOVQ CX, ret+24(FP) // return sum RET // func AsmSumIntSliceV2(s []int) int TEXT ·AsmSumIntSliceV2(SB), NOSPLIT, $0-32 MOVQ s+0(FP), AX // p := &s[0] MOVQ s_len+8(FP), BX LEAQ 0(AX)(BX*8), BX // p_end := &s[len(s)] MOVQ $0, CX // sum = 0 loop: CMPQ AX, BX // compare p,p_end JGE end // if p >= p_end: goto end ADDQ (AX), CX // sum += s[i] ADDQ $8, AX // p++ JMP loop // goto loop end: MOVQ CX, ret+24(FP) // return sum RET
duongphannamhung/cool-compiler
5,447
examples/hello_world.s
.data .align 2 .globl class_nameTab .globl Main_protObj .globl Int_protObj .globl String_protObj .globl bool_const0 .globl bool_const1 .globl _int_tag .globl _bool_tag .globl _string_tag _int_tag: .word 3 _bool_tag: .word 4 _string_tag: .word 5 .globl _MemMgr_INITIALIZER _MemMgr_INITIALIZER: .word _NoGC_Init .globl _MemMgr_COLLECTOR _MemMgr_COLLECTOR: .word _NoGC_Collect .globl _MemMgr_TEST _MemMgr_TEST: .word 0 .word -1 str_const9: .word 5 .word 5 .word String_dispTab .word int_const0 .byte 0 .align 2 .word -1 str_const8: .word 5 .word 6 .word String_dispTab .word int_const1 .ascii "String" .byte 0 .align 2 .word -1 str_const7: .word 5 .word 6 .word String_dispTab .word int_const2 .ascii "Bool" .byte 0 .align 2 .word -1 str_const6: .word 5 .word 5 .word String_dispTab .word int_const3 .ascii "Int" .byte 0 .align 2 .word -1 str_const5: .word 5 .word 6 .word String_dispTab .word int_const2 .ascii "Main" .byte 0 .align 2 .word -1 str_const4: .word 5 .word 5 .word String_dispTab .word int_const4 .ascii "IO" .byte 0 .align 2 .word -1 str_const3: .word 5 .word 6 .word String_dispTab .word int_const1 .ascii "Object" .byte 0 .align 2 .word -1 str_const2: .word 5 .word 8 .word String_dispTab .word int_const5 .ascii "<basic class>" .byte 0 .align 2 .word -1 str_const1: .word 5 .word 8 .word String_dispTab .word int_const6 .ascii "hello_world.cl" .byte 0 .align 2 .word -1 str_const0: .word 5 .word 8 .word String_dispTab .word int_const6 .ascii "Hello, World.\n" .byte 0 .align 2 .word -1 int_const6: .word 3 .word 4 .word Int_dispTab .word 14 .word -1 int_const5: .word 3 .word 4 .word Int_dispTab .word 13 .word -1 int_const4: .word 3 .word 4 .word Int_dispTab .word 2 .word -1 int_const3: .word 3 .word 4 .word Int_dispTab .word 3 .word -1 int_const2: .word 3 .word 4 .word Int_dispTab .word 4 .word -1 int_const1: .word 3 .word 4 .word Int_dispTab .word 6 .word -1 int_const0: .word 3 .word 4 .word Int_dispTab .word 0 .word -1 bool_const0: .word 4 .word 4 .word Bool_dispTab .word 0 .word -1 bool_const1: .word 4 .word 4 .word Bool_dispTab .word 1 class_nameTab: .word str_const3 .word str_const4 .word str_const5 .word str_const6 .word str_const7 .word str_const8 class_objTab: .word Object_protObj .word Object_init .word IO_protObj .word IO_init .word Main_protObj .word Main_init .word Int_protObj .word Int_init .word Bool_protObj .word Bool_init .word String_protObj .word String_init Object_dispTab: .word Object.abort .word Object.type_name .word Object.copy String_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word String.length .word String.concat .word String.substr Bool_dispTab: .word Object.abort .word Object.type_name .word Object.copy Int_dispTab: .word Object.abort .word Object.type_name .word Object.copy IO_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word IO.out_string .word IO.out_int .word IO.in_string .word IO.in_int Main_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word IO.out_string .word IO.out_int .word IO.in_string .word IO.in_int .word Main.main .word -1 Object_protObj: .word 0 .word 3 .word Object_dispTab .word -1 String_protObj: .word 5 .word 5 .word String_dispTab .word int_const0 .word 0 .word -1 Bool_protObj: .word 4 .word 4 .word Bool_dispTab .word 0 .word -1 Int_protObj: .word 3 .word 4 .word Int_dispTab .word 0 .word -1 IO_protObj: .word 1 .word 3 .word IO_dispTab .word -1 Main_protObj: .word 2 .word 3 .word Main_dispTab .globl heap_start heap_start: .word 0 .text .globl Main_init .globl Int_init .globl String_init .globl Bool_init .globl Main.main Object_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra String_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Bool_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Int_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra IO_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Main_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal IO_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Main.main: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 la $a0 str_const0 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label0 la $a0 str_const1 li $t1 3 jal _dispatch_abort label0: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra
duongphannamhung/cool-compiler
31,638
assignments/PA1/stack.s
.data .align 2 .globl class_nameTab .globl Main_protObj .globl Int_protObj .globl String_protObj .globl bool_const0 .globl bool_const1 .globl _int_tag .globl _bool_tag .globl _string_tag _int_tag: .word 4 _bool_tag: .word 5 _string_tag: .word 6 .globl _MemMgr_INITIALIZER _MemMgr_INITIALIZER: .word _NoGC_Init .globl _MemMgr_COLLECTOR _MemMgr_COLLECTOR: .word _NoGC_Collect .globl _MemMgr_TEST _MemMgr_TEST: .word 0 .word -1 str_const33: .word 6 .word 5 .word String_dispTab .word int_const3 .ascii "A2I" .byte 0 .align 2 .word -1 str_const32: .word 6 .word 6 .word String_dispTab .word int_const6 .ascii "String" .byte 0 .align 2 .word -1 str_const31: .word 6 .word 6 .word String_dispTab .word int_const4 .ascii "Bool" .byte 0 .align 2 .word -1 str_const30: .word 6 .word 5 .word String_dispTab .word int_const3 .ascii "Int" .byte 0 .align 2 .word -1 str_const29: .word 6 .word 6 .word String_dispTab .word int_const5 .ascii "Stack" .byte 0 .align 2 .word -1 str_const28: .word 6 .word 6 .word String_dispTab .word int_const4 .ascii "Main" .byte 0 .align 2 .word -1 str_const27: .word 6 .word 5 .word String_dispTab .word int_const1 .ascii "IO" .byte 0 .align 2 .word -1 str_const26: .word 6 .word 6 .word String_dispTab .word int_const6 .ascii "Object" .byte 0 .align 2 .word -1 str_const25: .word 6 .word 8 .word String_dispTab .word int_const11 .ascii "<basic class>" .byte 0 .align 2 .word -1 str_const24: .word 6 .word 6 .word String_dispTab .word int_const7 .ascii "atoi.cl" .byte 0 .align 2 .word -1 str_const23: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "-" .byte 0 .align 2 .word -1 str_const22: .word 6 .word 5 .word String_dispTab .word int_const0 .byte 0 .align 2 .word -1 str_const21: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "9" .byte 0 .align 2 .word -1 str_const20: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "8" .byte 0 .align 2 .word -1 str_const19: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "7" .byte 0 .align 2 .word -1 str_const18: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "6" .byte 0 .align 2 .word -1 str_const17: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "5" .byte 0 .align 2 .word -1 str_const16: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "4" .byte 0 .align 2 .word -1 str_const15: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "3" .byte 0 .align 2 .word -1 str_const14: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "2" .byte 0 .align 2 .word -1 str_const13: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "1" .byte 0 .align 2 .word -1 str_const12: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "0" .byte 0 .align 2 .word -1 str_const11: .word 6 .word 7 .word String_dispTab .word int_const8 .ascii "stack.cl" .byte 0 .align 2 .word -1 str_const10: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "\n" .byte 0 .align 2 .word -1 str_const9: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "d" .byte 0 .align 2 .word -1 str_const8: .word 6 .word 8 .word String_dispTab .word int_const12 .ascii "Nothing to pop\n" .byte 0 .align 2 .word -1 str_const7: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "s" .byte 0 .align 2 .word -1 str_const6: .word 6 .word 17 .word String_dispTab .word int_const13 .ascii "\nImproper Stack .Not enough integers\nAborting ...\n" .byte 0 .align 2 .word -1 str_const5: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "+" .byte 0 .align 2 .word -1 str_const4: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "e" .byte 0 .align 2 .word -1 str_const3: .word 6 .word 9 .word String_dispTab .word int_const14 .ascii "\nTerminating ....\n" .byte 0 .align 2 .word -1 str_const2: .word 6 .word 5 .word String_dispTab .word int_const2 .ascii "x" .byte 0 .align 2 .word -1 str_const1: .word 6 .word 5 .word String_dispTab .word int_const1 .ascii "> " .byte 0 .align 2 .word -1 str_const0: .word 6 .word 16 .word String_dispTab .word int_const15 .ascii "Commands available\n1.<int>\n2.+\n3.s\n4.e\n5.d\n6.x\n" .byte 0 .align 2 .word -1 int_const15: .word 4 .word 4 .word Int_dispTab .word 47 .word -1 int_const14: .word 4 .word 4 .word Int_dispTab .word 18 .word -1 int_const13: .word 4 .word 4 .word Int_dispTab .word 50 .word -1 int_const12: .word 4 .word 4 .word Int_dispTab .word 15 .word -1 int_const11: .word 4 .word 4 .word Int_dispTab .word 13 .word -1 int_const10: .word 4 .word 4 .word Int_dispTab .word 10 .word -1 int_const9: .word 4 .word 4 .word Int_dispTab .word 9 .word -1 int_const8: .word 4 .word 4 .word Int_dispTab .word 8 .word -1 int_const7: .word 4 .word 4 .word Int_dispTab .word 7 .word -1 int_const6: .word 4 .word 4 .word Int_dispTab .word 6 .word -1 int_const5: .word 4 .word 4 .word Int_dispTab .word 5 .word -1 int_const4: .word 4 .word 4 .word Int_dispTab .word 4 .word -1 int_const3: .word 4 .word 4 .word Int_dispTab .word 3 .word -1 int_const2: .word 4 .word 4 .word Int_dispTab .word 1 .word -1 int_const1: .word 4 .word 4 .word Int_dispTab .word 2 .word -1 int_const0: .word 4 .word 4 .word Int_dispTab .word 0 .word -1 bool_const0: .word 5 .word 4 .word Bool_dispTab .word 0 .word -1 bool_const1: .word 5 .word 4 .word Bool_dispTab .word 1 class_nameTab: .word str_const26 .word str_const27 .word str_const28 .word str_const29 .word str_const30 .word str_const31 .word str_const32 .word str_const33 class_objTab: .word Object_protObj .word Object_init .word IO_protObj .word IO_init .word Main_protObj .word Main_init .word Stack_protObj .word Stack_init .word Int_protObj .word Int_init .word Bool_protObj .word Bool_init .word String_protObj .word String_init .word A2I_protObj .word A2I_init Object_dispTab: .word Object.abort .word Object.type_name .word Object.copy A2I_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word A2I.c2i .word A2I.i2c .word A2I.a2i .word A2I.a2i_aux .word A2I.i2a .word A2I.i2a_aux String_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word String.length .word String.concat .word String.substr Bool_dispTab: .word Object.abort .word Object.type_name .word Object.copy Int_dispTab: .word Object.abort .word Object.type_name .word Object.copy IO_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word IO.out_string .word IO.out_int .word IO.in_string .word IO.in_int Stack_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word IO.out_string .word IO.out_int .word IO.in_string .word IO.in_int .word Stack.init .word Stack.addNext .word Stack.getValue .word Stack.getNext Main_dispTab: .word Object.abort .word Object.type_name .word Object.copy .word IO.out_string .word IO.out_int .word IO.in_string .word IO.in_int .word Main.main .word Main.pushStack .word Main.popStack .word Main.printStack .word -1 Object_protObj: .word 0 .word 3 .word Object_dispTab .word -1 A2I_protObj: .word 7 .word 3 .word A2I_dispTab .word -1 String_protObj: .word 6 .word 5 .word String_dispTab .word int_const0 .word 0 .word -1 Bool_protObj: .word 5 .word 4 .word Bool_dispTab .word 0 .word -1 Int_protObj: .word 4 .word 4 .word Int_dispTab .word 0 .word -1 IO_protObj: .word 1 .word 3 .word IO_dispTab .word -1 Stack_protObj: .word 3 .word 5 .word Stack_dispTab .word str_const22 .word 0 .word -1 Main_protObj: .word 2 .word 14 .word Main_dispTab .word bool_const0 .word str_const22 .word str_const22 .word int_const0 .word 0 .word 0 .word str_const22 .word 0 .word str_const22 .word str_const22 .word 0 .globl heap_start heap_start: .word 0 .text .globl Main_init .globl Int_init .globl String_init .globl Bool_init .globl Main.main Object_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra A2I_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra String_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Bool_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Int_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra IO_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal Object_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Stack_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal IO_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Main_init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 jal IO_init move $a0 $s0 lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra A2I.c2i: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 16($fp) la $t2 str_const12 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label2 la $a1 bool_const0 jal equality_test label2: lw $t1 12($a0) beqz $t1 label0 la $a0 int_const0 b label1 label0: lw $s1 16($fp) la $t2 str_const13 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label5 la $a1 bool_const0 jal equality_test label5: lw $t1 12($a0) beqz $t1 label3 la $a0 int_const2 b label4 label3: lw $s1 16($fp) la $t2 str_const14 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label8 la $a1 bool_const0 jal equality_test label8: lw $t1 12($a0) beqz $t1 label6 la $a0 int_const1 b label7 label6: lw $s1 16($fp) la $t2 str_const15 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label11 la $a1 bool_const0 jal equality_test label11: lw $t1 12($a0) beqz $t1 label9 la $a0 int_const3 b label10 label9: lw $s1 16($fp) la $t2 str_const16 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label14 la $a1 bool_const0 jal equality_test label14: lw $t1 12($a0) beqz $t1 label12 la $a0 int_const4 b label13 label12: lw $s1 16($fp) la $t2 str_const17 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label17 la $a1 bool_const0 jal equality_test label17: lw $t1 12($a0) beqz $t1 label15 la $a0 int_const5 b label16 label15: lw $s1 16($fp) la $t2 str_const18 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label20 la $a1 bool_const0 jal equality_test label20: lw $t1 12($a0) beqz $t1 label18 la $a0 int_const6 b label19 label18: lw $s1 16($fp) la $t2 str_const19 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label23 la $a1 bool_const0 jal equality_test label23: lw $t1 12($a0) beqz $t1 label21 la $a0 int_const7 b label22 label21: lw $s1 16($fp) la $t2 str_const20 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label26 la $a1 bool_const0 jal equality_test label26: lw $t1 12($a0) beqz $t1 label24 la $a0 int_const8 b label25 label24: lw $s1 16($fp) la $t2 str_const21 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label29 la $a1 bool_const0 jal equality_test label29: lw $t1 12($a0) beqz $t1 label27 la $a0 int_const9 b label28 label27: move $a0 $s0 bne $a0 $zero label30 la $a0 str_const24 li $t1 1 jal _dispatch_abort label30: lw $t1 8($a0) lw $t1 0($t1) jalr $t1 la $a0 int_const0 label28: label25: label22: label19: label16: label13: label10: label7: label4: label1: lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 20 jr $ra A2I.i2c: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 16($fp) la $t2 int_const0 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label33 la $a1 bool_const0 jal equality_test label33: lw $t1 12($a0) beqz $t1 label31 la $a0 str_const12 b label32 label31: lw $s1 16($fp) la $t2 int_const2 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label36 la $a1 bool_const0 jal equality_test label36: lw $t1 12($a0) beqz $t1 label34 la $a0 str_const13 b label35 label34: lw $s1 16($fp) la $t2 int_const1 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label39 la $a1 bool_const0 jal equality_test label39: lw $t1 12($a0) beqz $t1 label37 la $a0 str_const14 b label38 label37: lw $s1 16($fp) la $t2 int_const3 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label42 la $a1 bool_const0 jal equality_test label42: lw $t1 12($a0) beqz $t1 label40 la $a0 str_const15 b label41 label40: lw $s1 16($fp) la $t2 int_const4 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label45 la $a1 bool_const0 jal equality_test label45: lw $t1 12($a0) beqz $t1 label43 la $a0 str_const16 b label44 label43: lw $s1 16($fp) la $t2 int_const5 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label48 la $a1 bool_const0 jal equality_test label48: lw $t1 12($a0) beqz $t1 label46 la $a0 str_const17 b label47 label46: lw $s1 16($fp) la $t2 int_const6 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label51 la $a1 bool_const0 jal equality_test label51: lw $t1 12($a0) beqz $t1 label49 la $a0 str_const18 b label50 label49: lw $s1 16($fp) la $t2 int_const7 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label54 la $a1 bool_const0 jal equality_test label54: lw $t1 12($a0) beqz $t1 label52 la $a0 str_const19 b label53 label52: lw $s1 16($fp) la $t2 int_const8 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label57 la $a1 bool_const0 jal equality_test label57: lw $t1 12($a0) beqz $t1 label55 la $a0 str_const20 b label56 label55: lw $s1 16($fp) la $t2 int_const9 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label60 la $a1 bool_const0 jal equality_test label60: lw $t1 12($a0) beqz $t1 label58 la $a0 str_const21 b label59 label58: move $a0 $s0 bne $a0 $zero label61 la $a0 str_const24 li $t1 1 jal _dispatch_abort label61: lw $t1 8($a0) lw $t1 0($t1) jalr $t1 la $a0 str_const22 label59: label56: label53: label50: label47: label44: label41: label38: label35: label32: lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 20 jr $ra A2I.a2i: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 16($fp) bne $a0 $zero label65 la $a0 str_const24 li $t1 1 jal _dispatch_abort label65: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 move $s1 $a0 la $t2 int_const0 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label64 la $a1 bool_const0 jal equality_test label64: lw $t1 12($a0) beqz $t1 label62 la $a0 int_const0 b label63 label62: la $a0 int_const0 sw $a0 0($sp) addiu $sp $sp -4 la $a0 int_const2 sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label69 la $a0 str_const24 li $t1 1 jal _dispatch_abort label69: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 move $s1 $a0 la $t2 str_const23 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label68 la $a1 bool_const0 jal equality_test label68: lw $t1 12($a0) beqz $t1 label66 la $a0 int_const2 sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label70 la $a0 str_const24 li $t1 1 jal _dispatch_abort label70: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 move $s1 $a0 la $a0 int_const2 jal Object.copy lw $t2 12($a0) lw $t1 12($s1) sub $t1 $t1 $t2 sw $t1 12($a0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label71 la $a0 str_const24 li $t1 1 jal _dispatch_abort label71: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label72 la $a0 str_const24 li $t1 1 jal _dispatch_abort label72: lw $t1 8($a0) lw $t1 24($t1) jalr $t1 jal Object.copy lw $t1 12($a0) neg $t1 $t1 sw $t1 12($a0) b label67 label66: la $a0 int_const0 sw $a0 0($sp) addiu $sp $sp -4 la $a0 int_const2 sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label76 la $a0 str_const24 li $t1 1 jal _dispatch_abort label76: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 move $s1 $a0 la $t2 str_const5 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label75 la $a1 bool_const0 jal equality_test label75: lw $t1 12($a0) beqz $t1 label73 la $a0 int_const2 sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label77 la $a0 str_const24 li $t1 1 jal _dispatch_abort label77: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 move $s1 $a0 la $a0 int_const2 jal Object.copy lw $t2 12($a0) lw $t1 12($s1) sub $t1 $t1 $t2 sw $t1 12($a0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 16($fp) bne $a0 $zero label78 la $a0 str_const24 li $t1 1 jal _dispatch_abort label78: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label79 la $a0 str_const24 li $t1 1 jal _dispatch_abort label79: lw $t1 8($a0) lw $t1 24($t1) jalr $t1 b label74 label73: lw $a0 16($fp) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label80 la $a0 str_const24 li $t1 1 jal _dispatch_abort label80: lw $t1 8($a0) lw $t1 24($t1) jalr $t1 label74: label67: label63: lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 20 jr $ra A2I.a2i_aux: addiu $sp $sp -28 sw $fp 28($sp) sw $s0 24($sp) sw $ra 20($sp) addiu $fp $sp 4 move $s0 $a0 la $s1 int_const0 lw $a0 28($fp) sw $s1 0($fp) bne $a0 $zero label81 la $a0 str_const24 li $t1 1 jal _dispatch_abort label81: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 lw $s1 0($fp) move $s2 $a0 la $s3 int_const0 label82: move $s4 $s3 lw $t1 12($s4) lw $t2 12($s2) la $a0 bool_const1 blt $t1 $t2 label84 la $a0 bool_const0 label84: lw $t1 12($a0) beq $t1 $zero label83 move $s4 $s1 la $a0 int_const10 jal Object.copy lw $t2 12($a0) lw $t1 12($s4) mul $t1 $t1 $t2 sw $t1 12($a0) move $s4 $a0 sw $s3 0($sp) addiu $sp $sp -4 la $a0 int_const2 sw $a0 0($sp) addiu $sp $sp -4 lw $a0 28($fp) sw $s1 0($fp) sw $s2 4($fp) sw $s3 8($fp) sw $s4 12($fp) bne $a0 $zero label85 la $a0 str_const24 li $t1 1 jal _dispatch_abort label85: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 lw $s1 0($fp) lw $s2 4($fp) lw $s3 8($fp) lw $s4 12($fp) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 sw $s1 0($fp) sw $s2 4($fp) sw $s3 8($fp) sw $s4 12($fp) bne $a0 $zero label86 la $a0 str_const24 li $t1 1 jal _dispatch_abort label86: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 lw $s1 0($fp) lw $s2 4($fp) lw $s3 8($fp) lw $s4 12($fp) jal Object.copy lw $t2 12($a0) lw $t1 12($s4) add $t1 $t1 $t2 sw $t1 12($a0) move $s1 $a0 move $s4 $s3 la $a0 int_const2 jal Object.copy lw $t2 12($a0) lw $t1 12($s4) add $t1 $t1 $t2 sw $t1 12($a0) move $s3 $a0 b label82 label83: move $a0 $zero move $a0 $s1 lw $fp 28($sp) lw $s0 24($sp) lw $ra 20($sp) addiu $sp $sp 32 jr $ra A2I.i2a: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 16($fp) la $t2 int_const0 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label89 la $a1 bool_const0 jal equality_test label89: lw $t1 12($a0) beqz $t1 label87 la $a0 str_const12 b label88 label87: la $s1 int_const0 lw $a0 16($fp) lw $t1 12($s1) lw $t2 12($a0) la $a0 bool_const1 blt $t1 $t2 label92 la $a0 bool_const0 label92: lw $t1 12($a0) beqz $t1 label90 lw $a0 16($fp) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label93 la $a0 str_const24 li $t1 1 jal _dispatch_abort label93: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 b label91 label90: lw $s1 16($fp) la $a0 int_const2 jal Object.copy lw $t1 12($a0) neg $t1 $t1 sw $t1 12($a0) jal Object.copy lw $t2 12($a0) lw $t1 12($s1) mul $t1 $t1 $t2 sw $t1 12($a0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label94 la $a0 str_const24 li $t1 1 jal _dispatch_abort label94: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 sw $a0 0($sp) addiu $sp $sp -4 la $a0 str_const23 bne $a0 $zero label95 la $a0 str_const24 li $t1 1 jal _dispatch_abort label95: lw $t1 8($a0) lw $t1 16($t1) jalr $t1 label91: label88: lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 20 jr $ra A2I.i2a_aux: addiu $sp $sp -24 sw $fp 24($sp) sw $s0 20($sp) sw $ra 16($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 24($fp) la $t2 int_const0 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label98 la $a1 bool_const0 jal equality_test label98: lw $t1 12($a0) beqz $t1 label96 la $a0 str_const22 b label97 label96: lw $s1 24($fp) la $a0 int_const10 jal Object.copy lw $t2 12($a0) lw $t1 12($s1) div $t1 $t1 $t2 sw $t1 12($a0) move $s1 $a0 lw $s2 24($fp) move $s3 $s1 la $a0 int_const10 jal Object.copy lw $t2 12($a0) lw $t1 12($s3) mul $t1 $t1 $t2 sw $t1 12($a0) jal Object.copy lw $t2 12($a0) lw $t1 12($s2) sub $t1 $t1 $t2 sw $t1 12($a0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 sw $s1 0($fp) bne $a0 $zero label99 la $a0 str_const24 li $t1 1 jal _dispatch_abort label99: lw $t1 8($a0) lw $t1 16($t1) jalr $t1 lw $s1 0($fp) sw $a0 0($sp) addiu $sp $sp -4 sw $s1 0($sp) addiu $sp $sp -4 move $a0 $s0 sw $s1 0($fp) bne $a0 $zero label100 la $a0 str_const24 li $t1 1 jal _dispatch_abort label100: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 lw $s1 0($fp) sw $s1 0($fp) bne $a0 $zero label101 la $a0 str_const24 li $t1 1 jal _dispatch_abort label101: lw $t1 8($a0) lw $t1 16($t1) jalr $t1 lw $s1 0($fp) label97: lw $fp 24($sp) lw $s0 20($sp) lw $ra 16($sp) addiu $sp $sp 28 jr $ra Stack.init: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 12($fp) sw $a0 12($s0) lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 16 jr $ra Stack.addNext: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 12($fp) sw $a0 16($s0) lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 16 jr $ra Stack.getValue: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 12($s0) lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Stack.getNext: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 16($s0) lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra Main.main: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 la $a0 A2I_protObj jal Object.copy jal A2I_init sw $a0 52($s0) la $a0 bool_const1 sw $a0 12($s0) la $a0 int_const0 sw $a0 24($s0) la $a0 str_const0 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label102 la $a0 str_const11 li $t1 1 jal _dispatch_abort label102: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 label103: lw $a0 12($s0) lw $t1 12($a0) beq $t1 $zero label104 la $a0 str_const1 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label105 la $a0 str_const11 li $t1 1 jal _dispatch_abort label105: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 move $a0 $s0 bne $a0 $zero label106 la $a0 str_const11 li $t1 1 jal _dispatch_abort label106: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 sw $a0 16($s0) lw $s1 16($s0) la $t2 str_const2 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label109 la $a1 bool_const0 jal equality_test label109: lw $t1 12($a0) beqz $t1 label107 la $a0 str_const3 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label110 la $a0 str_const11 li $t1 1 jal _dispatch_abort label110: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 la $a0 bool_const0 sw $a0 12($s0) b label108 label107: lw $s1 16($s0) la $t2 str_const4 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label113 la $a1 bool_const0 jal equality_test label113: lw $t1 12($a0) beqz $t1 label111 la $s1 int_const0 lw $a0 24($s0) lw $t1 12($s1) lw $t2 12($a0) la $a0 bool_const1 blt $t1 $t2 label116 la $a0 bool_const0 label116: lw $t1 12($a0) beqz $t1 label114 move $a0 $s0 bne $a0 $zero label117 la $a0 str_const11 li $t1 1 jal _dispatch_abort label117: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 20($s0) lw $s1 20($s0) la $t2 str_const5 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label120 la $a1 bool_const0 jal equality_test label120: lw $t1 12($a0) beqz $t1 label118 lw $s1 24($s0) la $a0 int_const1 lw $t1 12($s1) lw $t2 12($a0) la $a0 bool_const1 blt $t1 $t2 label123 la $a0 bool_const0 label123: lw $t1 12($a0) beqz $t1 label121 la $a0 str_const6 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label124 la $a0 str_const11 li $t1 1 jal _dispatch_abort label124: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 move $a0 $s0 bne $a0 $zero label125 la $a0 str_const11 li $t1 1 jal _dispatch_abort label125: lw $t1 8($a0) lw $t1 0($t1) jalr $t1 b label122 label121: move $a0 $s0 bne $a0 $zero label126 la $a0 str_const11 li $t1 1 jal _dispatch_abort label126: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 44($s0) move $a0 $s0 bne $a0 $zero label127 la $a0 str_const11 li $t1 1 jal _dispatch_abort label127: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 48($s0) lw $a0 44($s0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 52($s0) bne $a0 $zero label128 la $a0 str_const11 li $t1 1 jal _dispatch_abort label128: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 move $s1 $a0 lw $a0 48($s0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 52($s0) sw $s1 0($fp) bne $a0 $zero label129 la $a0 str_const11 li $t1 1 jal _dispatch_abort label129: lw $t1 8($a0) lw $t1 20($t1) jalr $t1 lw $s1 0($fp) jal Object.copy lw $t2 12($a0) lw $t1 12($s1) add $t1 $t1 $t2 sw $t1 12($a0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 52($s0) bne $a0 $zero label130 la $a0 str_const11 li $t1 1 jal _dispatch_abort label130: lw $t1 8($a0) lw $t1 28($t1) jalr $t1 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label131 la $a0 str_const11 li $t1 1 jal _dispatch_abort label131: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 label122: b label119 label118: lw $s1 20($s0) la $t2 str_const7 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label134 la $a1 bool_const0 jal equality_test label134: lw $t1 12($a0) beqz $t1 label132 move $a0 $s0 bne $a0 $zero label135 la $a0 str_const11 li $t1 1 jal _dispatch_abort label135: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 44($s0) move $a0 $s0 bne $a0 $zero label136 la $a0 str_const11 li $t1 1 jal _dispatch_abort label136: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 48($s0) lw $a0 44($s0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label137 la $a0 str_const11 li $t1 1 jal _dispatch_abort label137: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 lw $a0 48($s0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label138 la $a0 str_const11 li $t1 1 jal _dispatch_abort label138: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 b label133 label132: lw $a0 20($s0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label139 la $a0 str_const11 li $t1 1 jal _dispatch_abort label139: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 label133: label119: b label115 label114: la $a0 str_const8 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label140 la $a0 str_const11 li $t1 1 jal _dispatch_abort label140: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 label115: b label112 label111: lw $s1 16($s0) la $t2 str_const9 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label143 la $a1 bool_const0 jal equality_test label143: lw $t1 12($a0) beqz $t1 label141 move $a0 $s0 bne $a0 $zero label144 la $a0 str_const11 li $t1 1 jal _dispatch_abort label144: lw $t1 8($a0) lw $t1 40($t1) jalr $t1 b label142 label141: lw $a0 16($s0) sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label145 la $a0 str_const11 li $t1 1 jal _dispatch_abort label145: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 label142: label112: label108: b label103 label104: move $a0 $zero lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 16 jr $ra Main.pushStack: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 24($s0) la $a0 int_const2 jal Object.copy lw $t2 12($a0) lw $t1 12($s1) add $t1 $t1 $t2 sw $t1 12($a0) sw $a0 24($s0) la $a0 Stack_protObj jal Object.copy jal Stack_init sw $a0 32($s0) lw $a0 16($fp) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 32($s0) bne $a0 $zero label146 la $a0 str_const11 li $t1 1 jal _dispatch_abort label146: lw $t1 8($a0) lw $t1 28($t1) jalr $t1 lw $s1 24($s0) la $t2 int_const2 move $t1 $s1 la $a0 bool_const1 beq $t1 $t2 label149 la $a1 bool_const0 jal equality_test label149: lw $t1 12($a0) beqz $t1 label147 lw $a0 32($s0) sw $a0 28($s0) b label148 label147: lw $a0 28($s0) sw $a0 0($sp) addiu $sp $sp -4 lw $a0 32($s0) bne $a0 $zero label150 la $a0 str_const11 li $t1 1 jal _dispatch_abort label150: lw $t1 8($a0) lw $t1 32($t1) jalr $t1 lw $a0 32($s0) sw $a0 28($s0) label148: lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 20 jr $ra Main.popStack: addiu $sp $sp -16 sw $fp 16($sp) sw $s0 12($sp) sw $ra 8($sp) addiu $fp $sp 4 move $s0 $a0 lw $s1 24($s0) la $a0 int_const2 jal Object.copy lw $t2 12($a0) lw $t1 12($s1) sub $t1 $t1 $t2 sw $t1 12($a0) sw $a0 24($s0) lw $a0 28($s0) bne $a0 $zero label151 la $a0 str_const11 li $t1 1 jal _dispatch_abort label151: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 36($s0) lw $a0 28($s0) bne $a0 $zero label152 la $a0 str_const11 li $t1 1 jal _dispatch_abort label152: lw $t1 8($a0) lw $t1 40($t1) jalr $t1 sw $a0 28($s0) lw $a0 36($s0) lw $fp 16($sp) lw $s0 12($sp) lw $ra 8($sp) addiu $sp $sp 16 jr $ra Main.printStack: addiu $sp $sp -12 sw $fp 12($sp) sw $s0 8($sp) sw $ra 4($sp) addiu $fp $sp 4 move $s0 $a0 lw $a0 28($s0) sw $a0 40($s0) label153: lw $a0 40($s0) move $t1 $a0 la $a0 bool_const1 beqz $t1 label156 la $a0 bool_const0 label156: lw $t1 12($a0) la $a0 bool_const1 beqz $t1 label155 la $a0 bool_const0 label155: lw $t1 12($a0) beq $t1 $zero label154 lw $a0 40($s0) bne $a0 $zero label157 la $a0 str_const11 li $t1 1 jal _dispatch_abort label157: lw $t1 8($a0) lw $t1 36($t1) jalr $t1 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label158 la $a0 str_const11 li $t1 1 jal _dispatch_abort label158: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 la $a0 str_const10 sw $a0 0($sp) addiu $sp $sp -4 move $a0 $s0 bne $a0 $zero label159 la $a0 str_const11 li $t1 1 jal _dispatch_abort label159: lw $t1 8($a0) lw $t1 12($t1) jalr $t1 lw $a0 40($s0) bne $a0 $zero label160 la $a0 str_const11 li $t1 1 jal _dispatch_abort label160: lw $t1 8($a0) lw $t1 40($t1) jalr $t1 sw $a0 40($s0) b label153 label154: move $a0 $zero lw $fp 12($sp) lw $s0 8($sp) lw $ra 4($sp) addiu $sp $sp 12 jr $ra
DVDTSB/cpu6502
149
roms/ascii_test.s
.org $FF00 DISP = $D012 MAIN: LDX #$21 STX DISP LOOP: INX STX DISP CPX #$7E BEQ QUIT JMP LOOP QUIT: JMP QUIT
duysqubix/rubc
3,712
assets/cpu_instrs/source/06-ld r,r.s
; Tests LD r,r ($40-$7F) ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $40,0,0 ; LD B,B .byte $41,0,0 ; LD B,C .byte $42,0,0 ; LD B,D .byte $43,0,0 ; LD B,E .byte $44,0,0 ; LD B,H .byte $45,0,0 ; LD B,L .byte $46,0,0 ; LD B,(HL) .byte $47,0,0 ; LD B,A .byte $48,0,0 ; LD C,B .byte $49,0,0 ; LD C,C .byte $4A,0,0 ; LD C,D .byte $4B,0,0 ; LD C,E .byte $4C,0,0 ; LD C,H .byte $4D,0,0 ; LD C,L .byte $4E,0,0 ; LD C,(HL) .byte $4F,0,0 ; LD C,A .byte $50,0,0 ; LD D,B .byte $51,0,0 ; LD D,C .byte $52,0,0 ; LD D,D .byte $53,0,0 ; LD D,E .byte $54,0,0 ; LD D,H .byte $55,0,0 ; LD D,L .byte $56,0,0 ; LD D,(HL) .byte $57,0,0 ; LD D,A .byte $58,0,0 ; LD E,B .byte $59,0,0 ; LD E,C .byte $5A,0,0 ; LD E,D .byte $5B,0,0 ; LD E,E .byte $5C,0,0 ; LD E,H .byte $5D,0,0 ; LD E,L .byte $5E,0,0 ; LD E,(HL) .byte $5F,0,0 ; LD E,A .byte $60,0,0 ; LD H,B .byte $61,0,0 ; LD H,C .byte $62,0,0 ; LD H,D .byte $63,0,0 ; LD H,E .byte $64,0,0 ; LD H,H .byte $65,0,0 ; LD H,L .byte $66,0,0 ; LD H,(HL) .byte $67,0,0 ; LD H,A .byte $68,0,0 ; LD L,B .byte $69,0,0 ; LD L,C .byte $6A,0,0 ; LD L,D .byte $6B,0,0 ; LD L,E .byte $6C,0,0 ; LD L,H .byte $6D,0,0 ; LD L,L .byte $6E,0,0 ; LD L,(HL) .byte $6F,0,0 ; LD L,A .byte $70,0,0 ; LD (HL),B .byte $71,0,0 ; LD (HL),C .byte $72,0,0 ; LD (HL),D .byte $73,0,0 ; LD (HL),E .byte $74,0,0 ; LD (HL),H .byte $75,0,0 ; LD (HL),L .byte $77,0,0 ; LD (HL),A .byte $78,0,0 ; LD A,B .byte $79,0,0 ; LD A,C .byte $7A,0,0 ; LD A,D .byte $7B,0,0 ; LD A,E .byte $7C,0,0 ; LD A,H .byte $7D,0,0 ; LD A,L .byte $7E,0,0 ; LD A,(HL) .byte $7F,0,0 ; LD A,A instrs_end: test_instr: ld c,$00 call test ld c,$10 call test ld c,$E0 call test ld c,$F0 call test ret test: ; Put different value in each register and (hl_temp) ld b,$BC push bc ld a,$DE ld (rp_temp),a ld a,$12 ld bc,$3456 ld de,$789A ld hl,rp_temp ; (HL) points to RAM pop af ; call print_regs jp instr instr_done: ; Checksum registers and (HL) call checksum_af_bc_de_hl ld a,(rp_temp) call update_crc_fast ret checksums: .byte $40,$3A,$AF,$06,$B6,$CB,$B2,$AB,$6F,$EF,$71,$9B,$75,$E3,$6C,$B9,$34,$FB,$26,$B7,$5A,$B9,$2F,$CE,$34,$FB,$26,$B7,$C2,$0A,$3B,$1A,$2A,$8A,$D6,$7C,$40,$3A,$AF,$06,$AF,$0A,$74,$70,$19,$A9,$6E,$6F,$11,$DA,$FE,$FE,$18,$10,$04,$2B,$11,$DA,$FE,$FE,$7B,$6A,$87,$84,$8B,$87,$34,$12,$00,$45,$DE,$01,$40,$3A,$AF,$06,$93,$E2,$8F,$C6,$DD,$7D,$90,$32,$FF,$90,$1B,$A8,$DD,$7D,$90,$32,$56,$BF,$7A,$21,$23,$C0,$FA,$06,$3B,$1D,$A0,$80,$3F,$44,$1B,$9C,$40,$3A,$AF,$06,$56,$25,$85,$CD,$D7,$B1,$DB,$F9,$56,$25,$85,$CD,$4E,$F8,$DF,$4B,$F0,$C3,$F9,$18,$20,$0F,$F6,$91,$71,$69,$CE,$46,$F0,$A0,$03,$4D,$40,$3A,$AF,$06,$29,$47,$E2,$36,$40,$3A,$AF,$06,$90,$F6,$A0,$8F,$3D,$62,$26,$A9,$A4,$52,$C1,$75,$45,$ED,$75,$40,$8A,$4D,$63,$56,$AF,$BA,$2D,$FE,$40,$3A,$AF,$06,$AF,$BA,$2D,$FE,$36,$8A,$CA,$22,$34,$8D,$C2,$65,$1A,$DB,$FF,$54,$32,$C0,$E8,$55,$ED,$4A,$87,$2F,$40,$3A,$AF,$06,$9D,$BC,$81,$E6,$6E,$6C,$92,$37,$B1,$EC,$C3,$29,$1D,$C5,$9F,$A1,$59,$6F,$66,$CD,$B4,$FB,$FD,$74,$EC,$13,$F3,$8E,$70,$0C,$5F,$ED,$EC,$13,$F3,$8E,$40,$3A,$AF,$06,
duysqubix/rubc
4,409
assets/cpu_instrs/source/11-op a,(hl).s
; Tests (HL/BC/DE) instructions. ; Takes 20 seconds. ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $0A,0,0 ; LD A,(BC) .byte $1A,0,0 ; LD A,(DE) .byte $02,0,0 ; LD (BC),A .byte $12,0,0 ; LD (DE),A .byte $2A,0,0 ; LD A,(HL+) .byte $3A,0,0 ; LD A,(HL-) .byte $22,0,0 ; LD (HL+),A .byte $32,0,0 ; LD (HL-),A .byte $B6,0,0 ; OR (HL) .byte $BE,0,0 ; CP (HL) .byte $86,0,0 ; ADD (HL) .byte $8E,0,0 ; ADC (HL) .byte $96,0,0 ; SUB (HL) .byte $9E,0,0 ; SBC (HL) .byte $A6,0,0 ; AND (HL) .byte $AE,0,0 ; XOR (HL) .byte $35,0,0 ; DEC (HL) .byte $34,0,0 ; INC (HL) .byte $CB,$06,0 ; RLC (HL) .byte $CB,$0E,0 ; RRC (HL) .byte $CB,$16,0 ; RL (HL) .byte $CB,$1E,0 ; RR (HL) .byte $CB,$26,0 ; SLA (HL) .byte $CB,$2E,0 ; SRA (HL) .byte $CB,$36,0 ; SWAP (HL) .byte $CB,$3E,0 ; SRL (HL) .byte $CB,$46,0 ; BIT 0,(HL) .byte $CB,$4E,0 ; BIT 1,(HL) .byte $CB,$56,0 ; BIT 2,(HL) .byte $CB,$5E,0 ; BIT 3,(HL) .byte $CB,$66,0 ; BIT 4,(HL) .byte $CB,$6E,0 ; BIT 5,(HL) .byte $CB,$76,0 ; BIT 6,(HL) .byte $CB,$7E,0 ; BIT 7,(HL) .byte $CB,$86,0 ; RES 0,(HL) .byte $CB,$8E,0 ; RES 1,(HL) .byte $CB,$96,0 ; RES 2,(HL) .byte $CB,$9E,0 ; RES 3,(HL) .byte $CB,$A6,0 ; RES 4,(HL) .byte $CB,$AE,0 ; RES 5,(HL) .byte $CB,$B6,0 ; RES 6,(HL) .byte $CB,$BE,0 ; RES 7,(HL) .byte $CB,$C6,0 ; SET 0,(HL) .byte $CB,$CE,0 ; SET 1,(HL) .byte $CB,$D6,0 ; SET 2,(HL) .byte $CB,$DE,0 ; SET 3,(HL) .byte $CB,$E6,0 ; SET 4,(HL) .byte $CB,$EE,0 ; SET 5,(HL) .byte $CB,$F6,0 ; SET 6,(HL) .byte $CB,$FE,0 ; SET 7,(HL) .byte $27,0,0 ; DAA instrs_end: test_instr: ld c,$00 call test ld c,$10 call test ld c,$E0 call test ld c,$F0 call test ret test: ; Go through each value for A ld hl,values a_loop: ld b,(hl) push hl ; Go through each value for (HL) ld hl,values values_loop: push bc push hl push bc ; BC ld a,(hl+) ld bc,rp_temp ld (rp_temp),a ; DE ld a,(hl+) ld de,rp_temp+1 ld (rp_temp+1),a ; HL ld a,(hl) ld hl,rp_temp+2 ld (rp_temp+2),a ; AF pop af ; call print_regs jp instr instr_done: ; Checksum AF, HL, and (HL) push hl push af call update_crc_fast pop hl ld a,l call update_crc_fast pop bc ld a,b call update_crc_fast ld a,c call update_crc_fast ld a,(rp_temp) call update_crc_fast ld a,(rp_temp+1) call update_crc_fast ld a,(rp_temp+2) call update_crc_fast pop hl pop bc inc hl ld a,l cp <values_end jr nz,values_loop pop hl inc hl ld a,l cp <values_end jr nz,a_loop ret values: .byte $00,$01,$0F,$10,$1F,$7F,$80,$F0,$FF,$02,$04,$08,$20,$40 values_end: .byte $00,$01,$0F,$10,$1F,$7F,$80,$F0,$FF,$02,$04,$08,$20,$40 checksums: .byte $E0,$E5,$09,$A7,$FB,$28,$0D,$AE,$AC,$BB,$91,$D8,$B3,$E2,$AF,$C4 .byte $3D,$B5,$02,$07,$4F,$6E,$5B,$7E,$AE,$02,$E7,$14,$DC,$D9,$BE,$6D .byte $F1,$48,$A9,$42,$67,$08,$FE,$57,$06,$6A,$A9,$B1,$FD,$A5,$84,$F0 .byte $82,$FC,$24,$A9,$A8,$1D,$BB,$E2,$F8,$23,$8C,$DE,$0E,$1D,$64,$D1 .byte $05,$E0,$24,$41,$53,$75,$47,$55,$F4,$D9,$10,$6A,$38,$16,$28,$D8 .byte $D1,$28,$A3,$E0,$A2,$05,$B8,$FE,$B0,$F4,$F5,$8F,$4B,$39,$03,$B0 .byte $8A,$07,$BA,$90,$25,$99,$A7,$78,$E6,$9A,$D1,$49,$C9,$B2,$A3,$E5 .byte $36,$34,$CB,$5A,$97,$42,$71,$09,$39,$87,$25,$EC,$54,$EE,$C5,$B3 .byte $FC,$B5,$6F,$BD,$0B,$D8,$46,$6F,$6A,$27,$81,$9F,$F8,$38,$E2,$71 .byte $55,$19,$21,$83,$4B,$85,$9F,$4B,$A1,$78,$14,$60,$58,$08,$D9,$57 .byte $11,$8C,$83,$9A,$9F,$01,$D1,$90,$E8,$82,$0B,$5A,$BD,$75,$86,$21 .byte $DF,$83,$E9,$23,$1E,$B6,$7F,$D1,$4A,$18,$A5,$8E,$CF,$CF,$CA,$51 .byte $3F,$03,$A4,$96,$C3,$1F,$9E,$88,$0C,$DF,$1F,$B1
duysqubix/rubc
1,981
assets/cpu_instrs/source/03-op sp,hl.s
; Tests SP/HL instructions ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $33,0,0 ; INC SP .byte $3B,0,0 ; DEC SP .byte $39,0,0 ; ADD HL,SP .byte $F9,0,0 ; LD SP,HL .byte $E8,$01,0 ; ADD SP,1 .byte $E8,$FF,0 ; ADD SP,-1 .byte $F8,$01,0 ; LD HL,SP+1 .byte $F8,$FF,0 ; LD HL,SP-1 instrs_end: test_instr: ; C = flags register ld c,$00 call test ld c,$F0 call test ret test: ; Go through each value for HL ld hl,values hl_loop: ld e,(hl) inc hl ld d,(hl) inc hl push hl ; Go through each value for SP ld hl,values values_loop: push bc push de push hl push bc pop af ; Switch stack ld (temp),sp ld a,(hl+) ld h,(hl) ld l,a ; call print_regs ld sp,hl ; Set registers ld h,d ld l,e ld a,$12 ld bc,$5691 ld de,$9ABC jp instr instr_done: ; Save new SP and switch to yet another stack ld (temp+2),sp ld sp,$DF70 call checksum_af_bc_de_hl ; Checksum SP ld a,(temp+2) call update_crc_fast ld a,(temp+3) call update_crc_fast ldsp temp pop hl pop de pop bc inc hl inc hl ld a,l cp <values_end jr nz,values_loop pop hl ld a,l cp <values_end jr nz,hl_loop ret values: .word $0000,$0001,$000F,$0010,$001F,$007F,$0080,$00FF .word $0100,$0F00,$1F00,$1000,$7FFF,$8000,$FFFF values_end: .word $0000,$0001,$000F,$0010,$001F,$007F,$0080,$00FF .word $0100,$0F00,$1F00,$1000,$7FFF,$8000,$FFFF checksums: .byte $BC,$F4,$CD,$8C,$C7,$5E,$89,$E5,$36,$65,$21,$55,$D6,$6A,$2A,$FF .byte $EB,$34,$37,$B9,$08,$5F,$22,$13,$B6,$2A,$37,$C3,$72,$43,$5C,$4D
duysqubix/rubc
3,131
assets/cpu_instrs/source/07-jr,jp,call,ret,rst.s
; Tests branch instructions ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: ; JR cond,skip ; INC A ; skip: .byte $18,$01,$3C ; JR *+3 .byte $20,$01,$3C ; JR NZ,*+3 .byte $28,$01,$3C ; JR Z,*+3 .byte $30,$01,$3C ; JR NC,*+3 .byte $38,$01,$3C ; JR C,*+3 .byte $C2,<taken,>taken ; JP NZ,taken .byte $C3,<taken,>taken ; JP taken .byte $CA,<taken,>taken ; JP Z,taken .byte $D2,<taken,>taken ; JP NC,taken .byte $DA,<taken,>taken ; JP C,taken .byte $C4,<taken,>taken ; CALL NZ,taken .byte $CC,<taken,>taken ; CALL Z,taken .byte $CD,<taken,>taken ; CALL taken .byte $D4,<taken,>taken ; CALL NC,taken .byte $DC,<taken,>taken ; CALL C,taken ; RET cond ; INC A .byte $C0,$3C,0 ; RET NZ .byte $C8,$3C,0 ; RET Z .byte $C9,$3C,0 ; RET .byte $D0,$3C,0 ; RET NC .byte $D8,$3C,0 ; RET C .byte $D9,$3C,0 ; RETI ; RST ; can only easily test this one on devcart .byte $C7,0,0 ; RST $00 .ifndef BUILD_DEVCART .byte $CF,0,0 ; RST $08 .byte $D7,0,0 ; RST $10 .byte $DF,0,0 ; RST $18 .byte $E7,0,0 ; RST $20 .byte $EF,0,0 ; RST $28 .byte $F7,0,0 ; RST $30 .byte $FF,0,0 ; RST $38 .endif instrs_end: test_instr: wreg IE,0 ; disable interrupts, since RETI does EI ; Go through all 16 combinations of flags ld bc,$1200 - ; Fill 4 bytes of new stack ld a,$12 ld ($DF80-2),a ld a,$34 ld ($DF80-3),a ld a,$56 ld ($DF80-4),a ld a,$78 ld ($DF80-5),a ; Set AF push bc pop af ; Switch to new stack ld (temp),sp ld sp,$DF80 ; Set return address ld de,instr+3 push de jp instr instr_done: inc a taken: di ; RETI enables interrupts ; Save new SP and switch to yet another stack ld (temp+2),sp ld sp,$DF70 ; Checksum A and SP call update_crc_fast ld a,(temp+2) call update_crc_fast ld a,(temp+3) call update_crc_fast ; Checksum 4 bytes of stack ld a,($DF80-2) call update_crc_fast ld a,($DF80-3) call update_crc_fast ld a,($DF80-4) call update_crc_fast ld a,($DF80-5) call update_crc_fast ldsp temp ld a,c add $10 ld c,a jr nz,- ret checksums: .byte $EC,$A4,$94,$79,$C4,$00,$96,$2C,$C4,$64,$90,$33,$77,$C7,$0A,$D4 .byte $77,$A3,$0C,$CB,$79,$E7,$7E,$AE,$DA,$DC,$03,$F7,$4F,$9F,$E9,$20 .byte $72,$12,$DA,$01,$44,$6A,$4D,$8F,$D1,$79,$30,$4C,$AA,$37,$F2,$6A .byte $97,$EA,$56,$5F,$32,$28,$C7,$D1,$49,$66,$05,$F7,$80,$0F,$BA,$8E .byte $41,$E2,$A4,$9A,$2D,$2D,$8C,$72,$A5,$13,$76,$A8,$64,$FE,$68,$BC .byte $2D,$2D,$8C,$72,$50,$96,$24,$27,$50,$96,$24,$27,$50,$96,$24,$27 .byte $50,$96,$24,$27,$50,$96,$24,$27,$50,$96,$24,$27,$50,$96,$24,$27 .byte $50,$96,$24,$27 .include "multi_custom.s"
duysqubix/rubc
1,128
assets/cpu_instrs/source/01-special.s
; Tests instructions that don't fit template .include "shell.inc" main: set_test 2,"JR negative" ld a,0 jp jr_neg inc a - inc a inc a cp 2 jp nz,test_failed jp + jr_neg: jr - + set_test 3,"JR positive" ld a,0 jr + inc a + inc a inc a cp 2 jp nz,test_failed set_test 4,"LD PC,HL" ld hl,+ ld a,0 ld pc,hl inc a + inc a inc a cp 2 jp nz,test_failed set_test 5,"POP AF" ld bc,$1200 - push bc pop af push af pop de ld a,c and $F0 cp e jp nz,test_failed inc b inc c jr nz,- set_test 6,"DAA" ; Test all combinations of A and flags (256*16 total) ld de,0 - push de pop af daa push af call update_crc pop hl ld a,l call update_crc inc d jr nz,- ld a,e add $10 ld e,a jr nz,- check_crc $6A9F8D8A jp tests_passed
duysqubix/rubc
2,530
assets/cpu_instrs/source/08-misc instrs.s
; Tests miscellaneous instructions ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $F0,$91,0 ; LDH A,($91) .byte $E0,$91,0 ; LDH ($91),A .byte $F2,$00,0 ; LDH A,(C) .byte $E2,$00,0 ; LDH (C),A .byte $FA,$91,$FF ; LD A,($FF91) .byte $EA,$91,$FF ; LD ($FF91),A .byte $08,$91,$FF ; LD ($FF91),SP .byte $01,$23,$01 ; LD BC,$0123 .byte $11,$23,$01 ; LD DE,$0123 .byte $21,$23,$01 ; LD HL,$0123 .byte $31,$23,$01 ; LD SP,$0123 .byte $F5,0,0 ; PUSH AF .byte $C5,0,0 ; PUSH BC .byte $D5,0,0 ; PUSH DE .byte $E5,0,0 ; PUSH HL .byte $F1,0,0 ; POP AF .byte $C1,0,0 ; POP BC .byte $D1,0,0 ; POP DE .byte $E1,0,0 ; POP HL instrs_end: test_instr: ; C = flags register ld c,$00 call test ld c,$10 call test ld c,$E0 call test ld c,$F0 call test ret test: ; Fill RAM ld a,$FE ld ($FF90),a ld a,$DC ld ($FF91),a ld a,$BA ld ($FF92),a ; Fill stack ld a,$13 ld ($DF80),a ld a,$57 ld ($DF80-1),a ld a,$9B ld ($DF80-2),a ld a,$DF ld ($DF80-3),a ; Set registers ld b,$12 push bc ld bc,$5691 ld de,$9ABC ld hl,$DEF0 pop af ; Switch stack ld (temp),sp ld sp,$DF80-2 jp instr instr_done: ; Save new SP and switch to another stack ld (temp+2),sp ld sp,$DF70 call checksum_af_bc_de_hl ; Checksum SP ld a,(temp+2) call update_crc_fast ld a,(temp+3) call update_crc_fast ; Checksum RAM ld a,($FF90) call update_crc_fast ld a,($FF91) call update_crc_fast ld a,($FF92) call update_crc_fast ; Checksum stack ld a,($DF80) call update_crc_fast ld a,($DF80-1) call update_crc_fast ld a,($DF80-2) call update_crc_fast ld a,($DF80-3) call update_crc_fast ; Restore SP ldsp temp ret checksums: .byte $4D,$FF,$15,$97,$6D,$A7,$35,$65,$4D,$FF,$15,$97,$6D,$A7,$35,$65,$4D,$FF,$15,$97,$6D,$A7,$35,$65,$AD,$FA,$5E,$41,$D0,$78,$79,$C1,$AF,$66,$99,$34,$0D,$E1,$97,$99,$6F,$D0,$6F,$5D,$C3,$1F,$A3,$8A,$C2,$F1,$9C,$F3,$C1,$C3,$DC,$78,$C0,$2D,$E3,$01,$8F,$C4,$0F,$44,$95,$22,$6A,$39,$61,$C5,$AB,$55,$FB,$DF,$2C,$52,
duysqubix/rubc
9,892
assets/cpu_instrs/source/10-bit ops.s
; Tests most register instructions. ; Takes 15 seconds. ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $CB,$40,0 ; BIT 0,B .byte $CB,$41,0 ; BIT 0,C .byte $CB,$42,0 ; BIT 0,D .byte $CB,$43,0 ; BIT 0,E .byte $CB,$44,0 ; BIT 0,H .byte $CB,$45,0 ; BIT 0,L .byte $CB,$47,0 ; BIT 0,A .byte $CB,$48,0 ; BIT 1,B .byte $CB,$49,0 ; BIT 1,C .byte $CB,$4A,0 ; BIT 1,D .byte $CB,$4B,0 ; BIT 1,E .byte $CB,$4C,0 ; BIT 1,H .byte $CB,$4D,0 ; BIT 1,L .byte $CB,$4F,0 ; BIT 1,A .byte $CB,$50,0 ; BIT 2,B .byte $CB,$51,0 ; BIT 2,C .byte $CB,$52,0 ; BIT 2,D .byte $CB,$53,0 ; BIT 2,E .byte $CB,$54,0 ; BIT 2,H .byte $CB,$55,0 ; BIT 2,L .byte $CB,$57,0 ; BIT 2,A .byte $CB,$58,0 ; BIT 3,B .byte $CB,$59,0 ; BIT 3,C .byte $CB,$5A,0 ; BIT 3,D .byte $CB,$5B,0 ; BIT 3,E .byte $CB,$5C,0 ; BIT 3,H .byte $CB,$5D,0 ; BIT 3,L .byte $CB,$5F,0 ; BIT 3,A .byte $CB,$60,0 ; BIT 4,B .byte $CB,$61,0 ; BIT 4,C .byte $CB,$62,0 ; BIT 4,D .byte $CB,$63,0 ; BIT 4,E .byte $CB,$64,0 ; BIT 4,H .byte $CB,$65,0 ; BIT 4,L .byte $CB,$67,0 ; BIT 4,A .byte $CB,$68,0 ; BIT 5,B .byte $CB,$69,0 ; BIT 5,C .byte $CB,$6A,0 ; BIT 5,D .byte $CB,$6B,0 ; BIT 5,E .byte $CB,$6C,0 ; BIT 5,H .byte $CB,$6D,0 ; BIT 5,L .byte $CB,$6F,0 ; BIT 5,A .byte $CB,$70,0 ; BIT 6,B .byte $CB,$71,0 ; BIT 6,C .byte $CB,$72,0 ; BIT 6,D .byte $CB,$73,0 ; BIT 6,E .byte $CB,$74,0 ; BIT 6,H .byte $CB,$75,0 ; BIT 6,L .byte $CB,$77,0 ; BIT 6,A .byte $CB,$78,0 ; BIT 7,B .byte $CB,$79,0 ; BIT 7,C .byte $CB,$7A,0 ; BIT 7,D .byte $CB,$7B,0 ; BIT 7,E .byte $CB,$7C,0 ; BIT 7,H .byte $CB,$7D,0 ; BIT 7,L .byte $CB,$7F,0 ; BIT 7,A .byte $CB,$80,0 ; RES 0,B .byte $CB,$81,0 ; RES 0,C .byte $CB,$82,0 ; RES 0,D .byte $CB,$83,0 ; RES 0,E .byte $CB,$84,0 ; RES 0,H .byte $CB,$85,0 ; RES 0,L .byte $CB,$87,0 ; RES 0,A .byte $CB,$88,0 ; RES 1,B .byte $CB,$89,0 ; RES 1,C .byte $CB,$8A,0 ; RES 1,D .byte $CB,$8B,0 ; RES 1,E .byte $CB,$8C,0 ; RES 1,H .byte $CB,$8D,0 ; RES 1,L .byte $CB,$8F,0 ; RES 1,A .byte $CB,$90,0 ; RES 2,B .byte $CB,$91,0 ; RES 2,C .byte $CB,$92,0 ; RES 2,D .byte $CB,$93,0 ; RES 2,E .byte $CB,$94,0 ; RES 2,H .byte $CB,$95,0 ; RES 2,L .byte $CB,$97,0 ; RES 2,A .byte $CB,$98,0 ; RES 3,B .byte $CB,$99,0 ; RES 3,C .byte $CB,$9A,0 ; RES 3,D .byte $CB,$9B,0 ; RES 3,E .byte $CB,$9C,0 ; RES 3,H .byte $CB,$9D,0 ; RES 3,L .byte $CB,$9F,0 ; RES 3,A .byte $CB,$A0,0 ; RES 4,B .byte $CB,$A1,0 ; RES 4,C .byte $CB,$A2,0 ; RES 4,D .byte $CB,$A3,0 ; RES 4,E .byte $CB,$A4,0 ; RES 4,H .byte $CB,$A5,0 ; RES 4,L .byte $CB,$A7,0 ; RES 4,A .byte $CB,$A8,0 ; RES 5,B .byte $CB,$A9,0 ; RES 5,C .byte $CB,$AA,0 ; RES 5,D .byte $CB,$AB,0 ; RES 5,E .byte $CB,$AC,0 ; RES 5,H .byte $CB,$AD,0 ; RES 5,L .byte $CB,$AF,0 ; RES 5,A .byte $CB,$B0,0 ; RES 6,B .byte $CB,$B1,0 ; RES 6,C .byte $CB,$B2,0 ; RES 6,D .byte $CB,$B3,0 ; RES 6,E .byte $CB,$B4,0 ; RES 6,H .byte $CB,$B5,0 ; RES 6,L .byte $CB,$B7,0 ; RES 6,A .byte $CB,$B8,0 ; RES 7,B .byte $CB,$B9,0 ; RES 7,C .byte $CB,$BA,0 ; RES 7,D .byte $CB,$BB,0 ; RES 7,E .byte $CB,$BC,0 ; RES 7,H .byte $CB,$BD,0 ; RES 7,L .byte $CB,$BF,0 ; RES 7,A .byte $CB,$C0,0 ; SET 0,B .byte $CB,$C1,0 ; SET 0,C .byte $CB,$C2,0 ; SET 0,D .byte $CB,$C3,0 ; SET 0,E .byte $CB,$C4,0 ; SET 0,H .byte $CB,$C5,0 ; SET 0,L .byte $CB,$C7,0 ; SET 0,A .byte $CB,$C8,0 ; SET 1,B .byte $CB,$C9,0 ; SET 1,C .byte $CB,$CA,0 ; SET 1,D .byte $CB,$CB,0 ; SET 1,E .byte $CB,$CC,0 ; SET 1,H .byte $CB,$CD,0 ; SET 1,L .byte $CB,$CF,0 ; SET 1,A .byte $CB,$D0,0 ; SET 2,B .byte $CB,$D1,0 ; SET 2,C .byte $CB,$D2,0 ; SET 2,D .byte $CB,$D3,0 ; SET 2,E .byte $CB,$D4,0 ; SET 2,H .byte $CB,$D5,0 ; SET 2,L .byte $CB,$D7,0 ; SET 2,A .byte $CB,$D8,0 ; SET 3,B .byte $CB,$D9,0 ; SET 3,C .byte $CB,$DA,0 ; SET 3,D .byte $CB,$DB,0 ; SET 3,E .byte $CB,$DC,0 ; SET 3,H .byte $CB,$DD,0 ; SET 3,L .byte $CB,$DF,0 ; SET 3,A .byte $CB,$E0,0 ; SET 4,B .byte $CB,$E1,0 ; SET 4,C .byte $CB,$E2,0 ; SET 4,D .byte $CB,$E3,0 ; SET 4,E .byte $CB,$E4,0 ; SET 4,H .byte $CB,$E5,0 ; SET 4,L .byte $CB,$E7,0 ; SET 4,A .byte $CB,$E8,0 ; SET 5,B .byte $CB,$E9,0 ; SET 5,C .byte $CB,$EA,0 ; SET 5,D .byte $CB,$EB,0 ; SET 5,E .byte $CB,$EC,0 ; SET 5,H .byte $CB,$ED,0 ; SET 5,L .byte $CB,$EF,0 ; SET 5,A .byte $CB,$F0,0 ; SET 6,B .byte $CB,$F1,0 ; SET 6,C .byte $CB,$F2,0 ; SET 6,D .byte $CB,$F3,0 ; SET 6,E .byte $CB,$F4,0 ; SET 6,H .byte $CB,$F5,0 ; SET 6,L .byte $CB,$F7,0 ; SET 6,A .byte $CB,$F8,0 ; SET 7,B .byte $CB,$F9,0 ; SET 7,C .byte $CB,$FA,0 ; SET 7,D .byte $CB,$FB,0 ; SET 7,E .byte $CB,$FC,0 ; SET 7,H .byte $CB,$FD,0 ; SET 7,L .byte $CB,$FF,0 ; SET 7,A instrs_end: test_instr: ld c,$00 call test ld c,$F0 call test ret test: ; Go through each value for A ld hl,values a_loop: ld b,(hl) push hl ; Go through each value for other registers ld hl,values values_loop: push bc push hl push bc ; BC ld a,(hl+) ld b,a ld a,(hl+) ld c,a ; HL ld a,(hl+) ld d,a ld a,(hl+) ld e,a push de ; DE ld a,(hl+) ld d,a ld a,(hl+) ld e,a pop hl pop af ; call print_regs jp instr instr_done: ; Checksum registers call checksum_af_bc_de_hl pop hl pop bc inc hl ld a,l cp <values_end jr nz,values_loop pop hl inc hl ld a,l cp <values_end jr nz,a_loop ret values: .byte $00,$01,$02,$04,$08,$10,$20,$40,$80,$FF values_end: .byte $00,$01,$02,$04,$08,$10,$20,$40,$80,$FF checksums: .byte $46,$51,$4A,$16,$D4,$18,$B2,$4E,$ED,$B5,$15,$EA,$74,$66,$66,$3E .byte $C2,$F3,$7F,$6A,$63,$CA,$62,$21,$72,$1E,$E4,$83,$6A,$56,$41,$1D .byte $91,$90,$DB,$38,$54,$0A,$6C,$24,$02,$9E,$EA,$5B,$6D,$A7,$CB,$80 .byte $B4,$0B,$F3,$0F,$40,$38,$75,$BB,$AF,$30,$2B,$E5,$BD,$97,$D0,$33 .byte $83,$CB,$FD,$0A,$BB,$21,$93,$95,$28,$2F,$A2,$F6,$1B,$5F,$47,$E5 .byte $A3,$2E,$39,$63,$6C,$E0,$02,$BB,$78,$F1,$BA,$CB,$2C,$9F,$49,$E0 .byte $6C,$E0,$02,$BB,$04,$28,$A9,$FD,$5E,$D7,$2E,$93,$1B,$78,$08,$00 .byte $83,$CB,$FD,$0A,$BB,$21,$93,$95,$69,$17,$20,$96,$C3,$B4,$B6,$51 .byte $C1,$4E,$C3,$05,$72,$D0,$25,$98,$44,$F0,$99,$B7,$B4,$0B,$F3,$0F .byte $54,$0A,$6C,$24,$45,$10,$2B,$9D,$86,$3C,$DF,$27,$02,$9E,$EA,$5B .byte $B7,$B6,$4F,$60,$70,$E0,$E1,$AA,$C2,$F3,$7F,$6A,$63,$CA,$62,$21 .byte $80,$76,$41,$65,$AA,$3B,$D4,$2C,$ED,$B5,$15,$EA,$74,$66,$66,$3E .byte $AD,$FF,$A0,$43,$7B,$4C,$06,$A4,$15,$32,$EE,$44,$43,$A6,$68,$3B .byte $6F,$5D,$BE,$D4,$DA,$75,$1B,$EF,$9B,$4D,$99,$8F,$49,$E8,$A9,$1D .byte $F5,$1B,$58,$3A,$92,$25,$2D,$51,$38,$5C,$62,$05,$DD,$A9,$63,$AD .byte $E3,$78,$2F,$37,$90,$15,$DB,$62,$58,$E2,$E8,$35,$BB,$C1,$5A,$EA .byte $06,$FE,$28,$AA,$4F,$5D,$64,$BF,$83,$CF,$7F,$B2,$F9,$A9,$90,$BF .byte $DD,$06,$B6,$64,$25,$8A,$E0,$24,$FA,$40,$95,$13,$91,$61,$93,$0D .byte $69,$A8,$0E,$0B,$AE,$FD,$DF,$1A,$D4,$98,$D8,$11,$61,$E9,$16,$66 .byte $BD,$82,$1F,$2C,$E2,$74,$26,$77,$13,$E4,$6A,$25,$D7,$DE,$8A,$4F .byte $1F,$7B,$47,$BC,$DA,$DB,$31,$E7,$2B,$06,$2C,$39,$15,$FC,$1C,$0B .byte $1A,$3B,$A0,$0F,$55,$E5,$D8,$1C,$6D,$6C,$7F,$B8,$14,$AD,$9C,$AF .byte $92,$B6,$60,$40,$76,$E6,$6D,$2F,$9E,$CA,$45,$6D,$54,$97,$47,$35 .byte $EE,$39,$50,$63,$47,$8C,$8A,$AB,$18,$F7,$6D,$10,$B7,$A6,$74,$0C .byte $11,$24,$9C,$F5,$64,$5D,$FB,$16,$65,$1C,$59,$C6,$B9,$E3,$30,$52 .byte $1D,$E4,$B8,$9E,$A3,$2F,$7B,$6F,$03,$20,$24,$41,$4C,$F7,$22,$B8 .byte $92,$A7,$75,$E3,$1D,$F2,$5E,$FD,$B7,$A4,$F3,$34,$BF,$F7,$37,$CA .byte $67,$22,$D4,$4D,$DE,$1A,$99,$58,$B2,$65,$91,$12,$F2,$8C,$65,$08 .byte $69,$E2,$9B,$D3,$94,$8C,$71,$F1,$D8,$22,$29,$53,$E8,$6A,$D9,$55 .byte $3E,$24,$42,$EF,$38,$12,$AC,$02,$35,$84,$7D,$2C,$C2,$34,$AC,$E2 .byte $4B,$AA,$E0,$31,$8F,$A0,$F2,$13,$A8,$4F,$7B,$98,$02,$16,$3B,$D4 .byte $8D,$09,$58,$A4,$FF,$46,$CA,$17,$08,$AA,$78,$02,$4A,$CF,$72,$E1 .byte $A8,$55,$52,$89,$F8,$FD,$D6,$4E,$22,$E7,$8F,$C6,$80,$F1,$BB,$3C .byte $09,$1B,$4A,$4A,$06,$A1,$FD,$54,$E4,$BF,$D8,$27,$14,$23,$42,$90 .byte $B3,$7B,$55,$14,$77,$22,$EE,$92,$E9,$37,$76,$8C,$7D,$CF,$B7,$C7 .byte $D2,$90,$17,$48,$BB,$52,$BC,$19,$AA,$91,$9F,$DC,$0D,$AA,$C9,$24 .byte $C8,$45,$DF,$AB,$B3,$83,$A8,$9E,$0F,$AA,$62,$2F,$C4,$C0,$28,$BA .byte $32,$56,$99,$69,$C9,$77,$4B,$62,$6B,$FF,$B6,$DD,$42,$46,$7A,$00 .byte $DA,$E9,$67,$4D,$46,$9C,$B5,$92,$04,$B5,$F6,$03,$01,$3C,$A2,$47 .byte $40,$15,$4A,$D6,$04,$39,$BC,$2F,$E9,$E1,$39,$59,$9B,$6A,$A4,$12 .byte $97,$23,$99,$30,$9E,$A6,$70,$AD,$C7,$1B,$D6,$1F,$05,$15,$D2,$5B .byte $29,$0F,$5A,$CC,$0A,$99,$A2,$68,$5D,$58,$ED,$9C,$B9,$82,$CD,$74
duysqubix/rubc
1,880
assets/cpu_instrs/source/04-op r,imm.s
; Tests immediate instructions ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $36,0,0 ; LD (HL),$00 .byte $06,0,0 ; LD B,$00 .byte $0E,0,0 ; LD C,$00 .byte $16,0,0 ; LD D,$00 .byte $1E,0,0 ; LD E,$00 .byte $26,0,0 ; LD H,$00 .byte $2E,0,0 ; LD L,$00 .byte $3E,0,0 ; LD A,$00 .byte $F6,0,0 ; OR $00 .byte $FE,0,0 ; CP $00 .byte $C6,0,0 ; ADD $00 .byte $CE,0,0 ; ADC $00 .byte $D6,0,0 ; SUB $00 .byte $DE,0,0 ; SBC $00 .byte $E6,0,0 ; AND $00 .byte $EE,0,0 ; XOR $00 instrs_end: test_instr: ld c,$00 call test ld c,$10 call test ld c,$E0 call test ld c,$F0 call test ret test: ; Go through each value for A ld hl,values a_loop: ld b,(hl) push hl ; Go through each value for immediate data ld hl,values values_loop: push bc push hl ; Set registers push bc ld a,(hl) ld (instr+1),a ld bc,$1234 ld de,$5678 ld hl,rp_temp pop af ; call print_regs jp instr instr_done: ; Checksum registers and (hl) call checksum_af_bc_de_hl ld a,(rp_temp) call update_crc_fast pop hl pop bc inc hl ld a,l cp <values_end jr nz,values_loop pop hl inc hl ld a,l cp <values_end jr nz,a_loop ret values: .byte $00,$01,$0F,$10,$1F,$7F,$80,$F0,$FF values_end: checksums: .byte $7F,$7F,$05,$B7,$85,$82,$94,$B6,$D8,$0A,$D6,$F5,$44,$8C,$37,$2A,$FB,$46,$05,$FA,$BD,$2F,$9E,$C1,$5A,$56,$2A,$DA,$D0,$EE,$14,$BA,$EA,$42,$36,$D2,$87,$28,$AB,$30,$4D,$A2,$63,$C6,$34,$4E,$55,$08,$9B,$1C,$97,$0E,$49,$F8,$73,$D4,$86,$C7,$DC,$C6,$03,$BF,$43,$21,
duysqubix/rubc
7,694
assets/cpu_instrs/source/09-op r,r.s
; Tests most register instructions. ; Takes 10 seconds. ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $00,0,0 ; NOP .byte $2F,0,0 ; CPL .byte $37,0,0 ; SCF .byte $3F,0,0 ; CCF .byte $B0,0,0 ; OR B .byte $B1,0,0 ; OR C .byte $B2,0,0 ; OR D .byte $B3,0,0 ; OR E .byte $B4,0,0 ; OR H .byte $B5,0,0 ; OR L .byte $B7,0,0 ; OR A .byte $B8,0,0 ; CP B .byte $B9,0,0 ; CP C .byte $BA,0,0 ; CP D .byte $BB,0,0 ; CP E .byte $BC,0,0 ; CP H .byte $BD,0,0 ; CP L .byte $BF,0,0 ; CP A .byte $80,0,0 ; ADD B .byte $81,0,0 ; ADD C .byte $82,0,0 ; ADD D .byte $83,0,0 ; ADD E .byte $84,0,0 ; ADD H .byte $85,0,0 ; ADD L .byte $87,0,0 ; ADD A .byte $88,0,0 ; ADC B .byte $89,0,0 ; ADC C .byte $8A,0,0 ; ADC D .byte $8B,0,0 ; ADC E .byte $8C,0,0 ; ADC H .byte $8D,0,0 ; ADC L .byte $8F,0,0 ; ADC A .byte $90,0,0 ; SUB B .byte $91,0,0 ; SUB C .byte $92,0,0 ; SUB D .byte $93,0,0 ; SUB E .byte $94,0,0 ; SUB H .byte $95,0,0 ; SUB L .byte $97,0,0 ; SUB A .byte $98,0,0 ; SBC B .byte $99,0,0 ; SBC C .byte $9A,0,0 ; SBC D .byte $9B,0,0 ; SBC E .byte $9C,0,0 ; SBC H .byte $9D,0,0 ; SBC L .byte $9F,0,0 ; SBC A .byte $A0,0,0 ; AND B .byte $A1,0,0 ; AND C .byte $A2,0,0 ; AND D .byte $A3,0,0 ; AND E .byte $A4,0,0 ; AND H .byte $A5,0,0 ; AND L .byte $A7,0,0 ; AND A .byte $A8,0,0 ; XOR B .byte $A9,0,0 ; XOR C .byte $AA,0,0 ; XOR D .byte $AB,0,0 ; XOR E .byte $AC,0,0 ; XOR H .byte $AD,0,0 ; XOR L .byte $AF,0,0 ; XOR A .byte $05,0,0 ; DEC B .byte $0D,0,0 ; DEC C .byte $15,0,0 ; DEC D .byte $1D,0,0 ; DEC E .byte $25,0,0 ; DEC H .byte $2D,0,0 ; DEC L .byte $3D,0,0 ; DEC A .byte $04,0,0 ; INC B .byte $0C,0,0 ; INC C .byte $14,0,0 ; INC D .byte $1C,0,0 ; INC E .byte $24,0,0 ; INC H .byte $2C,0,0 ; INC L .byte $3C,0,0 ; INC A .byte $07,0,0 ; RLCA .byte $17,0,0 ; RLA .byte $0F,0,0 ; RRCA .byte $1F,0,0 ; RRA .byte $CB,$00,0 ; RLC B .byte $CB,$01,0 ; RLC C .byte $CB,$02,0 ; RLC D .byte $CB,$03,0 ; RLC E .byte $CB,$04,0 ; RLC H .byte $CB,$05,0 ; RLC L .byte $CB,$07,0 ; RLC A .byte $CB,$08,0 ; RRC B .byte $CB,$09,0 ; RRC C .byte $CB,$0A,0 ; RRC D .byte $CB,$0B,0 ; RRC E .byte $CB,$0C,0 ; RRC H .byte $CB,$0D,0 ; RRC L .byte $CB,$0F,0 ; RRC A .byte $CB,$10,0 ; RL B .byte $CB,$11,0 ; RL C .byte $CB,$12,0 ; RL D .byte $CB,$13,0 ; RL E .byte $CB,$14,0 ; RL H .byte $CB,$15,0 ; RL L .byte $CB,$17,0 ; RL A .byte $CB,$18,0 ; RR B .byte $CB,$19,0 ; RR C .byte $CB,$1A,0 ; RR D .byte $CB,$1B,0 ; RR E .byte $CB,$1C,0 ; RR H .byte $CB,$1D,0 ; RR L .byte $CB,$1F,0 ; RR A .byte $CB,$20,0 ; SLA B .byte $CB,$21,0 ; SLA C .byte $CB,$22,0 ; SLA D .byte $CB,$23,0 ; SLA E .byte $CB,$24,0 ; SLA H .byte $CB,$25,0 ; SLA L .byte $CB,$27,0 ; SLA A .byte $CB,$28,0 ; SRA B .byte $CB,$29,0 ; SRA C .byte $CB,$2A,0 ; SRA D .byte $CB,$2B,0 ; SRA E .byte $CB,$2C,0 ; SRA H .byte $CB,$2D,0 ; SRA L .byte $CB,$2F,0 ; SRA A .byte $CB,$30,0 ; SWAP B .byte $CB,$31,0 ; SWAP C .byte $CB,$32,0 ; SWAP D .byte $CB,$33,0 ; SWAP E .byte $CB,$34,0 ; SWAP H .byte $CB,$35,0 ; SWAP L .byte $CB,$37,0 ; SWAP A .byte $CB,$38,0 ; SRL B .byte $CB,$39,0 ; SRL C .byte $CB,$3A,0 ; SRL D .byte $CB,$3B,0 ; SRL E .byte $CB,$3C,0 ; SRL H .byte $CB,$3D,0 ; SRL L .byte $CB,$3F,0 ; SRL A instrs_end: test_instr: ld c,$00 call test ld c,$F0 call test ret test: ; Go through each value for A ld hl,values a_loop: ld b,(hl) push hl ; Go through each value for other registers ld hl,values values_loop: push bc push hl push bc ; BC ld a,(hl+) ld b,a ld a,(hl+) ld c,a ; HL ld a,(hl+) ld d,a ld a,(hl+) ld e,a push de ; DE ld a,(hl+) ld d,a ld a,(hl+) ld e,a pop hl pop af ; call print_regs jp instr instr_done: ; Checksum registers call checksum_af_bc_de_hl pop hl pop bc inc hl ld a,l cp <values_end jr nz,values_loop pop hl inc hl ld a,l cp <values_end jr nz,a_loop ret values: .byte $00,$01,$0F,$10,$1F,$7F,$80,$F0,$FF values_end: .byte $00,$01,$0F,$10,$1F,$7F,$80,$F0,$FF checksums: .byte $7C,$55,$BD,$05,$BA,$C7,$AC,$D1,$74,$6D,$82,$4A,$0F,$06,$2A,$C5 .byte $FA,$97,$9B,$9D,$C3,$32,$A0,$78,$00,$C1,$9F,$69,$C0,$D1,$C2,$A1 .byte $55,$0D,$3F,$C8,$09,$7D,$97,$92,$CE,$66,$30,$56,$95,$F3,$01,$A1 .byte $5B,$97,$54,$4C,$56,$FC,$A0,$89,$42,$F8,$7B,$2A,$E6,$7C,$03,$40 .byte $45,$60,$C5,$A8,$B7,$BF,$B0,$EF,$A0,$7A,$1B,$4F,$FB,$22,$B4,$33 .byte $06,$3D,$B5,$C7,$3C,$A4,$D5,$23,$C1,$BE,$75,$8B,$E0,$9B,$98,$BB .byte $0E,$75,$D9,$E6,$82,$A7,$E2,$66,$CD,$78,$4F,$E8,$8E,$D4,$2D,$3E .byte $88,$5C,$58,$C7,$F9,$20,$5F,$B9,$A8,$E4,$CA,$5E,$C8,$DB,$88,$94 .byte $A3,$0D,$87,$60,$8B,$BA,$2B,$27,$41,$88,$83,$B1,$0A,$41,$9E,$D6 .byte $98,$8D,$19,$B7,$13,$C6,$D5,$BF,$83,$CE,$74,$9F,$00,$34,$07,$5E .byte $F0,$E1,$1A,$68,$8F,$BA,$85,$A7,$A0,$46,$06,$A5,$75,$F9,$83,$48 .byte $12,$EF,$1B,$03,$C8,$FB,$79,$EA,$9B,$00,$6C,$A9,$0D,$5E,$CB,$57 .byte $41,$1B,$4B,$0C,$B2,$08,$D8,$E3,$43,$07,$E1,$93,$34,$73,$23,$C9 .byte $18,$2F,$38,$F9,$D1,$3B,$AB,$5A,$BF,$C6,$F8,$03,$50,$0C,$A4,$32 .byte $6B,$06,$7E,$FE,$ED,$8B,$D4,$15,$29,$46,$6D,$24,$6E,$5B,$15,$1A .byte $32,$AE,$87,$B0,$DC,$20,$AC,$4B,$2B,$63,$60,$C7,$C1,$92,$75,$AA .byte $6F,$CA,$17,$53,$5A,$C5,$78,$EA,$61,$01,$10,$83,$DD,$08,$D8,$78 .byte $CA,$0B,$F5,$1F,$92,$55,$08,$01,$7F,$EA,$CD,$9B,$2A,$AA,$73,$17 .byte $E0,$9F,$D0,$BA,$E7,$73,$72,$3D,$B7,$95,$2F,$3B,$A7,$78,$50,$36 .byte $81,$04,$5B,$9E,$9A,$DE,$A4,$DD,$21,$B2,$9B,$36,$9F,$D7,$C8,$32 .byte $48,$0E,$FC,$E5,$55,$C3,$53,$75,$A4,$ED,$A9,$E0,$9E,$78,$A7,$1D .byte $B8,$F4,$7C,$D6,$90,$2A,$03,$87,$81,$D8,$D5,$90,$63,$02,$C4,$52 .byte $C2,$BE,$85,$B3,$32,$9A,$9E,$2D,$E3,$FB,$22,$47,$8E,$65,$08,$73 .byte $72,$5A,$73,$95,$ED,$EC,$59,$9D,$C8,$67,$68,$F1,$4B,$ED,$41,$D5 .byte $68,$39,$75,$F3,$FC,$09,$EF,$0D,$20,$2B,$43,$A3,$69,$AA,$89,$4F .byte $84,$87,$7B,$58,$42,$0A,$56,$EF,$1B,$0E,$19,$CA,$6F,$1B,$F9,$17 .byte $EA,$B6,$4C,$B2,$1A,$C4,$C0,$B1,$E2,$B2,$45,$4E,$91,$0A,$8D,$AE .byte $17,$31,$55,$A3,$1B,$69,$72,$D8,$03,$E9,$55,$8D,$87,$27,$36,$63 .byte $E6,$85,$12,$D1,$F2,$32,$97,$4D,$B5,$FA,$08,$A9,$97,$2A,$5A,$C2 .byte $FD,$2D,$A4,$27,$57,$7C,$EC,$BD,$CC,$67,$19,$21,$46,$D4,$CD,$D6 .byte $CB,$55,$D4,$E2,$9E,$F3,$32,$2E,$AA,$F8,$BB,$B3,$F6,$3A,$CC,$08 .byte $64,$8B,$C2,$5F,$58,$66,$AF,$67,$B3,$44,$2C,$66,$72,$E7,$3B,$3F .byte $5B,$87,$0C,$17,$58,$E2,$B4,$A0,$70,$18,$81,$E6,$42,$56,$12,$CE .byte $BB,$13,$46,$3C,$BE,$5A,$FB,$53
duysqubix/rubc
1,217
assets/cpu_instrs/source/02-interrupts.s
; Tests DI, EI, and HALT (STOP proved untestable) .include "shell.inc" main: wreg IE,$04 set_test 2,"EI" ei ld bc,0 push bc pop bc inc b wreg IF,$04 interrupt_addr: dec b jp nz,test_failed ld hl,sp-2 ldi a,(hl) cp <interrupt_addr jp nz,test_failed ld a,(hl) cp >interrupt_addr jp nz,test_failed lda IF and $04 jp nz,test_failed set_test 3,"DI" di ld bc,0 push bc pop bc wreg IF,$04 ld hl,sp-2 ldi a,(hl) or (hl) jp nz,test_failed lda IF and $04 jp z,test_failed set_test 4,"Timer doesn't work" wreg TAC,$05 wreg TIMA,0 wreg IF,0 delay 500 lda IF delay 500 and $04 jp nz,test_failed delay 500 lda IF and $04 jp z,test_failed pop af set_test 5,"HALT" wreg TAC,$05 wreg TIMA,0 wreg IF,0 halt ; timer interrupt will exit halt nop ; avoids DMG bug lda IF and $04 jp z,test_failed jp tests_passed .bank 0 slot 0 .org $50 inc a ret
duysqubix/rubc
1,846
assets/cpu_instrs/source/05-op rp.s
; Tests BC/DE/HL arithmetic ;.define PRINT_CHECKSUMS 1 .include "shell.inc" .include "instr_test.s" instrs: .byte $0B,0,0 ; DEC BC .byte $1B,0,0 ; DEC DE .byte $2B,0,0 ; DEC HL .byte $03,0,0 ; INC BC .byte $13,0,0 ; INC DE .byte $23,0,0 ; INC HL .byte $09,0,0 ; ADD HL,BC .byte $19,0,0 ; ADD HL,DE .byte $29,0,0 ; ADD HL,HL instrs_end: test_instr: ld c,$00 call test ld c,$10 call test ld c,$E0 call test ld c,$F0 call test ret test: ; Go through each value for HL ld hl,values hl_loop: ld e,(hl) inc hl ld d,(hl) inc hl push hl ; Go through each value for BC, DE, A ld hl,values values_loop: push bc push de push hl push de push bc ; BC ld c,(hl) inc hl ld b,(hl) inc hl ; DE ld e,(hl) inc hl ld d,(hl) inc hl ; HL, AF pop af ld a,(hl) pop hl ; call print_regs jp instr instr_done: ; Checksum registers call checksum_af_bc_de_hl pop hl pop de pop bc inc hl inc hl ld a,l cp <values_end jr nz,values_loop pop hl ld a,l cp <values_end jr nz,hl_loop ret values: .word $0000,$0001,$000F,$0010,$001F,$007F,$0080,$00FF .word $0100,$0F00,$1F00,$1000,$7FFF,$8000,$FFFF values_end: .word $0000,$0001,$000F,$0010,$001F,$007F,$0080,$00FF .word $0100,$0F00,$1F00,$1000,$7FFF,$8000,$FFFF checksums: .byte $C0,$A1,$36,$A3,$BE,$15,$B8,$2B,$9F,$93,$C6,$C2,$86,$C0,$07,$81,$0F,$75,$35,$38,$6B,$C7,$0A,$1B,$06,$68,$4B,$42,$64,$B4,$8C,$18,$FB,$6C,$31,$94,
duysqubix/rubc
1,751
assets/cpu_instrs/source/common/checksums.s
; Multiple checksum table handling .define next_checksum bss+0 .redefine bss bss+2 ; If PRINT_CHECKSUMS is defined, checksums are printed ; rather than compared. ; Initializes multiple checksum handler to use checksums ; table (defined by user). ; Preserved: BC, DE, HL checksums_init: ld a,<checksums ld (next_checksum),a ld a,>checksums ld (next_checksum+1),a ret ; Compares current checksum with next checksum in ; list. Z if they match, NZ if not. ; Preserved: BC, DE, HL checksums_compare: .ifdef PRINT_CHECKSUMS lda checksum+3 push af lda checksum+2 push af lda checksum+1 push af lda checksum+0 push af ld a,(next_checksum) inc a ld (next_checksum),a sub <checksums+1 and $03 ld a,',' jr nz,+ print_str newline,'.',"byte" ld a,' ' + call print_char pop af call @print_byte pop af call @print_byte pop af call @print_byte ld a,'$' call print_char pop af call print_hex xor a ret @print_byte: push af ld a,'$' call print_char pop af call print_hex ld a,',' call print_char ret .else push bc push de push hl ld a,(next_checksum) ld l,a ld a,(next_checksum+1) ld h,a ld de,checksum ld b,0 - ld a,(de) xor (hl) or b ld b,a inc hl inc e ld a,e cp <(checksum+4) jr nz,- ld a,l ld (next_checksum),a ld a,h ld (next_checksum+1),a ld a,b cp 0 pop hl pop de pop bc ret .endif
duysqubix/rubc
1,277
assets/cpu_instrs/source/common/build_rom.s
; Build as GB ROM .memoryMap defaultSlot 0 slot 0 $0000 size $4000 slot 1 $C000 size $4000 .endMe .romBankSize $4000 ; generates $8000 byte ROM .romBanks 2 .cartridgeType 1 ; MBC1 .computeChecksum .computeComplementCheck ;;;; GB ROM header ; GB header read by bootrom .org $100 nop jp reset ; Nintendo logo required for proper boot .byte $CE,$ED,$66,$66,$CC,$0D,$00,$0B .byte $03,$73,$00,$83,$00,$0C,$00,$0D .byte $00,$08,$11,$1F,$88,$89,$00,$0E .byte $DC,$CC,$6E,$E6,$DD,$DD,$D9,$99 .byte $BB,$BB,$67,$63,$6E,$0E,$EC,$CC .byte $DD,$DC,$99,$9F,$BB,$B9,$33,$3E ; Internal name .ifdef ROM_NAME .byte ROM_NAME .endif ; CGB/DMG requirements .org $143 .ifdef REQUIRE_CGB .byte $C0 .else .ifndef REQUIRE_DMG .byte $80 .endif .endif .org $200 ;;;; Shell .include "runtime.s" .include "console.s" init_runtime: call console_init .ifdef TEST_NAME print_str TEST_NAME,newline,newline .endif ret std_print: push af sta SB wreg SC,$81 delay 2304 pop af jp console_print post_exit: call console_show call play_byte forever: wreg NR52,0 ; sound off - jr - play_byte: ret .ends
duysqubix/rubc
1,224
assets/cpu_instrs/source/common/crc.s
; CRC-32 checksum calculation .define checksum dp+0 ; little-endian, complemented .redefine dp dp+4 ; Initializes checksum module. Might initialize tables ; in the future. init_crc: jr reset_crc ; Clears CRC ; Preserved: BC, DE, HL reset_crc: ld a,$FF sta checksum+0 sta checksum+1 sta checksum+2 sta checksum+3 ret ; Updates current checksum with byte A ; Preserved: AF, BC, DE, HL ; Time: 237 cycles average update_crc: ; 65 cycles + 8*cycles per bit ; min cycles per bit: 14 ; max cycles per bit: 29 push af push bc push de push hl ld hl,checksum+3 ld b,(hl) dec l ld c,(hl) dec l ld d,(hl) dec l xor (hl) ld h,8 - srl b rr c rr d rra jr nc,+ ld e,a ld a,b xor $ED ld b,a ld a,c xor $B8 ld c,a ld a,d xor $83 ld d,a ld a,e xor $20 + dec h jr nz,- ld h,>checksum ldi (hl),a ld (hl),d inc l ld (hl),c inc l ld (hl),b pop hl pop de pop bc pop af ret
duysqubix/rubc
1,777
assets/cpu_instrs/source/common/printing.s
; Main printing routine that checksums and ; prints to output device ; Character that does equivalent of print_newline .define newline 10 ; Prints char without updating checksum ; Preserved: BC, DE, HL .define print_char_nocrc bss .redefine bss bss+3 ; Initializes printing. HL = print routine init_printing: ld a,l ld (print_char_nocrc+1),a ld a,h ld (print_char_nocrc+2),a jr show_printing ; Hides/shows further printing ; Preserved: BC, DE, HL hide_printing: ld a,$C9 ; RET jr + show_printing: ld a,$C3 ; JP (nn) + ld (print_char_nocrc),a ret ; Prints character and updates checksum UNLESS ; it's a newline. ; Preserved: AF, BC, DE, HL print_char: push af cp newline call nz,update_crc call print_char_nocrc pop af ret ; Prints space. Does NOT update checksum. ; Preserved: AF, BC, DE, HL print_space: push af ld a,' ' call print_char_nocrc pop af ret ; Advances to next line. Does NOT update checksum. ; Preserved: AF, BC, DE, HL print_newline: push af ld a,newline call print_char_nocrc pop af ret ; Prints immediate string ; Preserved: AF, BC, DE, HL .macro print_str ; string,string2 push hl call print_str_ .byte \1 .if NARGS > 1 .byte \2 .endif .if NARGS > 2 .byte \3 .endif .byte 0 pop hl .endm print_str_: pop hl call print_str_hl jp hl ; Prints zero-terminated string pointed to by HL. ; On return, HL points to byte AFTER zero terminator. ; Preserved: AF, BC, DE print_str_hl: push af jr + - call print_char + ldi a,(hl) or a jr nz,- pop af ret
duysqubix/rubc
1,941
assets/cpu_instrs/source/common/build_gbs.s
; Build as GBS music file .memoryMap defaultSlot 0 slot 0 $3000 size $1000 slot 1 $C000 size $1000 .endMe .romBankSize $1000 .romBanks 2 ;;;; GBS music file header .byte "GBS" .byte 1 ; vers .byte 1 ; songs .byte 1 ; first song .word load_addr .word reset .word gbs_play .word std_stack .byte 0,0 ; timer .ds $60,0 load_addr: ; WLA assumes we're building ROM and messes ; with bytes at the beginning, so skip them. .ds $100,0 ;;;; Shell .include "runtime.s" init_runtime: ld a,$01 ; Identify as DMG hardware ld (gb_id),a .ifdef TEST_NAME print_str TEST_NAME,newline,newline .endif ret std_print: sta SB wreg SC,$81 delay 2304 ret post_exit: call play_byte forever: wreg NR52,0 ; sound off - jp - .ifndef CUSTOM_RESET gbs_play: .endif console_flush: console_normal: console_inverse: console_set_mode: ret ; Reports A in binary as high and low tones, with ; leading low tone for reference. Omits leading ; zeroes. ; Preserved: AF, BC, DE, HL play_byte: push af push hl ; HL = (A << 1) | 1 scf rla ld l,a ld h,0 rl h ; Shift left until next-to-top bit is 1 - add hl,hl bit 6,h jr z,- ; Reset sound delay_msec 400 wreg NR52,0 ; sound off wreg NR52,$80 ; sound on wreg NR51,$FF ; mono wreg NR50,$77 ; volume - add hl,hl ; Low or high pitch based on bit shifted out ; of HL ld a,0 jr nc,+ ld a,$FF + sta NR23 ; Play short tone wreg NR21,$A0 wreg NR22,$F0 wreg NR24,$86 delay_msec 75 wreg NR22,0 wreg NR23,$F8 wreg NR24,$87 delay_msec 200 ; Loop until HL = $8000 ld a,h xor $80 or l jr nz,- pop hl pop af ret .ends
duysqubix/rubc
1,579
assets/cpu_instrs/source/common/crc_fast.s
; Fast table-based CRC-32 .define crc_tables (bss+$FF)&$FF00 ; 256-byte aligned .redefine bss crc_tables+$400 ; Initializes fast CRC tables and resets checksum. ; Time: 47 msec init_crc_fast: ld l,0 @next: xor a ld c,a ld d,a ld e,l ld h,8 - rra rr c rr d rr e jr nc,+ xor $ED ld b,a ld a,c xor $B8 ld c,a ld a,d xor $83 ld d,a ld a,e xor $20 ld e,a ld a,b + dec h jr nz,- ld h,>crc_tables ld (hl),e inc h ld (hl),d inc h ld (hl),c inc h ld (hl),a inc l jr nz,@next jp init_crc ; Faster version of update_crc ; Preserved: BC, DE ; Time: 50 cycles (including CALL) update_crc_fast: ; Fastest inline macro version of update_crc_fast ; Time: 40 cycles ; Size: 28 bytes .macro update_crc_fast ld l,a ; 1 lda checksum ; 3 xor l ; 1 ld l,a ; 1 ld h,>crc_tables ; 2 lda checksum+1 ; 3 xor (hl) ; 2 inc h ; 1 sta checksum ; 3 lda checksum+2 ; 3 xor (hl) ; 2 inc h ; 1 sta checksum+1 ; 3 lda checksum+3 ; 3 xor (hl) ; 2 inc h ; 1 sta checksum+2 ; 3 ld a,(hl) ; 2 sta checksum+3 ; 3 .endm update_crc_fast ret
duysqubix/rubc
3,011
assets/cpu_instrs/source/common/testing.s
; Diagnostic and testing utilities .define result bss+0 .define test_name bss+1 .redefine bss bss+3 ; Sets test code and optional error text ; Preserved: AF, BC, DE, HL .macro set_test ; code[,text[,text2]] push hl call set_test_ jr @set_test\@ .byte \1 .if NARGS > 1 .byte \2 .endif .if NARGS > 2 .byte \3 .endif .byte 0 @set_test\@: pop hl .endm set_test_: pop hl push hl push af inc hl inc hl ldi a,(hl) ld (result),a ld a,l ld (test_name),a ld a,h ld (test_name+1),a pop af ret ; Initializes testing module init_testing: set_test $FF call init_crc ret ; Reports "Passed", then exits with code 0 tests_passed: call print_newline print_str "Passed" ld a,0 jp exit ; Reports "Done" if set_test has never been used, ; "Passed" if set_test 0 was last used, or ; failure if set_test n was last used. tests_done: ld a,(result) inc a jr z,+ dec a jr z,tests_passed jr test_failed + print_str "Done" ld a,0 jp exit ; Reports current error text and exits with result code test_failed: ld a,(test_name) ld l,a ld a,(test_name+1) ld h,a ld a,(hl) or a jr z,+ call print_newline call print_str_hl call print_newline + ld a,(result) cp 1 ; if a = 0 then a = 1 adc 0 jp exit ; Prints checksum as 8-character hex value ; Preserved: AF, BC, DE, HL print_crc: push af ; Must read checksum entirely before printing, ; since printing updates it. lda checksum cpl push af lda checksum+1 cpl push af lda checksum+2 cpl push af lda checksum+3 cpl call print_hex pop af call print_hex pop af call print_hex pop af call print_a pop af ret ; If checksum doesn't match expected, reports failed test. ; Passing 0 just prints checksum. Clears checksum afterwards. .macro check_crc ARGS crc .if crc == 0 call show_printing call print_newline call print_crc .else ld bc,(crc >> 16) ~ $FFFF ld de,(crc & $FFFF) ~ $FFFF call check_crc_ .endif .endm check_crc_: lda checksum+0 cp e jr nz,+ lda checksum+1 cp d jr nz,+ lda checksum+2 cp c jr nz,+ lda checksum+3 cp b jr nz,+ jp reset_crc + call print_crc jp test_failed ; Updates checksum with bytes from addr to addr+size-1 .macro checksum_mem ARGS addr,size ld hl,addr ld bc,size call checksum_mem_ .endm checksum_mem_: - ldi a,(hl) call update_crc dec bc ld a,b or c jr nz,- ret
duysqubix/rubc
4,343
assets/cpu_instrs/source/common/apu.s
; Sound chip utilities ; Turns APU off ; Preserved: BC, DE, HL sound_off: wreg NR52,0 ret ; Turns APU on ; Preserved: BC, DE, HL sound_on: wreg NR52,$80 ; power wreg NR51,$FF ; mono wreg NR50,$77 ; volume ret ; Synchronizes to APU length counter within ; tens of clocks. Uses square 2 channel. ; Preserved: BC, DE, HL sync_apu: wreg NR24,$00 ; disable length wreg NR21,$3E ; length = 2 (in case of extra len clk) wreg NR22,$08 ; silent without disabling channel wreg NR24,$C0 ; start length - lda NR52 ; wait for length to reach zero and $02 jr nz,- ret ; Synchronizes to first square sweep within ; tens of clocks. Uses square 1 channel. ; Preserved: BC, DE, HL sync_sweep: wreg NR10,$11 ; sweep period = 1, shift = 1 wreg NR12,$08 ; silent without disabling channel wreg NR13,$FF ; freq = $3FF wreg NR14,$83 ; start - lda NR52 and $01 jr nz,- ret ; Copies 16-byte wave from (HL) to wave RAM ; Preserved: BC, DE load_wave: push bc wreg NR30,$00 ; disable while writing ld c,$30 - ld a,(hl+) ld ($FF00+c),a inc c bit 6,c jr z,- pop bc ret ; Makes short beep ; Preserved: BC, DE, HL beep: xor a ; sound off sta NR52 dec a sta NR52 ; sound on sta NR51 ; mono sta NR50 ; volume wreg NR12,$F1 ; volume, envelope rate wreg NR14,$86 ; note on, pitch delay_msec 250 ret ; Marks sound with bits of A encoded into volume ; Preserved: BC, DE, HL mark_sound: push bc ld c,a ld b,8 wreg NR10,0 wreg NR11,$80 wreg NR13,$F8 - ld a,$60 rl c jr nc,+ ld a,$A0 + sta NR12 wreg NR14,$87 delay_usec 300 wreg NR12,0 delay_usec 100 dec b jr nz,- pop bc ret ; Fills wave RAM with A ; Preserved: BC, DE, HL fill_wave: push bc ld c,$30 - ld ($FF00+c),a inc c bit 6,c jr z,- pop bc ret ; Gets current length counter value for ; channel with mask A into A. Length counter ; must be enabled for that channel. ; Preserved: BC, DE, HL get_len_a: push bc ld c,a ld b,0 - lda NR52 ; 3 and c ; 1 jr z,+ ; 2 delay 4096-10 inc b ; 1 jr nz,- ; 3 + ld a,b pop bc ret ; Synchronizes exactly to length clock. Next length clock ; occurs by 4079 clocks after this returns. Uses NR2x. ; Preserved: AF, BC, DE, HL sync_length: push af push hl ld hl,NR52 wreg NR22,$08 ; silent without disabling channel wreg NR24,$40 ; avoids extra length clock on trigger wreg NR21,-2 ; length = 2, in case clock occurs immediately wreg NR24,$C0 ; start length ; Coarse sync ld a,$02 - and (hl) jr nz,- ; Fine sync. Slowly moves "forward" until ; length clock occurs just before reading NR52. - delay 4097-20 wreg NR21,-1 ; 5 wreg NR24,$C0 ; 5 lda NR52 ; 3 delay 2 ; 2 and $02 ; 2 jr nz,- ; 3 pop hl pop af ret ; Delays n*4096 cycles ; Preserved: BC, DE, HL .macro delay_frames ; n ld a,\1 call delay_frames_ .endm ; Delays A*4096+13 cycles (including CALL) ; Preserved: BC, DE, HL delay_a_frames: or a ; 1 jr nz,+ ; 3 ; -1 ret delay_frames_: ; delays 4096*A-2 cycles (including CALL) push af ; 4 ld a,256-13-20-12 ; 2 jr ++ ; 3 + - push af ; 4 ld a,256-13-20 ; 2 ++ call delay_a_20_cycles delay 4096-256 pop af ; 3 dec a ; 1 jr nz,- ; 3 ; -1 ret .macro test_chan_timing ; chan, iter ld a,\1 call print_dec call print_space ld a,\2 - push af test_chan 1<<\1, \1*5+NR10 pop af dec a jr nz,- call print_newline .endm .macro test_chans ARGS iter test_chan_timing 0,iter test_chan_timing 1,iter test_chan_timing 2,iter test_chan_timing 3,iter .endm
duysqubix/rubc
5,856
assets/cpu_instrs/source/common/delay.s
; Delays in cycles, milliseconds, etc. ; All routines are re-entrant (no global data). Routines never ; touch BC, DE, or HL registers. These ASSUME CPU is at normal ; speed. If running at double speed, msec/usec delays are half advertised. ; Delays n cycles, from 0 to 16777215 ; Preserved: AF, BC, DE, HL .macro delay ARGS n .if n < 0 .printt "Delay must be >= 0" .fail .endif .if n > 16777215 .printt "Delay must be < 16777216" .fail .endif delay_ n&$FFFF, n>>16 .endm ; Delays n clocks, from 0 to 16777216*4. Must be multiple of 4. ; Preserved: AF, BC, DE, HL .macro delay_clocks ARGS n .if n # 4 != 0 .printt "Delay must be a multiple of 4" .fail .endif delay_ (n/4)&$FFFF,(n/4)>>16 .endm ; Delays n microseconds (1/1000000 second) ; n can range from 0 to 4000 usec. ; Preserved: AF, BC, DE, HL .macro delay_usec ARGS n .if n < 0 .printt "Delay must be >= 0" .fail .endif .if n > 4000 .printt "Delay must be <= 4000 usec" .fail .endif delay_ ((n * 1048576 + 500000) / 1000000)&$FFFF,((n * 1048576 + 500000) / 1000000)>>16 .endm ; Delays n milliseconds (1/1000 second) ; n can range from 0 to 10000 msec. ; Preserved: AF, BC, DE, HL .macro delay_msec ARGS n .if n < 0 .printt "Delay must be >= 0" .fail .endif .if n > 10000 .printt "Delay must be <= 10000 msec" .fail .endif delay_ ((n * 1048576 + 500) / 1000)&$FFFF, ((n * 1048576 + 500) / 1000)>>16 .endm ; All the low/high quantities are to deal wla-dx's asinine ; restriction full expressions must evaluate to a 16-bit ; value. If the author ever rectifies this, all "high" ; arguments can be treated as zero and removed. Better yet, ; I'll just find an assembler that didn't crawl out of ; the sewer (this is one of too many bugs I've wasted ; hours working around). .define max_short_delay 28 .macro delay_long_ ARGS n, high ; 0+ to avoid assembler treating as memory read ld a,0+(((high<<16)+n) - 11) >> 16 call delay_65536a_9_cycles_ delay_nosave_ (((high<<16)+n) - 11)&$FFFF, 0 .endm ; Doesn't save AF, allowing minimization of AF save/restore .macro delay_nosave_ ARGS n, high ; 65536+11 = maximum delay using delay_256a_9_cycles_ ; 255+22 = maximum delay using delay_a_20_cycles ; 22 = minimum delay using delay_a_20_cycles .if high > 1 delay_long_ n, high .else .if high*n > 11 delay_long_ n, high .else .if (high*(255+22+1))|n > 255+22 ld a,>(((high<<16)+n) - 11) call delay_256a_9_cycles_ delay_nosave_ <(((high<<16)+n) - 11), 0 .else .if n >= 22 ld a,n - 22 call delay_a_20_cycles .else delay_short_ n .endif .endif .endif .endif .endm .macro delay_ ARGS low, high .if (high*(max_short_delay+1))|low > max_short_delay push af delay_nosave_ ((high<<16)+low - 7)&$FFFF, ((high<<16)+low - 7)>>16 pop af .else delay_short_ low .endif .endm ; Delays A cycles + overhead ; Preserved: BC, DE, HL ; Time: A+20 cycles (including CALL) delay_a_20_cycles: - sub 5 ; 2 jr nc,- ;3/2 do multiples of 5 rra ; 1 jr nc,+ ;3/2 bit 0 + adc 1 ; 2 ret nc ;5/2 -1: 0 cycles ret z ;5/2 0: 2 cycles nop ; 1 1: 4 cycles ret ; 4 (thanks to dclxvi for original algorithm) ; Delays A*256 cycles + overhead ; Preserved: BC, DE, HL ; Time: A*256+12 cycles (including CALL) delay_256a_12_cycles: or a ; 1 ret z ; 5/2 delay_256a_9_cycles_: - delay 256-4 dec a ; 1 jr nz,- ;3/2 ret ; 4 ; Delays A*65536 cycles + overhead ; Preserved: BC, DE, HL ; Time: A*65536+12 cycles (including CALL) delay_65536a_12_cycles: or a ; 1 ret z ;5/2 delay_65536a_9_cycles_: - delay 65536-4 dec a ; 1 jr nz,- ;3/2 ret ; 4 ; Delays H*256+L cycles + overhead ; Preserved: AF, BC, DE, HL ; Time: H*256+L+51 cycles delay_hl_51_cycles: push af ld a,h call delay_256a_12_cycles ld a,l call delay_a_20_cycles pop af ret ; delay_short_ macro calls into these .ds max_short_delay-10,$00 ; NOP repeated several times delay_unrolled_: ret .macro delay_short_ ARGS n .if n < 0 .fail .endif .if n > max_short_delay .fail .endif .if n == 1 nop .endif .if n == 2 nop nop .endif .if n == 3 .byte $18,$00 ; JR +0 .endif .if n == 4 .byte $18,$00 ; JR +0 nop .endif .if n == 5 .byte $18,$00 ; JR +0 nop nop .endif .if n == 6 .byte $18,$00 ; JR +0 .byte $18,$00 ; JR +0 .endif .if n == 7 push af pop af .endif .if n == 8 push af pop af nop .endif .if n == 9 push af pop af nop nop .endif .if n >= 10 call delay_unrolled_ + 10 - n .endif .endm
duysqubix/rubc
5,377
assets/cpu_instrs/source/common/console.s
; Scrolling text console ; Console is 20x18 characters. Buffers lines, so ; output doesn't appear until a newline or flush. ; If scrolling isn't supported (i.e. SCY is treated ; as if always zero), the first 18 lines will ; still print properly). Also works properly if ; LY isn't supported (always reads back as the same ; value). .define console_width 20 .define console_buf bss+0 .define console_pos bss+console_width .define console_mode bss+console_width+1 .define console_scroll bss+console_width+2 .redefine bss bss+console_width+3 ; Waits for start of LCD blanking period ; Preserved: BC, DE, HL console_wait_vbl: push bc ; Wait for start of vblank, with ; timeout in case LY doesn't work ; or LCD is disabled. ld bc,-1250 - inc bc ld a,b or c jr z,@timeout lda LY cp 144 jr nz,- @timeout: pop bc ret ; Initializes text console console_init: call console_hide ; CGB-specific inits ld a,(gb_id) and gb_id_cgb call nz,@init_cgb ; Clear nametable ld a,' ' call @fill_nametable ; Load tiles ld hl,TILES+$200 ld c,0 call @load_tiles ld hl,TILES+$A00 ld c,$FF call @load_tiles ; Init state ld a,console_width ld (console_pos),a ld a,0 ld (console_mode),a ld a,-8 ld (console_scroll),a call console_scroll_up_ jr console_show @fill_nametable: ld hl,BGMAP0 ld b,4 - ld (hl),a inc l jr nz,- inc h dec b jr nz,- ret @init_cgb: ; Clear palette wreg $FF68,$80 ld b,16 - wreg $FF69,$FF wreg $FF69,$7F wreg $FF69,$00 wreg $FF69,$00 wreg $FF69,$00 wreg $FF69,$00 wreg $FF69,$00 wreg $FF69,$00 dec b jr nz,- ; Clear attributes ld a,1 ld (VBK),a ld a,0 call @fill_nametable ld a,0 ld (VBK),a ret @load_tiles: ld de,ASCII ld b,96 -- push bc ld b,8 - ld a,(de) inc de xor c ldi (hl),a ldi (hl),a dec b jr nz,- pop bc dec b jr nz,-- ret ; Shows console display ; Preserved: AF, BC, DE, HL console_show: push af ; Enable LCD call console_wait_vbl wreg LCDC,$91 wreg SCX,0 wreg BGP,$E4 jp console_apply_scroll_ ; Hides console display by turning LCD off ; Preserved: AF, BC, DE, HL console_hide: push af ; LCD off call console_wait_vbl wreg LCDC,$11 pop af ret ; Changes to normal text mode ; Preserved: BC, DE, HL console_normal: xor a jr console_set_mode ; Changes to inverse text mode ; Preserved: BC, DE, HL console_inverse: ld a,$80 ; Changes console mode to A. ; 0: Normal, $80: Inverse ; Preserved: BC, DE, HL console_set_mode: and $80 ld (console_mode),a ret ; Prints char A to console. Will not appear until ; a newline or flush occurs. ; Preserved: AF, BC, DE, HL console_print: push af cp 10 jr z,console_newline_ push hl push af ld hl,console_pos ldi a,(hl) cp <console_buf jr nz,@not_at_end ; Newline if at end of current line. If this ; were done after writing to buffer, calling ; console_newline would print extra newline. ; Doing it before eliminates this. ; Ignore any spaces at end of line pop af cp ' ' jr z,@ignore_space call console_newline push af @not_at_end: pop af or (hl) ; apply current attributes dec l ; hl = console_pos dec (hl) ; console_pos = console_pos - 1 ld l,(hl) ; hl = position in buffer ld (hl),a @ignore_space pop hl pop af ret ; Displays current line and starts new one ; Preserved: AF, BC, DE, HL console_newline: push af console_newline_: call console_wait_vbl call console_flush_ call console_scroll_up_ call console_flush_ jp console_apply_scroll_ console_scroll_up_: push bc push hl ; Scroll up 8 pixels ld a,(console_scroll) add 8 ld (console_scroll),a ; Start new clear line ld a,' ' ld hl,console_buf + console_width - 1 ld b,console_width - ldd (hl),a dec b jr nz,- ld a,<(console_buf + console_width) ld (console_pos),a pop hl pop bc ret ; Displays current line's contents without scrolling. ; Preserved: A, BC, DE, HL console_flush: push af call console_wait_vbl call console_flush_ console_apply_scroll_: ld a,(console_scroll) sub 136 sta SCY pop af ret console_flush_: push de push hl ; Address of row in nametable ld a,(console_scroll) ld l,a ld h,(>BGMAP0) >> 2 add hl,hl add hl,hl ; Copy line ld de,console_buf + console_width - dec e ld a,(de) ldi (hl),a ld a,e cp <console_buf jr nz,- pop hl pop de ret ASCII: .incbin "console.bin"
duysqubix/rubc
1,035
assets/cpu_instrs/source/common/cpu_speed.s
; CPU speed manipulation. ; Switches to normal speed. No effect on DMG. ; Preserved: BC, DE, HL cpu_norm: ; Do nothing if not CGB ld a,(gb_id) and gb_id_cgb ret z lda KEY1 rlca ret nc jr cpu_speed_toggle ; Switches to double speed. No effect on DMG. ; Preserved: BC, DE, HL cpu_fast: ; Do nothing if not CGB ld a,(gb_id) and gb_id_cgb ret z lda KEY1 rlca ret c cpu_speed_toggle: di lda IE push af xor a sta IE sta IF wreg P1,$30 wreg KEY1,1 stop nop pop af sta IE ret ; Determines current CPU speed without using KEY1. ; A=1 if fast, 0 if normal. Always 0 on DMG. ; Preserved: BC, DE,HL get_cpu_speed: push bc call sync_apu wreg NR14,$C0 wreg NR11,-1 wreg NR12,8 wreg NR14,$C0 ld bc,-$262 - inc bc lda NR52 and 1 jr nz,- ld a,0 bit 7,b jr nz,+ inc a + pop bc ret
duysqubix/rubc
2,793
assets/cpu_instrs/source/common/runtime.s
; Common routines and runtime ; Must be defined by target-specific runtime: ; ; init_runtime: ; target-specific inits ; std_print: ; default routine to print char A ; post_exit: ; called at end of std_exit ; report_byte: ; report A to user .define RUNTIME_INCLUDED 1 .ifndef bss ; address of next normal variable .define bss $D800 .endif .ifndef dp ; address of next direct-page ($FFxx) variable .define dp $FF80 .endif ; DMG/CGB hardware identifier .define gb_id_cgb $10 ; mask for testing CGB bit .define gb_id_devcart $04 ; mask for testing "on devcart" bit .define gb_id bss .redefine bss bss+1 ; Stack is normally here .define std_stack $DFFF ; Copies $1000 bytes from HL to $C000, then jumps to it. ; A is preserved for jumped-to code. copy_to_wram_then_run: ld b,a ld de,$C000 ld c,$10 - ldi a,(hl) ld (de),a inc e jr nz,- inc d dec c jr nz,- ld a,b jp $C000 .ifndef CUSTOM_RESET reset: ; Run code from $C000, as is done on devcart. This ; ensures minimal difference in how it behaves. ld hl,$4000 jp copy_to_wram_then_run .bank 1 slot 1 .org $0 ; otherwise wla pads with lots of zeroes jp std_reset .endif ; Common routines .include "gb.inc" .include "macros.inc" .include "delay.s" .include "crc.s" .include "printing.s" .include "numbers.s" .include "testing.s" ; Sets up hardware and runs main std_reset: ; Init hardware di ld sp,std_stack ; Save DMG/CGB id ld (gb_id),a ; Init hardware .ifndef BUILD_GBS wreg TAC,$00 wreg IF,$00 wreg IE,$00 .endif wreg NR52,0 ; sound off wreg NR52,$80 ; sound on wreg NR51,$FF ; mono wreg NR50,$77 ; volume ; TODO: clear all memory? ld hl,std_print call init_printing call init_testing call init_runtime call reset_crc ; in case init_runtime prints anything delay_msec 250 ; Run user code call main ; Default is to successful exit ld a,0 jp exit ; Exits code and reports value of A exit: ld sp,std_stack push af call + pop af jp post_exit + push af call print_newline call show_printing pop af ; Report exit status cp 1 ; 0: "" ret c ; 1: "Failed" jr nz,+ print_str "Failed",newline ret ; n: "Failed #n" + print_str "Failed #" call print_dec call print_newline ret ; returnOrg puts this code AFTER user code. .section "runtime" returnOrg
duysqubix/rubc
2,575
assets/cpu_instrs/source/common/numbers.s
; Printing of numeric values ; Prints value of indicated register/pair ; as 2/4 hex digits, followed by a space. ; Updates checksum with printed values. ; Preserved: AF, BC, DE, HL print_regs: call print_af call print_bc call print_de call print_hl call print_newline ret print_a: push af print_a_: call print_hex ld a,' ' call print_char_nocrc pop af ret print_af: push af call print_hex pop af print_f: push bc push af pop bc call print_c pop bc ret print_b: push af ld a,b jr print_a_ print_c: push af ld a,c jr print_a_ print_d: push af ld a,d jr print_a_ print_e: push af ld a,e jr print_a_ print_h: push af ld a,h jr print_a_ print_l: push af ld a,l jr print_a_ print_bc: push af push bc print_bc_: ld a,b call print_hex ld a,c pop bc jr print_a_ print_de: push af push bc ld b,d ld c,e jr print_bc_ print_hl: push af push bc ld b,h ld c,l jr print_bc_ ; Prints A as two hex chars and updates checksum ; Preserved: BC, DE, HL print_hex: call update_crc print_hex_nocrc: push af swap a call + pop af + and $0F cp 10 jr c,+ add 7 + add '0' jp print_char_nocrc ; Prints char_nz if Z flag is clear, ; char_z if Z flag is set. ; Preserved: AF, BC, DE, HL .macro print_nz ARGS char_nz, char_z push af ld a,char_nz jr nz,print_nz\@ ld a,char_z print_nz\@: call print_char pop af .endm ; Prints char_nc if C flag is clear, ; char_c if C flag is set. ; Preserved: AF, BC, DE, HL .macro print_nc ARGS char_nc, char_c push af ld a,char_nc jr nz,print_nc\@ ld a,char_c print_nc\@: call print_char pop af .endm ; Prints A as 2 decimal digits ; Preserved: AF, BC, DE, HL print_dec2: push af push bc jr + ; Prints A as 1-3 digit decimal value ; Preserved: AF, BC, DE, HL print_dec: push af push bc cp 10 jr c,++ ld c,100 cp c call nc,@digit + ld c,10 call @digit ++ add '0' call print_char pop bc pop af ret @digit: ld b,'0'-1 - inc b sub c jr nc,- add c ld c,a ld a,b call print_char ld a,c ret
duysqubix/rubc
1,783
assets/cpu_instrs/source/common/instr_test.s
; Framework for CPU instruction tests ; Calls test_instr with each instruction copied ; to instr, with a JP instr_done after it. ; Verifies checksum after testing instruction and ; prints opcode if it's wrong. .include "checksums.s" .include "cpu_speed.s" .include "apu.s" .include "crc_fast.s" .define instr $DEF8 .define rp_temp (instr-4) .define temp bss ; Sets SP to word at addr ; Preserved: BC, DE .macro ldsp ; addr ld a,(\1) ld l,a ld a,((\1)+1) ld h,a ld sp,hl .endm main: call cpu_fast call init_crc_fast call checksums_init set_test 0 ld hl,instrs - ; Copy instruction ld a,(hl+) ld (instr),a ld a,(hl+) ld (instr+1),a ld a,(hl+) ld (instr+2),a push hl ; Put JP instr_done after it ld a,$C3 ld (instr+3),a ld a,<instr_done ld (instr+4),a ld a,>instr_done ld (instr+5),a call reset_crc call test_instr call checksums_compare jr z,passed set_test 1 ld a,(instr) call print_a cp $CB jr nz,+ ld a,(instr+1) call print_a + passed: ; Next instruction pop hl ld a,l cp <instrs_end jr nz,- ld a,h cp >instrs_end jr nz,- jp tests_done ; Updates checksum with AF, BC, DE, and HL checksum_af_bc_de_hl: push hl push af update_crc_fast pop hl ld a,l update_crc_fast ld a,b update_crc_fast ld a,c update_crc_fast ld a,d update_crc_fast ld a,e update_crc_fast pop de ld a,d update_crc_fast ld a,e update_crc_fast ret
duysqubix/rubc
432
assets/cpu_instrs/source/common/multi_custom.s
; RST handlers .bank 0 slot 0 .org 0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret .ds 6,0 inc a ret
dvogel/jitcalc
57
ex/incr.s
.intel_syntax noprefix inc: inc eax add: add eax, 1
dvogel/jitcalc
57
ex/decr.s
.intel_syntax noprefix dec: dec eax sub: sub eax, 1
dvogel/jitcalc
45
ex/xor.s
.intel_syntax noprefix xor: xor eax, eax
dvogel/jitcalc
55
ex/call.s
.intel_syntax noprefix main: call func func: ret
dvogel/jitcalc
47
ex/mov.s
.intel_syntax noprefix mov: mov rcx, 0x02
dvogel/jitcalc
87
ex/muldiv.s
.intel_syntax noprefix mul: mov rcx, 0x02 imul rcx div: mov rcx, 0x02 idiv rcx
ejit-org/ejit-compiler
147,491
asm-test/all-and.s
# generate all ands opcodes. .text .word 0xf2000000 .word 0xf2000400 .word 0xf2000800 .word 0xf2000c00 .word 0xf2001000 .word 0xf2001400 .word 0xf2001800 .word 0xf2001c00 .word 0xf2002000 .word 0xf2002400 .word 0xf2002800 .word 0xf2002c00 .word 0xf2003000 .word 0xf2003400 .word 0xf2003800 .word 0xf2003c00 .word 0xf2004000 .word 0xf2004400 .word 0xf2004800 .word 0xf2004c00 .word 0xf2005000 .word 0xf2005400 .word 0xf2005800 .word 0xf2005c00 .word 0xf2006000 .word 0xf2006400 .word 0xf2006800 .word 0xf2006c00 .word 0xf2007000 .word 0xf2007400 .word 0xf2007800 .word 0xf2007c00 .word 0xf2008000 .word 0xf2008400 .word 0xf2008800 .word 0xf2008c00 .word 0xf2009000 .word 0xf2009400 .word 0xf2009800 .word 0xf2009c00 .word 0xf200a000 .word 0xf200a400 .word 0xf200a800 .word 0xf200ac00 .word 0xf200b000 .word 0xf200b400 .word 0xf200b800 .word 0xf200bc00 .word 0xf200c000 .word 0xf200c400 .word 0xf200c800 .word 0xf200cc00 .word 0xf200d000 .word 0xf200d400 .word 0xf200d800 .word 0xf200dc00 .word 0xf200e000 .word 0xf200e400 .word 0xf200e800 .word 0xf200ec00 .word 0xf200f000 .word 0xf200f400 .word 0xf200f800 .word 0xf200fc00 .word 0xf2010000 .word 0xf2010400 .word 0xf2010800 .word 0xf2010c00 .word 0xf2011000 .word 0xf2011400 .word 0xf2011800 .word 0xf2011c00 .word 0xf2012000 .word 0xf2012400 .word 0xf2012800 .word 0xf2012c00 .word 0xf2013000 .word 0xf2013400 .word 0xf2013800 .word 0xf2013c00 .word 0xf2014000 .word 0xf2014400 .word 0xf2014800 .word 0xf2014c00 .word 0xf2015000 .word 0xf2015400 .word 0xf2015800 .word 0xf2015c00 .word 0xf2016000 .word 0xf2016400 .word 0xf2016800 .word 0xf2016c00 .word 0xf2017000 .word 0xf2017400 .word 0xf2017800 .word 0xf2017c00 .word 0xf2018000 .word 0xf2018400 .word 0xf2018800 .word 0xf2018c00 .word 0xf2019000 .word 0xf2019400 .word 0xf2019800 .word 0xf2019c00 .word 0xf201a000 .word 0xf201a400 .word 0xf201a800 .word 0xf201ac00 .word 0xf201b000 .word 0xf201b400 .word 0xf201b800 .word 0xf201bc00 .word 0xf201c000 .word 0xf201c400 .word 0xf201c800 .word 0xf201cc00 .word 0xf201d000 .word 0xf201d400 .word 0xf201d800 .word 0xf201dc00 .word 0xf201e000 .word 0xf201e400 .word 0xf201e800 .word 0xf201ec00 .word 0xf201f000 .word 0xf201f400 .word 0xf201f800 .word 0xf201fc00 .word 0xf2020000 .word 0xf2020400 .word 0xf2020800 .word 0xf2020c00 .word 0xf2021000 .word 0xf2021400 .word 0xf2021800 .word 0xf2021c00 .word 0xf2022000 .word 0xf2022400 .word 0xf2022800 .word 0xf2022c00 .word 0xf2023000 .word 0xf2023400 .word 0xf2023800 .word 0xf2023c00 .word 0xf2024000 .word 0xf2024400 .word 0xf2024800 .word 0xf2024c00 .word 0xf2025000 .word 0xf2025400 .word 0xf2025800 .word 0xf2025c00 .word 0xf2026000 .word 0xf2026400 .word 0xf2026800 .word 0xf2026c00 .word 0xf2027000 .word 0xf2027400 .word 0xf2027800 .word 0xf2027c00 .word 0xf2028000 .word 0xf2028400 .word 0xf2028800 .word 0xf2028c00 .word 0xf2029000 .word 0xf2029400 .word 0xf2029800 .word 0xf2029c00 .word 0xf202a000 .word 0xf202a400 .word 0xf202a800 .word 0xf202ac00 .word 0xf202b000 .word 0xf202b400 .word 0xf202b800 .word 0xf202bc00 .word 0xf202c000 .word 0xf202c400 .word 0xf202c800 .word 0xf202cc00 .word 0xf202d000 .word 0xf202d400 .word 0xf202d800 .word 0xf202dc00 .word 0xf202e000 .word 0xf202e400 .word 0xf202e800 .word 0xf202ec00 .word 0xf202f000 .word 0xf202f400 .word 0xf202f800 .word 0xf202fc00 .word 0xf2030000 .word 0xf2030400 .word 0xf2030800 .word 0xf2030c00 .word 0xf2031000 .word 0xf2031400 .word 0xf2031800 .word 0xf2031c00 .word 0xf2032000 .word 0xf2032400 .word 0xf2032800 .word 0xf2032c00 .word 0xf2033000 .word 0xf2033400 .word 0xf2033800 .word 0xf2033c00 .word 0xf2034000 .word 0xf2034400 .word 0xf2034800 .word 0xf2034c00 .word 0xf2035000 .word 0xf2035400 .word 0xf2035800 .word 0xf2035c00 .word 0xf2036000 .word 0xf2036400 .word 0xf2036800 .word 0xf2036c00 .word 0xf2037000 .word 0xf2037400 .word 0xf2037800 .word 0xf2037c00 .word 0xf2038000 .word 0xf2038400 .word 0xf2038800 .word 0xf2038c00 .word 0xf2039000 .word 0xf2039400 .word 0xf2039800 .word 0xf2039c00 .word 0xf203a000 .word 0xf203a400 .word 0xf203a800 .word 0xf203ac00 .word 0xf203b000 .word 0xf203b400 .word 0xf203b800 .word 0xf203bc00 .word 0xf203c000 .word 0xf203c400 .word 0xf203c800 .word 0xf203cc00 .word 0xf203d000 .word 0xf203d400 .word 0xf203d800 .word 0xf203dc00 .word 0xf203e000 .word 0xf203e400 .word 0xf203e800 .word 0xf203ec00 .word 0xf203f000 .word 0xf203f400 .word 0xf203f800 .word 0xf203fc00 .word 0xf2040000 .word 0xf2040400 .word 0xf2040800 .word 0xf2040c00 .word 0xf2041000 .word 0xf2041400 .word 0xf2041800 .word 0xf2041c00 .word 0xf2042000 .word 0xf2042400 .word 0xf2042800 .word 0xf2042c00 .word 0xf2043000 .word 0xf2043400 .word 0xf2043800 .word 0xf2043c00 .word 0xf2044000 .word 0xf2044400 .word 0xf2044800 .word 0xf2044c00 .word 0xf2045000 .word 0xf2045400 .word 0xf2045800 .word 0xf2045c00 .word 0xf2046000 .word 0xf2046400 .word 0xf2046800 .word 0xf2046c00 .word 0xf2047000 .word 0xf2047400 .word 0xf2047800 .word 0xf2047c00 .word 0xf2048000 .word 0xf2048400 .word 0xf2048800 .word 0xf2048c00 .word 0xf2049000 .word 0xf2049400 .word 0xf2049800 .word 0xf2049c00 .word 0xf204a000 .word 0xf204a400 .word 0xf204a800 .word 0xf204ac00 .word 0xf204b000 .word 0xf204b400 .word 0xf204b800 .word 0xf204bc00 .word 0xf204c000 .word 0xf204c400 .word 0xf204c800 .word 0xf204cc00 .word 0xf204d000 .word 0xf204d400 .word 0xf204d800 .word 0xf204dc00 .word 0xf204e000 .word 0xf204e400 .word 0xf204e800 .word 0xf204ec00 .word 0xf204f000 .word 0xf204f400 .word 0xf204f800 .word 0xf204fc00 .word 0xf2050000 .word 0xf2050400 .word 0xf2050800 .word 0xf2050c00 .word 0xf2051000 .word 0xf2051400 .word 0xf2051800 .word 0xf2051c00 .word 0xf2052000 .word 0xf2052400 .word 0xf2052800 .word 0xf2052c00 .word 0xf2053000 .word 0xf2053400 .word 0xf2053800 .word 0xf2053c00 .word 0xf2054000 .word 0xf2054400 .word 0xf2054800 .word 0xf2054c00 .word 0xf2055000 .word 0xf2055400 .word 0xf2055800 .word 0xf2055c00 .word 0xf2056000 .word 0xf2056400 .word 0xf2056800 .word 0xf2056c00 .word 0xf2057000 .word 0xf2057400 .word 0xf2057800 .word 0xf2057c00 .word 0xf2058000 .word 0xf2058400 .word 0xf2058800 .word 0xf2058c00 .word 0xf2059000 .word 0xf2059400 .word 0xf2059800 .word 0xf2059c00 .word 0xf205a000 .word 0xf205a400 .word 0xf205a800 .word 0xf205ac00 .word 0xf205b000 .word 0xf205b400 .word 0xf205b800 .word 0xf205bc00 .word 0xf205c000 .word 0xf205c400 .word 0xf205c800 .word 0xf205cc00 .word 0xf205d000 .word 0xf205d400 .word 0xf205d800 .word 0xf205dc00 .word 0xf205e000 .word 0xf205e400 .word 0xf205e800 .word 0xf205ec00 .word 0xf205f000 .word 0xf205f400 .word 0xf205f800 .word 0xf205fc00 .word 0xf2060000 .word 0xf2060400 .word 0xf2060800 .word 0xf2060c00 .word 0xf2061000 .word 0xf2061400 .word 0xf2061800 .word 0xf2061c00 .word 0xf2062000 .word 0xf2062400 .word 0xf2062800 .word 0xf2062c00 .word 0xf2063000 .word 0xf2063400 .word 0xf2063800 .word 0xf2063c00 .word 0xf2064000 .word 0xf2064400 .word 0xf2064800 .word 0xf2064c00 .word 0xf2065000 .word 0xf2065400 .word 0xf2065800 .word 0xf2065c00 .word 0xf2066000 .word 0xf2066400 .word 0xf2066800 .word 0xf2066c00 .word 0xf2067000 .word 0xf2067400 .word 0xf2067800 .word 0xf2067c00 .word 0xf2068000 .word 0xf2068400 .word 0xf2068800 .word 0xf2068c00 .word 0xf2069000 .word 0xf2069400 .word 0xf2069800 .word 0xf2069c00 .word 0xf206a000 .word 0xf206a400 .word 0xf206a800 .word 0xf206ac00 .word 0xf206b000 .word 0xf206b400 .word 0xf206b800 .word 0xf206bc00 .word 0xf206c000 .word 0xf206c400 .word 0xf206c800 .word 0xf206cc00 .word 0xf206d000 .word 0xf206d400 .word 0xf206d800 .word 0xf206dc00 .word 0xf206e000 .word 0xf206e400 .word 0xf206e800 .word 0xf206ec00 .word 0xf206f000 .word 0xf206f400 .word 0xf206f800 .word 0xf206fc00 .word 0xf2070000 .word 0xf2070400 .word 0xf2070800 .word 0xf2070c00 .word 0xf2071000 .word 0xf2071400 .word 0xf2071800 .word 0xf2071c00 .word 0xf2072000 .word 0xf2072400 .word 0xf2072800 .word 0xf2072c00 .word 0xf2073000 .word 0xf2073400 .word 0xf2073800 .word 0xf2073c00 .word 0xf2074000 .word 0xf2074400 .word 0xf2074800 .word 0xf2074c00 .word 0xf2075000 .word 0xf2075400 .word 0xf2075800 .word 0xf2075c00 .word 0xf2076000 .word 0xf2076400 .word 0xf2076800 .word 0xf2076c00 .word 0xf2077000 .word 0xf2077400 .word 0xf2077800 .word 0xf2077c00 .word 0xf2078000 .word 0xf2078400 .word 0xf2078800 .word 0xf2078c00 .word 0xf2079000 .word 0xf2079400 .word 0xf2079800 .word 0xf2079c00 .word 0xf207a000 .word 0xf207a400 .word 0xf207a800 .word 0xf207ac00 .word 0xf207b000 .word 0xf207b400 .word 0xf207b800 .word 0xf207bc00 .word 0xf207c000 .word 0xf207c400 .word 0xf207c800 .word 0xf207cc00 .word 0xf207d000 .word 0xf207d400 .word 0xf207d800 .word 0xf207dc00 .word 0xf207e000 .word 0xf207e400 .word 0xf207e800 .word 0xf207ec00 .word 0xf207f000 .word 0xf207f400 .word 0xf207f800 .word 0xf207fc00 .word 0xf2080000 .word 0xf2080400 .word 0xf2080800 .word 0xf2080c00 .word 0xf2081000 .word 0xf2081400 .word 0xf2081800 .word 0xf2081c00 .word 0xf2082000 .word 0xf2082400 .word 0xf2082800 .word 0xf2082c00 .word 0xf2083000 .word 0xf2083400 .word 0xf2083800 .word 0xf2083c00 .word 0xf2084000 .word 0xf2084400 .word 0xf2084800 .word 0xf2084c00 .word 0xf2085000 .word 0xf2085400 .word 0xf2085800 .word 0xf2085c00 .word 0xf2086000 .word 0xf2086400 .word 0xf2086800 .word 0xf2086c00 .word 0xf2087000 .word 0xf2087400 .word 0xf2087800 .word 0xf2087c00 .word 0xf2088000 .word 0xf2088400 .word 0xf2088800 .word 0xf2088c00 .word 0xf2089000 .word 0xf2089400 .word 0xf2089800 .word 0xf2089c00 .word 0xf208a000 .word 0xf208a400 .word 0xf208a800 .word 0xf208ac00 .word 0xf208b000 .word 0xf208b400 .word 0xf208b800 .word 0xf208bc00 .word 0xf208c000 .word 0xf208c400 .word 0xf208c800 .word 0xf208cc00 .word 0xf208d000 .word 0xf208d400 .word 0xf208d800 .word 0xf208dc00 .word 0xf208e000 .word 0xf208e400 .word 0xf208e800 .word 0xf208ec00 .word 0xf208f000 .word 0xf208f400 .word 0xf208f800 .word 0xf208fc00 .word 0xf2090000 .word 0xf2090400 .word 0xf2090800 .word 0xf2090c00 .word 0xf2091000 .word 0xf2091400 .word 0xf2091800 .word 0xf2091c00 .word 0xf2092000 .word 0xf2092400 .word 0xf2092800 .word 0xf2092c00 .word 0xf2093000 .word 0xf2093400 .word 0xf2093800 .word 0xf2093c00 .word 0xf2094000 .word 0xf2094400 .word 0xf2094800 .word 0xf2094c00 .word 0xf2095000 .word 0xf2095400 .word 0xf2095800 .word 0xf2095c00 .word 0xf2096000 .word 0xf2096400 .word 0xf2096800 .word 0xf2096c00 .word 0xf2097000 .word 0xf2097400 .word 0xf2097800 .word 0xf2097c00 .word 0xf2098000 .word 0xf2098400 .word 0xf2098800 .word 0xf2098c00 .word 0xf2099000 .word 0xf2099400 .word 0xf2099800 .word 0xf2099c00 .word 0xf209a000 .word 0xf209a400 .word 0xf209a800 .word 0xf209ac00 .word 0xf209b000 .word 0xf209b400 .word 0xf209b800 .word 0xf209bc00 .word 0xf209c000 .word 0xf209c400 .word 0xf209c800 .word 0xf209cc00 .word 0xf209d000 .word 0xf209d400 .word 0xf209d800 .word 0xf209dc00 .word 0xf209e000 .word 0xf209e400 .word 0xf209e800 .word 0xf209ec00 .word 0xf209f000 .word 0xf209f400 .word 0xf209f800 .word 0xf209fc00 .word 0xf20a0000 .word 0xf20a0400 .word 0xf20a0800 .word 0xf20a0c00 .word 0xf20a1000 .word 0xf20a1400 .word 0xf20a1800 .word 0xf20a1c00 .word 0xf20a2000 .word 0xf20a2400 .word 0xf20a2800 .word 0xf20a2c00 .word 0xf20a3000 .word 0xf20a3400 .word 0xf20a3800 .word 0xf20a3c00 .word 0xf20a4000 .word 0xf20a4400 .word 0xf20a4800 .word 0xf20a4c00 .word 0xf20a5000 .word 0xf20a5400 .word 0xf20a5800 .word 0xf20a5c00 .word 0xf20a6000 .word 0xf20a6400 .word 0xf20a6800 .word 0xf20a6c00 .word 0xf20a7000 .word 0xf20a7400 .word 0xf20a7800 .word 0xf20a7c00 .word 0xf20a8000 .word 0xf20a8400 .word 0xf20a8800 .word 0xf20a8c00 .word 0xf20a9000 .word 0xf20a9400 .word 0xf20a9800 .word 0xf20a9c00 .word 0xf20aa000 .word 0xf20aa400 .word 0xf20aa800 .word 0xf20aac00 .word 0xf20ab000 .word 0xf20ab400 .word 0xf20ab800 .word 0xf20abc00 .word 0xf20ac000 .word 0xf20ac400 .word 0xf20ac800 .word 0xf20acc00 .word 0xf20ad000 .word 0xf20ad400 .word 0xf20ad800 .word 0xf20adc00 .word 0xf20ae000 .word 0xf20ae400 .word 0xf20ae800 .word 0xf20aec00 .word 0xf20af000 .word 0xf20af400 .word 0xf20af800 .word 0xf20afc00 .word 0xf20b0000 .word 0xf20b0400 .word 0xf20b0800 .word 0xf20b0c00 .word 0xf20b1000 .word 0xf20b1400 .word 0xf20b1800 .word 0xf20b1c00 .word 0xf20b2000 .word 0xf20b2400 .word 0xf20b2800 .word 0xf20b2c00 .word 0xf20b3000 .word 0xf20b3400 .word 0xf20b3800 .word 0xf20b3c00 .word 0xf20b4000 .word 0xf20b4400 .word 0xf20b4800 .word 0xf20b4c00 .word 0xf20b5000 .word 0xf20b5400 .word 0xf20b5800 .word 0xf20b5c00 .word 0xf20b6000 .word 0xf20b6400 .word 0xf20b6800 .word 0xf20b6c00 .word 0xf20b7000 .word 0xf20b7400 .word 0xf20b7800 .word 0xf20b7c00 .word 0xf20b8000 .word 0xf20b8400 .word 0xf20b8800 .word 0xf20b8c00 .word 0xf20b9000 .word 0xf20b9400 .word 0xf20b9800 .word 0xf20b9c00 .word 0xf20ba000 .word 0xf20ba400 .word 0xf20ba800 .word 0xf20bac00 .word 0xf20bb000 .word 0xf20bb400 .word 0xf20bb800 .word 0xf20bbc00 .word 0xf20bc000 .word 0xf20bc400 .word 0xf20bc800 .word 0xf20bcc00 .word 0xf20bd000 .word 0xf20bd400 .word 0xf20bd800 .word 0xf20bdc00 .word 0xf20be000 .word 0xf20be400 .word 0xf20be800 .word 0xf20bec00 .word 0xf20bf000 .word 0xf20bf400 .word 0xf20bf800 .word 0xf20bfc00 .word 0xf20c0000 .word 0xf20c0400 .word 0xf20c0800 .word 0xf20c0c00 .word 0xf20c1000 .word 0xf20c1400 .word 0xf20c1800 .word 0xf20c1c00 .word 0xf20c2000 .word 0xf20c2400 .word 0xf20c2800 .word 0xf20c2c00 .word 0xf20c3000 .word 0xf20c3400 .word 0xf20c3800 .word 0xf20c3c00 .word 0xf20c4000 .word 0xf20c4400 .word 0xf20c4800 .word 0xf20c4c00 .word 0xf20c5000 .word 0xf20c5400 .word 0xf20c5800 .word 0xf20c5c00 .word 0xf20c6000 .word 0xf20c6400 .word 0xf20c6800 .word 0xf20c6c00 .word 0xf20c7000 .word 0xf20c7400 .word 0xf20c7800 .word 0xf20c7c00 .word 0xf20c8000 .word 0xf20c8400 .word 0xf20c8800 .word 0xf20c8c00 .word 0xf20c9000 .word 0xf20c9400 .word 0xf20c9800 .word 0xf20c9c00 .word 0xf20ca000 .word 0xf20ca400 .word 0xf20ca800 .word 0xf20cac00 .word 0xf20cb000 .word 0xf20cb400 .word 0xf20cb800 .word 0xf20cbc00 .word 0xf20cc000 .word 0xf20cc400 .word 0xf20cc800 .word 0xf20ccc00 .word 0xf20cd000 .word 0xf20cd400 .word 0xf20cd800 .word 0xf20cdc00 .word 0xf20ce000 .word 0xf20ce400 .word 0xf20ce800 .word 0xf20cec00 .word 0xf20cf000 .word 0xf20cf400 .word 0xf20cf800 .word 0xf20cfc00 .word 0xf20d0000 .word 0xf20d0400 .word 0xf20d0800 .word 0xf20d0c00 .word 0xf20d1000 .word 0xf20d1400 .word 0xf20d1800 .word 0xf20d1c00 .word 0xf20d2000 .word 0xf20d2400 .word 0xf20d2800 .word 0xf20d2c00 .word 0xf20d3000 .word 0xf20d3400 .word 0xf20d3800 .word 0xf20d3c00 .word 0xf20d4000 .word 0xf20d4400 .word 0xf20d4800 .word 0xf20d4c00 .word 0xf20d5000 .word 0xf20d5400 .word 0xf20d5800 .word 0xf20d5c00 .word 0xf20d6000 .word 0xf20d6400 .word 0xf20d6800 .word 0xf20d6c00 .word 0xf20d7000 .word 0xf20d7400 .word 0xf20d7800 .word 0xf20d7c00 .word 0xf20d8000 .word 0xf20d8400 .word 0xf20d8800 .word 0xf20d8c00 .word 0xf20d9000 .word 0xf20d9400 .word 0xf20d9800 .word 0xf20d9c00 .word 0xf20da000 .word 0xf20da400 .word 0xf20da800 .word 0xf20dac00 .word 0xf20db000 .word 0xf20db400 .word 0xf20db800 .word 0xf20dbc00 .word 0xf20dc000 .word 0xf20dc400 .word 0xf20dc800 .word 0xf20dcc00 .word 0xf20dd000 .word 0xf20dd400 .word 0xf20dd800 .word 0xf20ddc00 .word 0xf20de000 .word 0xf20de400 .word 0xf20de800 .word 0xf20dec00 .word 0xf20df000 .word 0xf20df400 .word 0xf20df800 .word 0xf20dfc00 .word 0xf20e0000 .word 0xf20e0400 .word 0xf20e0800 .word 0xf20e0c00 .word 0xf20e1000 .word 0xf20e1400 .word 0xf20e1800 .word 0xf20e1c00 .word 0xf20e2000 .word 0xf20e2400 .word 0xf20e2800 .word 0xf20e2c00 .word 0xf20e3000 .word 0xf20e3400 .word 0xf20e3800 .word 0xf20e3c00 .word 0xf20e4000 .word 0xf20e4400 .word 0xf20e4800 .word 0xf20e4c00 .word 0xf20e5000 .word 0xf20e5400 .word 0xf20e5800 .word 0xf20e5c00 .word 0xf20e6000 .word 0xf20e6400 .word 0xf20e6800 .word 0xf20e6c00 .word 0xf20e7000 .word 0xf20e7400 .word 0xf20e7800 .word 0xf20e7c00 .word 0xf20e8000 .word 0xf20e8400 .word 0xf20e8800 .word 0xf20e8c00 .word 0xf20e9000 .word 0xf20e9400 .word 0xf20e9800 .word 0xf20e9c00 .word 0xf20ea000 .word 0xf20ea400 .word 0xf20ea800 .word 0xf20eac00 .word 0xf20eb000 .word 0xf20eb400 .word 0xf20eb800 .word 0xf20ebc00 .word 0xf20ec000 .word 0xf20ec400 .word 0xf20ec800 .word 0xf20ecc00 .word 0xf20ed000 .word 0xf20ed400 .word 0xf20ed800 .word 0xf20edc00 .word 0xf20ee000 .word 0xf20ee400 .word 0xf20ee800 .word 0xf20eec00 .word 0xf20ef000 .word 0xf20ef400 .word 0xf20ef800 .word 0xf20efc00 .word 0xf20f0000 .word 0xf20f0400 .word 0xf20f0800 .word 0xf20f0c00 .word 0xf20f1000 .word 0xf20f1400 .word 0xf20f1800 .word 0xf20f1c00 .word 0xf20f2000 .word 0xf20f2400 .word 0xf20f2800 .word 0xf20f2c00 .word 0xf20f3000 .word 0xf20f3400 .word 0xf20f3800 .word 0xf20f3c00 .word 0xf20f4000 .word 0xf20f4400 .word 0xf20f4800 .word 0xf20f4c00 .word 0xf20f5000 .word 0xf20f5400 .word 0xf20f5800 .word 0xf20f5c00 .word 0xf20f6000 .word 0xf20f6400 .word 0xf20f6800 .word 0xf20f6c00 .word 0xf20f7000 .word 0xf20f7400 .word 0xf20f7800 .word 0xf20f7c00 .word 0xf20f8000 .word 0xf20f8400 .word 0xf20f8800 .word 0xf20f8c00 .word 0xf20f9000 .word 0xf20f9400 .word 0xf20f9800 .word 0xf20f9c00 .word 0xf20fa000 .word 0xf20fa400 .word 0xf20fa800 .word 0xf20fac00 .word 0xf20fb000 .word 0xf20fb400 .word 0xf20fb800 .word 0xf20fbc00 .word 0xf20fc000 .word 0xf20fc400 .word 0xf20fc800 .word 0xf20fcc00 .word 0xf20fd000 .word 0xf20fd400 .word 0xf20fd800 .word 0xf20fdc00 .word 0xf20fe000 .word 0xf20fe400 .word 0xf20fe800 .word 0xf20fec00 .word 0xf20ff000 .word 0xf20ff400 .word 0xf20ff800 .word 0xf20ffc00 .word 0xf2100000 .word 0xf2100400 .word 0xf2100800 .word 0xf2100c00 .word 0xf2101000 .word 0xf2101400 .word 0xf2101800 .word 0xf2101c00 .word 0xf2102000 .word 0xf2102400 .word 0xf2102800 .word 0xf2102c00 .word 0xf2103000 .word 0xf2103400 .word 0xf2103800 .word 0xf2103c00 .word 0xf2104000 .word 0xf2104400 .word 0xf2104800 .word 0xf2104c00 .word 0xf2105000 .word 0xf2105400 .word 0xf2105800 .word 0xf2105c00 .word 0xf2106000 .word 0xf2106400 .word 0xf2106800 .word 0xf2106c00 .word 0xf2107000 .word 0xf2107400 .word 0xf2107800 .word 0xf2107c00 .word 0xf2108000 .word 0xf2108400 .word 0xf2108800 .word 0xf2108c00 .word 0xf2109000 .word 0xf2109400 .word 0xf2109800 .word 0xf2109c00 .word 0xf210a000 .word 0xf210a400 .word 0xf210a800 .word 0xf210ac00 .word 0xf210b000 .word 0xf210b400 .word 0xf210b800 .word 0xf210bc00 .word 0xf210c000 .word 0xf210c400 .word 0xf210c800 .word 0xf210cc00 .word 0xf210d000 .word 0xf210d400 .word 0xf210d800 .word 0xf210dc00 .word 0xf210e000 .word 0xf210e400 .word 0xf210e800 .word 0xf210ec00 .word 0xf210f000 .word 0xf210f400 .word 0xf210f800 .word 0xf210fc00 .word 0xf2110000 .word 0xf2110400 .word 0xf2110800 .word 0xf2110c00 .word 0xf2111000 .word 0xf2111400 .word 0xf2111800 .word 0xf2111c00 .word 0xf2112000 .word 0xf2112400 .word 0xf2112800 .word 0xf2112c00 .word 0xf2113000 .word 0xf2113400 .word 0xf2113800 .word 0xf2113c00 .word 0xf2114000 .word 0xf2114400 .word 0xf2114800 .word 0xf2114c00 .word 0xf2115000 .word 0xf2115400 .word 0xf2115800 .word 0xf2115c00 .word 0xf2116000 .word 0xf2116400 .word 0xf2116800 .word 0xf2116c00 .word 0xf2117000 .word 0xf2117400 .word 0xf2117800 .word 0xf2117c00 .word 0xf2118000 .word 0xf2118400 .word 0xf2118800 .word 0xf2118c00 .word 0xf2119000 .word 0xf2119400 .word 0xf2119800 .word 0xf2119c00 .word 0xf211a000 .word 0xf211a400 .word 0xf211a800 .word 0xf211ac00 .word 0xf211b000 .word 0xf211b400 .word 0xf211b800 .word 0xf211bc00 .word 0xf211c000 .word 0xf211c400 .word 0xf211c800 .word 0xf211cc00 .word 0xf211d000 .word 0xf211d400 .word 0xf211d800 .word 0xf211dc00 .word 0xf211e000 .word 0xf211e400 .word 0xf211e800 .word 0xf211ec00 .word 0xf211f000 .word 0xf211f400 .word 0xf211f800 .word 0xf211fc00 .word 0xf2120000 .word 0xf2120400 .word 0xf2120800 .word 0xf2120c00 .word 0xf2121000 .word 0xf2121400 .word 0xf2121800 .word 0xf2121c00 .word 0xf2122000 .word 0xf2122400 .word 0xf2122800 .word 0xf2122c00 .word 0xf2123000 .word 0xf2123400 .word 0xf2123800 .word 0xf2123c00 .word 0xf2124000 .word 0xf2124400 .word 0xf2124800 .word 0xf2124c00 .word 0xf2125000 .word 0xf2125400 .word 0xf2125800 .word 0xf2125c00 .word 0xf2126000 .word 0xf2126400 .word 0xf2126800 .word 0xf2126c00 .word 0xf2127000 .word 0xf2127400 .word 0xf2127800 .word 0xf2127c00 .word 0xf2128000 .word 0xf2128400 .word 0xf2128800 .word 0xf2128c00 .word 0xf2129000 .word 0xf2129400 .word 0xf2129800 .word 0xf2129c00 .word 0xf212a000 .word 0xf212a400 .word 0xf212a800 .word 0xf212ac00 .word 0xf212b000 .word 0xf212b400 .word 0xf212b800 .word 0xf212bc00 .word 0xf212c000 .word 0xf212c400 .word 0xf212c800 .word 0xf212cc00 .word 0xf212d000 .word 0xf212d400 .word 0xf212d800 .word 0xf212dc00 .word 0xf212e000 .word 0xf212e400 .word 0xf212e800 .word 0xf212ec00 .word 0xf212f000 .word 0xf212f400 .word 0xf212f800 .word 0xf212fc00 .word 0xf2130000 .word 0xf2130400 .word 0xf2130800 .word 0xf2130c00 .word 0xf2131000 .word 0xf2131400 .word 0xf2131800 .word 0xf2131c00 .word 0xf2132000 .word 0xf2132400 .word 0xf2132800 .word 0xf2132c00 .word 0xf2133000 .word 0xf2133400 .word 0xf2133800 .word 0xf2133c00 .word 0xf2134000 .word 0xf2134400 .word 0xf2134800 .word 0xf2134c00 .word 0xf2135000 .word 0xf2135400 .word 0xf2135800 .word 0xf2135c00 .word 0xf2136000 .word 0xf2136400 .word 0xf2136800 .word 0xf2136c00 .word 0xf2137000 .word 0xf2137400 .word 0xf2137800 .word 0xf2137c00 .word 0xf2138000 .word 0xf2138400 .word 0xf2138800 .word 0xf2138c00 .word 0xf2139000 .word 0xf2139400 .word 0xf2139800 .word 0xf2139c00 .word 0xf213a000 .word 0xf213a400 .word 0xf213a800 .word 0xf213ac00 .word 0xf213b000 .word 0xf213b400 .word 0xf213b800 .word 0xf213bc00 .word 0xf213c000 .word 0xf213c400 .word 0xf213c800 .word 0xf213cc00 .word 0xf213d000 .word 0xf213d400 .word 0xf213d800 .word 0xf213dc00 .word 0xf213e000 .word 0xf213e400 .word 0xf213e800 .word 0xf213ec00 .word 0xf213f000 .word 0xf213f400 .word 0xf213f800 .word 0xf213fc00 .word 0xf2140000 .word 0xf2140400 .word 0xf2140800 .word 0xf2140c00 .word 0xf2141000 .word 0xf2141400 .word 0xf2141800 .word 0xf2141c00 .word 0xf2142000 .word 0xf2142400 .word 0xf2142800 .word 0xf2142c00 .word 0xf2143000 .word 0xf2143400 .word 0xf2143800 .word 0xf2143c00 .word 0xf2144000 .word 0xf2144400 .word 0xf2144800 .word 0xf2144c00 .word 0xf2145000 .word 0xf2145400 .word 0xf2145800 .word 0xf2145c00 .word 0xf2146000 .word 0xf2146400 .word 0xf2146800 .word 0xf2146c00 .word 0xf2147000 .word 0xf2147400 .word 0xf2147800 .word 0xf2147c00 .word 0xf2148000 .word 0xf2148400 .word 0xf2148800 .word 0xf2148c00 .word 0xf2149000 .word 0xf2149400 .word 0xf2149800 .word 0xf2149c00 .word 0xf214a000 .word 0xf214a400 .word 0xf214a800 .word 0xf214ac00 .word 0xf214b000 .word 0xf214b400 .word 0xf214b800 .word 0xf214bc00 .word 0xf214c000 .word 0xf214c400 .word 0xf214c800 .word 0xf214cc00 .word 0xf214d000 .word 0xf214d400 .word 0xf214d800 .word 0xf214dc00 .word 0xf214e000 .word 0xf214e400 .word 0xf214e800 .word 0xf214ec00 .word 0xf214f000 .word 0xf214f400 .word 0xf214f800 .word 0xf214fc00 .word 0xf2150000 .word 0xf2150400 .word 0xf2150800 .word 0xf2150c00 .word 0xf2151000 .word 0xf2151400 .word 0xf2151800 .word 0xf2151c00 .word 0xf2152000 .word 0xf2152400 .word 0xf2152800 .word 0xf2152c00 .word 0xf2153000 .word 0xf2153400 .word 0xf2153800 .word 0xf2153c00 .word 0xf2154000 .word 0xf2154400 .word 0xf2154800 .word 0xf2154c00 .word 0xf2155000 .word 0xf2155400 .word 0xf2155800 .word 0xf2155c00 .word 0xf2156000 .word 0xf2156400 .word 0xf2156800 .word 0xf2156c00 .word 0xf2157000 .word 0xf2157400 .word 0xf2157800 .word 0xf2157c00 .word 0xf2158000 .word 0xf2158400 .word 0xf2158800 .word 0xf2158c00 .word 0xf2159000 .word 0xf2159400 .word 0xf2159800 .word 0xf2159c00 .word 0xf215a000 .word 0xf215a400 .word 0xf215a800 .word 0xf215ac00 .word 0xf215b000 .word 0xf215b400 .word 0xf215b800 .word 0xf215bc00 .word 0xf215c000 .word 0xf215c400 .word 0xf215c800 .word 0xf215cc00 .word 0xf215d000 .word 0xf215d400 .word 0xf215d800 .word 0xf215dc00 .word 0xf215e000 .word 0xf215e400 .word 0xf215e800 .word 0xf215ec00 .word 0xf215f000 .word 0xf215f400 .word 0xf215f800 .word 0xf215fc00 .word 0xf2160000 .word 0xf2160400 .word 0xf2160800 .word 0xf2160c00 .word 0xf2161000 .word 0xf2161400 .word 0xf2161800 .word 0xf2161c00 .word 0xf2162000 .word 0xf2162400 .word 0xf2162800 .word 0xf2162c00 .word 0xf2163000 .word 0xf2163400 .word 0xf2163800 .word 0xf2163c00 .word 0xf2164000 .word 0xf2164400 .word 0xf2164800 .word 0xf2164c00 .word 0xf2165000 .word 0xf2165400 .word 0xf2165800 .word 0xf2165c00 .word 0xf2166000 .word 0xf2166400 .word 0xf2166800 .word 0xf2166c00 .word 0xf2167000 .word 0xf2167400 .word 0xf2167800 .word 0xf2167c00 .word 0xf2168000 .word 0xf2168400 .word 0xf2168800 .word 0xf2168c00 .word 0xf2169000 .word 0xf2169400 .word 0xf2169800 .word 0xf2169c00 .word 0xf216a000 .word 0xf216a400 .word 0xf216a800 .word 0xf216ac00 .word 0xf216b000 .word 0xf216b400 .word 0xf216b800 .word 0xf216bc00 .word 0xf216c000 .word 0xf216c400 .word 0xf216c800 .word 0xf216cc00 .word 0xf216d000 .word 0xf216d400 .word 0xf216d800 .word 0xf216dc00 .word 0xf216e000 .word 0xf216e400 .word 0xf216e800 .word 0xf216ec00 .word 0xf216f000 .word 0xf216f400 .word 0xf216f800 .word 0xf216fc00 .word 0xf2170000 .word 0xf2170400 .word 0xf2170800 .word 0xf2170c00 .word 0xf2171000 .word 0xf2171400 .word 0xf2171800 .word 0xf2171c00 .word 0xf2172000 .word 0xf2172400 .word 0xf2172800 .word 0xf2172c00 .word 0xf2173000 .word 0xf2173400 .word 0xf2173800 .word 0xf2173c00 .word 0xf2174000 .word 0xf2174400 .word 0xf2174800 .word 0xf2174c00 .word 0xf2175000 .word 0xf2175400 .word 0xf2175800 .word 0xf2175c00 .word 0xf2176000 .word 0xf2176400 .word 0xf2176800 .word 0xf2176c00 .word 0xf2177000 .word 0xf2177400 .word 0xf2177800 .word 0xf2177c00 .word 0xf2178000 .word 0xf2178400 .word 0xf2178800 .word 0xf2178c00 .word 0xf2179000 .word 0xf2179400 .word 0xf2179800 .word 0xf2179c00 .word 0xf217a000 .word 0xf217a400 .word 0xf217a800 .word 0xf217ac00 .word 0xf217b000 .word 0xf217b400 .word 0xf217b800 .word 0xf217bc00 .word 0xf217c000 .word 0xf217c400 .word 0xf217c800 .word 0xf217cc00 .word 0xf217d000 .word 0xf217d400 .word 0xf217d800 .word 0xf217dc00 .word 0xf217e000 .word 0xf217e400 .word 0xf217e800 .word 0xf217ec00 .word 0xf217f000 .word 0xf217f400 .word 0xf217f800 .word 0xf217fc00 .word 0xf2180000 .word 0xf2180400 .word 0xf2180800 .word 0xf2180c00 .word 0xf2181000 .word 0xf2181400 .word 0xf2181800 .word 0xf2181c00 .word 0xf2182000 .word 0xf2182400 .word 0xf2182800 .word 0xf2182c00 .word 0xf2183000 .word 0xf2183400 .word 0xf2183800 .word 0xf2183c00 .word 0xf2184000 .word 0xf2184400 .word 0xf2184800 .word 0xf2184c00 .word 0xf2185000 .word 0xf2185400 .word 0xf2185800 .word 0xf2185c00 .word 0xf2186000 .word 0xf2186400 .word 0xf2186800 .word 0xf2186c00 .word 0xf2187000 .word 0xf2187400 .word 0xf2187800 .word 0xf2187c00 .word 0xf2188000 .word 0xf2188400 .word 0xf2188800 .word 0xf2188c00 .word 0xf2189000 .word 0xf2189400 .word 0xf2189800 .word 0xf2189c00 .word 0xf218a000 .word 0xf218a400 .word 0xf218a800 .word 0xf218ac00 .word 0xf218b000 .word 0xf218b400 .word 0xf218b800 .word 0xf218bc00 .word 0xf218c000 .word 0xf218c400 .word 0xf218c800 .word 0xf218cc00 .word 0xf218d000 .word 0xf218d400 .word 0xf218d800 .word 0xf218dc00 .word 0xf218e000 .word 0xf218e400 .word 0xf218e800 .word 0xf218ec00 .word 0xf218f000 .word 0xf218f400 .word 0xf218f800 .word 0xf218fc00 .word 0xf2190000 .word 0xf2190400 .word 0xf2190800 .word 0xf2190c00 .word 0xf2191000 .word 0xf2191400 .word 0xf2191800 .word 0xf2191c00 .word 0xf2192000 .word 0xf2192400 .word 0xf2192800 .word 0xf2192c00 .word 0xf2193000 .word 0xf2193400 .word 0xf2193800 .word 0xf2193c00 .word 0xf2194000 .word 0xf2194400 .word 0xf2194800 .word 0xf2194c00 .word 0xf2195000 .word 0xf2195400 .word 0xf2195800 .word 0xf2195c00 .word 0xf2196000 .word 0xf2196400 .word 0xf2196800 .word 0xf2196c00 .word 0xf2197000 .word 0xf2197400 .word 0xf2197800 .word 0xf2197c00 .word 0xf2198000 .word 0xf2198400 .word 0xf2198800 .word 0xf2198c00 .word 0xf2199000 .word 0xf2199400 .word 0xf2199800 .word 0xf2199c00 .word 0xf219a000 .word 0xf219a400 .word 0xf219a800 .word 0xf219ac00 .word 0xf219b000 .word 0xf219b400 .word 0xf219b800 .word 0xf219bc00 .word 0xf219c000 .word 0xf219c400 .word 0xf219c800 .word 0xf219cc00 .word 0xf219d000 .word 0xf219d400 .word 0xf219d800 .word 0xf219dc00 .word 0xf219e000 .word 0xf219e400 .word 0xf219e800 .word 0xf219ec00 .word 0xf219f000 .word 0xf219f400 .word 0xf219f800 .word 0xf219fc00 .word 0xf21a0000 .word 0xf21a0400 .word 0xf21a0800 .word 0xf21a0c00 .word 0xf21a1000 .word 0xf21a1400 .word 0xf21a1800 .word 0xf21a1c00 .word 0xf21a2000 .word 0xf21a2400 .word 0xf21a2800 .word 0xf21a2c00 .word 0xf21a3000 .word 0xf21a3400 .word 0xf21a3800 .word 0xf21a3c00 .word 0xf21a4000 .word 0xf21a4400 .word 0xf21a4800 .word 0xf21a4c00 .word 0xf21a5000 .word 0xf21a5400 .word 0xf21a5800 .word 0xf21a5c00 .word 0xf21a6000 .word 0xf21a6400 .word 0xf21a6800 .word 0xf21a6c00 .word 0xf21a7000 .word 0xf21a7400 .word 0xf21a7800 .word 0xf21a7c00 .word 0xf21a8000 .word 0xf21a8400 .word 0xf21a8800 .word 0xf21a8c00 .word 0xf21a9000 .word 0xf21a9400 .word 0xf21a9800 .word 0xf21a9c00 .word 0xf21aa000 .word 0xf21aa400 .word 0xf21aa800 .word 0xf21aac00 .word 0xf21ab000 .word 0xf21ab400 .word 0xf21ab800 .word 0xf21abc00 .word 0xf21ac000 .word 0xf21ac400 .word 0xf21ac800 .word 0xf21acc00 .word 0xf21ad000 .word 0xf21ad400 .word 0xf21ad800 .word 0xf21adc00 .word 0xf21ae000 .word 0xf21ae400 .word 0xf21ae800 .word 0xf21aec00 .word 0xf21af000 .word 0xf21af400 .word 0xf21af800 .word 0xf21afc00 .word 0xf21b0000 .word 0xf21b0400 .word 0xf21b0800 .word 0xf21b0c00 .word 0xf21b1000 .word 0xf21b1400 .word 0xf21b1800 .word 0xf21b1c00 .word 0xf21b2000 .word 0xf21b2400 .word 0xf21b2800 .word 0xf21b2c00 .word 0xf21b3000 .word 0xf21b3400 .word 0xf21b3800 .word 0xf21b3c00 .word 0xf21b4000 .word 0xf21b4400 .word 0xf21b4800 .word 0xf21b4c00 .word 0xf21b5000 .word 0xf21b5400 .word 0xf21b5800 .word 0xf21b5c00 .word 0xf21b6000 .word 0xf21b6400 .word 0xf21b6800 .word 0xf21b6c00 .word 0xf21b7000 .word 0xf21b7400 .word 0xf21b7800 .word 0xf21b7c00 .word 0xf21b8000 .word 0xf21b8400 .word 0xf21b8800 .word 0xf21b8c00 .word 0xf21b9000 .word 0xf21b9400 .word 0xf21b9800 .word 0xf21b9c00 .word 0xf21ba000 .word 0xf21ba400 .word 0xf21ba800 .word 0xf21bac00 .word 0xf21bb000 .word 0xf21bb400 .word 0xf21bb800 .word 0xf21bbc00 .word 0xf21bc000 .word 0xf21bc400 .word 0xf21bc800 .word 0xf21bcc00 .word 0xf21bd000 .word 0xf21bd400 .word 0xf21bd800 .word 0xf21bdc00 .word 0xf21be000 .word 0xf21be400 .word 0xf21be800 .word 0xf21bec00 .word 0xf21bf000 .word 0xf21bf400 .word 0xf21bf800 .word 0xf21bfc00 .word 0xf21c0000 .word 0xf21c0400 .word 0xf21c0800 .word 0xf21c0c00 .word 0xf21c1000 .word 0xf21c1400 .word 0xf21c1800 .word 0xf21c1c00 .word 0xf21c2000 .word 0xf21c2400 .word 0xf21c2800 .word 0xf21c2c00 .word 0xf21c3000 .word 0xf21c3400 .word 0xf21c3800 .word 0xf21c3c00 .word 0xf21c4000 .word 0xf21c4400 .word 0xf21c4800 .word 0xf21c4c00 .word 0xf21c5000 .word 0xf21c5400 .word 0xf21c5800 .word 0xf21c5c00 .word 0xf21c6000 .word 0xf21c6400 .word 0xf21c6800 .word 0xf21c6c00 .word 0xf21c7000 .word 0xf21c7400 .word 0xf21c7800 .word 0xf21c7c00 .word 0xf21c8000 .word 0xf21c8400 .word 0xf21c8800 .word 0xf21c8c00 .word 0xf21c9000 .word 0xf21c9400 .word 0xf21c9800 .word 0xf21c9c00 .word 0xf21ca000 .word 0xf21ca400 .word 0xf21ca800 .word 0xf21cac00 .word 0xf21cb000 .word 0xf21cb400 .word 0xf21cb800 .word 0xf21cbc00 .word 0xf21cc000 .word 0xf21cc400 .word 0xf21cc800 .word 0xf21ccc00 .word 0xf21cd000 .word 0xf21cd400 .word 0xf21cd800 .word 0xf21cdc00 .word 0xf21ce000 .word 0xf21ce400 .word 0xf21ce800 .word 0xf21cec00 .word 0xf21cf000 .word 0xf21cf400 .word 0xf21cf800 .word 0xf21cfc00 .word 0xf21d0000 .word 0xf21d0400 .word 0xf21d0800 .word 0xf21d0c00 .word 0xf21d1000 .word 0xf21d1400 .word 0xf21d1800 .word 0xf21d1c00 .word 0xf21d2000 .word 0xf21d2400 .word 0xf21d2800 .word 0xf21d2c00 .word 0xf21d3000 .word 0xf21d3400 .word 0xf21d3800 .word 0xf21d3c00 .word 0xf21d4000 .word 0xf21d4400 .word 0xf21d4800 .word 0xf21d4c00 .word 0xf21d5000 .word 0xf21d5400 .word 0xf21d5800 .word 0xf21d5c00 .word 0xf21d6000 .word 0xf21d6400 .word 0xf21d6800 .word 0xf21d6c00 .word 0xf21d7000 .word 0xf21d7400 .word 0xf21d7800 .word 0xf21d7c00 .word 0xf21d8000 .word 0xf21d8400 .word 0xf21d8800 .word 0xf21d8c00 .word 0xf21d9000 .word 0xf21d9400 .word 0xf21d9800 .word 0xf21d9c00 .word 0xf21da000 .word 0xf21da400 .word 0xf21da800 .word 0xf21dac00 .word 0xf21db000 .word 0xf21db400 .word 0xf21db800 .word 0xf21dbc00 .word 0xf21dc000 .word 0xf21dc400 .word 0xf21dc800 .word 0xf21dcc00 .word 0xf21dd000 .word 0xf21dd400 .word 0xf21dd800 .word 0xf21ddc00 .word 0xf21de000 .word 0xf21de400 .word 0xf21de800 .word 0xf21dec00 .word 0xf21df000 .word 0xf21df400 .word 0xf21df800 .word 0xf21dfc00 .word 0xf21e0000 .word 0xf21e0400 .word 0xf21e0800 .word 0xf21e0c00 .word 0xf21e1000 .word 0xf21e1400 .word 0xf21e1800 .word 0xf21e1c00 .word 0xf21e2000 .word 0xf21e2400 .word 0xf21e2800 .word 0xf21e2c00 .word 0xf21e3000 .word 0xf21e3400 .word 0xf21e3800 .word 0xf21e3c00 .word 0xf21e4000 .word 0xf21e4400 .word 0xf21e4800 .word 0xf21e4c00 .word 0xf21e5000 .word 0xf21e5400 .word 0xf21e5800 .word 0xf21e5c00 .word 0xf21e6000 .word 0xf21e6400 .word 0xf21e6800 .word 0xf21e6c00 .word 0xf21e7000 .word 0xf21e7400 .word 0xf21e7800 .word 0xf21e7c00 .word 0xf21e8000 .word 0xf21e8400 .word 0xf21e8800 .word 0xf21e8c00 .word 0xf21e9000 .word 0xf21e9400 .word 0xf21e9800 .word 0xf21e9c00 .word 0xf21ea000 .word 0xf21ea400 .word 0xf21ea800 .word 0xf21eac00 .word 0xf21eb000 .word 0xf21eb400 .word 0xf21eb800 .word 0xf21ebc00 .word 0xf21ec000 .word 0xf21ec400 .word 0xf21ec800 .word 0xf21ecc00 .word 0xf21ed000 .word 0xf21ed400 .word 0xf21ed800 .word 0xf21edc00 .word 0xf21ee000 .word 0xf21ee400 .word 0xf21ee800 .word 0xf21eec00 .word 0xf21ef000 .word 0xf21ef400 .word 0xf21ef800 .word 0xf21efc00 .word 0xf21f0000 .word 0xf21f0400 .word 0xf21f0800 .word 0xf21f0c00 .word 0xf21f1000 .word 0xf21f1400 .word 0xf21f1800 .word 0xf21f1c00 .word 0xf21f2000 .word 0xf21f2400 .word 0xf21f2800 .word 0xf21f2c00 .word 0xf21f3000 .word 0xf21f3400 .word 0xf21f3800 .word 0xf21f3c00 .word 0xf21f4000 .word 0xf21f4400 .word 0xf21f4800 .word 0xf21f4c00 .word 0xf21f5000 .word 0xf21f5400 .word 0xf21f5800 .word 0xf21f5c00 .word 0xf21f6000 .word 0xf21f6400 .word 0xf21f6800 .word 0xf21f6c00 .word 0xf21f7000 .word 0xf21f7400 .word 0xf21f7800 .word 0xf21f7c00 .word 0xf21f8000 .word 0xf21f8400 .word 0xf21f8800 .word 0xf21f8c00 .word 0xf21f9000 .word 0xf21f9400 .word 0xf21f9800 .word 0xf21f9c00 .word 0xf21fa000 .word 0xf21fa400 .word 0xf21fa800 .word 0xf21fac00 .word 0xf21fb000 .word 0xf21fb400 .word 0xf21fb800 .word 0xf21fbc00 .word 0xf21fc000 .word 0xf21fc400 .word 0xf21fc800 .word 0xf21fcc00 .word 0xf21fd000 .word 0xf21fd400 .word 0xf21fd800 .word 0xf21fdc00 .word 0xf21fe000 .word 0xf21fe400 .word 0xf21fe800 .word 0xf21fec00 .word 0xf21ff000 .word 0xf21ff400 .word 0xf21ff800 .word 0xf21ffc00 .word 0xf2200000 .word 0xf2200400 .word 0xf2200800 .word 0xf2200c00 .word 0xf2201000 .word 0xf2201400 .word 0xf2201800 .word 0xf2201c00 .word 0xf2202000 .word 0xf2202400 .word 0xf2202800 .word 0xf2202c00 .word 0xf2203000 .word 0xf2203400 .word 0xf2203800 .word 0xf2203c00 .word 0xf2204000 .word 0xf2204400 .word 0xf2204800 .word 0xf2204c00 .word 0xf2205000 .word 0xf2205400 .word 0xf2205800 .word 0xf2205c00 .word 0xf2206000 .word 0xf2206400 .word 0xf2206800 .word 0xf2206c00 .word 0xf2207000 .word 0xf2207400 .word 0xf2207800 .word 0xf2207c00 .word 0xf2208000 .word 0xf2208400 .word 0xf2208800 .word 0xf2208c00 .word 0xf2209000 .word 0xf2209400 .word 0xf2209800 .word 0xf2209c00 .word 0xf220a000 .word 0xf220a400 .word 0xf220a800 .word 0xf220ac00 .word 0xf220b000 .word 0xf220b400 .word 0xf220b800 .word 0xf220bc00 .word 0xf220c000 .word 0xf220c400 .word 0xf220c800 .word 0xf220cc00 .word 0xf220d000 .word 0xf220d400 .word 0xf220d800 .word 0xf220dc00 .word 0xf220e000 .word 0xf220e400 .word 0xf220e800 .word 0xf220ec00 .word 0xf220f000 .word 0xf220f400 .word 0xf220f800 .word 0xf220fc00 .word 0xf2210000 .word 0xf2210400 .word 0xf2210800 .word 0xf2210c00 .word 0xf2211000 .word 0xf2211400 .word 0xf2211800 .word 0xf2211c00 .word 0xf2212000 .word 0xf2212400 .word 0xf2212800 .word 0xf2212c00 .word 0xf2213000 .word 0xf2213400 .word 0xf2213800 .word 0xf2213c00 .word 0xf2214000 .word 0xf2214400 .word 0xf2214800 .word 0xf2214c00 .word 0xf2215000 .word 0xf2215400 .word 0xf2215800 .word 0xf2215c00 .word 0xf2216000 .word 0xf2216400 .word 0xf2216800 .word 0xf2216c00 .word 0xf2217000 .word 0xf2217400 .word 0xf2217800 .word 0xf2217c00 .word 0xf2218000 .word 0xf2218400 .word 0xf2218800 .word 0xf2218c00 .word 0xf2219000 .word 0xf2219400 .word 0xf2219800 .word 0xf2219c00 .word 0xf221a000 .word 0xf221a400 .word 0xf221a800 .word 0xf221ac00 .word 0xf221b000 .word 0xf221b400 .word 0xf221b800 .word 0xf221bc00 .word 0xf221c000 .word 0xf221c400 .word 0xf221c800 .word 0xf221cc00 .word 0xf221d000 .word 0xf221d400 .word 0xf221d800 .word 0xf221dc00 .word 0xf221e000 .word 0xf221e400 .word 0xf221e800 .word 0xf221ec00 .word 0xf221f000 .word 0xf221f400 .word 0xf221f800 .word 0xf221fc00 .word 0xf2220000 .word 0xf2220400 .word 0xf2220800 .word 0xf2220c00 .word 0xf2221000 .word 0xf2221400 .word 0xf2221800 .word 0xf2221c00 .word 0xf2222000 .word 0xf2222400 .word 0xf2222800 .word 0xf2222c00 .word 0xf2223000 .word 0xf2223400 .word 0xf2223800 .word 0xf2223c00 .word 0xf2224000 .word 0xf2224400 .word 0xf2224800 .word 0xf2224c00 .word 0xf2225000 .word 0xf2225400 .word 0xf2225800 .word 0xf2225c00 .word 0xf2226000 .word 0xf2226400 .word 0xf2226800 .word 0xf2226c00 .word 0xf2227000 .word 0xf2227400 .word 0xf2227800 .word 0xf2227c00 .word 0xf2228000 .word 0xf2228400 .word 0xf2228800 .word 0xf2228c00 .word 0xf2229000 .word 0xf2229400 .word 0xf2229800 .word 0xf2229c00 .word 0xf222a000 .word 0xf222a400 .word 0xf222a800 .word 0xf222ac00 .word 0xf222b000 .word 0xf222b400 .word 0xf222b800 .word 0xf222bc00 .word 0xf222c000 .word 0xf222c400 .word 0xf222c800 .word 0xf222cc00 .word 0xf222d000 .word 0xf222d400 .word 0xf222d800 .word 0xf222dc00 .word 0xf222e000 .word 0xf222e400 .word 0xf222e800 .word 0xf222ec00 .word 0xf222f000 .word 0xf222f400 .word 0xf222f800 .word 0xf222fc00 .word 0xf2230000 .word 0xf2230400 .word 0xf2230800 .word 0xf2230c00 .word 0xf2231000 .word 0xf2231400 .word 0xf2231800 .word 0xf2231c00 .word 0xf2232000 .word 0xf2232400 .word 0xf2232800 .word 0xf2232c00 .word 0xf2233000 .word 0xf2233400 .word 0xf2233800 .word 0xf2233c00 .word 0xf2234000 .word 0xf2234400 .word 0xf2234800 .word 0xf2234c00 .word 0xf2235000 .word 0xf2235400 .word 0xf2235800 .word 0xf2235c00 .word 0xf2236000 .word 0xf2236400 .word 0xf2236800 .word 0xf2236c00 .word 0xf2237000 .word 0xf2237400 .word 0xf2237800 .word 0xf2237c00 .word 0xf2238000 .word 0xf2238400 .word 0xf2238800 .word 0xf2238c00 .word 0xf2239000 .word 0xf2239400 .word 0xf2239800 .word 0xf2239c00 .word 0xf223a000 .word 0xf223a400 .word 0xf223a800 .word 0xf223ac00 .word 0xf223b000 .word 0xf223b400 .word 0xf223b800 .word 0xf223bc00 .word 0xf223c000 .word 0xf223c400 .word 0xf223c800 .word 0xf223cc00 .word 0xf223d000 .word 0xf223d400 .word 0xf223d800 .word 0xf223dc00 .word 0xf223e000 .word 0xf223e400 .word 0xf223e800 .word 0xf223ec00 .word 0xf223f000 .word 0xf223f400 .word 0xf223f800 .word 0xf223fc00 .word 0xf2240000 .word 0xf2240400 .word 0xf2240800 .word 0xf2240c00 .word 0xf2241000 .word 0xf2241400 .word 0xf2241800 .word 0xf2241c00 .word 0xf2242000 .word 0xf2242400 .word 0xf2242800 .word 0xf2242c00 .word 0xf2243000 .word 0xf2243400 .word 0xf2243800 .word 0xf2243c00 .word 0xf2244000 .word 0xf2244400 .word 0xf2244800 .word 0xf2244c00 .word 0xf2245000 .word 0xf2245400 .word 0xf2245800 .word 0xf2245c00 .word 0xf2246000 .word 0xf2246400 .word 0xf2246800 .word 0xf2246c00 .word 0xf2247000 .word 0xf2247400 .word 0xf2247800 .word 0xf2247c00 .word 0xf2248000 .word 0xf2248400 .word 0xf2248800 .word 0xf2248c00 .word 0xf2249000 .word 0xf2249400 .word 0xf2249800 .word 0xf2249c00 .word 0xf224a000 .word 0xf224a400 .word 0xf224a800 .word 0xf224ac00 .word 0xf224b000 .word 0xf224b400 .word 0xf224b800 .word 0xf224bc00 .word 0xf224c000 .word 0xf224c400 .word 0xf224c800 .word 0xf224cc00 .word 0xf224d000 .word 0xf224d400 .word 0xf224d800 .word 0xf224dc00 .word 0xf224e000 .word 0xf224e400 .word 0xf224e800 .word 0xf224ec00 .word 0xf224f000 .word 0xf224f400 .word 0xf224f800 .word 0xf224fc00 .word 0xf2250000 .word 0xf2250400 .word 0xf2250800 .word 0xf2250c00 .word 0xf2251000 .word 0xf2251400 .word 0xf2251800 .word 0xf2251c00 .word 0xf2252000 .word 0xf2252400 .word 0xf2252800 .word 0xf2252c00 .word 0xf2253000 .word 0xf2253400 .word 0xf2253800 .word 0xf2253c00 .word 0xf2254000 .word 0xf2254400 .word 0xf2254800 .word 0xf2254c00 .word 0xf2255000 .word 0xf2255400 .word 0xf2255800 .word 0xf2255c00 .word 0xf2256000 .word 0xf2256400 .word 0xf2256800 .word 0xf2256c00 .word 0xf2257000 .word 0xf2257400 .word 0xf2257800 .word 0xf2257c00 .word 0xf2258000 .word 0xf2258400 .word 0xf2258800 .word 0xf2258c00 .word 0xf2259000 .word 0xf2259400 .word 0xf2259800 .word 0xf2259c00 .word 0xf225a000 .word 0xf225a400 .word 0xf225a800 .word 0xf225ac00 .word 0xf225b000 .word 0xf225b400 .word 0xf225b800 .word 0xf225bc00 .word 0xf225c000 .word 0xf225c400 .word 0xf225c800 .word 0xf225cc00 .word 0xf225d000 .word 0xf225d400 .word 0xf225d800 .word 0xf225dc00 .word 0xf225e000 .word 0xf225e400 .word 0xf225e800 .word 0xf225ec00 .word 0xf225f000 .word 0xf225f400 .word 0xf225f800 .word 0xf225fc00 .word 0xf2260000 .word 0xf2260400 .word 0xf2260800 .word 0xf2260c00 .word 0xf2261000 .word 0xf2261400 .word 0xf2261800 .word 0xf2261c00 .word 0xf2262000 .word 0xf2262400 .word 0xf2262800 .word 0xf2262c00 .word 0xf2263000 .word 0xf2263400 .word 0xf2263800 .word 0xf2263c00 .word 0xf2264000 .word 0xf2264400 .word 0xf2264800 .word 0xf2264c00 .word 0xf2265000 .word 0xf2265400 .word 0xf2265800 .word 0xf2265c00 .word 0xf2266000 .word 0xf2266400 .word 0xf2266800 .word 0xf2266c00 .word 0xf2267000 .word 0xf2267400 .word 0xf2267800 .word 0xf2267c00 .word 0xf2268000 .word 0xf2268400 .word 0xf2268800 .word 0xf2268c00 .word 0xf2269000 .word 0xf2269400 .word 0xf2269800 .word 0xf2269c00 .word 0xf226a000 .word 0xf226a400 .word 0xf226a800 .word 0xf226ac00 .word 0xf226b000 .word 0xf226b400 .word 0xf226b800 .word 0xf226bc00 .word 0xf226c000 .word 0xf226c400 .word 0xf226c800 .word 0xf226cc00 .word 0xf226d000 .word 0xf226d400 .word 0xf226d800 .word 0xf226dc00 .word 0xf226e000 .word 0xf226e400 .word 0xf226e800 .word 0xf226ec00 .word 0xf226f000 .word 0xf226f400 .word 0xf226f800 .word 0xf226fc00 .word 0xf2270000 .word 0xf2270400 .word 0xf2270800 .word 0xf2270c00 .word 0xf2271000 .word 0xf2271400 .word 0xf2271800 .word 0xf2271c00 .word 0xf2272000 .word 0xf2272400 .word 0xf2272800 .word 0xf2272c00 .word 0xf2273000 .word 0xf2273400 .word 0xf2273800 .word 0xf2273c00 .word 0xf2274000 .word 0xf2274400 .word 0xf2274800 .word 0xf2274c00 .word 0xf2275000 .word 0xf2275400 .word 0xf2275800 .word 0xf2275c00 .word 0xf2276000 .word 0xf2276400 .word 0xf2276800 .word 0xf2276c00 .word 0xf2277000 .word 0xf2277400 .word 0xf2277800 .word 0xf2277c00 .word 0xf2278000 .word 0xf2278400 .word 0xf2278800 .word 0xf2278c00 .word 0xf2279000 .word 0xf2279400 .word 0xf2279800 .word 0xf2279c00 .word 0xf227a000 .word 0xf227a400 .word 0xf227a800 .word 0xf227ac00 .word 0xf227b000 .word 0xf227b400 .word 0xf227b800 .word 0xf227bc00 .word 0xf227c000 .word 0xf227c400 .word 0xf227c800 .word 0xf227cc00 .word 0xf227d000 .word 0xf227d400 .word 0xf227d800 .word 0xf227dc00 .word 0xf227e000 .word 0xf227e400 .word 0xf227e800 .word 0xf227ec00 .word 0xf227f000 .word 0xf227f400 .word 0xf227f800 .word 0xf227fc00 .word 0xf2280000 .word 0xf2280400 .word 0xf2280800 .word 0xf2280c00 .word 0xf2281000 .word 0xf2281400 .word 0xf2281800 .word 0xf2281c00 .word 0xf2282000 .word 0xf2282400 .word 0xf2282800 .word 0xf2282c00 .word 0xf2283000 .word 0xf2283400 .word 0xf2283800 .word 0xf2283c00 .word 0xf2284000 .word 0xf2284400 .word 0xf2284800 .word 0xf2284c00 .word 0xf2285000 .word 0xf2285400 .word 0xf2285800 .word 0xf2285c00 .word 0xf2286000 .word 0xf2286400 .word 0xf2286800 .word 0xf2286c00 .word 0xf2287000 .word 0xf2287400 .word 0xf2287800 .word 0xf2287c00 .word 0xf2288000 .word 0xf2288400 .word 0xf2288800 .word 0xf2288c00 .word 0xf2289000 .word 0xf2289400 .word 0xf2289800 .word 0xf2289c00 .word 0xf228a000 .word 0xf228a400 .word 0xf228a800 .word 0xf228ac00 .word 0xf228b000 .word 0xf228b400 .word 0xf228b800 .word 0xf228bc00 .word 0xf228c000 .word 0xf228c400 .word 0xf228c800 .word 0xf228cc00 .word 0xf228d000 .word 0xf228d400 .word 0xf228d800 .word 0xf228dc00 .word 0xf228e000 .word 0xf228e400 .word 0xf228e800 .word 0xf228ec00 .word 0xf228f000 .word 0xf228f400 .word 0xf228f800 .word 0xf228fc00 .word 0xf2290000 .word 0xf2290400 .word 0xf2290800 .word 0xf2290c00 .word 0xf2291000 .word 0xf2291400 .word 0xf2291800 .word 0xf2291c00 .word 0xf2292000 .word 0xf2292400 .word 0xf2292800 .word 0xf2292c00 .word 0xf2293000 .word 0xf2293400 .word 0xf2293800 .word 0xf2293c00 .word 0xf2294000 .word 0xf2294400 .word 0xf2294800 .word 0xf2294c00 .word 0xf2295000 .word 0xf2295400 .word 0xf2295800 .word 0xf2295c00 .word 0xf2296000 .word 0xf2296400 .word 0xf2296800 .word 0xf2296c00 .word 0xf2297000 .word 0xf2297400 .word 0xf2297800 .word 0xf2297c00 .word 0xf2298000 .word 0xf2298400 .word 0xf2298800 .word 0xf2298c00 .word 0xf2299000 .word 0xf2299400 .word 0xf2299800 .word 0xf2299c00 .word 0xf229a000 .word 0xf229a400 .word 0xf229a800 .word 0xf229ac00 .word 0xf229b000 .word 0xf229b400 .word 0xf229b800 .word 0xf229bc00 .word 0xf229c000 .word 0xf229c400 .word 0xf229c800 .word 0xf229cc00 .word 0xf229d000 .word 0xf229d400 .word 0xf229d800 .word 0xf229dc00 .word 0xf229e000 .word 0xf229e400 .word 0xf229e800 .word 0xf229ec00 .word 0xf229f000 .word 0xf229f400 .word 0xf229f800 .word 0xf229fc00 .word 0xf22a0000 .word 0xf22a0400 .word 0xf22a0800 .word 0xf22a0c00 .word 0xf22a1000 .word 0xf22a1400 .word 0xf22a1800 .word 0xf22a1c00 .word 0xf22a2000 .word 0xf22a2400 .word 0xf22a2800 .word 0xf22a2c00 .word 0xf22a3000 .word 0xf22a3400 .word 0xf22a3800 .word 0xf22a3c00 .word 0xf22a4000 .word 0xf22a4400 .word 0xf22a4800 .word 0xf22a4c00 .word 0xf22a5000 .word 0xf22a5400 .word 0xf22a5800 .word 0xf22a5c00 .word 0xf22a6000 .word 0xf22a6400 .word 0xf22a6800 .word 0xf22a6c00 .word 0xf22a7000 .word 0xf22a7400 .word 0xf22a7800 .word 0xf22a7c00 .word 0xf22a8000 .word 0xf22a8400 .word 0xf22a8800 .word 0xf22a8c00 .word 0xf22a9000 .word 0xf22a9400 .word 0xf22a9800 .word 0xf22a9c00 .word 0xf22aa000 .word 0xf22aa400 .word 0xf22aa800 .word 0xf22aac00 .word 0xf22ab000 .word 0xf22ab400 .word 0xf22ab800 .word 0xf22abc00 .word 0xf22ac000 .word 0xf22ac400 .word 0xf22ac800 .word 0xf22acc00 .word 0xf22ad000 .word 0xf22ad400 .word 0xf22ad800 .word 0xf22adc00 .word 0xf22ae000 .word 0xf22ae400 .word 0xf22ae800 .word 0xf22aec00 .word 0xf22af000 .word 0xf22af400 .word 0xf22af800 .word 0xf22afc00 .word 0xf22b0000 .word 0xf22b0400 .word 0xf22b0800 .word 0xf22b0c00 .word 0xf22b1000 .word 0xf22b1400 .word 0xf22b1800 .word 0xf22b1c00 .word 0xf22b2000 .word 0xf22b2400 .word 0xf22b2800 .word 0xf22b2c00 .word 0xf22b3000 .word 0xf22b3400 .word 0xf22b3800 .word 0xf22b3c00 .word 0xf22b4000 .word 0xf22b4400 .word 0xf22b4800 .word 0xf22b4c00 .word 0xf22b5000 .word 0xf22b5400 .word 0xf22b5800 .word 0xf22b5c00 .word 0xf22b6000 .word 0xf22b6400 .word 0xf22b6800 .word 0xf22b6c00 .word 0xf22b7000 .word 0xf22b7400 .word 0xf22b7800 .word 0xf22b7c00 .word 0xf22b8000 .word 0xf22b8400 .word 0xf22b8800 .word 0xf22b8c00 .word 0xf22b9000 .word 0xf22b9400 .word 0xf22b9800 .word 0xf22b9c00 .word 0xf22ba000 .word 0xf22ba400 .word 0xf22ba800 .word 0xf22bac00 .word 0xf22bb000 .word 0xf22bb400 .word 0xf22bb800 .word 0xf22bbc00 .word 0xf22bc000 .word 0xf22bc400 .word 0xf22bc800 .word 0xf22bcc00 .word 0xf22bd000 .word 0xf22bd400 .word 0xf22bd800 .word 0xf22bdc00 .word 0xf22be000 .word 0xf22be400 .word 0xf22be800 .word 0xf22bec00 .word 0xf22bf000 .word 0xf22bf400 .word 0xf22bf800 .word 0xf22bfc00 .word 0xf22c0000 .word 0xf22c0400 .word 0xf22c0800 .word 0xf22c0c00 .word 0xf22c1000 .word 0xf22c1400 .word 0xf22c1800 .word 0xf22c1c00 .word 0xf22c2000 .word 0xf22c2400 .word 0xf22c2800 .word 0xf22c2c00 .word 0xf22c3000 .word 0xf22c3400 .word 0xf22c3800 .word 0xf22c3c00 .word 0xf22c4000 .word 0xf22c4400 .word 0xf22c4800 .word 0xf22c4c00 .word 0xf22c5000 .word 0xf22c5400 .word 0xf22c5800 .word 0xf22c5c00 .word 0xf22c6000 .word 0xf22c6400 .word 0xf22c6800 .word 0xf22c6c00 .word 0xf22c7000 .word 0xf22c7400 .word 0xf22c7800 .word 0xf22c7c00 .word 0xf22c8000 .word 0xf22c8400 .word 0xf22c8800 .word 0xf22c8c00 .word 0xf22c9000 .word 0xf22c9400 .word 0xf22c9800 .word 0xf22c9c00 .word 0xf22ca000 .word 0xf22ca400 .word 0xf22ca800 .word 0xf22cac00 .word 0xf22cb000 .word 0xf22cb400 .word 0xf22cb800 .word 0xf22cbc00 .word 0xf22cc000 .word 0xf22cc400 .word 0xf22cc800 .word 0xf22ccc00 .word 0xf22cd000 .word 0xf22cd400 .word 0xf22cd800 .word 0xf22cdc00 .word 0xf22ce000 .word 0xf22ce400 .word 0xf22ce800 .word 0xf22cec00 .word 0xf22cf000 .word 0xf22cf400 .word 0xf22cf800 .word 0xf22cfc00 .word 0xf22d0000 .word 0xf22d0400 .word 0xf22d0800 .word 0xf22d0c00 .word 0xf22d1000 .word 0xf22d1400 .word 0xf22d1800 .word 0xf22d1c00 .word 0xf22d2000 .word 0xf22d2400 .word 0xf22d2800 .word 0xf22d2c00 .word 0xf22d3000 .word 0xf22d3400 .word 0xf22d3800 .word 0xf22d3c00 .word 0xf22d4000 .word 0xf22d4400 .word 0xf22d4800 .word 0xf22d4c00 .word 0xf22d5000 .word 0xf22d5400 .word 0xf22d5800 .word 0xf22d5c00 .word 0xf22d6000 .word 0xf22d6400 .word 0xf22d6800 .word 0xf22d6c00 .word 0xf22d7000 .word 0xf22d7400 .word 0xf22d7800 .word 0xf22d7c00 .word 0xf22d8000 .word 0xf22d8400 .word 0xf22d8800 .word 0xf22d8c00 .word 0xf22d9000 .word 0xf22d9400 .word 0xf22d9800 .word 0xf22d9c00 .word 0xf22da000 .word 0xf22da400 .word 0xf22da800 .word 0xf22dac00 .word 0xf22db000 .word 0xf22db400 .word 0xf22db800 .word 0xf22dbc00 .word 0xf22dc000 .word 0xf22dc400 .word 0xf22dc800 .word 0xf22dcc00 .word 0xf22dd000 .word 0xf22dd400 .word 0xf22dd800 .word 0xf22ddc00 .word 0xf22de000 .word 0xf22de400 .word 0xf22de800 .word 0xf22dec00 .word 0xf22df000 .word 0xf22df400 .word 0xf22df800 .word 0xf22dfc00 .word 0xf22e0000 .word 0xf22e0400 .word 0xf22e0800 .word 0xf22e0c00 .word 0xf22e1000 .word 0xf22e1400 .word 0xf22e1800 .word 0xf22e1c00 .word 0xf22e2000 .word 0xf22e2400 .word 0xf22e2800 .word 0xf22e2c00 .word 0xf22e3000 .word 0xf22e3400 .word 0xf22e3800 .word 0xf22e3c00 .word 0xf22e4000 .word 0xf22e4400 .word 0xf22e4800 .word 0xf22e4c00 .word 0xf22e5000 .word 0xf22e5400 .word 0xf22e5800 .word 0xf22e5c00 .word 0xf22e6000 .word 0xf22e6400 .word 0xf22e6800 .word 0xf22e6c00 .word 0xf22e7000 .word 0xf22e7400 .word 0xf22e7800 .word 0xf22e7c00 .word 0xf22e8000 .word 0xf22e8400 .word 0xf22e8800 .word 0xf22e8c00 .word 0xf22e9000 .word 0xf22e9400 .word 0xf22e9800 .word 0xf22e9c00 .word 0xf22ea000 .word 0xf22ea400 .word 0xf22ea800 .word 0xf22eac00 .word 0xf22eb000 .word 0xf22eb400 .word 0xf22eb800 .word 0xf22ebc00 .word 0xf22ec000 .word 0xf22ec400 .word 0xf22ec800 .word 0xf22ecc00 .word 0xf22ed000 .word 0xf22ed400 .word 0xf22ed800 .word 0xf22edc00 .word 0xf22ee000 .word 0xf22ee400 .word 0xf22ee800 .word 0xf22eec00 .word 0xf22ef000 .word 0xf22ef400 .word 0xf22ef800 .word 0xf22efc00 .word 0xf22f0000 .word 0xf22f0400 .word 0xf22f0800 .word 0xf22f0c00 .word 0xf22f1000 .word 0xf22f1400 .word 0xf22f1800 .word 0xf22f1c00 .word 0xf22f2000 .word 0xf22f2400 .word 0xf22f2800 .word 0xf22f2c00 .word 0xf22f3000 .word 0xf22f3400 .word 0xf22f3800 .word 0xf22f3c00 .word 0xf22f4000 .word 0xf22f4400 .word 0xf22f4800 .word 0xf22f4c00 .word 0xf22f5000 .word 0xf22f5400 .word 0xf22f5800 .word 0xf22f5c00 .word 0xf22f6000 .word 0xf22f6400 .word 0xf22f6800 .word 0xf22f6c00 .word 0xf22f7000 .word 0xf22f7400 .word 0xf22f7800 .word 0xf22f7c00 .word 0xf22f8000 .word 0xf22f8400 .word 0xf22f8800 .word 0xf22f8c00 .word 0xf22f9000 .word 0xf22f9400 .word 0xf22f9800 .word 0xf22f9c00 .word 0xf22fa000 .word 0xf22fa400 .word 0xf22fa800 .word 0xf22fac00 .word 0xf22fb000 .word 0xf22fb400 .word 0xf22fb800 .word 0xf22fbc00 .word 0xf22fc000 .word 0xf22fc400 .word 0xf22fc800 .word 0xf22fcc00 .word 0xf22fd000 .word 0xf22fd400 .word 0xf22fd800 .word 0xf22fdc00 .word 0xf22fe000 .word 0xf22fe400 .word 0xf22fe800 .word 0xf22fec00 .word 0xf22ff000 .word 0xf22ff400 .word 0xf22ff800 .word 0xf22ffc00 .word 0xf2300000 .word 0xf2300400 .word 0xf2300800 .word 0xf2300c00 .word 0xf2301000 .word 0xf2301400 .word 0xf2301800 .word 0xf2301c00 .word 0xf2302000 .word 0xf2302400 .word 0xf2302800 .word 0xf2302c00 .word 0xf2303000 .word 0xf2303400 .word 0xf2303800 .word 0xf2303c00 .word 0xf2304000 .word 0xf2304400 .word 0xf2304800 .word 0xf2304c00 .word 0xf2305000 .word 0xf2305400 .word 0xf2305800 .word 0xf2305c00 .word 0xf2306000 .word 0xf2306400 .word 0xf2306800 .word 0xf2306c00 .word 0xf2307000 .word 0xf2307400 .word 0xf2307800 .word 0xf2307c00 .word 0xf2308000 .word 0xf2308400 .word 0xf2308800 .word 0xf2308c00 .word 0xf2309000 .word 0xf2309400 .word 0xf2309800 .word 0xf2309c00 .word 0xf230a000 .word 0xf230a400 .word 0xf230a800 .word 0xf230ac00 .word 0xf230b000 .word 0xf230b400 .word 0xf230b800 .word 0xf230bc00 .word 0xf230c000 .word 0xf230c400 .word 0xf230c800 .word 0xf230cc00 .word 0xf230d000 .word 0xf230d400 .word 0xf230d800 .word 0xf230dc00 .word 0xf230e000 .word 0xf230e400 .word 0xf230e800 .word 0xf230ec00 .word 0xf230f000 .word 0xf230f400 .word 0xf230f800 .word 0xf230fc00 .word 0xf2310000 .word 0xf2310400 .word 0xf2310800 .word 0xf2310c00 .word 0xf2311000 .word 0xf2311400 .word 0xf2311800 .word 0xf2311c00 .word 0xf2312000 .word 0xf2312400 .word 0xf2312800 .word 0xf2312c00 .word 0xf2313000 .word 0xf2313400 .word 0xf2313800 .word 0xf2313c00 .word 0xf2314000 .word 0xf2314400 .word 0xf2314800 .word 0xf2314c00 .word 0xf2315000 .word 0xf2315400 .word 0xf2315800 .word 0xf2315c00 .word 0xf2316000 .word 0xf2316400 .word 0xf2316800 .word 0xf2316c00 .word 0xf2317000 .word 0xf2317400 .word 0xf2317800 .word 0xf2317c00 .word 0xf2318000 .word 0xf2318400 .word 0xf2318800 .word 0xf2318c00 .word 0xf2319000 .word 0xf2319400 .word 0xf2319800 .word 0xf2319c00 .word 0xf231a000 .word 0xf231a400 .word 0xf231a800 .word 0xf231ac00 .word 0xf231b000 .word 0xf231b400 .word 0xf231b800 .word 0xf231bc00 .word 0xf231c000 .word 0xf231c400 .word 0xf231c800 .word 0xf231cc00 .word 0xf231d000 .word 0xf231d400 .word 0xf231d800 .word 0xf231dc00 .word 0xf231e000 .word 0xf231e400 .word 0xf231e800 .word 0xf231ec00 .word 0xf231f000 .word 0xf231f400 .word 0xf231f800 .word 0xf231fc00 .word 0xf2320000 .word 0xf2320400 .word 0xf2320800 .word 0xf2320c00 .word 0xf2321000 .word 0xf2321400 .word 0xf2321800 .word 0xf2321c00 .word 0xf2322000 .word 0xf2322400 .word 0xf2322800 .word 0xf2322c00 .word 0xf2323000 .word 0xf2323400 .word 0xf2323800 .word 0xf2323c00 .word 0xf2324000 .word 0xf2324400 .word 0xf2324800 .word 0xf2324c00 .word 0xf2325000 .word 0xf2325400 .word 0xf2325800 .word 0xf2325c00 .word 0xf2326000 .word 0xf2326400 .word 0xf2326800 .word 0xf2326c00 .word 0xf2327000 .word 0xf2327400 .word 0xf2327800 .word 0xf2327c00 .word 0xf2328000 .word 0xf2328400 .word 0xf2328800 .word 0xf2328c00 .word 0xf2329000 .word 0xf2329400 .word 0xf2329800 .word 0xf2329c00 .word 0xf232a000 .word 0xf232a400 .word 0xf232a800 .word 0xf232ac00 .word 0xf232b000 .word 0xf232b400 .word 0xf232b800 .word 0xf232bc00 .word 0xf232c000 .word 0xf232c400 .word 0xf232c800 .word 0xf232cc00 .word 0xf232d000 .word 0xf232d400 .word 0xf232d800 .word 0xf232dc00 .word 0xf232e000 .word 0xf232e400 .word 0xf232e800 .word 0xf232ec00 .word 0xf232f000 .word 0xf232f400 .word 0xf232f800 .word 0xf232fc00 .word 0xf2330000 .word 0xf2330400 .word 0xf2330800 .word 0xf2330c00 .word 0xf2331000 .word 0xf2331400 .word 0xf2331800 .word 0xf2331c00 .word 0xf2332000 .word 0xf2332400 .word 0xf2332800 .word 0xf2332c00 .word 0xf2333000 .word 0xf2333400 .word 0xf2333800 .word 0xf2333c00 .word 0xf2334000 .word 0xf2334400 .word 0xf2334800 .word 0xf2334c00 .word 0xf2335000 .word 0xf2335400 .word 0xf2335800 .word 0xf2335c00 .word 0xf2336000 .word 0xf2336400 .word 0xf2336800 .word 0xf2336c00 .word 0xf2337000 .word 0xf2337400 .word 0xf2337800 .word 0xf2337c00 .word 0xf2338000 .word 0xf2338400 .word 0xf2338800 .word 0xf2338c00 .word 0xf2339000 .word 0xf2339400 .word 0xf2339800 .word 0xf2339c00 .word 0xf233a000 .word 0xf233a400 .word 0xf233a800 .word 0xf233ac00 .word 0xf233b000 .word 0xf233b400 .word 0xf233b800 .word 0xf233bc00 .word 0xf233c000 .word 0xf233c400 .word 0xf233c800 .word 0xf233cc00 .word 0xf233d000 .word 0xf233d400 .word 0xf233d800 .word 0xf233dc00 .word 0xf233e000 .word 0xf233e400 .word 0xf233e800 .word 0xf233ec00 .word 0xf233f000 .word 0xf233f400 .word 0xf233f800 .word 0xf233fc00 .word 0xf2340000 .word 0xf2340400 .word 0xf2340800 .word 0xf2340c00 .word 0xf2341000 .word 0xf2341400 .word 0xf2341800 .word 0xf2341c00 .word 0xf2342000 .word 0xf2342400 .word 0xf2342800 .word 0xf2342c00 .word 0xf2343000 .word 0xf2343400 .word 0xf2343800 .word 0xf2343c00 .word 0xf2344000 .word 0xf2344400 .word 0xf2344800 .word 0xf2344c00 .word 0xf2345000 .word 0xf2345400 .word 0xf2345800 .word 0xf2345c00 .word 0xf2346000 .word 0xf2346400 .word 0xf2346800 .word 0xf2346c00 .word 0xf2347000 .word 0xf2347400 .word 0xf2347800 .word 0xf2347c00 .word 0xf2348000 .word 0xf2348400 .word 0xf2348800 .word 0xf2348c00 .word 0xf2349000 .word 0xf2349400 .word 0xf2349800 .word 0xf2349c00 .word 0xf234a000 .word 0xf234a400 .word 0xf234a800 .word 0xf234ac00 .word 0xf234b000 .word 0xf234b400 .word 0xf234b800 .word 0xf234bc00 .word 0xf234c000 .word 0xf234c400 .word 0xf234c800 .word 0xf234cc00 .word 0xf234d000 .word 0xf234d400 .word 0xf234d800 .word 0xf234dc00 .word 0xf234e000 .word 0xf234e400 .word 0xf234e800 .word 0xf234ec00 .word 0xf234f000 .word 0xf234f400 .word 0xf234f800 .word 0xf234fc00 .word 0xf2350000 .word 0xf2350400 .word 0xf2350800 .word 0xf2350c00 .word 0xf2351000 .word 0xf2351400 .word 0xf2351800 .word 0xf2351c00 .word 0xf2352000 .word 0xf2352400 .word 0xf2352800 .word 0xf2352c00 .word 0xf2353000 .word 0xf2353400 .word 0xf2353800 .word 0xf2353c00 .word 0xf2354000 .word 0xf2354400 .word 0xf2354800 .word 0xf2354c00 .word 0xf2355000 .word 0xf2355400 .word 0xf2355800 .word 0xf2355c00 .word 0xf2356000 .word 0xf2356400 .word 0xf2356800 .word 0xf2356c00 .word 0xf2357000 .word 0xf2357400 .word 0xf2357800 .word 0xf2357c00 .word 0xf2358000 .word 0xf2358400 .word 0xf2358800 .word 0xf2358c00 .word 0xf2359000 .word 0xf2359400 .word 0xf2359800 .word 0xf2359c00 .word 0xf235a000 .word 0xf235a400 .word 0xf235a800 .word 0xf235ac00 .word 0xf235b000 .word 0xf235b400 .word 0xf235b800 .word 0xf235bc00 .word 0xf235c000 .word 0xf235c400 .word 0xf235c800 .word 0xf235cc00 .word 0xf235d000 .word 0xf235d400 .word 0xf235d800 .word 0xf235dc00 .word 0xf235e000 .word 0xf235e400 .word 0xf235e800 .word 0xf235ec00 .word 0xf235f000 .word 0xf235f400 .word 0xf235f800 .word 0xf235fc00 .word 0xf2360000 .word 0xf2360400 .word 0xf2360800 .word 0xf2360c00 .word 0xf2361000 .word 0xf2361400 .word 0xf2361800 .word 0xf2361c00 .word 0xf2362000 .word 0xf2362400 .word 0xf2362800 .word 0xf2362c00 .word 0xf2363000 .word 0xf2363400 .word 0xf2363800 .word 0xf2363c00 .word 0xf2364000 .word 0xf2364400 .word 0xf2364800 .word 0xf2364c00 .word 0xf2365000 .word 0xf2365400 .word 0xf2365800 .word 0xf2365c00 .word 0xf2366000 .word 0xf2366400 .word 0xf2366800 .word 0xf2366c00 .word 0xf2367000 .word 0xf2367400 .word 0xf2367800 .word 0xf2367c00 .word 0xf2368000 .word 0xf2368400 .word 0xf2368800 .word 0xf2368c00 .word 0xf2369000 .word 0xf2369400 .word 0xf2369800 .word 0xf2369c00 .word 0xf236a000 .word 0xf236a400 .word 0xf236a800 .word 0xf236ac00 .word 0xf236b000 .word 0xf236b400 .word 0xf236b800 .word 0xf236bc00 .word 0xf236c000 .word 0xf236c400 .word 0xf236c800 .word 0xf236cc00 .word 0xf236d000 .word 0xf236d400 .word 0xf236d800 .word 0xf236dc00 .word 0xf236e000 .word 0xf236e400 .word 0xf236e800 .word 0xf236ec00 .word 0xf236f000 .word 0xf236f400 .word 0xf236f800 .word 0xf236fc00 .word 0xf2370000 .word 0xf2370400 .word 0xf2370800 .word 0xf2370c00 .word 0xf2371000 .word 0xf2371400 .word 0xf2371800 .word 0xf2371c00 .word 0xf2372000 .word 0xf2372400 .word 0xf2372800 .word 0xf2372c00 .word 0xf2373000 .word 0xf2373400 .word 0xf2373800 .word 0xf2373c00 .word 0xf2374000 .word 0xf2374400 .word 0xf2374800 .word 0xf2374c00 .word 0xf2375000 .word 0xf2375400 .word 0xf2375800 .word 0xf2375c00 .word 0xf2376000 .word 0xf2376400 .word 0xf2376800 .word 0xf2376c00 .word 0xf2377000 .word 0xf2377400 .word 0xf2377800 .word 0xf2377c00 .word 0xf2378000 .word 0xf2378400 .word 0xf2378800 .word 0xf2378c00 .word 0xf2379000 .word 0xf2379400 .word 0xf2379800 .word 0xf2379c00 .word 0xf237a000 .word 0xf237a400 .word 0xf237a800 .word 0xf237ac00 .word 0xf237b000 .word 0xf237b400 .word 0xf237b800 .word 0xf237bc00 .word 0xf237c000 .word 0xf237c400 .word 0xf237c800 .word 0xf237cc00 .word 0xf237d000 .word 0xf237d400 .word 0xf237d800 .word 0xf237dc00 .word 0xf237e000 .word 0xf237e400 .word 0xf237e800 .word 0xf237ec00 .word 0xf237f000 .word 0xf237f400 .word 0xf237f800 .word 0xf237fc00 .word 0xf2380000 .word 0xf2380400 .word 0xf2380800 .word 0xf2380c00 .word 0xf2381000 .word 0xf2381400 .word 0xf2381800 .word 0xf2381c00 .word 0xf2382000 .word 0xf2382400 .word 0xf2382800 .word 0xf2382c00 .word 0xf2383000 .word 0xf2383400 .word 0xf2383800 .word 0xf2383c00 .word 0xf2384000 .word 0xf2384400 .word 0xf2384800 .word 0xf2384c00 .word 0xf2385000 .word 0xf2385400 .word 0xf2385800 .word 0xf2385c00 .word 0xf2386000 .word 0xf2386400 .word 0xf2386800 .word 0xf2386c00 .word 0xf2387000 .word 0xf2387400 .word 0xf2387800 .word 0xf2387c00 .word 0xf2388000 .word 0xf2388400 .word 0xf2388800 .word 0xf2388c00 .word 0xf2389000 .word 0xf2389400 .word 0xf2389800 .word 0xf2389c00 .word 0xf238a000 .word 0xf238a400 .word 0xf238a800 .word 0xf238ac00 .word 0xf238b000 .word 0xf238b400 .word 0xf238b800 .word 0xf238bc00 .word 0xf238c000 .word 0xf238c400 .word 0xf238c800 .word 0xf238cc00 .word 0xf238d000 .word 0xf238d400 .word 0xf238d800 .word 0xf238dc00 .word 0xf238e000 .word 0xf238e400 .word 0xf238e800 .word 0xf238ec00 .word 0xf238f000 .word 0xf238f400 .word 0xf238f800 .word 0xf238fc00 .word 0xf2390000 .word 0xf2390400 .word 0xf2390800 .word 0xf2390c00 .word 0xf2391000 .word 0xf2391400 .word 0xf2391800 .word 0xf2391c00 .word 0xf2392000 .word 0xf2392400 .word 0xf2392800 .word 0xf2392c00 .word 0xf2393000 .word 0xf2393400 .word 0xf2393800 .word 0xf2393c00 .word 0xf2394000 .word 0xf2394400 .word 0xf2394800 .word 0xf2394c00 .word 0xf2395000 .word 0xf2395400 .word 0xf2395800 .word 0xf2395c00 .word 0xf2396000 .word 0xf2396400 .word 0xf2396800 .word 0xf2396c00 .word 0xf2397000 .word 0xf2397400 .word 0xf2397800 .word 0xf2397c00 .word 0xf2398000 .word 0xf2398400 .word 0xf2398800 .word 0xf2398c00 .word 0xf2399000 .word 0xf2399400 .word 0xf2399800 .word 0xf2399c00 .word 0xf239a000 .word 0xf239a400 .word 0xf239a800 .word 0xf239ac00 .word 0xf239b000 .word 0xf239b400 .word 0xf239b800 .word 0xf239bc00 .word 0xf239c000 .word 0xf239c400 .word 0xf239c800 .word 0xf239cc00 .word 0xf239d000 .word 0xf239d400 .word 0xf239d800 .word 0xf239dc00 .word 0xf239e000 .word 0xf239e400 .word 0xf239e800 .word 0xf239ec00 .word 0xf239f000 .word 0xf239f400 .word 0xf239f800 .word 0xf239fc00 .word 0xf23a0000 .word 0xf23a0400 .word 0xf23a0800 .word 0xf23a0c00 .word 0xf23a1000 .word 0xf23a1400 .word 0xf23a1800 .word 0xf23a1c00 .word 0xf23a2000 .word 0xf23a2400 .word 0xf23a2800 .word 0xf23a2c00 .word 0xf23a3000 .word 0xf23a3400 .word 0xf23a3800 .word 0xf23a3c00 .word 0xf23a4000 .word 0xf23a4400 .word 0xf23a4800 .word 0xf23a4c00 .word 0xf23a5000 .word 0xf23a5400 .word 0xf23a5800 .word 0xf23a5c00 .word 0xf23a6000 .word 0xf23a6400 .word 0xf23a6800 .word 0xf23a6c00 .word 0xf23a7000 .word 0xf23a7400 .word 0xf23a7800 .word 0xf23a7c00 .word 0xf23a8000 .word 0xf23a8400 .word 0xf23a8800 .word 0xf23a8c00 .word 0xf23a9000 .word 0xf23a9400 .word 0xf23a9800 .word 0xf23a9c00 .word 0xf23aa000 .word 0xf23aa400 .word 0xf23aa800 .word 0xf23aac00 .word 0xf23ab000 .word 0xf23ab400 .word 0xf23ab800 .word 0xf23abc00 .word 0xf23ac000 .word 0xf23ac400 .word 0xf23ac800 .word 0xf23acc00 .word 0xf23ad000 .word 0xf23ad400 .word 0xf23ad800 .word 0xf23adc00 .word 0xf23ae000 .word 0xf23ae400 .word 0xf23ae800 .word 0xf23aec00 .word 0xf23af000 .word 0xf23af400 .word 0xf23af800 .word 0xf23afc00 .word 0xf23b0000 .word 0xf23b0400 .word 0xf23b0800 .word 0xf23b0c00 .word 0xf23b1000 .word 0xf23b1400 .word 0xf23b1800 .word 0xf23b1c00 .word 0xf23b2000 .word 0xf23b2400 .word 0xf23b2800 .word 0xf23b2c00 .word 0xf23b3000 .word 0xf23b3400 .word 0xf23b3800 .word 0xf23b3c00 .word 0xf23b4000 .word 0xf23b4400 .word 0xf23b4800 .word 0xf23b4c00 .word 0xf23b5000 .word 0xf23b5400 .word 0xf23b5800 .word 0xf23b5c00 .word 0xf23b6000 .word 0xf23b6400 .word 0xf23b6800 .word 0xf23b6c00 .word 0xf23b7000 .word 0xf23b7400 .word 0xf23b7800 .word 0xf23b7c00 .word 0xf23b8000 .word 0xf23b8400 .word 0xf23b8800 .word 0xf23b8c00 .word 0xf23b9000 .word 0xf23b9400 .word 0xf23b9800 .word 0xf23b9c00 .word 0xf23ba000 .word 0xf23ba400 .word 0xf23ba800 .word 0xf23bac00 .word 0xf23bb000 .word 0xf23bb400 .word 0xf23bb800 .word 0xf23bbc00 .word 0xf23bc000 .word 0xf23bc400 .word 0xf23bc800 .word 0xf23bcc00 .word 0xf23bd000 .word 0xf23bd400 .word 0xf23bd800 .word 0xf23bdc00 .word 0xf23be000 .word 0xf23be400 .word 0xf23be800 .word 0xf23bec00 .word 0xf23bf000 .word 0xf23bf400 .word 0xf23bf800 .word 0xf23bfc00 .word 0xf23c0000 .word 0xf23c0400 .word 0xf23c0800 .word 0xf23c0c00 .word 0xf23c1000 .word 0xf23c1400 .word 0xf23c1800 .word 0xf23c1c00 .word 0xf23c2000 .word 0xf23c2400 .word 0xf23c2800 .word 0xf23c2c00 .word 0xf23c3000 .word 0xf23c3400 .word 0xf23c3800 .word 0xf23c3c00 .word 0xf23c4000 .word 0xf23c4400 .word 0xf23c4800 .word 0xf23c4c00 .word 0xf23c5000 .word 0xf23c5400 .word 0xf23c5800 .word 0xf23c5c00 .word 0xf23c6000 .word 0xf23c6400 .word 0xf23c6800 .word 0xf23c6c00 .word 0xf23c7000 .word 0xf23c7400 .word 0xf23c7800 .word 0xf23c7c00 .word 0xf23c8000 .word 0xf23c8400 .word 0xf23c8800 .word 0xf23c8c00 .word 0xf23c9000 .word 0xf23c9400 .word 0xf23c9800 .word 0xf23c9c00 .word 0xf23ca000 .word 0xf23ca400 .word 0xf23ca800 .word 0xf23cac00 .word 0xf23cb000 .word 0xf23cb400 .word 0xf23cb800 .word 0xf23cbc00 .word 0xf23cc000 .word 0xf23cc400 .word 0xf23cc800 .word 0xf23ccc00 .word 0xf23cd000 .word 0xf23cd400 .word 0xf23cd800 .word 0xf23cdc00 .word 0xf23ce000 .word 0xf23ce400 .word 0xf23ce800 .word 0xf23cec00 .word 0xf23cf000 .word 0xf23cf400 .word 0xf23cf800 .word 0xf23cfc00 .word 0xf23d0000 .word 0xf23d0400 .word 0xf23d0800 .word 0xf23d0c00 .word 0xf23d1000 .word 0xf23d1400 .word 0xf23d1800 .word 0xf23d1c00 .word 0xf23d2000 .word 0xf23d2400 .word 0xf23d2800 .word 0xf23d2c00 .word 0xf23d3000 .word 0xf23d3400 .word 0xf23d3800 .word 0xf23d3c00 .word 0xf23d4000 .word 0xf23d4400 .word 0xf23d4800 .word 0xf23d4c00 .word 0xf23d5000 .word 0xf23d5400 .word 0xf23d5800 .word 0xf23d5c00 .word 0xf23d6000 .word 0xf23d6400 .word 0xf23d6800 .word 0xf23d6c00 .word 0xf23d7000 .word 0xf23d7400 .word 0xf23d7800 .word 0xf23d7c00 .word 0xf23d8000 .word 0xf23d8400 .word 0xf23d8800 .word 0xf23d8c00 .word 0xf23d9000 .word 0xf23d9400 .word 0xf23d9800 .word 0xf23d9c00 .word 0xf23da000 .word 0xf23da400 .word 0xf23da800 .word 0xf23dac00 .word 0xf23db000 .word 0xf23db400 .word 0xf23db800 .word 0xf23dbc00 .word 0xf23dc000 .word 0xf23dc400 .word 0xf23dc800 .word 0xf23dcc00 .word 0xf23dd000 .word 0xf23dd400 .word 0xf23dd800 .word 0xf23ddc00 .word 0xf23de000 .word 0xf23de400 .word 0xf23de800 .word 0xf23dec00 .word 0xf23df000 .word 0xf23df400 .word 0xf23df800 .word 0xf23dfc00 .word 0xf23e0000 .word 0xf23e0400 .word 0xf23e0800 .word 0xf23e0c00 .word 0xf23e1000 .word 0xf23e1400 .word 0xf23e1800 .word 0xf23e1c00 .word 0xf23e2000 .word 0xf23e2400 .word 0xf23e2800 .word 0xf23e2c00 .word 0xf23e3000 .word 0xf23e3400 .word 0xf23e3800 .word 0xf23e3c00 .word 0xf23e4000 .word 0xf23e4400 .word 0xf23e4800 .word 0xf23e4c00 .word 0xf23e5000 .word 0xf23e5400 .word 0xf23e5800 .word 0xf23e5c00 .word 0xf23e6000 .word 0xf23e6400 .word 0xf23e6800 .word 0xf23e6c00 .word 0xf23e7000 .word 0xf23e7400 .word 0xf23e7800 .word 0xf23e7c00 .word 0xf23e8000 .word 0xf23e8400 .word 0xf23e8800 .word 0xf23e8c00 .word 0xf23e9000 .word 0xf23e9400 .word 0xf23e9800 .word 0xf23e9c00 .word 0xf23ea000 .word 0xf23ea400 .word 0xf23ea800 .word 0xf23eac00 .word 0xf23eb000 .word 0xf23eb400 .word 0xf23eb800 .word 0xf23ebc00 .word 0xf23ec000 .word 0xf23ec400 .word 0xf23ec800 .word 0xf23ecc00 .word 0xf23ed000 .word 0xf23ed400 .word 0xf23ed800 .word 0xf23edc00 .word 0xf23ee000 .word 0xf23ee400 .word 0xf23ee800 .word 0xf23eec00 .word 0xf23ef000 .word 0xf23ef400 .word 0xf23ef800 .word 0xf23efc00 .word 0xf23f0000 .word 0xf23f0400 .word 0xf23f0800 .word 0xf23f0c00 .word 0xf23f1000 .word 0xf23f1400 .word 0xf23f1800 .word 0xf23f1c00 .word 0xf23f2000 .word 0xf23f2400 .word 0xf23f2800 .word 0xf23f2c00 .word 0xf23f3000 .word 0xf23f3400 .word 0xf23f3800 .word 0xf23f3c00 .word 0xf23f4000 .word 0xf23f4400 .word 0xf23f4800 .word 0xf23f4c00 .word 0xf23f5000 .word 0xf23f5400 .word 0xf23f5800 .word 0xf23f5c00 .word 0xf23f6000 .word 0xf23f6400 .word 0xf23f6800 .word 0xf23f6c00 .word 0xf23f7000 .word 0xf23f7400 .word 0xf23f7800 .word 0xf23f7c00 .word 0xf23f8000 .word 0xf23f8400 .word 0xf23f8800 .word 0xf23f8c00 .word 0xf23f9000 .word 0xf23f9400 .word 0xf23f9800 .word 0xf23f9c00 .word 0xf23fa000 .word 0xf23fa400 .word 0xf23fa800 .word 0xf23fac00 .word 0xf23fb000 .word 0xf23fb400 .word 0xf23fb800 .word 0xf23fbc00 .word 0xf23fc000 .word 0xf23fc400 .word 0xf23fc800 .word 0xf23fcc00 .word 0xf23fd000 .word 0xf23fd400 .word 0xf23fd800 .word 0xf23fdc00 .word 0xf23fe000 .word 0xf23fe400 .word 0xf23fe800 .word 0xf23fec00 .word 0xf23ff000 .word 0xf23ff400 .word 0xf23ff800 .word 0xf23ffc00 .word 0xf2400000 .word 0xf2400400 .word 0xf2400800 .word 0xf2400c00 .word 0xf2401000 .word 0xf2401400 .word 0xf2401800 .word 0xf2401c00 .word 0xf2402000 .word 0xf2402400 .word 0xf2402800 .word 0xf2402c00 .word 0xf2403000 .word 0xf2403400 .word 0xf2403800 .word 0xf2403c00 .word 0xf2404000 .word 0xf2404400 .word 0xf2404800 .word 0xf2404c00 .word 0xf2405000 .word 0xf2405400 .word 0xf2405800 .word 0xf2405c00 .word 0xf2406000 .word 0xf2406400 .word 0xf2406800 .word 0xf2406c00 .word 0xf2407000 .word 0xf2407400 .word 0xf2407800 .word 0xf2407c00 .word 0xf2408000 .word 0xf2408400 .word 0xf2408800 .word 0xf2408c00 .word 0xf2409000 .word 0xf2409400 .word 0xf2409800 .word 0xf2409c00 .word 0xf240a000 .word 0xf240a400 .word 0xf240a800 .word 0xf240ac00 .word 0xf240b000 .word 0xf240b400 .word 0xf240b800 .word 0xf240bc00 .word 0xf240c000 .word 0xf240c400 .word 0xf240c800 .word 0xf240cc00 .word 0xf240d000 .word 0xf240d400 .word 0xf240d800 .word 0xf240dc00 .word 0xf240e000 .word 0xf240e400 .word 0xf240e800 .word 0xf240ec00 .word 0xf240f000 .word 0xf240f400 .word 0xf240f800 .word 0xf240fc00 .word 0xf2410000 .word 0xf2410400 .word 0xf2410800 .word 0xf2410c00 .word 0xf2411000 .word 0xf2411400 .word 0xf2411800 .word 0xf2411c00 .word 0xf2412000 .word 0xf2412400 .word 0xf2412800 .word 0xf2412c00 .word 0xf2413000 .word 0xf2413400 .word 0xf2413800 .word 0xf2413c00 .word 0xf2414000 .word 0xf2414400 .word 0xf2414800 .word 0xf2414c00 .word 0xf2415000 .word 0xf2415400 .word 0xf2415800 .word 0xf2415c00 .word 0xf2416000 .word 0xf2416400 .word 0xf2416800 .word 0xf2416c00 .word 0xf2417000 .word 0xf2417400 .word 0xf2417800 .word 0xf2417c00 .word 0xf2418000 .word 0xf2418400 .word 0xf2418800 .word 0xf2418c00 .word 0xf2419000 .word 0xf2419400 .word 0xf2419800 .word 0xf2419c00 .word 0xf241a000 .word 0xf241a400 .word 0xf241a800 .word 0xf241ac00 .word 0xf241b000 .word 0xf241b400 .word 0xf241b800 .word 0xf241bc00 .word 0xf241c000 .word 0xf241c400 .word 0xf241c800 .word 0xf241cc00 .word 0xf241d000 .word 0xf241d400 .word 0xf241d800 .word 0xf241dc00 .word 0xf241e000 .word 0xf241e400 .word 0xf241e800 .word 0xf241ec00 .word 0xf241f000 .word 0xf241f400 .word 0xf241f800 .word 0xf241fc00 .word 0xf2420000 .word 0xf2420400 .word 0xf2420800 .word 0xf2420c00 .word 0xf2421000 .word 0xf2421400 .word 0xf2421800 .word 0xf2421c00 .word 0xf2422000 .word 0xf2422400 .word 0xf2422800 .word 0xf2422c00 .word 0xf2423000 .word 0xf2423400 .word 0xf2423800 .word 0xf2423c00 .word 0xf2424000 .word 0xf2424400 .word 0xf2424800 .word 0xf2424c00 .word 0xf2425000 .word 0xf2425400 .word 0xf2425800 .word 0xf2425c00 .word 0xf2426000 .word 0xf2426400 .word 0xf2426800 .word 0xf2426c00 .word 0xf2427000 .word 0xf2427400 .word 0xf2427800 .word 0xf2427c00 .word 0xf2428000 .word 0xf2428400 .word 0xf2428800 .word 0xf2428c00 .word 0xf2429000 .word 0xf2429400 .word 0xf2429800 .word 0xf2429c00 .word 0xf242a000 .word 0xf242a400 .word 0xf242a800 .word 0xf242ac00 .word 0xf242b000 .word 0xf242b400 .word 0xf242b800 .word 0xf242bc00 .word 0xf242c000 .word 0xf242c400 .word 0xf242c800 .word 0xf242cc00 .word 0xf242d000 .word 0xf242d400 .word 0xf242d800 .word 0xf242dc00 .word 0xf242e000 .word 0xf242e400 .word 0xf242e800 .word 0xf242ec00 .word 0xf242f000 .word 0xf242f400 .word 0xf242f800 .word 0xf242fc00 .word 0xf2430000 .word 0xf2430400 .word 0xf2430800 .word 0xf2430c00 .word 0xf2431000 .word 0xf2431400 .word 0xf2431800 .word 0xf2431c00 .word 0xf2432000 .word 0xf2432400 .word 0xf2432800 .word 0xf2432c00 .word 0xf2433000 .word 0xf2433400 .word 0xf2433800 .word 0xf2433c00 .word 0xf2434000 .word 0xf2434400 .word 0xf2434800 .word 0xf2434c00 .word 0xf2435000 .word 0xf2435400 .word 0xf2435800 .word 0xf2435c00 .word 0xf2436000 .word 0xf2436400 .word 0xf2436800 .word 0xf2436c00 .word 0xf2437000 .word 0xf2437400 .word 0xf2437800 .word 0xf2437c00 .word 0xf2438000 .word 0xf2438400 .word 0xf2438800 .word 0xf2438c00 .word 0xf2439000 .word 0xf2439400 .word 0xf2439800 .word 0xf2439c00 .word 0xf243a000 .word 0xf243a400 .word 0xf243a800 .word 0xf243ac00 .word 0xf243b000 .word 0xf243b400 .word 0xf243b800 .word 0xf243bc00 .word 0xf243c000 .word 0xf243c400 .word 0xf243c800 .word 0xf243cc00 .word 0xf243d000 .word 0xf243d400 .word 0xf243d800 .word 0xf243dc00 .word 0xf243e000 .word 0xf243e400 .word 0xf243e800 .word 0xf243ec00 .word 0xf243f000 .word 0xf243f400 .word 0xf243f800 .word 0xf243fc00 .word 0xf2440000 .word 0xf2440400 .word 0xf2440800 .word 0xf2440c00 .word 0xf2441000 .word 0xf2441400 .word 0xf2441800 .word 0xf2441c00 .word 0xf2442000 .word 0xf2442400 .word 0xf2442800 .word 0xf2442c00 .word 0xf2443000 .word 0xf2443400 .word 0xf2443800 .word 0xf2443c00 .word 0xf2444000 .word 0xf2444400 .word 0xf2444800 .word 0xf2444c00 .word 0xf2445000 .word 0xf2445400 .word 0xf2445800 .word 0xf2445c00 .word 0xf2446000 .word 0xf2446400 .word 0xf2446800 .word 0xf2446c00 .word 0xf2447000 .word 0xf2447400 .word 0xf2447800 .word 0xf2447c00 .word 0xf2448000 .word 0xf2448400 .word 0xf2448800 .word 0xf2448c00 .word 0xf2449000 .word 0xf2449400 .word 0xf2449800 .word 0xf2449c00 .word 0xf244a000 .word 0xf244a400 .word 0xf244a800 .word 0xf244ac00 .word 0xf244b000 .word 0xf244b400 .word 0xf244b800 .word 0xf244bc00 .word 0xf244c000 .word 0xf244c400 .word 0xf244c800 .word 0xf244cc00 .word 0xf244d000 .word 0xf244d400 .word 0xf244d800 .word 0xf244dc00 .word 0xf244e000 .word 0xf244e400 .word 0xf244e800 .word 0xf244ec00 .word 0xf244f000 .word 0xf244f400 .word 0xf244f800 .word 0xf244fc00 .word 0xf2450000 .word 0xf2450400 .word 0xf2450800 .word 0xf2450c00 .word 0xf2451000 .word 0xf2451400 .word 0xf2451800 .word 0xf2451c00 .word 0xf2452000 .word 0xf2452400 .word 0xf2452800 .word 0xf2452c00 .word 0xf2453000 .word 0xf2453400 .word 0xf2453800 .word 0xf2453c00 .word 0xf2454000 .word 0xf2454400 .word 0xf2454800 .word 0xf2454c00 .word 0xf2455000 .word 0xf2455400 .word 0xf2455800 .word 0xf2455c00 .word 0xf2456000 .word 0xf2456400 .word 0xf2456800 .word 0xf2456c00 .word 0xf2457000 .word 0xf2457400 .word 0xf2457800 .word 0xf2457c00 .word 0xf2458000 .word 0xf2458400 .word 0xf2458800 .word 0xf2458c00 .word 0xf2459000 .word 0xf2459400 .word 0xf2459800 .word 0xf2459c00 .word 0xf245a000 .word 0xf245a400 .word 0xf245a800 .word 0xf245ac00 .word 0xf245b000 .word 0xf245b400 .word 0xf245b800 .word 0xf245bc00 .word 0xf245c000 .word 0xf245c400 .word 0xf245c800 .word 0xf245cc00 .word 0xf245d000 .word 0xf245d400 .word 0xf245d800 .word 0xf245dc00 .word 0xf245e000 .word 0xf245e400 .word 0xf245e800 .word 0xf245ec00 .word 0xf245f000 .word 0xf245f400 .word 0xf245f800 .word 0xf245fc00 .word 0xf2460000 .word 0xf2460400 .word 0xf2460800 .word 0xf2460c00 .word 0xf2461000 .word 0xf2461400 .word 0xf2461800 .word 0xf2461c00 .word 0xf2462000 .word 0xf2462400 .word 0xf2462800 .word 0xf2462c00 .word 0xf2463000 .word 0xf2463400 .word 0xf2463800 .word 0xf2463c00 .word 0xf2464000 .word 0xf2464400 .word 0xf2464800 .word 0xf2464c00 .word 0xf2465000 .word 0xf2465400 .word 0xf2465800 .word 0xf2465c00 .word 0xf2466000 .word 0xf2466400 .word 0xf2466800 .word 0xf2466c00 .word 0xf2467000 .word 0xf2467400 .word 0xf2467800 .word 0xf2467c00 .word 0xf2468000 .word 0xf2468400 .word 0xf2468800 .word 0xf2468c00 .word 0xf2469000 .word 0xf2469400 .word 0xf2469800 .word 0xf2469c00 .word 0xf246a000 .word 0xf246a400 .word 0xf246a800 .word 0xf246ac00 .word 0xf246b000 .word 0xf246b400 .word 0xf246b800 .word 0xf246bc00 .word 0xf246c000 .word 0xf246c400 .word 0xf246c800 .word 0xf246cc00 .word 0xf246d000 .word 0xf246d400 .word 0xf246d800 .word 0xf246dc00 .word 0xf246e000 .word 0xf246e400 .word 0xf246e800 .word 0xf246ec00 .word 0xf246f000 .word 0xf246f400 .word 0xf246f800 .word 0xf246fc00 .word 0xf2470000 .word 0xf2470400 .word 0xf2470800 .word 0xf2470c00 .word 0xf2471000 .word 0xf2471400 .word 0xf2471800 .word 0xf2471c00 .word 0xf2472000 .word 0xf2472400 .word 0xf2472800 .word 0xf2472c00 .word 0xf2473000 .word 0xf2473400 .word 0xf2473800 .word 0xf2473c00 .word 0xf2474000 .word 0xf2474400 .word 0xf2474800 .word 0xf2474c00 .word 0xf2475000 .word 0xf2475400 .word 0xf2475800 .word 0xf2475c00 .word 0xf2476000 .word 0xf2476400 .word 0xf2476800 .word 0xf2476c00 .word 0xf2477000 .word 0xf2477400 .word 0xf2477800 .word 0xf2477c00 .word 0xf2478000 .word 0xf2478400 .word 0xf2478800 .word 0xf2478c00 .word 0xf2479000 .word 0xf2479400 .word 0xf2479800 .word 0xf2479c00 .word 0xf247a000 .word 0xf247a400 .word 0xf247a800 .word 0xf247ac00 .word 0xf247b000 .word 0xf247b400 .word 0xf247b800 .word 0xf247bc00 .word 0xf247c000 .word 0xf247c400 .word 0xf247c800 .word 0xf247cc00 .word 0xf247d000 .word 0xf247d400 .word 0xf247d800 .word 0xf247dc00 .word 0xf247e000 .word 0xf247e400 .word 0xf247e800 .word 0xf247ec00 .word 0xf247f000 .word 0xf247f400 .word 0xf247f800 .word 0xf247fc00 .word 0xf2480000 .word 0xf2480400 .word 0xf2480800 .word 0xf2480c00 .word 0xf2481000 .word 0xf2481400 .word 0xf2481800 .word 0xf2481c00 .word 0xf2482000 .word 0xf2482400 .word 0xf2482800 .word 0xf2482c00 .word 0xf2483000 .word 0xf2483400 .word 0xf2483800 .word 0xf2483c00 .word 0xf2484000 .word 0xf2484400 .word 0xf2484800 .word 0xf2484c00 .word 0xf2485000 .word 0xf2485400 .word 0xf2485800 .word 0xf2485c00 .word 0xf2486000 .word 0xf2486400 .word 0xf2486800 .word 0xf2486c00 .word 0xf2487000 .word 0xf2487400 .word 0xf2487800 .word 0xf2487c00 .word 0xf2488000 .word 0xf2488400 .word 0xf2488800 .word 0xf2488c00 .word 0xf2489000 .word 0xf2489400 .word 0xf2489800 .word 0xf2489c00 .word 0xf248a000 .word 0xf248a400 .word 0xf248a800 .word 0xf248ac00 .word 0xf248b000 .word 0xf248b400 .word 0xf248b800 .word 0xf248bc00 .word 0xf248c000 .word 0xf248c400 .word 0xf248c800 .word 0xf248cc00 .word 0xf248d000 .word 0xf248d400 .word 0xf248d800 .word 0xf248dc00 .word 0xf248e000 .word 0xf248e400 .word 0xf248e800 .word 0xf248ec00 .word 0xf248f000 .word 0xf248f400 .word 0xf248f800 .word 0xf248fc00 .word 0xf2490000 .word 0xf2490400 .word 0xf2490800 .word 0xf2490c00 .word 0xf2491000 .word 0xf2491400 .word 0xf2491800 .word 0xf2491c00 .word 0xf2492000 .word 0xf2492400 .word 0xf2492800 .word 0xf2492c00 .word 0xf2493000 .word 0xf2493400 .word 0xf2493800 .word 0xf2493c00 .word 0xf2494000 .word 0xf2494400 .word 0xf2494800 .word 0xf2494c00 .word 0xf2495000 .word 0xf2495400 .word 0xf2495800 .word 0xf2495c00 .word 0xf2496000 .word 0xf2496400 .word 0xf2496800 .word 0xf2496c00 .word 0xf2497000 .word 0xf2497400 .word 0xf2497800 .word 0xf2497c00 .word 0xf2498000 .word 0xf2498400 .word 0xf2498800 .word 0xf2498c00 .word 0xf2499000 .word 0xf2499400 .word 0xf2499800 .word 0xf2499c00 .word 0xf249a000 .word 0xf249a400 .word 0xf249a800 .word 0xf249ac00 .word 0xf249b000 .word 0xf249b400 .word 0xf249b800 .word 0xf249bc00 .word 0xf249c000 .word 0xf249c400 .word 0xf249c800 .word 0xf249cc00 .word 0xf249d000 .word 0xf249d400 .word 0xf249d800 .word 0xf249dc00 .word 0xf249e000 .word 0xf249e400 .word 0xf249e800 .word 0xf249ec00 .word 0xf249f000 .word 0xf249f400 .word 0xf249f800 .word 0xf249fc00 .word 0xf24a0000 .word 0xf24a0400 .word 0xf24a0800 .word 0xf24a0c00 .word 0xf24a1000 .word 0xf24a1400 .word 0xf24a1800 .word 0xf24a1c00 .word 0xf24a2000 .word 0xf24a2400 .word 0xf24a2800 .word 0xf24a2c00 .word 0xf24a3000 .word 0xf24a3400 .word 0xf24a3800 .word 0xf24a3c00 .word 0xf24a4000 .word 0xf24a4400 .word 0xf24a4800 .word 0xf24a4c00 .word 0xf24a5000 .word 0xf24a5400 .word 0xf24a5800 .word 0xf24a5c00 .word 0xf24a6000 .word 0xf24a6400 .word 0xf24a6800 .word 0xf24a6c00 .word 0xf24a7000 .word 0xf24a7400 .word 0xf24a7800 .word 0xf24a7c00 .word 0xf24a8000 .word 0xf24a8400 .word 0xf24a8800 .word 0xf24a8c00 .word 0xf24a9000 .word 0xf24a9400 .word 0xf24a9800 .word 0xf24a9c00 .word 0xf24aa000 .word 0xf24aa400 .word 0xf24aa800 .word 0xf24aac00 .word 0xf24ab000 .word 0xf24ab400 .word 0xf24ab800 .word 0xf24abc00 .word 0xf24ac000 .word 0xf24ac400 .word 0xf24ac800 .word 0xf24acc00 .word 0xf24ad000 .word 0xf24ad400 .word 0xf24ad800 .word 0xf24adc00 .word 0xf24ae000 .word 0xf24ae400 .word 0xf24ae800 .word 0xf24aec00 .word 0xf24af000 .word 0xf24af400 .word 0xf24af800 .word 0xf24afc00 .word 0xf24b0000 .word 0xf24b0400 .word 0xf24b0800 .word 0xf24b0c00 .word 0xf24b1000 .word 0xf24b1400 .word 0xf24b1800 .word 0xf24b1c00 .word 0xf24b2000 .word 0xf24b2400 .word 0xf24b2800 .word 0xf24b2c00 .word 0xf24b3000 .word 0xf24b3400 .word 0xf24b3800 .word 0xf24b3c00 .word 0xf24b4000 .word 0xf24b4400 .word 0xf24b4800 .word 0xf24b4c00 .word 0xf24b5000 .word 0xf24b5400 .word 0xf24b5800 .word 0xf24b5c00 .word 0xf24b6000 .word 0xf24b6400 .word 0xf24b6800 .word 0xf24b6c00 .word 0xf24b7000 .word 0xf24b7400 .word 0xf24b7800 .word 0xf24b7c00 .word 0xf24b8000 .word 0xf24b8400 .word 0xf24b8800 .word 0xf24b8c00 .word 0xf24b9000 .word 0xf24b9400 .word 0xf24b9800 .word 0xf24b9c00 .word 0xf24ba000 .word 0xf24ba400 .word 0xf24ba800 .word 0xf24bac00 .word 0xf24bb000 .word 0xf24bb400 .word 0xf24bb800 .word 0xf24bbc00 .word 0xf24bc000 .word 0xf24bc400 .word 0xf24bc800 .word 0xf24bcc00 .word 0xf24bd000 .word 0xf24bd400 .word 0xf24bd800 .word 0xf24bdc00 .word 0xf24be000 .word 0xf24be400 .word 0xf24be800 .word 0xf24bec00 .word 0xf24bf000 .word 0xf24bf400 .word 0xf24bf800 .word 0xf24bfc00 .word 0xf24c0000 .word 0xf24c0400 .word 0xf24c0800 .word 0xf24c0c00 .word 0xf24c1000 .word 0xf24c1400 .word 0xf24c1800 .word 0xf24c1c00 .word 0xf24c2000 .word 0xf24c2400 .word 0xf24c2800 .word 0xf24c2c00 .word 0xf24c3000 .word 0xf24c3400 .word 0xf24c3800 .word 0xf24c3c00 .word 0xf24c4000 .word 0xf24c4400 .word 0xf24c4800 .word 0xf24c4c00 .word 0xf24c5000 .word 0xf24c5400 .word 0xf24c5800 .word 0xf24c5c00 .word 0xf24c6000 .word 0xf24c6400 .word 0xf24c6800 .word 0xf24c6c00 .word 0xf24c7000 .word 0xf24c7400 .word 0xf24c7800 .word 0xf24c7c00 .word 0xf24c8000 .word 0xf24c8400 .word 0xf24c8800 .word 0xf24c8c00 .word 0xf24c9000 .word 0xf24c9400 .word 0xf24c9800 .word 0xf24c9c00 .word 0xf24ca000 .word 0xf24ca400 .word 0xf24ca800 .word 0xf24cac00 .word 0xf24cb000 .word 0xf24cb400 .word 0xf24cb800 .word 0xf24cbc00 .word 0xf24cc000 .word 0xf24cc400 .word 0xf24cc800 .word 0xf24ccc00 .word 0xf24cd000 .word 0xf24cd400 .word 0xf24cd800 .word 0xf24cdc00 .word 0xf24ce000 .word 0xf24ce400 .word 0xf24ce800 .word 0xf24cec00 .word 0xf24cf000 .word 0xf24cf400 .word 0xf24cf800 .word 0xf24cfc00 .word 0xf24d0000 .word 0xf24d0400 .word 0xf24d0800 .word 0xf24d0c00 .word 0xf24d1000 .word 0xf24d1400 .word 0xf24d1800 .word 0xf24d1c00 .word 0xf24d2000 .word 0xf24d2400 .word 0xf24d2800 .word 0xf24d2c00 .word 0xf24d3000 .word 0xf24d3400 .word 0xf24d3800 .word 0xf24d3c00 .word 0xf24d4000 .word 0xf24d4400 .word 0xf24d4800 .word 0xf24d4c00 .word 0xf24d5000 .word 0xf24d5400 .word 0xf24d5800 .word 0xf24d5c00 .word 0xf24d6000 .word 0xf24d6400 .word 0xf24d6800 .word 0xf24d6c00 .word 0xf24d7000 .word 0xf24d7400 .word 0xf24d7800 .word 0xf24d7c00 .word 0xf24d8000 .word 0xf24d8400 .word 0xf24d8800 .word 0xf24d8c00 .word 0xf24d9000 .word 0xf24d9400 .word 0xf24d9800 .word 0xf24d9c00 .word 0xf24da000 .word 0xf24da400 .word 0xf24da800 .word 0xf24dac00 .word 0xf24db000 .word 0xf24db400 .word 0xf24db800 .word 0xf24dbc00 .word 0xf24dc000 .word 0xf24dc400 .word 0xf24dc800 .word 0xf24dcc00 .word 0xf24dd000 .word 0xf24dd400 .word 0xf24dd800 .word 0xf24ddc00 .word 0xf24de000 .word 0xf24de400 .word 0xf24de800 .word 0xf24dec00 .word 0xf24df000 .word 0xf24df400 .word 0xf24df800 .word 0xf24dfc00 .word 0xf24e0000 .word 0xf24e0400 .word 0xf24e0800 .word 0xf24e0c00 .word 0xf24e1000 .word 0xf24e1400 .word 0xf24e1800 .word 0xf24e1c00 .word 0xf24e2000 .word 0xf24e2400 .word 0xf24e2800 .word 0xf24e2c00 .word 0xf24e3000 .word 0xf24e3400 .word 0xf24e3800 .word 0xf24e3c00 .word 0xf24e4000 .word 0xf24e4400 .word 0xf24e4800 .word 0xf24e4c00 .word 0xf24e5000 .word 0xf24e5400 .word 0xf24e5800 .word 0xf24e5c00 .word 0xf24e6000 .word 0xf24e6400 .word 0xf24e6800 .word 0xf24e6c00 .word 0xf24e7000 .word 0xf24e7400 .word 0xf24e7800 .word 0xf24e7c00 .word 0xf24e8000 .word 0xf24e8400 .word 0xf24e8800 .word 0xf24e8c00 .word 0xf24e9000 .word 0xf24e9400 .word 0xf24e9800 .word 0xf24e9c00 .word 0xf24ea000 .word 0xf24ea400 .word 0xf24ea800 .word 0xf24eac00 .word 0xf24eb000 .word 0xf24eb400 .word 0xf24eb800 .word 0xf24ebc00 .word 0xf24ec000 .word 0xf24ec400 .word 0xf24ec800 .word 0xf24ecc00 .word 0xf24ed000 .word 0xf24ed400 .word 0xf24ed800 .word 0xf24edc00 .word 0xf24ee000 .word 0xf24ee400 .word 0xf24ee800 .word 0xf24eec00 .word 0xf24ef000 .word 0xf24ef400 .word 0xf24ef800 .word 0xf24efc00 .word 0xf24f0000 .word 0xf24f0400 .word 0xf24f0800 .word 0xf24f0c00 .word 0xf24f1000 .word 0xf24f1400 .word 0xf24f1800 .word 0xf24f1c00 .word 0xf24f2000 .word 0xf24f2400 .word 0xf24f2800 .word 0xf24f2c00 .word 0xf24f3000 .word 0xf24f3400 .word 0xf24f3800 .word 0xf24f3c00 .word 0xf24f4000 .word 0xf24f4400 .word 0xf24f4800 .word 0xf24f4c00 .word 0xf24f5000 .word 0xf24f5400 .word 0xf24f5800 .word 0xf24f5c00 .word 0xf24f6000 .word 0xf24f6400 .word 0xf24f6800 .word 0xf24f6c00 .word 0xf24f7000 .word 0xf24f7400 .word 0xf24f7800 .word 0xf24f7c00 .word 0xf24f8000 .word 0xf24f8400 .word 0xf24f8800 .word 0xf24f8c00 .word 0xf24f9000 .word 0xf24f9400 .word 0xf24f9800 .word 0xf24f9c00 .word 0xf24fa000 .word 0xf24fa400 .word 0xf24fa800 .word 0xf24fac00 .word 0xf24fb000 .word 0xf24fb400 .word 0xf24fb800 .word 0xf24fbc00 .word 0xf24fc000 .word 0xf24fc400 .word 0xf24fc800 .word 0xf24fcc00 .word 0xf24fd000 .word 0xf24fd400 .word 0xf24fd800 .word 0xf24fdc00 .word 0xf24fe000 .word 0xf24fe400 .word 0xf24fe800 .word 0xf24fec00 .word 0xf24ff000 .word 0xf24ff400 .word 0xf24ff800 .word 0xf24ffc00 .word 0xf2500000 .word 0xf2500400 .word 0xf2500800 .word 0xf2500c00 .word 0xf2501000 .word 0xf2501400 .word 0xf2501800 .word 0xf2501c00 .word 0xf2502000 .word 0xf2502400 .word 0xf2502800 .word 0xf2502c00 .word 0xf2503000 .word 0xf2503400 .word 0xf2503800 .word 0xf2503c00 .word 0xf2504000 .word 0xf2504400 .word 0xf2504800 .word 0xf2504c00 .word 0xf2505000 .word 0xf2505400 .word 0xf2505800 .word 0xf2505c00 .word 0xf2506000 .word 0xf2506400 .word 0xf2506800 .word 0xf2506c00 .word 0xf2507000 .word 0xf2507400 .word 0xf2507800 .word 0xf2507c00 .word 0xf2508000 .word 0xf2508400 .word 0xf2508800 .word 0xf2508c00 .word 0xf2509000 .word 0xf2509400 .word 0xf2509800 .word 0xf2509c00 .word 0xf250a000 .word 0xf250a400 .word 0xf250a800 .word 0xf250ac00 .word 0xf250b000 .word 0xf250b400 .word 0xf250b800 .word 0xf250bc00 .word 0xf250c000 .word 0xf250c400 .word 0xf250c800 .word 0xf250cc00 .word 0xf250d000 .word 0xf250d400 .word 0xf250d800 .word 0xf250dc00 .word 0xf250e000 .word 0xf250e400 .word 0xf250e800 .word 0xf250ec00 .word 0xf250f000 .word 0xf250f400 .word 0xf250f800 .word 0xf250fc00 .word 0xf2510000 .word 0xf2510400 .word 0xf2510800 .word 0xf2510c00 .word 0xf2511000 .word 0xf2511400 .word 0xf2511800 .word 0xf2511c00 .word 0xf2512000 .word 0xf2512400 .word 0xf2512800 .word 0xf2512c00 .word 0xf2513000 .word 0xf2513400 .word 0xf2513800 .word 0xf2513c00 .word 0xf2514000 .word 0xf2514400 .word 0xf2514800 .word 0xf2514c00 .word 0xf2515000 .word 0xf2515400 .word 0xf2515800 .word 0xf2515c00 .word 0xf2516000 .word 0xf2516400 .word 0xf2516800 .word 0xf2516c00 .word 0xf2517000 .word 0xf2517400 .word 0xf2517800 .word 0xf2517c00 .word 0xf2518000 .word 0xf2518400 .word 0xf2518800 .word 0xf2518c00 .word 0xf2519000 .word 0xf2519400 .word 0xf2519800 .word 0xf2519c00 .word 0xf251a000 .word 0xf251a400 .word 0xf251a800 .word 0xf251ac00 .word 0xf251b000 .word 0xf251b400 .word 0xf251b800 .word 0xf251bc00 .word 0xf251c000 .word 0xf251c400 .word 0xf251c800 .word 0xf251cc00 .word 0xf251d000 .word 0xf251d400 .word 0xf251d800 .word 0xf251dc00 .word 0xf251e000 .word 0xf251e400 .word 0xf251e800 .word 0xf251ec00 .word 0xf251f000 .word 0xf251f400 .word 0xf251f800 .word 0xf251fc00 .word 0xf2520000 .word 0xf2520400 .word 0xf2520800 .word 0xf2520c00 .word 0xf2521000 .word 0xf2521400 .word 0xf2521800 .word 0xf2521c00 .word 0xf2522000 .word 0xf2522400 .word 0xf2522800 .word 0xf2522c00 .word 0xf2523000 .word 0xf2523400 .word 0xf2523800 .word 0xf2523c00 .word 0xf2524000 .word 0xf2524400 .word 0xf2524800 .word 0xf2524c00 .word 0xf2525000 .word 0xf2525400 .word 0xf2525800 .word 0xf2525c00 .word 0xf2526000 .word 0xf2526400 .word 0xf2526800 .word 0xf2526c00 .word 0xf2527000 .word 0xf2527400 .word 0xf2527800 .word 0xf2527c00 .word 0xf2528000 .word 0xf2528400 .word 0xf2528800 .word 0xf2528c00 .word 0xf2529000 .word 0xf2529400 .word 0xf2529800 .word 0xf2529c00 .word 0xf252a000 .word 0xf252a400 .word 0xf252a800 .word 0xf252ac00 .word 0xf252b000 .word 0xf252b400 .word 0xf252b800 .word 0xf252bc00 .word 0xf252c000 .word 0xf252c400 .word 0xf252c800 .word 0xf252cc00 .word 0xf252d000 .word 0xf252d400 .word 0xf252d800 .word 0xf252dc00 .word 0xf252e000 .word 0xf252e400 .word 0xf252e800 .word 0xf252ec00 .word 0xf252f000 .word 0xf252f400 .word 0xf252f800 .word 0xf252fc00 .word 0xf2530000 .word 0xf2530400 .word 0xf2530800 .word 0xf2530c00 .word 0xf2531000 .word 0xf2531400 .word 0xf2531800 .word 0xf2531c00 .word 0xf2532000 .word 0xf2532400 .word 0xf2532800 .word 0xf2532c00 .word 0xf2533000 .word 0xf2533400 .word 0xf2533800 .word 0xf2533c00 .word 0xf2534000 .word 0xf2534400 .word 0xf2534800 .word 0xf2534c00 .word 0xf2535000 .word 0xf2535400 .word 0xf2535800 .word 0xf2535c00 .word 0xf2536000 .word 0xf2536400 .word 0xf2536800 .word 0xf2536c00 .word 0xf2537000 .word 0xf2537400 .word 0xf2537800 .word 0xf2537c00 .word 0xf2538000 .word 0xf2538400 .word 0xf2538800 .word 0xf2538c00 .word 0xf2539000 .word 0xf2539400 .word 0xf2539800 .word 0xf2539c00 .word 0xf253a000 .word 0xf253a400 .word 0xf253a800 .word 0xf253ac00 .word 0xf253b000 .word 0xf253b400 .word 0xf253b800 .word 0xf253bc00 .word 0xf253c000 .word 0xf253c400 .word 0xf253c800 .word 0xf253cc00 .word 0xf253d000 .word 0xf253d400 .word 0xf253d800 .word 0xf253dc00 .word 0xf253e000 .word 0xf253e400 .word 0xf253e800 .word 0xf253ec00 .word 0xf253f000 .word 0xf253f400 .word 0xf253f800 .word 0xf253fc00 .word 0xf2540000 .word 0xf2540400 .word 0xf2540800 .word 0xf2540c00 .word 0xf2541000 .word 0xf2541400 .word 0xf2541800 .word 0xf2541c00 .word 0xf2542000 .word 0xf2542400 .word 0xf2542800 .word 0xf2542c00 .word 0xf2543000 .word 0xf2543400 .word 0xf2543800 .word 0xf2543c00 .word 0xf2544000 .word 0xf2544400 .word 0xf2544800 .word 0xf2544c00 .word 0xf2545000 .word 0xf2545400 .word 0xf2545800 .word 0xf2545c00 .word 0xf2546000 .word 0xf2546400 .word 0xf2546800 .word 0xf2546c00 .word 0xf2547000 .word 0xf2547400 .word 0xf2547800 .word 0xf2547c00 .word 0xf2548000 .word 0xf2548400 .word 0xf2548800 .word 0xf2548c00 .word 0xf2549000 .word 0xf2549400 .word 0xf2549800 .word 0xf2549c00 .word 0xf254a000 .word 0xf254a400 .word 0xf254a800 .word 0xf254ac00 .word 0xf254b000 .word 0xf254b400 .word 0xf254b800 .word 0xf254bc00 .word 0xf254c000 .word 0xf254c400 .word 0xf254c800 .word 0xf254cc00 .word 0xf254d000 .word 0xf254d400 .word 0xf254d800 .word 0xf254dc00 .word 0xf254e000 .word 0xf254e400 .word 0xf254e800 .word 0xf254ec00 .word 0xf254f000 .word 0xf254f400 .word 0xf254f800 .word 0xf254fc00 .word 0xf2550000 .word 0xf2550400 .word 0xf2550800 .word 0xf2550c00 .word 0xf2551000 .word 0xf2551400 .word 0xf2551800 .word 0xf2551c00 .word 0xf2552000 .word 0xf2552400 .word 0xf2552800 .word 0xf2552c00 .word 0xf2553000 .word 0xf2553400 .word 0xf2553800 .word 0xf2553c00 .word 0xf2554000 .word 0xf2554400 .word 0xf2554800 .word 0xf2554c00 .word 0xf2555000 .word 0xf2555400 .word 0xf2555800 .word 0xf2555c00 .word 0xf2556000 .word 0xf2556400 .word 0xf2556800 .word 0xf2556c00 .word 0xf2557000 .word 0xf2557400 .word 0xf2557800 .word 0xf2557c00 .word 0xf2558000 .word 0xf2558400 .word 0xf2558800 .word 0xf2558c00 .word 0xf2559000 .word 0xf2559400 .word 0xf2559800 .word 0xf2559c00 .word 0xf255a000 .word 0xf255a400 .word 0xf255a800 .word 0xf255ac00 .word 0xf255b000 .word 0xf255b400 .word 0xf255b800 .word 0xf255bc00 .word 0xf255c000 .word 0xf255c400 .word 0xf255c800 .word 0xf255cc00 .word 0xf255d000 .word 0xf255d400 .word 0xf255d800 .word 0xf255dc00 .word 0xf255e000 .word 0xf255e400 .word 0xf255e800 .word 0xf255ec00 .word 0xf255f000 .word 0xf255f400 .word 0xf255f800 .word 0xf255fc00 .word 0xf2560000 .word 0xf2560400 .word 0xf2560800 .word 0xf2560c00 .word 0xf2561000 .word 0xf2561400 .word 0xf2561800 .word 0xf2561c00 .word 0xf2562000 .word 0xf2562400 .word 0xf2562800 .word 0xf2562c00 .word 0xf2563000 .word 0xf2563400 .word 0xf2563800 .word 0xf2563c00 .word 0xf2564000 .word 0xf2564400 .word 0xf2564800 .word 0xf2564c00 .word 0xf2565000 .word 0xf2565400 .word 0xf2565800 .word 0xf2565c00 .word 0xf2566000 .word 0xf2566400 .word 0xf2566800 .word 0xf2566c00 .word 0xf2567000 .word 0xf2567400 .word 0xf2567800 .word 0xf2567c00 .word 0xf2568000 .word 0xf2568400 .word 0xf2568800 .word 0xf2568c00 .word 0xf2569000 .word 0xf2569400 .word 0xf2569800 .word 0xf2569c00 .word 0xf256a000 .word 0xf256a400 .word 0xf256a800 .word 0xf256ac00 .word 0xf256b000 .word 0xf256b400 .word 0xf256b800 .word 0xf256bc00 .word 0xf256c000 .word 0xf256c400 .word 0xf256c800 .word 0xf256cc00 .word 0xf256d000 .word 0xf256d400 .word 0xf256d800 .word 0xf256dc00 .word 0xf256e000 .word 0xf256e400 .word 0xf256e800 .word 0xf256ec00 .word 0xf256f000 .word 0xf256f400 .word 0xf256f800 .word 0xf256fc00 .word 0xf2570000 .word 0xf2570400 .word 0xf2570800 .word 0xf2570c00 .word 0xf2571000 .word 0xf2571400 .word 0xf2571800 .word 0xf2571c00 .word 0xf2572000 .word 0xf2572400 .word 0xf2572800 .word 0xf2572c00 .word 0xf2573000 .word 0xf2573400 .word 0xf2573800 .word 0xf2573c00 .word 0xf2574000 .word 0xf2574400 .word 0xf2574800 .word 0xf2574c00 .word 0xf2575000 .word 0xf2575400 .word 0xf2575800 .word 0xf2575c00 .word 0xf2576000 .word 0xf2576400 .word 0xf2576800 .word 0xf2576c00 .word 0xf2577000 .word 0xf2577400 .word 0xf2577800 .word 0xf2577c00 .word 0xf2578000 .word 0xf2578400 .word 0xf2578800 .word 0xf2578c00 .word 0xf2579000 .word 0xf2579400 .word 0xf2579800 .word 0xf2579c00 .word 0xf257a000 .word 0xf257a400 .word 0xf257a800 .word 0xf257ac00 .word 0xf257b000 .word 0xf257b400 .word 0xf257b800 .word 0xf257bc00 .word 0xf257c000 .word 0xf257c400 .word 0xf257c800 .word 0xf257cc00 .word 0xf257d000 .word 0xf257d400 .word 0xf257d800 .word 0xf257dc00 .word 0xf257e000 .word 0xf257e400 .word 0xf257e800 .word 0xf257ec00 .word 0xf257f000 .word 0xf257f400 .word 0xf257f800 .word 0xf257fc00 .word 0xf2580000 .word 0xf2580400 .word 0xf2580800 .word 0xf2580c00 .word 0xf2581000 .word 0xf2581400 .word 0xf2581800 .word 0xf2581c00 .word 0xf2582000 .word 0xf2582400 .word 0xf2582800 .word 0xf2582c00 .word 0xf2583000 .word 0xf2583400 .word 0xf2583800 .word 0xf2583c00 .word 0xf2584000 .word 0xf2584400 .word 0xf2584800 .word 0xf2584c00 .word 0xf2585000 .word 0xf2585400 .word 0xf2585800 .word 0xf2585c00 .word 0xf2586000 .word 0xf2586400 .word 0xf2586800 .word 0xf2586c00 .word 0xf2587000 .word 0xf2587400 .word 0xf2587800 .word 0xf2587c00 .word 0xf2588000 .word 0xf2588400 .word 0xf2588800 .word 0xf2588c00 .word 0xf2589000 .word 0xf2589400 .word 0xf2589800 .word 0xf2589c00 .word 0xf258a000 .word 0xf258a400 .word 0xf258a800 .word 0xf258ac00 .word 0xf258b000 .word 0xf258b400 .word 0xf258b800 .word 0xf258bc00 .word 0xf258c000 .word 0xf258c400 .word 0xf258c800 .word 0xf258cc00 .word 0xf258d000 .word 0xf258d400 .word 0xf258d800 .word 0xf258dc00 .word 0xf258e000 .word 0xf258e400 .word 0xf258e800 .word 0xf258ec00 .word 0xf258f000 .word 0xf258f400 .word 0xf258f800 .word 0xf258fc00 .word 0xf2590000 .word 0xf2590400 .word 0xf2590800 .word 0xf2590c00 .word 0xf2591000 .word 0xf2591400 .word 0xf2591800 .word 0xf2591c00 .word 0xf2592000 .word 0xf2592400 .word 0xf2592800 .word 0xf2592c00 .word 0xf2593000 .word 0xf2593400 .word 0xf2593800 .word 0xf2593c00 .word 0xf2594000 .word 0xf2594400 .word 0xf2594800 .word 0xf2594c00 .word 0xf2595000 .word 0xf2595400 .word 0xf2595800 .word 0xf2595c00 .word 0xf2596000 .word 0xf2596400 .word 0xf2596800 .word 0xf2596c00 .word 0xf2597000 .word 0xf2597400 .word 0xf2597800 .word 0xf2597c00 .word 0xf2598000 .word 0xf2598400 .word 0xf2598800 .word 0xf2598c00 .word 0xf2599000 .word 0xf2599400 .word 0xf2599800 .word 0xf2599c00 .word 0xf259a000 .word 0xf259a400 .word 0xf259a800 .word 0xf259ac00 .word 0xf259b000 .word 0xf259b400 .word 0xf259b800 .word 0xf259bc00 .word 0xf259c000 .word 0xf259c400 .word 0xf259c800 .word 0xf259cc00 .word 0xf259d000 .word 0xf259d400 .word 0xf259d800 .word 0xf259dc00 .word 0xf259e000 .word 0xf259e400 .word 0xf259e800 .word 0xf259ec00 .word 0xf259f000 .word 0xf259f400 .word 0xf259f800 .word 0xf259fc00 .word 0xf25a0000 .word 0xf25a0400 .word 0xf25a0800 .word 0xf25a0c00 .word 0xf25a1000 .word 0xf25a1400 .word 0xf25a1800 .word 0xf25a1c00 .word 0xf25a2000 .word 0xf25a2400 .word 0xf25a2800 .word 0xf25a2c00 .word 0xf25a3000 .word 0xf25a3400 .word 0xf25a3800 .word 0xf25a3c00 .word 0xf25a4000 .word 0xf25a4400 .word 0xf25a4800 .word 0xf25a4c00 .word 0xf25a5000 .word 0xf25a5400 .word 0xf25a5800 .word 0xf25a5c00 .word 0xf25a6000 .word 0xf25a6400 .word 0xf25a6800 .word 0xf25a6c00 .word 0xf25a7000 .word 0xf25a7400 .word 0xf25a7800 .word 0xf25a7c00 .word 0xf25a8000 .word 0xf25a8400 .word 0xf25a8800 .word 0xf25a8c00 .word 0xf25a9000 .word 0xf25a9400 .word 0xf25a9800 .word 0xf25a9c00 .word 0xf25aa000 .word 0xf25aa400 .word 0xf25aa800 .word 0xf25aac00 .word 0xf25ab000 .word 0xf25ab400 .word 0xf25ab800 .word 0xf25abc00 .word 0xf25ac000 .word 0xf25ac400 .word 0xf25ac800 .word 0xf25acc00 .word 0xf25ad000 .word 0xf25ad400 .word 0xf25ad800 .word 0xf25adc00 .word 0xf25ae000 .word 0xf25ae400 .word 0xf25ae800 .word 0xf25aec00 .word 0xf25af000 .word 0xf25af400 .word 0xf25af800 .word 0xf25afc00 .word 0xf25b0000 .word 0xf25b0400 .word 0xf25b0800 .word 0xf25b0c00 .word 0xf25b1000 .word 0xf25b1400 .word 0xf25b1800 .word 0xf25b1c00 .word 0xf25b2000 .word 0xf25b2400 .word 0xf25b2800 .word 0xf25b2c00 .word 0xf25b3000 .word 0xf25b3400 .word 0xf25b3800 .word 0xf25b3c00 .word 0xf25b4000 .word 0xf25b4400 .word 0xf25b4800 .word 0xf25b4c00 .word 0xf25b5000 .word 0xf25b5400 .word 0xf25b5800 .word 0xf25b5c00 .word 0xf25b6000 .word 0xf25b6400 .word 0xf25b6800 .word 0xf25b6c00 .word 0xf25b7000 .word 0xf25b7400 .word 0xf25b7800 .word 0xf25b7c00 .word 0xf25b8000 .word 0xf25b8400 .word 0xf25b8800 .word 0xf25b8c00 .word 0xf25b9000 .word 0xf25b9400 .word 0xf25b9800 .word 0xf25b9c00 .word 0xf25ba000 .word 0xf25ba400 .word 0xf25ba800 .word 0xf25bac00 .word 0xf25bb000 .word 0xf25bb400 .word 0xf25bb800 .word 0xf25bbc00 .word 0xf25bc000 .word 0xf25bc400 .word 0xf25bc800 .word 0xf25bcc00 .word 0xf25bd000 .word 0xf25bd400 .word 0xf25bd800 .word 0xf25bdc00 .word 0xf25be000 .word 0xf25be400 .word 0xf25be800 .word 0xf25bec00 .word 0xf25bf000 .word 0xf25bf400 .word 0xf25bf800 .word 0xf25bfc00 .word 0xf25c0000 .word 0xf25c0400 .word 0xf25c0800 .word 0xf25c0c00 .word 0xf25c1000 .word 0xf25c1400 .word 0xf25c1800 .word 0xf25c1c00 .word 0xf25c2000 .word 0xf25c2400 .word 0xf25c2800 .word 0xf25c2c00 .word 0xf25c3000 .word 0xf25c3400 .word 0xf25c3800 .word 0xf25c3c00 .word 0xf25c4000 .word 0xf25c4400 .word 0xf25c4800 .word 0xf25c4c00 .word 0xf25c5000 .word 0xf25c5400 .word 0xf25c5800 .word 0xf25c5c00 .word 0xf25c6000 .word 0xf25c6400 .word 0xf25c6800 .word 0xf25c6c00 .word 0xf25c7000 .word 0xf25c7400 .word 0xf25c7800 .word 0xf25c7c00 .word 0xf25c8000 .word 0xf25c8400 .word 0xf25c8800 .word 0xf25c8c00 .word 0xf25c9000 .word 0xf25c9400 .word 0xf25c9800 .word 0xf25c9c00 .word 0xf25ca000 .word 0xf25ca400 .word 0xf25ca800 .word 0xf25cac00 .word 0xf25cb000 .word 0xf25cb400 .word 0xf25cb800 .word 0xf25cbc00 .word 0xf25cc000 .word 0xf25cc400 .word 0xf25cc800 .word 0xf25ccc00 .word 0xf25cd000 .word 0xf25cd400 .word 0xf25cd800 .word 0xf25cdc00 .word 0xf25ce000 .word 0xf25ce400 .word 0xf25ce800 .word 0xf25cec00 .word 0xf25cf000 .word 0xf25cf400 .word 0xf25cf800 .word 0xf25cfc00 .word 0xf25d0000 .word 0xf25d0400 .word 0xf25d0800 .word 0xf25d0c00 .word 0xf25d1000 .word 0xf25d1400 .word 0xf25d1800 .word 0xf25d1c00 .word 0xf25d2000 .word 0xf25d2400 .word 0xf25d2800 .word 0xf25d2c00 .word 0xf25d3000 .word 0xf25d3400 .word 0xf25d3800 .word 0xf25d3c00 .word 0xf25d4000 .word 0xf25d4400 .word 0xf25d4800 .word 0xf25d4c00 .word 0xf25d5000 .word 0xf25d5400 .word 0xf25d5800 .word 0xf25d5c00 .word 0xf25d6000 .word 0xf25d6400 .word 0xf25d6800 .word 0xf25d6c00 .word 0xf25d7000 .word 0xf25d7400 .word 0xf25d7800 .word 0xf25d7c00 .word 0xf25d8000 .word 0xf25d8400 .word 0xf25d8800 .word 0xf25d8c00 .word 0xf25d9000 .word 0xf25d9400 .word 0xf25d9800 .word 0xf25d9c00 .word 0xf25da000 .word 0xf25da400 .word 0xf25da800 .word 0xf25dac00 .word 0xf25db000 .word 0xf25db400 .word 0xf25db800 .word 0xf25dbc00 .word 0xf25dc000 .word 0xf25dc400 .word 0xf25dc800 .word 0xf25dcc00 .word 0xf25dd000 .word 0xf25dd400 .word 0xf25dd800 .word 0xf25ddc00 .word 0xf25de000 .word 0xf25de400 .word 0xf25de800 .word 0xf25dec00 .word 0xf25df000 .word 0xf25df400 .word 0xf25df800 .word 0xf25dfc00 .word 0xf25e0000 .word 0xf25e0400 .word 0xf25e0800 .word 0xf25e0c00 .word 0xf25e1000 .word 0xf25e1400 .word 0xf25e1800 .word 0xf25e1c00 .word 0xf25e2000 .word 0xf25e2400 .word 0xf25e2800 .word 0xf25e2c00 .word 0xf25e3000 .word 0xf25e3400 .word 0xf25e3800 .word 0xf25e3c00 .word 0xf25e4000 .word 0xf25e4400 .word 0xf25e4800 .word 0xf25e4c00 .word 0xf25e5000 .word 0xf25e5400 .word 0xf25e5800 .word 0xf25e5c00 .word 0xf25e6000 .word 0xf25e6400 .word 0xf25e6800 .word 0xf25e6c00 .word 0xf25e7000 .word 0xf25e7400 .word 0xf25e7800 .word 0xf25e7c00 .word 0xf25e8000 .word 0xf25e8400 .word 0xf25e8800 .word 0xf25e8c00 .word 0xf25e9000 .word 0xf25e9400 .word 0xf25e9800 .word 0xf25e9c00 .word 0xf25ea000 .word 0xf25ea400 .word 0xf25ea800 .word 0xf25eac00 .word 0xf25eb000 .word 0xf25eb400 .word 0xf25eb800 .word 0xf25ebc00 .word 0xf25ec000 .word 0xf25ec400 .word 0xf25ec800 .word 0xf25ecc00 .word 0xf25ed000 .word 0xf25ed400 .word 0xf25ed800 .word 0xf25edc00 .word 0xf25ee000 .word 0xf25ee400 .word 0xf25ee800 .word 0xf25eec00 .word 0xf25ef000 .word 0xf25ef400 .word 0xf25ef800 .word 0xf25efc00 .word 0xf25f0000 .word 0xf25f0400 .word 0xf25f0800 .word 0xf25f0c00 .word 0xf25f1000 .word 0xf25f1400 .word 0xf25f1800 .word 0xf25f1c00 .word 0xf25f2000 .word 0xf25f2400 .word 0xf25f2800 .word 0xf25f2c00 .word 0xf25f3000 .word 0xf25f3400 .word 0xf25f3800 .word 0xf25f3c00 .word 0xf25f4000 .word 0xf25f4400 .word 0xf25f4800 .word 0xf25f4c00 .word 0xf25f5000 .word 0xf25f5400 .word 0xf25f5800 .word 0xf25f5c00 .word 0xf25f6000 .word 0xf25f6400 .word 0xf25f6800 .word 0xf25f6c00 .word 0xf25f7000 .word 0xf25f7400 .word 0xf25f7800 .word 0xf25f7c00 .word 0xf25f8000 .word 0xf25f8400 .word 0xf25f8800 .word 0xf25f8c00 .word 0xf25f9000 .word 0xf25f9400 .word 0xf25f9800 .word 0xf25f9c00 .word 0xf25fa000 .word 0xf25fa400 .word 0xf25fa800 .word 0xf25fac00 .word 0xf25fb000 .word 0xf25fb400 .word 0xf25fb800 .word 0xf25fbc00 .word 0xf25fc000 .word 0xf25fc400 .word 0xf25fc800 .word 0xf25fcc00 .word 0xf25fd000 .word 0xf25fd400 .word 0xf25fd800 .word 0xf25fdc00 .word 0xf25fe000 .word 0xf25fe400 .word 0xf25fe800 .word 0xf25fec00 .word 0xf25ff000 .word 0xf25ff400 .word 0xf25ff800 .word 0xf25ffc00 .word 0xf2600000 .word 0xf2600400 .word 0xf2600800 .word 0xf2600c00 .word 0xf2601000 .word 0xf2601400 .word 0xf2601800 .word 0xf2601c00 .word 0xf2602000 .word 0xf2602400 .word 0xf2602800 .word 0xf2602c00 .word 0xf2603000 .word 0xf2603400 .word 0xf2603800 .word 0xf2603c00 .word 0xf2604000 .word 0xf2604400 .word 0xf2604800 .word 0xf2604c00 .word 0xf2605000 .word 0xf2605400 .word 0xf2605800 .word 0xf2605c00 .word 0xf2606000 .word 0xf2606400 .word 0xf2606800 .word 0xf2606c00 .word 0xf2607000 .word 0xf2607400 .word 0xf2607800 .word 0xf2607c00 .word 0xf2608000 .word 0xf2608400 .word 0xf2608800 .word 0xf2608c00 .word 0xf2609000 .word 0xf2609400 .word 0xf2609800 .word 0xf2609c00 .word 0xf260a000 .word 0xf260a400 .word 0xf260a800 .word 0xf260ac00 .word 0xf260b000 .word 0xf260b400 .word 0xf260b800 .word 0xf260bc00 .word 0xf260c000 .word 0xf260c400 .word 0xf260c800 .word 0xf260cc00 .word 0xf260d000 .word 0xf260d400 .word 0xf260d800 .word 0xf260dc00 .word 0xf260e000 .word 0xf260e400 .word 0xf260e800 .word 0xf260ec00 .word 0xf260f000 .word 0xf260f400 .word 0xf260f800 .word 0xf260fc00 .word 0xf2610000 .word 0xf2610400 .word 0xf2610800 .word 0xf2610c00 .word 0xf2611000 .word 0xf2611400 .word 0xf2611800 .word 0xf2611c00 .word 0xf2612000 .word 0xf2612400 .word 0xf2612800 .word 0xf2612c00 .word 0xf2613000 .word 0xf2613400 .word 0xf2613800 .word 0xf2613c00 .word 0xf2614000 .word 0xf2614400 .word 0xf2614800 .word 0xf2614c00 .word 0xf2615000 .word 0xf2615400 .word 0xf2615800 .word 0xf2615c00 .word 0xf2616000 .word 0xf2616400 .word 0xf2616800 .word 0xf2616c00 .word 0xf2617000 .word 0xf2617400 .word 0xf2617800 .word 0xf2617c00 .word 0xf2618000 .word 0xf2618400 .word 0xf2618800 .word 0xf2618c00 .word 0xf2619000 .word 0xf2619400 .word 0xf2619800 .word 0xf2619c00 .word 0xf261a000 .word 0xf261a400 .word 0xf261a800 .word 0xf261ac00 .word 0xf261b000 .word 0xf261b400 .word 0xf261b800 .word 0xf261bc00 .word 0xf261c000 .word 0xf261c400 .word 0xf261c800 .word 0xf261cc00 .word 0xf261d000 .word 0xf261d400 .word 0xf261d800 .word 0xf261dc00 .word 0xf261e000 .word 0xf261e400 .word 0xf261e800 .word 0xf261ec00 .word 0xf261f000 .word 0xf261f400 .word 0xf261f800 .word 0xf261fc00 .word 0xf2620000 .word 0xf2620400 .word 0xf2620800 .word 0xf2620c00 .word 0xf2621000 .word 0xf2621400 .word 0xf2621800 .word 0xf2621c00 .word 0xf2622000 .word 0xf2622400 .word 0xf2622800 .word 0xf2622c00 .word 0xf2623000 .word 0xf2623400 .word 0xf2623800 .word 0xf2623c00 .word 0xf2624000 .word 0xf2624400 .word 0xf2624800 .word 0xf2624c00 .word 0xf2625000 .word 0xf2625400 .word 0xf2625800 .word 0xf2625c00 .word 0xf2626000 .word 0xf2626400 .word 0xf2626800 .word 0xf2626c00 .word 0xf2627000 .word 0xf2627400 .word 0xf2627800 .word 0xf2627c00 .word 0xf2628000 .word 0xf2628400 .word 0xf2628800 .word 0xf2628c00 .word 0xf2629000 .word 0xf2629400 .word 0xf2629800 .word 0xf2629c00 .word 0xf262a000 .word 0xf262a400 .word 0xf262a800 .word 0xf262ac00 .word 0xf262b000 .word 0xf262b400 .word 0xf262b800 .word 0xf262bc00 .word 0xf262c000 .word 0xf262c400 .word 0xf262c800 .word 0xf262cc00 .word 0xf262d000 .word 0xf262d400 .word 0xf262d800 .word 0xf262dc00 .word 0xf262e000 .word 0xf262e400 .word 0xf262e800 .word 0xf262ec00 .word 0xf262f000 .word 0xf262f400 .word 0xf262f800 .word 0xf262fc00 .word 0xf2630000 .word 0xf2630400 .word 0xf2630800 .word 0xf2630c00 .word 0xf2631000 .word 0xf2631400 .word 0xf2631800 .word 0xf2631c00 .word 0xf2632000 .word 0xf2632400 .word 0xf2632800 .word 0xf2632c00 .word 0xf2633000 .word 0xf2633400 .word 0xf2633800 .word 0xf2633c00 .word 0xf2634000 .word 0xf2634400 .word 0xf2634800 .word 0xf2634c00 .word 0xf2635000 .word 0xf2635400 .word 0xf2635800 .word 0xf2635c00 .word 0xf2636000 .word 0xf2636400 .word 0xf2636800 .word 0xf2636c00 .word 0xf2637000 .word 0xf2637400 .word 0xf2637800 .word 0xf2637c00 .word 0xf2638000 .word 0xf2638400 .word 0xf2638800 .word 0xf2638c00 .word 0xf2639000 .word 0xf2639400 .word 0xf2639800 .word 0xf2639c00 .word 0xf263a000 .word 0xf263a400 .word 0xf263a800 .word 0xf263ac00 .word 0xf263b000 .word 0xf263b400 .word 0xf263b800 .word 0xf263bc00 .word 0xf263c000 .word 0xf263c400 .word 0xf263c800 .word 0xf263cc00 .word 0xf263d000 .word 0xf263d400 .word 0xf263d800 .word 0xf263dc00 .word 0xf263e000 .word 0xf263e400 .word 0xf263e800 .word 0xf263ec00 .word 0xf263f000 .word 0xf263f400 .word 0xf263f800 .word 0xf263fc00 .word 0xf2640000 .word 0xf2640400 .word 0xf2640800 .word 0xf2640c00 .word 0xf2641000 .word 0xf2641400 .word 0xf2641800 .word 0xf2641c00 .word 0xf2642000 .word 0xf2642400 .word 0xf2642800 .word 0xf2642c00 .word 0xf2643000 .word 0xf2643400 .word 0xf2643800 .word 0xf2643c00 .word 0xf2644000 .word 0xf2644400 .word 0xf2644800 .word 0xf2644c00 .word 0xf2645000 .word 0xf2645400 .word 0xf2645800 .word 0xf2645c00 .word 0xf2646000 .word 0xf2646400 .word 0xf2646800 .word 0xf2646c00 .word 0xf2647000 .word 0xf2647400 .word 0xf2647800 .word 0xf2647c00 .word 0xf2648000 .word 0xf2648400 .word 0xf2648800 .word 0xf2648c00 .word 0xf2649000 .word 0xf2649400 .word 0xf2649800 .word 0xf2649c00 .word 0xf264a000 .word 0xf264a400 .word 0xf264a800 .word 0xf264ac00 .word 0xf264b000 .word 0xf264b400 .word 0xf264b800 .word 0xf264bc00 .word 0xf264c000 .word 0xf264c400 .word 0xf264c800 .word 0xf264cc00 .word 0xf264d000 .word 0xf264d400 .word 0xf264d800 .word 0xf264dc00 .word 0xf264e000 .word 0xf264e400 .word 0xf264e800 .word 0xf264ec00 .word 0xf264f000 .word 0xf264f400 .word 0xf264f800 .word 0xf264fc00 .word 0xf2650000 .word 0xf2650400 .word 0xf2650800 .word 0xf2650c00 .word 0xf2651000 .word 0xf2651400 .word 0xf2651800 .word 0xf2651c00 .word 0xf2652000 .word 0xf2652400 .word 0xf2652800 .word 0xf2652c00 .word 0xf2653000 .word 0xf2653400 .word 0xf2653800 .word 0xf2653c00 .word 0xf2654000 .word 0xf2654400 .word 0xf2654800 .word 0xf2654c00 .word 0xf2655000 .word 0xf2655400 .word 0xf2655800 .word 0xf2655c00 .word 0xf2656000 .word 0xf2656400 .word 0xf2656800 .word 0xf2656c00 .word 0xf2657000 .word 0xf2657400 .word 0xf2657800 .word 0xf2657c00 .word 0xf2658000 .word 0xf2658400 .word 0xf2658800 .word 0xf2658c00 .word 0xf2659000 .word 0xf2659400 .word 0xf2659800 .word 0xf2659c00 .word 0xf265a000 .word 0xf265a400 .word 0xf265a800 .word 0xf265ac00 .word 0xf265b000 .word 0xf265b400 .word 0xf265b800 .word 0xf265bc00 .word 0xf265c000 .word 0xf265c400 .word 0xf265c800 .word 0xf265cc00 .word 0xf265d000 .word 0xf265d400 .word 0xf265d800 .word 0xf265dc00 .word 0xf265e000 .word 0xf265e400 .word 0xf265e800 .word 0xf265ec00 .word 0xf265f000 .word 0xf265f400 .word 0xf265f800 .word 0xf265fc00 .word 0xf2660000 .word 0xf2660400 .word 0xf2660800 .word 0xf2660c00 .word 0xf2661000 .word 0xf2661400 .word 0xf2661800 .word 0xf2661c00 .word 0xf2662000 .word 0xf2662400 .word 0xf2662800 .word 0xf2662c00 .word 0xf2663000 .word 0xf2663400 .word 0xf2663800 .word 0xf2663c00 .word 0xf2664000 .word 0xf2664400 .word 0xf2664800 .word 0xf2664c00 .word 0xf2665000 .word 0xf2665400 .word 0xf2665800 .word 0xf2665c00 .word 0xf2666000 .word 0xf2666400 .word 0xf2666800 .word 0xf2666c00 .word 0xf2667000 .word 0xf2667400 .word 0xf2667800 .word 0xf2667c00 .word 0xf2668000 .word 0xf2668400 .word 0xf2668800 .word 0xf2668c00 .word 0xf2669000 .word 0xf2669400 .word 0xf2669800 .word 0xf2669c00 .word 0xf266a000 .word 0xf266a400 .word 0xf266a800 .word 0xf266ac00 .word 0xf266b000 .word 0xf266b400 .word 0xf266b800 .word 0xf266bc00 .word 0xf266c000 .word 0xf266c400 .word 0xf266c800 .word 0xf266cc00 .word 0xf266d000 .word 0xf266d400 .word 0xf266d800 .word 0xf266dc00 .word 0xf266e000 .word 0xf266e400 .word 0xf266e800 .word 0xf266ec00 .word 0xf266f000 .word 0xf266f400 .word 0xf266f800 .word 0xf266fc00 .word 0xf2670000 .word 0xf2670400 .word 0xf2670800 .word 0xf2670c00 .word 0xf2671000 .word 0xf2671400 .word 0xf2671800 .word 0xf2671c00 .word 0xf2672000 .word 0xf2672400 .word 0xf2672800 .word 0xf2672c00 .word 0xf2673000 .word 0xf2673400 .word 0xf2673800 .word 0xf2673c00 .word 0xf2674000 .word 0xf2674400 .word 0xf2674800 .word 0xf2674c00 .word 0xf2675000 .word 0xf2675400 .word 0xf2675800 .word 0xf2675c00 .word 0xf2676000 .word 0xf2676400 .word 0xf2676800 .word 0xf2676c00 .word 0xf2677000 .word 0xf2677400 .word 0xf2677800 .word 0xf2677c00 .word 0xf2678000 .word 0xf2678400 .word 0xf2678800 .word 0xf2678c00 .word 0xf2679000 .word 0xf2679400 .word 0xf2679800 .word 0xf2679c00 .word 0xf267a000 .word 0xf267a400 .word 0xf267a800 .word 0xf267ac00 .word 0xf267b000 .word 0xf267b400 .word 0xf267b800 .word 0xf267bc00 .word 0xf267c000 .word 0xf267c400 .word 0xf267c800 .word 0xf267cc00 .word 0xf267d000 .word 0xf267d400 .word 0xf267d800 .word 0xf267dc00 .word 0xf267e000 .word 0xf267e400 .word 0xf267e800 .word 0xf267ec00 .word 0xf267f000 .word 0xf267f400 .word 0xf267f800 .word 0xf267fc00 .word 0xf2680000 .word 0xf2680400 .word 0xf2680800 .word 0xf2680c00 .word 0xf2681000 .word 0xf2681400 .word 0xf2681800 .word 0xf2681c00 .word 0xf2682000 .word 0xf2682400 .word 0xf2682800 .word 0xf2682c00 .word 0xf2683000 .word 0xf2683400 .word 0xf2683800 .word 0xf2683c00 .word 0xf2684000 .word 0xf2684400 .word 0xf2684800 .word 0xf2684c00 .word 0xf2685000 .word 0xf2685400 .word 0xf2685800 .word 0xf2685c00 .word 0xf2686000 .word 0xf2686400 .word 0xf2686800 .word 0xf2686c00 .word 0xf2687000 .word 0xf2687400 .word 0xf2687800 .word 0xf2687c00 .word 0xf2688000 .word 0xf2688400 .word 0xf2688800 .word 0xf2688c00 .word 0xf2689000 .word 0xf2689400 .word 0xf2689800 .word 0xf2689c00 .word 0xf268a000 .word 0xf268a400 .word 0xf268a800 .word 0xf268ac00 .word 0xf268b000 .word 0xf268b400 .word 0xf268b800 .word 0xf268bc00 .word 0xf268c000 .word 0xf268c400 .word 0xf268c800 .word 0xf268cc00 .word 0xf268d000 .word 0xf268d400 .word 0xf268d800 .word 0xf268dc00 .word 0xf268e000 .word 0xf268e400 .word 0xf268e800 .word 0xf268ec00 .word 0xf268f000 .word 0xf268f400 .word 0xf268f800 .word 0xf268fc00 .word 0xf2690000 .word 0xf2690400 .word 0xf2690800 .word 0xf2690c00 .word 0xf2691000 .word 0xf2691400 .word 0xf2691800 .word 0xf2691c00 .word 0xf2692000 .word 0xf2692400 .word 0xf2692800 .word 0xf2692c00 .word 0xf2693000 .word 0xf2693400 .word 0xf2693800 .word 0xf2693c00 .word 0xf2694000 .word 0xf2694400 .word 0xf2694800 .word 0xf2694c00 .word 0xf2695000 .word 0xf2695400 .word 0xf2695800 .word 0xf2695c00 .word 0xf2696000 .word 0xf2696400 .word 0xf2696800 .word 0xf2696c00 .word 0xf2697000 .word 0xf2697400 .word 0xf2697800 .word 0xf2697c00 .word 0xf2698000 .word 0xf2698400 .word 0xf2698800 .word 0xf2698c00 .word 0xf2699000 .word 0xf2699400 .word 0xf2699800 .word 0xf2699c00 .word 0xf269a000 .word 0xf269a400 .word 0xf269a800 .word 0xf269ac00 .word 0xf269b000 .word 0xf269b400 .word 0xf269b800 .word 0xf269bc00 .word 0xf269c000 .word 0xf269c400 .word 0xf269c800 .word 0xf269cc00 .word 0xf269d000 .word 0xf269d400 .word 0xf269d800 .word 0xf269dc00 .word 0xf269e000 .word 0xf269e400 .word 0xf269e800 .word 0xf269ec00 .word 0xf269f000 .word 0xf269f400 .word 0xf269f800 .word 0xf269fc00 .word 0xf26a0000 .word 0xf26a0400 .word 0xf26a0800 .word 0xf26a0c00 .word 0xf26a1000 .word 0xf26a1400 .word 0xf26a1800 .word 0xf26a1c00 .word 0xf26a2000 .word 0xf26a2400 .word 0xf26a2800 .word 0xf26a2c00 .word 0xf26a3000 .word 0xf26a3400 .word 0xf26a3800 .word 0xf26a3c00 .word 0xf26a4000 .word 0xf26a4400 .word 0xf26a4800 .word 0xf26a4c00 .word 0xf26a5000 .word 0xf26a5400 .word 0xf26a5800 .word 0xf26a5c00 .word 0xf26a6000 .word 0xf26a6400 .word 0xf26a6800 .word 0xf26a6c00 .word 0xf26a7000 .word 0xf26a7400 .word 0xf26a7800 .word 0xf26a7c00 .word 0xf26a8000 .word 0xf26a8400 .word 0xf26a8800 .word 0xf26a8c00 .word 0xf26a9000 .word 0xf26a9400 .word 0xf26a9800 .word 0xf26a9c00 .word 0xf26aa000 .word 0xf26aa400 .word 0xf26aa800 .word 0xf26aac00 .word 0xf26ab000 .word 0xf26ab400 .word 0xf26ab800 .word 0xf26abc00 .word 0xf26ac000 .word 0xf26ac400 .word 0xf26ac800 .word 0xf26acc00 .word 0xf26ad000 .word 0xf26ad400 .word 0xf26ad800 .word 0xf26adc00 .word 0xf26ae000 .word 0xf26ae400 .word 0xf26ae800 .word 0xf26aec00 .word 0xf26af000 .word 0xf26af400 .word 0xf26af800 .word 0xf26afc00 .word 0xf26b0000 .word 0xf26b0400 .word 0xf26b0800 .word 0xf26b0c00 .word 0xf26b1000 .word 0xf26b1400 .word 0xf26b1800 .word 0xf26b1c00 .word 0xf26b2000 .word 0xf26b2400 .word 0xf26b2800 .word 0xf26b2c00 .word 0xf26b3000 .word 0xf26b3400 .word 0xf26b3800 .word 0xf26b3c00 .word 0xf26b4000 .word 0xf26b4400 .word 0xf26b4800 .word 0xf26b4c00 .word 0xf26b5000 .word 0xf26b5400 .word 0xf26b5800 .word 0xf26b5c00 .word 0xf26b6000 .word 0xf26b6400 .word 0xf26b6800 .word 0xf26b6c00 .word 0xf26b7000 .word 0xf26b7400 .word 0xf26b7800 .word 0xf26b7c00 .word 0xf26b8000 .word 0xf26b8400 .word 0xf26b8800 .word 0xf26b8c00 .word 0xf26b9000 .word 0xf26b9400 .word 0xf26b9800 .word 0xf26b9c00 .word 0xf26ba000 .word 0xf26ba400 .word 0xf26ba800 .word 0xf26bac00 .word 0xf26bb000 .word 0xf26bb400 .word 0xf26bb800 .word 0xf26bbc00 .word 0xf26bc000 .word 0xf26bc400 .word 0xf26bc800 .word 0xf26bcc00 .word 0xf26bd000 .word 0xf26bd400 .word 0xf26bd800 .word 0xf26bdc00 .word 0xf26be000 .word 0xf26be400 .word 0xf26be800 .word 0xf26bec00 .word 0xf26bf000 .word 0xf26bf400 .word 0xf26bf800 .word 0xf26bfc00 .word 0xf26c0000 .word 0xf26c0400 .word 0xf26c0800 .word 0xf26c0c00 .word 0xf26c1000 .word 0xf26c1400 .word 0xf26c1800 .word 0xf26c1c00 .word 0xf26c2000 .word 0xf26c2400 .word 0xf26c2800 .word 0xf26c2c00 .word 0xf26c3000 .word 0xf26c3400 .word 0xf26c3800 .word 0xf26c3c00 .word 0xf26c4000 .word 0xf26c4400 .word 0xf26c4800 .word 0xf26c4c00 .word 0xf26c5000 .word 0xf26c5400 .word 0xf26c5800 .word 0xf26c5c00 .word 0xf26c6000 .word 0xf26c6400 .word 0xf26c6800 .word 0xf26c6c00 .word 0xf26c7000 .word 0xf26c7400 .word 0xf26c7800 .word 0xf26c7c00 .word 0xf26c8000 .word 0xf26c8400 .word 0xf26c8800 .word 0xf26c8c00 .word 0xf26c9000 .word 0xf26c9400 .word 0xf26c9800 .word 0xf26c9c00 .word 0xf26ca000 .word 0xf26ca400 .word 0xf26ca800 .word 0xf26cac00 .word 0xf26cb000 .word 0xf26cb400 .word 0xf26cb800 .word 0xf26cbc00 .word 0xf26cc000 .word 0xf26cc400 .word 0xf26cc800 .word 0xf26ccc00 .word 0xf26cd000 .word 0xf26cd400 .word 0xf26cd800 .word 0xf26cdc00 .word 0xf26ce000 .word 0xf26ce400 .word 0xf26ce800 .word 0xf26cec00 .word 0xf26cf000 .word 0xf26cf400 .word 0xf26cf800 .word 0xf26cfc00 .word 0xf26d0000 .word 0xf26d0400 .word 0xf26d0800 .word 0xf26d0c00 .word 0xf26d1000 .word 0xf26d1400 .word 0xf26d1800 .word 0xf26d1c00 .word 0xf26d2000 .word 0xf26d2400 .word 0xf26d2800 .word 0xf26d2c00 .word 0xf26d3000 .word 0xf26d3400 .word 0xf26d3800 .word 0xf26d3c00 .word 0xf26d4000 .word 0xf26d4400 .word 0xf26d4800 .word 0xf26d4c00 .word 0xf26d5000 .word 0xf26d5400 .word 0xf26d5800 .word 0xf26d5c00 .word 0xf26d6000 .word 0xf26d6400 .word 0xf26d6800 .word 0xf26d6c00 .word 0xf26d7000 .word 0xf26d7400 .word 0xf26d7800 .word 0xf26d7c00 .word 0xf26d8000 .word 0xf26d8400 .word 0xf26d8800 .word 0xf26d8c00 .word 0xf26d9000 .word 0xf26d9400 .word 0xf26d9800 .word 0xf26d9c00 .word 0xf26da000 .word 0xf26da400 .word 0xf26da800 .word 0xf26dac00 .word 0xf26db000 .word 0xf26db400 .word 0xf26db800 .word 0xf26dbc00 .word 0xf26dc000 .word 0xf26dc400 .word 0xf26dc800 .word 0xf26dcc00 .word 0xf26dd000 .word 0xf26dd400 .word 0xf26dd800 .word 0xf26ddc00 .word 0xf26de000 .word 0xf26de400 .word 0xf26de800 .word 0xf26dec00 .word 0xf26df000 .word 0xf26df400 .word 0xf26df800 .word 0xf26dfc00 .word 0xf26e0000 .word 0xf26e0400 .word 0xf26e0800 .word 0xf26e0c00 .word 0xf26e1000 .word 0xf26e1400 .word 0xf26e1800 .word 0xf26e1c00 .word 0xf26e2000 .word 0xf26e2400 .word 0xf26e2800 .word 0xf26e2c00 .word 0xf26e3000 .word 0xf26e3400 .word 0xf26e3800 .word 0xf26e3c00 .word 0xf26e4000 .word 0xf26e4400 .word 0xf26e4800 .word 0xf26e4c00 .word 0xf26e5000 .word 0xf26e5400 .word 0xf26e5800 .word 0xf26e5c00 .word 0xf26e6000 .word 0xf26e6400 .word 0xf26e6800 .word 0xf26e6c00 .word 0xf26e7000 .word 0xf26e7400 .word 0xf26e7800 .word 0xf26e7c00 .word 0xf26e8000 .word 0xf26e8400 .word 0xf26e8800 .word 0xf26e8c00 .word 0xf26e9000 .word 0xf26e9400 .word 0xf26e9800 .word 0xf26e9c00 .word 0xf26ea000 .word 0xf26ea400 .word 0xf26ea800 .word 0xf26eac00 .word 0xf26eb000 .word 0xf26eb400 .word 0xf26eb800 .word 0xf26ebc00 .word 0xf26ec000 .word 0xf26ec400 .word 0xf26ec800 .word 0xf26ecc00 .word 0xf26ed000 .word 0xf26ed400 .word 0xf26ed800 .word 0xf26edc00 .word 0xf26ee000 .word 0xf26ee400 .word 0xf26ee800 .word 0xf26eec00 .word 0xf26ef000 .word 0xf26ef400 .word 0xf26ef800 .word 0xf26efc00 .word 0xf26f0000 .word 0xf26f0400 .word 0xf26f0800 .word 0xf26f0c00 .word 0xf26f1000 .word 0xf26f1400 .word 0xf26f1800 .word 0xf26f1c00 .word 0xf26f2000 .word 0xf26f2400 .word 0xf26f2800 .word 0xf26f2c00 .word 0xf26f3000 .word 0xf26f3400 .word 0xf26f3800 .word 0xf26f3c00 .word 0xf26f4000 .word 0xf26f4400 .word 0xf26f4800 .word 0xf26f4c00 .word 0xf26f5000 .word 0xf26f5400 .word 0xf26f5800 .word 0xf26f5c00 .word 0xf26f6000 .word 0xf26f6400 .word 0xf26f6800 .word 0xf26f6c00 .word 0xf26f7000 .word 0xf26f7400 .word 0xf26f7800 .word 0xf26f7c00 .word 0xf26f8000 .word 0xf26f8400 .word 0xf26f8800 .word 0xf26f8c00 .word 0xf26f9000 .word 0xf26f9400 .word 0xf26f9800 .word 0xf26f9c00 .word 0xf26fa000 .word 0xf26fa400 .word 0xf26fa800 .word 0xf26fac00 .word 0xf26fb000 .word 0xf26fb400 .word 0xf26fb800 .word 0xf26fbc00 .word 0xf26fc000 .word 0xf26fc400 .word 0xf26fc800 .word 0xf26fcc00 .word 0xf26fd000 .word 0xf26fd400 .word 0xf26fd800 .word 0xf26fdc00 .word 0xf26fe000 .word 0xf26fe400 .word 0xf26fe800 .word 0xf26fec00 .word 0xf26ff000 .word 0xf26ff400 .word 0xf26ff800 .word 0xf26ffc00 .word 0xf2700000 .word 0xf2700400 .word 0xf2700800 .word 0xf2700c00 .word 0xf2701000 .word 0xf2701400 .word 0xf2701800 .word 0xf2701c00 .word 0xf2702000 .word 0xf2702400 .word 0xf2702800 .word 0xf2702c00 .word 0xf2703000 .word 0xf2703400 .word 0xf2703800 .word 0xf2703c00 .word 0xf2704000 .word 0xf2704400 .word 0xf2704800 .word 0xf2704c00 .word 0xf2705000 .word 0xf2705400 .word 0xf2705800 .word 0xf2705c00 .word 0xf2706000 .word 0xf2706400 .word 0xf2706800 .word 0xf2706c00 .word 0xf2707000 .word 0xf2707400 .word 0xf2707800 .word 0xf2707c00 .word 0xf2708000 .word 0xf2708400 .word 0xf2708800 .word 0xf2708c00 .word 0xf2709000 .word 0xf2709400 .word 0xf2709800 .word 0xf2709c00 .word 0xf270a000 .word 0xf270a400 .word 0xf270a800 .word 0xf270ac00 .word 0xf270b000 .word 0xf270b400 .word 0xf270b800 .word 0xf270bc00 .word 0xf270c000 .word 0xf270c400 .word 0xf270c800 .word 0xf270cc00 .word 0xf270d000 .word 0xf270d400 .word 0xf270d800 .word 0xf270dc00 .word 0xf270e000 .word 0xf270e400 .word 0xf270e800 .word 0xf270ec00 .word 0xf270f000 .word 0xf270f400 .word 0xf270f800 .word 0xf270fc00 .word 0xf2710000 .word 0xf2710400 .word 0xf2710800 .word 0xf2710c00 .word 0xf2711000 .word 0xf2711400 .word 0xf2711800 .word 0xf2711c00 .word 0xf2712000 .word 0xf2712400 .word 0xf2712800 .word 0xf2712c00 .word 0xf2713000 .word 0xf2713400 .word 0xf2713800 .word 0xf2713c00 .word 0xf2714000 .word 0xf2714400 .word 0xf2714800 .word 0xf2714c00 .word 0xf2715000 .word 0xf2715400 .word 0xf2715800 .word 0xf2715c00 .word 0xf2716000 .word 0xf2716400 .word 0xf2716800 .word 0xf2716c00 .word 0xf2717000 .word 0xf2717400 .word 0xf2717800 .word 0xf2717c00 .word 0xf2718000 .word 0xf2718400 .word 0xf2718800 .word 0xf2718c00 .word 0xf2719000 .word 0xf2719400 .word 0xf2719800 .word 0xf2719c00 .word 0xf271a000 .word 0xf271a400 .word 0xf271a800 .word 0xf271ac00 .word 0xf271b000 .word 0xf271b400 .word 0xf271b800 .word 0xf271bc00 .word 0xf271c000 .word 0xf271c400 .word 0xf271c800 .word 0xf271cc00 .word 0xf271d000 .word 0xf271d400 .word 0xf271d800 .word 0xf271dc00 .word 0xf271e000 .word 0xf271e400 .word 0xf271e800 .word 0xf271ec00 .word 0xf271f000 .word 0xf271f400 .word 0xf271f800 .word 0xf271fc00 .word 0xf2720000 .word 0xf2720400 .word 0xf2720800 .word 0xf2720c00 .word 0xf2721000 .word 0xf2721400 .word 0xf2721800 .word 0xf2721c00 .word 0xf2722000 .word 0xf2722400 .word 0xf2722800 .word 0xf2722c00 .word 0xf2723000 .word 0xf2723400 .word 0xf2723800 .word 0xf2723c00 .word 0xf2724000 .word 0xf2724400 .word 0xf2724800 .word 0xf2724c00 .word 0xf2725000 .word 0xf2725400 .word 0xf2725800 .word 0xf2725c00 .word 0xf2726000 .word 0xf2726400 .word 0xf2726800 .word 0xf2726c00 .word 0xf2727000 .word 0xf2727400 .word 0xf2727800 .word 0xf2727c00 .word 0xf2728000 .word 0xf2728400 .word 0xf2728800 .word 0xf2728c00 .word 0xf2729000 .word 0xf2729400 .word 0xf2729800 .word 0xf2729c00 .word 0xf272a000 .word 0xf272a400 .word 0xf272a800 .word 0xf272ac00 .word 0xf272b000 .word 0xf272b400 .word 0xf272b800 .word 0xf272bc00 .word 0xf272c000 .word 0xf272c400 .word 0xf272c800 .word 0xf272cc00 .word 0xf272d000 .word 0xf272d400 .word 0xf272d800 .word 0xf272dc00 .word 0xf272e000 .word 0xf272e400 .word 0xf272e800 .word 0xf272ec00 .word 0xf272f000 .word 0xf272f400 .word 0xf272f800 .word 0xf272fc00 .word 0xf2730000 .word 0xf2730400 .word 0xf2730800 .word 0xf2730c00 .word 0xf2731000 .word 0xf2731400 .word 0xf2731800 .word 0xf2731c00 .word 0xf2732000 .word 0xf2732400 .word 0xf2732800 .word 0xf2732c00 .word 0xf2733000 .word 0xf2733400 .word 0xf2733800 .word 0xf2733c00 .word 0xf2734000 .word 0xf2734400 .word 0xf2734800 .word 0xf2734c00 .word 0xf2735000 .word 0xf2735400 .word 0xf2735800 .word 0xf2735c00 .word 0xf2736000 .word 0xf2736400 .word 0xf2736800 .word 0xf2736c00 .word 0xf2737000 .word 0xf2737400 .word 0xf2737800 .word 0xf2737c00 .word 0xf2738000 .word 0xf2738400 .word 0xf2738800 .word 0xf2738c00 .word 0xf2739000 .word 0xf2739400 .word 0xf2739800 .word 0xf2739c00 .word 0xf273a000 .word 0xf273a400 .word 0xf273a800 .word 0xf273ac00 .word 0xf273b000 .word 0xf273b400 .word 0xf273b800 .word 0xf273bc00 .word 0xf273c000 .word 0xf273c400 .word 0xf273c800 .word 0xf273cc00 .word 0xf273d000 .word 0xf273d400 .word 0xf273d800 .word 0xf273dc00 .word 0xf273e000 .word 0xf273e400 .word 0xf273e800 .word 0xf273ec00 .word 0xf273f000 .word 0xf273f400 .word 0xf273f800 .word 0xf273fc00 .word 0xf2740000 .word 0xf2740400 .word 0xf2740800 .word 0xf2740c00 .word 0xf2741000 .word 0xf2741400 .word 0xf2741800 .word 0xf2741c00 .word 0xf2742000 .word 0xf2742400 .word 0xf2742800 .word 0xf2742c00 .word 0xf2743000 .word 0xf2743400 .word 0xf2743800 .word 0xf2743c00 .word 0xf2744000 .word 0xf2744400 .word 0xf2744800 .word 0xf2744c00 .word 0xf2745000 .word 0xf2745400 .word 0xf2745800 .word 0xf2745c00 .word 0xf2746000 .word 0xf2746400 .word 0xf2746800 .word 0xf2746c00 .word 0xf2747000 .word 0xf2747400 .word 0xf2747800 .word 0xf2747c00 .word 0xf2748000 .word 0xf2748400 .word 0xf2748800 .word 0xf2748c00 .word 0xf2749000 .word 0xf2749400 .word 0xf2749800 .word 0xf2749c00 .word 0xf274a000 .word 0xf274a400 .word 0xf274a800 .word 0xf274ac00 .word 0xf274b000 .word 0xf274b400 .word 0xf274b800 .word 0xf274bc00 .word 0xf274c000 .word 0xf274c400 .word 0xf274c800 .word 0xf274cc00 .word 0xf274d000 .word 0xf274d400 .word 0xf274d800 .word 0xf274dc00 .word 0xf274e000 .word 0xf274e400 .word 0xf274e800 .word 0xf274ec00 .word 0xf274f000 .word 0xf274f400 .word 0xf274f800 .word 0xf274fc00 .word 0xf2750000 .word 0xf2750400 .word 0xf2750800 .word 0xf2750c00 .word 0xf2751000 .word 0xf2751400 .word 0xf2751800 .word 0xf2751c00 .word 0xf2752000 .word 0xf2752400 .word 0xf2752800 .word 0xf2752c00 .word 0xf2753000 .word 0xf2753400 .word 0xf2753800 .word 0xf2753c00 .word 0xf2754000 .word 0xf2754400 .word 0xf2754800 .word 0xf2754c00 .word 0xf2755000 .word 0xf2755400 .word 0xf2755800 .word 0xf2755c00 .word 0xf2756000 .word 0xf2756400 .word 0xf2756800 .word 0xf2756c00 .word 0xf2757000 .word 0xf2757400 .word 0xf2757800 .word 0xf2757c00 .word 0xf2758000 .word 0xf2758400 .word 0xf2758800 .word 0xf2758c00 .word 0xf2759000 .word 0xf2759400 .word 0xf2759800 .word 0xf2759c00 .word 0xf275a000 .word 0xf275a400 .word 0xf275a800 .word 0xf275ac00 .word 0xf275b000 .word 0xf275b400 .word 0xf275b800 .word 0xf275bc00 .word 0xf275c000 .word 0xf275c400 .word 0xf275c800 .word 0xf275cc00 .word 0xf275d000 .word 0xf275d400 .word 0xf275d800 .word 0xf275dc00 .word 0xf275e000 .word 0xf275e400 .word 0xf275e800 .word 0xf275ec00 .word 0xf275f000 .word 0xf275f400 .word 0xf275f800 .word 0xf275fc00 .word 0xf2760000 .word 0xf2760400 .word 0xf2760800 .word 0xf2760c00 .word 0xf2761000 .word 0xf2761400 .word 0xf2761800 .word 0xf2761c00 .word 0xf2762000 .word 0xf2762400 .word 0xf2762800 .word 0xf2762c00 .word 0xf2763000 .word 0xf2763400 .word 0xf2763800 .word 0xf2763c00 .word 0xf2764000 .word 0xf2764400 .word 0xf2764800 .word 0xf2764c00 .word 0xf2765000 .word 0xf2765400 .word 0xf2765800 .word 0xf2765c00 .word 0xf2766000 .word 0xf2766400 .word 0xf2766800 .word 0xf2766c00 .word 0xf2767000 .word 0xf2767400 .word 0xf2767800 .word 0xf2767c00 .word 0xf2768000 .word 0xf2768400 .word 0xf2768800 .word 0xf2768c00 .word 0xf2769000 .word 0xf2769400 .word 0xf2769800 .word 0xf2769c00 .word 0xf276a000 .word 0xf276a400 .word 0xf276a800 .word 0xf276ac00 .word 0xf276b000 .word 0xf276b400 .word 0xf276b800 .word 0xf276bc00 .word 0xf276c000 .word 0xf276c400 .word 0xf276c800 .word 0xf276cc00 .word 0xf276d000 .word 0xf276d400 .word 0xf276d800 .word 0xf276dc00 .word 0xf276e000 .word 0xf276e400 .word 0xf276e800 .word 0xf276ec00 .word 0xf276f000 .word 0xf276f400 .word 0xf276f800 .word 0xf276fc00 .word 0xf2770000 .word 0xf2770400 .word 0xf2770800 .word 0xf2770c00 .word 0xf2771000 .word 0xf2771400 .word 0xf2771800 .word 0xf2771c00 .word 0xf2772000 .word 0xf2772400 .word 0xf2772800 .word 0xf2772c00 .word 0xf2773000 .word 0xf2773400 .word 0xf2773800 .word 0xf2773c00 .word 0xf2774000 .word 0xf2774400 .word 0xf2774800 .word 0xf2774c00 .word 0xf2775000 .word 0xf2775400 .word 0xf2775800 .word 0xf2775c00 .word 0xf2776000 .word 0xf2776400 .word 0xf2776800 .word 0xf2776c00 .word 0xf2777000 .word 0xf2777400 .word 0xf2777800 .word 0xf2777c00 .word 0xf2778000 .word 0xf2778400 .word 0xf2778800 .word 0xf2778c00 .word 0xf2779000 .word 0xf2779400 .word 0xf2779800 .word 0xf2779c00 .word 0xf277a000 .word 0xf277a400 .word 0xf277a800 .word 0xf277ac00 .word 0xf277b000 .word 0xf277b400 .word 0xf277b800 .word 0xf277bc00 .word 0xf277c000 .word 0xf277c400 .word 0xf277c800 .word 0xf277cc00 .word 0xf277d000 .word 0xf277d400 .word 0xf277d800 .word 0xf277dc00 .word 0xf277e000 .word 0xf277e400 .word 0xf277e800 .word 0xf277ec00 .word 0xf277f000 .word 0xf277f400 .word 0xf277f800 .word 0xf277fc00 .word 0xf2780000 .word 0xf2780400 .word 0xf2780800 .word 0xf2780c00 .word 0xf2781000 .word 0xf2781400 .word 0xf2781800 .word 0xf2781c00 .word 0xf2782000 .word 0xf2782400 .word 0xf2782800 .word 0xf2782c00 .word 0xf2783000 .word 0xf2783400 .word 0xf2783800 .word 0xf2783c00 .word 0xf2784000 .word 0xf2784400 .word 0xf2784800 .word 0xf2784c00 .word 0xf2785000 .word 0xf2785400 .word 0xf2785800 .word 0xf2785c00 .word 0xf2786000 .word 0xf2786400 .word 0xf2786800 .word 0xf2786c00 .word 0xf2787000 .word 0xf2787400 .word 0xf2787800 .word 0xf2787c00 .word 0xf2788000 .word 0xf2788400 .word 0xf2788800 .word 0xf2788c00 .word 0xf2789000 .word 0xf2789400 .word 0xf2789800 .word 0xf2789c00 .word 0xf278a000 .word 0xf278a400 .word 0xf278a800 .word 0xf278ac00 .word 0xf278b000 .word 0xf278b400 .word 0xf278b800 .word 0xf278bc00 .word 0xf278c000 .word 0xf278c400 .word 0xf278c800 .word 0xf278cc00 .word 0xf278d000 .word 0xf278d400 .word 0xf278d800 .word 0xf278dc00 .word 0xf278e000 .word 0xf278e400 .word 0xf278e800 .word 0xf278ec00 .word 0xf278f000 .word 0xf278f400 .word 0xf278f800 .word 0xf278fc00 .word 0xf2790000 .word 0xf2790400 .word 0xf2790800 .word 0xf2790c00 .word 0xf2791000 .word 0xf2791400 .word 0xf2791800 .word 0xf2791c00 .word 0xf2792000 .word 0xf2792400 .word 0xf2792800 .word 0xf2792c00 .word 0xf2793000 .word 0xf2793400 .word 0xf2793800 .word 0xf2793c00 .word 0xf2794000 .word 0xf2794400 .word 0xf2794800 .word 0xf2794c00 .word 0xf2795000 .word 0xf2795400 .word 0xf2795800 .word 0xf2795c00 .word 0xf2796000 .word 0xf2796400 .word 0xf2796800 .word 0xf2796c00 .word 0xf2797000 .word 0xf2797400 .word 0xf2797800 .word 0xf2797c00 .word 0xf2798000 .word 0xf2798400 .word 0xf2798800 .word 0xf2798c00 .word 0xf2799000 .word 0xf2799400 .word 0xf2799800 .word 0xf2799c00 .word 0xf279a000 .word 0xf279a400 .word 0xf279a800 .word 0xf279ac00 .word 0xf279b000 .word 0xf279b400 .word 0xf279b800 .word 0xf279bc00 .word 0xf279c000 .word 0xf279c400 .word 0xf279c800 .word 0xf279cc00 .word 0xf279d000 .word 0xf279d400 .word 0xf279d800 .word 0xf279dc00 .word 0xf279e000 .word 0xf279e400 .word 0xf279e800 .word 0xf279ec00 .word 0xf279f000 .word 0xf279f400 .word 0xf279f800 .word 0xf279fc00 .word 0xf27a0000 .word 0xf27a0400 .word 0xf27a0800 .word 0xf27a0c00 .word 0xf27a1000 .word 0xf27a1400 .word 0xf27a1800 .word 0xf27a1c00 .word 0xf27a2000 .word 0xf27a2400 .word 0xf27a2800 .word 0xf27a2c00 .word 0xf27a3000 .word 0xf27a3400 .word 0xf27a3800 .word 0xf27a3c00 .word 0xf27a4000 .word 0xf27a4400 .word 0xf27a4800 .word 0xf27a4c00 .word 0xf27a5000 .word 0xf27a5400 .word 0xf27a5800 .word 0xf27a5c00 .word 0xf27a6000 .word 0xf27a6400 .word 0xf27a6800 .word 0xf27a6c00 .word 0xf27a7000 .word 0xf27a7400 .word 0xf27a7800 .word 0xf27a7c00 .word 0xf27a8000 .word 0xf27a8400 .word 0xf27a8800 .word 0xf27a8c00 .word 0xf27a9000 .word 0xf27a9400 .word 0xf27a9800 .word 0xf27a9c00 .word 0xf27aa000 .word 0xf27aa400 .word 0xf27aa800 .word 0xf27aac00 .word 0xf27ab000 .word 0xf27ab400 .word 0xf27ab800 .word 0xf27abc00 .word 0xf27ac000 .word 0xf27ac400 .word 0xf27ac800 .word 0xf27acc00 .word 0xf27ad000 .word 0xf27ad400 .word 0xf27ad800 .word 0xf27adc00 .word 0xf27ae000 .word 0xf27ae400 .word 0xf27ae800 .word 0xf27aec00 .word 0xf27af000 .word 0xf27af400 .word 0xf27af800 .word 0xf27afc00 .word 0xf27b0000 .word 0xf27b0400 .word 0xf27b0800 .word 0xf27b0c00 .word 0xf27b1000 .word 0xf27b1400 .word 0xf27b1800 .word 0xf27b1c00 .word 0xf27b2000 .word 0xf27b2400 .word 0xf27b2800 .word 0xf27b2c00 .word 0xf27b3000 .word 0xf27b3400 .word 0xf27b3800 .word 0xf27b3c00 .word 0xf27b4000 .word 0xf27b4400 .word 0xf27b4800 .word 0xf27b4c00 .word 0xf27b5000 .word 0xf27b5400 .word 0xf27b5800 .word 0xf27b5c00 .word 0xf27b6000 .word 0xf27b6400 .word 0xf27b6800 .word 0xf27b6c00 .word 0xf27b7000 .word 0xf27b7400 .word 0xf27b7800 .word 0xf27b7c00 .word 0xf27b8000 .word 0xf27b8400 .word 0xf27b8800 .word 0xf27b8c00 .word 0xf27b9000 .word 0xf27b9400 .word 0xf27b9800 .word 0xf27b9c00 .word 0xf27ba000 .word 0xf27ba400 .word 0xf27ba800 .word 0xf27bac00 .word 0xf27bb000 .word 0xf27bb400 .word 0xf27bb800 .word 0xf27bbc00 .word 0xf27bc000 .word 0xf27bc400 .word 0xf27bc800 .word 0xf27bcc00 .word 0xf27bd000 .word 0xf27bd400 .word 0xf27bd800 .word 0xf27bdc00 .word 0xf27be000 .word 0xf27be400 .word 0xf27be800 .word 0xf27bec00 .word 0xf27bf000 .word 0xf27bf400 .word 0xf27bf800 .word 0xf27bfc00 .word 0xf27c0000 .word 0xf27c0400 .word 0xf27c0800 .word 0xf27c0c00 .word 0xf27c1000 .word 0xf27c1400 .word 0xf27c1800 .word 0xf27c1c00 .word 0xf27c2000 .word 0xf27c2400 .word 0xf27c2800 .word 0xf27c2c00 .word 0xf27c3000 .word 0xf27c3400 .word 0xf27c3800 .word 0xf27c3c00 .word 0xf27c4000 .word 0xf27c4400 .word 0xf27c4800 .word 0xf27c4c00 .word 0xf27c5000 .word 0xf27c5400 .word 0xf27c5800 .word 0xf27c5c00 .word 0xf27c6000 .word 0xf27c6400 .word 0xf27c6800 .word 0xf27c6c00 .word 0xf27c7000 .word 0xf27c7400 .word 0xf27c7800 .word 0xf27c7c00 .word 0xf27c8000 .word 0xf27c8400 .word 0xf27c8800 .word 0xf27c8c00 .word 0xf27c9000 .word 0xf27c9400 .word 0xf27c9800 .word 0xf27c9c00 .word 0xf27ca000 .word 0xf27ca400 .word 0xf27ca800 .word 0xf27cac00 .word 0xf27cb000 .word 0xf27cb400 .word 0xf27cb800 .word 0xf27cbc00 .word 0xf27cc000 .word 0xf27cc400 .word 0xf27cc800 .word 0xf27ccc00 .word 0xf27cd000 .word 0xf27cd400 .word 0xf27cd800 .word 0xf27cdc00 .word 0xf27ce000 .word 0xf27ce400 .word 0xf27ce800 .word 0xf27cec00 .word 0xf27cf000 .word 0xf27cf400 .word 0xf27cf800 .word 0xf27cfc00 .word 0xf27d0000 .word 0xf27d0400 .word 0xf27d0800 .word 0xf27d0c00 .word 0xf27d1000 .word 0xf27d1400 .word 0xf27d1800 .word 0xf27d1c00 .word 0xf27d2000 .word 0xf27d2400 .word 0xf27d2800 .word 0xf27d2c00 .word 0xf27d3000 .word 0xf27d3400 .word 0xf27d3800 .word 0xf27d3c00 .word 0xf27d4000 .word 0xf27d4400 .word 0xf27d4800 .word 0xf27d4c00 .word 0xf27d5000 .word 0xf27d5400 .word 0xf27d5800 .word 0xf27d5c00 .word 0xf27d6000 .word 0xf27d6400 .word 0xf27d6800 .word 0xf27d6c00 .word 0xf27d7000 .word 0xf27d7400 .word 0xf27d7800 .word 0xf27d7c00 .word 0xf27d8000 .word 0xf27d8400 .word 0xf27d8800 .word 0xf27d8c00 .word 0xf27d9000 .word 0xf27d9400 .word 0xf27d9800 .word 0xf27d9c00 .word 0xf27da000 .word 0xf27da400 .word 0xf27da800 .word 0xf27dac00 .word 0xf27db000 .word 0xf27db400 .word 0xf27db800 .word 0xf27dbc00 .word 0xf27dc000 .word 0xf27dc400 .word 0xf27dc800 .word 0xf27dcc00 .word 0xf27dd000 .word 0xf27dd400 .word 0xf27dd800 .word 0xf27ddc00 .word 0xf27de000 .word 0xf27de400 .word 0xf27de800 .word 0xf27dec00 .word 0xf27df000 .word 0xf27df400 .word 0xf27df800 .word 0xf27dfc00 .word 0xf27e0000 .word 0xf27e0400 .word 0xf27e0800 .word 0xf27e0c00 .word 0xf27e1000 .word 0xf27e1400 .word 0xf27e1800 .word 0xf27e1c00 .word 0xf27e2000 .word 0xf27e2400 .word 0xf27e2800 .word 0xf27e2c00 .word 0xf27e3000 .word 0xf27e3400 .word 0xf27e3800 .word 0xf27e3c00 .word 0xf27e4000 .word 0xf27e4400 .word 0xf27e4800 .word 0xf27e4c00 .word 0xf27e5000 .word 0xf27e5400 .word 0xf27e5800 .word 0xf27e5c00 .word 0xf27e6000 .word 0xf27e6400 .word 0xf27e6800 .word 0xf27e6c00 .word 0xf27e7000 .word 0xf27e7400 .word 0xf27e7800 .word 0xf27e7c00 .word 0xf27e8000 .word 0xf27e8400 .word 0xf27e8800 .word 0xf27e8c00 .word 0xf27e9000 .word 0xf27e9400 .word 0xf27e9800 .word 0xf27e9c00 .word 0xf27ea000 .word 0xf27ea400 .word 0xf27ea800 .word 0xf27eac00 .word 0xf27eb000 .word 0xf27eb400 .word 0xf27eb800 .word 0xf27ebc00 .word 0xf27ec000 .word 0xf27ec400 .word 0xf27ec800 .word 0xf27ecc00 .word 0xf27ed000 .word 0xf27ed400 .word 0xf27ed800 .word 0xf27edc00 .word 0xf27ee000 .word 0xf27ee400 .word 0xf27ee800 .word 0xf27eec00 .word 0xf27ef000 .word 0xf27ef400 .word 0xf27ef800 .word 0xf27efc00 .word 0xf27f0000 .word 0xf27f0400 .word 0xf27f0800 .word 0xf27f0c00 .word 0xf27f1000 .word 0xf27f1400 .word 0xf27f1800 .word 0xf27f1c00 .word 0xf27f2000 .word 0xf27f2400 .word 0xf27f2800 .word 0xf27f2c00 .word 0xf27f3000 .word 0xf27f3400 .word 0xf27f3800 .word 0xf27f3c00 .word 0xf27f4000 .word 0xf27f4400 .word 0xf27f4800 .word 0xf27f4c00 .word 0xf27f5000 .word 0xf27f5400 .word 0xf27f5800 .word 0xf27f5c00 .word 0xf27f6000 .word 0xf27f6400 .word 0xf27f6800 .word 0xf27f6c00 .word 0xf27f7000 .word 0xf27f7400 .word 0xf27f7800 .word 0xf27f7c00 .word 0xf27f8000 .word 0xf27f8400 .word 0xf27f8800 .word 0xf27f8c00 .word 0xf27f9000 .word 0xf27f9400 .word 0xf27f9800 .word 0xf27f9c00 .word 0xf27fa000 .word 0xf27fa400 .word 0xf27fa800 .word 0xf27fac00 .word 0xf27fb000 .word 0xf27fb400 .word 0xf27fb800 .word 0xf27fbc00 .word 0xf27fc000 .word 0xf27fc400 .word 0xf27fc800 .word 0xf27fcc00 .word 0xf27fd000 .word 0xf27fd400 .word 0xf27fd800 .word 0xf27fdc00 .word 0xf27fe000 .word 0xf27fe400 .word 0xf27fe800 .word 0xf27fec00 .word 0xf27ff000 .word 0xf27ff400 .word 0xf27ff800 .word 0xf27ffc00
ejit-org/ejit-compiler
914
asm-test/aarch64.s
.text adds x0, x0, x0 subs x0, x0, x0 adcs x0, x0, x0 sbcs x0, x0, x0 ands x0, x0, x0 orr x0, x0, x0 eor x0, x0, x0 mul x0, x0, x0 udiv x0, x0, x0 sdiv x0, x0, x0 lsl x0, x0, x0 lsr x0, x0, x0 asr x0, x0, x0 ldr x0, rel rel: add x0, x0, x0 adds x0, x0, #0x123 subs x0, x0, #0x123 adcs x0, x0, xzr sbcs x0, x0, xzr ands x0, x0, #1 orr x0, x0, #1 eor x0, x0, #1 lsl x0, x0, #1 lsr x0, x0, #1 asr x0, x0, #1 ands x0, x0, #2 orr x0, x0, #2 eor x0, x0, #2 lsl x0, x0, #2 lsr x0, x0, #2 asr x0, x0, #2 mov x0, x0 mvn x0, x0 negs x0, x0 cmp x0, x0 adr x1, l1 adr x1, l1 l1: adr x1, l1 adr x1, l1 blr x0 br x0 l2: b.eq l2 b.ne l2 b.gt l2 b.ge l2 b.lt l2 b.le l2 b.hi l2 b.hs l2 b.lo l2 b.ls l2 l3: b l3
eightchip/Fast_Merge_Excel
15,150
umya-spreadsheet/zstd-sys/zstd/lib/decompress/huf_decompress_amd64.S
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may select, at your option, one of the above-listed licenses. */ #include "../common/portability_macros.h" #if defined(__ELF__) && defined(__GNUC__) /* Stack marking * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart */ .section .note.GNU-stack,"",%progbits #if defined(__aarch64__) /* Mark that this assembly supports BTI & PAC, because it is empty for aarch64. * See: https://github.com/facebook/zstd/issues/3841 * See: https://gcc.godbolt.org/z/sqr5T4ffK * See: https://lore.kernel.org/linux-arm-kernel/20200429211641.9279-8-broonie@kernel.org/ * See: https://reviews.llvm.org/D62609 */ .pushsection .note.gnu.property, "a" .p2align 3 .long 4 /* size of the name - "GNU\0" */ .long 0x10 /* size of descriptor */ .long 0x5 /* NT_GNU_PROPERTY_TYPE_0 */ .asciz "GNU" .long 0xc0000000 /* pr_type - GNU_PROPERTY_AARCH64_FEATURE_1_AND */ .long 4 /* pr_datasz - 4 bytes */ .long 3 /* pr_data - GNU_PROPERTY_AARCH64_FEATURE_1_BTI | GNU_PROPERTY_AARCH64_FEATURE_1_PAC */ .p2align 3 /* pr_padding - bring everything to 8 byte alignment */ .popsection #endif #endif #if ZSTD_ENABLE_ASM_X86_64_BMI2 /* Calling convention: * * %rdi (or %rcx on Windows) contains the first argument: HUF_DecompressAsmArgs*. * %rbp isn't maintained (no frame pointer). * %rsp contains the stack pointer that grows down. * No red-zone is assumed, only addresses >= %rsp are used. * All register contents are preserved. */ ZSTD_HIDE_ASM_FUNCTION(HUF_decompress4X1_usingDTable_internal_fast_asm_loop) ZSTD_HIDE_ASM_FUNCTION(HUF_decompress4X2_usingDTable_internal_fast_asm_loop) ZSTD_HIDE_ASM_FUNCTION(_HUF_decompress4X2_usingDTable_internal_fast_asm_loop) ZSTD_HIDE_ASM_FUNCTION(_HUF_decompress4X1_usingDTable_internal_fast_asm_loop) .global HUF_decompress4X1_usingDTable_internal_fast_asm_loop .global HUF_decompress4X2_usingDTable_internal_fast_asm_loop .global _HUF_decompress4X1_usingDTable_internal_fast_asm_loop .global _HUF_decompress4X2_usingDTable_internal_fast_asm_loop .text /* Sets up register mappings for clarity. * op[], bits[], dtable & ip[0] each get their own register. * ip[1,2,3] & olimit alias var[]. * %rax is a scratch register. */ #define op0 rsi #define op1 rbx #define op2 rcx #define op3 rdi #define ip0 r8 #define ip1 r9 #define ip2 r10 #define ip3 r11 #define bits0 rbp #define bits1 rdx #define bits2 r12 #define bits3 r13 #define dtable r14 #define olimit r15 /* var[] aliases ip[1,2,3] & olimit * ip[1,2,3] are saved every iteration. * olimit is only used in compute_olimit. */ #define var0 r15 #define var1 r9 #define var2 r10 #define var3 r11 /* 32-bit var registers */ #define vard0 r15d #define vard1 r9d #define vard2 r10d #define vard3 r11d /* Calls X(N) for each stream 0, 1, 2, 3. */ #define FOR_EACH_STREAM(X) \ X(0); \ X(1); \ X(2); \ X(3) /* Calls X(N, idx) for each stream 0, 1, 2, 3. */ #define FOR_EACH_STREAM_WITH_INDEX(X, idx) \ X(0, idx); \ X(1, idx); \ X(2, idx); \ X(3, idx) /* Define both _HUF_* & HUF_* symbols because MacOS * C symbols are prefixed with '_' & Linux symbols aren't. */ _HUF_decompress4X1_usingDTable_internal_fast_asm_loop: HUF_decompress4X1_usingDTable_internal_fast_asm_loop: ZSTD_CET_ENDBRANCH /* Save all registers - even if they are callee saved for simplicity. */ push %rax push %rbx push %rcx push %rdx push %rbp push %rsi push %rdi push %r8 push %r9 push %r10 push %r11 push %r12 push %r13 push %r14 push %r15 /* Read HUF_DecompressAsmArgs* args from %rax */ #if defined(_WIN32) movq %rcx, %rax #else movq %rdi, %rax #endif movq 0(%rax), %ip0 movq 8(%rax), %ip1 movq 16(%rax), %ip2 movq 24(%rax), %ip3 movq 32(%rax), %op0 movq 40(%rax), %op1 movq 48(%rax), %op2 movq 56(%rax), %op3 movq 64(%rax), %bits0 movq 72(%rax), %bits1 movq 80(%rax), %bits2 movq 88(%rax), %bits3 movq 96(%rax), %dtable push %rax /* argument */ push 104(%rax) /* ilowest */ push 112(%rax) /* oend */ push %olimit /* olimit space */ subq $24, %rsp .L_4X1_compute_olimit: /* Computes how many iterations we can do safely * %r15, %rax may be clobbered * rbx, rdx must be saved * op3 & ip0 mustn't be clobbered */ movq %rbx, 0(%rsp) movq %rdx, 8(%rsp) movq 32(%rsp), %rax /* rax = oend */ subq %op3, %rax /* rax = oend - op3 */ /* r15 = (oend - op3) / 5 */ movabsq $-3689348814741910323, %rdx mulq %rdx movq %rdx, %r15 shrq $2, %r15 movq %ip0, %rax /* rax = ip0 */ movq 40(%rsp), %rdx /* rdx = ilowest */ subq %rdx, %rax /* rax = ip0 - ilowest */ movq %rax, %rbx /* rbx = ip0 - ilowest */ /* rdx = (ip0 - ilowest) / 7 */ movabsq $2635249153387078803, %rdx mulq %rdx subq %rdx, %rbx shrq %rbx addq %rbx, %rdx shrq $2, %rdx /* r15 = min(%rdx, %r15) */ cmpq %rdx, %r15 cmova %rdx, %r15 /* r15 = r15 * 5 */ leaq (%r15, %r15, 4), %r15 /* olimit = op3 + r15 */ addq %op3, %olimit movq 8(%rsp), %rdx movq 0(%rsp), %rbx /* If (op3 + 20 > olimit) */ movq %op3, %rax /* rax = op3 */ cmpq %rax, %olimit /* op3 == olimit */ je .L_4X1_exit /* If (ip1 < ip0) go to exit */ cmpq %ip0, %ip1 jb .L_4X1_exit /* If (ip2 < ip1) go to exit */ cmpq %ip1, %ip2 jb .L_4X1_exit /* If (ip3 < ip2) go to exit */ cmpq %ip2, %ip3 jb .L_4X1_exit /* Reads top 11 bits from bits[n] * Loads dt[bits[n]] into var[n] */ #define GET_NEXT_DELT(n) \ movq $53, %var##n; \ shrxq %var##n, %bits##n, %var##n; \ movzwl (%dtable,%var##n,2),%vard##n /* var[n] must contain the DTable entry computed with GET_NEXT_DELT * Moves var[n] to %rax * bits[n] <<= var[n] & 63 * op[n][idx] = %rax >> 8 * %ah is a way to access bits [8, 16) of %rax */ #define DECODE_FROM_DELT(n, idx) \ movq %var##n, %rax; \ shlxq %var##n, %bits##n, %bits##n; \ movb %ah, idx(%op##n) /* Assumes GET_NEXT_DELT has been called. * Calls DECODE_FROM_DELT then GET_NEXT_DELT */ #define DECODE_AND_GET_NEXT(n, idx) \ DECODE_FROM_DELT(n, idx); \ GET_NEXT_DELT(n) \ /* // ctz & nbBytes is stored in bits[n] * // nbBits is stored in %rax * ctz = CTZ[bits[n]] * nbBits = ctz & 7 * nbBytes = ctz >> 3 * op[n] += 5 * ip[n] -= nbBytes * // Note: x86-64 is little-endian ==> no bswap * bits[n] = MEM_readST(ip[n]) | 1 * bits[n] <<= nbBits */ #define RELOAD_BITS(n) \ bsfq %bits##n, %bits##n; \ movq %bits##n, %rax; \ andq $7, %rax; \ shrq $3, %bits##n; \ leaq 5(%op##n), %op##n; \ subq %bits##n, %ip##n; \ movq (%ip##n), %bits##n; \ orq $1, %bits##n; \ shlx %rax, %bits##n, %bits##n /* Store clobbered variables on the stack */ movq %olimit, 24(%rsp) movq %ip1, 0(%rsp) movq %ip2, 8(%rsp) movq %ip3, 16(%rsp) /* Call GET_NEXT_DELT for each stream */ FOR_EACH_STREAM(GET_NEXT_DELT) .p2align 6 .L_4X1_loop_body: /* Decode 5 symbols in each of the 4 streams (20 total) * Must have called GET_NEXT_DELT for each stream */ FOR_EACH_STREAM_WITH_INDEX(DECODE_AND_GET_NEXT, 0) FOR_EACH_STREAM_WITH_INDEX(DECODE_AND_GET_NEXT, 1) FOR_EACH_STREAM_WITH_INDEX(DECODE_AND_GET_NEXT, 2) FOR_EACH_STREAM_WITH_INDEX(DECODE_AND_GET_NEXT, 3) FOR_EACH_STREAM_WITH_INDEX(DECODE_FROM_DELT, 4) /* Load ip[1,2,3] from stack (var[] aliases them) * ip[] is needed for RELOAD_BITS * Each will be stored back to the stack after RELOAD */ movq 0(%rsp), %ip1 movq 8(%rsp), %ip2 movq 16(%rsp), %ip3 /* Reload each stream & fetch the next table entry * to prepare for the next iteration */ RELOAD_BITS(0) GET_NEXT_DELT(0) RELOAD_BITS(1) movq %ip1, 0(%rsp) GET_NEXT_DELT(1) RELOAD_BITS(2) movq %ip2, 8(%rsp) GET_NEXT_DELT(2) RELOAD_BITS(3) movq %ip3, 16(%rsp) GET_NEXT_DELT(3) /* If op3 < olimit: continue the loop */ cmp %op3, 24(%rsp) ja .L_4X1_loop_body /* Reload ip[1,2,3] from stack */ movq 0(%rsp), %ip1 movq 8(%rsp), %ip2 movq 16(%rsp), %ip3 /* Re-compute olimit */ jmp .L_4X1_compute_olimit #undef GET_NEXT_DELT #undef DECODE_FROM_DELT #undef DECODE #undef RELOAD_BITS .L_4X1_exit: addq $24, %rsp /* Restore stack (oend & olimit) */ pop %rax /* olimit */ pop %rax /* oend */ pop %rax /* ilowest */ pop %rax /* arg */ /* Save ip / op / bits */ movq %ip0, 0(%rax) movq %ip1, 8(%rax) movq %ip2, 16(%rax) movq %ip3, 24(%rax) movq %op0, 32(%rax) movq %op1, 40(%rax) movq %op2, 48(%rax) movq %op3, 56(%rax) movq %bits0, 64(%rax) movq %bits1, 72(%rax) movq %bits2, 80(%rax) movq %bits3, 88(%rax) /* Restore registers */ pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 pop %r9 pop %r8 pop %rdi pop %rsi pop %rbp pop %rdx pop %rcx pop %rbx pop %rax ret _HUF_decompress4X2_usingDTable_internal_fast_asm_loop: HUF_decompress4X2_usingDTable_internal_fast_asm_loop: ZSTD_CET_ENDBRANCH /* Save all registers - even if they are callee saved for simplicity. */ push %rax push %rbx push %rcx push %rdx push %rbp push %rsi push %rdi push %r8 push %r9 push %r10 push %r11 push %r12 push %r13 push %r14 push %r15 /* Read HUF_DecompressAsmArgs* args from %rax */ #if defined(_WIN32) movq %rcx, %rax #else movq %rdi, %rax #endif movq 0(%rax), %ip0 movq 8(%rax), %ip1 movq 16(%rax), %ip2 movq 24(%rax), %ip3 movq 32(%rax), %op0 movq 40(%rax), %op1 movq 48(%rax), %op2 movq 56(%rax), %op3 movq 64(%rax), %bits0 movq 72(%rax), %bits1 movq 80(%rax), %bits2 movq 88(%rax), %bits3 movq 96(%rax), %dtable push %rax /* argument */ push %rax /* olimit */ push 104(%rax) /* ilowest */ movq 112(%rax), %rax push %rax /* oend3 */ movq %op3, %rax push %rax /* oend2 */ movq %op2, %rax push %rax /* oend1 */ movq %op1, %rax push %rax /* oend0 */ /* Scratch space */ subq $8, %rsp .L_4X2_compute_olimit: /* Computes how many iterations we can do safely * %r15, %rax may be clobbered * rdx must be saved * op[1,2,3,4] & ip0 mustn't be clobbered */ movq %rdx, 0(%rsp) /* We can consume up to 7 input bytes each iteration. */ movq %ip0, %rax /* rax = ip0 */ movq 40(%rsp), %rdx /* rdx = ilowest */ subq %rdx, %rax /* rax = ip0 - ilowest */ movq %rax, %r15 /* r15 = ip0 - ilowest */ /* rdx = rax / 7 */ movabsq $2635249153387078803, %rdx mulq %rdx subq %rdx, %r15 shrq %r15 addq %r15, %rdx shrq $2, %rdx /* r15 = (ip0 - ilowest) / 7 */ movq %rdx, %r15 /* r15 = min(r15, min(oend0 - op0, oend1 - op1, oend2 - op2, oend3 - op3) / 10) */ movq 8(%rsp), %rax /* rax = oend0 */ subq %op0, %rax /* rax = oend0 - op0 */ movq 16(%rsp), %rdx /* rdx = oend1 */ subq %op1, %rdx /* rdx = oend1 - op1 */ cmpq %rax, %rdx cmova %rax, %rdx /* rdx = min(%rdx, %rax) */ movq 24(%rsp), %rax /* rax = oend2 */ subq %op2, %rax /* rax = oend2 - op2 */ cmpq %rax, %rdx cmova %rax, %rdx /* rdx = min(%rdx, %rax) */ movq 32(%rsp), %rax /* rax = oend3 */ subq %op3, %rax /* rax = oend3 - op3 */ cmpq %rax, %rdx cmova %rax, %rdx /* rdx = min(%rdx, %rax) */ movabsq $-3689348814741910323, %rax mulq %rdx shrq $3, %rdx /* rdx = rdx / 10 */ /* r15 = min(%rdx, %r15) */ cmpq %rdx, %r15 cmova %rdx, %r15 /* olimit = op3 + 5 * r15 */ movq %r15, %rax leaq (%op3, %rax, 4), %olimit addq %rax, %olimit movq 0(%rsp), %rdx /* If (op3 + 10 > olimit) */ movq %op3, %rax /* rax = op3 */ cmpq %rax, %olimit /* op3 == olimit */ je .L_4X2_exit /* If (ip1 < ip0) go to exit */ cmpq %ip0, %ip1 jb .L_4X2_exit /* If (ip2 < ip1) go to exit */ cmpq %ip1, %ip2 jb .L_4X2_exit /* If (ip3 < ip2) go to exit */ cmpq %ip2, %ip3 jb .L_4X2_exit #define DECODE(n, idx) \ movq %bits##n, %rax; \ shrq $53, %rax; \ movzwl 0(%dtable,%rax,4),%r8d; \ movzbl 2(%dtable,%rax,4),%r15d; \ movzbl 3(%dtable,%rax,4),%eax; \ movw %r8w, (%op##n); \ shlxq %r15, %bits##n, %bits##n; \ addq %rax, %op##n #define RELOAD_BITS(n) \ bsfq %bits##n, %bits##n; \ movq %bits##n, %rax; \ shrq $3, %bits##n; \ andq $7, %rax; \ subq %bits##n, %ip##n; \ movq (%ip##n), %bits##n; \ orq $1, %bits##n; \ shlxq %rax, %bits##n, %bits##n movq %olimit, 48(%rsp) .p2align 6 .L_4X2_loop_body: /* We clobber r8, so store it on the stack */ movq %r8, 0(%rsp) /* Decode 5 symbols from each of the 4 streams (20 symbols total). */ FOR_EACH_STREAM_WITH_INDEX(DECODE, 0) FOR_EACH_STREAM_WITH_INDEX(DECODE, 1) FOR_EACH_STREAM_WITH_INDEX(DECODE, 2) FOR_EACH_STREAM_WITH_INDEX(DECODE, 3) FOR_EACH_STREAM_WITH_INDEX(DECODE, 4) /* Reload r8 */ movq 0(%rsp), %r8 FOR_EACH_STREAM(RELOAD_BITS) cmp %op3, 48(%rsp) ja .L_4X2_loop_body jmp .L_4X2_compute_olimit #undef DECODE #undef RELOAD_BITS .L_4X2_exit: addq $8, %rsp /* Restore stack (oend & olimit) */ pop %rax /* oend0 */ pop %rax /* oend1 */ pop %rax /* oend2 */ pop %rax /* oend3 */ pop %rax /* ilowest */ pop %rax /* olimit */ pop %rax /* arg */ /* Save ip / op / bits */ movq %ip0, 0(%rax) movq %ip1, 8(%rax) movq %ip2, 16(%rax) movq %ip3, 24(%rax) movq %op0, 32(%rax) movq %op1, 40(%rax) movq %op2, 48(%rax) movq %op3, 56(%rax) movq %bits0, 64(%rax) movq %bits1, 72(%rax) movq %bits2, 80(%rax) movq %bits3, 88(%rax) /* Restore registers */ pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 pop %r9 pop %r8 pop %rdi pop %rsi pop %rbp pop %rdx pop %rcx pop %rbx pop %rax ret #endif
eightchip/Fast_Merge_Excel
3,647
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/x86_64.s
// Assembly code for making x86-64 syscalls. // // x86-64 syscall argument register ordering is the same as the x86-64 // userspace argument register ordering except that a3 is passed in r10 // instead of rcx, and the syscall number (nr) is passed in eax. // // outline.rs takes care of reordering the nr argument to the end for us, // so we only need to move nr into eax and move rcx into r10 as needed. // // x32 is not yet supported. .file "x86_64.s" .intel_syntax noprefix .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function rustix_syscall0_nr_last: .cfi_startproc mov eax,edi syscall ret .cfi_endproc .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function rustix_syscall1_nr_last: .cfi_startproc mov eax,esi syscall ret .cfi_endproc .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function rustix_syscall1_noreturn_nr_last: .cfi_startproc mov eax,esi syscall ud2 .cfi_endproc .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function rustix_syscall2_nr_last: .cfi_startproc mov eax,edx syscall ret .cfi_endproc .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function rustix_syscall3_nr_last: .cfi_startproc mov eax,ecx syscall ret .cfi_endproc .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function rustix_syscall4_nr_last: .cfi_startproc mov eax,r8d mov r10,rcx syscall ret .cfi_endproc .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function rustix_syscall5_nr_last: .cfi_startproc mov eax,r9d mov r10,rcx syscall ret .cfi_endproc .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function rustix_syscall6_nr_last: .cfi_startproc mov eax,DWORD PTR [rsp+0x8] mov r10,rcx syscall ret .cfi_endproc .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
3,423
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/riscv64.s
# Assembly code for making riscv64 syscalls. # # riscv64 syscall argument register ordering is the same as the riscv64 # userspace argument register ordering except that the syscall number # (nr) is passed in a7. # # nr_last.rs takes care of reordering the nr argument to the end for us, # so we only need to move nr into a7. .file "riscv64.s" .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function rustix_syscall0_nr_last: .cfi_startproc mv a7, a0 ecall ret .cfi_endproc .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function rustix_syscall1_nr_last: .cfi_startproc mv a7, a1 ecall ret .cfi_endproc .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function rustix_syscall1_noreturn_nr_last: .cfi_startproc mv a7, a1 ecall unimp .cfi_endproc .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function rustix_syscall2_nr_last: .cfi_startproc mv a7, a2 ecall ret .cfi_endproc .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function rustix_syscall3_nr_last: .cfi_startproc mv a7, a3 ecall ret .cfi_endproc .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function rustix_syscall4_nr_last: .cfi_startproc mv a7, a4 ecall ret .cfi_endproc .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function rustix_syscall5_nr_last: .cfi_startproc mv a7, a5 ecall ret .cfi_endproc .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 4 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function rustix_syscall6_nr_last: .cfi_startproc mv a7, a6 ecall ret .cfi_endproc .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
6,415
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/mips.s
# Assembly code for making mips64 syscalls. # # mips64 syscall argument register ordering is the same as the mips64 # userspace argument register ordering except that the syscall number # (nr) is passed in v0. # # outline.rs takes care of reordering the nr argument to the end for us, # so we only need to move nr into v0. .file "mips.s" .section .mdebug.abi32 .previous .abicalls .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall0_nr_last rustix_syscall0_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $4 syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall0_nr_last .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall1_nr_last rustix_syscall1_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $5 syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall1_nr_last .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall1_noreturn_nr_last rustix_syscall1_noreturn_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $5 syscall teq $zero, $zero .end rustix_syscall1_noreturn_nr_last .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall2_nr_last rustix_syscall2_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $6 syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall2_nr_last .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall3_nr_last rustix_syscall3_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $7 syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall3_nr_last .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall4_nr_last rustix_syscall4_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2, 16($sp) syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall4_nr_last .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall5_nr_last rustix_syscall5_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2, 20($sp) syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall5_nr_last .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall6_nr_last rustix_syscall6_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2, 24($sp) syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall6_nr_last .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .text.rustix_syscall7_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall7_nr_last .hidden rustix_syscall7_nr_last .type rustix_syscall7_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall7_nr_last rustix_syscall7_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2, 28($sp) syscall negu $8, $2 jr $31 movn $2, $8, $7 .end rustix_syscall7_nr_last .size rustix_syscall7_nr_last, .-rustix_syscall7_nr_last .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
3,979
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/arm.s
// Assembly code for making arm syscalls. // // arm syscall argument register ordering is the similar to the arm // userspace argument register ordering except that the syscall number // (nr) is passed in r7. // // nr_last.rs takes care of reordering the nr argument to the end for us, // so we only need to move nr into r7 and take care of r4 and r5 if needed. .file "arm.s" .arch armv5t .section .text.rustix_syscall0_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, %function rustix_syscall0_nr_last: .fnstart .cantunwind push {r7, lr} mov r7, r0 svc #0 pop {r7, pc} .fnend .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, %function rustix_syscall1_nr_last: .fnstart .cantunwind push {r7, lr} mov r7, r1 svc #0 pop {r7, pc} .fnend .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, %function rustix_syscall1_noreturn_nr_last: .fnstart .cantunwind // Don't save r7 and lr; this is noreturn, so we'll never restore them. mov r7, r1 svc #0 udf #16 // Trap instruction .fnend .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, %function rustix_syscall2_nr_last: .fnstart .cantunwind push {r7, lr} mov r7, r2 svc #0 pop {r7, pc} .fnend .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, %function rustix_syscall3_nr_last: .fnstart .cantunwind push {r7, lr} mov r7, r3 svc #0 pop {r7, pc} .fnend .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, %function rustix_syscall4_nr_last: .fnstart .cantunwind push {r7, lr} ldr r7, [sp, #8] svc #0 pop {r7, pc} .fnend .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, %function rustix_syscall5_nr_last: .fnstart .cantunwind push {r4, r7, r11, lr} ldr r7, [sp, #20] ldr r4, [sp, #16] svc #0 pop {r4, r7, r11, pc} .fnend .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",%progbits .p2align 4 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, %function rustix_syscall6_nr_last: .fnstart .cantunwind push {r4, r5, r7, lr} add r7, sp, #16 ldm r7, {r4, r5, r7} svc #0 pop {r4, r5, r7, pc} .fnend .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",%progbits
eightchip/Fast_Merge_Excel
12,301
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/x86.s
// Assembly code for making x86 syscalls. // // On x86 we use the "fastcall" convention which passes the first two // arguments in ecx and edx. Outline.rs reorders the arguments to put // a1 and a2 in those registers so they we don't have to move them to // set up the kernel convention. // // "fastcall" expects callee to pop argument stack space, so we use // `ret imm` instructions to clean up the stack. We don't need callee // cleanup per se, it just comes along with using "fastcall". .file "x86.s" .intel_syntax noprefix .section .text.rustix_indirect_syscall0_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall0_nr_last_fastcall .hidden rustix_indirect_syscall0_nr_last_fastcall .type rustix_indirect_syscall0_nr_last_fastcall, @function rustix_indirect_syscall0_nr_last_fastcall: .cfi_startproc mov eax,ecx call edx ret .cfi_endproc .size rustix_indirect_syscall0_nr_last_fastcall, .-rustix_indirect_syscall0_nr_last_fastcall .section .text.rustix_indirect_syscall1_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall1_nr_last_fastcall .hidden rustix_indirect_syscall1_nr_last_fastcall .type rustix_indirect_syscall1_nr_last_fastcall, @function rustix_indirect_syscall1_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov ebx,ecx mov eax,edx call DWORD PTR [esp+0x8] pop ebx .cfi_def_cfa_offset 4 ret 0x4 .cfi_endproc .size rustix_indirect_syscall1_nr_last_fastcall, .-rustix_indirect_syscall1_nr_last_fastcall .section .text.rustix_indirect_syscall1_noreturn_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall1_noreturn_nr_last_fastcall .hidden rustix_indirect_syscall1_noreturn_nr_last_fastcall .type rustix_indirect_syscall1_noreturn_nr_last_fastcall, @function rustix_indirect_syscall1_noreturn_nr_last_fastcall: .cfi_startproc mov ebx,ecx mov eax,edx call DWORD PTR [esp+0x4] ud2 .cfi_endproc .size rustix_indirect_syscall1_noreturn_nr_last_fastcall, .-rustix_indirect_syscall1_noreturn_nr_last_fastcall .section .text.rustix_indirect_syscall2_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall2_nr_last_fastcall .hidden rustix_indirect_syscall2_nr_last_fastcall .type rustix_indirect_syscall2_nr_last_fastcall, @function rustix_indirect_syscall2_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov ebx,edx mov eax,DWORD PTR [esp+0x8] call DWORD PTR [esp+0xc] pop ebx .cfi_def_cfa_offset 4 ret 0x8 .cfi_endproc .size rustix_indirect_syscall2_nr_last_fastcall, .-rustix_indirect_syscall2_nr_last_fastcall .section .text.rustix_indirect_syscall3_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall3_nr_last_fastcall .hidden rustix_indirect_syscall3_nr_last_fastcall .type rustix_indirect_syscall3_nr_last_fastcall, @function rustix_indirect_syscall3_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0x8] mov eax,DWORD PTR [esp+0xc] call DWORD PTR [esp+0x10] pop ebx .cfi_def_cfa_offset 4 ret 0xc .cfi_endproc .size rustix_indirect_syscall3_nr_last_fastcall, .-rustix_indirect_syscall3_nr_last_fastcall .section .text.rustix_indirect_syscall4_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall4_nr_last_fastcall .hidden rustix_indirect_syscall4_nr_last_fastcall .type rustix_indirect_syscall4_nr_last_fastcall, @function rustix_indirect_syscall4_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 push esi .cfi_def_cfa_offset 12 .cfi_offset esi, -12 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0xc] mov esi,DWORD PTR [esp+0x10] mov eax,DWORD PTR [esp+0x14] call DWORD PTR [esp+0x18] pop esi .cfi_def_cfa_offset 8 pop ebx .cfi_def_cfa_offset 4 ret 0x10 .cfi_endproc .size rustix_indirect_syscall4_nr_last_fastcall, .-rustix_indirect_syscall4_nr_last_fastcall .section .text.rustix_indirect_syscall5_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall5_nr_last_fastcall .hidden rustix_indirect_syscall5_nr_last_fastcall .type rustix_indirect_syscall5_nr_last_fastcall, @function rustix_indirect_syscall5_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 push esi .cfi_def_cfa_offset 12 push edi .cfi_def_cfa_offset 16 .cfi_offset edi, -16 .cfi_offset esi, -12 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0x10] mov esi,DWORD PTR [esp+0x14] mov edi,DWORD PTR [esp+0x18] mov eax,DWORD PTR [esp+0x1c] call DWORD PTR [esp+0x20] pop edi .cfi_def_cfa_offset 12 pop esi .cfi_def_cfa_offset 8 pop ebx .cfi_def_cfa_offset 4 ret 0x14 .cfi_endproc .size rustix_indirect_syscall5_nr_last_fastcall, .-rustix_indirect_syscall5_nr_last_fastcall .section .text.rustix_indirect_syscall6_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_indirect_syscall6_nr_last_fastcall .hidden rustix_indirect_syscall6_nr_last_fastcall .type rustix_indirect_syscall6_nr_last_fastcall, @function rustix_indirect_syscall6_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 push esi .cfi_def_cfa_offset 12 push edi .cfi_def_cfa_offset 16 push ebp .cfi_def_cfa_offset 20 .cfi_offset ebp, -20 .cfi_offset edi, -16 .cfi_offset esi, -12 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0x14] mov esi,DWORD PTR [esp+0x18] mov edi,DWORD PTR [esp+0x1c] mov ebp,DWORD PTR [esp+0x20] mov eax,DWORD PTR [esp+0x24] call DWORD PTR [esp+0x28] pop ebp .cfi_def_cfa_offset 16 pop edi .cfi_def_cfa_offset 12 pop esi .cfi_def_cfa_offset 8 pop ebx .cfi_def_cfa_offset 4 ret 0x18 .cfi_endproc .size rustix_indirect_syscall6_nr_last_fastcall, .-rustix_indirect_syscall6_nr_last_fastcall .section .text.rustix_syscall0_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall0_nr_last_fastcall .hidden rustix_syscall0_nr_last_fastcall .type rustix_syscall0_nr_last_fastcall, @function rustix_syscall0_nr_last_fastcall: .cfi_startproc mov eax,ecx int 0x80 ret .cfi_endproc .size rustix_syscall0_nr_last_fastcall, .-rustix_syscall0_nr_last_fastcall .section .text.rustix_syscall1_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall1_nr_last_fastcall .hidden rustix_syscall1_nr_last_fastcall .type rustix_syscall1_nr_last_fastcall, @function rustix_syscall1_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov eax,edx mov ebx,ecx int 0x80 pop ebx .cfi_def_cfa_offset 4 ret .cfi_endproc .size rustix_syscall1_nr_last_fastcall, .-rustix_syscall1_nr_last_fastcall .section .text.rustix_syscall1_noreturn_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall1_noreturn_nr_last_fastcall .hidden rustix_syscall1_noreturn_nr_last_fastcall .type rustix_syscall1_noreturn_nr_last_fastcall, @function rustix_syscall1_noreturn_nr_last_fastcall: .cfi_startproc mov eax,edx mov ebx,ecx int 0x80 ud2 .cfi_endproc .size rustix_syscall1_noreturn_nr_last_fastcall, .-rustix_syscall1_noreturn_nr_last_fastcall .section .text.rustix_syscall2_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall2_nr_last_fastcall .hidden rustix_syscall2_nr_last_fastcall .type rustix_syscall2_nr_last_fastcall, @function rustix_syscall2_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov ebx,edx mov eax,DWORD PTR [esp+0x8] int 0x80 pop ebx .cfi_def_cfa_offset 4 ret 0x4 .cfi_endproc .size rustix_syscall2_nr_last_fastcall, .-rustix_syscall2_nr_last_fastcall .section .text.rustix_syscall3_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall3_nr_last_fastcall .hidden rustix_syscall3_nr_last_fastcall .type rustix_syscall3_nr_last_fastcall, @function rustix_syscall3_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0x8] mov eax,DWORD PTR [esp+0xc] int 0x80 pop ebx .cfi_def_cfa_offset 4 ret 0x8 .cfi_endproc .size rustix_syscall3_nr_last_fastcall, .-rustix_syscall3_nr_last_fastcall .section .text.rustix_syscall4_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall4_nr_last_fastcall .hidden rustix_syscall4_nr_last_fastcall .type rustix_syscall4_nr_last_fastcall, @function rustix_syscall4_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 push esi .cfi_def_cfa_offset 12 .cfi_offset esi, -12 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0xc] mov esi,DWORD PTR [esp+0x10] mov eax,DWORD PTR [esp+0x14] int 0x80 pop esi .cfi_def_cfa_offset 8 pop ebx .cfi_def_cfa_offset 4 ret 0xc .cfi_endproc .size rustix_syscall4_nr_last_fastcall, .-rustix_syscall4_nr_last_fastcall .section .text.rustix_syscall5_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall5_nr_last_fastcall .hidden rustix_syscall5_nr_last_fastcall .type rustix_syscall5_nr_last_fastcall, @function rustix_syscall5_nr_last_fastcall: .cfi_startproc push ebx .cfi_def_cfa_offset 8 push edi .cfi_def_cfa_offset 12 push esi .cfi_def_cfa_offset 16 .cfi_offset esi, -16 .cfi_offset edi, -12 .cfi_offset ebx, -8 mov ebx,DWORD PTR [esp+0x10] mov esi,DWORD PTR [esp+0x14] mov edi,DWORD PTR [esp+0x18] mov eax,DWORD PTR [esp+0x1c] int 0x80 pop esi .cfi_def_cfa_offset 12 pop edi .cfi_def_cfa_offset 8 pop ebx .cfi_def_cfa_offset 4 ret 0x10 .cfi_endproc .size rustix_syscall5_nr_last_fastcall, .-rustix_syscall5_nr_last_fastcall .section .text.rustix_syscall6_nr_last_fastcall,"ax",@progbits .p2align 4 .weak rustix_syscall6_nr_last_fastcall .hidden rustix_syscall6_nr_last_fastcall .type rustix_syscall6_nr_last_fastcall, @function rustix_syscall6_nr_last_fastcall: .cfi_startproc push ebp .cfi_def_cfa_offset 8 push ebx .cfi_def_cfa_offset 12 push edi .cfi_def_cfa_offset 16 push esi .cfi_def_cfa_offset 20 .cfi_offset esi, -20 .cfi_offset edi, -16 .cfi_offset ebx, -12 .cfi_offset ebp, -8 mov ebx,DWORD PTR [esp+0x14] mov esi,DWORD PTR [esp+0x18] mov edi,DWORD PTR [esp+0x1c] mov ebp,DWORD PTR [esp+0x20] mov eax,DWORD PTR [esp+0x24] int 0x80 pop esi .cfi_def_cfa_offset 16 pop edi .cfi_def_cfa_offset 12 pop ebx .cfi_def_cfa_offset 8 pop ebp .cfi_def_cfa_offset 4 ret 0x14 .cfi_endproc .size rustix_syscall6_nr_last_fastcall, .-rustix_syscall6_nr_last_fastcall .section .text.rustix_int_0x80,"ax",@progbits .p2align 4 .weak rustix_int_0x80 .hidden rustix_int_0x80 .type rustix_int_0x80, @function rustix_int_0x80: .cfi_startproc int 0x80 ret .cfi_endproc .size rustix_int_0x80, .-rustix_int_0x80 .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
5,751
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/mips64.s
# Assembly code for making mips64 syscalls. # # mips64 syscall argument register ordering is the same as the mips64 # userspace argument register ordering except that the syscall number # (nr) is passed in v0. # # outline.rs takes care of reordering the nr argument to the end for us, # so we only need to move nr into v0. .file "mips64.s" .section .mdebug.abi64 .previous .abicalls .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall0_nr_last rustix_syscall0_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $4 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall0_nr_last .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall1_nr_last rustix_syscall1_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $5 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall1_nr_last .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall1_noreturn_nr_last rustix_syscall1_noreturn_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $5 syscall teq $0, $0 .end rustix_syscall1_noreturn_nr_last .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall2_nr_last rustix_syscall2_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $6 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall2_nr_last .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall3_nr_last rustix_syscall3_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $7 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall3_nr_last .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall4_nr_last rustix_syscall4_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $8 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall4_nr_last .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall5_nr_last rustix_syscall5_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $9 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall5_nr_last .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function .set nomips16 .set nomicromips .ent rustix_syscall6_nr_last rustix_syscall6_nr_last: .frame $sp,0,$31 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro move $2, $10 syscall dnegu $12, $2 jr $31 movn $2, $12, $7 .end rustix_syscall6_nr_last .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
3,525
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/aarch64.s
// Assembly code for making aarch64 syscalls. // // aarch64 syscall argument register ordering is the same as the aarch64 // userspace argument register ordering except that the syscall number // (nr) is passed in w8. // // outline.rs takes care of reordering the nr argument to the end for us, // so we only need to move nr into w8. // // arm64-ilp32 is not yet supported. .file "aarch64.s" .arch armv8-a .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function rustix_syscall0_nr_last: .cfi_startproc mov w8, w0 svc #0 ret .cfi_endproc .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function rustix_syscall1_nr_last: .cfi_startproc mov w8, w1 svc #0 ret .cfi_endproc .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function rustix_syscall1_noreturn_nr_last: .cfi_startproc mov w8, w1 svc #0 brk #0x1 .cfi_endproc .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function rustix_syscall2_nr_last: .cfi_startproc mov w8, w2 svc #0 ret .cfi_endproc .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function rustix_syscall3_nr_last: .cfi_startproc mov w8, w3 svc #0 ret .cfi_endproc .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function rustix_syscall4_nr_last: .cfi_startproc mov w8, w4 svc #0 ret .cfi_endproc .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function rustix_syscall5_nr_last: .cfi_startproc mov w8, w5 svc #0 ret .cfi_endproc .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function rustix_syscall6_nr_last: .cfi_startproc mov w8, w6 svc #0 ret .cfi_endproc .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",@progbits
eightchip/Fast_Merge_Excel
3,592
umya-spreadsheet/rustix-0.37.28/src/backend/linux_raw/arch/outline/powerpc64.s
# Assembly code for making powerpc64le syscalls. # # powerpc64le syscall argument register ordering is the same as the # powerpc64le userspace argument register ordering except that the syscall # number (nr) is passed in r0. # # outline.rs takes care of reordering the nr argument to the end for us, # so we only need to move nr into r0. .file "powerpc64le.s" .machine power8 .abiversion 2 .section .text.rustix_syscall0_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall0_nr_last .hidden rustix_syscall0_nr_last .type rustix_syscall0_nr_last, @function rustix_syscall0_nr_last: .cfi_startproc mr 0, 3 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall0_nr_last, .-rustix_syscall0_nr_last .section .text.rustix_syscall1_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_nr_last .hidden rustix_syscall1_nr_last .type rustix_syscall1_nr_last, @function rustix_syscall1_nr_last: .cfi_startproc mr 0, 4 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall1_nr_last, .-rustix_syscall1_nr_last .section .text.rustix_syscall1_noreturn_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall1_noreturn_nr_last .hidden rustix_syscall1_noreturn_nr_last .type rustix_syscall1_noreturn_nr_last, @function rustix_syscall1_noreturn_nr_last: .cfi_startproc mr 0, 4 sc trap .cfi_endproc .size rustix_syscall1_noreturn_nr_last, .-rustix_syscall1_noreturn_nr_last .section .text.rustix_syscall2_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall2_nr_last .hidden rustix_syscall2_nr_last .type rustix_syscall2_nr_last, @function rustix_syscall2_nr_last: .cfi_startproc mr 0, 5 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall2_nr_last, .-rustix_syscall2_nr_last .section .text.rustix_syscall3_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall3_nr_last .hidden rustix_syscall3_nr_last .type rustix_syscall3_nr_last, @function rustix_syscall3_nr_last: .cfi_startproc mr 0, 6 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall3_nr_last, .-rustix_syscall3_nr_last .section .text.rustix_syscall4_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall4_nr_last .hidden rustix_syscall4_nr_last .type rustix_syscall4_nr_last, @function rustix_syscall4_nr_last: .cfi_startproc mr 0, 7 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall4_nr_last, .-rustix_syscall4_nr_last .section .text.rustix_syscall5_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall5_nr_last .hidden rustix_syscall5_nr_last .type rustix_syscall5_nr_last, @function rustix_syscall5_nr_last: .cfi_startproc mr 0, 8 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall5_nr_last, .-rustix_syscall5_nr_last .section .text.rustix_syscall6_nr_last,"ax",@progbits .p2align 2 .weak rustix_syscall6_nr_last .hidden rustix_syscall6_nr_last .type rustix_syscall6_nr_last, @function rustix_syscall6_nr_last: .cfi_startproc mr 0, 9 sc bnslr neg 3, 3 blr .cfi_endproc .size rustix_syscall6_nr_last, .-rustix_syscall6_nr_last .section .note.GNU-stack,"",@progbits
el-ev/rvos
49
user_c/entry.S
.section .text .globl _start _start: j main
el-ev/rvos
2,168
kernel/src/trap/trap.S
.macro SAVE reg, off sd \reg, \off*8(a0) .endm .macro LOAD reg, off ld \reg, \off*8(a0) .endm .globl _kernel_to_user .type _kernel_to_user, @function .align 3 _kernel_to_user: SAVE s0, 34 SAVE s1, 35 SAVE s2, 36 SAVE s3, 37 SAVE s4, 38 SAVE s5, 39 SAVE s6, 40 SAVE s7, 41 SAVE s8, 42 SAVE s9, 43 SAVE s10, 44 SAVE s11, 45 SAVE ra, 46 SAVE sp, 47 SAVE tp, 48 csrw sscratch, a0 LOAD t0, 32 csrw scause, t0 LOAD t0, 33 csrw sepc, t0 LOAD x1, 1 LOAD x2, 2 LOAD x3, 3 LOAD x4, 4 LOAD x5, 5 LOAD x6, 6 LOAD x7, 7 LOAD x8, 8 LOAD x9, 9 // LOAD x11, 11 LOAD x12, 12 LOAD x13, 13 LOAD x14, 14 LOAD x15, 15 LOAD x16, 16 LOAD x17, 17 LOAD x18, 18 LOAD x19, 19 LOAD x20, 20 LOAD x21, 21 LOAD x22, 22 LOAD x23, 23 LOAD x24, 24 LOAD x25, 25 LOAD x26, 26 LOAD x27, 27 LOAD x28, 28 LOAD x29, 29 LOAD x30, 30 LOAD x31, 31 LOAD x10, 10 // x10 is a0 sret .size _kernel_to_user, . - _kernel_to_user .globl _user_to_kernel_trap .type _user_to_kernel_trap, @function .align 3 _user_to_kernel_trap: csrrw a0, sscratch, a0 SAVE x1, 1 SAVE x2, 2 SAVE x3, 3 SAVE x4, 4 SAVE x5, 5 SAVE x6, 6 SAVE x7, 7 SAVE x8, 8 SAVE x9, 9 csrr x9, sscratch SAVE x9, 10 SAVE x11, 11 SAVE x12, 12 SAVE x13, 13 SAVE x14, 14 SAVE x15, 15 SAVE x16, 16 SAVE x17, 17 SAVE x18, 18 SAVE x19, 19 SAVE x20, 20 SAVE x21, 21 SAVE x22, 22 SAVE x23, 23 SAVE x24, 24 SAVE x25, 25 SAVE x26, 26 SAVE x27, 27 SAVE x28, 28 SAVE x29, 29 SAVE x30, 30 SAVE x31, 31 csrr t0, scause SAVE t0, 32 csrr t0, sepc SAVE t0, 33 LOAD s0, 34 LOAD s1, 35 LOAD s2, 36 LOAD s3, 37 LOAD s4, 38 LOAD s5, 39 LOAD s6, 40 LOAD s7, 41 LOAD s8, 42 LOAD s9, 43 LOAD s10, 44 LOAD s11, 45 LOAD ra, 46 LOAD sp, 47 LOAD tp, 48 ret .size _user_to_kernel_trap, . - _user_to_kernel_trap
EmbeddedKC/RustEKC
2,458
tools/fw_jump/start.S
/* * FreeRTOS V202212.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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. * * https://www.FreeRTOS.org * https://www.github.com/FreeRTOS * */ #include "param.h" .section .init .globl _start _start: // Continue primary hart MOV x0, #0 MOV x1, #PRIM_HART CMP x0, x1 B.NE secondary // Primary hart ADR x28, _stack_top MOV sp, x28 B down_el1 ////////////////////////////////// // if exception level higher than EL1, down to EL1 down_el3: MOV x0, #0x3C0 MSR spsr_el3, x0 ADR x0, down_el2 MSR elr_el3, x0 eret down_el2: MOV x0, #0x3C0 MSR spsr_el2, x0 ADR x0, down_el1 MSR elr_el2, x0 eret down_el1: ////////////////////////////////// // Load data section ADR x0, _data_lma ADR x1, _data ADR x2, _edata CMP x1, x2 B.GE while1_end while1: LOAD x28, [x0] STOR x28, [x1] ADD x0, x0, REGSIZE ADD x1, x1, REGSIZE CMP x1, x2 B.LT while1 while1_end: ////////////////////////////////// ////////////////////////////////// // Clear bss section ADR x0, _bss ADR x1, _ebss CMP x0, x1 B.GE while2_end while2: STOR XZR, [x0] ADD x0, x0, REGSIZE CMP x0, x1 B.LE while2 while2_end: ////////////////////////////////// // argc, argv, envp is 0 MOV x0, #0 MOV x1, #0 MOV x2, #0 B main deadlock: MOV x0, #0x233 B deadlock secondary: // TODO: Multicore is not supported MOV x0, #0x665 B secondary
EmbeddedKC/RustEKC
3,326
codes/arch/allwinner_D1H/src/nk_gate.S
.altmacro .macro SAVE_REGISTER n sd x\n, \n*8(sp) .endm .macro LOAD_REGISTER n ld x\n, \n*8(sp) .endm .macro SAVE_REGISTER2 n o sd x\n, \o*8+\n*8(x28) .endm .macro LOAD_REGISTER2 n o ld x\n, \o*8+\n*8(x28) .endm .section .text.nktrampoline .globl nk_entry # 入参 x10 nkapi handler # 入参 x11~x15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_entry: # let x28 to be PROXYCONTEXT PROXYCONTEXT x28 ld x30, 91*8(x28) # nkapi_level bne x30, zero, nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). # switch sie to disable interrupt PROXYCONTEXT x28 # load OS's sie from proxy to x31 csrr x31, sie # write MMK's sie ld x29, 66*8(x28) csrw sie, x29 addi x30, x30, 1 sd x30, 91*8(x28) # api level add 1 when entry # load MMK's satp ld x29, 64*8(x28) csrw satp, x29 # store OS's sie from x31 to proxy sd x31, 67*8(x28) # store all outer kernel registers to proxy, 包括栈指针 .set n, 1 .rept 27 SAVE_REGISTER2 %n 32 .set n, n+1 .endr # load nk sp ld sp, 2*8(x28) # let x28 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE x28 # the handler in nkcall vec: APITABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save ret value from function handler call sd x10, (32+10)*8(x28) sd x11, (32+11)*8(x28) # exit j nk_exit .globl nk_bypass nk_bypass: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 addi sp,sp,-30*8 # store all nk registers .set n, 1 .rept 28 SAVE_REGISTER %n .set n, n+1 .endr MMKAPI_TABLE x28 # the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # keep the retval mv x29, x10 mv x30, x11 # load all nk registers .set n, 1 .rept 28 LOAD_REGISTER %n .set n, n+1 .endr addi sp,sp,30*8 # restore the retval mv x10, x29 mv x11, x30 jr x1 .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save nk sp sd sp, 2*8(x28) ld x30, 91*8(x28) # nkapi level addi x30, x30, -1 sd x30, 91*8(x28) # api level remove 1 when exit # load OS's satp ld x29, 65*8(x28) csrw satp, x29 # enable interrupt ld x31, 67*8(x28) # Load OS's sie csrw sie, x31 .set n, 1 .rept 27 LOAD_REGISTER2 %n 32 .set n, n+1 .endr # jump back, according to outer kernel's ra jr x1
EmbeddedKC/RustEKC
268
codes/arch/allwinner_D1H/src/top.S
.altmacro .macro PROXYCONTEXT n li \n, -0x3000 .endm .altmacro .macro MMKAPI_TABLE n li \n, -0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n li \n, -0x3000+0x400 .endm .include "src/nk_gate.S" .include "src/trap/trap.S" .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
3,824
codes/arch/allwinner_D1H/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .macro ENTRY_GATE n li \n, -0x1000 .endm .macro TRAP_CONTEXT n li \n, 0xffffe sll \n, \n, 12 .endm # note that it break the context of t0~t6. .macro REG_INFO mv x31, x17 mv x30, x10 li x17, 9 csrr t0, sscratch csrr t1, scause csrr t2, stval csrr t3, sepc ecall mv x17, x31 mv x10, x30 .endm .section .text.trampoline .globl __alltraps .globl __delegate .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # 第一次进入这段汇编之前,是先进入了下面的restore汇编 # 所以这里进来的之前,sscratch的值就是TRAP_CONTEXT的值,sp是用户栈的位置,因为pc指的指令触发了trap # CPU直接根据stvec的值跳转了进来,sp没有被中途改变 # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose registers sd x1, 1*8(sp) # skip sp(x2), we will save it later sd x3, 3*8(sp) # save x4~x31 .set n, 4 .rept 28 SAVE_GP %n .set n, n+1 .endr # read user stack from sscratch and save it in TrapContext csrr t2, sscratch sd t2, 2*8(sp) # we can use t0/t1/t2 freely, because they have been saved in TrapContext csrr t0, sstatus csrr t1, sepc sd t0, 32*8(sp) sd t1, 33*8(sp) # fsd fs1, 34*8(sp) # .half 0xba22 # .half 0xbe26 # load trap_handler into t1 # ld t1, 35*8(sp) # let a0 be trap context. mv a0, sp # move to kernel_sp ld sp, 34*8(sp) # here if scause is not syscall, delegate. csrr t3, scause li t4, 8 bne t3, t4, __delegate # here if syscall id is smaller than 0x400, delegate. ld t3, 17*8(a0) li t4, 0x400 blt t3, t4, __delegate # nkapi call. # mv a0, a0 # param0: ctx: *TrapContext li a7, 0 # NKAPI_TRAP_HANDLE = 0 # t3 = nk_trampoline ENTRY_GATE t3 jalr x1, t3, 0 # back to user. j __restore __delegate: # change stvec to TRAMPOLINE + ktrap - alltraps la x29, __alltraps la x30, _ktrap sub x30, x30, x29 li x29, -0x2000 add x29, x29, x30 csrw stvec, x29 CONFIG_DATA x28 # x29 is user handler ld x29, 0*8(x28) jalr x1, x29, 0 CONFIG_DATA x28 # x29 is signal handler ld x29, 2*8(x28) jalr x1, x29, 0 # jump back j __restore __restore: li x28, 0xffffe sll a0, x28, 12 # a0 = 0xffffe000, trap context. # 所有用户的trapcontext都保存在同一个虚拟地址位置 TRAP_CONTEXT csrw sscratch, a0 mv sp, a0 # 把a0的值写入sp # restore sstatus/sepc ld t0, 32*8(sp) # 按照存储规则去加载trap context中的值 ld t1, 33*8(sp) csrw sstatus, t0 csrw sepc, t1 li x28, 0 li x30, 0x3000 sub x28, x28, x30 # change stvec to user trap(TRAMPOLINE) li x29, -0x2000 csrw stvec, x29 # restore general purpose registers except x0/sp/tp ld x1, 1*8(sp) ld x3, 3*8(sp) .set n, 4 .rept 28 LOAD_GP %n .set n, n+1 .endr # back to user stack ld sp, 2*8(sp) # restore sp at last. sret # 跳转到sepc的位置继续执行 .globl _kreturn .globl _ktrap .align 4 _ktrap: addi sp, sp, -256 # save the registers sd ra, 1*8(sp) # sd sp, 2*8(sp) sd gp, 3*8(sp) # sd tp, 4*8(sp) .set n, 5 .rept 27 SAVE_GP %n .set n, n+1 .endr CONFIG_DATA x28 # x29 is ktrap handler ld x29, 1*8(x28) # ld x29, 92*8(x28) jalr x1, x29, 0 sd x10, 10*8(sp) sd x11, 11*8(sp) j _kreturn _kreturn: # restore registers ld ra, 1*8(sp) # ld sp, 2*8(sp) ld gp, 3*8(sp) # not this, in case we moved CPUs: ld tp, 24(sp) .set n, 5 .rept 27 LOAD_GP %n .set n, n+1 .endr addi sp, sp, 256 # return to whatever we were doing in the kernel sret
EmbeddedKC/RustEKC
170
codes/arch/allwinner_D1H/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
EmbeddedKC/RustEKC
1,583
codes/arch/qemu_virt_armv7/src/trap/trap.S
.macro INVALID_EXCP, kind, source .p2align 7 LDR r8, =-0x2200 MOV sp, r8 SAVE_REGS mov r0, sp mov r1, #\kind mov r2, #\source bl invalid_exception # bl: branch to addr, and save pc+4 to lr(x30). like jal. b .Lexception_return .endm .macro HANDLE_SYNC .p2align 7 SAVE_REGS mov r0, sp bl handle_sync_exception b .Lexception_return .endm .macro HANDLE_IRQ .p2align 7 SAVE_REGS mov r0, sp bl handle_irq_exception b .Lexception_return .endm .macro MMK_HANDLER, kind SAVE_REGS mov r0, sp mov r1, #\kind bl mmk_trap_handler RESTORE_REGS SUBS PC, LR, #4 .endm .p2align 11 .globl mmk_exception_vector_base mmk_exception_vector_base: b reset_handler // 0x00: Reset b undefined_handler // 0x04: Undefined Instruction b svc_handler // 0x08: Supervisor Call (SVC) b prefetch_abort_handler // 0x0C: Prefetch Abort b data_abort_handler // 0x10: Data Abort b reserved_handler // 0x14: Reserved b irq_handler // 0x18: IRQ b fiq_handler // 0x1C: FIQ // 以下是各个异常的处理函数(你可以定义为具体功能) reset_handler: MMK_HANDLER 0 b . undefined_handler: MMK_HANDLER 1 b . svc_handler: MMK_HANDLER 2 b . prefetch_abort_handler: MMK_HANDLER 3 b . data_abort_handler: MMK_HANDLER 4 b . reserved_handler: MMK_HANDLER 5 b . irq_handler: MMK_HANDLER 6 b . fiq_handler: MMK_HANDLER 7 b .
EmbeddedKC/RustEKC
170
codes/arch/qemu_virt_armv7/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
EmbeddedKC/RustEKC
1,832
codes/arch/qemu_virt_armv7/src/asm/entry.S
.equ MODE_USR, 0x10 // User mode .equ MODE_FIQ, 0x11 // FIQ mode .equ MODE_IRQ, 0x12 // IRQ mode .equ MODE_SVC, 0x13 // Supervisor mode (系统调用进入内核的模式) .equ MODE_ABT, 0x17 // Abort mode .equ MODE_UND, 0x1B // Undefined instruction mode .equ MODE_SYS, 0x1F // System mode (特权级的用户代码,常用于内核运行) .section .text._start .globl _start _start: cpsid if # mem access controller. LDR R0, =0xFFFFFFFF MCR p15, 0, R0, c3, c0, 0 mrs r0, cpsr bic r0, r0, #0x1F orr r0, r0, #MODE_SVC msr CPSR_c, r0 ldr sp, =svc_stack_top bic r0, r0, #0x1F orr r0, r0, #MODE_IRQ msr CPSR_c, r0 ldr sp, =irq_stack_top bic r0, r0, #0x1F orr r0, r0, #MODE_ABT msr CPSR_c, r0 ldr sp, =abt_stack_top bic r0, r0, #0x1F orr r0, r0, #MODE_UND msr CPSR_c, r0 ldr sp, =und_stack_top bic r0, r0, #0x1F orr r0, r0, #MODE_FIQ msr CPSR_c, r0 ldr sp, =fiq_stack_top bic r0, r0, #0x1F orr r0, r0, #MODE_SYS msr CPSR_c, r0 ldr sp, =sys_stack_top //switch to SVC. bic r0, r0, #0x1F orr r0, r0, #MODE_SVC msr CPSR_c, r0 ldr sp, =boot_stack_top MOV R0, #0 mov r11, sp bl estart .section .bss.stack .align 3 .equ STACK_SIZE, 0x1000 // 每种模式 4KB 栈空间 .global __stack_start __stack_start: .space STACK_SIZE .global fiq_stack_top fiq_stack_top: .space STACK_SIZE .global irq_stack_top irq_stack_top: .space STACK_SIZE .global svc_stack_top svc_stack_top: .space STACK_SIZE .global abt_stack_top abt_stack_top: .space STACK_SIZE .global und_stack_top und_stack_top: .space STACK_SIZE .global sys_stack_top sys_stack_top: .space STACK_SIZE
EmbeddedKC/RustEKC
3,448
codes/arch/qemu_virt_armv7/src/asm/nk_gate.S
.section .text.nktrampoline .globl nk_gate # 入参 r10 nkapi handler # 入参 r11~r15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_gate: STMFD SP!, {R10-R12} # let r10 to be PROXYCONTEXT PROXYCONTEXT r10 LDR r11, [r10, #91*4] # nkapi_level MOV r10, #0 CMP r11, r10 LDMFD SP!, {R10-R12} // fffff010 BNE nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). nk_entry: # let r10 to be PROXYCONTEXT PROXYCONTEXT r10 # load OS's CPSR (intr) from proxy to r7, keep r7 not changed! MRS r7, CPSR # disable interrupts BL disable_intr ADD r9, r9, #1 STR r9, [r8, #PROXY_NKAPI_LEVEL] # api level add 1 when entry # use MMK's satp LDR r0, [r8, #PROXY_EKC_SATP] BL write_root_pt # store OS's CPSR (intr) from r7 to proxy STR r7, [r8, #PROXY_OS_CPSR] # store all outer kernel registers to proxy, 包括栈指针 PROXYCONTEXT r7 # addr=0xfffffffffffff038 ADD r9, r7, #(PROXY_OS_REGS) SAVE_CTX_TO_ADDR r9 # this macro would break r8 and r9 # load nk sp LDR r9, [r7, #PROXY_EKC_SP] # addr=0xfffffffffffff0c8 MOV SP, r9 # let r8 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE r8 # addr=0xfffffffffffff0d0 # the handler in nkcall vec: APITABLE + nk_call_num*8 LSL r7, r7, #3 ADD r8, r8, r7 LDR r8, [r8, #0] # todo: LDR r8, [r8, r7] # handler function call BLX r8 # addr=0xfffffffffffff0e0 # let r8 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT r8 # save ret value from function handler call STR r0, [r8, #PROXY_OS_REGS] STR r1, [r8, #PROXY_OS_REGS+4] # exit B nk_exit .globl nk_bypass nk_bypass: SAVE_REGS MMKAPI_TABLE r8 //the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 //MMK API always use 8 byte per vector. LSL r7, r7, #3 ADD r8, r8, r7 LDR r8, [r8, #0] //0xfffff0d4 # handler function call BLX r8 //update the return value //Note: stack struct = CPSR, lr, r0, r1...r12 STR r0, [sp, #8] STR r1, [sp, #8] RESTORE_REGS //0xfffff0ec Note============Here the LR is not the correct LR. Find why. BX LR .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let r8 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT r8 # save nk sp MOV r9, SP STR r9, [r8, #PROXY_EKC_SP] LDR r9, [r8, #PROXY_NKAPI_LEVEL] # nkapi level ADD r9, r9, #-1 STR r9, [r8, #PROXY_NKAPI_LEVEL] # api level remove 1 when exit # load OS's satp LDR r0, [r8, #PROXY_OS_SATP] BL write_root_pt # tlbi alle1 # dsb sy # isb # enable interrupt (Load OS's CPSR) LDR r7, [r8, #PROXY_OS_CPSR] MSR cpsr, r7 # BL enable_intr # load all outer kernel registers from proxy, 包括栈指针 PROXYCONTEXT r9 ADD r9, r9, #PROXY_OS_REGS LOAD_CTX_FROM_ADDR r9 # addr = -0xd38 # jump back, according to outer kernel's ra BX lr
EmbeddedKC/RustEKC
1,681
codes/arch/qemu_virt_armv7/src/asm/top.S
#define USIZE_WIDTH 4 #define USIZE_BIT 2 // PROXYCONTEXT. .equ PROXY_EKC_REGS, (0*USIZE_WIDTH) .equ PROXY_EKC_SP, (13*USIZE_WIDTH) .equ PROXY_OS_REGS, (32*USIZE_WIDTH) .equ PROXY_OS_SP, ((32+13)*USIZE_WIDTH) .equ PROXY_EKC_SATP, (64*USIZE_WIDTH) .equ PROXY_OS_SATP, (65*USIZE_WIDTH) .equ PROXY_EKC_CPSR, (66*USIZE_WIDTH) .equ PROXY_OS_CPSR, (67*USIZE_WIDTH) .equ PROXY_NKAPI_LEVEL, (91*USIZE_WIDTH) //.equ PROXY_OS_REGS, 32*USIZE_WIDTH .altmacro .macro PROXYCONTEXT n LDR \n, =-0x3000 .endm .altmacro .macro MMKAPI_TABLE n LDR \n, =-0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n LDR \n, =-0x3000+0x400 .endm .altmacro .macro SAVE_STACK z s STR r\z, [\s, #\z*USIZE_WIDTH] .endm .macro LOAD_STACK z s LDR r\z, [\s, #\z*USIZE_WIDTH] .endm .macro SAVE_REGS STMFD SP!, {R0-R12} mrs r10, CPSR STMFD SP!, {r10, r14} .endm .macro RESTORE_REGS LDMFD SP!, {r10, r14} msr CPSR, r10 LDMFD SP!, {R0-R12} .endm .macro SAVE_CTX_TO_ADDR a MOV r9, \a # save r0 ~ r10 .set n, 0 .rept 15 SAVE_STACK %n r9 # STR r%n, [r9, #%n*8] .set n, n+1 .endr # save sp as r11 MOV r8, SP STR r8, [r9, #31*8] .endm .macro LOAD_CTX_FROM_ADDR a MOV r9, \a # load r0 ~ r8 .set n, 0 .rept 15 LOAD_STACK %n r9 # LDR r%n, [r9, #%n*8] .set n, n+1 .endr # load r10 LDR r10, [r9, #30*8] # load sp as r11 LDR r8, [r9, #31*8] MOV SP, r8 .endm .include "src/asm/entry.S" .include "src/asm/cpu.S" .include "src/asm/nk_gate.S" .include "src/trap/trap.S" # .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
511
codes/arch/qemu_virt_armv7/src/asm/cpu.S
.macro return bx LR .endm .globl cpu_time cpu_time: MRC p15, 0, r0, c14, c0, 2 return .globl cpu_id cpu_id: MRC p15, 0, r0, c0, c0, 5 return .globl cpu_freq cpu_freq: MRC p15, 0, r0, c14, c0, 0 return .globl cpu_sync cpu_sync: dsb ish isb return .globl write_root_pt write_root_pt: MCR p15, 0, r0, c2, c0, 0 return .globl enable_intr enable_intr: CPSIE I CPSIE F return .globl disable_intr disable_intr: CPSID I CPSID F return
EmbeddedKC/RustEKC
3,963
codes/arch/qemu_vexpressa9_armv7/src/trap/trap_autoSVC.S
.section .text //////////////////////////// // Assuming that OS has initialized all the stack pointer. //////////////////////////// // FIXME: // This macro would save all the context from user, but: // the trap handler cannot see the correct value of lr and r10 of user! // correct: the lr shift .macro IRQ_TO_SVC c ty stmia sp, {r9, r10} @ save r10, r9 mrs r10, spsr str r10, [sp, #8] @ save spsr // correct the lr return. add lr, lr, #4 str lr, [sp, #12] // a fake SVC state into spsr. mrs r10, cpsr bic r10, #0x1F eor r10, r10, #0x13 msr spsr_cxsf, r10 // keep r9 the previous IRQ state ldr r9, [sp, #8] // keep r10 the current IRQ state mrs r10, cpsr // "return" to SVC state // lr cannot be changed in the special state. movs pc, pc // disable irq fiq cpsid i cpsid f // save the "current" IRQ state into spsr. msr spsr_cxsf, r10 // set the SVC lr to irq return. // Here must use adr instead of ldr, because PC-relative are required in trampoline adr lr, irq_exit .endm .globl mmk_exception_vector_base .globl strampoline .align 12 strampoline: mmk_exception_vector_base: _reset_handler: b reset_handler // 0x00: Reset _undefined_handler: b undefined_handler // 0x04: Undefined Instruction _svc_handler: b svc_handler // 0x08: Supervisor Call (SVC) _prefetch_abort_handler: b prefetch_abort_handler // 0x0C: Prefetch Abort _data_abort_handler: b data_abort_handler // 0x10: Data Abort _reserved_handler: b reserved_handler // 0x14: Reserved _irq_handler: b irq_handler // 0x18: IRQ _fiq_handler: b fiq_handler // 0x1C: FIQ // 以下是各个异常的处理函数(你可以定义为具体功能) reset_handler: IRQ_TO_SVC 4 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #0 b __alltraps undefined_handler: IRQ_TO_SVC 4 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #1 b __alltraps svc_handler: add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp // let r9 be previous IRQ state. mrs r9, spsr mov r8, #2 b __alltraps prefetch_abort_handler: IRQ_TO_SVC 0 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #3 b __alltraps data_abort_handler: IRQ_TO_SVC 0 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #4 b __alltraps reserved_handler: IRQ_TO_SVC 4 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #5 b __alltraps irq_handler: IRQ_TO_SVC 4 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #6 b __alltraps fiq_handler: IRQ_TO_SVC 4 add sp, sp, #-20*4 SAVE_CTX_TO_ADDR sp mov r8, #7 b __alltraps // Calling convention to __alltraps: // r8 - the interrupt type. // r9 - the caller CPU state register (spsr). // __alltraps wont protect any register context. __alltraps: // addr = ffffe2c4. CMP r8, #2 // 比较 r8 和 2 BNE os_delegate // 如果 r8 不等于 2,跳转 CMP r7, #400 // 比较 r7 和 400 BLE os_delegate // 如果 r7 小于等于 400,跳转 // Now it is extended syscall. mov r7, #0 mov r0, sp ldr r8, =0xfffff000 blx r8 b trap_exit os_delegate: mov r1, r8 CONFIG_DATA r8 # get the previous mode AND r2, r9, #0x1F MOV r0, sp LDR r9, [r8, #1*4] # kernel trap handler blx r9 # A little difference: # The func param is 0=trapctx, 1=intr type, 2=previous cpu state b trap_exit trap_exit: @ addr = 0xffffe304 LOAD_CTX_FROM_ADDR sp add sp, sp, #20*4 movs pc, lr irq_exit: @ addr = 0xffffe320 ldr r10, [sp, #8] @ load user spsr back msr spsr, r10 @ load user spsr back ldmia sp, {r10, r11} @ load user r10 and r11 backc ldr lr, [sp, #12] @ load lr back movs pc, lr @ return to user. 0xffffe32c .ltorg .align 12
EmbeddedKC/RustEKC
2,638
codes/arch/qemu_vexpressa9_armv7/src/trap/trap.S
.section .text //////////////////////////// // Assuming that OS has initialized all the stack pointer. //////////////////////////// // Require IRQ: sp point to a small memory space. .macro RECORD_IRQ a str r0, [sp, #0] str r7, [sp, #4] str r8, [sp, #8] mov r8, #\a .endm .macro RESTORE_IRQ ldr r0, [sp, #0] ldr r7, [sp, #4] ldr r8, [sp, #8] .endm .globl mmk_exception_vector_base .globl strampoline .align 12 strampoline: mmk_exception_vector_base: _reset_handler: b reset_handler // 0x00: Reset _undefined_handler: b undefined_handler // 0x04: Undefined Instruction _svc_handler: b svc_handler // 0x08: Supervisor Call (SVC) _prefetch_abort_handler: b prefetch_abort_handler // 0x0C: Prefetch Abort _data_abort_handler: b data_abort_handler // 0x10: Data Abort _reserved_handler: b reserved_handler // 0x14: Reserved _irq_handler: b irq_handler // 0x18: IRQ _fiq_handler: b fiq_handler // 0x1C: FIQ // 以下是各个异常的处理函数(你可以定义为具体功能) reset_handler: RECORD_IRQ 0*4 b __alltraps undefined_handler: RECORD_IRQ 1*4 b __alltraps svc_handler: add sp, sp, #-12 RECORD_IRQ 2*4 b __alltraps prefetch_abort_handler: RECORD_IRQ 3*4 b __alltraps data_abort_handler: RECORD_IRQ 4*4 b __alltraps reserved_handler: RECORD_IRQ 5*4 b __alltraps irq_handler: RECORD_IRQ 6*4 b __alltraps fiq_handler: RECORD_IRQ 7*4 b __alltraps // Calling convention to __alltraps_svc: // no register can be corrupted. (maybe svc call) // sp cannot be corrupted. (maybe svc call) __alltraps: // addr = ffffe2c4. CMP r7, #400 // 比较 r7 和 400 BLE __os_delegate // 如果 r7 小于等于 400,跳转 CMP r8, #2*4 // 比较 r8 和 2*4 (svc) BNE __os_delegate // 如果 r8 不等于 svc,跳转 // Now it is extended syscall. // __extsyscall: RESTORE_IRQ SAVE_CTX_TO_ADDR sp mov r7, #0 mov r0, sp ldr r8, =0xfffff000 blx r8 LOAD_CTX_FROM_ADDR sp movs pc, lr // Now it is os delegate trap. // __os_delegate: CONFIG_DATA r0 LDR r0, [r0, #1*4] # kernel vector table add r0, r0, r8 # add the shift ldr r7, [sp, #4] ldr r8, [sp, #8] bx r0 // OS return the trap by itself. // No return back to trap gate any more. // Note: OS delegate format: // r0 is CORRUPTED, but r0 is stored in sp. // the first instruction in OS trap handler should be: ldr r0, [sp] .ltorg .align 12
EmbeddedKC/RustEKC
142
codes/arch/qemu_vexpressa9_armv7/src/trap/trap_signal.S
.section .text .align 12 .globl ssignaltrampoline; ssignaltrampoline: # ecall sys_sigreturn mov r7, #139 svc 0 .align 12
EmbeddedKC/RustEKC
1,880
codes/arch/qemu_vexpressa9_armv7/src/asm/entry.S
.equ MODE_USR, 0x10 // User mode .equ MODE_FIQ, 0x11 // FIQ mode .equ MODE_IRQ, 0x12 // IRQ mode .equ MODE_SVC, 0x13 // Supervisor mode (系统调用进入内核的模式) .equ MODE_ABT, 0x17 // Abort mode .equ MODE_UND, 0x1B // Undefined instruction mode .equ MODE_SYS, 0x1F // System mode (特权级的用户代码,常用于内核运行) .section .text._start .globl _start _start: cpsid if # mem access controller. LDR r8, =0xFFFFFFFF MCR p15, 0, r8, c3, c0, 0 mrs r8, cpsr bic r8, r8, #0x1F orr r8, r8, #MODE_SVC msr CPSR_c, r8 ldr sp, =svc_stack_top bic r8, r8, #0x1F orr r8, r8, #MODE_IRQ msr CPSR_c, r8 ldr sp, =irq_stack_top bic r8, r8, #0x1F orr r8, r8, #MODE_ABT msr CPSR_c, r8 ldr sp, =abt_stack_top bic r8, r8, #0x1F orr r8, r8, #MODE_UND msr CPSR_c, r8 ldr sp, =und_stack_top bic r8, r8, #0x1F orr r8, r8, #MODE_FIQ msr CPSR_c, r8 ldr sp, =fiq_stack_top bic r8, r8, #0x1F orr r8, r8, #MODE_SYS msr CPSR_c, r8 ldr sp, =sys_stack_top //switch to SVC. bic r8, r8, #0x1F orr r8, r8, #MODE_SVC msr CPSR_c, r8 ldr sp, =boot_stack_top STMFD SP!, {R0-R4} MOV R0, sp add sp, sp,#-4 mov r11, sp bl estart .section .bss.stack .align 3 .equ STACK_SIZE, 0x1000 // 每种模式 4KB 栈空间 .global __stack_start __stack_start: .space STACK_SIZE .global fiq_stack_top fiq_stack_top: .space STACK_SIZE .global irq_stack_top irq_stack_top: .space STACK_SIZE .global svc_stack_top svc_stack_top: .space STACK_SIZE .global abt_stack_top abt_stack_top: .space STACK_SIZE .global und_stack_top und_stack_top: .space STACK_SIZE .global sys_stack_top sys_stack_top: .space STACK_SIZE
EmbeddedKC/RustEKC
3,773
codes/arch/qemu_vexpressa9_armv7/src/asm/nk_gate.S
.section .text # 入参 r10 nkapi handler # 入参 r11~r15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### .align 12 .globl snktrampoline .globl nk_gate nk_gate: snktrampoline: STMFD SP!, {R10-R12} # let r10 to be PROXYCONTEXT PROXYCONTEXT r10 LDR r11, [r10, #PROXY_NKAPI_LEVEL] # nkapi_level MOV r10, #0 CMP r11, r10 LDMFD SP!, {R10-R12} # fffff010 BNE nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). nk_entry: ####################### # Critical Note - calling convention: # r0 - r10 would be break when calling NKAPI. ####################### # load OS's CPSR (intr) from proxy to r11, keep r11 not changed! MRS r10, CPSR # addr = 0x*1c # let r8 to be PROXYCONTEXT PROXYCONTEXT r8 # disable interrupts DISABIE_INTR # nkapi_level LDR r9, [r8, #PROXY_NKAPI_LEVEL] ADD r9, r9, #1 STR r9, [r8, #PROXY_NKAPI_LEVEL] # api level add 1 when entry # use MMK's satp LDR r9, [r8, #PROXY_EKC_SATP] # addr = 0xfffff038 WRITE_ROOT_PT r9 # store OS's CPSR (intr) from r11 to proxy # now r10 can be used. STR r10, [r8, #PROXY_OS_CPSR] # store all outer kernel registers to proxy, 包括栈指针 ADD r9, r8, #(PROXY_OS_REGS) SAVE_CTX_TO_ADDR r9 # load nk sp LDR r9, [r8, #PROXY_EKC_SP] # addr = 0x*08c MOV SP, r9 # let r8 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE r8 # the handler in nkcall vec: APITABLE + nk_call_num*8 LSL r7, r7, #3 ADD r8, r8, r7 LDR r8, [r8, #0] # todo: LDR r8, [r8, r7] # handler function call # params more than 4 should be in SP. # caller-cleaned stack. push {r4, r5} BLX r8 pop {r4, r5} # blx addr=0x*0a4 # let r8 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT r8 # save ret value from function handler call STR r0, [r8, #PROXY_OS_REGS] STR r1, [r8, #PROXY_OS_REGS+4] # exit B nk_exit .globl nk_bypass nk_bypass: // addr = 0x*0b0 SAVE_REGS MMKAPI_TABLE r8 //the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 //MMK API always use 8 byte per vector. LSL r7, r7, #3 ADD r8, r8, r7 LDR r8, [r8, #0] //0xfffff0cc # params more than 4 should be in SP. # caller-cleaned stack. push {r4, r5} # handler function call BLX r8 pop {r4, r5} //update the return value //Note: stack struct = (low) lr, CPSR, r12...r0 (high) STR r0, [sp, #2*4] STR r1, [sp, #3*4] RESTORE_REGS BX LR .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # 0x*0fc # let r8 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT r8 # save nk sp MOV r9, SP STR r9, [r8, #PROXY_EKC_SP] LDR r9, [r8, #PROXY_NKAPI_LEVEL] # nkapi level ADD r9, r9, #-1 STR r9, [r8, #PROXY_NKAPI_LEVEL] # api level remove 1 when exit # load OS's satp LDR r9, [r8, #PROXY_OS_SATP] # addr = 0xfffff118 WRITE_ROOT_PT r9 # tlbi alle1 # dsb sy # isb ADD r8, r8, #PROXY_OS_REGS LOAD_CTX_FROM_ADDR r8 # enable interrupt (Load OS's CPSR) PROXYCONTEXT r8 LDR r8, [r8, #PROXY_OS_CPSR] MSR cpsr_c, r8 # addr = 0x*170 # jump back, according to outer kernel's ra BX lr .ltorg .align 12
EmbeddedKC/RustEKC
1,464
codes/arch/qemu_vexpressa9_armv7/src/asm/top.S
#define USIZE_WIDTH 4 #define USIZE_BIT 2 // PROXYCONTEXT. .equ PROXY_EKC_REGS, (0*USIZE_WIDTH) .equ PROXY_EKC_SP, (13*USIZE_WIDTH) .equ PROXY_OS_REGS, (32*USIZE_WIDTH) .equ PROXY_OS_SP, ((32+13)*USIZE_WIDTH) .equ PROXY_EKC_SATP, (64*USIZE_WIDTH) .equ PROXY_OS_SATP, (65*USIZE_WIDTH) .equ PROXY_EKC_CPSR, (66*USIZE_WIDTH) .equ PROXY_OS_CPSR, (67*USIZE_WIDTH) .equ PROXY_NKAPI_LEVEL, (91*USIZE_WIDTH) //.equ PROXY_OS_REGS, 32*USIZE_WIDTH .altmacro .macro PROXYCONTEXT n LDR \n, =-0x3000 .endm .altmacro .macro MMKAPI_TABLE n LDR \n, =-0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n LDR \n, =-0x3000+0x400 .endm .altmacro .macro SAVE_STACK z s STR r\z, [\s, #\z*USIZE_WIDTH] .endm .macro LOAD_STACK z s LDR r\z, [\s, #\z*USIZE_WIDTH] .endm .macro SAVE_REGS STMFD SP!, {R0-R12} mrs r10, CPSR STMFD SP!, {r10, r14} .endm .macro RESTORE_REGS LDMFD SP!, {r10, r14} msr CPSR, r10 LDMFD SP!, {R0-R12} .endm .macro SAVE_CTX_TO_ADDR a stmia \a, {r0-r14} mrs r10, SPSR STR r10, [\a, #16*USIZE_WIDTH] LDR r10, [\a, #10*USIZE_WIDTH] .endm .macro LOAD_CTX_FROM_ADDR a MOV r14, \a LDR r10, [r14, #16*USIZE_WIDTH] msr SPSR, r10 ldmia r14, {r0-r13} ldr r14, [r14, #14*USIZE_WIDTH] .endm .include "src/asm/cpu.S" .include "src/asm/nk_gate.S" .include "src/trap/trap.S" .include "src/trap/trap_signal.S" .include "src/asm/entry.S"
EmbeddedKC/RustEKC
736
codes/arch/qemu_vexpressa9_armv7/src/asm/cpu.S
.macro return bx LR .endm .macro WRITE_ROOT_PT n MCR p15, 0, \n, c2, c0, 0 MCR p15, 0, \n, c2, c0, 1 .endm .macro ENABIE_INTR CPSIE I CPSIE F .endm .macro DISABIE_INTR CPSID I CPSID F .endm .globl cpu_time cpu_time: MRC p15, 0, r0, c14, c0, 2 return .globl cpu_id cpu_id: MRC p15, 0, r0, c0, c0, 5 return .globl cpu_freq cpu_freq: MRC p15, 0, r0, c14, c0, 0 return .globl cpu_sync cpu_sync: dsb ish isb return .globl write_root_pt write_root_pt: MCR p15, 0, r0, c2, c0, 0 MCR p15, 0, r0, c2, c0, 1 return .globl enable_intr enable_intr: CPSIE I CPSIE F return .globl disable_intr disable_intr: CPSID I CPSID F return
EmbeddedKC/RustEKC
3,458
codes/arch/qemu_virt_aarch64/src/nk_gate.S
.section .text.nktrampoline .globl nk_gate # 入参 x10 nkapi handler # 入参 x11~x15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_gate: MOV x28, 0x0 # LDR x28, [x28, #8] # let x28 to be PROXYCONTEXT PROXYCONTEXT x28 LDR x29, [x28, #91*8] # nkapi_level CMP x29, XZR B.NE nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). nk_entry: # switch sie to disable interrupt # load OS's sie from proxy to x27, keep x27 not changed! MRS x27, daif # write MMK's sie # LDR x27, [x28, #66*8] # MSR pstate, x27 # disable interrupts (change pstate) MSR DAIFSET, #2 DSB SY ISB SY ADD x29, x29, 1 STR x29, [x28, #91*8] # api level add 1 when entry # load MMK's satp LDR x29, [x28, #64*8] MSR TTBR0_EL1, x29 # addr=0xfffffffffffff020 MSR TTBR1_EL1, x29 # tlbi alle1 # dsb sy # isb # store OS's daif(sie) from x27 to proxy STR x27, [x28, #67*8] # store all outer kernel registers to proxy, 包括栈指针 PROXYCONTEXT x27 # addr=0xfffffffffffff038 ADD x29, x27, #32*8 SAVE_CTX_TO_ADDR x29 # this macro would break x28 and x29 # load nk sp LDR x29, [x27, #31*8] # addr=0xfffffffffffff0c8 MOV SP, x29 # let x28 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE x28 # addr=0xfffffffffffff0d0 # the handler in nkcall vec: APITABLE + nk_call_num*8 LSL x7, x7, #3 ADD x28, x28, x7 LDR x28, [x28, #0] # todo: LDR x28, [x28, x7] # handler function call BLR x28 # addr=0xfffffffffffff0e0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save ret value from function handler call STR x0, [x28, #32*8] STR x1, [x28, #33*8] # exit B nk_exit .globl nk_bypass nk_bypass: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 ADD SP, SP,-32*8 SAVE_CTX_TO_SP MMKAPI_TABLE x28 # the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 LSL x7, x7, 3 ADD x28, x28, x7 LDR x28, [x28, #0] # handler function call BLR x28 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 LOAD_CTX_FROM_SP ADD sp,sp,32*8 BR x30 .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save nk sp MOV x29, SP STR x29, [x28, #31*8] LDR x29, [x28, #91*8] # nkapi level ADD x29, x29, -1 STR x29, [x28, #91*8] # api level remove 1 when exit # load OS's satp LDR x27, [x28, #65*8] MSR TTBR0_EL1, x27 MSR TTBR1_EL1, x27 # tlbi alle1 # dsb sy # isb # enable interrupt (Load OS's daif) LDR x27, [x28, #67*8] MSR daif, x27 # load all outer kernel registers from proxy, 包括栈指针 PROXYCONTEXT x29 ADD x29, x29, #32*8 LOAD_CTX_FROM_ADDR x29 # addr = -0xd38 # jump back, according to outer kernel's ra BR x30
EmbeddedKC/RustEKC
1,404
codes/arch/qemu_virt_aarch64/src/top.S
.altmacro .macro PROXYCONTEXT n MOV \n, -0x3000 .endm .altmacro .macro MMKAPI_TABLE n MOV \n, -0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n MOV \n, -0x3000+0x400 .endm .altmacro .macro SAVE_STACK r s STR x\r, [\s, #\r*8] .endm .macro LOAD_STACK r s LDR x\r, [\s, #\r*8] .endm .macro SAVE_CTX_TO_SP # save x0 ~ x31 .set n, 0 .rept 31 SAVE_STACK %n SP # STR [x%n, SP, #%n*8] .set n, n+1 .endr # save sp as x32 MOV x29, SP STR X29, [SP, #31*8] .endm .macro LOAD_CTX_FROM_SP # save x0 ~ x31 .set n, 0 .rept 31 LOAD_STACK %n SP # LDR x%n, [SP, #%n*8] .set n, n+1 .endr # load sp as x32 LDR x29, [SP, #31*8] MOV SP, x29 .endm .macro SAVE_CTX_TO_ADDR a MOV x29, \a # save x0 ~ x30 .set n, 0 .rept 31 SAVE_STACK %n x29 # STR x%n, [x29, #%n*8] .set n, n+1 .endr # save sp as x31 MOV x28, SP STR x28, [x29, #31*8] .endm .macro LOAD_CTX_FROM_ADDR a MOV x29, \a # load x0 ~ x28 .set n, 0 .rept 29 LOAD_STACK %n x29 # LDR x%n, [x29, #%n*8] .set n, n+1 .endr # load x30 LDR x30, [x29, #30*8] # load sp as x31 LDR x28, [x29, #31*8] MOV SP, x28 .endm .include "src/cpu.S" .include "src/nk_gate.S" .include "src/trap/trap.S" # .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
274
codes/arch/qemu_virt_aarch64/src/cpu.S
.macro return br x30 .endm .globl cpu_time cpu_time: mrs x0, cntvct_el0 return .globl cpu_id cpu_id: mrs x0, mpidr_el1 return .globl cpu_freq cpu_freq: mrs x0, cntfrq_el0 return .globl cpu_sync cpu_sync: dsb ish isb return
EmbeddedKC/RustEKC
3,420
codes/arch/qemu_virt_aarch64/src/trap/trap.S
########################### # TODO: This module is not finished. # It should be put into .text.trampoline with delegation. ########################## .macro SAVE_REGS sub sp, sp, 34 * 8 stp x0, x1, [sp] stp x2, x3, [sp, 2 * 8] stp x4, x5, [sp, 4 * 8] stp x6, x7, [sp, 6 * 8] stp x8, x9, [sp, 8 * 8] stp x10, x11, [sp, 10 * 8] stp x12, x13, [sp, 12 * 8] stp x14, x15, [sp, 14 * 8] stp x16, x17, [sp, 16 * 8] stp x18, x19, [sp, 18 * 8] stp x20, x21, [sp, 20 * 8] stp x22, x23, [sp, 22 * 8] stp x24, x25, [sp, 24 * 8] stp x26, x27, [sp, 26 * 8] stp x28, x29, [sp, 28 * 8] mrs x9, SP_EL0 mrs x10, ELR_EL1 mrs x11, SPSR_EL1 stp x30, x9, [sp, 30 * 8] stp x10, x11, [sp, 32 * 8] .endm .macro RESTORE_REGS ldp x10, x11, [sp, 32 * 8] ldp x30, x9, [sp, 30 * 8] msr sp_el0, x9 msr elr_el1, x10 msr spsr_el1, x11 ldp x28, x29, [sp, 28 * 8] ldp x26, x27, [sp, 26 * 8] ldp x24, x25, [sp, 24 * 8] ldp x22, x23, [sp, 22 * 8] ldp x20, x21, [sp, 20 * 8] ldp x18, x19, [sp, 18 * 8] ldp x16, x17, [sp, 16 * 8] ldp x14, x15, [sp, 14 * 8] ldp x12, x13, [sp, 12 * 8] ldp x10, x11, [sp, 10 * 8] ldp x8, x9, [sp, 8 * 8] ldp x6, x7, [sp, 6 * 8] ldp x4, x5, [sp, 4 * 8] ldp x2, x3, [sp, 2 * 8] ldp x0, x1, [sp] add sp, sp, 34 * 8 .endm .macro INVALID_EXCP, kind, source .p2align 7 MOV x28, -0x2200 MOV sp, x28 SAVE_REGS mov x0, sp mov x1, \kind mov x2, \source bl invalid_exception # bl: branch to addr, and save pc+4 to lr(x30). like jal. b .Lexception_return .endm .macro HANDLE_SYNC .p2align 7 SAVE_REGS mov x0, sp bl handle_sync_exception b .Lexception_return .endm .macro HANDLE_IRQ .p2align 7 SAVE_REGS mov x0, sp bl handle_irq_exception b .Lexception_return .endm .macro MMK_HANDLER, kind, source .p2align 7 MOV x28, -0x2200 MOV sp, x28 SAVE_REGS mov x0, sp mov x1, \kind mov x2, \source bl mmk_trap_handler b .Lexception_return .endm .section .text .p2align 11 .globl os_exception_vector_base os_exception_vector_base: // current EL, with SP_EL0 INVALID_EXCP 0 0 INVALID_EXCP 1 0 INVALID_EXCP 2 0 INVALID_EXCP 3 0 // current EL, with SP_ELx HANDLE_SYNC HANDLE_IRQ INVALID_EXCP 2 1 INVALID_EXCP 3 1 // lower EL, aarch64 HANDLE_SYNC HANDLE_IRQ INVALID_EXCP 2 2 INVALID_EXCP 3 2 // lower EL, aarch32 INVALID_EXCP 0 3 INVALID_EXCP 1 3 INVALID_EXCP 2 3 INVALID_EXCP 3 3 .p2align 11 .globl mmk_exception_vector_base mmk_exception_vector_base: // current EL, with SP_EL0 INVALID_EXCP 0 0 INVALID_EXCP 1 0 INVALID_EXCP 2 0 INVALID_EXCP 3 0 // current EL, with SP_ELx MMK_HANDLER 0 1 MMK_HANDLER 1 1 MMK_HANDLER 2 1 MMK_HANDLER 3 1 // lower EL, aarch64 MMK_HANDLER 0 2 MMK_HANDLER 1 2 INVALID_EXCP 2 2 INVALID_EXCP 3 2 // lower EL, aarch32 INVALID_EXCP 0 3 INVALID_EXCP 1 3 INVALID_EXCP 2 3 INVALID_EXCP 3 3 .Lexception_return: RESTORE_REGS eret
EmbeddedKC/RustEKC
170
codes/arch/qemu_virt_aarch64/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
EmbeddedKC/RustEKC
3,515
codes/arch/qemu_virt_riscv64/src/nk_gate.S
.altmacro .macro SAVE_REGISTER n sd x\n, \n*8(sp) .endm .macro LOAD_REGISTER n ld x\n, \n*8(sp) .endm .macro SAVE_REGISTER2 n o sd x\n, \o*8+\n*8(x28) .endm .macro LOAD_REGISTER2 n o ld x\n, \o*8+\n*8(x28) .endm .section .text.nktrampoline .globl nk_entry # 入参 x10 nkapi handler # 入参 x11~x15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_entry: # let x28 to be PROXYCONTEXT PROXYCONTEXT x28 ld x30, 91*8(x28) # nkapi_level bne x30, zero, nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). # switch sie to disable interrupt PROXYCONTEXT x28 # load OS's sie from proxy to x31 csrr x31, sie # write MMK's sie ld x29, 66*8(x28) csrw sie, x29 addi x30, x30, 1 sd x30, 91*8(x28) # api level add 1 when entry # load MMK's satp ld x29, 64*8(x28) # 0xfffffffffffff022 csrw satp, x29 # store OS's sie from x31 to proxy sd x31, 67*8(x28) # store all outer kernel registers to proxy, 包括栈指针 # TODO: no need to save ALL registers. # Check calling convention and optimize it. .set n, 1 .rept 27 SAVE_REGISTER2 %n 32 .set n, n+1 .endr # load nk sp ld sp, 2*8(x28) # let x28 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE x28 # the handler in nkcall vec: APITABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save ret value from function handler call sd x10, (32+10)*8(x28) sd x11, (32+11)*8(x28) # exit j nk_exit .globl nk_bypass nk_bypass: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 addi sp,sp,-30*8 # store all nk registers .set n, 1 .rept 28 SAVE_REGISTER %n .set n, n+1 .endr MMKAPI_TABLE x28 # the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # keep the retval mv x29, x10 mv x30, x11 # load all nk registers .set n, 1 .rept 28 LOAD_REGISTER %n .set n, n+1 .endr addi sp,sp,30*8 # restore the retval mv x10, x29 mv x11, x30 jr x1 .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save MMK sp # No need to save other context in MMK~ sd sp, 2*8(x28) ld x30, 91*8(x28) # nkapi level addi x30, x30, -1 sd x30, 91*8(x28) # api level remove 1 when exit # load OS's satp ld x29, 65*8(x28) csrw satp, x29 # 0xfffffffffffff15e # enable interrupt ld x31, 67*8(x28) # Load OS's sie csrw sie, x31 .set n, 1 .rept 27 LOAD_REGISTER2 %n 32 .set n, n+1 .endr # jump back, according to outer kernel's ra jr x1
EmbeddedKC/RustEKC
268
codes/arch/qemu_virt_riscv64/src/top.S
.altmacro .macro PROXYCONTEXT n li \n, -0x3000 .endm .altmacro .macro MMKAPI_TABLE n li \n, -0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n li \n, -0x3000+0x400 .endm .include "src/nk_gate.S" .include "src/trap/trap.S" .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
3,782
codes/arch/qemu_virt_riscv64/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .macro ENTRY_GATE n li \n, -0x1000 .endm .macro TRAP_CONTEXT n li \n, 0xffffe sll \n, \n, 12 .endm # note that it break the context of t0~t6. .macro REG_INFO mv x31, x17 mv x30, x10 li x17, 9 csrr t0, sscratch csrr t1, scause csrr t2, stval csrr t3, sepc ecall mv x17, x31 mv x10, x30 .endm .section .text.trampoline .globl __alltraps .globl __delegate .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # 第一次进入这段汇编之前,是先进入了下面的restore汇编 # 所以这里进来的之前,sscratch的值就是TRAP_CONTEXT的值,sp是用户栈的位置,因为pc指的指令触发了trap # CPU直接根据stvec的值跳转了进来,sp没有被中途改变 # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose registers sd x1, 1*8(sp) # skip sp(x2), we will save it later sd x3, 3*8(sp) # save x4~x31 .set n, 4 .rept 28 SAVE_GP %n .set n, n+1 .endr # read user stack from sscratch and save it in TrapContext csrr t2, sscratch sd t2, 2*8(sp) # we can use t0/t1/t2 freely, because they have been saved in TrapContext csrr t0, sstatus csrr t1, sepc sd t0, 32*8(sp) sd t1, 33*8(sp) # fsd fs1, 34*8(sp) # .half 0xba22 # .half 0xbe26 # load trap_handler into t1 # ld t1, 35*8(sp) # let a0 be trap context. mv a0, sp # move to kernel_sp ld sp, 34*8(sp) # here if scause is not syscall, delegate. csrr t3, scause li t4, 8 bne t3, t4, __delegate # here if syscall id is smaller than 0x400, delegate. ld t3, 17*8(a0) li t4, 0x400 blt t3, t4, __delegate # nkapi call. # mv a0, a0 # param0: ctx: *TrapContext li a7, 0 # NKAPI_TRAP_HANDLE = 0 # t3 = nk_trampoline ENTRY_GATE t3 jalr x1, t3, 0 # back to user. j __restore __delegate: # change stvec to user trap(TRAMPOLINE) + ktrap - alltraps la x29, __alltraps la x30, _ktrap sub x30, x30, x29 li x29, -0x2000 add x29, x29, x30 csrw stvec, x29 CONFIG_DATA x28 # x29 is user handler ld x29, 0*8(x28) jalr x1, x29, 0 CONFIG_DATA x28 # x29 is signal handler ld x29, 2*8(x28) jalr x1, x29, 0 # jump back j __restore __restore: li x28, 0xffffe sll a0, x28, 12 # a0 = 0xffffe000, trap context. # 所有用户的trapcontext都保存在同一个虚拟地址位置 TRAP_CONTEXT csrw sscratch, a0 mv sp, a0 # 把a0的值写入sp # restore sstatus/sepc ld t0, 32*8(sp) # 按照存储规则去加载trap context中的值 ld t1, 33*8(sp) csrw sstatus, t0 csrw sepc, t1 li x28, 0 li x30, 0x3000 sub x28, x28, x30 # change stvec to user trap(TRAMPOLINE) li x29, -0x2000 csrw stvec, x29 # restore general purpose registers except x0/sp/tp ld x1, 1*8(sp) ld x3, 3*8(sp) .set n, 4 .rept 28 LOAD_GP %n .set n, n+1 .endr # back to user stack ld sp, 2*8(sp) # restore sp at last. sret # 跳转到sepc的位置继续执行 .globl _kreturn .globl _ktrap .align 4 _ktrap: addi sp, sp, -256 # save the registers sd ra, 1*8(sp) sd gp, 3*8(sp) sd tp, 4*8(sp) .set n, 5 .rept 27 # SAVE_GP %n .set n, n+1 .endr CONFIG_DATA x28 # x29 is ktrap handler ld x29, 1*8(x28) # ld x29, 92*8(x28) jalr x1, x29, 0 sd x10, 10*8(sp) sd x11, 11*8(sp) j _kreturn _kreturn: # restore registers ld ra, 1*8(sp) # ld sp, 2*8(sp) ld gp, 3*8(sp) ld tp, 4*8(sp) .set n, 5 .rept 27 LOAD_GP %n .set n, n+1 .endr addi sp, sp, 256 # return to whatever we were doing in the kernel sret
EmbeddedKC/RustEKC
170
codes/arch/qemu_virt_riscv64/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
EmbeddedKC/RustEKC
3,326
codes/arch/k210/src/nk_gate.S
.altmacro .macro SAVE_REGISTER n sd x\n, \n*8(sp) .endm .macro LOAD_REGISTER n ld x\n, \n*8(sp) .endm .macro SAVE_REGISTER2 n o sd x\n, \o*8+\n*8(x28) .endm .macro LOAD_REGISTER2 n o ld x\n, \o*8+\n*8(x28) .endm .section .text.nktrampoline .globl nk_entry # 入参 x10 nkapi handler # 入参 x11~x15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_entry: # let x28 to be PROXYCONTEXT PROXYCONTEXT x28 ld x30, 91*8(x28) # nkapi_level bne x30, zero, nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). # switch sie to disable interrupt PROXYCONTEXT x28 # load OS's sie from proxy to x31 csrr x31, sie # write MMK's sie ld x29, 66*8(x28) csrw sie, x29 addi x30, x30, 1 sd x30, 91*8(x28) # api level add 1 when entry # load MMK's satp ld x29, 64*8(x28) csrw satp, x29 # store OS's sie from x31 to proxy sd x31, 67*8(x28) # store all outer kernel registers to proxy, 包括栈指针 .set n, 1 .rept 27 SAVE_REGISTER2 %n 32 .set n, n+1 .endr # load nk sp ld sp, 2*8(x28) # let x28 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE x28 # the handler in nkcall vec: APITABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save ret value from function handler call sd x10, (32+10)*8(x28) sd x11, (32+11)*8(x28) # exit j nk_exit .globl nk_bypass nk_bypass: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 addi sp,sp,-30*8 # store all nk registers .set n, 1 .rept 28 SAVE_REGISTER %n .set n, n+1 .endr MMKAPI_TABLE x28 # the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 sll x17, x17, 3 add x28, x28, x17 ld x28, 0(x28) # handler function call jalr x1, x28, 0 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # keep the retval mv x29, x10 mv x30, x11 # load all nk registers .set n, 1 .rept 28 LOAD_REGISTER %n .set n, n+1 .endr addi sp,sp,30*8 # restore the retval mv x10, x29 mv x11, x30 jr x1 .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save nk sp sd sp, 2*8(x28) ld x30, 91*8(x28) # nkapi level addi x30, x30, -1 sd x30, 91*8(x28) # api level remove 1 when exit # load OS's satp ld x29, 65*8(x28) csrw satp, x29 # enable interrupt ld x31, 67*8(x28) # Load OS's sie csrw sie, x31 .set n, 1 .rept 27 LOAD_REGISTER2 %n 32 .set n, n+1 .endr # jump back, according to outer kernel's ra jr x1
EmbeddedKC/RustEKC
268
codes/arch/k210/src/top.S
.altmacro .macro PROXYCONTEXT n li \n, -0x3000 .endm .altmacro .macro MMKAPI_TABLE n li \n, -0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n li \n, -0x3000+0x400 .endm .include "src/nk_gate.S" .include "src/trap/trap.S" .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
3,835
codes/arch/k210/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .macro ENTRY_GATE n li \n, -0x1000 .endm .macro TRAP_CONTEXT n li \n, 0xffffe sll \n, \n, 12 .endm # note that it break the context of t0~t6. .macro REG_INFO mv x31, x17 mv x30, x10 li x17, 9 csrr t0, sscratch csrr t1, scause csrr t2, stval csrr t3, sepc ecall mv x17, x31 mv x10, x30 .endm .section .text.trampoline .globl __alltraps .globl __delegate .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # 第一次进入这段汇编之前,是先进入了下面的restore汇编 # 所以这里进来的之前,sscratch的值就是TRAP_CONTEXT的值,sp是用户栈的位置,因为pc指的指令触发了trap # CPU直接根据stvec的值跳转了进来,sp没有被中途改变 # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose registers sd x1, 1*8(sp) # skip sp(x2), we will save it later sd x3, 3*8(sp) # save x4~x31 .set n, 4 .rept 28 SAVE_GP %n .set n, n+1 .endr # read user stack from sscratch and save it in TrapContext csrr t2, sscratch sd t2, 2*8(sp) # we can use t0/t1/t2 freely, because they have been saved in TrapContext csrr t0, sstatus csrr t1, sepc sd t0, 32*8(sp) sd t1, 33*8(sp) # fsd fs1, 34*8(sp) # .half 0xba22 # .half 0xbe26 # load trap_handler into t1 # ld t1, 35*8(sp) # let a0 be trap context. mv a0, sp # move to kernel_sp ld sp, 34*8(sp) # here if scause is not syscall, delegate. csrr t3, scause li t4, 8 bne t3, t4, __delegate # here if syscall id is smaller than 0x400, delegate. ld t3, 17*8(a0) li t4, 0x400 blt t3, t4, __delegate # nkapi call. # mv a0, a0 # param0: ctx: *TrapContext li a7, 0 # NKAPI_TRAP_HANDLE = 0 # t3 = nk_trampoline ENTRY_GATE t3 jalr x1, t3, 0 # back to user. j __restore __delegate: # change stvec to user trap(TRAMPOLINE) + ktrap - alltraps la x29, __alltraps la x30, _ktrap sub x30, x30, x29 li x29, -0x2000 add x29, x29, x30 csrw stvec, x29 CONFIG_DATA x28 # x29 is user handler ld x29, 0*8(x28) jalr x1, x29, 0 CONFIG_DATA x28 # x29 is signal handler ld x29, 2*8(x28) jalr x1, x29, 0 # jump back j __restore __restore: li x28, 0xffffe sll a0, x28, 12 # a0 = 0xffffe000, trap context. # 所有用户的trapcontext都保存在同一个虚拟地址位置 TRAP_CONTEXT csrw sscratch, a0 mv sp, a0 # 把a0的值写入sp # restore sstatus/sepc ld t0, 32*8(sp) # 按照存储规则去加载trap context中的值 ld t1, 33*8(sp) csrw sstatus, t0 csrw sepc, t1 li x28, 0 li x30, 0x3000 sub x28, x28, x30 # change stvec to user trap(TRAMPOLINE) li x29, -0x2000 csrw stvec, x29 # restore general purpose registers except x0/sp/tp ld x1, 1*8(sp) ld x3, 3*8(sp) .set n, 4 .rept 28 LOAD_GP %n .set n, n+1 .endr # back to user stack ld sp, 2*8(sp) # restore sp at last. sret # 跳转到sepc的位置继续执行 .globl _kreturn .globl _ktrap .align 4 _ktrap: addi sp, sp, -256 # save the registers sd ra, 1*8(sp) # sd sp, 2*8(sp) sd gp, 3*8(sp) # sd tp, 4*8(sp) .set n, 5 .rept 27 SAVE_GP %n .set n, n+1 .endr CONFIG_DATA x28 # x29 is ktrap handler ld x29, 1*8(x28) # ld x29, 92*8(x28) jalr x1, x29, 0 sd x10, 10*8(sp) sd x11, 11*8(sp) j _kreturn _kreturn: # restore registers ld ra, 1*8(sp) # ld sp, 2*8(sp) ld gp, 3*8(sp) # not this, in case we moved CPUs: ld tp, 24(sp) .set n, 5 .rept 27 LOAD_GP %n .set n, n+1 .endr addi sp, sp, 256 # return to whatever we were doing in the kernel sret
EmbeddedKC/RustEKC
170
codes/arch/k210/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
EmbeddedKC/RustEKC
3,233
codes/arch/raspberry_pi4/src/nk_gate.S
.section .text.nktrampoline .globl nk_gate # 入参 x10 nkapi handler # 入参 x11~x15 params # 结构 # ##################################### # 高地址 # 维护: outer satp # 加载: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_gate: MOV x28, 0x0 # LDR x28, [x28, #8] # let x28 to be PROXYCONTEXT PROXYCONTEXT x28 LDR x29, [x28, #91*8] # nkapi_level CMP x29, XZR B.NE nk_bypass # nkapi_level is 0 means in os (gate), >0 means in mmk (bypass). # addr=0xfffffffffffff014 nk_entry: # switch sie to disable interrupt # load OS's sie from proxy to x27 # csrr x27, sie # write MMK's sie # LDR x27, [x28, #66*8] # csrw sie, x27 ADD x29, x29, 1 STR x29, [x28, #91*8] # api level add 1 when entry # load MMK's satp LDR x29, [x28, #64*8] UPDATE_PT x29 # store OS's sie from x31 to proxy STR x27, [x28, #67*8] # store all outer kernel registers to proxy, 包括栈指针 PROXYCONTEXT x27 ADD x29, x27, #32*8 SAVE_CTX_TO_ADDR x29 # this macro would break x28 and x29 # load nk sp LDR x29, [x27, #31*8] MOV SP, x29 # let x28 to be APITABLE (METADATA + 0x800) MMKAPI_TABLE x28 # the handler in nkcall vec: APITABLE + nk_call_num*8 LSL x7, x7, #3 ADD x28, x28, x7 LDR x28, [x28, #0] # todo: LDR x28, [x28, x7] # handler function call BLR x28 # addr=0xfffffffffffff0d4 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 # save ret value from function handler call STR x0, [x28, #32*8] STR x1, [x28, #33*8] # exit B nk_exit .globl nk_bypass nk_bypass: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 ADD SP, SP,-32*8 SAVE_CTX_TO_SP MMKAPI_TABLE x28 # the handler in nkcall vec: MMKAPI_TABLE + nk_call_num*8 LSL x7, x7, 3 ADD x28, x28, x7 LDR x28, [x28, #0] # handler function call BLR x28 # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 LOAD_CTX_FROM_SP ADD sp,sp,32*8 BR x30 .globl nk_exit # 结构 # ##################################### # 高地址 # 加载: outer satp # 维护: nk satp # 加载: outer register (0, 1, ......, 31) # 保存:nk register (0, 1, ......, 31) # 低地址 # ##################################### nk_exit: # let x28 to be ProxyContext (NK_TRAMPOLINE) PROXYCONTEXT x28 ## reached # save nk sp MOV x29, SP STR x29, [x28, #31*8] LDR x29, [x28, #91*8] # nkapi level ADD x29, x29, -1 STR x29, [x28, #91*8] # api level remove 1 when exit # load OS's satp LDR x27, [x28, #65*8] UPDATE_PT x27 # enable interrupt # LDR x27, [x28, #67*8] # Load OS's sie # csrw sie, x27 # load all outer kernel registers from proxy, 包括栈指针 PROXYCONTEXT x29 ADD x29, x29, #32*8 LOAD_CTX_FROM_ADDR x29 # jump back, according to outer kernel's ra # nk_exit + 0xb0 BR x30 # t_breakpoint. # PROXYCONTEXT x28 # LDR x27, [x28, #90*8] # BR x27 # t_breakpoint_end.
EmbeddedKC/RustEKC
1,592
codes/arch/raspberry_pi4/src/top.S
.altmacro .macro PROXYCONTEXT n MOV \n, -0x3000 .endm .altmacro .macro MMKAPI_TABLE n MOV \n, -0x3000+0x800 .endm .altmacro .macro CONFIG_DATA n MOV \n, -0x3000+0x400 .endm .altmacro .macro SAVE_STACK r s STR x\r, [\s, #\r*8] .endm .macro LOAD_STACK r s LDR x\r, [\s, #\r*8] .endm .macro UPDATE_PT r # nk_exit + 0x1c MSR TTBR0_EL1, \r MSR TTBR1_EL1, \r # flush TLB, (may has problems here!) MOV \r, 0 tlbi aside1, \r dsb sy isb .endm .macro SAVE_CTX_TO_SP # save x0 ~ x31 .set n, 0 .rept 31 SAVE_STACK %n SP # STR [x%n, SP, #%n*8] .set n, n+1 .endr # save sp as x32 MOV x29, SP STR X29, [SP, #31*8] .endm .macro LOAD_CTX_FROM_SP # save x0 ~ x31 .set n, 0 .rept 31 LOAD_STACK %n SP # LDR x%n, [SP, #%n*8] .set n, n+1 .endr # load sp as x32 LDR x29, [SP, #31*8] MOV SP, x29 .endm .macro SAVE_CTX_TO_ADDR a MOV x29, \a # save x0 ~ x30 .set n, 0 .rept 31 SAVE_STACK %n x29 # STR x%n, [x29, #%n*8] .set n, n+1 .endr # save sp as x31 MOV x28, SP STR x28, [x29, #31*8] .endm .macro LOAD_CTX_FROM_ADDR a MOV x29, \a # load x0 ~ x28 .set n, 0 .rept 29 LOAD_STACK %n x29 # LDR x%n, [x29, #%n*8] .set n, n+1 .endr # load x30 LDR x30, [x29, #30*8] # load sp as x31 LDR x28, [x29, #31*8] MOV SP, x28 .endm .include "src/cpu.S" .include "src/nk_gate.S" .include "src/trap/trap.S" # .include "src/trap/trap_signal.S"
EmbeddedKC/RustEKC
274
codes/arch/raspberry_pi4/src/cpu.S
.macro return br x30 .endm .globl cpu_time cpu_time: mrs x0, cntvct_el0 return .globl cpu_id cpu_id: mrs x0, mpidr_el1 return .globl cpu_freq cpu_freq: mrs x0, cntfrq_el0 return .globl cpu_sync cpu_sync: dsb ish isb return
EmbeddedKC/RustEKC
3,265
codes/arch/raspberry_pi4/src/trap/trap.S
.macro SAVE_REGS sub sp, sp, 34 * 8 stp x0, x1, [sp] stp x2, x3, [sp, 2 * 8] stp x4, x5, [sp, 4 * 8] stp x6, x7, [sp, 6 * 8] stp x8, x9, [sp, 8 * 8] stp x10, x11, [sp, 10 * 8] stp x12, x13, [sp, 12 * 8] stp x14, x15, [sp, 14 * 8] stp x16, x17, [sp, 16 * 8] stp x18, x19, [sp, 18 * 8] stp x20, x21, [sp, 20 * 8] stp x22, x23, [sp, 22 * 8] stp x24, x25, [sp, 24 * 8] stp x26, x27, [sp, 26 * 8] stp x28, x29, [sp, 28 * 8] mrs x9, SP_EL0 mrs x10, ELR_EL1 mrs x11, SPSR_EL1 stp x30, x9, [sp, 30 * 8] stp x10, x11, [sp, 32 * 8] .endm .macro RESTORE_REGS ldp x10, x11, [sp, 32 * 8] ldp x30, x9, [sp, 30 * 8] msr sp_el0, x9 msr elr_el1, x10 msr spsr_el1, x11 ldp x28, x29, [sp, 28 * 8] ldp x26, x27, [sp, 26 * 8] ldp x24, x25, [sp, 24 * 8] ldp x22, x23, [sp, 22 * 8] ldp x20, x21, [sp, 20 * 8] ldp x18, x19, [sp, 18 * 8] ldp x16, x17, [sp, 16 * 8] ldp x14, x15, [sp, 14 * 8] ldp x12, x13, [sp, 12 * 8] ldp x10, x11, [sp, 10 * 8] ldp x8, x9, [sp, 8 * 8] ldp x6, x7, [sp, 6 * 8] ldp x4, x5, [sp, 4 * 8] ldp x2, x3, [sp, 2 * 8] ldp x0, x1, [sp] add sp, sp, 34 * 8 .endm .macro INVALID_EXCP, kind, source .p2align 7 MOV x28, -0x2200 MOV sp, x28 SAVE_REGS mov x0, sp mov x1, \kind mov x2, \source bl invalid_exception # bl: branch to addr, and save pc+4 to lr(x30). like jal. b .Lexception_return .endm .macro HANDLE_SYNC .p2align 7 SAVE_REGS mov x0, sp bl handle_sync_exception b .Lexception_return .endm .macro HANDLE_IRQ .p2align 7 SAVE_REGS mov x0, sp bl handle_irq_exception b .Lexception_return .endm .macro MMK_HANDLER, kind, source .p2align 7 MOV x28, -0x2200 MOV sp, x28 SAVE_REGS mov x0, sp mov x1, \kind mov x2, \source bl mmk_trap_handler b .Lexception_return .endm .section .text .p2align 11 .globl os_exception_vector_base os_exception_vector_base: // current EL, with SP_EL0 INVALID_EXCP 0 0 INVALID_EXCP 1 0 INVALID_EXCP 2 0 INVALID_EXCP 3 0 // current EL, with SP_ELx HANDLE_SYNC HANDLE_IRQ INVALID_EXCP 2 1 INVALID_EXCP 3 1 // lower EL, aarch64 HANDLE_SYNC HANDLE_IRQ INVALID_EXCP 2 2 INVALID_EXCP 3 2 // lower EL, aarch32 INVALID_EXCP 0 3 INVALID_EXCP 1 3 INVALID_EXCP 2 3 INVALID_EXCP 3 3 .p2align 11 .globl mmk_exception_vector_base mmk_exception_vector_base: // current EL, with SP_EL0 INVALID_EXCP 0 0 INVALID_EXCP 1 0 INVALID_EXCP 2 0 INVALID_EXCP 3 0 // current EL, with SP_ELx MMK_HANDLER 0 1 MMK_HANDLER 1 1 MMK_HANDLER 2 1 MMK_HANDLER 3 1 // lower EL, aarch64 MMK_HANDLER 0 2 MMK_HANDLER 1 2 INVALID_EXCP 2 2 INVALID_EXCP 3 2 // lower EL, aarch32 INVALID_EXCP 0 3 INVALID_EXCP 1 3 INVALID_EXCP 2 3 INVALID_EXCP 3 3 .Lexception_return: RESTORE_REGS eret
EmbeddedKC/RustEKC
170
codes/arch/raspberry_pi4/src/trap/trap_signal.S
.altmacro .section .text.signaltrampoline .globl __signal_trampoline .align 2 __signal_trampoline: # ecall sys_sigreturn addi a7, zero, 139 ecall
emtee40/Subaru-nisutils
2,317
tests/test1.s
! copyright (c) fenugrec 2018 ! ! Various pathological code patterns to test nislib sh_track_reg etc. .section .text.test1,"ax",@progbits .global test_main .type test_main, @function .BALIGN 2 test_main: ! initial garbage to simulate non-code stuff. IVT, data, etc. .word 0 .word 0xCACA .word 0xFFFF .word 0x7FFC nop nop eloop0: bra eloop0 nop eloop1: bt eloop1 bt/s eloop1 nop jsr @r0 nop bsr eloop1 nop bsr test_6001 nop rts nop .BALIGN 4 test_6001: ! clobber @(R0,Rn) dest var mov.w u16var, r6 mov #1, r0 mov.b @(r0, r6), r0 nop nop test_6002: !logic.b ##, @(r0, gbr) !2 hits mov.w u16var, r0 ldc r0, gbr mov #2, r0 and.b #0x55, @(r0, gbr) ldc r0, gbr !swap gbr and r0 roles mov.w u16var, r0 and.b #0x55, @(r0, gbr) nop nop test_6003: !basic addr modes : ! Rm, @Rn ! Rm, @(disp,Rn) ! Rm, @(R0, Rn) ! R0, @(disp, gbr) !8 hits mov.w u16var, r0 mov.w test_6003_data, r1 bra test_6003_b nop test_6003_data: .word 0x6003 test_6003_b: mov #3, r2 mov.b @r1, r5 mov.b r5, @r1 mov.b r0, @(3, r0) mov.b @(3, r0), r0 mov.w u16var, r0 mov.b r5, @(r0, r2) mov.b @(r0, r2), r5 ldc r0, gbr mov.b r0, @(3, gbr) mov.b @(3, gbr), r0 nop nop test_6004: !add imm, Rn before access mov.w u16var, r0 add #4, r0 mov.b @r0, r1 nop nop test_6005: !stc gbr + add imm mov.w u16var, r0 ldc r0, gbr stc gbr, r2 add #5, r2 mov #0, r0 mov.b @(r0, r2), r3 nop nop test_6006: !second copy in "post-visited" opcode !(i.e. r11 is never tracked) mov.w u16var, r0 mov r0, r1 mov r0, r11 mov #6, r2 add r2, r1 mov.b @(6, r11), r0 nop nop test_6007: !reg addition before @Rm, Rn mov.w u16var, r1 mov #7, r2 add r2, r1 mov.b @r1, r5 nop nop test_6008: !imm add before @Rm, Rn mov.w u16var, r0 add #8, r0 mov.b @r0, r5 nop nop test_6009: !recursive death by cross-jump mov.w u16var, r0 bt test_6009_a nop test_6009_a: bt test_6009_b nop test_6009_b: bt test_6009_a mov.b r0, @(9, r0) nop nop test_600a: !access in delay slot !4 hits mov.w u16var, r0 bt/s test_600a_b mov.b r0, @(0x0a, r0) nop test_600a_b: jsr @r4 mov.b r0, @(0x0a, r0) nop bra test_600a_c mov.b r0, @(0x0a, r0) test_600a_c: rts mov.b r0, @(0x0a, r0) nop nop test_footer: !just for ida analysis rts nop .BALIGN 4 u16var: .word 0x6000 s16var: .word 0xa000
emtee40/Subaru-npkern-ssmedit
1,377
start_ssm.s
! For Subaru ECUs. ! Apparently they're always loaded at a fixed address in RAM : no need to move the payload ! TODO : remove auto-copy; make sure entry point is correct vs .ld file ! (c) copyright fenugrec 2022 ! GPLv3 ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! .list .section .rja .global RAMjump_entry .extern _main !user code .extern _ebss .extern _bss .extern _stackinit RAMjump_entry: .BALIGN 2 ! these end up at ffff3000, in case ramjump lands here instead of ffff3004 nop nop zero_bss: mov.l ebss, r1 mov.l bss, r0 mov #0, r2 zero_top: cmp/eq r0, r1 bt zero_end bra zero_top mov.b r2,@-r1 zero_end: mov.l main,r1 mov.l stack,r15 jsr @r1 nop .BALIGN 4 stack: .long _stackinit main: .long _main bss: .long _sbss ebss: .long _ebss
emtee40/Subaru-npkern-ssmedit
2,262
start_705x.s
! based on KPIT GNUSH ! This moves the whole payload up to the desired address, ! (c) copyright fenugrec 2016 ! GPLv3 ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! .list .section .rja .global RAMjump_entry .extern _rja_start .extern _main !user code .extern _ebss .extern _bss .extern _stackinit .extern _endpayload RAMjump_entry: mova rj_plus4, r0 mov #0, r3 !flag : 0 on first iteration (moving the microkernel), then 1 during normal payload copying. rj_plus4: ! here r0 == ( &RAMjump + 4 ) == &rj_plus4 (at the ramjump location, not the intended destination) the first time this is run. ! move payload from *r0 to *r5, skipping first 4 bytes (doesn't matter) mov.l rja_start_adj, r5 second_iter: mov.l endpl, r4 tst r3, r3 bf move_pl !BNZ !skip the following if we're on the second iteration ! else, copy only this microkernel, then jump to it at its desired location. mov.l p_move_done_2, r4 !simulation says 11 cycles per loop here move_pl: cmp/hi r5, r4 !(r4 >= r5 ?) mov.l @r0+, r2 mov.l r2, @r5 bt/s move_pl add #4, r5 move_done: !if we were just copying the microkernel, jump to it. tst r3, r3 bf move_done_2 !BNZ mov.l p_second_iter, r2 jsr @r2 mov #1, r3 .BALIGN 4 rja_start_adj: .long _rja_start + 4 endpl: .long _endpayload p_second_iter: .long second_iter p_move_done_2: .long move_done_2 .BALIGN 2 move_done_2: zero_bss: mov.l ebss, r1 mov.l bss, r0 mov #0, r2 zero_top: cmp/eq r0, r1 bt zero_end bra zero_top mov.b r2,@-r1 zero_end: mov.l main,r1 mov.l stack,r15 jsr @r1 nop .BALIGN 4 stack: .long _stackinit main: .long _main bss: .long _sbss ebss: .long _ebss
encapfn/encapfn-tock
3,160
encapfn-tock/encapfn_c_rt/init_riscv32.S
/* encapfn_rtheader is defined by the service linker script (encapfn_layout.ld). * It has the following layout: * * Field | Offset * ------------------------------------ * Start of .data in flash | 0 * Size of .data | 4 * Start of .data in RAM | 8 * Size of .bss | 12 * Start of .bss in RAM | 16 */ /* encapfn_init is executed by the kernel to have it initialize its memory. * The kernel passes the following arguments: * * a0 Pointer to the encapfn_rtheader. * * After initialization, we are expected to return to the kernel by invoking * `ret` (`jalr x0, x1, 0`), where `a0` is used to indicate the initialization * status. `a0` = 0 is interpreted as successful initialization, all other * values indicate an error. `a1` must indicate the new stack pointer top, to * be used by the Encapsulated Functions runtime for stacking values, or * NULL if the top of the assigned memory region shall be used. */ .section .encapfn_init .globl encapfn_init encapfn_init: /* Make sure all of the provided parameters are word-aligned, but only * if there is actually any data to copy (otherwise the linker will * place them whereever): */ lw t1, 1*4(a0) /* remaining = encapfn_rtheader.data_size */ beqz t1, .Lzero_bss /* short circuit if we don't have data to copy */ /* andi t3, t1, 3 */ /* TODO: for some reason, the PhysAddr of load segments can be aligned to less than 4 bytes? */ /* bnez t3, .Linit_error */ lw t0, 0*4(a0) /* src = encapfn_rtheader.data_flash */ /* andi t3, t0, 3 */ /* bnez t3, .Linit_error */ lw t2, 2*4(a0) /* dest = encapfn_rtheader.data_ram */ /* andi t3, t2, 3 */ /* bnez t3, .Linit_error */ /* Copy data */ beqz t1, .Lzero_bss /* Jump to zero_bss if remaining is zero */ .Ldata_loop_body: lb t3, 0(t0) /* t3 = *src */ sb t3, 0(t2) /* *dest = t3 */ addi t0, t0, 1 /* src += 1 */ addi t1, t1, -1 /* remaining -= 1 */ addi t2, t2, 1 /* dest += 1 */ bnez t1, .Ldata_loop_body /* Loop if there's still data remaining */ .Lzero_bss: lw t0, 3*4(a0) /* remaining = rt_encapfn_rtheader.bss_size */ lw t1, 4*4(a0) /* dest = rt_encapfn_rtheader.bss_start */ add t2, t1, t0 /* end = dest + remaining */ /* Zero BSS */ beq t1, t2, .Linit_done /* Jump to init_done if no data to copy */ .Lbss_loop_body: sb zero, 0(t1) /* *dest = zero */ addi t1, t1, 1 /* dest += 1 */ bne t1, t2, .Lbss_loop_body /* Iterate again if dest != end */ .Linit_done: la sp, _stack_top /* Tell the runtime the location of _stack_top */ li a0, 0 /* Report no error */ ret /* .Linit_error: */ /* li a0, 1 */ /* ret */
engomondiii/Biometric_Attendance
8,955
Python-3.10.0/Modules/_ctypes/libffi_osx/x86/x86-darwin.S
#ifdef __i386__ /* ----------------------------------------------------------------------- darwin.S - Copyright (c) 1996, 1998, 2001, 2002, 2003 Red Hat, Inc. X86 Foreign Function Interface 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 CYGNUS SOLUTIONS 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. ----------------------------------------------------------------------- */ /* * This file is based on sysv.S and then hacked up by Ronald who hasn't done * assembly programming in 8 years. */ #ifndef __x86_64__ #define LIBFFI_ASM #include <fficonfig.h> #include <ffi.h> #ifdef PyObjC_STRICT_DEBUGGING /* XXX: Debugging of stack alignment, to be removed */ #define ASSERT_STACK_ALIGNED movdqa -16(%esp), %xmm0 #else #define ASSERT_STACK_ALIGNED #endif .text .globl _ffi_prep_args .align 4 .globl _ffi_call_SYSV _ffi_call_SYSV: LFB1: pushl %ebp LCFI0: movl %esp,%ebp LCFI1: subl $8,%esp /* Make room for all of the new args. */ movl 16(%ebp),%ecx subl %ecx,%esp movl %esp,%eax /* Place all of the ffi_prep_args in position */ subl $8,%esp pushl 12(%ebp) pushl %eax call *8(%ebp) /* Return stack to previous state and call the function */ addl $16,%esp call *28(%ebp) /* Remove the space we pushed for the args */ movl 16(%ebp),%ecx addl %ecx,%esp /* Load %ecx with the return type code */ movl 20(%ebp),%ecx /* If the return value pointer is NULL, assume no return value. */ cmpl $0,24(%ebp) jne Lretint /* Even if there is no space for the return value, we are obliged to handle floating-point values. */ cmpl $FFI_TYPE_FLOAT,%ecx jne Lnoretval fstp %st(0) jmp Lepilogue Lretint: cmpl $FFI_TYPE_INT,%ecx jne Lretfloat /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx movl %eax,0(%ecx) jmp Lepilogue Lretfloat: cmpl $FFI_TYPE_FLOAT,%ecx jne Lretdouble /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx fstps (%ecx) jmp Lepilogue Lretdouble: cmpl $FFI_TYPE_DOUBLE,%ecx jne Lretlongdouble /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx fstpl (%ecx) jmp Lepilogue Lretlongdouble: cmpl $FFI_TYPE_LONGDOUBLE,%ecx jne Lretint64 /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx fstpt (%ecx) jmp Lepilogue Lretint64: cmpl $FFI_TYPE_SINT64,%ecx jne Lretstruct1b /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx movl %eax,0(%ecx) movl %edx,4(%ecx) jmp Lepilogue Lretstruct1b: cmpl $FFI_TYPE_SINT8,%ecx jne Lretstruct2b /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx movb %al,0(%ecx) jmp Lepilogue Lretstruct2b: cmpl $FFI_TYPE_SINT16,%ecx jne Lretstruct /* Load %ecx with the pointer to storage for the return value */ movl 24(%ebp),%ecx movw %ax,0(%ecx) jmp Lepilogue Lretstruct: cmpl $FFI_TYPE_STRUCT,%ecx jne Lnoretval /* Nothing to do! */ addl $4,%esp popl %ebp ret Lnoretval: Lepilogue: addl $8,%esp movl %ebp,%esp popl %ebp ret LFE1: .ffi_call_SYSV_end: .align 4 FFI_HIDDEN (ffi_closure_SYSV) .globl _ffi_closure_SYSV _ffi_closure_SYSV: LFB2: pushl %ebp LCFI2: movl %esp, %ebp LCFI3: subl $56, %esp leal -40(%ebp), %edx movl %edx, -12(%ebp) /* resp */ leal 8(%ebp), %edx movl %edx, 4(%esp) /* args = __builtin_dwarf_cfa () */ leal -12(%ebp), %edx movl %edx, (%esp) /* &resp */ movl %ebx, 8(%esp) LCFI7: call L_ffi_closure_SYSV_inner$stub movl 8(%esp), %ebx movl -12(%ebp), %ecx cmpl $FFI_TYPE_INT, %eax je Lcls_retint cmpl $FFI_TYPE_FLOAT, %eax je Lcls_retfloat cmpl $FFI_TYPE_DOUBLE, %eax je Lcls_retdouble cmpl $FFI_TYPE_LONGDOUBLE, %eax je Lcls_retldouble cmpl $FFI_TYPE_SINT64, %eax je Lcls_retllong cmpl $FFI_TYPE_UINT8, %eax je Lcls_retstruct1 cmpl $FFI_TYPE_SINT8, %eax je Lcls_retstruct1 cmpl $FFI_TYPE_UINT16, %eax je Lcls_retstruct2 cmpl $FFI_TYPE_SINT16, %eax je Lcls_retstruct2 cmpl $FFI_TYPE_STRUCT, %eax je Lcls_retstruct Lcls_epilogue: movl %ebp, %esp popl %ebp ret Lcls_retint: movl (%ecx), %eax jmp Lcls_epilogue Lcls_retfloat: flds (%ecx) jmp Lcls_epilogue Lcls_retdouble: fldl (%ecx) jmp Lcls_epilogue Lcls_retldouble: fldt (%ecx) jmp Lcls_epilogue Lcls_retllong: movl (%ecx), %eax movl 4(%ecx), %edx jmp Lcls_epilogue Lcls_retstruct1: movsbl (%ecx), %eax jmp Lcls_epilogue Lcls_retstruct2: movswl (%ecx), %eax jmp Lcls_epilogue Lcls_retstruct: lea -8(%ebp),%esp movl %ebp, %esp popl %ebp ret $4 LFE2: #if !FFI_NO_RAW_API #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) & ~3) #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4) #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4) #define CIF_FLAGS_OFFSET 20 .align 4 FFI_HIDDEN (ffi_closure_raw_SYSV) .globl _ffi_closure_raw_SYSV _ffi_closure_raw_SYSV: LFB3: pushl %ebp LCFI4: movl %esp, %ebp LCFI5: pushl %esi LCFI6: subl $36, %esp movl RAW_CLOSURE_CIF_OFFSET(%eax), %esi /* closure->cif */ movl RAW_CLOSURE_USER_DATA_OFFSET(%eax), %edx /* closure->user_data */ movl %edx, 12(%esp) /* user_data */ leal 8(%ebp), %edx /* __builtin_dwarf_cfa () */ movl %edx, 8(%esp) /* raw_args */ leal -24(%ebp), %edx movl %edx, 4(%esp) /* &res */ movl %esi, (%esp) /* cif */ call *RAW_CLOSURE_FUN_OFFSET(%eax) /* closure->fun */ movl CIF_FLAGS_OFFSET(%esi), %eax /* rtype */ cmpl $FFI_TYPE_INT, %eax je Lrcls_retint cmpl $FFI_TYPE_FLOAT, %eax je Lrcls_retfloat cmpl $FFI_TYPE_DOUBLE, %eax je Lrcls_retdouble cmpl $FFI_TYPE_LONGDOUBLE, %eax je Lrcls_retldouble cmpl $FFI_TYPE_SINT64, %eax je Lrcls_retllong Lrcls_epilogue: addl $36, %esp popl %esi popl %ebp ret Lrcls_retint: movl -24(%ebp), %eax jmp Lrcls_epilogue Lrcls_retfloat: flds -24(%ebp) jmp Lrcls_epilogue Lrcls_retdouble: fldl -24(%ebp) jmp Lrcls_epilogue Lrcls_retldouble: fldt -24(%ebp) jmp Lrcls_epilogue Lrcls_retllong: movl -24(%ebp), %eax movl -20(%ebp), %edx jmp Lrcls_epilogue LFE3: #endif .section __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5 L_ffi_closure_SYSV_inner$stub: .indirect_symbol _ffi_closure_SYSV_inner hlt ; hlt ; hlt ; hlt ; hlt .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support EH_frame1: .set L$set$0,LECIE1-LSCIE1 .long L$set$0 LSCIE1: .long 0x0 .byte 0x1 .ascii "zR\0" .byte 0x1 .byte 0x7c .byte 0x8 .byte 0x1 .byte 0x10 .byte 0xc .byte 0x5 .byte 0x4 .byte 0x88 .byte 0x1 .align 2 LECIE1: .globl _ffi_call_SYSV.eh _ffi_call_SYSV.eh: LSFDE1: .set L$set$1,LEFDE1-LASFDE1 .long L$set$1 LASFDE1: .long LASFDE1-EH_frame1 .long LFB1-. .set L$set$2,LFE1-LFB1 .long L$set$2 .byte 0x0 .byte 0x4 .set L$set$3,LCFI0-LFB1 .long L$set$3 .byte 0xe .byte 0x8 .byte 0x84 .byte 0x2 .byte 0x4 .set L$set$4,LCFI1-LCFI0 .long L$set$4 .byte 0xd .byte 0x4 .align 2 LEFDE1: .globl _ffi_closure_SYSV.eh _ffi_closure_SYSV.eh: LSFDE2: .set L$set$5,LEFDE2-LASFDE2 .long L$set$5 LASFDE2: .long LASFDE2-EH_frame1 .long LFB2-. .set L$set$6,LFE2-LFB2 .long L$set$6 .byte 0x0 .byte 0x4 .set L$set$7,LCFI2-LFB2 .long L$set$7 .byte 0xe .byte 0x8 .byte 0x84 .byte 0x2 .byte 0x4 .set L$set$8,LCFI3-LCFI2 .long L$set$8 .byte 0xd .byte 0x4 .align 2 LEFDE2: #if !FFI_NO_RAW_API .globl _ffi_closure_raw_SYSV.eh _ffi_closure_raw_SYSV.eh: LSFDE3: .set L$set$10,LEFDE3-LASFDE3 .long L$set$10 LASFDE3: .long LASFDE3-EH_frame1 .long LFB3-. .set L$set$11,LFE3-LFB3 .long L$set$11 .byte 0x0 .byte 0x4 .set L$set$12,LCFI4-LFB3 .long L$set$12 .byte 0xe .byte 0x8 .byte 0x84 .byte 0x2 .byte 0x4 .set L$set$13,LCFI5-LCFI4 .long L$set$13 .byte 0xd .byte 0x4 .byte 0x4 .set L$set$14,LCFI6-LCFI5 .long L$set$14 .byte 0x85 .byte 0x3 .align 2 LEFDE3: #endif #endif /* ifndef __x86_64__ */ #endif /* defined __i386__ */