hexsha stringlengths 40 40 | size int64 6 1.05M | ext stringclasses 3 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 232 | max_stars_repo_name stringlengths 7 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 7 | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 232 | max_issues_repo_name stringlengths 7 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 7 | max_issues_count int64 1 37.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 232 | max_forks_repo_name stringlengths 7 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 7 | max_forks_count int64 1 12.6k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 6 1.05M | avg_line_length float64 1.16 19.7k | max_line_length int64 2 938k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01f015bc5275b5439500ed52d3f01e0671ecbce1 | 753 | asm | Assembly | books_and_notes/professional_courses/operating_system/sources/extra_books/Orange'S:自己动手写操作系统光盘源代码/chapter7/n/kernel/syscall.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/operating_system/sources/extra_books/Orange'S:自己动手写操作系统光盘源代码/chapter7/n/kernel/syscall.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/operating_system/sources/extra_books/Orange'S:自己动手写操作系统光盘源代码/chapter7/n/kernel/syscall.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z |
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; syscall.asm
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Forrest Yu, 2005
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%include "sconst.inc"
_NR_get_ticks equ 0 ; 要跟 global.c 中 sys_call_table 的定义相对应!
INT_VECTOR_SYS_CALL equ 0x90
; 导出符号
global get_ticks
bits 32
[section .text]
; ====================================================================
; get_ticks
; ====================================================================
get_ticks:
mov eax, _NR_get_ticks
int INT_VECTOR_SYS_CALL
ret
| 27.888889 | 72 | 0.278884 |
48f0242e051d09b489f5a5c507175ab12016c59b | 93 | asm | Assembly | mpmclab/week 1/apj4.asm | apurvjain9999/Microprocessor-8085 | 230f2f0715c4d5f17734a684f66d99dd35dd0cbe | [
"Apache-2.0"
] | null | null | null | mpmclab/week 1/apj4.asm | apurvjain9999/Microprocessor-8085 | 230f2f0715c4d5f17734a684f66d99dd35dd0cbe | [
"Apache-2.0"
] | null | null | null | mpmclab/week 1/apj4.asm | apurvjain9999/Microprocessor-8085 | 230f2f0715c4d5f17734a684f66d99dd35dd0cbe | [
"Apache-2.0"
] | null | null | null | LDA 5000H
MOV B,A
LDA 5002H
;ADD B
STA 5004H
LDA 5001H
MOV C,A
LDA 5003H
ADC C
;STA 5005H
hlt | 8.454545 | 10 | 0.741935 |
4de95054df1a49cca8ab265a4595b7f036961d61 | 754 | asm | Assembly | oeis/309/A309761.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/309/A309761.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/309/A309761.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A309761: Numbers that are sums of consecutive powers of 10.
; Submitted by Jon Maiga
; 1,10,11,100,110,111,1000,1100,1110,1111,10000,11000,11100,11110,11111,100000,110000,111000,111100,111110,111111,1000000,1100000,1110000,1111000,1111100,1111110,1111111,10000000,11000000,11100000,11110000,11111000,11111100,11111110,11111111,100000000,110000000,111000000,111100000,111110000,111111000,111111100,111111110,111111111,1000000000,1100000000,1110000000,1111000000,1111100000,1111110000,1111111000,1111111100,1111111110,1111111111,10000000000,11000000000,11100000000,11110000000,11111000000
seq $0,224195 ; Ordered sequence of numbers of form (2^n - 1)*2^m + 1 where n >= 1, m >= 1.
seq $0,204094 ; Numbers whose set of base 10 digits is {0,7}.
div $0,70
| 94.25 | 501 | 0.810345 |
3eea1f4bf7d86654a56efc0d643ee0e2837a3a18 | 1,233 | asm | Assembly | programs/oeis/118/A118729.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/118/A118729.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/118/A118729.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A118729: Infinite square array which contains the 8 numbers 4*r^2 - 3*r, 4*r^2 - 2*r, ..., 4*r^2 + 4*r in row r.
; 0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,10,12,14,16,18,20,22,24,27,30,33,36,39,42,45,48,52,56,60,64,68,72,76,80,85,90,95,100,105,110,115,120,126,132,138,144,150,156,162,168,175,182,189,196,203,210,217,224,232,240,248,256,264,272,280,288,297,306,315,324,333,342,351,360,370,380,390,400,410,420,430,440,451,462,473,484,495,506,517,528,540,552,564,576,588,600,612,624,637,650,663,676,689,702,715,728,742,756,770,784,798,812,826,840,855,870,885,900,915,930,945,960,976,992,1008,1024,1040,1056,1072,1088,1105,1122,1139,1156,1173,1190,1207,1224,1242,1260,1278,1296,1314,1332,1350,1368,1387,1406,1425,1444,1463,1482,1501,1520,1540,1560,1580,1600,1620,1640,1660,1680,1701,1722,1743,1764,1785,1806,1827,1848,1870,1892,1914,1936,1958,1980,2002,2024,2047,2070,2093,2116,2139,2162,2185,2208,2232,2256,2280,2304,2328,2352,2376,2400,2425,2450,2475,2500,2525,2550,2575,2600,2626,2652,2678,2704,2730,2756,2782,2808,2835,2862,2889,2916,2943,2970,2997,3024,3052,3080,3108,3136,3164,3192,3220,3248,3277,3306,3335,3364,3393,3422,3451,3480,3510,3540,3570,3600,3630,3660,3690,3720,3751,3782
sub $0,1
lpb $0
trn $0,6
add $1,$0
sub $0,2
lpe
| 123.3 | 1,062 | 0.737226 |
c9a93a2a38744be23fa6862c3dace2d9235b06c6 | 116 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2uchar.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2uchar.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2uchar.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC ___fs2uchar
EXTERN cm48_sdccixp_ds2uchar
defc ___fs2uchar = cm48_sdccixp_ds2uchar
| 12.888889 | 40 | 0.87069 |
59c43bd6e98146b509a992bb21b368426aba7b98 | 489 | asm | Assembly | Examples/ch10/Fibon.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | Examples/ch10/Fibon.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | Examples/ch10/Fibon.asm | satadriver/LiunuxOS | 693174ac2b3e503d72782fc7a14f18c8a4f2756c | [
"Apache-2.0"
] | null | null | null | TITLE Fibonacci Numbers (Finbon.asm)
; This program shows how use the WHILE directive
; to generate doubleword variables containing
; all Fibonacci numbers less than a given limit.
; Last update: 10/14/01
INCLUDE Irvine32.inc
.data
val1 = 1
val2 = 1
DWORD val1 ; first two values
DWORD val2
val3 = val1 + val2
WHILE val3 LT 0F0000000h
DWORD val3
val1 = val2
val2 = val3
val3 = val1 + val2
ENDM
.code
main PROC
exit
main ENDP
END main | 15.774194 | 49 | 0.676892 |
2102e3dd2556697a6e40670c905a943d6cd43d2c | 32,513 | asm | Assembly | src/sprite_minotauro_inf.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | src/sprite_minotauro_inf.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | src/sprite_minotauro_inf.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | ; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_idle.sev:
DEFB 77 ,122 ,168
DEFB 44 ,184 ,8
DEFB 8 ,17 ,128
DEFB 40 ,2 ,66
DEFB 12 ,74 ,208
DEFB 46 ,2 ,66
DEFB 62 ,1 ,132
DEFB 20 ,0 ,0
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_gira.sev:
DEFB 77 ,73 ,89
DEFB 44 ,193 ,154
DEFB 9 ,156 ,200
DEFB 40 ,34 ,10
DEFB 12 ,166 ,152
DEFB 46 ,34 ,58
DEFB 62 ,28 ,62
DEFB 20 ,0 ,20
DEFB 0 ,0 ,0
DEFB 1 ,128 ,192
DEFB 4 ,193 ,144
DEFB 1 ,65 ,64
DEFB 4 ,227 ,144
DEFB 1 ,99 ,64
DEFB 4 ,227 ,144
DEFB 1 ,99 ,64
DEFB 2 ,227 ,160
DEFB 5 ,193 ,208
DEFB 10 ,128 ,168
DEFB 5 ,4 ,80
DEFB 10 ,2 ,40
DEFB 4 ,1 ,16
DEFB 10 ,2 ,40
DEFB 4 ,1 ,16
DEFB 10 ,2 ,40
DEFB 2 ,0 ,32
DEFB 6 ,0 ,48
DEFB 10 ,0 ,40
DEFB 12 ,0 ,24
DEFB 7 ,0 ,112
DEFB 6 ,128 ,176
DEFB 2 ,128 ,160
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_camina.sev:
DEFB 50 ,240 ,16
DEFB 144 ,99 ,0
DEFB 80 ,4 ,132
DEFB 8 ,149 ,138
DEFB 72 ,4 ,132
DEFB 24 ,3 ,10
DEFB 60 ,0 ,0
DEFB 60 ,0 ,0
DEFB 8 ,96 ,0
DEFB 64 ,241 ,64
DEFB 132 ,96 ,160
DEFB 128 ,241 ,64
DEFB 68 ,96 ,160
DEFB 32 ,240 ,80
DEFB 20 ,112 ,40
DEFB 16 ,224 ,80
DEFB 32 ,96 ,168
DEFB 66 ,165 ,80
DEFB 133 ,74 ,128
DEFB 194 ,148 ,0
DEFB 197 ,8 ,0
DEFB 74 ,16 ,0
DEFB 36 ,32 ,0
DEFB 10 ,16 ,0
DEFB 4 ,32 ,0
DEFB 10 ,16 ,0
DEFB 6 ,8 ,0
DEFB 10 ,20 ,0
DEFB 12 ,8 ,0
DEFB 7 ,128 ,0
DEFB 6 ,128 ,0
DEFB 2 ,128 ,0
DEFB 0 ,12 ,168
DEFB 0 ,134 ,144
DEFB 0 ,66 ,36
DEFB 0 ,49 ,4
DEFB 0 ,9 ,128
DEFB 6 ,0 ,192
DEFB 8 ,1 ,192
DEFB 16 ,1 ,128
DEFB 17 ,16 ,0
DEFB 8 ,56 ,0
DEFB 9 ,28 ,32
DEFB 16 ,60 ,80
DEFB 34 ,28 ,40
DEFB 64 ,61 ,20
DEFB 194 ,24 ,40
DEFB 192 ,57 ,20
DEFB 192 ,56 ,10
DEFB 65 ,80 ,133
DEFB 34 ,160 ,74
DEFB 9 ,0 ,36
DEFB 4 ,0 ,80
DEFB 10 ,0 ,160
DEFB 4 ,0 ,80
DEFB 8 ,0 ,40
DEFB 20 ,0 ,20
DEFB 8 ,0 ,10
DEFB 20 ,0 ,5
DEFB 8 ,0 ,2
DEFB 12 ,0 ,5
DEFB 7 ,128 ,2
DEFB 6 ,128 ,0
DEFB 2 ,128 ,0
DEFB 8 ,64 ,0
DEFB 0 ,241 ,128
DEFB 0 ,63 ,192
DEFB 4 ,2 ,64
DEFB 0 ,4 ,64
DEFB 1 ,82 ,128
DEFB 2 ,0 ,0
DEFB 24 ,0 ,0
DEFB 34 ,12 ,0
DEFB 32 ,14 ,0
DEFB 17 ,7 ,0
DEFB 8 ,131 ,0
DEFB 68 ,5 ,128
DEFB 228 ,66 ,128
DEFB 216 ,161 ,128
DEFB 128 ,16 ,192
DEFB 64 ,0 ,64
DEFB 0 ,74 ,192
DEFB 0 ,149 ,0
DEFB 1 ,72 ,0
DEFB 0 ,128 ,0
DEFB 0 ,64 ,0
DEFB 0 ,168 ,0
DEFB 0 ,64 ,0
DEFB 0 ,40 ,0
DEFB 0 ,96 ,0
DEFB 1 ,232 ,0
DEFB 0 ,96 ,0
DEFB 1 ,200 ,0
DEFB 0 ,4 ,0
DEFB 0 ,2 ,0
DEFB 0 ,5 ,0
DEFB 0 ,114 ,98
DEFB 4 ,50 ,146
DEFB 2 ,56 ,180
DEFB 1 ,8 ,144
DEFB 0 ,76 ,96
DEFB 0 ,6 ,0
DEFB 0 ,38 ,0
DEFB 1 ,158 ,72
DEFB 6 ,32 ,96
DEFB 8 ,32 ,48
DEFB 8 ,16 ,80
DEFB 6 ,8 ,40
DEFB 1 ,4 ,24
DEFB 33 ,2 ,8
DEFB 66 ,9 ,20
DEFB 124 ,20 ,140
DEFB 56 ,8 ,2
DEFB 0 ,16 ,82
DEFB 0 ,2 ,172
DEFB 0 ,4 ,80
DEFB 0 ,2 ,0
DEFB 0 ,5 ,0
DEFB 0 ,2 ,0
DEFB 0 ,1 ,0
DEFB 0 ,2 ,0
DEFB 0 ,7 ,0
DEFB 0 ,3 ,128
DEFB 0 ,3 ,192
DEFB 0 ,1 ,64
DEFB 0 ,1 ,64
DEFB 0 ,0 ,0
DEFB 0 ,1 ,64
DEFB 137 ,96 ,32
DEFB 153 ,224 ,32
DEFB 92 ,227 ,40
DEFB 12 ,68 ,160
DEFB 44 ,5 ,136
DEFB 4 ,0 ,128
DEFB 18 ,20 ,0
DEFB 1 ,14 ,0
DEFB 19 ,7 ,128
DEFB 14 ,11 ,128
DEFB 32 ,133 ,192
DEFB 32 ,66 ,192
DEFB 28 ,33 ,224
DEFB 2 ,16 ,64
DEFB 1 ,8 ,0
DEFB 1 ,2 ,128
DEFB 3 ,21 ,0
DEFB 7 ,74 ,0
DEFB 6 ,32 ,0
DEFB 8 ,16 ,0
DEFB 0 ,40 ,0
DEFB 0 ,24 ,0
DEFB 0 ,140 ,0
DEFB 0 ,20 ,0
DEFB 0 ,136 ,0
DEFB 1 ,12 ,0
DEFB 2 ,7 ,128
DEFB 1 ,6 ,128
DEFB 2 ,2 ,128
DEFB 1 ,0 ,0
DEFB 0 ,128 ,0
DEFB 1 ,64 ,0
DEFB 2 ,86 ,82
DEFB 19 ,46 ,170
DEFB 11 ,22 ,2
DEFB 1 ,174 ,98
DEFB 0 ,130 ,146
DEFB 4 ,128 ,176
DEFB 0 ,192 ,144
DEFB 5 ,192 ,96
DEFB 3 ,131 ,0
DEFB 16 ,7 ,144
DEFB 32 ,3 ,128
DEFB 64 ,71 ,144
DEFB 70 ,3 ,192
DEFB 75 ,39 ,192
DEFB 51 ,3 ,192
DEFB 1 ,39 ,192
DEFB 2 ,3 ,192
DEFB 0 ,5 ,128
DEFB 0 ,18 ,0
DEFB 0 ,40 ,0
DEFB 0 ,16 ,0
DEFB 0 ,40 ,0
DEFB 0 ,144 ,0
DEFB 0 ,72 ,0
DEFB 0 ,148 ,0
DEFB 1 ,8 ,0
DEFB 0 ,132 ,0
DEFB 1 ,10 ,0
DEFB 0 ,134 ,0
DEFB 1 ,7 ,128
DEFB 0 ,134 ,128
DEFB 1 ,66 ,128
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_cae.sev:
DEFB 165 ,197 ,16
DEFB 8 ,226 ,8
DEFB 73 ,240 ,16
DEFB 50 ,166 ,0
DEFB 0 ,9 ,64
DEFB 149 ,43 ,0
DEFB 192 ,9 ,0
DEFB 80 ,6 ,20
DEFB 193 ,0 ,42
DEFB 80 ,192 ,5
DEFB 136 ,96 ,2
DEFB 128 ,176 ,5
DEFB 132 ,88 ,10
DEFB 64 ,56 ,68
DEFB 66 ,24 ,8
DEFB 32 ,44 ,144
DEFB 25 ,28 ,8
DEFB 0 ,136 ,84
DEFB 0 ,64 ,8
DEFB 0 ,160 ,36
DEFB 1 ,64 ,10
DEFB 2 ,128 ,5
DEFB 1 ,0 ,2
DEFB 2 ,128 ,5
DEFB 1 ,64 ,2
DEFB 0 ,128 ,0
DEFB 1 ,64 ,0
DEFB 0 ,248 ,0
DEFB 0 ,104 ,0
DEFB 0 ,40 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 162 ,106 ,34
DEFB 34 ,225 ,32
DEFB 164 ,96 ,36
DEFB 4 ,165 ,16
DEFB 73 ,114 ,144
DEFB 50 ,245 ,136
DEFB 5 ,227 ,48
DEFB 10 ,128 ,64
DEFB 16 ,12 ,0
DEFB 130 ,18 ,0
DEFB 80 ,86 ,0
DEFB 192 ,18 ,0
DEFB 208 ,12 ,0
DEFB 128 ,160 ,128
DEFB 137 ,225 ,64
DEFB 64 ,240 ,160
DEFB 65 ,120 ,64
DEFB 32 ,188 ,32
DEFB 28 ,92 ,80
DEFB 0 ,46 ,32
DEFB 0 ,142 ,16
DEFB 1 ,84 ,32
DEFB 2 ,168 ,64
DEFB 5 ,1 ,0
DEFB 10 ,2 ,0
DEFB 4 ,4 ,0
DEFB 10 ,8 ,0
DEFB 8 ,4 ,0
DEFB 12 ,8 ,0
DEFB 7 ,133 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_agacha.sev:
DEFB 0 ,19 ,124
DEFB 0 ,12 ,232
DEFB 0 ,6 ,182
DEFB 0 ,41 ,192
DEFB 0 ,92 ,252
DEFB 0 ,178 ,232
DEFB 0 ,102 ,125
DEFB 4 ,175 ,66
DEFB 0 ,30 ,57
DEFB 8 ,64 ,18
DEFB 1 ,6 ,64
DEFB 19 ,79 ,8
DEFB 5 ,15 ,82
DEFB 19 ,79 ,16
DEFB 7 ,38 ,34
DEFB 19 ,132 ,64
DEFB 81 ,162 ,2
DEFB 144 ,7 ,0
DEFB 144 ,39 ,64
DEFB 128 ,135 ,34
DEFB 145 ,38 ,80
DEFB 74 ,150 ,10
DEFB 37 ,66 ,16
DEFB 16 ,18 ,42
DEFB 16 ,10 ,80
DEFB 33 ,65 ,32
DEFB 74 ,131 ,68
DEFB 148 ,3 ,10
DEFB 128 ,6 ,20
DEFB 75 ,140 ,8
DEFB 102 ,128 ,128
DEFB 50 ,129 ,64
DEFB 0 ,6 ,214
DEFB 0 ,7 ,122
DEFB 0 ,3 ,124
DEFB 0 ,0 ,232
DEFB 0 ,40 ,182
DEFB 2 ,90 ,64
DEFB 4 ,183 ,124
DEFB 0 ,103 ,105
DEFB 16 ,175 ,124
DEFB 0 ,30 ,65
DEFB 32 ,66 ,58
DEFB 0 ,7 ,16
DEFB 64 ,79 ,64
DEFB 2 ,15 ,34
DEFB 67 ,79 ,0
DEFB 1 ,38 ,2
DEFB 64 ,132 ,0
DEFB 0 ,162 ,34
DEFB 32 ,7 ,80
DEFB 84 ,39 ,40
DEFB 138 ,135 ,2
DEFB 133 ,86 ,8
DEFB 128 ,166 ,18
DEFB 64 ,74 ,40
DEFB 32 ,2 ,82
DEFB 16 ,162 ,32
DEFB 5 ,69 ,64
DEFB 10 ,11 ,4
DEFB 96 ,3 ,10
DEFB 203 ,134 ,20
DEFB 230 ,140 ,8
DEFB 114 ,128 ,128
DEFB 19 ,112 ,64
DEFB 37 ,53 ,64
DEFB 7 ,112 ,64
DEFB 39 ,48 ,64
DEFB 6 ,117 ,32
DEFB 42 ,178 ,32
DEFB 12 ,85 ,32
DEFB 38 ,179 ,32
DEFB 6 ,85 ,32
DEFB 19 ,32 ,104
DEFB 1 ,12 ,0
DEFB 9 ,146 ,40
DEFB 4 ,150 ,20
DEFB 18 ,66 ,8
DEFB 16 ,228 ,148
DEFB 9 ,97 ,72
DEFB 8 ,192 ,128
DEFB 8 ,0 ,64
DEFB 18 ,160 ,160
DEFB 33 ,112 ,64
DEFB 66 ,160 ,160
DEFB 69 ,64 ,64
DEFB 66 ,0 ,128
DEFB 40 ,18 ,0
DEFB 36 ,0 ,0
DEFB 40 ,4 ,0
DEFB 196 ,0 ,0
DEFB 72 ,18 ,0
DEFB 204 ,8 ,0
DEFB 135 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_saca_espada.sev:
DEFB 5 ,90 ,41
DEFB 2 ,185 ,72
DEFB 49 ,122 ,169
DEFB 72 ,184 ,10
DEFB 128 ,17 ,128
DEFB 128 ,2 ,64
DEFB 128 ,74 ,208
DEFB 128 ,2 ,64
DEFB 64 ,1 ,128
DEFB 32 ,128 ,0
DEFB 36 ,96 ,0
DEFB 32 ,240 ,0
DEFB 68 ,120 ,32
DEFB 128 ,240 ,64
DEFB 196 ,120 ,160
DEFB 128 ,240 ,64
DEFB 194 ,112 ,160
DEFB 69 ,97 ,64
DEFB 10 ,128 ,128
DEFB 21 ,1 ,0
DEFB 40 ,2 ,0
DEFB 16 ,4 ,0
DEFB 8 ,8 ,0
DEFB 20 ,0 ,0
DEFB 10 ,4 ,0
DEFB 2 ,0 ,0
DEFB 6 ,2 ,0
DEFB 10 ,0 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_idle_espada.sev:
DEFB 84 ,24 ,212
DEFB 0 ,125 ,160
DEFB 4 ,122 ,128
DEFB 0 ,52 ,0
DEFB 8 ,0 ,64
DEFB 1 ,18 ,208
DEFB 8 ,2 ,64
DEFB 4 ,1 ,128
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_camina_espada.sev:
DEFB 10 ,131 ,52
DEFB 0 ,15 ,104
DEFB 0 ,143 ,32
DEFB 0 ,6 ,0
DEFB 1 ,0 ,16
DEFB 0 ,34 ,52
DEFB 2 ,0 ,144
DEFB 0 ,0 ,96
DEFB 2 ,0 ,0
DEFB 12 ,24 ,0
DEFB 50 ,24 ,40
DEFB 64 ,44 ,16
DEFB 130 ,28 ,40
DEFB 129 ,46 ,80
DEFB 128 ,22 ,32
DEFB 64 ,143 ,80
DEFB 32 ,71 ,32
DEFB 16 ,10 ,64
DEFB 48 ,0 ,128
DEFB 49 ,41 ,0
DEFB 98 ,80 ,0
DEFB 1 ,33 ,0
DEFB 0 ,80 ,0
DEFB 0 ,33 ,0
DEFB 0 ,16 ,0
DEFB 0 ,41 ,0
DEFB 0 ,16 ,0
DEFB 0 ,8 ,0
DEFB 0 ,14 ,0
DEFB 0 ,7 ,128
DEFB 0 ,6 ,128
DEFB 0 ,2 ,128
DEFB 5 ,65 ,141
DEFB 0 ,7 ,218
DEFB 0 ,71 ,168
DEFB 0 ,3 ,64
DEFB 0 ,128 ,4
DEFB 0 ,17 ,45
DEFB 0 ,128 ,36
DEFB 0 ,0 ,24
DEFB 0 ,0 ,0
DEFB 12 ,2 ,0
DEFB 48 ,135 ,5
DEFB 64 ,11 ,10
DEFB 128 ,71 ,4
DEFB 128 ,3 ,10
DEFB 128 ,37 ,132
DEFB 64 ,3 ,136
DEFB 32 ,33 ,132
DEFB 16 ,75 ,136
DEFB 48 ,23 ,144
DEFB 48 ,75 ,0
DEFB 96 ,16 ,32
DEFB 0 ,8 ,0
DEFB 0 ,16 ,64
DEFB 0 ,8 ,0
DEFB 0 ,16 ,64
DEFB 0 ,8 ,0
DEFB 0 ,0 ,64
DEFB 0 ,8 ,32
DEFB 0 ,14 ,0
DEFB 0 ,7 ,144
DEFB 0 ,6 ,136
DEFB 0 ,2 ,148
DEFB 84 ,24 ,208
DEFB 0 ,125 ,160
DEFB 4 ,122 ,128
DEFB 0 ,52 ,0
DEFB 8 ,0 ,64
DEFB 1 ,18 ,208
DEFB 8 ,2 ,64
DEFB 4 ,1 ,128
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_golpealto.sev:
DEFB 0 ,18 ,192
DEFB 28 ,17 ,80
DEFB 34 ,34 ,200
DEFB 65 ,69 ,80
DEFB 128 ,250 ,200
DEFB 129 ,13 ,144
DEFB 130 ,7 ,128
DEFB 64 ,35 ,24
DEFB 36 ,112 ,40
DEFB 16 ,112 ,80
DEFB 20 ,176 ,96
DEFB 16 ,80 ,0
DEFB 100 ,176 ,32
DEFB 196 ,112 ,16
DEFB 194 ,184 ,40
DEFB 128 ,88 ,20
DEFB 74 ,184 ,8
DEFB 17 ,120 ,20
DEFB 8 ,240 ,10
DEFB 20 ,96 ,132
DEFB 8 ,0 ,80
DEFB 4 ,0 ,32
DEFB 8 ,0 ,80
DEFB 4 ,0 ,32
DEFB 10 ,0 ,16
DEFB 4 ,0 ,40
DEFB 10 ,0 ,16
DEFB 12 ,0 ,4
DEFB 7 ,128 ,10
DEFB 7 ,128 ,5
DEFB 2 ,128 ,0
DEFB 2 ,128 ,0
DEFB 64 ,6 ,214
DEFB 0 ,7 ,122
DEFB 0 ,3 ,124
DEFB 0 ,0 ,232
DEFB 0 ,40 ,182
DEFB 2 ,90 ,64
DEFB 4 ,183 ,124
DEFB 1 ,103 ,105
DEFB 18 ,175 ,124
DEFB 1 ,30 ,65
DEFB 34 ,2 ,58
DEFB 1 ,28 ,16
DEFB 72 ,14 ,65
DEFB 22 ,23 ,34
DEFB 75 ,11 ,1
DEFB 23 ,135 ,2
DEFB 75 ,193 ,129
DEFB 5 ,194 ,130
DEFB 32 ,225 ,1
DEFB 84 ,48 ,224
DEFB 138 ,144 ,112
DEFB 133 ,68 ,184
DEFB 128 ,162 ,72
DEFB 64 ,65 ,4
DEFB 32 ,0 ,67
DEFB 16 ,160 ,23
DEFB 5 ,68 ,3
DEFB 10 ,10 ,161
DEFB 96 ,4 ,80
DEFB 203 ,129 ,0
DEFB 230 ,130 ,128
DEFB 114 ,129 ,64
DEFB 0 ,10 ,170
DEFB 0 ,5 ,84
DEFB 0 ,10 ,170
DEFB 0 ,5 ,84
DEFB 0 ,10 ,170
DEFB 0 ,5 ,84
DEFB 0 ,10 ,170
DEFB 0 ,5 ,85
DEFB 0 ,10 ,170
DEFB 0 ,5 ,85
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,10 ,170
DEFB 0 ,21 ,85
DEFB 0 ,42 ,170
DEFB 128 ,21 ,85
DEFB 64 ,42 ,170
DEFB 128 ,21 ,85
DEFB 64 ,42 ,170
DEFB 0 ,21 ,84
DEFB 192 ,10 ,170
DEFB 184 ,1 ,84
DEFB 223 ,192 ,42
DEFB 133 ,120 ,0
DEFB 0 ,178 ,188
DEFB 0 ,21 ,126
DEFB 0 ,2 ,106
DEFB 0 ,0 ,52
DEFB 19 ,112 ,22
DEFB 37 ,53 ,40
DEFB 7 ,112 ,20
DEFB 39 ,48 ,40
DEFB 6 ,116 ,80
DEFB 42 ,176 ,192
DEFB 12 ,85 ,160
DEFB 38 ,177 ,64
DEFB 6 ,83 ,128
DEFB 19 ,38 ,136
DEFB 1 ,13 ,0
DEFB 9 ,138 ,40
DEFB 4 ,156 ,20
DEFB 18 ,72 ,8
DEFB 16 ,224 ,148
DEFB 9 ,97 ,72
DEFB 8 ,192 ,128
DEFB 8 ,0 ,64
DEFB 18 ,160 ,160
DEFB 33 ,112 ,64
DEFB 66 ,160 ,160
DEFB 69 ,64 ,64
DEFB 66 ,0 ,128
DEFB 40 ,18 ,0
DEFB 36 ,0 ,0
DEFB 40 ,4 ,0
DEFB 196 ,0 ,0
DEFB 72 ,18 ,0
DEFB 204 ,8 ,0
DEFB 135 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_golpeadelante.sev:
DEFB 2 ,234 ,8
DEFB 5 ,228 ,8
DEFB 3 ,224 ,8
DEFB 0 ,224 ,0
DEFB 8 ,0 ,64
DEFB 1 ,18 ,208
DEFB 8 ,2 ,64
DEFB 4 ,1 ,128
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 2 ,111 ,128
DEFB 1 ,157 ,0
DEFB 0 ,214 ,192
DEFB 5 ,56 ,0
DEFB 11 ,159 ,128
DEFB 22 ,93 ,0
DEFB 44 ,231 ,128
DEFB 21 ,240 ,0
DEFB 2 ,124 ,0
DEFB 136 ,190 ,240
DEFB 4 ,85 ,254
DEFB 64 ,0 ,213
DEFB 40 ,2 ,0
DEFB 21 ,0 ,169
DEFB 130 ,168 ,0
DEFB 32 ,85 ,85
DEFB 84 ,10 ,170
DEFB 138 ,160 ,85
DEFB 128 ,112 ,0
DEFB 128 ,0 ,160
DEFB 151 ,1 ,80
DEFB 75 ,138 ,160
DEFB 37 ,196 ,0
DEFB 16 ,192 ,128
DEFB 16 ,5 ,0
DEFB 33 ,74 ,0
DEFB 74 ,148 ,0
DEFB 148 ,8 ,0
DEFB 128 ,4 ,0
DEFB 75 ,138 ,0
DEFB 102 ,132 ,128
DEFB 50 ,129 ,64
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 112 ,28 ,174
DEFB 231 ,253 ,79
DEFB 234 ,172 ,161
DEFB 240 ,21 ,0
DEFB 96 ,0 ,21
DEFB 0 ,170 ,170
DEFB 85 ,85 ,84
DEFB 170 ,170 ,128
DEFB 85 ,64 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 19 ,112 ,22
DEFB 37 ,53 ,40
DEFB 7 ,112 ,20
DEFB 39 ,48 ,40
DEFB 6 ,116 ,80
DEFB 42 ,176 ,192
DEFB 12 ,85 ,160
DEFB 38 ,177 ,64
DEFB 6 ,83 ,128
DEFB 19 ,38 ,136
DEFB 1 ,13 ,0
DEFB 9 ,138 ,40
DEFB 4 ,156 ,20
DEFB 18 ,72 ,8
DEFB 16 ,224 ,148
DEFB 9 ,97 ,72
DEFB 8 ,192 ,128
DEFB 8 ,0 ,64
DEFB 18 ,160 ,160
DEFB 33 ,112 ,64
DEFB 66 ,160 ,160
DEFB 69 ,64 ,64
DEFB 66 ,0 ,128
DEFB 40 ,18 ,0
DEFB 36 ,0 ,0
DEFB 40 ,4 ,0
DEFB 196 ,0 ,0
DEFB 72 ,18 ,0
DEFB 204 ,8 ,0
DEFB 135 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_comboadelante.sev:
DEFB 2 ,111 ,128
DEFB 1 ,157 ,0
DEFB 0 ,214 ,192
DEFB 5 ,56 ,0
DEFB 11 ,159 ,128
DEFB 22 ,93 ,0
DEFB 44 ,231 ,128
DEFB 21 ,240 ,0
DEFB 2 ,124 ,0
DEFB 136 ,190 ,240
DEFB 4 ,85 ,254
DEFB 64 ,0 ,213
DEFB 40 ,2 ,0
DEFB 21 ,0 ,169
DEFB 130 ,168 ,0
DEFB 32 ,85 ,85
DEFB 84 ,10 ,170
DEFB 138 ,160 ,85
DEFB 128 ,112 ,0
DEFB 128 ,0 ,160
DEFB 151 ,1 ,80
DEFB 75 ,138 ,160
DEFB 37 ,196 ,0
DEFB 16 ,192 ,128
DEFB 16 ,5 ,0
DEFB 33 ,74 ,0
DEFB 74 ,148 ,0
DEFB 148 ,8 ,0
DEFB 128 ,4 ,0
DEFB 75 ,138 ,0
DEFB 102 ,132 ,128
DEFB 50 ,129 ,64
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 112 ,28 ,174
DEFB 231 ,253 ,79
DEFB 234 ,172 ,161
DEFB 240 ,21 ,0
DEFB 96 ,0 ,21
DEFB 0 ,170 ,170
DEFB 85 ,85 ,84
DEFB 170 ,170 ,128
DEFB 85 ,64 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_golpebajo.sev:
DEFB 11 ,240 ,64
DEFB 69 ,242 ,26
DEFB 3 ,241 ,79
DEFB 5 ,250 ,199
DEFB 34 ,249 ,68
DEFB 1 ,252 ,192
DEFB 34 ,249 ,131
DEFB 17 ,240 ,1
DEFB 34 ,204 ,3
DEFB 16 ,18 ,1
DEFB 8 ,86 ,3
DEFB 20 ,18 ,5
DEFB 74 ,12 ,131
DEFB 36 ,0 ,71
DEFB 74 ,0 ,167
DEFB 133 ,1 ,75
DEFB 130 ,128 ,142
DEFB 113 ,64 ,22
DEFB 8 ,160 ,6
DEFB 9 ,84 ,18
DEFB 112 ,170 ,40
DEFB 132 ,84 ,80
DEFB 194 ,40 ,168
DEFB 200 ,17 ,16
DEFB 100 ,9 ,192
DEFB 40 ,3 ,160
DEFB 4 ,3 ,64
DEFB 8 ,17 ,128
DEFB 12 ,8 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 80 ,143 ,165
DEFB 160 ,175 ,72
DEFB 1 ,159 ,160
DEFB 1 ,191 ,74
DEFB 1 ,95 ,148
DEFB 0 ,63 ,74
DEFB 2 ,95 ,150
DEFB 0 ,47 ,170
DEFB 0 ,179 ,28
DEFB 8 ,4 ,168
DEFB 1 ,21 ,128
DEFB 16 ,4 ,128
DEFB 80 ,3 ,32
DEFB 136 ,224 ,16
DEFB 132 ,112 ,40
DEFB 66 ,184 ,20
DEFB 33 ,112 ,8
DEFB 16 ,240 ,20
DEFB 18 ,178 ,168
DEFB 33 ,113 ,16
DEFB 66 ,162 ,128
DEFB 133 ,64 ,0
DEFB 194 ,0 ,0
DEFB 200 ,64 ,0
DEFB 68 ,40 ,0
DEFB 40 ,5 ,0
DEFB 4 ,2 ,160
DEFB 8 ,16 ,80
DEFB 12 ,8 ,42
DEFB 7 ,129 ,1
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 0 ,0 ,42
DEFB 0 ,0 ,21
DEFB 0 ,0 ,42
DEFB 0 ,0 ,20
DEFB 0 ,0 ,42
DEFB 0 ,0 ,20
DEFB 0 ,0 ,42
DEFB 0 ,0 ,20
DEFB 0 ,0 ,40
DEFB 0 ,0 ,84
DEFB 0 ,0 ,40
DEFB 0 ,0 ,84
DEFB 0 ,0 ,40
DEFB 0 ,0 ,80
DEFB 0 ,0 ,168
DEFB 0 ,0 ,80
DEFB 0 ,0 ,160
DEFB 0 ,1 ,64
DEFB 0 ,2 ,160
DEFB 0 ,1 ,64
DEFB 0 ,2 ,128
DEFB 0 ,5 ,0
DEFB 0 ,42 ,0
DEFB 0 ,84 ,0
DEFB 0 ,168 ,0
DEFB 1 ,80 ,0
DEFB 10 ,128 ,0
DEFB 21 ,0 ,0
DEFB 170 ,0 ,0
DEFB 80 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 19 ,112 ,22
DEFB 37 ,53 ,40
DEFB 7 ,112 ,20
DEFB 39 ,48 ,40
DEFB 6 ,116 ,80
DEFB 42 ,176 ,192
DEFB 12 ,85 ,160
DEFB 38 ,177 ,64
DEFB 6 ,83 ,128
DEFB 19 ,38 ,136
DEFB 1 ,13 ,0
DEFB 9 ,138 ,40
DEFB 4 ,156 ,20
DEFB 18 ,72 ,8
DEFB 16 ,224 ,148
DEFB 9 ,97 ,72
DEFB 8 ,192 ,128
DEFB 8 ,0 ,64
DEFB 18 ,160 ,160
DEFB 33 ,112 ,64
DEFB 66 ,160 ,160
DEFB 69 ,64 ,64
DEFB 66 ,0 ,128
DEFB 40 ,18 ,0
DEFB 36 ,0 ,0
DEFB 40 ,4 ,0
DEFB 196 ,0 ,0
DEFB 72 ,18 ,0
DEFB 204 ,8 ,0
DEFB 135 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_golpeatras.sev:
DEFB 2 ,234 ,8
DEFB 5 ,228 ,8
DEFB 3 ,224 ,8
DEFB 0 ,224 ,0
DEFB 8 ,0 ,64
DEFB 1 ,18 ,208
DEFB 8 ,2 ,64
DEFB 4 ,1 ,128
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 2 ,111 ,128
DEFB 1 ,157 ,0
DEFB 0 ,214 ,192
DEFB 5 ,56 ,0
DEFB 11 ,159 ,128
DEFB 22 ,93 ,0
DEFB 44 ,231 ,128
DEFB 21 ,240 ,0
DEFB 2 ,124 ,0
DEFB 136 ,190 ,240
DEFB 4 ,85 ,254
DEFB 64 ,0 ,213
DEFB 40 ,2 ,0
DEFB 21 ,0 ,169
DEFB 130 ,168 ,0
DEFB 32 ,85 ,85
DEFB 84 ,10 ,170
DEFB 138 ,160 ,85
DEFB 128 ,112 ,0
DEFB 128 ,0 ,160
DEFB 151 ,1 ,80
DEFB 75 ,138 ,160
DEFB 37 ,196 ,0
DEFB 16 ,192 ,128
DEFB 16 ,5 ,0
DEFB 33 ,74 ,0
DEFB 74 ,148 ,0
DEFB 148 ,8 ,0
DEFB 128 ,4 ,0
DEFB 75 ,138 ,0
DEFB 102 ,132 ,128
DEFB 50 ,129 ,64
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 112 ,28 ,174
DEFB 231 ,253 ,79
DEFB 234 ,172 ,161
DEFB 240 ,21 ,0
DEFB 96 ,0 ,21
DEFB 0 ,170 ,170
DEFB 85 ,85 ,84
DEFB 170 ,170 ,128
DEFB 85 ,64 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 19 ,112 ,22
DEFB 37 ,53 ,40
DEFB 7 ,112 ,20
DEFB 39 ,48 ,40
DEFB 6 ,116 ,80
DEFB 42 ,176 ,192
DEFB 12 ,85 ,160
DEFB 38 ,177 ,64
DEFB 6 ,83 ,128
DEFB 19 ,38 ,136
DEFB 1 ,13 ,0
DEFB 9 ,138 ,40
DEFB 4 ,156 ,20
DEFB 18 ,72 ,8
DEFB 16 ,224 ,148
DEFB 9 ,97 ,72
DEFB 8 ,192 ,128
DEFB 8 ,0 ,64
DEFB 18 ,160 ,160
DEFB 33 ,112 ,64
DEFB 66 ,160 ,160
DEFB 69 ,64 ,64
DEFB 66 ,0 ,128
DEFB 40 ,18 ,0
DEFB 36 ,0 ,0
DEFB 40 ,4 ,0
DEFB 196 ,0 ,0
DEFB 72 ,18 ,0
DEFB 204 ,8 ,0
DEFB 135 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_espada_ouch.sev:
DEFB 174 ,56 ,73
DEFB 95 ,252 ,42
DEFB 58 ,148 ,28
DEFB 21 ,40 ,127
DEFB 0 ,16 ,28
DEFB 0 ,6 ,42
DEFB 18 ,73 ,73
DEFB 0 ,11 ,0
DEFB 16 ,9 ,0
DEFB 1 ,134 ,16
DEFB 0 ,192 ,40
DEFB 17 ,96 ,84
DEFB 0 ,240 ,42
DEFB 40 ,57 ,4
DEFB 32 ,24 ,138
DEFB 34 ,28 ,1
DEFB 32 ,140 ,2
DEFB 16 ,70 ,1
DEFB 16 ,6 ,18
DEFB 8 ,8 ,36
DEFB 4 ,148 ,64
DEFB 0 ,40 ,6
DEFB 1 ,0 ,124
DEFB 2 ,163 ,240
DEFB 1 ,80 ,0
DEFB 0 ,160 ,40
DEFB 0 ,16 ,16
DEFB 0 ,43 ,14
DEFB 0 ,21 ,133
DEFB 0 ,14 ,2
DEFB 0 ,3 ,0
DEFB 0 ,0 ,0
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 6
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
minotauro_inf_muere.sev:
DEFB 77 ,106 ,168
DEFB 44 ,184 ,8
DEFB 8 ,17 ,128
DEFB 40 ,2 ,66
DEFB 12 ,74 ,208
DEFB 46 ,2 ,66
DEFB 62 ,1 ,132
DEFB 20 ,0 ,0
DEFB 0 ,96 ,0
DEFB 16 ,176 ,0
DEFB 36 ,104 ,160
DEFB 32 ,240 ,64
DEFB 68 ,120 ,160
DEFB 64 ,240 ,64
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 8 ,173 ,128
DEFB 8 ,0 ,136
DEFB 16 ,129 ,2
DEFB 32 ,0 ,18
DEFB 32 ,0 ,36
DEFB 16 ,132 ,8
DEFB 9 ,0 ,136
DEFB 5 ,4 ,4
DEFB 8 ,130 ,66
DEFB 16 ,66 ,34
DEFB 16 ,68 ,36
DEFB 16 ,136 ,68
DEFB 72 ,72 ,136
DEFB 64 ,0 ,0
DEFB 68 ,120 ,160
DEFB 32 ,240 ,64
DEFB 34 ,112 ,160
DEFB 37 ,97 ,64
DEFB 74 ,128 ,128
DEFB 229 ,9 ,0
DEFB 74 ,2 ,0
DEFB 196 ,0 ,0
DEFB 138 ,18 ,0
DEFB 4 ,0 ,0
DEFB 10 ,18 ,0
DEFB 2 ,0 ,0
DEFB 6 ,18 ,0
DEFB 10 ,8 ,0
DEFB 12 ,2 ,0
DEFB 7 ,129 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 0 ,32 ,0
DEFB 0 ,0 ,0
DEFB 0 ,34 ,0
DEFB 0 ,0 ,0
DEFB 0 ,33 ,0
DEFB 0 ,10 ,128
DEFB 0 ,65 ,0
DEFB 1 ,0 ,128
DEFB 2 ,144 ,0
DEFB 0 ,0 ,128
DEFB 4 ,36 ,0
DEFB 0 ,0 ,32
DEFB 0 ,2 ,0
DEFB 0 ,0 ,96
DEFB 0 ,0 ,208
DEFB 8 ,14 ,192
DEFB 0 ,223 ,32
DEFB 1 ,189 ,224
DEFB 19 ,59 ,192
DEFB 3 ,42 ,224
DEFB 1 ,57 ,196
DEFB 0 ,42 ,144
DEFB 32 ,0 ,104
DEFB 0 ,0 ,0
DEFB 32 ,0 ,8
DEFB 16 ,0 ,0
DEFB 0 ,0 ,16
DEFB 16 ,0 ,0
DEFB 4 ,0 ,64
DEFB 0 ,0 ,0
DEFB 6 ,130 ,128
DEFB 2 ,129 ,64
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,0 ,0
DEFB 0 ,16 ,128
DEFB 0 ,32 ,64
DEFB 0 ,96 ,96
DEFB 0 ,119 ,160
DEFB 0 ,55 ,192
DEFB 0 ,14 ,128
DEFB 0 ,27 ,64
DEFB 0 ,28 ,0
DEFB 0 ,95 ,192
DEFB 0 ,142 ,128
DEFB 1 ,71 ,192
DEFB 0 ,168 ,0
DEFB 1 ,102 ,132
DEFB 2 ,144 ,194
DEFB 21 ,42 ,117
| 21.139792 | 72 | 0.494756 |
56ba1a4201872df248cac0577fd56f13a9abe0b7 | 850 | asm | Assembly | project4.asm | sekranmert/Assembly-projects | 7c76b84a4a94a781bae84e9c39c36a244f35e668 | [
"MIT"
] | 1 | 2021-09-05T08:07:58.000Z | 2021-09-05T08:07:58.000Z | project4.asm | sekranmert/Assembly-projects | 7c76b84a4a94a781bae84e9c39c36a244f35e668 | [
"MIT"
] | null | null | null | project4.asm | sekranmert/Assembly-projects | 7c76b84a4a94a781bae84e9c39c36a244f35e668 | [
"MIT"
] | null | null | null | #this project prints every prime till the given number
.data
enter: .asciiz "\n"
.text
main:
addi $s0, $zero, 1 # current int
addi $t0, $zero, 1 # counter
addi $s1, $zero, 10 # count
loop:
addi $s0, $s0, 1
jal test_prime
beq $v1, $zero, loop
li $v0, 1
add $a0, $s0, $zero
syscall
li $v0, 4
la $a0, enter
syscall
beq $t0, $s1, finish
addi $t0, $t0, 1
j loop
test_prime:
addi $t1, $zero, 2
loopprime:
beq $s0, $t1, true
div $s0, $t1
mfhi $t2
beq $t2, $zero, false
addi $t1, $t1, 1
j loopprime
false:
addi $v1, $zero, 0
jr $ra
true:
addi $v1, $zero, 1
jr $ra
finish:
syscall
| 15.178571 | 55 | 0.44 |
8f7c55a92586fba50557c3977e00539d9c47ca4c | 5,680 | asm | Assembly | Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_526.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_526.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_526.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xde32, %rsi
lea addresses_normal_ht+0x1e632, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $59824, %r14
mov $84, %rcx
rep movsq
nop
nop
sub $46833, %rbp
lea addresses_normal_ht+0x131b2, %r15
sub $14562, %rdi
movw $0x6162, (%r15)
nop
nop
nop
inc %r14
lea addresses_A_ht+0x1d2f2, %rsi
nop
nop
nop
inc %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
movups %xmm7, (%rsi)
nop
nop
nop
xor $25768, %rdi
lea addresses_WC_ht+0x1d7b2, %rsi
lea addresses_WT_ht+0x199e6, %rdi
nop
and %rax, %rax
mov $66, %rcx
rep movsb
nop
nop
nop
xor $35248, %r14
lea addresses_normal_ht+0x151b2, %rcx
nop
nop
nop
and $50852, %rdi
mov (%rcx), %rbp
nop
nop
nop
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r8
push %rbp
push %rdi
push %rdx
// Load
lea addresses_D+0x3fb2, %rdi
nop
nop
nop
nop
cmp %rbp, %rbp
movb (%rdi), %r15b
nop
dec %r13
// Store
lea addresses_UC+0x13bb2, %r8
nop
nop
nop
nop
dec %rdx
movw $0x5152, (%r8)
and $26235, %rdi
// Faulty Load
mov $0x1d1c1d00000009b2, %r13
nop
nop
cmp %r8, %r8
movups (%r13), %xmm7
vpextrq $1, %xmm7, %rbp
lea oracles, %r15
and $0xff, %rbp
shlq $12, %rbp
mov (%r15,%rbp,1), %rbp
pop %rdx
pop %rdi
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': True}, 'OP': 'LOAD'}
{'00': 21646, '49': 183}
49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 49 49 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 40.571429 | 2,999 | 0.659155 |
afc63d3fab0ff77f98ee0714ff1687d5451a8d4f | 465 | asm | Assembly | projects/dxilconv/test/dxbc2dxil-asm/indexabletemp4.asm | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | projects/dxilconv/test/dxbc2dxil-asm/indexabletemp4.asm | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | projects/dxilconv/test/dxbc2dxil-asm/indexabletemp4.asm | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | /*// RUN: %testasm %s /Fo %t.dxbc*/
// RUN: %dxbc2dxil %t.dxbc /emit-llvm37 /o %t.ll.converted
// RUN: fc %b.ref %t.ll.converted
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[12], dynamicIndexed
dcl_input_ps constant v1.x
dcl_input_ps constant v1.y
dcl_output o0.x
dcl_temps 1
dcl_indexableTemp x0[4], 2
mov r0.x, v1.x
mov x0[0].x, cb0[r0.x + 0].x
mov x0[1].x, cb0[r0.x + 4].x
mov r0.x, v1.y
mov x0[1].y, r0.x
mov o0.x, x0[ x0[1].y + 77 ].x
ret
| 23.25 | 58 | 0.690323 |
bb59317b680c07320524f2904ade2bf3b9b5d955 | 386 | asm | Assembly | oeis/320/A320508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/320/A320508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/320/A320508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A320508: T(n,k) = binomial(n - k - 1, k), 0 <= k < n, and T(n,n) = (-1)^n, triangle read by rows.
; Submitted by Christian Krause
; 1,1,-1,1,0,1,1,1,0,-1,1,2,0,0,1,1,3,1,0,0,-1,1,4,3,0,0,0,1,1,5,6,1,0,0,0,-1,1,6,10,4,0,0,0,0,1,1,7,15,10,1,0,0,0,0,-1,1,8,21,20,5,0,0,0,0,0,1,1,9,28,35,15,1,0,0,0,0,0,-1,1,10,36
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
sub $1,1
bin $1,$0
mov $0,$1
| 29.692308 | 179 | 0.531088 |
16996e4f918c137982d33f7785fbe50b00842747 | 148 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sqrt_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sqrt_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/sqrt_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _sqrt_fastcall
EXTERN cm48_sdccix_sqrt_fastcall
defc _sqrt_fastcall = cm48_sdccix_sqrt_fastcall
| 14.8 | 47 | 0.885135 |
185aaad90bf9804a7d3c70e1c90703d82167b30b | 6,139 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1775.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1775.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1775.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x6d5, %rsi
lea addresses_A_ht+0x10ed5, %rdi
clflush (%rsi)
nop
nop
nop
add $835, %r15
mov $78, %rcx
rep movsq
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_UC_ht+0x1ea95, %rsi
lea addresses_normal_ht+0x62b1, %rdi
nop
nop
add $11262, %rdx
mov $89, %rcx
rep movsb
nop
nop
nop
cmp $18422, %rsi
lea addresses_D_ht+0x1e4d5, %r15
nop
add %rcx, %rcx
movups (%r15), %xmm2
vpextrq $0, %xmm2, %rdi
sub %rdx, %rdx
lea addresses_A_ht+0x126b5, %r13
nop
mfence
mov (%r13), %rdx
nop
nop
xor $27441, %r8
lea addresses_normal_ht+0x10ed5, %rdx
nop
and $38351, %r15
movw $0x6162, (%rdx)
nop
nop
nop
nop
add %r13, %r13
lea addresses_WT_ht+0x1b1b5, %r8
nop
nop
nop
nop
nop
sub %r13, %r13
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%r8)
nop
add $44360, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %rax
push %rbp
push %rdi
push %rdx
push %rsi
// Store
mov $0x5df, %rbp
nop
xor $56237, %r15
mov $0x5152535455565758, %rdx
movq %rdx, %xmm7
movups %xmm7, (%rbp)
add %r15, %r15
// Load
lea addresses_UC+0x1dcd5, %r15
xor %rax, %rax
mov (%r15), %r10w
nop
nop
sub %rsi, %rsi
// Load
mov $0x30ba60000000cd5, %r10
nop
nop
nop
nop
nop
inc %rbp
mov (%r10), %dx
nop
nop
nop
nop
nop
sub %rbp, %rbp
// Faulty Load
lea addresses_WC+0x16cd5, %rdi
nop
nop
nop
xor $58664, %rax
mov (%rdi), %edx
lea oracles, %rsi
and $0xff, %rdx
shlq $12, %rdx
mov (%rsi,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rbp
pop %rax
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.36875 | 2,999 | 0.655481 |
ecc715e3f0631977c3fe5e555156ddb527599786 | 6,611 | asm | Assembly | week_7/dataset/Assembly/056578.asm | Dumebi35/DumebiCSC102 | 56985f4852bc01c94dce2ee368c9612ad368f619 | [
"MIT"
] | null | null | null | week_7/dataset/Assembly/056578.asm | Dumebi35/DumebiCSC102 | 56985f4852bc01c94dce2ee368c9612ad368f619 | [
"MIT"
] | null | null | null | week_7/dataset/Assembly/056578.asm | Dumebi35/DumebiCSC102 | 56985f4852bc01c94dce2ee368c9612ad368f619 | [
"MIT"
] | null | null | null | Title Bitmap Display Program (bitmap.asm)
; by Diego Escala, 5/98
; Used by Permission.
; The following procedures will load a Windows type BMP file
; and display it on the screen. ShowBMP calls the necessary
; procedures in the right order. When it's called, DS:DX must
; point to an ASCIIZ string containing the name and path
; of the BMP file.
; Max. BMP resolution = 320x200x256
.model small
.186
.code
PUBLIC ShowBMP
ShowBMP proc ;(BX = open file handle)
pusha ; Save registers
call ReadHeader ; Reads the 54-byte header containing file info
jc InvalidBMP ; Not a valid BMP file? Show error and quit
call ReadPal ; Read the BMP's palette and put it in a buffer
push es
call InitVid ; Set up the display for 320x200 VGA graphics
call SendPal ; Send the palette to the video registers
call LoadBMP ; Load the graphic and display it
pop es
jmp ProcDone
InvalidBMP:
mov ah,9
mov dx,offset msgInvBMP
int 21h
ProcDone:
popa ; Restore registers
ret
ShowBMP endp
CheckValid proc
; This procedure checks the first two bytes of the file. If they do not
; match the standard beginning of a BMP header ("BM"), the carry flag is
; set.
clc
mov si,offset Header
mov di,offset BMPStart
mov cx,2 ; BMP ID is 2 bytes long.
CVloop:
mov al,[si] ; Get a byte from the header.
mov dl,[di]
cmp al,dl ; Is it what it should be?
jne NotValid ; If not, set the carry flag.
inc si
inc di
loop CVloop
jmp CVdone
NotValid:
stc
CVdone:
ret
CheckValid endp
GetBMPInfo proc
; This procedure pulls some important BMP info from the header
; and puts it in the appropriate variables.
mov ax,header[0Ah] ; AX = Offset of the beginning of the graphic.
sub ax,54 ; Subtract the length of the header
shr ax,2 ; and divide by 4
mov PalSize,ax ; to get the number of colors in the BMP
; (Each palette entry is 4 bytes long).
mov ax,header[12h] ; AX = Horizontal resolution (width) of BMP.
mov BMPWidth,ax ; Store it.
mov ax,header[16h] ; AX = Vertical resolution (height) of BMP.
mov BMPHeight,ax ; Store it.
ret
GetBMPInfo endp
InitVid proc
; This procedure initializes the video mode and
; sets ES to the video RAM segment address.
mov ah,00h ; set video mode
mov al,newVideoMode
int 10h
push 0A000h ; set ES to video segment address
pop es
ret
InitVid endp
LoadBMP proc
; BMP graphics are saved upside-down. This procedure reads the graphic
; line by line, displaying the lines from bottom to top. The line at
; which it starts depends on the vertical resolution, so the top-left
; corner of the graphic will always be at the top-left corner of the screen.
; The video memory is a two-dimensional array of memory bytes which
; can be addressed and modified individually. Each byte represents
; a pixel on the screen, and each byte contains the color of the
; pixel at that location.
mov cx,BMPHeight ; We're going to display that many lines
ShowLoop:
push cx
mov di,cx ; Make a copy of CX
shl cx,6 ; Multiply CX by 64
shl di,8 ; Multiply DI by 256
add di,cx ; DI = CX * 320, and points to the first
; pixel on the desired screen line.
mov ah,3fh
mov cx,BMPWidth
mov dx,offset ScrLine
int 21h ; Read one line into the buffer.
cld ; Clear direction flag, for movsb.
mov cx,BMPWidth
mov si,offset ScrLine
rep movsb ; Copy line in buffer to screen.
pop cx
loop ShowLoop
ret
LoadBMP endp
ReadHeader proc
; This procedure checks to make sure the file is a valid BMP, and gets some
; information about the graphic.
mov ah,3fh
mov cx,54
mov dx,offset Header
int 21h ; Read file header into buffer.
call CheckValid ; Is it a valid BMP file?
jc RHdone ; No? Quit.
call GetBMPInfo ; Otherwise, process the header.
RHdone:
ret
ReadHeader endp
ReadPal proc
mov ah,3fh
mov cx,PalSize ; CX = Number of colors in palette.
shl cx,2 ; CX = Multiply by 4 to get size (in bytes)
; of palette.
mov dx,offset palBuff
int 21h ; Put the palette into the buffer.
ret
ReadPal endp
SendPal proc
; This procedure goes through the palette buffer, sending information about
; the palette to the video registers. One byte is sent out
; port 3C8h, containing the number of the first color in the palette that
; will be sent (0=the first color). Then, RGB information about the colors
; (any number of colors) is sent out port 3C9h.
mov si,offset palBuff ; Point to buffer containing palette.
mov cx,PalSize ; CX = Number of colors to send.
mov dx,3c8h
mov al,0 ; We will start at 0.
out dx,al
inc dx ; DX = 3C9h.
sndLoop:
; Note: Colors in a BMP file are saved as BGR values rather than RGB.
mov al,[si+2] ; Get red value.
shr al,2 ; Max. is 255, but video only allows
; values of up to 63. Dividing by 4
; gives a good value.
out dx,al ; Send it.
mov al,[si+1] ; Get green value.
shr al,2
out dx,al ; Send it.
mov al,[si] ; Get blue value.
shr al,2
out dx,al ; Send it.
add si,4 ; Point to next color.
; (There is a null chr. after every color.)
loop sndLoop
ret
SendPal endp
.data
Header label word
HeadBuff db 54 dup('H')
palBuff db 1024 dup('P')
ScrLine db 320 dup(0)
BMPStart db 'BM'
PalSize dw ?
BMPHeight dw ?
BMPWidth dw ?
msgInvBMP db "Not a valid BMP file!",7,0Dh,0Ah,24h
msgFileErr db "Error opening file!",7,0Dh,0Ah,24h
newVideoMode db 13h ; 320x200x256 video mode
end
| 31.480952 | 79 | 0.581304 |
51376a671b8ae3f051a59d6490d4d7359a7abf02 | 610 | asm | Assembly | oeis/083/A083304.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/083/A083304.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/083/A083304.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A083304: a(n) = (4*(n+5)^n + n^n)/5.
; Submitted by Jon Maiga
; 1,5,40,415,5300,80625,1426580,28830155,655940020,16606321525,463320312500,14130811169655,467881009873460,16718946913855385,641427749991418900,26301978778076171875,1148144301008330172980,53165410387944813874845,2603190009531257935755380,134395307859152185174852175,7296929134183425903320312500,415674014424032906872952330305,24790809081578933801015842787540,1544899597629790437490166297112315,100414667807156502706076802542136500,6796072443938002504646778106689453125
mov $2,2
add $2,$0
add $2,3
pow $2,$0
pow $0,$0
mul $2,4
add $0,$2
div $0,5
| 46.923077 | 468 | 0.845902 |
168d5eae635b753c8e9528dc405bb0cf03131561 | 682 | asm | Assembly | libsrc/sprites/software/sp1/spectrum/collision/SP1IsPtInRect.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/sprites/software/sp1/spectrum/collision/SP1IsPtInRect.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/sprites/software/sp1/spectrum/collision/SP1IsPtInRect.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; SP1IsPtInRect
; 05.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
; uses rectangles library
SECTION code_sprite_sp1
PUBLIC SP1IsPtInRect
EXTERN RIsPtInRect8
; Determines if a pixel coordinate lies within an 8-bit
; rectangle described using character coordinates. The
; pixel coordinate is divided by 8 to change to character
; coordinates in this subroutine.
;
; enter : a = x coordinate
; e = y coordinate
; hl = & struct sp1_Rect
; exit : carry flag set = in rectangle
; uses : af,af',bc,de,hl
.SP1IsPtInRect
ld d,(hl)
inc hl
ld b,(hl)
inc hl
ld c,(hl)
inc hl
ld l,(hl)
ld h,e
ld e,l
ld l,h
jp RIsPtInRect8
| 19.485714 | 57 | 0.683284 |
ac195e1274ac044145a46646e6810b0ce42c9a06 | 419 | asm | Assembly | oeis/028/A028144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/028/A028144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/028/A028144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A028144: Expansion of 1/((1-4x)(1-6x)(1-11x)(1-12x)).
; Submitted by Christian Krause
; 1,33,703,12333,194239,2860821,40291111,549874221,7333588207,96118840389,1242878986999,15899609772189,201637495269055,2538952949123637,31780003009949767,395799688351994637
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
seq $0,19752 ; G.f.: 1/((1-4x)(1-11x)(1-12x)).
mul $1,6
add $1,$0
lpe
mov $0,$1
| 24.647059 | 172 | 0.689737 |
4b2b7441ca4b60590abd1d206bd487002c268435 | 703 | asm | Assembly | programs/oeis/124/A124669.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/124/A124669.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/124/A124669.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A124669: Product of successive primes minus 2.
; 4,13,33,75,141,219,321,435,665,897,1145,1515,1761,2019,2489,3125,3597,4085,4755,5181,5765,6555,7385,8631,9795,10401,11019,11661,12315,14349,16635,17945,19041,20709,22497,23705,25589,27219,28889,30965,32397,34569,36861,38019,39201,41987,47051,50619,51981,53355,55685,57597,60489,64505,67589,70745,72897,75065,77835,79521,82917,89949,95475,97341,99219,104925,111545,116937,121101,123195,126725,131751,136889,141365,145155,148985,154431,159195,164007,171369,176397,181449,186621,190085,194475,198905,205191,210675,213441,216219,223691,233271,239115,245007,250995,256025,265187,272481,282941,295925
seq $0,69486 ; 2*prime(n)*prime(n+1).
div $0,2
sub $0,2
| 100.428571 | 596 | 0.805121 |
b649e4b968203f38be05537be1a350fe35eb78ad | 3,730 | asm | Assembly | bootloader/x86_64/vesa.asm | ticki/redox | e7eb3a8924fa7271b466e7ecceedaba4ea48d7cf | [
"MIT"
] | 1 | 2016-12-10T05:50:55.000Z | 2016-12-10T05:50:55.000Z | bootloader/x86_64/vesa.asm | Ticki/redox | e7eb3a8924fa7271b466e7ecceedaba4ea48d7cf | [
"MIT"
] | null | null | null | bootloader/x86_64/vesa.asm | Ticki/redox | e7eb3a8924fa7271b466e7ecceedaba4ea48d7cf | [
"MIT"
] | null | null | null | %include "vesa.inc"
SECTION .text
USE16
vesa:
.getcardinfo:
mov ax, 0x4F00
mov di, VBECardInfo
int 0x10
cmp ax, 0x4F
je .findmode
mov eax, 1
ret
.resetlist:
;if needed, reset mins/maxes/stuff
xor cx, cx
mov [.minx], cx
mov [.miny], cx
mov [config.xres], cx
mov [config.yres], cx
.findmode:
mov si, [VBECardInfo.videomodeptr]
mov ax, [VBECardInfo.videomodeptr+2]
mov fs, ax
sub si, 2
.searchmodes:
add si, 2
mov cx, [fs:si]
cmp cx, 0xFFFF
jne .getmodeinfo
cmp word [.goodmode], 0
je .resetlist
jmp .findmode
.getmodeinfo:
push esi
mov [.currentmode], cx
mov ax, 0x4F01
mov di, VBEModeInfo
int 0x10
pop esi
cmp ax, 0x4F
je .foundmode
mov eax, 1
ret
.foundmode:
;check minimum values, really not minimums from an OS perspective but ugly for users
cmp byte [VBEModeInfo.bitsperpixel], 32
jb .searchmodes
.testx:
mov cx, [VBEModeInfo.xresolution]
cmp word [config.xres], 0
je .notrequiredx
cmp cx, [config.xres]
je .testy
jmp .searchmodes
.notrequiredx:
cmp cx, [.minx]
jb .searchmodes
.testy:
mov cx, [VBEModeInfo.yresolution]
cmp word [config.yres], 0
je .notrequiredy
cmp cx, [config.yres]
jne .searchmodes ;as if there weren't enough warnings, USE WITH CAUTION
cmp word [config.xres], 0
jnz .setmode
jmp .testgood
.notrequiredy:
cmp cx, [.miny]
jb .searchmodes
.testgood:
mov cx, [.currentmode]
mov [.goodmode], cx
push esi
; call decshowrm
; mov al, ':'
; call charrm
mov cx, [VBEModeInfo.xresolution]
call decshowrm
mov al, 'x'
call charrm
mov cx, [VBEModeInfo.yresolution]
call decshowrm
mov al, '@'
call charrm
xor ch, ch
mov cl, [VBEModeInfo.bitsperpixel]
call decshowrm
mov si, .modeok
call printrm
xor ax, ax
int 0x16
pop esi
cmp al, 'y'
je .setmode
cmp al, 's'
je .savemode
jmp .searchmodes
.savemode:
mov cx, [VBEModeInfo.xresolution]
mov [config.xres], cx
mov cx, [VBEModeInfo.yresolution]
mov [config.yres], cx
call save_config
.setmode:
mov bx, [.currentmode]
cmp bx, 0
je .nomode
or bx, 0x4000
mov ax, 0x4F02
int 0x10
.nomode:
cmp ax, 0x4F
je .returngood
mov eax, 1
ret
.returngood:
xor eax, eax
ret
.minx dw 640
.miny dw 480
.modeok db ": Is this OK? (s)ave/(y)es/(n)o",10,13,0
.goodmode dw 0
.currentmode dw 0
;useful functions
decshowrm:
mov si, .number
.clear:
mov al, "0"
mov [si], al
inc si
cmp si, .numberend
jb .clear
dec si
call convertrm
mov si, .number
.lp:
lodsb
cmp si, .numberend
jae .end
cmp al, "0"
jbe .lp
.end:
dec si
call printrm
ret
.number times 7 db 0
.numberend db 0
convertrm:
dec si
mov bx, si ;place to convert into must be in si, number to convert must be in cx
.cnvrt:
mov si, bx
sub si, 4
.ten4: inc si
cmp cx, 10000
jb .ten3
sub cx, 10000
inc byte [si]
jmp .cnvrt
.ten3: inc si
cmp cx, 1000
jb .ten2
sub cx, 1000
inc byte [si]
jmp .cnvrt
.ten2: inc si
cmp cx, 100
jb .ten1
sub cx, 100
inc byte [si]
jmp .cnvrt
.ten1: inc si
cmp cx, 10
jb .ten0
sub cx, 10
inc byte [si]
jmp .cnvrt
.ten0: inc si
cmp cx, 1
jb .return
sub cx, 1
inc byte [si]
jmp .cnvrt
.return:
ret
printrm:
mov al, [si]
test al, al
jz .return
call charrm
inc si
jmp printrm
.return:
ret
charrm: ;char must be in al
mov bx, 7
mov ah, 0xE
int 10h
ret
| 17.932692 | 91 | 0.590617 |
ec591e5146ab1e99770804687aaec7f7f867e8a6 | 245 | asm | Assembly | data/mapHeaders/SilphCo9F.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapHeaders/SilphCo9F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapHeaders/SilphCo9F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | SilphCo9F_h:
db FACILITY ; tileset
db SILPH_CO_9F_HEIGHT, SILPH_CO_9F_WIDTH ; dimensions (y, x)
dw SilphCo9F_Blocks ; blocks
dw SilphCo9F_TextPointers ; texts
dw SilphCo9F_Script ; scripts
db 0 ; connections
dw SilphCo9F_Object ; objects
| 27.222222 | 61 | 0.791837 |
f98ab03fedc2c165af93ae1c0fb661ca13eaad30 | 3,915 | asm | Assembly | non_regression/comm_sparc.s.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | 1 | 2021-02-28T21:31:18.000Z | 2021-02-28T21:31:18.000Z | non_regression/comm_sparc.s.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | null | null | null | non_regression/comm_sparc.s.asm | LRGH/plasmasm | 4cd50546c3dc895763d72dd60b7c46179c1916bc | [
"Apache-2.0"
] | null | null | null | .file "l2.c"
.common b,4,4
# ----------------------
.section ".data"
.align 4
.globl c
.type c, #object
c:
.long 1
.size c, 4
# ----------------------
.common v,4,4
# ----------------------
.common O,36,4
# ----------------------
.common j,4,4
# ----------------------
.align 4
.globl s
.type s, #object
s:
.long 16
.size s, 4
# ----------------------
.common a,4,4
# ----------------------
.common n,4,4
# ----------------------
.common Z,12,4
# ----------------------
.common L,99,8
# ----------------------
.align 4
.globl S
.type S, #object
S:
.long Z
.size S, 4
# ----------------------
.common M,999,8
# ----------------------
.common m,64,8
# ----------------------
.common co,1,1
# ----------------------
.common ol,1,1
# ----------------------
.section ".rodata"
.align 8
.LLC0:
.asciz "XXX"
.align 8
.LLC1:
.asciz "Y\n : ! ,.?>"
# ----------------------
.section ".data"
.align 4
.globl p
.type p, #object
p:
.long .LLC0+1
.size p, 4
# ----------------------
.section ".text"
.align 4
.align 4
.globl y
.type y, #function
.proc 04
y:
save %sp, -96, %sp
st %i0, [%fp+68]
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1+8], %g2
inc -0x1, %g2
st %g2, [%g1+8]
ld [%g1+8], %g1
cmp %g1, 0
bge .LL2
nop
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1+8], %g2
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1+24], %g1
cmp %g2, %g1
bl .LL3
nop
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1], %g1
ld [%fp+68], %g2
stb %g2, [%g1]
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1], %g1
ldub [%g1], %g1
and %g1, 0xff, %g1
cmp %g1, 10
be .LL4
nop
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g2
ld [%g2], %g3
ldub [%g3], %g1
and %g1, 0xff, %g1
inc %g3
st %g3, [%g2]
ba .LL5
nop
.LL4:
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
mov 0xa, %o0
mov %g1, %o1
call __swbuf, 0
nop
mov %o0, %g1
.LL5:
ba .LL6
nop
.LL3:
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%fp+68], %o0
mov %g1, %o1
call __swbuf, 0
nop
mov %o0, %g1
.LL6:
ba .LL7
nop
.LL2:
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g1
ld [%g1], %g1
ld [%fp+68], %g2
stb %g2, [%g1]
sethi %hi(_impure_ptr), %g1
bset %lo(_impure_ptr), %g1
ld [%g1], %g1
ld [%g1+8], %g2
ld [%g2], %g3
ldub [%g3], %g1
and %g1, 0xff, %g1
inc %g3
st %g3, [%g2]
.LL7:
mov %g1, %i0
restore
retl
nop
.size y, .-y
# ----------------------
.align 4
.align 4
.globl r
.type r, #function
.proc 04
r:
save %sp, -96, %sp
st %i0, [%fp+68]
sethi %hi(p), %g1
bset %lo(p), %g1
ld [%g1], %g1
ldub [%g1], %g1
sll %g1, 24, %g1
sra %g1, 24, %g1
sethi %hi(.LLC1), %g2
bset %lo(.LLC1), %g2
ldub [%g1+%g2], %g1
sll %g1, 24, %g1
sra %g1, 24, %g1
mov %g1, %o0
call y, 0
nop
mov %o0, %g1
mov %g1, %i0
restore
retl
nop
.size r, .-r
# ----------------------
.align 4
.align 4
.globl X
.type X, #function
.proc 04
X:
save %sp, -96, %sp
st %i0, [%fp+68]
mov 0x0, %o0
call time, 0
nop
mov %o0, %g3
sethi %hi(b), %g1
bset %lo(b), %g1
ld [%g1], %g2
mov 0x1, %g1
cmp %g3, %g2
bg .LL12
nop
mov 0x0, %g1
.LL12:
mov %g1, %i0
restore
retl
nop
.size X, .-X
# ----------------------
.align 4
.align 4
.globl main
.type main, #function
.proc 04
main:
save %sp, -96, %sp
mov 0x0, %g1
mov %g1, %i0
restore
retl
nop
.size main, .-main
# ----------------------
.ident "GCC: (GNU) 4.4.2"
| 15.914634 | 29 | 0.45696 |
d585113f547a6b58f3d51c259da3d578f7c9e3e6 | 4,115 | asm | Assembly | lib/chibiakumas/SrcALL/Multiplatform_SinCos16.asm | gilbertfrancois/msx | f34418180820df067530f31bd9727ef1c65a7989 | [
"Apache-2.0"
] | null | null | null | lib/chibiakumas/SrcALL/Multiplatform_SinCos16.asm | gilbertfrancois/msx | f34418180820df067530f31bd9727ef1c65a7989 | [
"Apache-2.0"
] | null | null | null | lib/chibiakumas/SrcALL/Multiplatform_SinCos16.asm | gilbertfrancois/msx | f34418180820df067530f31bd9727ef1c65a7989 | [
"Apache-2.0"
] | null | null | null | Sin_A_Times_D:
bit 7,d
jr z,Sin_A_Times_D_DNotNegative
ld h,a
ld a,e
cpl
ld e,a
ld a,d
cpl
ld d,a
inc de
ld a,h
call Sin_A_Times_D_DNotNegative
;ld a,h
;neg
;ld h,a
jp NegHLDE
; ret
Sin_A_Times_D_DNotNegative:
ifdef UseSmallAngleApprox
ld h,a
and %11111110
cp &0
jr z,ResZero
cp &80
jr z,ResZero
add 4
and %11111000 ;Small Angle Approximation
cp &40
jr z,Res127
cp &C0
jr z,Resminus127
ld a,h
endif
call sin ;Y
ld l,e
ld h,d
push ix
call Mul32_8_Sgn ; DE.HL=HL*BC mul8ZeroH_Sgn
pop ix
sla l
rl h
rl e
rl d
ret
Cos_A_Times_D:
bit 7,d
jr z,Cos_A_Times_D_DNotNegative
ld h,a
ld a,e
cpl
ld e,a
ld a,d
cpl
ld d,a
inc de
ld a,h
call Cos_A_Times_D_DNotNegative
;ld a,h
;neg
;ld h,a
jp NegHLDE
; ret
Cos_A_Times_D_DNotNegative:
ifdef UseSmallAngleApprox
ld h,a
and %11111110
cp &40
jr z,ResZero
cp &C0
jr z,ResZero
add 4
and %11111000 ;Small Angle Approximation
; cp &0
jr z,Res127
cp &80
jr z,Resminus127
ld a,h
endif
call cos ;Y
ld l,e
ld h,d
push ix
call Mul32_8_Sgn ; DE.HL=HL*BC mul8ZeroH_Sgn
pop ix
sla l
rl h
rl e
rl d
ret
ResZero:
ld hl,0 ;Anything *0=0
ld de,0
ret
Res127: ;Halve D
ld l,0
ld h,e
ld e,d
ld d,0
; srl h
; rr l
ret
Resminus127: ;Halve and negate D
; ld l,0
; ld h,d
; srl h
; rr l
ld l,0
ld h,e
ld e,d
ld d,0
; neg
; ld l,a
jp NegHLDE
;64 byte quarter table ver
IfDef SmallSINTable
Cos:
add 64
Sin:
bit 7,a
jr z,SineC
call SineC
neg
ret
SineC:
; and %01111111
; cp &40
; jr c,SineB
bit 6,a
jr z,SineB
and %00111111
ld l,a
ld a,63
sub l
SineB:
ld hl,SineTable
ifdef SmallSINTable32
and %00111110
rrca
else
and %00111111
endif
ld l,a
ld a,(hl)
ret
align 256
SineTable:
ifdef SmallSINTable32
db 0,6,12,19,25,31,37,43,49,54,60,65,71,76,81,85
db 90,94,98,102,106,109,112,115,117,120,122,123,125,126,126,127
;db 0,4,8,16,24,32,38,40,48,56,60,64,72,76,80,86
;db 90,94,96,102,106,109,112,114,116,120,122,124,124,126,127,127
else:
db 0,3,6,9,12,16,19,22,25,28,31,34,37,40,43,46,49,51,54,57,60,63,65,68,71,73,76,78,81,83,85,88
db 90,92,94,96,98,100,102,104,106,107,109,111,112,113,115,116,117,118,120,121,122,122,123,124,125,125,126,126,126,127,127,127
;db 0,2,6,7,12,16,18,22,24,28,32,34,36,40,42,46,48,52,54,56,60,62,64,68,70,72,76,78,80,82,84,88
;db 90,92,94,96,98,100,102,104,106,106,108,110,112,114,114,116,118,118,120,120,122,122,124,124,124,126,126,126,126,127,127,127
endif
else
;256 Byte Table version
Cos:
add 64
Sin:
ld hl,SineTable
ld l,a
ld a,(hl)
ret
align 256
SineTable:
db 0 ,3 ,6 ,9 ,12 ,16 ,19 ,22 ,25 ,28 ,31 ,34 ,37 ,40 ,43 ,46 ,49 ,51 ,54 ,57 ,60 ,63 ,65 ,68 ,71 ,73 ,76 ,78 ,81 ,83 ,85 ,88
db 90 ,92 ,94 ,96 ,98 ,100 ,102 ,104 ,106 ,107 ,109 ,111 ,112 ,113 ,115 ,116 ,117 ,118 ,120 ,121 ,122 ,122 ,123 ,124 ,125 ,125 ,126 ,126 ,126 ,127 ,127 ,127
db 127 ,127 ,127 ,127 ,126 ,126 ,126 ,125 ,125 ,124 ,123 ,122 ,122 ,121 ,120 ,118 ,117 ,116 ,115 ,113 ,112 ,111 ,109 ,107 ,106 ,104 ,102 ,100 ,98 ,96 ,94 ,92
db 90 ,88 ,85 ,83 ,81 ,78 ,76 ,73 ,71 ,68 ,65 ,63 ,60 ,57 ,54 ,51 ,49 ,46 ,43 ,40 ,37 ,34 ,31 ,28 ,25 ,22 ,19 ,16 ,12 ,9 ,6 ,3
db 0 ,-3 ,-6 ,-9 ,-12 ,-16 ,-19 ,-22 ,-25 ,-28 ,-31 ,-34 ,-37 ,-40 ,-43 ,-46 ,-49 ,-51 ,-54 ,-57 ,-60 ,-63 ,-65 ,-68 ,-71 ,-73 ,-76 ,-78 ,-81 ,-83 ,-85 ,-88
db -90 ,-92 ,-94 ,-96 ,-98 ,-100 ,-102 ,-104 ,-106 ,-107 ,-109 ,-111 ,-112 ,-113 ,-115 ,-116 ,-117 ,-118 ,-120 ,-121 ,-122 ,-122 ,-123 ,-124 ,-125 ,-125 ,-126 ,-126 ,-126 ,-127 ,-127 ,-127
db -127 ,-127 ,-127 ,-127 ,-126 ,-126 ,-126 ,-125 ,-125 ,-124 ,-123 ,-122 ,-122 ,-121 ,-120 ,-118 ,-117 ,-116 ,-115 ,-113 ,-112 ,-111 ,-109 ,-107 ,-106 ,-104 ,-102 ,-100 ,-98 ,-96 ,-94 ,-92
db -90 ,-88 ,-85 ,-83 ,-81 ,-78 ,-76 ,-73 ,-71 ,-68 ,-65 ,-63 ,-60 ,-57 ,-54 ,-51 ,-49 ,-46 ,-43 ,-40 ,-37 ,-34 ,-31 ,-28 ,-25 ,-22 ,-19 ,-16 ,-12 ,-9 ,-6 ,-3
endif | 20.472637 | 192 | 0.572296 |
ab2101c85b766f887afa643cc0530ba285c81292 | 628 | asm | Assembly | libsrc/graphics/gal/pixel_MODE1.asm | rjcorrig/z88dk | c49c26bb232c17ea5a45d21bb81b6343572b7f4c | [
"ClArtistic"
] | null | null | null | libsrc/graphics/gal/pixel_MODE1.asm | rjcorrig/z88dk | c49c26bb232c17ea5a45d21bb81b6343572b7f4c | [
"ClArtistic"
] | null | null | null | libsrc/graphics/gal/pixel_MODE1.asm | rjcorrig/z88dk | c49c26bb232c17ea5a45d21bb81b6343572b7f4c | [
"ClArtistic"
] | null | null | null |
EXTERN pixeladdress
INCLUDE "graphics/grafix.inc"
; Generic code to handle the pixel commands
; Define NEEDxxx before including
ld a,l
cp 208
ret nc
push bc ;Save callers value
call pixeladdress ;hl = address, a = pixel number
ld b,a
ld a,1
jr z, rotated ; pixel is at bit 0...
.plot_position
rlca
djnz plot_position
; a = byte holding pixel mask
; hl = address
rotated:
IF NEEDunplot
or (hl)
ld (hl),a
ENDIF
IF NEEDplot
cpl
and (hl)
ld (hl),a
ENDIF
IF NEEDxor
ld c,a
ld a,(hl)
cpl
xor c
cpl
ld (hl),a
ENDIF
IF NEEDpoint
ld c,a
ld a,(hl)
cpl
and c
ENDIF
pop bc ;Restore callers
ret
| 13.083333 | 51 | 0.678344 |
ef3d61afde8f4acaf7150d749ea881e815bec574 | 538 | asm | Assembly | oeis/057/A057145.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/057/A057145.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/057/A057145.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A057145: Square array of polygonal numbers T(n,k) = ((n-2)*k^2 - (n-4)*k)/2, n >= 2, k >= 1, read by antidiagonals upwards.
; Submitted by Jon Maiga
; 1,1,2,1,3,3,1,4,6,4,1,5,9,10,5,1,6,12,16,15,6,1,7,15,22,25,21,7,1,8,18,28,35,36,28,8,1,9,21,34,45,51,49,36,9,1,10,24,40,55,66,70,64,45,10,1,11,27,46,65,81,91,92,81,55,11,1,12,30,52,75,96,112,120,117,100,66,12,1,13,33,58,85,111,133,148,153,145,121,78,13,1,14,36,64,95,126,154,176,189
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
mul $1,$0
add $0,1
add $1,1
mul $1,$0
add $0,$1
div $0,2
| 33.625 | 284 | 0.615242 |
ded1de1e5e5e467dcf71783e409ac0580d4d1181 | 1,658 | asm | Assembly | lib/slow16by16Mul/lib.asm | Turboxray/VDC_display_latch_test | 62407db24c2707be7bfc7a94f0f2c55e852afc60 | [
"MIT"
] | null | null | null | lib/slow16by16Mul/lib.asm | Turboxray/VDC_display_latch_test | 62407db24c2707be7bfc7a94f0f2c55e852afc60 | [
"MIT"
] | null | null | null | lib/slow16by16Mul/lib.asm | Turboxray/VDC_display_latch_test | 62407db24c2707be7bfc7a94f0f2c55e852afc60 | [
"MIT"
] | null | null | null |
;16-bit multiply with 32-bit product
;source from 6502.org
slow16.multiplier = R0
slow16.multiplicand = R1
slow16.product = R2
mult16.16:
lda #$00
sta <slow16.product+2 ; clear upper bits of product
sta <slow16.product+3
ldx #$10 ; set binary count to 16
.shift_r
lsr <slow16.multiplier+1 ; divide multiplier by 2
ror <slow16.multiplier
bcc .rotate_r
lda <slow16.product+2 ; get upper half of product and add multiplicand
clc
adc <slow16.multiplicand
sta <slow16.product+2
lda <slow16.product+3
adc <slow16.multiplicand+1
.rotate_r
ror a ; rotate partial product
sta <slow16.product+3
ror <slow16.product+2
ror <slow16.product+1
ror <slow16.product
dex
bne .shift_r
rts
mult8.16:
lda #$00
sta <slow16.product+2 ; clear upper bits of product
sta <slow16.product+3
ldx #$8 ; set binary count to 16
.shift_r
lsr <slow16.multiplier+1 ; divide multiplier by 2
ror <slow16.multiplier
bcc .rotate_r
lda <slow16.product+2 ; get upper half of product and add multiplicand
clc
adc <slow16.multiplicand
sta <slow16.product+2
lda <slow16.product+3
adc <slow16.multiplicand+1
.rotate_r
ror a ; rotate partial product
sta <slow16.product+3
ror <slow16.product+2
ror <slow16.product+1
ror <slow16.product
dex
bne .shift_r
rts
| 27.180328 | 84 | 0.565139 |
18e2e095dd65c119a38f093b9e89663fd1945dae | 598 | asm | Assembly | programs/oeis/074/A074155.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/074/A074155.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/074/A074155.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A074155: Group the natural numbers so that the product of members of a group is a multiple of the sum: (1),(2,3,4,5,6),(7,8,9),(10,11,12),(13,14,15),(16,17,18),(19,20,21),(22,23,24),.... This is the sequence of the ratio of product /sum.
; 1,36,21,40,65,96,133,176,225,280,341,408,481,560,645,736,833,936,1045,1160,1281,1408,1541,1680,1825,1976,2133,2296,2465,2640,2821,3008,3201,3400,3605,3816,4033,4256,4485,4720,4961,5208,5461,5720,5985,6256,6533
mov $1,$0
mul $1,3
mov $2,$0
pow $0,9
trn $1,$0
mul $1,14
add $1,1
mov $3,$2
mul $3,4
add $1,$3
mov $4,$2
mul $4,$2
mov $3,$4
mul $3,3
add $1,$3
| 31.473684 | 239 | 0.665552 |
1f429c68bb76b9496324af76490fac55f71a99a9 | 214 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/p3dos_edrv_from_pdrv_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/p3dos_edrv_from_pdrv_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/p3dos_edrv_from_pdrv_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; unsigned char p3dos_edrv_from_pdrv(unsigned char pdrv)
SECTION code_esxdos
PUBLIC _p3dos_edrv_from_pdrv_fastcall
EXTERN asm_p3dos_edrv_from_pdrv
defc _p3dos_edrv_from_pdrv_fastcall = asm_p3dos_edrv_from_pdrv
| 21.4 | 62 | 0.88785 |
67ebfe91e14ec876e14bea190ccb31319142474e | 2,482 | asm | Assembly | src/test/ref/plus4-keyboard-test.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/test/ref/plus4-keyboard-test.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/test/ref/plus4-keyboard-test.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | // Test reading keyboard port on the TED of the Plus/4
/// @file
/// C standard library string.h
///
/// Functions to manipulate C strings and arrays.
/// NULL pointer
// Commodore 16 / Plus/4 executable PRG file
.file [name="plus4-keyboard-test.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$1001]
.segmentdef Code [start=$100d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
// Keyboard latch
.label KEYBOARD_INPUT = $ff08
// Keyboard scan
.label KEYBOARD_SCAN = $fd30
// Default address of screen character matrix
.label DEFAULT_SCREEN = $c00
.segment Code
main: {
.label row = 5
.label y = 4
// asm
sei
// memset(DEFAULT_SCREEN, ' ', 0x0400)
jsr memset
__b5:
lda #<DEFAULT_SCREEN
sta.z row
lda #>DEFAULT_SCREEN
sta.z row+1
lda #0
sta.z y
__b1:
// for(char y=0;y<8;y++)
lda.z y
cmp #8
bcc __b2
jmp __b5
__b2:
// 1<<y
lda #1
ldy.z y
cpy #0
beq !e+
!:
asl
dey
bne !-
!e:
// 0xff^(1<<y)
eor #$ff
// *KEYBOARD_SCAN = 0xff^(1<<y)
sta KEYBOARD_SCAN
// *KEYBOARD_INPUT = 0
lda #0
sta KEYBOARD_INPUT
// char key_bit = *KEYBOARD_INPUT^0xff
lda #$ff
eor KEYBOARD_INPUT
tax
ldy #0
__b3:
// for(char x=0;x<8;x++)
cpy #8
bcc __b4
// row += 40
lda #$28
clc
adc.z row
sta.z row
bcc !+
inc.z row+1
!:
// for(char y=0;y<8;y++)
inc.z y
jmp __b1
__b4:
// key_bit&0x80
txa
and #$80
// if(key_bit&0x80)
cmp #0
beq __b6
// row[x] = '*'
lda #'*'
sta (row),y
__b6:
// key_bit <<= 1
txa
asl
tax
// for(char x=0;x<8;x++)
iny
jmp __b3
}
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
// void * memset(void *str, char c, unsigned int num)
memset: {
.const c = ' '
.const num = $400
.label str = DEFAULT_SCREEN
.label end = str+num
.label dst = 2
lda #<str
sta.z dst
lda #>str
sta.z dst+1
__b1:
// for(char* dst = str; dst!=end; dst++)
lda.z dst+1
cmp #>end
bne __b2
lda.z dst
cmp #<end
bne __b2
// }
rts
__b2:
// *dst = c
lda #c
ldy #0
sta (dst),y
// for(char* dst = str; dst!=end; dst++)
inc.z dst
bne !+
inc.z dst+1
!:
jmp __b1
}
| 18.661654 | 118 | 0.55278 |
16206b208c543cea19016573ab19489dcdc46969 | 220 | asm | Assembly | tests/issue64/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 414 | 2016-10-14T22:39:20.000Z | 2022-03-30T07:52:44.000Z | tests/issue64/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 100 | 2018-03-22T16:12:24.000Z | 2022-03-26T09:19:23.000Z | tests/issue64/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 47 | 2017-06-29T15:12:13.000Z | 2022-03-10T04:50:51.000Z | #subruledef REG {
my_reg => 0xA
}
#ruledef {
test {Addr: u16} => 0x1 @ Addr
test {register: REG} + {Imm: u16} => register`4 @ Imm_Unknown
}
test my_reg + 1
; error:_:9: failed to resolve
; error:_:6: unknown | 20 | 65 | 0.613636 |
94197779ed7912e31570a63b93123a710e05784c | 392 | asm | Assembly | oeis/098/A098871.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/098/A098871.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/098/A098871.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A098871: Sums of distinct powers of 4 plus 1.
; Submitted by Jon Maiga
; 1,2,5,6,17,18,21,22,65,66,69,70,81,82,85,86,257,258,261,262,273,274,277,278,321,322,325,326,337,338,341,342,1025,1026,1029,1030,1041,1042,1045,1046,1089,1090,1093,1094,1105,1106,1109,1110,1281,1282,1285,1286
mov $2,1
lpb $0
mov $3,$0
div $0,2
mod $3,2
mul $3,$2
add $1,$3
mul $2,4
lpe
mov $0,$1
add $0,1
| 24.5 | 209 | 0.668367 |
7641d7aa970ff9498e3adaae38891093a911fa4a | 1,272 | asm | Assembly | misc/cpcacid_src/cpcacid_hsynclen.asm | floooh/yakc | 0d00dac14a81bf8d92351ebe1397813385c82b3b | [
"MIT"
] | 106 | 2015-11-15T19:55:05.000Z | 2021-06-05T11:55:32.000Z | misc/cpcacid_src/cpcacid_hsynclen.asm | floooh/yakc | 0d00dac14a81bf8d92351ebe1397813385c82b3b | [
"MIT"
] | 28 | 2015-11-14T09:21:03.000Z | 2018-04-04T22:36:17.000Z | misc/cpcacid_src/cpcacid_hsynclen.asm | floooh/yakc | 0d00dac14a81bf8d92351ebe1397813385c82b3b | [
"MIT"
] | 9 | 2016-06-22T00:09:23.000Z | 2021-04-25T00:39:02.000Z |
;; 5 shifts to right, 4 shifts to right (stable)
;; 3 can sync but takes a few frames
;; 1/2 is diagonal but doesn't blank on plus or type 4
;; >=6 is ok, including 16 which on plus is 16
org &8000
start:
di
ld hl,&c000
ld e,l
ld d,h
inc de
ld bc,&3fff
ld (hl),0
ldir
ld bc,&7f00+%10001110
out (c),c
ld bc,&7f10
out (c),c
ld bc,&7f00+&54
out (c),c
ld bc,&7f00
out (c),c
ld bc,&7f40
out (c),c
ld bc,&bc03
out (c),c
ld bc,&bd00+&8e
out (c),c
ld a,&e
ld (hsynclen),a
call write_text_init
mainloop:
ld b,&f5
ml:
in a,(c)
rra
jr nc,ml
ld h,1
ld l,1
call set_char_coords
ld a,(hsynclen)
and &f
call display_hex
call readkeys
ld bc,&bc03
out (c),c
inc b
ld a,(hsynclen)
and &f
or &80
out (c),a
ld ix,old_matrix_buffer
ld iy,matrix_buffer
bit 0,(ix+9)
jr z,noup
bit 0,(iy+9)
jr nz,noup
ld a,(hsynclen)
dec a
ld (hsynclen),a
noup:
bit 1,(ix+9)
jr z,nodown
bit 1,(iy+9)
jr nz,nodown
ld a,(hsynclen)
inc a
ld (hsynclen),a
nodown:
jp mainloop
display_hex:
push af
rrca
rrca
rrca
rrca
call display_hex_digit
pop af
display_hex_digit:
and &f
cp 10
jr c,dhd1
add a,'A'-10
jp writechar
dhd1:
add a,'0'
jp writechar
hsynclen:
defb &e
include "lib/hw/readkeys.asm"
include "lib/hw/writetext.asm"
include "lib/hw/scr.asm"
sysfont:
incbin "lib/hw/sysfont.bin"
end start | 10.965517 | 54 | 0.685535 |
9032d0faae1fdf16f9a9ca5de10c47dd9c94ebe0 | 1,264 | asm | Assembly | src/code-injection/main.asm | lewismoten/6502-program-1 | f4ea14505066da3502b792a16863ff0f6217e3b0 | [
"MIT"
] | 1 | 2021-03-04T20:09:55.000Z | 2021-03-04T20:09:55.000Z | src/code-injection/main.asm | lewismoten/6502-program-1 | f4ea14505066da3502b792a16863ff0f6217e3b0 | [
"MIT"
] | null | null | null | src/code-injection/main.asm | lewismoten/6502-program-1 | f4ea14505066da3502b792a16863ff0f6217e3b0 | [
"MIT"
] | null | null | null | ; Start at address 0x0F00
; Create a jump instruction at 0x0401 to jump to the start of our project
; Jump to 0x0401
; Repeatedly
; Everything else is no-operation instructions
; 64kb file
; Set default value to no-operation instruction
FILLVALUE $EA
; start assembling at address 0
ORG $0000
; Fill no-op instructions to address 3840
PAD $0F00
; start of program
main:
; ------- Inject jmp main at 0x0400 -------
; Load accumulator with value of a JMP instruction
lda #$4C ; A9 4C
; Store accumulator at address 1024
sta $0400 ; 8D 00 04
; Load accumulator with value of least significant byte of 'main' label (0x0400) 00
lda #$00 ; A9 00
; Store value in accumulator at address 1025
sta $0401 ; 8D 01 04
; Load accumulator with value of most significant byte of 'main' label (0x0F00)
lda #$0F ; A9 0F
; Store value in accumulator at address 1026
sta $0402 ; 8D 02 04
; ------- Jump to the injected code -------
; Jump to the instruction we stored at 0x0400
jmp $0400 ; 4C 00 04
; Fill memory with no-operation instructions up to 1 less than entry address
PAD $FFFA
; set start of program at address 3840
; hack - set jump instruction just before it
jmp main ; 4C 00 0F
; set rest of memory up to 64kb with no-operation instructions
ALIGN $10000
| 22.981818 | 83 | 0.727057 |
d3e24efd47899c626ea0b7b3a31c70634ba45d96 | 181 | asm | Assembly | data/pokemon/dex_entries/corasun.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/dex_entries/corasun.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/dex_entries/corasun.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | db "TOUGH FISH@" ; species name
db "Its tough hide is"
next "a cover for its"
next "general lack of"
page "intelligence and"
next "maneuverability in"
next "the water.@"
| 18.1 | 32 | 0.679558 |
689029793475165e327df73408b7eaa1575e3407 | 1,631 | asm | Assembly | src/SlimShader.VirtualMachine.Tests/Shaders/VS/Simple.asm | tgjones/slimshader | 4fc64414b82fec8a41f8455037b3717e71907b89 | [
"MIT"
] | 125 | 2015-01-04T09:33:05.000Z | 2022-03-13T05:08:50.000Z | src/SlimShader.VirtualMachine.Tests/Shaders/VS/Simple.asm | tgjones/slimshader | 4fc64414b82fec8a41f8455037b3717e71907b89 | [
"MIT"
] | 1 | 2015-04-01T22:26:14.000Z | 2015-04-02T12:57:18.000Z | src/SlimShader.VirtualMachine.Tests/Shaders/VS/Simple.asm | tgjones/slimshader | 4fc64414b82fec8a41f8455037b3717e71907b89 | [
"MIT"
] | 36 | 2015-01-26T22:01:38.000Z | 2022-01-26T04:35:56.000Z | //
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
// float4x4 WorldViewProjection; // Offset: 0 Size: 64
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION 0 xyz 0 NONE float xyz
// NORMAL 0 xyz 1 NONE float xyz
// TEXCOORD 0 xy 2 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position 0 xyzw 0 POS float xyzw
// NORMAL 0 xyz 1 NONE float xyz
// TEXCOORD 0 xy 2 NONE float xy
//
vs_4_0
dcl_constantbuffer cb0[3], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyz
dcl_output o2.xy
dcl_temps 1
mul r0.xyzw, v0.yyyy, cb0[1].xyzw
mad r0.xyzw, cb0[0].xyzw, v0.xxxx, r0.xyzw
mad o0.xyzw, cb0[2].xyzw, v0.zzzz, r0.xyzw
mov o1.xyz, v1.xyzx
mov o2.xy, v2.xyxx
ret
// Approximately 6 instruction slots used
| 28.614035 | 78 | 0.45187 |
fbd61ab83141bbaf72673bfd2b7eaba9d4d738e5 | 9,600 | asm | Assembly | gamestate.asm | AleffCorrea/BrickBreaker | 625eec4e6c7c0053720a378c91f530f6ce58bcbe | [
"MIT"
] | 4 | 2017-07-20T07:27:21.000Z | 2021-04-18T03:59:44.000Z | gamestate.asm | AleffCorrea/BrickBreaker | 625eec4e6c7c0053720a378c91f530f6ce58bcbe | [
"MIT"
] | null | null | null | gamestate.asm | AleffCorrea/BrickBreaker | 625eec4e6c7c0053720a378c91f530f6ce58bcbe | [
"MIT"
] | 1 | 2021-04-18T04:00:08.000Z | 2021-04-18T04:00:08.000Z | ;gamestate.asm
STATE_INSTRUCTIONS = 0
STATE_TITLE = 1
STATE_HISCORE = 2
STATE_GAME = 3
STATE_TIMEUP = 4
STATE_GAMEOVER = 5
STATE_ENDING = 6
STATE_WIN = 7
STATE_DEBUG = 8
STATE_ERROR = 9
GameState_Change:
LDX GAME_STATE
STX GAME_OLDSTATE
STA GAME_STATE
LDA #TRUE
STA GAME_TRANSITION
RTS
GameState_Table:
.dw State_Instructions - 1 ;instructions.asm
.dw Title_Loop - 1 ;titlescr.asm
.dw 0 ;titlescr.asm
.dw State_Match - 1
.dw State_Timeup - 1
.dw State_Gameover - 1 ;gameover
.dw State_Ending - 1 ;ending_win
.dw State_Win - 1 ;win
.dw Debug_MapEdit - 1 ;debug.asm
GameStateInit_Table:
.dw State_Instructions_Init - 1 ;instrutions.asm
.dw Title_Init - 1 ;titlescr.asm
.dw 0
.dw State_Match_Init - 1
.dw State_Timeup_Init - 1
.dw State_Gameover_Init - 1 ;gameover
.dw State_Ending_Init - 1 ;ending_win
.dw State_Win_Init - 1 ;win
.dw Debug_MapEdit_Init - 1 ;debug.asm
GameStateManager:
LDA GAME_STATE
CMP #STATE_ERROR
BCS .error ;if the state is invalid
LDA GAME_TRANSITION
CMP #TRUE
BNE .continue
.new
JSR PPU_Queue1_Reset ;Clears PPU job queue
JSR ObjectList_Init ;Clears metasprite list
LDA GAME_STATE
JSI GameStateInit_Table
LDA #FALSE
STA GAME_TRANSITION
JSR FamiToneMusicStop
.continue
LDA GAME_STATE
JSI GameState_Table
RTS
.error
RTS
.include "matchdata.txt"
Match0_StateMachine:
.db OPC_RAMWrite
.dw INSTRUCT_SYNC ;Resets counter that controls instruction screen.
.db 0
.db OPC_DrawSquare, $40, 32, 30
.dw $2000
.db OPC_Delay, 60
.db OPC_ScreenOff
.db OPC_DrawRLEBurst
.dw $2000, bg_Playfield
.db OPC_ScreenOn
.db OPC_Delay, 30
.db OPC_DrawMetatileRow
.dw $2082, COLLISION_MAP + 33
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 1, COLLISION_MAP + 33 + 16 * 1
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 2, COLLISION_MAP + 33 + 16 * 2
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 3, COLLISION_MAP + 33 + 16 * 3
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 4, COLLISION_MAP + 33 + 16 * 4
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 5, COLLISION_MAP + 33 + 16 * 5
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 6, COLLISION_MAP + 33 + 16 * 6
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 7, COLLISION_MAP + 33 + 16 * 7
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 8, COLLISION_MAP + 33 + 16 * 8
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 9, COLLISION_MAP + 33 + 16 * 9
.db 14
.db OPC_DrawMetatileRow
.dw $2082 + 64 * 10, COLLISION_MAP + 33 + 16 * 10
.db 14
.db OPC_Delay, 50
.db OPC_DrawSquare, $20, 6, 2
.dw $21CD
.db OPC_DrawString
.dw $21ED, Text_Start
.db OPC_Delay, 25
.db OPC_DrawSquare, $20, 6, 2
.dw $21CD
.db OPC_Delay, 25
.db OPC_DrawSquare, $20, 6, 2
.dw $21CD
.db OPC_DrawString
.dw $21ED, Text_Start
.db OPC_Delay, 25
.db OPC_DrawSquare, $20, 6, 2
.dw $21CD
.db OPC_Delay, 25
.db OPC_DrawSquare, $20, 6, 2
.dw $21CD
.db OPC_DrawString
.dw $21ED, Text_Start
.db OPC_Delay, 25
.db OPC_RAMWrite
.dw MATCH_START
.db 2
.db OPC_DrawMetatileRow
.dw $21C2, COLLISION_MAP + 33 + 16 * 5
.db 14
.db OPC_Halt
State_Match_Init:
LDA MATCH_LEVEL
BEQ .firstrun ;if level = 0, will play instruction screen then come back with level = 1
LDX #LOW(Match0_StateMachine)
LDY #HIGH(Match0_StateMachine)
JSR State_Interpreter_Init
;Gets the current enemy's field arrangement and uploads into collision map.
LDA MATCH_REENTRANT
CMP #TRUE
BEQ .cleartimers ;Preserve collision map if reentrant.
LDA MATCH_LEVEL
TZP16 CALL_ARGS, Match_EnemyMaps
JSR CollisionMap_UploadMap
LDA #FALSE
STA MATCH_REENTRANT
.cleartimers
LDA #0
;Resets Frame Timer
STA MATCH_FRAMES
STA MATCH_P1SCOREBUF
STA MATCH_P1BALLBUF
STA MATCH_BROKENBRIX
;Calculate # of tiles to be broken to win
JSR Match_GetTileQ
LDA #MATCH_TIMER_DEFAULT
STA MATCH_TIMER
LDA #$FF
STA MATCH_BALLID
LDA #FALSE
STA MATCH_START
RTS
.firstrun
LDA #MATCH_LIVES_DEFAULT
STA MATCH_P1LIFE
LDA #MATCH_BALLS_DEFAULT
STA MATCH_P1BALL
LDA #0
STA MATCH_P1SCORE
STA MATCH_P1SCORE + 1
LDA #FALSE
STA MATCH_REENTRANT
RTS
State_Match:
LDA MATCH_LEVEL
BNE .cont
LDA #MATCH_LIVES_DEFAULT
STA MATCH_P1LIFE
LDA #0
STA MATCH_P1SCORE
STA MATCH_P1SCORE + 1
LDA #STATE_INSTRUCTIONS
JSR GameState_Change
RTS
.cont
JSR State_Interpreter
LDA MATCH_START
CMP #FALSE
BEQ .exit
CMP #TRUE
BNE .2ndinit
JMP Match_Play
.2ndinit
CMP #2
BEQ Match_Play_Init
.exit
RTS
Match_Play_Init:
LDA #TRUE
STA MATCH_START
LDX #$78
LDY #$C2
LDA #OBJ_PLAYER
JSR ObjectList_Insert
STA MATCH_PLAYERID
PHA
LDA #OBJ_BALL_LAUNCHER
JSR ObjectList_Insert
STA MATCH_BALLID
TAX
PLA
TAY
LDA PLAYER_UMBRELLAID, y
STA LAUNCHER_PARENTID, x
;Draw level # on screen
LDA #LOW(MATCH_LEVEL)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_LEVEL)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_LEVEL_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_LEVEL_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
;Draw fake score zeroes on screen
LDA #LOW(Zeroes)
STA <CALL_ARGS + 2
LDA #HIGH(Zeroes)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_SCORE_PPU + 4)
STA <CALL_ARGS
LDA #HIGH(MATCH_SCORE_PPU + 4)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
;Draw timer on screen, too.
JSR Match_UpdateTimer
;Draw "true" score digits too
LDA #LOW(MATCH_P1SCORE + 1)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1SCORE + 1)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_SCORE_PPU + 2)
STA <CALL_ARGS
LDA #HIGH(MATCH_SCORE_PPU + 2)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
LDA #LOW(MATCH_P1SCORE)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1SCORE)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_SCORE_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_SCORE_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
;Draw them balls
LDA #LOW(MATCH_P1BALL)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1BALL)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_BALL_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_BALL_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
;Draw number of "lives" (credits)
LDA #LOW(MATCH_P1LIFE)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1LIFE)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_LIVES_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_LIVES_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
LDA #0
JSR FamiToneMusicPlay
RTS
Match_Play:
JSR Match_MonitorBall
JSR Match_MonitorBricks
JSR Match_UpdateScore
JSR Match_UpdateBalls
LDA MATCH_P1BALL
BEQ .gameover
.updateTimer
LDA MATCH_FRAMES
TCK MATCH_FRAMES
LDA MATCH_FRAMES
CMP #75
BCC .asdf
DEC MATCH_TIMER
BEQ .timeup
JSR Match_UpdateTimer
.asdf
JMP .exit
.gameover
LDA #FALSE
STA MATCH_REENTRANT
LDA #STATE_GAMEOVER
JSR GameState_Change
RTS
.timeup
JSR Match_UpdateTimer
LDA #STATE_TIMEUP
JSR GameState_Change
RTS
.exit
RTS
Match_MonitorBricks:
LDA MATCH_BROKENBRIX
CMP MATCH_BRICKTOTAL
BCS .win
RTS
.win
INC MATCH_LEVEL
LDA MATCH_LEVEL
CMP #GAME_MAXLEVELS + 1
BCS .ending
LDA #FALSE
STA MATCH_REENTRANT
LDA #STATE_WIN
JSR GameState_Change
RTS
.ending
LDA #FALSE
STA MATCH_REENTRANT
LDA #STATE_ENDING
JSR GameState_Change
RTS
Match_UpdateBalls
LDA MATCH_P1BALLBUF
BEQ .exit ;Exit if there's no points to be added
LDA MATCH_P1BALL
SEC
SBC MATCH_P1BALLBUF
STA MATCH_P1BALL ;increase lower digits
BEQ .gameovera
BCC .gameovera
.draw
;Draw lower digits
LDA #LOW(MATCH_P1BALL)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1BALL)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_BALL_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_BALL_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
.exit
LDA #0
STA MATCH_P1BALLBUF
RTS
.gameovera
LDA #0
STA MATCH_P1BALL
JMP .draw
Match_UpdateScore:
LDA MATCH_P1SCOREBUF
BEQ .exit ;Exit if there's no points to be added
CLC
ADC MATCH_P1SCORE + 1
STA MATCH_P1SCORE + 1 ;increase lower digits
CMP #100
PHP
BCC .drawLo ;Save carry flag for later
INC MATCH_P1SCORE
LDA MATCH_P1SCORE + 1
SEC
SBC #100
STA MATCH_P1SCORE + 1
.drawLo
;Draw lower digits
LDA #LOW(MATCH_P1SCORE + 1)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1SCORE + 1)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_SCORE_PPU + 2)
STA <CALL_ARGS
LDA #HIGH(MATCH_SCORE_PPU + 2)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
PLP ;Restore carry from lower digit addition
BCC .exit ;Skip drawing if higher digits aren't changed.
LDA MATCH_P1SCORE
CMP #100
BCC .drawHi
DEC MATCH_P1SCORE ;congrats but 99 is the max :P
.drawHi
;Draw hi digits
LDA #LOW(MATCH_P1SCORE)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_P1SCORE)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_SCORE_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_SCORE_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
.exit
LDA #0
STA MATCH_P1SCOREBUF ;Clear score buffer
RTS
Match_UpdateTimer
LDA #0
STA MATCH_FRAMES
LDA #LOW(MATCH_TIMER)
STA <CALL_ARGS + 2
LDA #HIGH(MATCH_TIMER)
STA <CALL_ARGS + 3
LDA #LOW(MATCH_TIMER_PPU)
STA <CALL_ARGS
LDA #HIGH(MATCH_TIMER_PPU)
STA <CALL_ARGS + 1
JSR PPU_DrawLargeBase100
RTS
Match_MonitorBall:
LDY MATCH_BALLID
LDA OBJ_LIST, y
CMP #$FF
BEQ .replace
RTS
.replace
LDY MATCH_PLAYERID
LDA PLAYER_UMBRELLAID, y
PHA
TAY
LDA OBJ_XPOS, y
TAX
LDA OBJ_YPOS, y
TAY
LDA #OBJ_BALL_LAUNCHER
JSR ObjectList_Insert
STA MATCH_BALLID
TAX
PLA
STA LAUNCHER_PARENTID, x
RTS
;Calculates how many tiles are to be cleared
Match_GetTileQ:
LDX #0
STX MATCH_BRICKTOTAL
.loop
LDA COLLISION_MAP, x
AND #%00011111
BEQ .continue
CMP #TILE_BRICK
BEQ .found
CMP #TILE_DAMAGEDBRICK
BEQ .found
.continue
INX
CPX #240
BCS .end
JMP .loop
.end
LDA #FALSE
RTS
.found
INC MATCH_BRICKTOTAL
JMP .continue
| 16.216216 | 89 | 0.728125 |
3eeaf0128dc5d53d0c01916fdcade6b1d7619a7c | 1,454 | asm | Assembly | ServiceCall/x64.asm | bb107/ServiceCall | 552b82405cfa4ac8cf8b5c2c222a339b7ff12997 | [
"MIT"
] | 8 | 2019-10-03T09:54:32.000Z | 2022-01-05T16:16:55.000Z | ServiceCall/x64.asm | c3358/ServiceCall | 552b82405cfa4ac8cf8b5c2c222a339b7ff12997 | [
"MIT"
] | null | null | null | ServiceCall/x64.asm | c3358/ServiceCall | 552b82405cfa4ac8cf8b5c2c222a339b7ff12997 | [
"MIT"
] | 4 | 2020-05-02T03:57:17.000Z | 2021-06-18T00:55:36.000Z | public __x64ServiceCall
.code
align 16
__x64ServiceCall proc frame; NTSTATUS __x64ServiceCall(LPVOID lpServiceRoutine, PSERVICE_ROUTINE_PARAMETER lpParameters) {
.endprolog
; lpServiceRoutine in rcx
; lpParameters in rdx
; rbx save sizeof stack allocated
push rbx;
mov r10, rcx;
mov eax, dword ptr[rdx]; DWORD dwStack = lpParameters->dwParameters;
cmp rax, 4h;
jnl _skip1; if(dwStack < 4) dwStack = 4;
mov rax, 4h;
_skip1:
test rax, 1h; if(dwStack % 2) dwStack++;
jz _skip2;
inc rax;
_skip2:
mov rbx, rax; DWORD dwStackAllocated = dwStack * 8;
shl rbx, 3h;
mov r8d, eax;
sub r8d, dword ptr[rdx];
cmp r8d, 0; if(lpParameters->dwParameters < dwStack) rsp -= 8*(dwStack - lpParameters->dwParameters);
je _skip3;
shl r8, 3h;
sub rsp, r8;
_skip3:
mov eax, dword ptr[rdx]; DWORD dwIndex = lpParameters->dwParameters;
lea r8d, dword ptr[eax - 1h];
shl r8, 4h;
add rdx, 8h; PSERVICE_PARAMETER_BLOB param = lpParameters->Parameters + dwIndex;
add rdx, r8;
_loop:
cmp eax, 0h; while(dwIndex) {
je _break;
push qword ptr[rdx + 8h]; __asm push param->ulParameter;
sub rdx, 10h;
dec eax; dwIndex--;
jmp _loop; }
_break:
mov rcx, qword ptr[rsp];
mov rdx, qword ptr[rsp + 8h];
mov r8, qword ptr[rsp + 10h];
mov r9, qword ptr[rsp + 18h];
call r10; return reinterpret_cast<NTSTATUS (*)()>(lpServiceRoutine)();
add rsp, rbx;
pop rbx;
ret; }
__x64ServiceCall endp
end | 25.964286 | 123 | 0.678817 |
c9f0ba8c084521bc6d8ae18c87c869f55d9c2530 | 1,301 | asm | Assembly | boot/32bit-gdt.asm | prithivi-maruthachalam/PrOS | a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8 | [
"MIT"
] | 1 | 2020-07-17T04:58:20.000Z | 2020-07-17T04:58:20.000Z | boot/32bit-gdt.asm | prythagoras/PrOS | a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8 | [
"MIT"
] | null | null | null | boot/32bit-gdt.asm | prythagoras/PrOS | a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8 | [
"MIT"
] | null | null | null | gdt_start:
;needs 8 null bytes to start
dd 0x0 ;4 bytes
dd 0x0 ;4 bytes
;descriptor for code segement
gdt_code:
;base has to be 0x0
;limit is 0xfffff
;1st flags - present:1, privilege:00, descriptor type: 1 > 1001
;type flags - code:1, conforming:0, readable:1, accessed:0 > 1010
;2nd flags: granularity:1,32-bit default:1,64-bit seg:0,AVL,0 > 1100
dw 0xffff ;segment length mltiplier-ish - limit - (bits 0-15)
dw 0x0 ;Base address (bits 0-15)
db 0x0 ;Base address (bits 16-23)
db 10011010b ;1st flags, type flags
db 11001111b ;2nd flags, limit - (bits 16-19)
db 0x0 ;Base address (bits 24-31)
gdt_data:
;basically everything except type flags are the same, because we are creating overlapping segments
;type flags - code:0, expand down:0, writable: 1, accessed:0 >0010
dw 0xffff
dw 0x0
db 0x0
db 10010010b ;1st flags, type flags
db 11001111b
db 0x0
gdt_end:
;only to calculate the size of the GDT
gdt_descriptor:
dw gdt_end - gdt_start - 1 ;indexing, logic and shit right? - basically size of the descriptor
dd gdt_start ;address of the descriptor (32-bit)
;points to the code and data segments
CODE_SEGMENT equ gdt_code - gdt_start
DATA_SEGMENT equ gdt_data - gdt_start
| 30.97619 | 102 | 0.682552 |
1d809e795819c8f212471341fc5ff35ba8ee6ba2 | 907 | asm | Assembly | oeis/232/A232508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/232/A232508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/232/A232508.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A232508: Number of (n+1) X (1+1) 0..2 arrays with every element next to itself plus and minus one within the range 0..2 horizontally, diagonally or antidiagonally, with no adjacent elements equal.
; Submitted by Jon Maiga
; 4,4,8,16,28,52,96,176,324,596,1096,2016,3708,6820,12544,23072,42436,78052,143560,264048,485660,893268,1642976,3021904,5558148,10223028,18803080,34584256,63610364,116997700,215192320,395800384,727990404,1338983108,2462773896,4529747408,8331504412,15324025716,28185277536,51840807664,95350110916,175376196116,322567114696,593293421728,1091236732540,2007097268964,3691627423232,6789961424736,12488686116932,22970274964900,42248922506568,77707883588400,142927081059868,262883887154836,483518851803104
trn $0,1
seq $0,301657 ; Number of nX3 0..1 arrays with every element equal to 0, 1 or 4 horizontally or vertically adjacent elements, with upper left element zero.
sub $0,2
mul $0,4
| 100.777778 | 498 | 0.825799 |
03ebd83e6a6a88f49efd006cb74f563d009599fa | 4,836 | asm | Assembly | x86/Gen_Legal.asm | lantonov/asm | b9ddd4ed9a8c73cbd3600608847769f4690c293c | [
"BSD-3-Clause"
] | 150 | 2016-11-26T05:41:31.000Z | 2022-02-09T20:54:53.000Z | x86/Gen_Legal.asm | lantonov/asm | b9ddd4ed9a8c73cbd3600608847769f4690c293c | [
"BSD-3-Clause"
] | 199 | 2016-12-07T22:13:00.000Z | 2022-03-22T15:42:18.000Z | x86/Gen_Legal.asm | lantonov/asm | b9ddd4ed9a8c73cbd3600608847769f4690c293c | [
"BSD-3-Clause"
] | 95 | 2016-11-24T22:57:13.000Z | 2022-01-24T19:42:10.000Z | ; Generate all legal moves.
calign 16
Gen_Legal:
; in: rbp address of position
; rbx address of state
; io: rdi address to write moves
push rsi r12 r13 r14 r15
; generate moves
mov rax, qword[rbx+State.checkersBB]
mov rsi, rdi
mov r15, qword[rbx+State.pinned]
mov r13d, dword[rbp+Pos.sideToMove]
mov r12, qword[rbp+Pos.typeBB+8*King]
and r12, qword[rbp+Pos.typeBB+8*r13]
_tzcnt r14, r12
; r15 = pinned pieces
; r14d = our king square
; r13d = side
; r12 = our king bitboard
test rax, rax
jnz .InCheck
.NotInCheck: call Gen_NonEvasions
jmp .GenDone
.InCheck: call Gen_Evasions
.GenDone:
shl r14d, 6
mov edx, dword[rsi]
mov ecx, edx
mov eax, edx
cmp rsi, rdi
je .FilterDone
test r15, r15
jne .FilterYesPinned
.FilterNoPinned:
and ecx, 0x0FC0 ; ecx shr 6 = source square
add rsi, sizeof.ExtMove
cmp ecx, r14d
je .KingMove
cmp edx, MOVE_TYPE_EPCAP shl 12
jae .EpCapture
mov edx, dword[rsi]
mov ecx, edx ; move is legal at this point
mov eax, edx
cmp rsi, rdi
jne .FilterNoPinned
.FilterDone:
pop r15 r14 r13 r12 rsi
ret
calign 8
.KingMove:
; if they have an attacker to king's destination square, then move is illegal
and eax, 63 ; eax = destination square
mov ecx, r13d
shl ecx, 6+3
mov rcx, qword[PawnAttacks+rcx+8*rax]
; pseudo legal castling moves are always legal ep captures have already been caught
cmp edx, MOVE_TYPE_CASTLE shl 12
jae .FilterLegalChoose
mov r9, qword[rbp+Pos.typeBB+8*r13]
xor r13d, 1
mov r10, qword[rbp+Pos.typeBB+8*r13]
or r9, r10
xor r13d, 1
; pawn
and rcx, qword[rbp+Pos.typeBB+8*Pawn]
test rcx, r10
jnz .FilterIllegalChoose
; king
mov rdx, qword[KingAttacks+8*rax]
and rdx, qword[rbp+Pos.typeBB+8*King]
test rdx, r10
jnz .FilterIllegalChoose
; knight
mov rdx, qword[KnightAttacks+8*rax]
and rdx, qword[rbp+Pos.typeBB+8*Knight]
test rdx, r10
jnz .FilterIllegalChoose
; bishop + queen
BishopAttacks rdx, rax, r9, r8
mov r8, qword[rbp+Pos.typeBB+8*Bishop]
or r8, qword[rbp+Pos.typeBB+8*Queen]
and r8, r10
test rdx, r8
jnz .FilterIllegalChoose
; rook + queen
RookAttacks rdx, rax, r9, r8
mov r8, qword[rbp+Pos.typeBB+8*Rook]
or r8, qword[rbp+Pos.typeBB+8*Queen]
and r8, r10
test rdx, r8
jnz .FilterIllegalChoose
.FilterLegalChoose:
mov edx, dword[rsi]
mov ecx, edx ; move is legal at this point
mov eax, edx
cmp rsi, rdi
je .FilterDone
test r15, r15
jz .FilterNoPinned
jmp .FilterYesPinned
.FilterIllegalChoose:
sub rdi, sizeof.ExtMove
sub rsi, sizeof.ExtMove
mov edx, dword [rdi]
mov dword [rsi], edx
mov ecx, edx ; move is legal at this point
mov eax, edx
cmp rsi, rdi
je .FilterDone
test r15, r15
jz .FilterNoPinned
calign 8
.FilterYesPinned:
and ecx, 0x0FC0 ; ecx shr 6 = source square
add rsi, sizeof.ExtMove
cmp ecx, r14d
je .KingMove
cmp edx, MOVE_TYPE_EPCAP shl 12
jae .EpCapture
shr ecx, 6
and eax, 0x0FFF
bt r15, rcx
jc .FilterYesPinnedWeArePinned
.FilterYesPinnedLegal:
mov edx, dword[rsi]
mov ecx, edx ; move is legal at this point
mov eax, edx
cmp rsi, rdi
jne .FilterYesPinned
jmp .FilterDone
.FilterYesPinnedWeArePinned:
test r12, qword[LineBB+8*rax]
jnz .FilterYesPinnedLegal
.FilterYesPinnedIllegal:
sub rdi, sizeof.ExtMove
sub rsi, sizeof.ExtMove
mov edx, dword[rdi]
mov dword[rsi], edx
mov ecx, edx ; move is legal at this point
mov eax, edx
cmp rsi, rdi
jne .FilterYesPinned
jmp .FilterDone
calign 8
.EpCapture:
; for ep captures, just make the move and test if our king is attacked
xor r13d, 1
mov r10, qword[rbp+Pos.typeBB+8*r13]
xor r13d, 1
mov r9d, r14d
shr r9d, 6
; all pieces
mov rdx, qword[rbp+Pos.typeBB+8*White]
or rdx, qword[rbp+Pos.typeBB+8*Black]
; remove source square
shr ecx, 6
btr rdx, rcx
; add destination square (ep square)
and eax, 63
bts rdx, rax
; remove captured pawn
lea ecx, [2*r13-1]
lea ecx, [rax+8*rcx]
btr rdx, rcx
; check for rook attacks
RookAttacks rax, r9, rdx, r8
mov rcx, qword[rbp+Pos.typeBB+8*Rook]
or rcx, qword[rbp+Pos.typeBB+8*Queen]
and rcx, r10
test rax, rcx
jnz .FilterIllegalChoose
; check for bishop attacks
BishopAttacks rax, r9, rdx, r8
mov rcx, qword [rbp+Pos.typeBB+8*Bishop]
or rcx, qword[rbp+Pos.typeBB+8*Queen]
and rcx, r10
test rax, rcx
jnz .FilterIllegalChoose
jmp .FilterLegalChoose
| 24.673469 | 85 | 0.63627 |
75013a8d8fcda2a8f2659340a35f4bf73601d84f | 841 | asm | Assembly | oeis/239/A239040.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/239/A239040.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/239/A239040.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A239040: Number of n X 1 0..3 arrays with no element equal to one plus the sum of elements to its left or one plus the sum of elements above it, modulo 4.
; Submitted by Jamie Morken(s2)
; 3,7,16,38,90,212,500,1180,2784,6568,15496,36560,86256,203504,480128,1132768,2672544,6305344,14876224,35097536,82805760,195363968,460923008,1087457536,2565643008,6053132032,14281179136,33693644288,79493552640,187549463552,442486215680,1043959536640,2463018000384,5811008432128,13709935937536,32345907875840,76313832615936,180047537106944,424786889965568,1002201445163008,2364497964539904,5578569709010944,13161542308347904,31052080545775616,73261300509573120,172845685635842048,407795532363235328
add $0,2
lpb $0
sub $0,1
add $2,2
add $3,1
add $4,$3
add $4,$3
mov $3,$2
mov $2,$1
add $1,$4
mov $4,$1
lpe
add $1,2
mov $0,$1
div $0,4
| 42.05 | 497 | 0.787158 |
87398877f646e6d5413a20fb081077e6e953fc23 | 475 | asm | Assembly | data/mapHeaders/FuchsiaCity.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapHeaders/FuchsiaCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapHeaders/FuchsiaCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | FuchsiaCity_h:
db OVERWORLD ; tileset
db FUCHSIA_CITY_HEIGHT, FUCHSIA_CITY_WIDTH ; dimensions (y, x)
dw FuchsiaCity_Blocks ; blocks
dw FuchsiaCity_TextPointers ; texts
dw FuchsiaCity_Script ; scripts
db SOUTH | WEST | EAST ; connections
SOUTH_MAP_CONNECTION FUCHSIA_CITY, ROUTE_19, 5, 0, Route19_Blocks
WEST_MAP_CONNECTION FUCHSIA_CITY, ROUTE_18, 4, 0, Route18_Blocks
EAST_MAP_CONNECTION FUCHSIA_CITY, ROUTE_15, 4, 0, Route15_Blocks
dw FuchsiaCity_Object ; objects
| 39.583333 | 66 | 0.810526 |
7962b138b3a33a0c71c571bec44d237383a0def3 | 2,531 | asm | Assembly | smsq/mem/rchp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/mem/rchp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | smsq/mem/rchp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Return space to common heap V2.00 1986 Tony Tebby QJUMP
*
section mem
*
xdef mem_rchp
*
xref mem_rusb round up in slave block allocation units
xref mem_rehp 'return' memory to heap
xref mem_rlsb release slave blocks (a0 by d1)
*
include dev8_keys_sys
include dev8_keys_chp
*
* d0 r error return 0
* a0 c s base of area to be returned
* a6 c p system variables area base
*
* all other registers preserved
*
reglist reg d1/a1
*
mem_rchp
movem.l reglist,-(sp) save volatiles
moveq #chp.free,d0
move.l d0,chp_ownr(a0) set owner free
move.l chp_flag(a0),d0 flag address
beq.s mrc_rehp
move.l d0,a1 set flag
st (a1)
*
mrc_rehp
lea sys_chpf(a6),a1 release to common heap
move.l chp_len(a0),d1 get length
bsr.s mem_rehp ... and release
*
move.l a0,a1 base of new free space
add.l chp_len(a0),a0 top of new free space
*
cmp.l sys_fsbb(a6),a0 filing system base?
bne.s mrc_exok ... no
move.l a1,d1 get base of area
bsr.l mem_rusb and round up
move.l a0,d0 top, less rounded up base
sub.l d1,d0 is amount to release to fsb
beq.s mrc_exok ... none
move.l d1,a0 base of bit to release
move.l d0,d1 and amount
sub.l d1,chp_len(a1) remains of new free space
bne.s mrc_rel ... there is some
*
lea sys_chpf-chp_nxfr(a6),a1 ... none, so remove it from list
*
mrc_look
move.l chp_nxfr(a1),d0 someone must point to it
beq.s mrc_exok ... but they don't
add.l a1,d0
cmp.l d0,a0 does this one?
beq.s mrc_rem ... it does, remove it
move.l d0,a1
bra.s mrc_look
*
mrc_rem
clr.l chp_nxfr(a1) remove link
*
mrc_rel
bsr.l mem_rlsb release slave blocks (a0 by d1)
move.l a0,sys_fsbb(a6) reset filing system slave block base
mrc_exok
moveq #0,d0
movem.l (sp)+,reglist
rts
end
| 34.671233 | 80 | 0.484789 |
e44d4a58284664db28ac91ead0260cd0be9696a9 | 7,716 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1648.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1648.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1648.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x5040, %rsi
lea addresses_A_ht+0x19e8, %rdi
nop
nop
nop
nop
cmp $6389, %r14
mov $17, %rcx
rep movsl
nop
nop
and %r9, %r9
lea addresses_WT_ht+0x8768, %rdi
clflush (%rdi)
nop
nop
nop
xor $42561, %r15
movw $0x6162, (%rdi)
nop
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0x4028, %r15
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, (%r15)
nop
nop
nop
inc %rcx
lea addresses_normal_ht+0x17b18, %rdi
nop
nop
xor $44899, %r14
mov $0x6162636465666768, %rbx
movq %rbx, (%rdi)
nop
dec %rbx
lea addresses_A_ht+0xac28, %r9
cmp %rcx, %rcx
movb $0x61, (%r9)
sub %rcx, %rcx
lea addresses_A_ht+0x157e8, %r15
nop
nop
nop
cmp $234, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
and $0xffffffffffffffc0, %r15
vmovaps %ymm2, (%r15)
nop
cmp %rdi, %rdi
lea addresses_normal_ht+0x18ab4, %rdi
nop
inc %r9
vmovups (%rdi), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r14
nop
dec %rcx
lea addresses_D_ht+0xc428, %r9
nop
nop
nop
xor %rbx, %rbx
mov (%r9), %r14
nop
nop
nop
and $46160, %r15
lea addresses_D_ht+0x464, %rcx
nop
nop
sub %rdi, %rdi
movb $0x61, (%rcx)
nop
nop
nop
xor %r14, %r14
lea addresses_normal_ht+0x1828, %rdi
nop
cmp $44257, %rbx
movl $0x61626364, (%rdi)
nop
nop
nop
sub %rdi, %rdi
lea addresses_WT_ht+0x8828, %rsi
lea addresses_WC_ht+0x7828, %rdi
add $1264, %rbp
mov $18, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x6ed8, %rsi
lea addresses_WC_ht+0xafb2, %rdi
and %r9, %r9
mov $97, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_WC_ht+0x19f42, %r14
clflush (%r14)
nop
nop
nop
add $45903, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
movups %xmm1, (%r14)
nop
nop
cmp $40784, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
// Load
mov $0x25f0650000000fe8, %r14
nop
nop
nop
add $20567, %rcx
mov (%r14), %rsi
nop
nop
nop
xor $46378, %rsi
// Store
lea addresses_US+0x135a8, %r15
nop
xor %rdi, %rdi
mov $0x5152535455565758, %rsi
movq %rsi, (%r15)
add %rcx, %rcx
// Faulty Load
lea addresses_UC+0x3028, %rdi
nop
nop
nop
dec %rax
mov (%rdi), %r14
lea oracles, %rcx
and $0xff, %r14
shlq $12, %r14
mov (%rcx,%r14,1), %r14
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.756757 | 2,999 | 0.65578 |
9c5d5f21fe857989f1087f7de1732e430fd232b7 | 2,785 | asm | Assembly | main.asm | maziac/z80-peripherals-sample | 4cc255a7befa4775cfe53859a83c42880efbca85 | [
"MIT"
] | null | null | null | main.asm | maziac/z80-peripherals-sample | 4cc255a7befa4775cfe53859a83c42880efbca85 | [
"MIT"
] | null | null | null | main.asm | maziac/z80-peripherals-sample | 4cc255a7befa4775cfe53859a83c42880efbca85 | [
"MIT"
] | null | null | null | ;===========================================================================
; main.asm
;
; Description:
;
; The program is used to demonstrate the simulation of interrupts and
; in- and out-port.
;
; The program itself calculates the addition of 2 binary values.
; The result is shown.
; Additionally the result can be memorized.
; The binary values are input via 2 in-ports, 0x8000 and 0x8001.
; The values are added in a loop and output to out-port 0x9000.
; Additionally it is possible to generate an interrupt (IM 1, address 0x0038)
; to store the result. The stored value is output to 0x9001.
;
; There are 3 parts to this demo:
; a) the assembler program which deals with the in- and out-ports and the interrupt.
; b) the HW simulation code in 'simulation/ports.js'
; c) and the UI in 'simulation/ui.html'
;
; Important to note is that the javascript code to simulate the HW works
; synchronously. I.e. all request from the simulator (e.g. reaading a port) have
; to be handled immediately so that it does not stop the simulation.
;
; On the other hand the UI works asynchronously. It communicates with the HW
; simulation code through messages only. No direct function calls.
;
;===========================================================================
SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION
DEVICE NOSLOT64K
ORG $0000
main:
; Setup
di
ld sp,stack_top
im 1
ei
.loop:
;halt
call add_port_inputs
; Loop
jr .loop
; Reads from port 8000h and 8001h, adds both values and stores them
; to 'result' and port 9000h.
add_port_inputs:
; Load value 1 from port
ld bc,0x8000
in a,(c)
; Save value
ld e,a
; Load value 2 from port
ld bc,0x8001
in a,(c)
; Add values
add a,e
; Store result
ld (result),a
; Output result to port
ld bc,0x9000
out (c),a
ret
defs $0038-$
; Interrupt routine at 0x0038.
; The interrupt memorizies the result to another port.
im1_int:
push af
push bc
ld a,(result)
ld bc,0x9001
out (c),a
pop bc
pop af
ei
reti
defs 0x0100 - $
;===========================================================
; Stack.
;===========================================================
; Stack: this area is reserved for the stack
STACK_SIZE: equ 20 ; in words
; Reserve stack space
stack_bottom:
defs STACK_SIZE*2, 0
stack_top:
;===========================================================
; Data
;===========================================================
; The calculation result is stored here.
result: defb 0
;===========================================================
; Unit tests
;===========================================================
include "unit_tests/unit_tests.asm"
| 21.757813 | 84 | 0.552962 |
94974ca03875aa54459445a395925a42afb3e5cd | 221 | asm | Assembly | source/asm-example/teste.asm | Cligor/pyOS | d98c5a02f3fff7e7cbab81f3c73d753197620455 | [
"MIT"
] | null | null | null | source/asm-example/teste.asm | Cligor/pyOS | d98c5a02f3fff7e7cbab81f3c73d753197620455 | [
"MIT"
] | null | null | null | source/asm-example/teste.asm | Cligor/pyOS | d98c5a02f3fff7e7cbab81f3c73d753197620455 | [
"MIT"
] | null | null | null | data: .data 50
vector: .word 0 1 2 3 4 5 6 7 8 9;
name: .asciiz "Eduardo"
_start:
alpha:
add r1, r2, r3
load r7, [r5]
store [r6], r1
jump alpha
mov r4, data
mov r6, 50
betha:
mov r5, -10
jump_cond r3, betha
end: | 13 | 34 | 0.633484 |
49f9337897c8e592c9b9bbdcc253e1466edd223e | 632 | asm | Assembly | oeis/135/A135973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/135/A135973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/135/A135973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A135973: Ceiling(4/3*Pi*n^3).
; Submitted by Jon Maiga
; 0,5,34,114,269,524,905,1437,2145,3054,4189,5576,7239,9203,11495,14138,17158,20580,24430,28731,33511,38793,44603,50966,57906,65450,73623,82448,91953,102161,113098,124789,137259,150533,164637,179595,195433,212175,229848,248475,268083,288696,310340,333039,356818,381704,407721,434893,463247,492807,523599,555648,588978,623615,659584,696910,735619,775735,817284,860290,904779,950776,998306,1047395,1098067,1150347,1204261,1259834,1317090,1376056,1436756,1499215,1563458,1629511,1697399,1767146,1838779
mov $2,$0
seq $0,66645 ; a(n) = floor( (4/3)*Pi*n^3 ).
min $2,1
add $0,$2
| 70.222222 | 499 | 0.786392 |
3f47c4733980632195c7bd84c2aed0c84489f17b | 804 | asm | Assembly | oeis/283/A283353.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/283/A283353.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/283/A283353.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A283353: Decimal representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 619", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,2,4,14,28,62,124,254,508,1022,2044,4094,8188,16382,32764,65534,131068,262142,524284,1048574,2097148,4194302,8388604,16777214,33554428,67108862,134217724,268435454,536870908,1073741822,2147483644,4294967294,8589934588,17179869182,34359738364,68719476734,137438953468,274877906942,549755813884,1099511627774,2199023255548,4398046511102,8796093022204,17592186044414,35184372088828,70368744177662,140737488355324,281474976710654,562949953421308,1125899906842622,2251799813685244,4503599627370494
mov $1,2
pow $1,$0
mov $0,$1
div $1,6
mul $1,6
add $0,$1
| 73.090909 | 495 | 0.830846 |
b605d3f618eb599415b5a6fa62146a7d9794c821 | 2,559 | asm | Assembly | opcodes.asm | DavidBuchanan314/CHIP8-ROP | 6dc96c7ded3fcc902d1ec98fe070dee84aefabcf | [
"MIT"
] | 1 | 2020-03-09T10:04:04.000Z | 2020-03-09T10:04:04.000Z | opcodes.asm | DavidBuchanan314/CHIP8-ROP | 6dc96c7ded3fcc902d1ec98fe070dee84aefabcf | [
"MIT"
] | null | null | null | opcodes.asm | DavidBuchanan314/CHIP8-ROP | 6dc96c7ded3fcc902d1ec98fe070dee84aefabcf | [
"MIT"
] | 1 | 2018-08-17T02:52:38.000Z | 2018-08-17T02:52:38.000Z | BITS 64
extern puts
extern exit
extern vram
extern V
extern DT
global emu_entry
global op_debug
global op_nop
global op_ret
global op_jp
global op_call
global op_se_imm
global op_sne_imm
global op_se
global op_ld_imm
global op_add_imm
global op_ld
global op_or
global op_and
global op_xor
global op_add
global op_ld_i
global op_drw
global op_unld_dt
global op_ld_dt
global op_add_i
global op_ld_regs
section .data
section .bss
stack: resq 16
section .text
align 4
emu_entry:
add rsp, 8
xor rdi, rdi; I register
xor r11, r11; SP register
ret
align 4
op_debug: ; not a real op, used for debugging
pop rdi
call puts
mov rdi, -1
call exit
align 4
op_nop: ; also not a real op
add rsp, 8
ret
align 4
op_ret:
dec r11
mov rsp, [stack+r11*8]
ret
align 4
op_jp:
pop rsp
ret
align 4
op_call:
pop rax
mov [stack+r11*8], rsp
inc r11
mov rsp, rax
ret
align 4
op_se_imm:
pop rax
movzx ecx, ah
cmp [V+ecx], al
jne .cont
add rsp, 16
.cont ret
align 4
op_sne_imm:
pop rax
movzx ecx, ah
cmp [V+ecx], al
je .cont
add rsp, 16
.cont ret
align 4
op_se:
pop rax
xor rbx, rbx
mov bl, ah
mov cl, [V+rbx]
mov bl, al
mov al, [V+rbx]
cmp cl, al
jne .cont
add rsp, 16
.cont ret
align 4
op_ld_imm:
pop rax
movzx ecx, ah
mov [V+ecx], al
ret
align 4
op_add_imm:
pop rax
movzx ecx, ah
add [V+ecx], al
ret
align 4
op_or:
pop rax
movzx ecx, al
mov al, [V+ecx]
movzx ecx, ah
or [V+ecx], al
ret
align 4
op_and:
pop rax
movzx ecx, al
mov al, [V+ecx]
movzx ecx, ah
and [V+ecx], al
ret
align 4
op_xor:
pop rax
movzx ecx, al
mov al, [V+ecx]
movzx ecx, ah
xor [V+ecx], al
ret
align 4
op_add:
pop rax
movzx ecx, al
mov al, [V+ecx]
movzx ecx, ah
add [V+ecx], al
ret
align 4
op_ld:
pop rax
movzx ecx, al
mov al, [V+ecx]
movzx ecx, ah
mov [V+ecx], al
ret
align 4
op_ld_i:
pop rdi
ret
align 4
op_drw:
pop rax
movzx ecx, ah
mov cl, [V+ecx]
add cl, 8
mov dl, al
xor rbx, rbx
mov bl, al
shr bl, 4
mov bl, [V+rbx]
mov byte [V+0xF], 0
mov rsi, rdi
.loop and dl, 0xF
jz .done
and rbx, 31
xor rax, rax
mov al, [rsi]
ror rax, cl
mov r8, rax
and r8, [vram+rbx*8]
jz .nocol
mov byte [V+0xF], 1
.nocol xor [vram+rbx*8], rax
inc rbx
inc rsi
dec dl
jmp .loop
.done ret
align 4
op_unld_dt:
pop rax
mov dl, [DT]
mov [rax], dl
ret
align 4
op_ld_dt:
pop rax
mov al, [rax]
mov [DT], al
ret
align 4
op_add_i:
pop rax
xor rbx, rbx
mov bl, byte [rax]
add rdi, rbx
ret
align 4
op_ld_regs:
pop rax
.loop mov bl, [rdi+rax]
mov [V+rax], bl
dec rax
jns .loop
ret
| 10.530864 | 45 | 0.66823 |
5d3e1b01e0314520b647e88933a331c3caa3de15 | 461 | asm | Assembly | Tests/yasm-regression/ea-warn.asm | 13xforever/x86-assembly-textmate-bundle | f1bb62f77b776d87d0fd85b0276d4237ff72c43c | [
"MIT"
] | 69 | 2015-04-16T18:01:22.000Z | 2022-02-15T07:54:26.000Z | Tests/yasm-regression/ea-warn.asm | javiercbk/x86-assembly-textmate-bundle | 62d700e0196f62ef4353a9b95c2e64beb0a6afda | [
"MIT"
] | 17 | 2016-09-20T08:49:09.000Z | 2021-02-19T15:01:04.000Z | Tests/yasm-regression/ea-warn.asm | javiercbk/x86-assembly-textmate-bundle | 62d700e0196f62ef4353a9b95c2e64beb0a6afda | [
"MIT"
] | 19 | 2016-05-31T07:11:14.000Z | 2021-07-19T10:17:12.000Z | [bits 32]
add [byte ebp*8+06h],ecx ; out: 01 0c ed 06 00 00 00 [warning]
add [dword ebp*8+06h],ecx ; out: 01 0c ed 06 00 00 00
add ecx,[byte ebp*8+06h] ; out: 03 0c ed 06 00 00 00 [warning]
add ecx,[dword ebp*8+06h] ; out: 03 0c ed 06 00 00 00
add ecx,[ebp*8+06h] ; out: 03 0c ed 06 00 00 00
add ecx,[byte ebx*8+06h] ; out: 03 0c dd 06 00 00 00 [warning]
add ecx,[dword ebx*8+06h] ; out: 03 0c dd 06 00 00 00
add ecx,[ebx*8+06h] ; out: 03 0c dd 06 00 00 00
| 46.1 | 63 | 0.637744 |
da3f2f4ff4b264469e4c250ee3bab5397aec7f09 | 113 | asm | Assembly | gfx/pokemon/slugma/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/slugma/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/slugma/anim.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | frame 1, 12
frame 2, 10
frame 3, 06
frame 4, 14
frame 6, 12
frame 7, 10
frame 8, 06
frame 0, 14
endanim
| 11.3 | 12 | 0.628319 |
bf438a72c0597f1d3b0b62ccf32b7d8b90482b1b | 5,033 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1310.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1310.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1310.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rsi
lea addresses_WC_ht+0x17547, %r13
nop
nop
nop
nop
nop
sub %r14, %r14
mov (%r13), %rsi
nop
nop
nop
nop
add $51279, %rbx
lea addresses_A_ht+0x1baad, %r14
nop
nop
nop
and %r8, %r8
movups (%r14), %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
inc %r13
lea addresses_D_ht+0x71ad, %r8
nop
nop
nop
nop
nop
add $25084, %r11
mov $0x6162636465666768, %r14
movq %r14, (%r8)
nop
nop
nop
nop
nop
xor %r14, %r14
lea addresses_WC_ht+0xe4ad, %r13
clflush (%r13)
add $61065, %rbx
movw $0x6162, (%r13)
nop
nop
nop
nop
nop
sub $40836, %r11
lea addresses_WT_ht+0x16aad, %r14
nop
nop
nop
nop
dec %rsi
movb $0x61, (%r14)
nop
nop
nop
xor %r8, %r8
pop %rsi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rdi
push %rdx
// Faulty Load
lea addresses_RW+0x64ad, %r9
nop
cmp %rdx, %rdx
mov (%r9), %r11d
lea oracles, %rdi
and $0xff, %r11
shlq $12, %r11
mov (%rdi,%r11,1), %r11
pop %rdx
pop %rdi
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 43.017094 | 2,999 | 0.657858 |
ec6ceeb6d974d80f70042e618b2d783d88c33b96 | 1,367 | asm | Assembly | programs/oeis/171/A171480.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/171/A171480.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/171/A171480.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A171480: a(n) = 6*a(n-1) - 8*a(n-2) + 4 for n > 1; a(0) = 1, a(1) = 9.
; 1,9,50,232,996,4124,16780,67692,271916,1089964,4364460,17467052,69886636,279583404,1118407340,4473776812,17895402156,71582198444,286329973420,1145322252972,4581293730476,18325184359084,73300756310700,293203062991532,1172812327463596,4691249460849324,18764998145387180,75059993185528492,300239973950073516,1200959898216213164,4803839597696690860,19215358400450439852,76861433621129112236,307445734523171154604,1229782938169994029740,4919131752834594941612,19676527011647617411756,78706108047208944937644,314824432190072730331820,1259297728762764822489772,5037190915056007092284076,20148763660233923973786284,80595054640955487104445100,322380218563861530836380332,1289520874255525288182721196,5158083497022259482405284524,20632333988089354588969937580,82529335952358051674577349292,330117343809433473335704595116,1320469375237736426617608776364,5281877500950950773020015897260,21127510003803813225179225172652,84510040015215273166915223857836,338040160060861133200057541765804,1352160640243444613865023459732140,5408642560973778617589680424266412,21634570243895114794617894867741356,86538280975580459826989925812316844,346153123902321840604996395931970220
mul $0,2
add $0,2
lpb $0
trn $0,4
add $0,2
add $1,2
mul $1,4
mul $2,2
trn $2,1
add $1,$2
add $2,5
lpe
add $1,1
mov $0,$1
| 75.944444 | 1,155 | 0.871251 |
d7457a557c797b724b3e7d1876d10dfce6ffff51 | 320 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_scalbn_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_scalbn_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_scalbn_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; double __CALLEE__ scalbn(double x, int n)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_scalbn_callee
EXTERN cm48_sccz80p_dcallee1, am48_scalbn
cm48_sccz80_scalbn_callee:
pop af
pop hl ; hl = n
push af
call cm48_sccz80p_dcallee1 ; AC'= x
jp am48_scalbn
| 16 | 43 | 0.7 |
e239d23d08694ef0d370952d2716d7ea27515c05 | 1,131 | asm | Assembly | 68HC11 Simulator/Simulator/fuente/suma1.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | 1 | 2019-05-07T20:58:12.000Z | 2019-05-07T20:58:12.000Z | 68HC11 Simulator/Simulator/fuente/suma1.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | null | null | null | 68HC11 Simulator/Simulator/fuente/suma1.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | null | null | null | ORG $0000 ; los datos los dejamos al principio
contador rmb 1 ; desde la posicion 0000
resultado rmb 3 ; observar que el resultado es de 3
op1 rmb 2 ; bytes (24 bits) para soportar
op2 rmb 2 ; los 17 bits del resultado
ORG $8000 ; a partir de aqui va el codigo
inicio
clr resultado ; limpiamos la parte alta (H)
ldaa op1+1 ; cargamos la parte baja (L)
adda op2+1 ; sumamos Lop2
staa resultado+2 ; guarda en L de resultado
ldaa op1 ; carga Hop1
adca op2 ; suma con carry Hop2
staa resultado+1 ; guarda en HL resultado
bcc sale ; si no hay carry, se va
inc resultado ; else HHresultado=1
sale
bra sale ; terminamos
| 49.173913 | 75 | 0.405836 |
aa067e9bcb01e1bd77a325cf56312319504fe821 | 483 | asm | Assembly | programs/oeis/314/A314099.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/314/A314099.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/314/A314099.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A314099: Coordination sequence Gal.5.131.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,11,16,20,26,30,35,41,46,51,57,62,66,72,76,81,87,92,97,103,108,112,118,122,127,133,138,143,149,154,158,164,168,173,179,184,189,195,200,204,210,214,219,225,230,235,241,246,250
mov $3,$0
sub $0,1
mul $0,2
add $0,1
cal $0,321232 ; Length of n-th term of A321225.
mov $1,$0
mov $2,$3
mul $2,4
add $1,$2
| 37.153846 | 179 | 0.708075 |
210e793fadb1d0688f978c53c3c743897750cedd | 439 | asm | Assembly | kernel.asm | realjf/mos | 5fef69e2d4ea11a82e0cf7ea958f214911bac4c0 | [
"Apache-2.0"
] | null | null | null | kernel.asm | realjf/mos | 5fef69e2d4ea11a82e0cf7ea958f214911bac4c0 | [
"Apache-2.0"
] | null | null | null | kernel.asm | realjf/mos | 5fef69e2d4ea11a82e0cf7ea958f214911bac4c0 | [
"Apache-2.0"
] | null | null | null | bits 32
section .text
align 4
dd 0x1BADB002 ; this word is some sort of magical word that allows our os to boot
dd 0x00
dd - (0x1BADB002+0x00)
global start
extern kmain ; this function is gonna be located in our c code(kernel.c)
start:
cli ; clears the interrupts
call kmain ; send processor to continue execution from the kmain function in c code
hlt ; halt the cpu(pause it from executing from this address)
| 31.357143 | 87 | 0.726651 |
97959b6b5b13d2f6d32b43b312893278ff7e6715 | 345 | asm | Assembly | programs/oeis/040/A040840.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/040/A040840.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/040/A040840.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A040840: Continued fraction for sqrt(870).
; 29,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58,2,58
mov $1,$0
cmp $0,0
sub $1,$0
gcd $1,2
add $1,26
add $0,$1
mul $0,$1
sub $0,728
add $1,$0
mov $0,$1
sub $0,26
| 23 | 189 | 0.597101 |
d6e0e6a7d6c690ec53e646f08465a7ec782a6233 | 361 | asm | Assembly | oeis/021/A021203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/021/A021203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/021/A021203.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A021203: Decimal expansion of 1/199.
; Submitted by Jon Maiga
; 0,0,5,0,2,5,1,2,5,6,2,8,1,4,0,7,0,3,5,1,7,5,8,7,9,3,9,6,9,8,4,9,2,4,6,2,3,1,1,5,5,7,7,8,8,9,4,4,7,2,3,6,1,8,0,9,0,4,5,2,2,6,1,3,0,6,5,3,2,6,6,3,3,1,6,5,8,2,9,1,4,5,7,2,8,6,4,3,2,1,6,0,8,0,4,0,2,0,1
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
div $2,20
mul $3,10
lpe
mov $0,$2
mod $0,10
| 24.066667 | 199 | 0.545706 |
6f2859e987dc9a4ab143453ff6c9b78b3759a270 | 661 | asm | Assembly | oeis/077/A077591.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077591.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077591.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077591: Maximum number of regions into which the plane can be divided using n (concave) quadrilaterals.
; 1,2,18,50,98,162,242,338,450,578,722,882,1058,1250,1458,1682,1922,2178,2450,2738,3042,3362,3698,4050,4418,4802,5202,5618,6050,6498,6962,7442,7938,8450,8978,9522,10082,10658,11250,11858,12482,13122,13778,14450,15138,15842,16562,17298,18050,18818,19602,20402,21218,22050,22898,23762,24642,25538,26450,27378,28322,29282,30258,31250,32258,33282,34322,35378,36450,37538,38642,39762,40898,42050,43218,44402,45602,46818,48050,49298,50562,51842,53138,54450,55778,57122,58482,59858,61250,62658,64082,65522
mul $0,2
trn $0,1
pow $0,2
mul $0,2
trn $0,1
add $0,1
| 66.1 | 498 | 0.786687 |
e5af74041969ed98f0f7af95a2b130e4c48c7e36 | 751 | asm | Assembly | oeis/280/A280308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/280/A280308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/280/A280308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A280308: Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) with a(0)=3, a(1)=4, a(2)=5.
; Submitted by Jamie Morken(s3)
; 3,4,5,12,21,38,71,130,239,440,809,1488,2737,5034,9259,17030,31323,57612,105965,194900,358477,659342,1212719,2230538,4102599,7545856,13878993,25527448,46952297,86358738,158838483,292149518,537346739,988334740,1817830997,3343512476,6149678213,11311021686,20804212375,38264912274,70380146335,129449270984,238094329593,437923746912,805467347489,1481485423994,2724876518395,5011829289878,9218191232267,16954897040540,31184917562685,57358005835492,105497820438717,194040743836894,356896570111103
lpb $0
sub $0,1
add $2,1
add $1,$2
mov $2,$4
add $3,1
add $4,$3
mov $3,$1
mov $1,$4
add $4,2
lpe
mov $0,$3
add $0,3
| 41.722222 | 491 | 0.757656 |
fcf350a7e8dbc4e3e1c1219ae7d5c467766d4bd9 | 26,821 | asm | Assembly | Driver/Mouse/NikeMouse/nikemouse.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Mouse/NikeMouse/nikemouse.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Mouse/NikeMouse/nikemouse.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: MOUSE DRIVER - NIKE PS2 mouse
FILE: nikemouse.asm
AUTHOR: Lulu Lin, Nov 30, 1994
ROUTINES:
Name Description
---- -----------
MouseDevInit Initialize device
MouseDevExit Exit device
MouseDevHandler Handler for interrupt
REVISION HISTORY:
Name Date Description
---- ---- -----------
LL 11/30/94 Initial revision
Dave 04/95 changes based on recently delivered information
DESCRIPTION:
Device-dependent support for Nike PS2 mouse.
$Id: nikemouse.asm,v 1.8 95/05/11 18:29:46 dave Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
_Mouse = 1
;DEBUG_MOUSE = TRUE
MOUSE_NUM_BUTTONS = 2 ; All brother mice have two buttons.
MOUSE_CANT_SET_RATE = 1 ; I don't change the report rate.
MOUSE_SEPARATE_INIT = 1 ; I use a separate Init resource
MOUSE_CANT_TEST_DEVICE = 1 ; No reliable way to test for this device.
include mouseCommon.asm
; Include common definitions/code.
include timer.def
;------------------------------------------------------------------------------
; DEVICE STRINGS
;------------------------------------------------------------------------------
MouseExtendedInfoSeg segment lmem LMEM_TYPE_GENERAL
mouseExtendedInfo DriverExtendedInfoTable <
{}, ; lmem header added by Esp
length mouseNameTable, ; Number of supported devices
offset mouseNameTable,
offset mouseInfoTable
>
mouseNameTable lptr.char nikePS2Mouse
lptr.char 0 ; null-terminator
nikePS2Mouse chunk.char 'Nike PS2 Mouse', 0
mouseInfoTable MouseExtendedInfo \
mask MEI_SERIAL ;nikePS2Mouse,\
CheckHack <length mouseInfoTable eq length mouseNameTable>
MouseExtendedInfoSeg ends
;------------------------------------------------------------------------------
; VARIABLES/DATA/CONSTANTS
;------------------------------------------------------------------------------
idata segment
;
;_______________________________________________________________________
; RECEIVING BYTES FROM MOUSE
;
; Input buffer -- Nike PS2 Mouse input packets are structured strangely. They
; are three bytes long:
;
; Byte B7 B6 B5 B4 B3 B2 B1 B0
; 0 yO xO yS xS R R rP lP
; 1 x Data
; 2 y Data
;
; y0 = y Data OverFlow, 1 = overflow
; x0 = x Data OverFlow, 1 = overflow
; yS = y Data Sign, 1 = negative
; xS = x Data Sign, 1 = negative
; R = Reserved
; rP = right button pressed
; lP = left button pressed
;
; The reading of a packet is performed by a state machine in MouseDevHandler.
; On any input error, we reset the state machine to discard whatever packet
; we were reading.
;
inputBuf byte 2 dup(?)
;_____________________________________________________________________
; MOUSE DRIVER SCHME
;
even
mouseRates label byte ; To avoid assembly errors
MOUSE_NUM_RATES equ 0
MAX_PARITY_ERROR equ 10
mouseEnabled byte FALSE
inState nptr
;
;_____________________________________________________________________
; MOUSE HARDWARE DEFINITIONS
PSMousePacketByteOne record
PSMPB_Y_OVER:1 ; bit 7 is y data overflow flag
PSMPB_X_OVER:1 ; bit 6 is x data overflow flag
PSMPB_Y_SIGN:1 ; bit 5 is y data sign flag
PSMPB_X_SIGN:1 ; bit 4 is x data sign flag
:2 ; bit 3, 2 reserved
PSMPB_RIGHT_BUTTON:1 ; bit 1 is Right Button status flag
PSMPB_LEFT_BUTTON:1 ; bit 0 is Left Button Status flag
PSMousePacketByteOne end
PSMouseStatus record
:3 ; not used
PSMS_ENABLE:1 ; bit 4 is PS circuit enable flag
PSMS_RECEIVE:1 ; bit 3 is receive flag
PSMS_TRANSMIT:1 ; bit 2 is transmit flag
PSMS_PARITY:1 ; bit 1 is parity bit
:1 ; not used
PSMouseStatus end
MOUSE_RECEIVER_INTERRUPTS_ENABLED equ mask PSMS_ENABLE or \
mask PSMS_RECEIVE or mask PSMS_PARITY
; Locations to hold the register addresses
MOUSE_STATUS_REG_IO_ADDRESS equ 0x03f8
MOUSE_TRANSMIT_REG_IO_ADDRESS equ 0x03f9
MOUSE_RECEIVE_REG_IO_ADDRESS equ 0x03fa
NIKE_MOUSE_SET_DEFAULT_COMMAND equ 0xf6
NIKE_MOUSE_READ_DATA_COMMAND equ 0xeb
NIKE_MOUSE_STATUS_REQUEST_COMMAND equ 0xe9
NIKE_MOUSE_SET_STREAM_MODE_COMMAND equ 0xea
NIKE_MOUSE_ENABLE_COMMAND equ 0xf4
NIKE_MOUSE_DISABLE_COMMAND equ 0xf5
NIKE_MOUSE_RESEND_COMMAND equ 0xfe
NIKE_MOUSE_RESET_COMMAND equ 0xff
NIKE_MOUSE_COMMAND_ACK_1 equ 0xfa
NIKE_MOUSE_COMMAND_ACK_2 equ 0xaa
NIKE_MOUSE_COMMAND_ACK_3 equ 0
;
;______________________________________________________________________
; SAVED INTERRUPT VECTOR
;
oldVector fptr.far
;
;______________________________________________________________________
; TIMER INTERRUPT SCHME
MOUSE_TIMER_PERIOD equ 5 ;seconds
timerRoutineLastCalled byte FALSE
timerHandle word ?
timerID word ?
;______________________________________________________________________
; DEBUGGING STUFF
ifdef DEBUG_MOUSE
HACK_BUF_SIZE = 2000
hackPtr word 0
pbuf byte HACK_BUF_SIZE dup (0)
endif
idata ends
;
;______________________________________________________________________
; DEBUG MESSAGES
;
MOUSE_PARITY_ERROR enum Warnings
MOUSE_X_DELTA_OVERFLOW enum Warnings
MOUSE_Y_DELTA_OVERFLOW enum Warnings
MOUSE_BUTTONS_RECEIVED enum Warnings
MOUSE_X_DELTA_RECEIVED enum Warnings
MOUSE_Y_DELTA_RECEIVED enum Warnings
MOUSE_INTERRUPT_WITHOUT_RXF enum Warnings
MOUSE_PING_CALLED enum Warnings
;------------------------------------------------------------------------------
; INITIALIZATION/EXIT CODE
;------------------------------------------------------------------------------
;
; Include common definitions for serial mice
;
Init segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseDevInit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the PS Mouse
CALLED BY: MouseInit
PASS: DS=ES=dgroup
RETURN: Carry clear if ok
DESTROYED: DI
PSEUDO CODE/STRATEGY:
bit B7 B6 B5 B4 B3 B2 B1 B0
name -- -- -- PSEN RXF TXF PARITY --
read/write -- -- -- R/W R/W R/W R --
read default -- -- -- 0 0 1 0 --
write default -- -- -- 0 0 0 0 --
Set -- PSEN, RXF
clr -- TXF, PARITY(?)
Return with carry clear.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Should use error returns to determine what format the mouse is
using. Unfortunately, I don't know if the mouse will ACCEPT any format,
or if it requires its input to be in the same format as its output.
We'll see.
REVISION HISTORY:
Name Date Description
---- ---- -----------
llin 11/29/94 Initial version
mhussain 1/9/94 modified for NIKE
dave 04/13/94 fixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseDevInit proc far
uses ax, bx, cx, dx, si, di
.enter
ifdef DEBUG_MOUSE
clr ax
mov ds:hackPtr, ax
endif
;
; Install our interrupt handler
;
INT_OFF
mov di, offset oldVector
mov bx, segment MouseDevHandler
mov cx, offset MouseDevHandler
mov ax, 6
call SysCatchDeviceInterrupt
INT_ON
;
; Set the initial state we will receive data in.
;
mov ds:[inState], offset Resident:MouseReceiveACK_1
;
; Initialize the PS Mouse control register to "disabled"
;
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
clr al
out dx, al
;
; Enable IRQ6
;
in al, 21h
and al, 0bfh
out 21h, al
;
; PS Mouse control register: Parity=1, RXF=1, TXE=0, PSEN=1
;
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
mov al, MOUSE_RECEIVER_INTERRUPTS_ENABLED
out dx, al
;
; Send the "Reset" and "Enable" command to the mouse
;
mov ds:[mouseEnabled], TRUE
;
;Send Reset________________
waitForTxE:
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
in al, dx
test al, mask PSMS_TRANSMIT
jz waitForTxE
ifdef DEBUG_MOUSE
mov al, 0ddh ;transmit marker
call StuffPBuff
endif
mov dx, MOUSE_TRANSMIT_REG_IO_ADDRESS
mov al, NIKE_MOUSE_RESET_COMMAND
ifdef DEBUG_MOUSE
call StuffPBuff
endif
out dx, al
;re-enable mouse hardware.
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
;enable receive interrupts this time.
mov al, MOUSE_RECEIVER_INTERRUPTS_ENABLED
out dx,al
; Finally start the watchDog timer routine
;
mov al,TIMER_ROUTINE_CONTINUAL
mov bx,segment Resident
mov si,offset Resident:MousePing
mov cx,60*MOUSE_TIMER_PERIOD
mov di,cx
mov bp, handle 0
call TimerStartSetOwner
mov ds:[timerHandle],bx
mov ds:[timerID],ax
.leave
ret
MouseDevInit endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseDevExit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reset the interrupt. Not really necessary, but...
CALLED BY:
PASS: es - dgroup
RETURN:
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
LL 12/ 8/94 Initial version
mhussain changed a bit for NIKE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseDevExit proc far
uses ax, di
.enter
mov ds:[mouseEnabled], FALSE
;
; First get rid of the watchDog timer
mov bx,ds:[timerHandle]
mov ax,ds:[timerID]
call TimerStop
;
; Send a disable command to mouse
;
mov ah, NIKE_MOUSE_DISABLE_COMMAND
call MouseSendControlCode
;
; Disable IRQ6
;
in al, 21h
or al, 40h
out 21h, al
;
; Put old vector back
;
INT_OFF
mov di, offset oldVector
mov ax, 6
call SysResetDeviceInterrupt
INT_ON
.leave
ret
MouseDevExit endp
Init ends
;------------------------------------------------------------------------------
; RESIDENT DEVICE-DEPENDENT ROUTINES
;------------------------------------------------------------------------------
Resident segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseSetDevice
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Turn on the device.
CALLED BY: DRE_SET_DEVICE
PASS: dx:si = pointer to null-terminated device name string
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Just call the device-initialization routine in Init
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 9/27/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseSetDevice proc near
.enter
call MouseDevInit
.leave
ret
MouseSetDevice endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseDevHandler
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handle the receipt of a byte in the packet.
CALLED BY: hardware interrupt
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
check if RXF full
Y: check Parity Error
Y: Add reset/resend(in debate)Command to outputBuf,
Increment currentBufOffset
Discard the current packet data (reset
state machine)
Return to Interrupt
N: Load byte from reciever register
Accumulate the byte into the current packet
Return to Interrupt
N: return to Interrupt
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/24/89 Initial version
chrisb 12/94 Modified for NIKE hardware
mhussain 1/95 more modifications for NIKE
dave 4/5/95 added CPU to Mouse transmission.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseDevHandler proc far
uses ax, bx, cx, dx, ds
.enter
call SysEnterInterrupt
segmov ds, dgroup, cx
;
; Preload the status image with the status from the GA.
;
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
in al, dx
mov ah, al
;
; Read status. If no data has been received, do nothing
;
test ah, mask PSMS_RECEIVE ;RxF?
ifdef DEBUG_MOUSE
WARNING_Z MOUSE_INTERRUPT_WITHOUT_RXF
endif
LONG jz exit
;
; Read Receive data if Receiver is FULL
;
mov dx, MOUSE_RECEIVE_REG_IO_ADDRESS
in al, dx
ifdef DEBUG_MOUSE
call StuffPBuff
endif
; the Parity bit as active low
test ah, mask PSMS_PARITY
ifdef DEBUG_MOUSE
WARNING_Z MOUSE_PARITY_ERROR
endif
LONG jz error ;if we got a parity error resend...
mov bx, ds:[inState] ;get this service routine.
call bx ;call it
mov ds:[inState], bx ;stuff next service routine
;
; Initialize the PS Mouse control register,
; re enable receive to interrupt
;
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
mov al, MOUSE_RECEIVER_INTERRUPTS_ENABLED
out dx, al
exit:
mov ds:[timerRoutineLastCalled],FALSE
;
; Send an EOI
;
mov al, 20h
out 20h, al
call SysExitInterrupt
.leave
iret
error:
mov ah, NIKE_MOUSE_RESEND_COMMAND
call MouseSendControlCode
jmp exit
MouseDevHandler endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseReceiveButtons
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Service routine for the buttons State
CALLED BY:
MouseDevHandler
PASS:
al - byte from mouse
ah - status byte for this transmission
bx - address of the service routine called for this state
ds - Segment of dgroup
RETURN:
bx - address of next routine to call.
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseReceiveButtons proc near
;
; We're starting a new packet -- record button state and return.
;
ifdef DEBUG_MOUSE
WARNING_NZ MOUSE_BUTTONS_RECEIVED ;always true from above
endif
mov ds:[inputBuf], al
ifdef DEBUG_MOUSE
;
; For debug versions, warn when the mouse overflows positions
;
test al,mask PSMPB_Y_OVER ;Y position overflow?
WARNING_NZ MOUSE_Y_DELTA_OVERFLOW
test al,mask PSMPB_X_OVER ;X position overflow?
WARNING_NZ MOUSE_X_DELTA_OVERFLOW
endif
mov bx,offset MouseReceiveXDelta ; advance to next state
ret
MouseReceiveButtons endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseReceiveXDelta
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Service routine for the X delta State
CALLED BY:
MouseDevHandler
PASS:
al - byte from mouse
ah - status byte for this transmission
bx - address of the service routine called for this state
ds - Segment of dgroup
RETURN:
bx - address of next routine to call.
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseReceiveXDelta proc near
ifdef DEBUG_MOUSE
WARNING_NZ MOUSE_X_DELTA_RECEIVED ;always true from above
endif
;
; We'e expecting X delta -- record it and return
;
mov ds:[inputBuf+1], al
mov bx,offset MouseReceiveYDelta ; advance to next state
ret
MouseReceiveXDelta endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseReceiveYDelta
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Service routine for the Y Delta State
CALLED BY:
MouseDevHandler
PASS:
al - byte from mouse
ah - status byte for this transmission
bx - address of the service routine called for this state
ds - Segment of dgroup
RETURN:
bx - address of next routine to call.
DESTROYED:
cx,dx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseReceiveYDelta proc near
ifdef DEBUG_MOUSE
WARNING_NZ MOUSE_Y_DELTA_RECEIVED ;always true from above
endif
;
; We're expecting Y delta -- record it and send off mouse event
; Shift the things into their proper registers for MouseSendEvents
; buttons in BH
; deltaX in CX
; deltaY in DX
;
push si, di, bp ; save for MouseSendEvents
clr ch, dh
mov bh, ds:[inputBuf]
mov cl, ds:[inputBuf+1]
mov dl, al ; the current buffer (last byte)
if 0
;DONT HANDLE OVERFLOWS, SINCE THE MOUSE PASSES FFh ON AN OVERFLOW
;
; Check for overflow flag and add 256 to cx, dx if
; need be.
;
test bh, mask PSMPB_Y_OVER
jz dxNoOver
mov dh, 1
dxNoOver:
test bh, mask PSMPB_X_OVER
jz cxNoOver
mov ch, 1
cxNoOver:
endif
;
; Sign-extend the deltas. Note that deltaY is opposite of our
; coordinate conventions, so we'll take a jump opposite of what you
; would expect based upon the status flag
;
test bh, mask PSMPB_Y_SIGN
jz doneYDelta
not dh ;make sign extended
doneYDelta:
neg dx ;opposite coordinate system
test bh, mask PSMPB_X_SIGN
jz doneXDelta
not ch ;make sign extended
doneXDelta:
mov bl, 0ffh
test bh, mask PSMPB_RIGHT_BUTTON
jz afterRightButton
mov bl, not mask MOUSE_B2
afterRightButton:
test bh, mask PSMPB_LEFT_BUTTON
jz afterLeftButton
and bl, not mask MOUSE_B0
afterLeftButton:
mov bh, bl
clr bp
call MouseSendEvents
ifdef DEBUG_MOUSE
;ADD TEST MARKER FOR MOUSE SEND EVENTS
push ax
mov al, 055h
call StuffPBuff
mov al, 0aah
call StuffPBuff
pop ax
endif
pop si, di, bp
mov bx, offset MouseReceiveButtons
ret
MouseReceiveYDelta endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseReceiveACK_1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Service routines for the reset ack (0FAh 0AAh 00h) States
CALLED BY:
MouseDevHandler
PASS:
al - byte from mouse
ah - status byte for this transmission
bx - address of the service routine called for this state
ds - Segment of dgroup
RETURN:
bx - address of next routine to call.
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseReceiveACK_1 proc near
;We can get EITHER an FAh or an AAh in this state...
;We always have to get an ACK_2 to leave this state.
;al could be NIKE_MOUSE_COMMAND_ACK_1 or...
cmp al, NIKE_MOUSE_COMMAND_ACK_2
jne done ;if not, keep waiting for ACK_2
mov bx, offset MouseReceiveACK_3
done:
ret
MouseReceiveACK_1 endp
MouseReceiveACK_3 proc near
cmp al, NIKE_MOUSE_COMMAND_ACK_3
jne done ;if not, keep waiting for ACK
mov ah, NIKE_MOUSE_ENABLE_COMMAND
call MouseSendControlCode
mov bx, offset MouseReceiveSingleACK_1
done:
ret
MouseReceiveACK_3 endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseReceiveSingleACK_1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Service routine for the single ack FAh State
CALLED BY:
MouseDevHandler
PASS:
al - byte from mouse
ah - status byte for this transmission
bx - address of the service routine called for this state
ds - Segment of dgroup
RETURN:
bx - address of next routine to call.
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseReceiveSingleACK_1 proc near
cmp al, NIKE_MOUSE_COMMAND_ACK_1
jne done ;if not, keep waiting for ACK
mov bx, offset MouseReceiveButtons
done:
ret
MouseReceiveSingleACK_1 endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseSendControlCode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Send a command byte to the mouse, and reset the state machine to look
for a single ACK from the mouse.
CALLED BY:
MouseDevInit,MouseDevHandler
PASS:
ah = control code to be sent
ds = dgroup
RETURN:
nothing
DESTROYED:
ax
PSEUDO CODE/STRATEGY:
Check the TxE. If empty, then load the first byte, if not, exit
and let the calling routine re call later.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine pre-empts any currently transmitting control code
if there is an unfinished transmission in progress
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MouseSendControlCode proc far
uses dx
.enter
push ax
ifdef DEBUG_MOUSE
mov al, 0ddh ;stuff in a marker byte
call StuffPBuff
endif
;--------------------------------------------------------------------------
if 0 ;I TOOK OUT WAIT FOR TxE BIT PER
;BROTHER TEST CODE.....DJD 05/10/95
waitForTxE: ;we should never wait in this loop.
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
in al, dx
test al, mask PSMS_TRANSMIT
jz waitForTxE
endif
;--------------------------------------------------------------------------
mov al, ah ;pick up the byte.
ifdef DEBUG_MOUSE
call StuffPBuff
endif
mov dx, MOUSE_TRANSMIT_REG_IO_ADDRESS
out dx, al ;stuff it to the GA
;re-enable stuff
mov al, MOUSE_RECEIVER_INTERRUPTS_ENABLED
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
out dx, al
mov ds:[inState], offset MouseReceiveSingleACK_1
pop ax
cmp ah, NIKE_MOUSE_RESEND_COMMAND ;re-send doesnt ACK
jne testForReset
mov ds:[inState], offset MouseReceiveButtons
jmp exit
testForReset:
cmp ah, NIKE_MOUSE_RESET_COMMAND ;Reset needs Special ACK.
jne exit
mov ds:[inState], offset MouseReceiveACK_1
exit:
.leave
ret
MouseSendControlCode endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MousePing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Send the mouse an Enable byte to wake it up after some ressetting
event . (unplugging, power glitch, etc.)
CALLED BY:
Timer Interrupt
PASS:
nothing
RETURN:
nothing
DESTROYED:
ax
PSEUDO CODE/STRATEGY:
check to see if the mouse is alive, if it has not moved in the last
call period, check if the last report included a button press, if so,
do nothing, else ping the mouse.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
MousePing proc far
uses si, ds
.enter
segmov ds, dgroup, si
cmp ds:[mouseEnabled],TRUE ;is mouse on?
jne reallyExit
ifdef DEBUG_MOUSE
WARNING_E MOUSE_PING_CALLED
endif
cmp ds:[timerRoutineLastCalled],TRUE ;was the DevHandler
;called after the time this
;routine was last called?
jne exit ;if so, just exit, still alive.
;This next test makes sure we are on a packet boundary
;in case the mouse has sent a spurious reset acknowledge byte
;after being plugged in, or re-powered.
cmp ds:[inState],offset MouseReceiveButtons ;at packet start?
jne resetTheRodent ;if not, we are in a bad state
;get last state of the buttons
test ds:[inputBuf],mask PSMPB_LEFT_BUTTON or mask PSMPB_RIGHT_BUTTON
;buttons pressed?
jnz exit ;if so, no ping, user is
;holding a button down
;without moving.
resetTheRodent:
;reset the enable bits in the
mov dx, MOUSE_STATUS_REG_IO_ADDRESS ;gate array. Brother says that
clr al ;this will reset the gate
out dx, al ;array mouse port.
mov al, MOUSE_RECEIVER_INTERRUPTS_ENABLED
out dx, al
;now send the enable to the
;mouse itself.
mov ah,NIKE_MOUSE_RESET_COMMAND ;get reset code.
call MouseSendControlCode
exit:
mov ds:[timerRoutineLastCalled],TRUE
reallyExit:
.leave
ret
MousePing endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StuffPBuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
CALLED BY:
Debug Code
PASS:
al - data to stuff in the rotating buffer
ds - Segment of dgroup
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifdef DEBUG_MOUSE
StuffPBuff proc far
push si
mov si, ds:hackPtr
mov ds:[pbuf][si], al
inc si
cmp si, HACK_BUF_SIZE
jnz 1$
clr si
1$:
mov ds:hackPtr, si
pop si
ret
StuffPBuff endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MouseWaitForRxE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Wait for the Receive data full bit to go away
CALLED BY:
Internal
PASS:
nothing
RETURN:
nothing
DESTROYED:
dx,al
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 04/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifdef DEBUG_MOUSE
MouseWaitForRxE proc far
mov dx, MOUSE_STATUS_REG_IO_ADDRESS
loadIt:
in al, dx
test al, mask PSMS_RECEIVE
jnz loadIt
ret
MouseWaitForRxE endp
endif
Resident ends
end
| 23.568541 | 80 | 0.589314 |
1ac44d8fa061c2ffa9daad6602935b92907fda4e | 714 | asm | Assembly | Source/SystemQOR/MSWindows/WinCmpSupQORVC/src/Exceptions/SEH/safeseh.asm | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/SanOS/SanCmpSupQORVC/src/Exceptions/SEH/safeseh.asm | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinCmpSupQORVC/src/Exceptions/SEH/safeseh.asm | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z |
.486
.MODEL flat
EXTRN ?CatchGuardHandler@GuardDescriptor@EH@nsCompiler@@CA?AW4_EXCEPTION_DISPOSITION@nsWin32@@PAVExceptionRecord@23@PAVCatchGuardRN@123@PAUCONTEXT@5@PAX@Z:NEAR
EXTRN ?UnwindHandler@SEH@nsCompiler@@YA?AW4_EXCEPTION_DISPOSITION@@PAVExceptionRecord@12@PAVExceptionFrame@12@PAUCONTEXT@nsWin32@@PAX@Z:NEAR
NominalAsmHandler PROTO
.safeseh ?CatchGuardHandler@GuardDescriptor@EH@nsCompiler@@CA?AW4_EXCEPTION_DISPOSITION@nsWin32@@PAVExceptionRecord@23@PAVCatchGuardRN@123@PAUCONTEXT@5@PAX@Z
.safeseh ?UnwindHandler@SEH@nsCompiler@@YA?AW4_EXCEPTION_DISPOSITION@@PAVExceptionRecord@12@PAVExceptionFrame@12@PAUCONTEXT@nsWin32@@PAX@Z
.CODE
NominalAsmHandler PROC
NominalAsmHandler ENDP
END
| 34 | 163 | 0.844538 |
21a1611d4309ad4261ce210b712025312921f4f8 | 582 | asm | Assembly | programs/oeis/266/A266297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/266/A266297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/266/A266297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A266297: Numbers whose last digit is a square.
; 0,1,4,9,10,11,14,19,20,21,24,29,30,31,34,39,40,41,44,49,50,51,54,59,60,61,64,69,70,71,74,79,80,81,84,89,90,91,94,99,100,101,104,109,110,111,114,119,120,121,124,129,130,131,134,139,140,141,144,149,150,151,154,159,160,161,164,169,170,171,174,179,180,181,184,189,190,191,194,199,200,201,204,209,210,211,214,219,220,221,224,229,230,231,234,239,240,241,244,249
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mov $4,0
lpb $0
add $4,4
mod $0,$4
trn $0,1
lpe
sub $4,2
add $1,$4
lpe
div $1,2
mov $0,$1
| 27.714286 | 357 | 0.639175 |
87b718b0f2d6c38d30c9f5856f5bc1daa6be9c18 | 552 | asm | Assembly | programs/oeis/006/A006288.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/006/A006288.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/006/A006288.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A006288: Loxton-van der Poorten sequence: base-4 representation contains only -1, 0, +1.
; 0,1,3,4,5,11,12,13,15,16,17,19,20,21,43,44,45,47,48,49,51,52,53,59,60,61,63,64,65,67,68,69,75,76,77,79,80,81,83,84,85,171,172,173,175,176,177,179,180,181,187,188,189,191,192,193,195,196,197,203,204,205,207,208,209
mov $2,$0
add $2,1
mov $5,$0
lpb $2
mov $0,$5
sub $2,1
sub $0,$2
mov $3,2
mov $4,0
lpb $0
sub $0,1
add $0,$3
mul $0,2
dif $0,6
add $4,1
mul $4,4
lpe
div $4,4
add $4,1
add $1,$4
lpe
sub $1,1
mov $0,$1
| 20.444444 | 215 | 0.59058 |
f8e0a10337b4252d433462b2216109b4a06cf217 | 292 | asm | Assembly | programs/oeis/081/A081106.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/081/A081106.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/081/A081106.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A081106: 6th binomial transform of (1,1,0,0,0,0,...).
; 1,7,48,324,2160,14256,93312,606528,3919104,25194240,161243136,1027924992,6530347008,41358864384,261213880320,1645647446016,10344069660672,64885527871488,406239826673664,2538998916710400
mov $1,6
pow $1,$0
add $0,6
mul $1,$0
div $1,6
| 32.444444 | 187 | 0.773973 |
a7d08c6438341110d64268bd6460e6ca3ed39232 | 316 | asm | Assembly | maps/FloaromaHouseE.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2022-02-17T11:11:03.000Z | 2022-02-21T03:41:01.000Z | maps/FloaromaHouseE.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | maps/FloaromaHouseE.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | object_const_def ; object_event constants
FloaromaHouseE_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
FloaromaHouseE_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 2, 7, FLOAROMA_TOWN, 4
warp_event 3, 7, FLOAROMA_TOWN, 4
db 0 ; coord events
db 0 ; bg events
db 0 ; object events
| 15.8 | 42 | 0.721519 |
da2bbfb189788460402b05b47783c912f1cd0111 | 333 | asm | Assembly | programs/oeis/020/A020962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/020/A020962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/020/A020962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A020962: a(n) = Sum_{k >= 1} floor((1+sqrt(2))^(n-k)).
; 1,3,8,22,55,137,334,812,1965,4751,11476,27714,66915,161557,390042,941656,2273369,5488411,13250208,31988846,77227919,186444705,450117350,1086679428,2623476229,6333631911,15290740076
mov $2,$0
cal $0,279101 ; a(n) = Sum_{k=0..n} ceiling((1 + sqrt(2))^k).
mov $1,$0
sub $1,$2
| 41.625 | 182 | 0.690691 |
a5f31d737c6dd5e0896b8c26297d63e2404a33e5 | 816 | asm | Assembly | oeis/219/A219587.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/219/A219587.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/219/A219587.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A219587: Noncrossing, nonnesting, 2-arc-colored permutations on the set {1..n} where lower arcs even of different colors do not cross.
; Submitted by Christian Krause
; 1,2,8,40,224,1296,7568,44304,259536,1520656,8910160,52209040,305919696,1792542992,10503446608,61545189520,360625475024,2113093401616,12381720203088,72550979111824,425114158957776,2490966357221136,14595875630354000,85524874633320080,501135003222232016,2936412272234287632,17205976387773341008,100818821068118733200,590750240061253935824,3461514848468971787536,20282827214642803965008,118847700451440781286544,696390880478352758065616,4080518651781253402880016,23909894477792894146620240
mov $1,1
lpb $0
sub $0,1
add $2,$1
mul $1,2
add $2,$3
add $3,$4
add $1,$3
mul $3,2
add $4,$2
add $3,$4
mov $2,$3
add $4,2
lpe
mov $0,$1
| 40.8 | 487 | 0.802696 |
57b5d5669781cb1b3130cc94da9ad7fc8abbb865 | 1,743 | asm | Assembly | src/header.asm | Kannagi/LKS | 363ccbfbe93a78e227349967053075ba67f4e50c | [
"MIT"
] | 6 | 2019-04-18T12:08:23.000Z | 2021-07-07T08:07:28.000Z | src/header.asm | Kannagi/LKS | 363ccbfbe93a78e227349967053075ba67f4e50c | [
"MIT"
] | null | null | null | src/header.asm | Kannagi/LKS | 363ccbfbe93a78e227349967053075ba67f4e50c | [
"MIT"
] | null | null | null | .MEMORYMAP
SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later.
DEFAULTSLOT 0 ; There's only 1 slot in SNES, there are more in other consoles.
SLOT 0 $8000 ; Defines Slot 0's starting address.
.ENDME
.ROMBANKSIZE $8000
.ROMBANKS 16
; R/BANK ko
; 9/16 512
; A/32 1024
; B/64 2048
; C/128 4096
; D/256 8192
.SNESHEADER
ID "SNES"
NAME "LKS Example "
; "123456789012345678901"
LOROM
SLOWROM
CARTRIDGETYPE $00
ROMSIZE $09 ;size rom 09-0c
SRAMSIZE $00
COUNTRY $01 ;0 = japan , 1 = US , 2 = Europe
LICENSEECODE $01
VERSION 00
.ENDSNES
;65816
.SNESNATIVEVECTOR
COP $0000
BRK $0000
ABORT $0000
NMI VBlank
UNUSED Main
IRQ HVSync
.ENDNATIVEVECTOR
;6502
.SNESEMUVECTOR
COP $0000
UNUSED $0000
ABORT $0000
NMI $0000
RESET Main
IRQBRK $0000
.ENDEMUVECTOR
.MACRO header
/*
;Extension
.db $00,$00 ;Maker Code
.db "SNES" ;Game Code ASCII
.db $00,$00,$00,$00,$00,$00,$00 ;Fixed Value
.db $00 ; RAM Size
.db $00 ; Special Version
.db $00 ; Cartridge Type Sub-Number
;Header old
.db "Fighter Fury " ;Game Title
; "123456789012345678901"
.db $20 ; Mode Map
.db $00 ; Cartridge Type
.db $09 ; ROM Size
.db $00 ; RAM Size
.db $01 ; Destination Code
.db $00 ; Fixed Value
.db $00 ; Mask ROM Value
.db $E8 , $DC ; Complement Check
.db $17 , $23 ; Check sum
.db $00,$00,$00,$00
.dw $0000 ; COP
.dw $0000 ; BRK
.dw $0000 ; ABORT
.dw VBlank ; NMI
.dw Main ; RESET
.dw Timer ; IRQ
.db $00,$00,$00,$00
.dw $0000 ; COP
.dw $0000 ; BRK
.dw $0000 ; ABORT
.dw VBlank ; NMI
.dw Main ; RESET
.dw Timer ; IRQBRK
*/
.ENDM
| 18.347368 | 80 | 0.596099 |
f405a64564ff67743e98332a9c15d2775d95efed | 6,345 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2009.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2009.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2009.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x5a83, %r12
inc %r8
mov (%r12), %r10w
sub %rdx, %rdx
lea addresses_WT_ht+0x4463, %rsi
lea addresses_normal_ht+0x3203, %rdi
nop
xor $29722, %rbp
mov $26, %rcx
rep movsl
nop
xor %r8, %r8
lea addresses_UC_ht+0x113c3, %r12
nop
nop
nop
nop
nop
and $59562, %rbp
mov (%r12), %ecx
and $50629, %rdx
lea addresses_D_ht+0xf603, %rsi
lea addresses_UC_ht+0x40f1, %rdi
clflush (%rdi)
nop
add %rdx, %rdx
mov $104, %rcx
rep movsq
nop
nop
nop
nop
sub $58679, %r10
lea addresses_normal_ht+0x1e203, %rbp
nop
nop
nop
nop
nop
sub %rdi, %rdi
movb (%rbp), %dl
nop
nop
nop
nop
nop
inc %r12
lea addresses_WT_ht+0x6a03, %rcx
nop
nop
nop
nop
cmp %rbp, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
inc %r8
lea addresses_D_ht+0xe703, %rdi
nop
dec %r8
movups (%rdi), %xmm0
vpextrq $1, %xmm0, %rdx
nop
nop
nop
nop
nop
xor $48599, %r12
lea addresses_D_ht+0x119ab, %rcx
nop
nop
nop
nop
and $63113, %rbp
movb $0x61, (%rcx)
nop
nop
nop
nop
nop
and $38711, %rdi
lea addresses_WT_ht+0x12203, %r10
nop
nop
nop
sub $2533, %rsi
movl $0x61626364, (%r10)
dec %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r9
push %rax
push %rbx
push %rdi
push %rsi
// Load
lea addresses_WC+0x3403, %rsi
nop
nop
nop
nop
nop
and $18317, %r12
mov (%rsi), %ebx
nop
nop
nop
nop
and %rbx, %rbx
// Faulty Load
lea addresses_PSE+0x203, %r15
nop
nop
nop
nop
inc %rdi
mov (%r15), %rax
lea oracles, %rdi
and $0xff, %rax
shlq $12, %rax
mov (%rdi,%rax,1), %rax
pop %rsi
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': True}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 36.051136 | 2,999 | 0.656738 |
22ae08385d763a3dd9528ee7ea551a4f9f289893 | 753 | asm | Assembly | oeis/279/A279437.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/279/A279437.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/279/A279437.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A279437: Number of ways to place 3 points on an n X n square grid so that no more than 2 points are on a vertical or horizontal straight line.
; 0,4,78,528,2200,6900,17934,40768,83808,159300,284350,482064,782808,1225588,1859550,2745600,3958144,5586948,7739118,10541200,14141400,18711924,24451438,31587648,40380000,51122500,64146654,79824528,98571928,120851700,147177150,178115584,214291968,256392708,305169550,361443600,426109464,500139508,584588238,680596800,789397600,912319044,1050790398,1206346768,1380634200,1575414900,1792572574,2034117888,2302194048,2599082500,2927208750,3289148304,3687632728,4125555828,4605979950,5132142400,5707461984
mov $1,$0
add $0,1
pow $1,2
mov $2,$0
bin $0,2
mul $0,$2
add $1,$0
mul $1,$0
mov $0,$1
div $0,3
mul $0,2
| 50.2 | 501 | 0.808765 |
381a41906ac4a6746519eedd1960d1de9129a7fe | 6,018 | asm | Assembly | MOS3/kernel24.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | 1 | 2020-10-10T08:31:42.000Z | 2020-10-10T08:31:42.000Z | MOS3/kernel24.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | null | null | null | MOS3/kernel24.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | null | null | null | use32
org 500h
;Загрузка таблицы прерываний и запуск прерываний
lidt [idtr]
sti
;Загрузка информации о VESA из указателя
pop esi
mov edi, Mode_Info
mov ecx, dword[Mode_Info_len]
rep movsb
;Перезагрузка GDT
lgdt [gdtr]
call r_init
call k_initKeys
;Заливка цветом (P.S. градиентом) (P.P.S. не работает как надо, но даже лучше)
mov eax, 0x00829c82
mov esi, 0x00FFFFFF
call s_grad
call set_int_ctrlr
;Тест отрисовки шрифта
mov ecx, 33
mov esi, 10 * S_BBP
mov eax, 0
fontLoop:
push ecx
push esi
push eax
shl eax, 3
add eax, mfont
;mov esi, 10 * S_BBP
mov edi, 20
mov ebx, 0x0000FF00
mov edx, FONT_WID
call s_drawChar8
pop eax
pop esi
pop ecx
add esi, 10 * S_BBP
inc eax
loop fontLoop
;ESI = 4 * X, EDI = Y, EAX = WIDTH, EDX = HEIGHT
mov esi, 10 * S_BBP
mov edi, 100
mov eax, 150
mov edx, 100
mov ebx, wtitle
mov ecx, 4
call s_drawWindow
;int 30h
mov dword[tesp0], esp
mov word[tss0], 0
mov word[tss0 + 2], ss
mov dword[tcs], 0x8
mov dword[tds], 0x10
mov ax, 0x2B
ltr ax
;jmp 0x18:0000h
;jmp 00011000b:0000h
mov ax, 0x23
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax ;we don't need to worry about SS. it's handled by iret
mov eax, esp
push 0x23 ;user data segment with bottom 2 bits set for ring 3
push eax ;push our current stack just for the heck of it
pushf
push 0x1B; ;user code segment with bottom 2 bits set for ring 3
push 0 ;may need to remove the _ for this to work right
iret
hltLoop:
hlt
jmp hltLoop
include 'random.inc'
include 'screen24.inc'
include 'keyboard.inc'
macro outb pnum, val {
mov dx, pnum
mov al, val
out dx, al
}
set_int_ctrlr:
;Инициализация
outb 0x20, 0x11
outb 0xA0, 0x11
;Базовые номера векторов
outb 0x21, 0x20
outb 0xA1, 0x28
;...
outb 0x21, 0x04
outb 0xA1, 0x02
outb 0x21, 0x01
outb 0xA1, 0x01
outb 0x21, 0x0
outb 0xA1, 0x0
ret
test1:
;pushad
mov esi, 25 * S_BBP
mov edi, 200
mov eax, 150
mov edx, 100
mov ebx, wtitle2
mov ecx, 5
call s_drawWindow
;popad
iret
include 'kernel_exc.inc'
include 'kernel_ext.inc'
;============================== VESA ИНФОРМАЦИЯ ===========================================
Mode_Info:
ModeInfo_ModeAttributes rw 1
ModeInfo_WinAAttributes rb 1
ModeInfo_WinBAttributes rb 1
ModeInfo_WinGranularity rw 1
ModeInfo_WinSize rw 1
ModeInfo_WinASegment rw 1
ModeInfo_WinBSegment rw 1
ModeInfo_WinFuncPtr rd 1
ModeInfo_BytesPerScanLine rw 1
ModeInfo_XResolution rw 1
ModeInfo_YResolution rw 1
ModeInfo_XCharSize rb 1
ModeInfo_YCharSize rb 1
ModeInfo_NumberOfPlanes rb 1
ModeInfo_BitsPerPixel rb 1
ModeInfo_NumberOfBanks rb 1
ModeInfo_MemoryModel rb 1
ModeInfo_BankSize rb 1
ModeInfo_NumberOfImagePages rb 1
ModeInfo_Reserved_page rb 1
ModeInfo_RedMaskSize rb 1
ModeInfo_RedMaskPos rb 1
ModeInfo_GreenMaskSize rb 1
ModeInfo_GreenMaskPos rb 1
ModeInfo_BlueMaskSize rb 1
ModeInfo_BlueMaskPos rb 1
ModeInfo_ReservedMaskSize rb 1
ModeInfo_ReservedMaskPos rb 1
ModeInfo_DirectColorModeInfo rb 1
; VBE 2.0 extensions
ModeInfo_PhysBasePtr rd 1
ModeInfo_OffScreenMemOffset rd 1
ModeInfo_OffScreenMemSize rw 1
Mode_Info_len:
dd Mode_Info_len - Mode_Info
;================IDT====================
ACC_PRESENT = 10000000b
ACC_INT_GATE = 00001110b
ACC_TRAP_GATE = 00001111b
RING3_ACCESS = 01100000b
idt:
macro exception func {
dw ((func shl 0x30) shr 0x30)
dw 0x8
db 0, ACC_PRESENT OR ACC_TRAP_GATE
dw (func shr 0x10)
}
exception exc0
exception exc1
exception exc2
exception exc3
exception exc4
exception exc5
exception exc6
exception exc7
exception exc8
exception exc9
exception exc10
exception exc11
exception exc12
exception exc13
exception exc14
exception exc15
exception exc16
exception exc17
exception exc18
exception exc19
exception exc20
exception exc21
exception exc22
exception exc23
exception exc24
exception exc25
exception exc26
exception exc27
exception exc28
exception exc29
exception exc30
exception exc31
macro external func {
dw ((func shl 0x30) shr 0x30)
dw 0x8
db 0, ACC_PRESENT OR ACC_INT_GATE
dw (func shr 0x10)
}
external ext0
external ext1
external ext2
external ext3
external ext4
external ext5
external ext6
external ext7
external ext8
external ext9
external ext10
external ext11
external ext12
external ext13
external ext14
external ext15
test_func:
dw ((test1 shl 0x30) shr 0x30) ;Низшая часть адреса
dw 0x8 ;Селектор
db 0, ACC_PRESENT OR ACC_INT_GATE OR RING3_ACCESS ;Тип (доступ)
dw (test1 shr 0x10) ;Высшая часть адреса
idt_end:
;Длина IDT - 1
idtr: dw 187h
dd idt
;=======================================
include 'kernel_tss.inc'
;*************************************
; GDT
;*************************************
;Пустая обязательная запись!
gdt: dw 0x0000, 0x0000, 0x0000, 0x0000
;word(предел сегмента)
;word(младшее слово адреса)
;word(byte(старший байт адреса), byte(доступ))
;word(резерв для i80286. Должно быть равно 0)
;0x8
sys_code: dw 0xFFFF, 0x0000, 0x9A00, 0x00CF
;0x10
sys_data: dw 0xFFFF, 0x0000, 0x9200, 0x00CF
;0x18
;0x9200 => 0xF200
user_code: dw 0xFFFF, 0x2500, 0xFA00, 0x00CF
;0x20
;0x9200 => 0xF200
user_data: dw 0xFFFF, 0x2500, 0xF200, 0x00CF
;0x28
;0x9A00 (0xE100) => 0xFA00
user_tss: dw 0xFFFF, ((TestTSS shl 0x30) shr 0x30), 0xE500, 0x00CF
gdt_end:
;Длина GDT - 1
gdtr: dw gdt_end - gdt - 1
dd gdt
currY dd 200
currEY dd 20
wtitle db 19, 5, 18, 19 ;4
wtitle2 db 15, 11, 14, 15, 35 ;5
werror db 15, 25, 9, 1, 11, 0, ?, ?, ?, ?, ?, ? ;12
wext db 2, 14, 5, 25, 14, 5, 5, ?, ? ;9
wmsglen dw 0
wmsg db 20 dup(?)
mfont: file "mfont.data" | 21.190141 | 91 | 0.66002 |
01b06d91c54390d565e12a6d927c6cc4084f3bc6 | 304 | asm | Assembly | libsrc/enterprise/exos_system_status.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/enterprise/exos_system_status.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/enterprise/exos_system_status.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ;
; Enterprise 64/128 specific routines
; by Stefano Bodrato, 2011
;
; int exos_system_status(struct EXOS_INFO info);
;
;
; $Id: exos_system_status.asm,v 1.1 2011/03/15 14:34:08 stefano Exp $
;
XLIB exos_system_status
exos_system_status:
ex de,hl
rst 30h
defb 20
ld h,0
ld l,b
ret
| 13.818182 | 69 | 0.690789 |
3a60676981ba1cc213aa08201689cc4c2cc3e084 | 569 | asm | Assembly | programs/oeis/228/A228298.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/228/A228298.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/228/A228298.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A228298: Generalized meta-Fibonacci sequence a(n) with parameters s=0 and k=7.
; 1,2,3,4,5,6,7,7,8,9,10,11,12,13,14,14,15,16,17,18,19,20,21,21,22,23,24,25,26,27,28,28,29,30,31,32,33,34,35,35,36,37,38,39,40,41,42,42,43,44,45,46,47,48,49,49,49,50,51,52,53,54,55,56,56
mov $5,$0
mov $7,$0
add $7,1
lpb $7
clr $0,5
mov $0,$5
sub $7,1
sub $0,$7
sub $0,9
add $2,$0
add $2,1
mov $3,1
mul $3,$2
mul $3,2
trn $0,$3
sub $3,95
mod $3,16
sub $0,$3
pow $3,2
lpb $0
div $0,$3
mov $3,2
lpe
mov $1,$3
sub $1,1
add $6,$1
lpe
mov $1,$6
| 17.78125 | 186 | 0.558875 |
3ebdd79bd686a4c7dff87afa688401cc79a41d84 | 2,476 | asm | Assembly | project2.asm | justinba1010/CSCE212 | 1473daea532bca6518134577d0d2cc7dcfeed3ca | [
"Apache-2.0"
] | 2 | 2020-09-20T01:56:07.000Z | 2020-11-17T03:28:02.000Z | project2.asm | justinba1010/CSCE212 | 1473daea532bca6518134577d0d2cc7dcfeed3ca | [
"Apache-2.0"
] | null | null | null | project2.asm | justinba1010/CSCE212 | 1473daea532bca6518134577d0d2cc7dcfeed3ca | [
"Apache-2.0"
] | null | null | null | ### Justin Baum
### 00426510
### Project 2
### October 2 2018
### Dr. Song Wang
.data
baseadd: .word 34, 5, 11, -12, 60, -2, 14, 71, 13, -27
string1: .asciiz "Index i [0~9]:\n"
string2: .asciiz "\n MIN="
string3: .asciiz "\n MAX="
.text
main:
# Input i to $s1
addi $v0, $zero, 4 # code for printing string is 4
la $a0, string1 # load address of string to be printed into $a0
syscall # call operating system
addi $v0, $zero, 5 # code for reading integer is 5
syscall # call operating system
add $s1, $v0, $zero # i in $s1
#baseadd of the array to $s5
la $s5, baseadd
#Load A[0] to initialize MIN ($s6) and MAX ($s7)
lw $s6, ($s5)
lw $s7, ($s5)
# initialize j=0 (j in $t1)
add $t1, $zero, $zero
# You write code here to implement the following C code.
# This will find the MIN ($s6) and MAX ($s7)
# in the array from A[0] through A[i].
# Note that you need to use lw to load A[j].
# while (j<=i)
# {
# if A[j]<MIN
# MIN=A[j];
# if A[j]>MAX
# MAX=A[j];
# j=j+1;
# }
#### $s1 : i $s5 : baseadd $t1 : j $s6 : min $s7 : max
Loop:
bge $t1, $s1, Exit # Halt when j > i
addi $s5, $s5, 4 # Add 4 to address of baseadd
addi $t1, $t1, 1 # Add 1 to j, to signify where we are
lw $t2, ($s5) # Load A[j] to $t2
j MaxMin # Jump to maxmin code
MaxMin:
blt $t2, $s6, Min # When A[x] < min, go to min
j Max # Jump to Max
Min:
add $s6, $zero, $t2 # Min = A[x]
j Max # Jump to max
Max:
blt $t2, $s7, Loop # When A[x] < max, go to loop
add $s7, $zero, $t2 # ^ So A[x] >= max, we make max = A[x]
j Loop # Jump back to loop
# Print MIN from s6
Exit: addi $v0, $zero, 4 # code for printing string is 4
la $a0, string2 # load address of string to be printed into $a0
syscall # call operating system
add $a0, $s6, $zero
addi $v0,$zero,1 # prints integer
syscall
# Print MAX from s7
addi $v0, $zero, 4 # code for printing string is 4
la $a0, string3 # load address of string to be printed into $a0
syscall # call operating system
add $a0, $s7, $zero
addi $v0,$zero,1 # prints integer
syscall
# exit
addi $v0, $zero, 10
syscall
| 26.913043 | 85 | 0.513732 |
a64a83dd1b5dc0cc0f9f0d63ccc01df05d7f197e | 6,703 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_515.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_515.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_515.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %rax
push %rdx
push %rsi
lea addresses_WT_ht+0x13262, %rsi
nop
nop
nop
nop
add $62205, %r15
movb (%rsi), %r8b
add %rdx, %rdx
lea addresses_UC_ht+0x1a98e, %r8
clflush (%r8)
nop
inc %rdx
mov $0x6162636465666768, %rax
movq %rax, %xmm6
movups %xmm6, (%r8)
nop
nop
nop
add $25158, %r8
lea addresses_D_ht+0x6c1e, %r10
nop
xor %r14, %r14
movw $0x6162, (%r10)
nop
cmp $12046, %r14
lea addresses_WC_ht+0x1859e, %rax
nop
nop
nop
nop
nop
and $6223, %r8
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%rax)
nop
nop
nop
nop
cmp $24098, %rsi
lea addresses_normal_ht+0x175d2, %r10
nop
nop
nop
nop
nop
xor %r8, %r8
mov (%r10), %r14
nop
nop
and $11662, %rsi
lea addresses_WT_ht+0x1dd7c, %r15
nop
add %rax, %rax
movw $0x6162, (%r15)
nop
nop
nop
nop
lfence
lea addresses_WC_ht+0xbefe, %rdx
nop
nop
nop
nop
sub $53751, %rax
movups (%rdx), %xmm3
vpextrq $0, %xmm3, %rsi
dec %r10
lea addresses_WT_ht+0xec7e, %rsi
clflush (%rsi)
nop
nop
nop
cmp $9668, %r8
mov (%rsi), %eax
nop
sub $1055, %rax
pop %rsi
pop %rdx
pop %rax
pop %r8
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rbp
push %rcx
push %rdx
push %rsi
// Store
lea addresses_WT+0xa59e, %rbp
sub $1642, %r11
movl $0x51525354, (%rbp)
nop
nop
nop
nop
add $46510, %rsi
// Store
lea addresses_A+0x17d9e, %r12
sub $31554, %rsi
movb $0x51, (%r12)
nop
nop
inc %r11
// Load
lea addresses_UC+0x1bf9a, %r12
sub $22155, %rbp
movb (%r12), %cl
nop
dec %r11
// Load
lea addresses_PSE+0xed9e, %rdx
nop
nop
nop
nop
add %r8, %r8
movb (%rdx), %r11b
nop
nop
nop
nop
sub %r12, %r12
// Faulty Load
lea addresses_PSE+0xed9e, %rcx
nop
nop
nop
mfence
movb (%rcx), %r12b
lea oracles, %rcx
and $0xff, %r12
shlq $12, %r12
mov (%rcx,%r12,1), %r12
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 35.654255 | 2,999 | 0.651798 |
fc137fa8f1227236503766329d4ab15aa837f4ac | 1,244 | asm | Assembly | libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; ===============================================================
; Feb 2014
; ===============================================================
;
; w_vector_t *w_vector_init(void *p, size_t capacity, size_t max_size)
;
; Initialize a word vector structure at address p and allocate
; space for capacity words to begin with. The vector's array
; will not be allowed to grow beyond max_size words.
;
; Returns p on success or 0 on failure.
;
; ===============================================================
SECTION code_adt_w_vector
PUBLIC asm_w_vector_init
EXTERN asm_b_vector_init, error_zc
asm_w_vector_init:
; enter : de = void *p
; bc = capacity in words
; hl = max_size in words
;
; exit : success
;
; hl = w_vector_t *
; carry reset
;
; fail if required vector > 64k
;
; hl = 0
; carry set
;
; fail if max_size < capacity
;
; hl = 0
; carry set
;
; fail if unsuccessful realloc
;
; hl = 0
; carry set
;
; uses : af, bc, de, hl
add hl,hl
jp c, error_zc
sla c
rl b
jp c, error_zc
jp asm_b_vector_init
| 21.448276 | 70 | 0.462219 |
c816de21fcf2920cb0a48a80170892df35839d83 | 7,368 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xd640, %rdi
clflush (%rdi)
nop
nop
nop
nop
and $18812, %r15
movb $0x61, (%rdi)
nop
nop
nop
inc %r14
lea addresses_normal_ht+0xed1c, %r9
nop
nop
nop
xor $47836, %rbx
movups (%r9), %xmm6
vpextrq $1, %xmm6, %rdx
nop
nop
nop
nop
nop
and $52572, %rdx
lea addresses_UC_ht+0x10bb4, %rsi
lea addresses_A_ht+0x1bbdc, %rdi
nop
nop
nop
nop
and $10456, %rdx
mov $44, %rcx
rep movsl
nop
nop
nop
cmp %r15, %r15
lea addresses_WC_ht+0x99c4, %rsi
lea addresses_UC_ht+0x1b2d7, %rdi
nop
nop
and $41146, %rbx
mov $67, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $14689, %rdi
lea addresses_normal_ht+0x11f1c, %rcx
nop
nop
sub %rdx, %rdx
mov (%rcx), %ebx
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_A_ht+0x1817c, %rsi
lea addresses_WC_ht+0x1571c, %rdi
nop
nop
cmp $1829, %r14
mov $119, %rcx
rep movsq
nop
nop
sub $50786, %rbx
lea addresses_UC_ht+0x12b1c, %r9
nop
nop
nop
inc %rdi
movw $0x6162, (%r9)
nop
xor $45085, %rdx
lea addresses_A_ht+0x19062, %rsi
nop
nop
nop
nop
lfence
movw $0x6162, (%rsi)
sub $59839, %rsi
lea addresses_A_ht+0xf51c, %r9
nop
nop
nop
nop
nop
sub $30305, %rdi
mov (%r9), %cx
nop
nop
nop
nop
inc %r15
lea addresses_D_ht+0x4dc, %rcx
nop
nop
and $21753, %rsi
mov (%rcx), %r9w
nop
sub %rbx, %rbx
lea addresses_normal_ht+0x125dc, %rcx
nop
nop
and %r15, %r15
mov (%rcx), %esi
nop
sub %rsi, %rsi
lea addresses_A_ht+0xdbb4, %r14
nop
nop
nop
xor $63936, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, (%r14)
nop
nop
add %rsi, %rsi
lea addresses_UC_ht+0xdd84, %rsi
lea addresses_normal_ht+0x12cc4, %rdi
nop
nop
nop
inc %r15
mov $0, %rcx
rep movsb
nop
nop
nop
add $10953, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r9
push %rdi
// Store
lea addresses_normal+0x1611c, %r9
nop
cmp %r11, %r11
movb $0x51, (%r9)
nop
nop
nop
nop
add %r10, %r10
// Faulty Load
lea addresses_WT+0x1c51c, %rdi
nop
nop
sub $35532, %r11
mov (%rdi), %r9
lea oracles, %r15
and $0xff, %r9
shlq $12, %r9
mov (%r15,%r9,1), %r9
pop %rdi
pop %r9
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_normal_ht'}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 33.953917 | 2,999 | 0.656352 |
625b72e3abb4bbe86c63a8a7be396aa286352737 | 479 | asm | Assembly | Src/Ant8/Tests/aa8/basic/e_add_0.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | null | null | null | Src/Ant8/Tests/aa8/basic/e_add_0.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | null | null | null | Src/Ant8/Tests/aa8/basic/e_add_0.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T04:09:05.000Z | 2020-07-15T04:09:05.000Z | # $Id: e_add_0.asm,v 1.1 2001/03/14 16:57:28 ellard Exp $
#@ tests for bogus registers in add.
add r0, r0, r0 # OK
add r1, r1, r1 # OK
add r2, r2, r2 # OK
add r3, r3, r3 # OK
add r4, r4, r4 # OK
add r5, r5, r5 # OK
add r6, r6, r6 # OK
add r7, r7, r7 # OK
add r8, r8, r8 # OK
add r9, r9, r9 # OK
add r10, r10, r10 # OK
add r11, r11, r11 # OK
add r12, r12, r12 # OK
add r13, r13, r13 # OK
add r14, r14, r14 # OK
add r15, r15, r15 # OK
add r16, r16, r16 # Not OK
| 21.772727 | 57 | 0.5762 |
478794d8b87133d022fb3947a4fa1c2d39170d64 | 1,919 | asm | Assembly | programs/oeis/074/A074149.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/074/A074149.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/074/A074149.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A074149: Sum of terms in each group in A074147.
; 1,6,15,36,65,114,175,264,369,510,671,876,1105,1386,1695,2064,2465,2934,3439,4020,4641,5346,6095,6936,7825,8814,9855,11004,12209,13530,14911,16416,17985,19686,21455,23364,25345,27474,29679,32040,34481,37086,39775,42636,45585,48714,51935,55344,58849,62550,66351,70356,74465,78786,83215,87864,92625,97614,102719,108060,113521,119226,125055,131136,137345,143814,150415,157284,164289,171570,178991,186696,194545,202686,210975,219564,228305,237354,246559,256080,265761,275766,285935,296436,307105,318114,329295,340824,352529,364590,376831,389436,402225,415386,428735,442464,456385,470694,485199,500100,515201,530706,546415,562536,578865,595614,612575,629964,647569,665610,683871,702576,721505,740886,760495,780564,800865,821634,842639,864120,885841,908046,930495,953436,976625,1000314,1024255,1048704,1073409,1098630,1124111,1150116,1176385,1203186,1230255,1257864,1285745,1314174,1342879,1372140,1401681,1431786,1462175,1493136,1524385,1556214,1588335,1621044,1654049,1687650,1721551,1756056,1790865,1826286,1862015,1898364,1935025,1972314,2009919,2048160,2086721,2125926,2165455,2205636,2246145,2287314,2328815,2370984,2413489,2456670,2500191,2544396,2588945,2634186,2679775,2726064,2772705,2820054,2867759,2916180,2964961,3014466,3064335,3114936,3165905,3217614,3269695,3322524,3375729,3429690,3484031,3539136,3594625,3650886,3707535,3764964,3822785,3881394,3940399,4000200,4060401,4121406,4182815,4245036,4307665,4371114,4434975,4499664,4564769,4630710,4697071,4764276,4831905,4900386,4969295,5039064,5109265,5180334,5251839,5324220,5397041,5470746,5544895,5619936,5695425,5771814,5848655,5926404,6004609,6083730,6163311,6243816,6324785,6406686,6489055,6572364,6656145,6740874,6826079,6912240,6998881,7086486,7174575,7263636,7353185,7443714,7534735,7626744,7719249,7812750
mov $2,$0
pow $0,2
mov $1,$0
mov $3,2
mul $3,$2
add $3,3
add $1,$3
div $1,2
div $3,2
mul $1,$3
| 137.071429 | 1,772 | 0.837936 |
053f92fcf63a30be54b18800b900b665ac8e1f11 | 707 | asm | Assembly | oeis/344/A344819.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/344/A344819.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/344/A344819.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A344819: a(n) = Sum_{k=1..n} floor(n/k) * (-4)^(k-1).
; Submitted by Christian Krause
; 1,-2,15,-52,205,-806,3291,-13160,52393,-209498,839079,-3356300,13420917,-53683854,214751875,-859006400,3435960897,-13743843762,54975632975,-219902535924,879609095965,-3518436366566,14073749677851,-56294998711576,225179977999337,-900719912066074,3602879715369975,-14411518861216844,57646075176711093,-230584300706828094,922337203900018883,-3689348815601127296,14757395258109472913,-59029581032433766258,236118324146919063951,-944473296587676238500,3777893186281968975197,-15111572745127892402854
add $0,1
mov $2,$0
lpb $0
max $0,1
mul $1,-1
mov $3,$2
div $3,$0
sub $0,1
mul $1,4
add $1,$3
lpe
mov $0,$1
| 41.588235 | 496 | 0.773692 |
e9ff21e64b544035e141f488dfa1dfca28be0bb8 | 638 | asm | Assembly | oeis/328/A328745.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/328/A328745.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/328/A328745.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A328745: Dirichlet g.f.: Product_{p prime} 1 / (1 - p^(-s))^p.
; Submitted by Jon Maiga
; 1,2,3,3,5,6,7,4,6,10,11,9,13,14,15,5,17,12,19,15,21,22,23,12,15,26,10,21,29,30,31,6,33,34,35,18,37,38,39,20,41,42,43,33,30,46,47,15,28,30,51,39,53,20,55,28,57,58,59,45,61,62,42,7,65,66,67,51,69,70,71,24,73,74,45
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mov $6,$2
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
mul $5,$2
add $5,$2
div $5,2
lpe
mul $1,$5
add $2,1
lpe
mov $0,$1
| 18.764706 | 213 | 0.515674 |
18ad75a5deb6b010f66eb97b01a27cbaabb93100 | 781 | asm | Assembly | oeis/085/A085810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/085/A085810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/085/A085810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A085810: Number of three-choice paths along a corridor of height 5, starting from the lower side.
; Submitted by Jamie Morken(s4)
; 1,2,5,13,35,96,266,741,2070,5791,16213,45409,127206,356384,998509,2797678,7838801,21963661,61540563,172432468,483144522,1353740121,3793094450,10628012915,29779028189,83438979561,233790820762,655067316176,1835457822857,5142838522138,14409913303805,40375679825949,113130140870243,316983610699320,888168340360602,2488592388474205,6972880922115694,19537578182679559,54743077575896949,153386694833433425,429779968423363294,1204216711617255952,3374140246365500501,9454130882186870854,26489886078033725961
mov $1,1
lpb $0
sub $0,1
add $2,5
add $3,$1
mov $1,$3
sub $1,$4
add $1,$3
sub $2,4
add $2,$4
mov $4,$2
mov $2,$3
lpe
mov $0,$1
| 41.105263 | 500 | 0.797695 |
0eb2c239376fdac9a1f2129b5e216fa51448b5b5 | 85,013 | asm | Assembly | lib/efm8_usb/src/efm8_usbdch9.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | 1 | 2018-02-02T16:24:03.000Z | 2018-02-02T16:24:03.000Z | lib/efm8_usb/src/efm8_usbdch9.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | null | null | null | lib/efm8_usb/src/efm8_usbdch9.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | null | null | null | ;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW32)
;--------------------------------------------------------
.module efm8_usbdch9
.optsdcc -mmcs51 --model-large
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
.globl _txZero
.globl _USB_ActivateEp
.globl _USB_SetIndex
.globl _USBD_IsSelfPoweredCb
.globl _USBD_AbortAllTransfers
.globl _USBD_SetUsbState
.globl _UART1FCN1_TFRQ
.globl _UART1FCN1_TXNF
.globl _UART1FCN1_TXHOLD
.globl _UART1FCN1_TIE
.globl _UART1FCN1_RFRQ
.globl _UART1FCN1_RXTO1
.globl _UART1FCN1_RXTO0
.globl _UART1FCN1_RIE
.globl _TMR4CN0_TF4H
.globl _TMR4CN0_TF4L
.globl _TMR4CN0_TF4LEN
.globl _TMR4CN0_TF4CEN
.globl _TMR4CN0_T4SPLIT
.globl _TMR4CN0_TR4
.globl _TMR4CN0_T4XCLK1
.globl _TMR4CN0_T4XCLK0
.globl _TMR2CN0_TF2H
.globl _TMR2CN0_TF2L
.globl _TMR2CN0_TF2LEN
.globl _TMR2CN0_TF2CEN
.globl _TMR2CN0_T2SPLIT
.globl _TMR2CN0_TR2
.globl _TMR2CN0_T2XCLK1
.globl _TMR2CN0_T2XCLK0
.globl _TCON_TF1
.globl _TCON_TR1
.globl _TCON_TF0
.globl _TCON_TR0
.globl _TCON_IE1
.globl _TCON_IT1
.globl _TCON_IE0
.globl _TCON_IT0
.globl _SPI0CN0_SPIF
.globl _SPI0CN0_WCOL
.globl _SPI0CN0_MODF
.globl _SPI0CN0_RXOVRN
.globl _SPI0CN0_NSSMD1
.globl _SPI0CN0_NSSMD0
.globl _SPI0CN0_TXNF
.globl _SPI0CN0_SPIEN
.globl _SMB0CN0_MASTER
.globl _SMB0CN0_TXMODE
.globl _SMB0CN0_STA
.globl _SMB0CN0_STO
.globl _SMB0CN0_ACKRQ
.globl _SMB0CN0_ARBLOST
.globl _SMB0CN0_ACK
.globl _SMB0CN0_SI
.globl _SCON1_OVR
.globl _SCON1_PERR
.globl _SCON1_REN
.globl _SCON1_TBX
.globl _SCON1_RBX
.globl _SCON1_TI
.globl _SCON1_RI
.globl _SCON0_SMODE
.globl _SCON0_MCE
.globl _SCON0_REN
.globl _SCON0_TB8
.globl _SCON0_RB8
.globl _SCON0_TI
.globl _SCON0_RI
.globl _PSW_CY
.globl _PSW_AC
.globl _PSW_F0
.globl _PSW_RS1
.globl _PSW_RS0
.globl _PSW_OV
.globl _PSW_F1
.globl _PSW_PARITY
.globl _PCA0CN0_CF
.globl _PCA0CN0_CR
.globl _PCA0CN0_CCF2
.globl _PCA0CN0_CCF1
.globl _PCA0CN0_CCF0
.globl _P3_B1
.globl _P3_B0
.globl _P2_B3
.globl _P2_B2
.globl _P2_B1
.globl _P2_B0
.globl _P1_B7
.globl _P1_B6
.globl _P1_B5
.globl _P1_B4
.globl _P1_B3
.globl _P1_B2
.globl _P1_B1
.globl _P1_B0
.globl _P0_B7
.globl _P0_B6
.globl _P0_B5
.globl _P0_B4
.globl _P0_B3
.globl _P0_B2
.globl _P0_B1
.globl _P0_B0
.globl _IP_PSPI0
.globl _IP_PT2
.globl _IP_PS0
.globl _IP_PT1
.globl _IP_PX1
.globl _IP_PT0
.globl _IP_PX0
.globl _IE_EA
.globl _IE_ESPI0
.globl _IE_ET2
.globl _IE_ES0
.globl _IE_ET1
.globl _IE_EX1
.globl _IE_ET0
.globl _IE_EX0
.globl _B_B7
.globl _B_B6
.globl _B_B5
.globl _B_B4
.globl _B_B3
.globl _B_B2
.globl _B_B1
.globl _B_B0
.globl _ADC0CN0_ADEN
.globl _ADC0CN0_ADBMEN
.globl _ADC0CN0_ADINT
.globl _ADC0CN0_ADBUSY
.globl _ADC0CN0_ADWINT
.globl _ADC0CN0_ADCM2
.globl _ADC0CN0_ADCM1
.globl _ADC0CN0_ADCM0
.globl _ACC_ACC7
.globl _ACC_ACC6
.globl _ACC_ACC5
.globl _ACC_ACC4
.globl _ACC_ACC3
.globl _ACC_ACC2
.globl _ACC_ACC1
.globl _ACC_ACC0
.globl __XPAGE
.globl _TMR4RL
.globl _TMR4
.globl _TMR3RL
.globl _TMR3
.globl _TMR2RL
.globl _TMR2
.globl _SBRL1
.globl _PCA0
.globl _PCA0CP2
.globl _PCA0CP1
.globl _PCA0CP0
.globl _DP
.globl _ADC0LT
.globl _ADC0
.globl _ADC0GT
.globl _XBR2
.globl _XBR1
.globl _XBR0
.globl _WDTCN
.globl _VDM0CN
.globl _USB0XCN
.globl _USB0DAT
.globl _USB0CF
.globl _USB0CDSTA
.globl _USB0CDCN
.globl _USB0CDCF
.globl _USB0AEC
.globl _USB0ADR
.globl _UART1LIN
.globl _UART1FCT
.globl _UART1FCN1
.globl _UART1FCN0
.globl _TMR4RLL
.globl _TMR4RLH
.globl _TMR4L
.globl _TMR4H
.globl _TMR4CN1
.globl _TMR4CN0
.globl _TMR3RLL
.globl _TMR3RLH
.globl _TMR3L
.globl _TMR3H
.globl _TMR3CN1
.globl _TMR3CN0
.globl _TMR2RLL
.globl _TMR2RLH
.globl _TMR2L
.globl _TMR2H
.globl _TMR2CN1
.globl _TMR2CN0
.globl _TMOD
.globl _TL1
.globl _TL0
.globl _TH1
.globl _TH0
.globl _TCON
.globl _SPI0FCT
.globl _SPI0FCN1
.globl _SPI0FCN0
.globl _SPI0DAT
.globl _SPI0CN0
.globl _SPI0CKR
.globl _SPI0CFG
.globl _SP
.globl _SMOD1
.globl _SMB0TC
.globl _SMB0RXLN
.globl _SMB0FCT
.globl _SMB0FCN1
.globl _SMB0FCN0
.globl _SMB0DAT
.globl _SMB0CN0
.globl _SMB0CF
.globl _SMB0ADR
.globl _SMB0ADM
.globl _SFRSTACK
.globl _SFRPGCN
.globl _SFRPAGE
.globl _SCON1
.globl _SCON0
.globl _SBUF1
.globl _SBUF0
.globl _SBRLL1
.globl _SBRLH1
.globl _SBCON1
.globl _RSTSRC
.globl _REVID
.globl _REG1CN
.globl _REG0CN
.globl _REF0CN
.globl _PSW
.globl _PSCTL
.globl _PRTDRV
.globl _PFE0CN
.globl _PCON1
.globl _PCON0
.globl _PCA0PWM
.globl _PCA0POL
.globl _PCA0MD
.globl _PCA0L
.globl _PCA0H
.globl _PCA0CPM2
.globl _PCA0CPM1
.globl _PCA0CPM0
.globl _PCA0CPL2
.globl _PCA0CPL1
.globl _PCA0CPL0
.globl _PCA0CPH2
.globl _PCA0CPH1
.globl _PCA0CPH0
.globl _PCA0CN0
.globl _PCA0CLR
.globl _PCA0CENT
.globl _P3MDOUT
.globl _P3MDIN
.globl _P3
.globl _P2SKIP
.globl _P2MDOUT
.globl _P2MDIN
.globl _P2MAT
.globl _P2MASK
.globl _P2
.globl _P1SKIP
.globl _P1MDOUT
.globl _P1MDIN
.globl _P1MAT
.globl _P1MASK
.globl _P1
.globl _P0SKIP
.globl _P0MDOUT
.globl _P0MDIN
.globl _P0MAT
.globl _P0MASK
.globl _P0
.globl _LFO0CN
.globl _IT01CF
.globl _IPH
.globl _IP
.globl _IE
.globl _I2C0STAT
.globl _I2C0SLAD
.globl _I2C0FCT
.globl _I2C0FCN1
.globl _I2C0FCN0
.globl _I2C0DOUT
.globl _I2C0DIN
.globl _I2C0CN0
.globl _HFOCN
.globl _HFO1CAL
.globl _HFO0CAL
.globl _FLKEY
.globl _EMI0CN
.globl _EIP2H
.globl _EIP2
.globl _EIP1H
.globl _EIP1
.globl _EIE2
.globl _EIE1
.globl _DPL
.globl _DPH
.globl _DEVICEID
.globl _DERIVID
.globl _CRC0ST
.globl _CRC0IN
.globl _CRC0FLIP
.globl _CRC0DAT
.globl _CRC0CNT
.globl _CRC0CN1
.globl _CRC0CN0
.globl _CMP1MX
.globl _CMP1MD
.globl _CMP1CN1
.globl _CMP1CN0
.globl _CMP0MX
.globl _CMP0MD
.globl _CMP0CN1
.globl _CMP0CN0
.globl _CLKSEL
.globl _CKCON1
.globl _CKCON0
.globl _B
.globl _ADC0TK
.globl _ADC0PWR
.globl _ADC0MX
.globl _ADC0LTL
.globl _ADC0LTH
.globl _ADC0L
.globl _ADC0H
.globl _ADC0GTL
.globl _ADC0GTH
.globl _ADC0CN1
.globl _ADC0CN0
.globl _ADC0CF
.globl _ADC0AC
.globl _ACC
.globl _USBDCH9_SetupCmd
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
G$ACC$0$0 == 0x00e0
_ACC = 0x00e0
G$ADC0AC$0$0 == 0x00b3
_ADC0AC = 0x00b3
G$ADC0CF$0$0 == 0x00bc
_ADC0CF = 0x00bc
G$ADC0CN0$0$0 == 0x00e8
_ADC0CN0 = 0x00e8
G$ADC0CN1$0$0 == 0x00b2
_ADC0CN1 = 0x00b2
G$ADC0GTH$0$0 == 0x00c4
_ADC0GTH = 0x00c4
G$ADC0GTL$0$0 == 0x00c3
_ADC0GTL = 0x00c3
G$ADC0H$0$0 == 0x00be
_ADC0H = 0x00be
G$ADC0L$0$0 == 0x00bd
_ADC0L = 0x00bd
G$ADC0LTH$0$0 == 0x00c6
_ADC0LTH = 0x00c6
G$ADC0LTL$0$0 == 0x00c5
_ADC0LTL = 0x00c5
G$ADC0MX$0$0 == 0x00bb
_ADC0MX = 0x00bb
G$ADC0PWR$0$0 == 0x00df
_ADC0PWR = 0x00df
G$ADC0TK$0$0 == 0x00b9
_ADC0TK = 0x00b9
G$B$0$0 == 0x00f0
_B = 0x00f0
G$CKCON0$0$0 == 0x008e
_CKCON0 = 0x008e
G$CKCON1$0$0 == 0x00a6
_CKCON1 = 0x00a6
G$CLKSEL$0$0 == 0x00a9
_CLKSEL = 0x00a9
G$CMP0CN0$0$0 == 0x009b
_CMP0CN0 = 0x009b
G$CMP0CN1$0$0 == 0x0099
_CMP0CN1 = 0x0099
G$CMP0MD$0$0 == 0x009d
_CMP0MD = 0x009d
G$CMP0MX$0$0 == 0x009f
_CMP0MX = 0x009f
G$CMP1CN0$0$0 == 0x00bf
_CMP1CN0 = 0x00bf
G$CMP1CN1$0$0 == 0x00ac
_CMP1CN1 = 0x00ac
G$CMP1MD$0$0 == 0x00ab
_CMP1MD = 0x00ab
G$CMP1MX$0$0 == 0x00aa
_CMP1MX = 0x00aa
G$CRC0CN0$0$0 == 0x00ce
_CRC0CN0 = 0x00ce
G$CRC0CN1$0$0 == 0x0086
_CRC0CN1 = 0x0086
G$CRC0CNT$0$0 == 0x00d3
_CRC0CNT = 0x00d3
G$CRC0DAT$0$0 == 0x00de
_CRC0DAT = 0x00de
G$CRC0FLIP$0$0 == 0x00cf
_CRC0FLIP = 0x00cf
G$CRC0IN$0$0 == 0x00dd
_CRC0IN = 0x00dd
G$CRC0ST$0$0 == 0x00d2
_CRC0ST = 0x00d2
G$DERIVID$0$0 == 0x00ad
_DERIVID = 0x00ad
G$DEVICEID$0$0 == 0x00b5
_DEVICEID = 0x00b5
G$DPH$0$0 == 0x0083
_DPH = 0x0083
G$DPL$0$0 == 0x0082
_DPL = 0x0082
G$EIE1$0$0 == 0x00e6
_EIE1 = 0x00e6
G$EIE2$0$0 == 0x00ce
_EIE2 = 0x00ce
G$EIP1$0$0 == 0x00f3
_EIP1 = 0x00f3
G$EIP1H$0$0 == 0x00f5
_EIP1H = 0x00f5
G$EIP2$0$0 == 0x00f4
_EIP2 = 0x00f4
G$EIP2H$0$0 == 0x00f6
_EIP2H = 0x00f6
G$EMI0CN$0$0 == 0x00e7
_EMI0CN = 0x00e7
G$FLKEY$0$0 == 0x00b7
_FLKEY = 0x00b7
G$HFO0CAL$0$0 == 0x00c7
_HFO0CAL = 0x00c7
G$HFO1CAL$0$0 == 0x00d6
_HFO1CAL = 0x00d6
G$HFOCN$0$0 == 0x00ef
_HFOCN = 0x00ef
G$I2C0CN0$0$0 == 0x00ba
_I2C0CN0 = 0x00ba
G$I2C0DIN$0$0 == 0x00bc
_I2C0DIN = 0x00bc
G$I2C0DOUT$0$0 == 0x00bb
_I2C0DOUT = 0x00bb
G$I2C0FCN0$0$0 == 0x00ad
_I2C0FCN0 = 0x00ad
G$I2C0FCN1$0$0 == 0x00ab
_I2C0FCN1 = 0x00ab
G$I2C0FCT$0$0 == 0x00f5
_I2C0FCT = 0x00f5
G$I2C0SLAD$0$0 == 0x00bd
_I2C0SLAD = 0x00bd
G$I2C0STAT$0$0 == 0x00b9
_I2C0STAT = 0x00b9
G$IE$0$0 == 0x00a8
_IE = 0x00a8
G$IP$0$0 == 0x00b8
_IP = 0x00b8
G$IPH$0$0 == 0x00f2
_IPH = 0x00f2
G$IT01CF$0$0 == 0x00e4
_IT01CF = 0x00e4
G$LFO0CN$0$0 == 0x00b1
_LFO0CN = 0x00b1
G$P0$0$0 == 0x0080
_P0 = 0x0080
G$P0MASK$0$0 == 0x00fe
_P0MASK = 0x00fe
G$P0MAT$0$0 == 0x00fd
_P0MAT = 0x00fd
G$P0MDIN$0$0 == 0x00f1
_P0MDIN = 0x00f1
G$P0MDOUT$0$0 == 0x00a4
_P0MDOUT = 0x00a4
G$P0SKIP$0$0 == 0x00d4
_P0SKIP = 0x00d4
G$P1$0$0 == 0x0090
_P1 = 0x0090
G$P1MASK$0$0 == 0x00ee
_P1MASK = 0x00ee
G$P1MAT$0$0 == 0x00ed
_P1MAT = 0x00ed
G$P1MDIN$0$0 == 0x00f2
_P1MDIN = 0x00f2
G$P1MDOUT$0$0 == 0x00a5
_P1MDOUT = 0x00a5
G$P1SKIP$0$0 == 0x00d5
_P1SKIP = 0x00d5
G$P2$0$0 == 0x00a0
_P2 = 0x00a0
G$P2MASK$0$0 == 0x00fc
_P2MASK = 0x00fc
G$P2MAT$0$0 == 0x00fb
_P2MAT = 0x00fb
G$P2MDIN$0$0 == 0x00f3
_P2MDIN = 0x00f3
G$P2MDOUT$0$0 == 0x00a6
_P2MDOUT = 0x00a6
G$P2SKIP$0$0 == 0x00cc
_P2SKIP = 0x00cc
G$P3$0$0 == 0x00b0
_P3 = 0x00b0
G$P3MDIN$0$0 == 0x00f4
_P3MDIN = 0x00f4
G$P3MDOUT$0$0 == 0x009c
_P3MDOUT = 0x009c
G$PCA0CENT$0$0 == 0x009e
_PCA0CENT = 0x009e
G$PCA0CLR$0$0 == 0x009c
_PCA0CLR = 0x009c
G$PCA0CN0$0$0 == 0x00d8
_PCA0CN0 = 0x00d8
G$PCA0CPH0$0$0 == 0x00fc
_PCA0CPH0 = 0x00fc
G$PCA0CPH1$0$0 == 0x00ea
_PCA0CPH1 = 0x00ea
G$PCA0CPH2$0$0 == 0x00ec
_PCA0CPH2 = 0x00ec
G$PCA0CPL0$0$0 == 0x00fb
_PCA0CPL0 = 0x00fb
G$PCA0CPL1$0$0 == 0x00e9
_PCA0CPL1 = 0x00e9
G$PCA0CPL2$0$0 == 0x00eb
_PCA0CPL2 = 0x00eb
G$PCA0CPM0$0$0 == 0x00da
_PCA0CPM0 = 0x00da
G$PCA0CPM1$0$0 == 0x00db
_PCA0CPM1 = 0x00db
G$PCA0CPM2$0$0 == 0x00dc
_PCA0CPM2 = 0x00dc
G$PCA0H$0$0 == 0x00fa
_PCA0H = 0x00fa
G$PCA0L$0$0 == 0x00f9
_PCA0L = 0x00f9
G$PCA0MD$0$0 == 0x00d9
_PCA0MD = 0x00d9
G$PCA0POL$0$0 == 0x0096
_PCA0POL = 0x0096
G$PCA0PWM$0$0 == 0x00f7
_PCA0PWM = 0x00f7
G$PCON0$0$0 == 0x0087
_PCON0 = 0x0087
G$PCON1$0$0 == 0x009a
_PCON1 = 0x009a
G$PFE0CN$0$0 == 0x00c1
_PFE0CN = 0x00c1
G$PRTDRV$0$0 == 0x00f6
_PRTDRV = 0x00f6
G$PSCTL$0$0 == 0x008f
_PSCTL = 0x008f
G$PSW$0$0 == 0x00d0
_PSW = 0x00d0
G$REF0CN$0$0 == 0x00d1
_REF0CN = 0x00d1
G$REG0CN$0$0 == 0x00c9
_REG0CN = 0x00c9
G$REG1CN$0$0 == 0x00c6
_REG1CN = 0x00c6
G$REVID$0$0 == 0x00b6
_REVID = 0x00b6
G$RSTSRC$0$0 == 0x00ef
_RSTSRC = 0x00ef
G$SBCON1$0$0 == 0x0094
_SBCON1 = 0x0094
G$SBRLH1$0$0 == 0x0096
_SBRLH1 = 0x0096
G$SBRLL1$0$0 == 0x0095
_SBRLL1 = 0x0095
G$SBUF0$0$0 == 0x0099
_SBUF0 = 0x0099
G$SBUF1$0$0 == 0x0092
_SBUF1 = 0x0092
G$SCON0$0$0 == 0x0098
_SCON0 = 0x0098
G$SCON1$0$0 == 0x00c8
_SCON1 = 0x00c8
G$SFRPAGE$0$0 == 0x00a7
_SFRPAGE = 0x00a7
G$SFRPGCN$0$0 == 0x00cf
_SFRPGCN = 0x00cf
G$SFRSTACK$0$0 == 0x00d7
_SFRSTACK = 0x00d7
G$SMB0ADM$0$0 == 0x00d6
_SMB0ADM = 0x00d6
G$SMB0ADR$0$0 == 0x00d7
_SMB0ADR = 0x00d7
G$SMB0CF$0$0 == 0x00c1
_SMB0CF = 0x00c1
G$SMB0CN0$0$0 == 0x00c0
_SMB0CN0 = 0x00c0
G$SMB0DAT$0$0 == 0x00c2
_SMB0DAT = 0x00c2
G$SMB0FCN0$0$0 == 0x00c3
_SMB0FCN0 = 0x00c3
G$SMB0FCN1$0$0 == 0x00c4
_SMB0FCN1 = 0x00c4
G$SMB0FCT$0$0 == 0x00ef
_SMB0FCT = 0x00ef
G$SMB0RXLN$0$0 == 0x00c5
_SMB0RXLN = 0x00c5
G$SMB0TC$0$0 == 0x00ac
_SMB0TC = 0x00ac
G$SMOD1$0$0 == 0x0093
_SMOD1 = 0x0093
G$SP$0$0 == 0x0081
_SP = 0x0081
G$SPI0CFG$0$0 == 0x00a1
_SPI0CFG = 0x00a1
G$SPI0CKR$0$0 == 0x00a2
_SPI0CKR = 0x00a2
G$SPI0CN0$0$0 == 0x00f8
_SPI0CN0 = 0x00f8
G$SPI0DAT$0$0 == 0x00a3
_SPI0DAT = 0x00a3
G$SPI0FCN0$0$0 == 0x009a
_SPI0FCN0 = 0x009a
G$SPI0FCN1$0$0 == 0x009b
_SPI0FCN1 = 0x009b
G$SPI0FCT$0$0 == 0x00f7
_SPI0FCT = 0x00f7
G$TCON$0$0 == 0x0088
_TCON = 0x0088
G$TH0$0$0 == 0x008c
_TH0 = 0x008c
G$TH1$0$0 == 0x008d
_TH1 = 0x008d
G$TL0$0$0 == 0x008a
_TL0 = 0x008a
G$TL1$0$0 == 0x008b
_TL1 = 0x008b
G$TMOD$0$0 == 0x0089
_TMOD = 0x0089
G$TMR2CN0$0$0 == 0x00c8
_TMR2CN0 = 0x00c8
G$TMR2CN1$0$0 == 0x00fd
_TMR2CN1 = 0x00fd
G$TMR2H$0$0 == 0x00cd
_TMR2H = 0x00cd
G$TMR2L$0$0 == 0x00cc
_TMR2L = 0x00cc
G$TMR2RLH$0$0 == 0x00cb
_TMR2RLH = 0x00cb
G$TMR2RLL$0$0 == 0x00ca
_TMR2RLL = 0x00ca
G$TMR3CN0$0$0 == 0x0091
_TMR3CN0 = 0x0091
G$TMR3CN1$0$0 == 0x00fe
_TMR3CN1 = 0x00fe
G$TMR3H$0$0 == 0x0095
_TMR3H = 0x0095
G$TMR3L$0$0 == 0x0094
_TMR3L = 0x0094
G$TMR3RLH$0$0 == 0x0093
_TMR3RLH = 0x0093
G$TMR3RLL$0$0 == 0x0092
_TMR3RLL = 0x0092
G$TMR4CN0$0$0 == 0x0098
_TMR4CN0 = 0x0098
G$TMR4CN1$0$0 == 0x00ff
_TMR4CN1 = 0x00ff
G$TMR4H$0$0 == 0x00a5
_TMR4H = 0x00a5
G$TMR4L$0$0 == 0x00a4
_TMR4L = 0x00a4
G$TMR4RLH$0$0 == 0x00a3
_TMR4RLH = 0x00a3
G$TMR4RLL$0$0 == 0x00a2
_TMR4RLL = 0x00a2
G$UART1FCN0$0$0 == 0x009d
_UART1FCN0 = 0x009d
G$UART1FCN1$0$0 == 0x00d8
_UART1FCN1 = 0x00d8
G$UART1FCT$0$0 == 0x00fa
_UART1FCT = 0x00fa
G$UART1LIN$0$0 == 0x009e
_UART1LIN = 0x009e
G$USB0ADR$0$0 == 0x00ae
_USB0ADR = 0x00ae
G$USB0AEC$0$0 == 0x00b2
_USB0AEC = 0x00b2
G$USB0CDCF$0$0 == 0x00b6
_USB0CDCF = 0x00b6
G$USB0CDCN$0$0 == 0x00be
_USB0CDCN = 0x00be
G$USB0CDSTA$0$0 == 0x00bf
_USB0CDSTA = 0x00bf
G$USB0CF$0$0 == 0x00b5
_USB0CF = 0x00b5
G$USB0DAT$0$0 == 0x00af
_USB0DAT = 0x00af
G$USB0XCN$0$0 == 0x00b3
_USB0XCN = 0x00b3
G$VDM0CN$0$0 == 0x00ff
_VDM0CN = 0x00ff
G$WDTCN$0$0 == 0x0097
_WDTCN = 0x0097
G$XBR0$0$0 == 0x00e1
_XBR0 = 0x00e1
G$XBR1$0$0 == 0x00e2
_XBR1 = 0x00e2
G$XBR2$0$0 == 0x00e3
_XBR2 = 0x00e3
G$ADC0GT$0$0 == 0x00c3
_ADC0GT = 0x00c3
G$ADC0$0$0 == 0x00bd
_ADC0 = 0x00bd
G$ADC0LT$0$0 == 0x00c5
_ADC0LT = 0x00c5
G$DP$0$0 == 0x0082
_DP = 0x0082
G$PCA0CP0$0$0 == 0x00fb
_PCA0CP0 = 0x00fb
G$PCA0CP1$0$0 == 0x00e9
_PCA0CP1 = 0x00e9
G$PCA0CP2$0$0 == 0x00eb
_PCA0CP2 = 0x00eb
G$PCA0$0$0 == 0x00f9
_PCA0 = 0x00f9
G$SBRL1$0$0 == 0x0095
_SBRL1 = 0x0095
G$TMR2$0$0 == 0x00cc
_TMR2 = 0x00cc
G$TMR2RL$0$0 == 0x00ca
_TMR2RL = 0x00ca
G$TMR3$0$0 == 0x0094
_TMR3 = 0x0094
G$TMR3RL$0$0 == 0x0092
_TMR3RL = 0x0092
G$TMR4$0$0 == 0x00a4
_TMR4 = 0x00a4
G$TMR4RL$0$0 == 0x00a2
_TMR4RL = 0x00a2
G$_XPAGE$0$0 == 0x00aa
__XPAGE = 0x00aa
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
G$ACC_ACC0$0$0 == 0x00e0
_ACC_ACC0 = 0x00e0
G$ACC_ACC1$0$0 == 0x00e1
_ACC_ACC1 = 0x00e1
G$ACC_ACC2$0$0 == 0x00e2
_ACC_ACC2 = 0x00e2
G$ACC_ACC3$0$0 == 0x00e3
_ACC_ACC3 = 0x00e3
G$ACC_ACC4$0$0 == 0x00e4
_ACC_ACC4 = 0x00e4
G$ACC_ACC5$0$0 == 0x00e5
_ACC_ACC5 = 0x00e5
G$ACC_ACC6$0$0 == 0x00e6
_ACC_ACC6 = 0x00e6
G$ACC_ACC7$0$0 == 0x00e7
_ACC_ACC7 = 0x00e7
G$ADC0CN0_ADCM0$0$0 == 0x00e8
_ADC0CN0_ADCM0 = 0x00e8
G$ADC0CN0_ADCM1$0$0 == 0x00e9
_ADC0CN0_ADCM1 = 0x00e9
G$ADC0CN0_ADCM2$0$0 == 0x00ea
_ADC0CN0_ADCM2 = 0x00ea
G$ADC0CN0_ADWINT$0$0 == 0x00eb
_ADC0CN0_ADWINT = 0x00eb
G$ADC0CN0_ADBUSY$0$0 == 0x00ec
_ADC0CN0_ADBUSY = 0x00ec
G$ADC0CN0_ADINT$0$0 == 0x00ed
_ADC0CN0_ADINT = 0x00ed
G$ADC0CN0_ADBMEN$0$0 == 0x00ee
_ADC0CN0_ADBMEN = 0x00ee
G$ADC0CN0_ADEN$0$0 == 0x00ef
_ADC0CN0_ADEN = 0x00ef
G$B_B0$0$0 == 0x00f0
_B_B0 = 0x00f0
G$B_B1$0$0 == 0x00f1
_B_B1 = 0x00f1
G$B_B2$0$0 == 0x00f2
_B_B2 = 0x00f2
G$B_B3$0$0 == 0x00f3
_B_B3 = 0x00f3
G$B_B4$0$0 == 0x00f4
_B_B4 = 0x00f4
G$B_B5$0$0 == 0x00f5
_B_B5 = 0x00f5
G$B_B6$0$0 == 0x00f6
_B_B6 = 0x00f6
G$B_B7$0$0 == 0x00f7
_B_B7 = 0x00f7
G$IE_EX0$0$0 == 0x00a8
_IE_EX0 = 0x00a8
G$IE_ET0$0$0 == 0x00a9
_IE_ET0 = 0x00a9
G$IE_EX1$0$0 == 0x00aa
_IE_EX1 = 0x00aa
G$IE_ET1$0$0 == 0x00ab
_IE_ET1 = 0x00ab
G$IE_ES0$0$0 == 0x00ac
_IE_ES0 = 0x00ac
G$IE_ET2$0$0 == 0x00ad
_IE_ET2 = 0x00ad
G$IE_ESPI0$0$0 == 0x00ae
_IE_ESPI0 = 0x00ae
G$IE_EA$0$0 == 0x00af
_IE_EA = 0x00af
G$IP_PX0$0$0 == 0x00b8
_IP_PX0 = 0x00b8
G$IP_PT0$0$0 == 0x00b9
_IP_PT0 = 0x00b9
G$IP_PX1$0$0 == 0x00ba
_IP_PX1 = 0x00ba
G$IP_PT1$0$0 == 0x00bb
_IP_PT1 = 0x00bb
G$IP_PS0$0$0 == 0x00bc
_IP_PS0 = 0x00bc
G$IP_PT2$0$0 == 0x00bd
_IP_PT2 = 0x00bd
G$IP_PSPI0$0$0 == 0x00be
_IP_PSPI0 = 0x00be
G$P0_B0$0$0 == 0x0080
_P0_B0 = 0x0080
G$P0_B1$0$0 == 0x0081
_P0_B1 = 0x0081
G$P0_B2$0$0 == 0x0082
_P0_B2 = 0x0082
G$P0_B3$0$0 == 0x0083
_P0_B3 = 0x0083
G$P0_B4$0$0 == 0x0084
_P0_B4 = 0x0084
G$P0_B5$0$0 == 0x0085
_P0_B5 = 0x0085
G$P0_B6$0$0 == 0x0086
_P0_B6 = 0x0086
G$P0_B7$0$0 == 0x0087
_P0_B7 = 0x0087
G$P1_B0$0$0 == 0x0090
_P1_B0 = 0x0090
G$P1_B1$0$0 == 0x0091
_P1_B1 = 0x0091
G$P1_B2$0$0 == 0x0092
_P1_B2 = 0x0092
G$P1_B3$0$0 == 0x0093
_P1_B3 = 0x0093
G$P1_B4$0$0 == 0x0094
_P1_B4 = 0x0094
G$P1_B5$0$0 == 0x0095
_P1_B5 = 0x0095
G$P1_B6$0$0 == 0x0096
_P1_B6 = 0x0096
G$P1_B7$0$0 == 0x0097
_P1_B7 = 0x0097
G$P2_B0$0$0 == 0x00a0
_P2_B0 = 0x00a0
G$P2_B1$0$0 == 0x00a1
_P2_B1 = 0x00a1
G$P2_B2$0$0 == 0x00a2
_P2_B2 = 0x00a2
G$P2_B3$0$0 == 0x00a3
_P2_B3 = 0x00a3
G$P3_B0$0$0 == 0x00b0
_P3_B0 = 0x00b0
G$P3_B1$0$0 == 0x00b1
_P3_B1 = 0x00b1
G$PCA0CN0_CCF0$0$0 == 0x00d8
_PCA0CN0_CCF0 = 0x00d8
G$PCA0CN0_CCF1$0$0 == 0x00d9
_PCA0CN0_CCF1 = 0x00d9
G$PCA0CN0_CCF2$0$0 == 0x00da
_PCA0CN0_CCF2 = 0x00da
G$PCA0CN0_CR$0$0 == 0x00de
_PCA0CN0_CR = 0x00de
G$PCA0CN0_CF$0$0 == 0x00df
_PCA0CN0_CF = 0x00df
G$PSW_PARITY$0$0 == 0x00d0
_PSW_PARITY = 0x00d0
G$PSW_F1$0$0 == 0x00d1
_PSW_F1 = 0x00d1
G$PSW_OV$0$0 == 0x00d2
_PSW_OV = 0x00d2
G$PSW_RS0$0$0 == 0x00d3
_PSW_RS0 = 0x00d3
G$PSW_RS1$0$0 == 0x00d4
_PSW_RS1 = 0x00d4
G$PSW_F0$0$0 == 0x00d5
_PSW_F0 = 0x00d5
G$PSW_AC$0$0 == 0x00d6
_PSW_AC = 0x00d6
G$PSW_CY$0$0 == 0x00d7
_PSW_CY = 0x00d7
G$SCON0_RI$0$0 == 0x0098
_SCON0_RI = 0x0098
G$SCON0_TI$0$0 == 0x0099
_SCON0_TI = 0x0099
G$SCON0_RB8$0$0 == 0x009a
_SCON0_RB8 = 0x009a
G$SCON0_TB8$0$0 == 0x009b
_SCON0_TB8 = 0x009b
G$SCON0_REN$0$0 == 0x009c
_SCON0_REN = 0x009c
G$SCON0_MCE$0$0 == 0x009d
_SCON0_MCE = 0x009d
G$SCON0_SMODE$0$0 == 0x009f
_SCON0_SMODE = 0x009f
G$SCON1_RI$0$0 == 0x00c8
_SCON1_RI = 0x00c8
G$SCON1_TI$0$0 == 0x00c9
_SCON1_TI = 0x00c9
G$SCON1_RBX$0$0 == 0x00ca
_SCON1_RBX = 0x00ca
G$SCON1_TBX$0$0 == 0x00cb
_SCON1_TBX = 0x00cb
G$SCON1_REN$0$0 == 0x00cc
_SCON1_REN = 0x00cc
G$SCON1_PERR$0$0 == 0x00ce
_SCON1_PERR = 0x00ce
G$SCON1_OVR$0$0 == 0x00cf
_SCON1_OVR = 0x00cf
G$SMB0CN0_SI$0$0 == 0x00c0
_SMB0CN0_SI = 0x00c0
G$SMB0CN0_ACK$0$0 == 0x00c1
_SMB0CN0_ACK = 0x00c1
G$SMB0CN0_ARBLOST$0$0 == 0x00c2
_SMB0CN0_ARBLOST = 0x00c2
G$SMB0CN0_ACKRQ$0$0 == 0x00c3
_SMB0CN0_ACKRQ = 0x00c3
G$SMB0CN0_STO$0$0 == 0x00c4
_SMB0CN0_STO = 0x00c4
G$SMB0CN0_STA$0$0 == 0x00c5
_SMB0CN0_STA = 0x00c5
G$SMB0CN0_TXMODE$0$0 == 0x00c6
_SMB0CN0_TXMODE = 0x00c6
G$SMB0CN0_MASTER$0$0 == 0x00c7
_SMB0CN0_MASTER = 0x00c7
G$SPI0CN0_SPIEN$0$0 == 0x00f8
_SPI0CN0_SPIEN = 0x00f8
G$SPI0CN0_TXNF$0$0 == 0x00f9
_SPI0CN0_TXNF = 0x00f9
G$SPI0CN0_NSSMD0$0$0 == 0x00fa
_SPI0CN0_NSSMD0 = 0x00fa
G$SPI0CN0_NSSMD1$0$0 == 0x00fb
_SPI0CN0_NSSMD1 = 0x00fb
G$SPI0CN0_RXOVRN$0$0 == 0x00fc
_SPI0CN0_RXOVRN = 0x00fc
G$SPI0CN0_MODF$0$0 == 0x00fd
_SPI0CN0_MODF = 0x00fd
G$SPI0CN0_WCOL$0$0 == 0x00fe
_SPI0CN0_WCOL = 0x00fe
G$SPI0CN0_SPIF$0$0 == 0x00ff
_SPI0CN0_SPIF = 0x00ff
G$TCON_IT0$0$0 == 0x0088
_TCON_IT0 = 0x0088
G$TCON_IE0$0$0 == 0x0089
_TCON_IE0 = 0x0089
G$TCON_IT1$0$0 == 0x008a
_TCON_IT1 = 0x008a
G$TCON_IE1$0$0 == 0x008b
_TCON_IE1 = 0x008b
G$TCON_TR0$0$0 == 0x008c
_TCON_TR0 = 0x008c
G$TCON_TF0$0$0 == 0x008d
_TCON_TF0 = 0x008d
G$TCON_TR1$0$0 == 0x008e
_TCON_TR1 = 0x008e
G$TCON_TF1$0$0 == 0x008f
_TCON_TF1 = 0x008f
G$TMR2CN0_T2XCLK0$0$0 == 0x00c8
_TMR2CN0_T2XCLK0 = 0x00c8
G$TMR2CN0_T2XCLK1$0$0 == 0x00c9
_TMR2CN0_T2XCLK1 = 0x00c9
G$TMR2CN0_TR2$0$0 == 0x00ca
_TMR2CN0_TR2 = 0x00ca
G$TMR2CN0_T2SPLIT$0$0 == 0x00cb
_TMR2CN0_T2SPLIT = 0x00cb
G$TMR2CN0_TF2CEN$0$0 == 0x00cc
_TMR2CN0_TF2CEN = 0x00cc
G$TMR2CN0_TF2LEN$0$0 == 0x00cd
_TMR2CN0_TF2LEN = 0x00cd
G$TMR2CN0_TF2L$0$0 == 0x00ce
_TMR2CN0_TF2L = 0x00ce
G$TMR2CN0_TF2H$0$0 == 0x00cf
_TMR2CN0_TF2H = 0x00cf
G$TMR4CN0_T4XCLK0$0$0 == 0x0098
_TMR4CN0_T4XCLK0 = 0x0098
G$TMR4CN0_T4XCLK1$0$0 == 0x0099
_TMR4CN0_T4XCLK1 = 0x0099
G$TMR4CN0_TR4$0$0 == 0x009a
_TMR4CN0_TR4 = 0x009a
G$TMR4CN0_T4SPLIT$0$0 == 0x009b
_TMR4CN0_T4SPLIT = 0x009b
G$TMR4CN0_TF4CEN$0$0 == 0x009c
_TMR4CN0_TF4CEN = 0x009c
G$TMR4CN0_TF4LEN$0$0 == 0x009d
_TMR4CN0_TF4LEN = 0x009d
G$TMR4CN0_TF4L$0$0 == 0x009e
_TMR4CN0_TF4L = 0x009e
G$TMR4CN0_TF4H$0$0 == 0x009f
_TMR4CN0_TF4H = 0x009f
G$UART1FCN1_RIE$0$0 == 0x00d8
_UART1FCN1_RIE = 0x00d8
G$UART1FCN1_RXTO0$0$0 == 0x00d9
_UART1FCN1_RXTO0 = 0x00d9
G$UART1FCN1_RXTO1$0$0 == 0x00da
_UART1FCN1_RXTO1 = 0x00da
G$UART1FCN1_RFRQ$0$0 == 0x00db
_UART1FCN1_RFRQ = 0x00db
G$UART1FCN1_TIE$0$0 == 0x00dc
_UART1FCN1_TIE = 0x00dc
G$UART1FCN1_TXHOLD$0$0 == 0x00dd
_UART1FCN1_TXHOLD = 0x00dd
G$UART1FCN1_TXNF$0$0 == 0x00de
_UART1FCN1_TXNF = 0x00de
G$UART1FCN1_TFRQ$0$0 == 0x00df
_UART1FCN1_TFRQ = 0x00df
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
.area REG_BANK_0 (REL,OVR,DATA)
.ds 8
;--------------------------------------------------------
; overlayable bit register bank
;--------------------------------------------------------
.area BIT_BANK (REL,OVR,DATA)
bits:
.ds 1
b0 = bits[0]
b1 = bits[1]
b2 = bits[2]
b3 = bits[3]
b4 = bits[4]
b5 = bits[5]
b6 = bits[6]
b7 = bits[7]
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
.area DSEG (DATA)
;--------------------------------------------------------
; overlayable items in internal ram
;--------------------------------------------------------
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
.area ISEG (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
.area IABS (ABS,DATA)
.area IABS (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
.area BSEG (BIT)
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
.area PSEG (PAG,XDATA)
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
.area XSEG (XDATA)
Fefm8_usbdch9$pStatus$0$0==.
_pStatus:
.ds 2
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
.area XABS (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
.area XISEG (XDATA)
.area HOME (CODE)
.area GSINIT0 (CODE)
.area GSINIT1 (CODE)
.area GSINIT2 (CODE)
.area GSINIT3 (CODE)
.area GSINIT4 (CODE)
.area GSINIT5 (CODE)
.area GSINIT (CODE)
.area GSFINAL (CODE)
.area CSEG (CODE)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
.area HOME (CODE)
.area GSINIT (CODE)
.area GSFINAL (CODE)
.area GSINIT (CODE)
;--------------------------------------------------------
; Home
;--------------------------------------------------------
.area HOME (CODE)
.area HOME (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
.area CSEG (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function 'USBDCH9_SetupCmd'
;------------------------------------------------------------
;status Allocated to registers r7
;------------------------------------------------------------
G$USBDCH9_SetupCmd$0$0 ==.
C$efm8_usbdch9.c$48$0$0 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:48: USB_Status_TypeDef USBDCH9_SetupCmd(void)
; -----------------------------------------
; function USBDCH9_SetupCmd
; -----------------------------------------
_USBDCH9_SetupCmd:
ar7 = 0x07
ar6 = 0x06
ar5 = 0x05
ar4 = 0x04
ar3 = 0x03
ar2 = 0x02
ar1 = 0x01
ar0 = 0x00
C$efm8_usbdch9.c$52$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:52: switch (myUsbDevice.setup.bRequest)
mov dptr,#(_myUsbDevice + 0x0005)
movx a,@dptr
mov r7,a
add a,#0xff - 0x0b
jnc 00119$
ljmp 00110$
00119$:
mov a,r7
add a,#(00120$-3-.)
movc a,@a+pc
mov dpl,a
mov a,r7
add a,#(00121$-3-.)
movc a,@a+pc
mov dph,a
clr a
jmp @a+dptr
00120$:
.db 00101$
.db 00102$
.db 00110$
.db 00103$
.db 00110$
.db 00104$
.db 00105$
.db 00110$
.db 00106$
.db 00107$
.db 00108$
.db 00109$
00121$:
.db 00101$>>8
.db 00102$>>8
.db 00110$>>8
.db 00103$>>8
.db 00110$>>8
.db 00104$>>8
.db 00105$>>8
.db 00110$>>8
.db 00106$>>8
.db 00107$>>8
.db 00108$>>8
.db 00109$>>8
C$efm8_usbdch9.c$54$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:54: case GET_STATUS:
00101$:
C$efm8_usbdch9.c$55$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:55: status = GetStatus();
lcall _GetStatus
mov r7,dpl
C$efm8_usbdch9.c$56$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:56: break;
C$efm8_usbdch9.c$58$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:58: case CLEAR_FEATURE:
sjmp 00111$
00102$:
C$efm8_usbdch9.c$59$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:59: status = ClearFeature();
lcall _ClearFeature
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$60$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:60: break;
C$efm8_usbdch9.c$62$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:62: case SET_FEATURE:
sjmp 00111$
00103$:
C$efm8_usbdch9.c$63$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:63: status = SetFeature();
lcall _SetFeature
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$64$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:64: break;
C$efm8_usbdch9.c$66$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:66: case SET_ADDRESS:
sjmp 00111$
00104$:
C$efm8_usbdch9.c$67$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:67: status = SetAddress();
lcall _SetAddress
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$68$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:68: break;
C$efm8_usbdch9.c$70$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:70: case GET_DESCRIPTOR:
sjmp 00111$
00105$:
C$efm8_usbdch9.c$71$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:71: status = GetDescriptor();
lcall _GetDescriptor
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$72$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:72: break;
C$efm8_usbdch9.c$74$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:74: case GET_CONFIGURATION:
sjmp 00111$
00106$:
C$efm8_usbdch9.c$75$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:75: status = GetConfiguration();
lcall _GetConfiguration
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$76$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:76: break;
C$efm8_usbdch9.c$78$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:78: case SET_CONFIGURATION:
sjmp 00111$
00107$:
C$efm8_usbdch9.c$79$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:79: status = SetConfiguration();
lcall _SetConfiguration
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$80$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:80: break;
C$efm8_usbdch9.c$82$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:82: case GET_INTERFACE:
sjmp 00111$
00108$:
C$efm8_usbdch9.c$83$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:83: status = GetInterface();
lcall _GetInterface
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$84$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:84: break;
C$efm8_usbdch9.c$86$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:86: case SET_INTERFACE:
sjmp 00111$
00109$:
C$efm8_usbdch9.c$87$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:87: status = SetInterface();
lcall _SetInterface
mov r6,dpl
mov ar7,r6
C$efm8_usbdch9.c$88$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:88: break;
C$efm8_usbdch9.c$90$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:90: default:
sjmp 00111$
00110$:
C$efm8_usbdch9.c$91$2$90 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:91: status = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$93$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:93: }
00111$:
C$efm8_usbdch9.c$96$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:96: USB_SetIndex(0);
mov dpl,#0x00
push ar7
lcall _USB_SetIndex
pop ar7
C$efm8_usbdch9.c$104$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:104: return status;
mov dpl,r7
C$efm8_usbdch9.c$105$1$89 ==.
XG$USBDCH9_SetupCmd$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'ClearFeature'
;------------------------------------------------------------
;retVal Allocated to registers r7
;------------------------------------------------------------
Fefm8_usbdch9$ClearFeature$0$0 ==.
C$efm8_usbdch9.c$114$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:114: static USB_Status_TypeDef ClearFeature(void)
; -----------------------------------------
; function ClearFeature
; -----------------------------------------
_ClearFeature:
C$efm8_usbdch9.c$116$1$89 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:116: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$118$1$93 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:118: if (myUsbDevice.setup.wLength == 0)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00205$
ljmp 00145$
00205$:
C$efm8_usbdch9.c$120$2$94 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:120: switch (myUsbDevice.setup.bmRequestType.Recipient)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
mov r6,a
cjne r6,#0x02,00206$
sjmp 00207$
00206$:
ljmp 00145$
00207$:
C$efm8_usbdch9.c$135$3$95 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:135: if (myUsbDevice.setup.wValue == USB_FEATURE_ENDPOINT_HALT)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00208$
ljmp 00145$
00208$:
C$efm8_usbdch9.c$139$4$96 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:139: if (((myUsbDevice.setup.wIndex & ~USB_EP_DIR_IN) == 0)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov a,r5
anl a,#0x7f
jnz 00138$
mov a,r6
jnz 00138$
C$efm8_usbdch9.c$140$4$96 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:140: && (myUsbDevice.state >= USBD_STATE_ADDRESSED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x04,00211$
00211$:
jc 00138$
C$efm8_usbdch9.c$142$5$97 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:142: retVal = USB_STATUS_OK;
mov r7,#0x00
ljmp 00145$
00138$:
C$efm8_usbdch9.c$144$4$96 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:144: else if (((myUsbDevice.setup.wIndex & ~USB_SETUP_DIR_D2H) < SLAB_USB_NUM_EPS_USED)
mov a,#0x7f
anl a,r5
mov r3,a
mov ar4,r6
clr c
mov a,r3
subb a,#0x03
mov a,r4
subb a,#0x00
jc 00213$
ljmp 00145$
00213$:
C$efm8_usbdch9.c$145$4$96 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:145: && (myUsbDevice.state == USBD_STATE_CONFIGURED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x06,00145$
C$efm8_usbdch9.c$147$5$98 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:147: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$148$5$98 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:148: USB_SetIndex((myUsbDevice.setup.wIndex & 0xFF) & ~USB_SETUP_DIR_D2H);
anl ar5,#0x7f
mov dpl,r5
push ar7
lcall _USB_SetIndex
pop ar7
C$efm8_usbdch9.c$151$5$98 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:151: if ((myUsbDevice.setup.wIndex & 0xFF) & USB_EP_DIR_IN)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov a,r5
jnb acc.7,00109$
C$efm8_usbdch9.c$153$7$100 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:153: USB_EpnInEndStallAndClearDataToggle();
mov _USB0ADR,#0x11
mov _USB0DAT,#0x40
00102$:
mov a,_USB0ADR
jb acc.7,00102$
00109$:
C$efm8_usbdch9.c$157$5$98 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:157: if (((myUsbDevice.setup.wIndex & 0xFF) & USB_EP_DIR_IN) == 0)
mov a,r5
jb acc.7,00126$
C$efm8_usbdch9.c$159$8$104 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:159: USB_EpnOutEndStallAndClearDataToggle();
mov _USB0ADR,#0x94
00110$:
mov a,_USB0ADR
jb acc.7,00110$
anl _USB0DAT,#0xdf
00116$:
mov a,_USB0ADR
jb acc.7,00116$
orl _USB0DAT,#0x80
00119$:
mov a,_USB0ADR
jb acc.7,00119$
00126$:
C$efm8_usbdch9.c$163$5$98 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:163: switch (myUsbDevice.setup.wIndex & 0xFF)
mov r6,#0x00
cjne r5,#0x01,00222$
cjne r6,#0x00,00222$
sjmp 00127$
00222$:
C$efm8_usbdch9.c$166$6$108 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:166: case (USB_EP_DIR_OUT | 1):
cjne r5,#0x81,00145$
cjne r6,#0x00,00145$
sjmp 00130$
00127$:
C$efm8_usbdch9.c$167$6$108 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:167: if (myUsbDevice.ep1out.state != D_EP_RECEIVING)
mov dptr,#(_myUsbDevice + 0x0020)
movx a,@dptr
mov r6,a
cjne r6,#0x03,00224$
sjmp 00145$
00224$:
C$efm8_usbdch9.c$169$7$109 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:169: myUsbDevice.ep1out.state = D_EP_IDLE;
mov dptr,#(_myUsbDevice + 0x0020)
mov a,#0x01
movx @dptr,a
C$efm8_usbdch9.c$171$6$108 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:171: break;
C$efm8_usbdch9.c$190$6$108 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:190: case (USB_EP_DIR_IN | 1):
sjmp 00145$
00130$:
C$efm8_usbdch9.c$191$6$108 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:191: if (myUsbDevice.ep1in.state != D_EP_TRANSMITTING)
mov dptr,#(_myUsbDevice + 0x0019)
movx a,@dptr
mov r6,a
cjne r6,#0x02,00225$
sjmp 00145$
00225$:
C$efm8_usbdch9.c$193$7$110 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:193: myUsbDevice.ep1in.state = D_EP_IDLE;
mov dptr,#(_myUsbDevice + 0x0019)
mov a,#0x01
movx @dptr,a
C$efm8_usbdch9.c$216$1$93 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:216: }
00145$:
C$efm8_usbdch9.c$218$1$93 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:218: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$219$1$93 ==.
XFefm8_usbdch9$ClearFeature$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'GetConfiguration'
;------------------------------------------------------------
;retVal Allocated to registers r7
;------------------------------------------------------------
Fefm8_usbdch9$GetConfiguration$0$0 ==.
C$efm8_usbdch9.c$229$1$93 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:229: static USB_Status_TypeDef GetConfiguration(void)
; -----------------------------------------
; function GetConfiguration
; -----------------------------------------
_GetConfiguration:
C$efm8_usbdch9.c$231$1$93 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:231: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$233$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:233: if ((myUsbDevice.setup.wIndex == 0)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00135$
ljmp 00107$
00135$:
C$efm8_usbdch9.c$234$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:234: && (myUsbDevice.setup.wValue == 0)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jnz 00107$
C$efm8_usbdch9.c$235$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:235: && (myUsbDevice.setup.wLength == 1)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
cjne r5,#0x01,00107$
cjne r6,#0x00,00107$
C$efm8_usbdch9.c$236$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:236: && (myUsbDevice.setup.bmRequestType.Direction == USB_SETUP_DIR_IN)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
rl a
anl a,#0x01
mov r6,a
cjne r6,#0x01,00107$
C$efm8_usbdch9.c$237$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:237: && (myUsbDevice.setup.bmRequestType.Recipient == USB_SETUP_RECIPIENT_DEVICE))
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
jnz 00107$
C$efm8_usbdch9.c$239$2$113 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:239: if (myUsbDevice.state == USBD_STATE_ADDRESSED)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r6,a
cjne r6,#0x04,00104$
C$efm8_usbdch9.c$241$3$114 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:241: EP0_Write(txZero, 1);
mov a,#0x01
push acc
clr a
push acc
mov dptr,#_txZero
mov b,#0x80
lcall _EP0_Write
dec sp
dec sp
C$efm8_usbdch9.c$242$3$114 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:242: retVal = USB_STATUS_OK;
mov r7,#0x00
sjmp 00107$
00104$:
C$efm8_usbdch9.c$244$2$113 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:244: else if (myUsbDevice.state == USBD_STATE_CONFIGURED)
cjne r6,#0x06,00107$
C$efm8_usbdch9.c$246$3$115 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:246: EP0_Write(&myUsbDevice.configurationValue, 1);
mov a,#0x01
push acc
clr a
push acc
mov dptr,#_myUsbDevice
mov b,#0x00
lcall _EP0_Write
dec sp
dec sp
C$efm8_usbdch9.c$247$3$115 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:247: retVal = USB_STATUS_OK;
mov r7,#0x00
00107$:
C$efm8_usbdch9.c$250$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:250: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$251$1$112 ==.
XFefm8_usbdch9$GetConfiguration$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'GetDescriptor'
;------------------------------------------------------------
;index Allocated to registers r2
;length Allocated to registers r6 r7
;dat Allocated to stack - _bp +1
;retVal Allocated to stack - _bp +4
;sloc0 Allocated to stack - _bp +8
;sloc1 Allocated to stack - _bp +10
;------------------------------------------------------------
Fefm8_usbdch9$GetDescriptor$0$0 ==.
C$efm8_usbdch9.c$261$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:261: static USB_Status_TypeDef GetDescriptor(void)
; -----------------------------------------
; function GetDescriptor
; -----------------------------------------
_GetDescriptor:
push _bp
mov a,sp
mov _bp,a
add a,#0x04
mov sp,a
C$efm8_usbdch9.c$269$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:269: uint16_t length = 0;
C$efm8_usbdch9.c$271$1$112 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:271: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
clr a
mov r6,a
mov r7,a
mov a,_bp
add a,#0x04
mov r0,a
mov @r0,#0xff
C$efm8_usbdch9.c$273$1$117 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:273: if (*((uint8_t *)&myUsbDevice.setup.bmRequestType) ==
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
mov r4,a
cjne r4,#0x80,00158$
sjmp 00159$
00158$:
ljmp 00122$
00159$:
C$efm8_usbdch9.c$276$1$117 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:276: index = myUsbDevice.setup.wValue & 0xFF;
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
mov ar2,r3
C$efm8_usbdch9.c$278$2$118 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:278: switch (myUsbDevice.setup.wValue >> 8)
mov ar5,r4
mov r4,#0x00
cjne r5,#0x01,00160$
cjne r4,#0x00,00160$
sjmp 00101$
00160$:
cjne r5,#0x02,00161$
cjne r4,#0x00,00161$
sjmp 00104$
00161$:
cjne r5,#0x03,00162$
cjne r4,#0x00,00162$
sjmp 00107$
00162$:
ljmp 00116$
C$efm8_usbdch9.c$280$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:280: case USB_DEVICE_DESCRIPTOR:
00101$:
C$efm8_usbdch9.c$281$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:281: if (index != 0)
mov a,r2
jz 00163$
ljmp 00116$
00163$:
C$efm8_usbdch9.c$285$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:285: dat = (uint8_t *)myUsbDevice.deviceDescriptor;
mov dptr,#(_myUsbDevice + 0x0022)
movx a,@dptr
mov r7,a
inc dptr
movx a,@dptr
mov r6,a
inc dptr
movx a,@dptr
mov r5,a
mov r0,_bp
inc r0
mov @r0,ar7
inc r0
mov @r0,ar6
inc r0
mov @r0,ar5
C$efm8_usbdch9.c$286$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:286: length = myUsbDevice.deviceDescriptor->bLength;
mov dpl,r7
mov dph,r6
mov b,r5
lcall __gptrget
mov r2,a
mov r6,a
mov r7,#0x00
C$efm8_usbdch9.c$287$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:287: break;
ljmp 00116$
C$efm8_usbdch9.c$289$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:289: case USB_CONFIG_DESCRIPTOR:
00104$:
C$efm8_usbdch9.c$290$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:290: if (index != 0)
mov a,r2
jz 00164$
ljmp 00116$
00164$:
C$efm8_usbdch9.c$294$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:294: dat = (uint8_t *)myUsbDevice.configDescriptor;
mov dptr,#(_myUsbDevice + 0x0025)
movx a,@dptr
mov r7,a
inc dptr
movx a,@dptr
mov r6,a
inc dptr
movx a,@dptr
mov r5,a
mov r0,_bp
inc r0
mov @r0,ar7
inc r0
mov @r0,ar6
inc r0
mov @r0,ar5
C$efm8_usbdch9.c$295$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:295: length = le16toh(myUsbDevice.configDescriptor->wTotalLength);
mov a,#0x02
add a,r7
mov r2,a
clr a
addc a,r6
mov r4,a
mov dpl,r2
mov dph,r4
mov b,r5
lcall __gptrget
mov r6,a
inc dptr
lcall __gptrget
mov r7,a
C$efm8_usbdch9.c$296$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:296: break;
ljmp 00116$
C$efm8_usbdch9.c$298$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:298: case USB_STRING_DESCRIPTOR:
00107$:
C$efm8_usbdch9.c$301$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:301: dat = (uint8_t *)myUsbDevice.stringDescriptors[index];
mov dptr,#(_myUsbDevice + 0x0028)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
inc dptr
movx a,@dptr
mov r5,a
mov a,r2
mov b,#0x03
mul ab
add a,r3
mov r3,a
mov a,r4
addc a,b
mov r4,a
mov dpl,r3
mov dph,r4
mov b,r5
lcall __gptrget
mov r3,a
inc dptr
lcall __gptrget
mov r4,a
inc dptr
lcall __gptrget
mov r5,a
mov r0,_bp
inc r0
mov @r0,ar3
inc r0
mov @r0,ar4
inc r0
mov @r0,ar5
C$efm8_usbdch9.c$305$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:305: if (index == 0)
mov a,r2
C$efm8_usbdch9.c$307$4$122 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:307: length = 4;
jnz 00114$
mov r6,#0x04
mov r7,a
C$efm8_usbdch9.c$308$4$122 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:308: myUsbDevice.ep0String.encoding.type = USB_STRING_DESCRIPTOR_UTF16LE;
mov dptr,#(_myUsbDevice + 0x000c)
movx a,@dptr
anl a,#0x80
movx @dptr,a
sjmp 00116$
00114$:
C$efm8_usbdch9.c$312$3$119 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:312: else if ((myUsbDevice.setup.wIndex == 0) || (myUsbDevice.setup.wIndex == SLAB_USB_LANGUAGE))
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r4,a
inc dptr
movx a,@dptr
mov r5,a
orl a,r4
jz 00110$
cjne r4,#0x09,00116$
cjne r5,#0x04,00116$
00110$:
C$efm8_usbdch9.c$315$4$123 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:315: if (index < myUsbDevice.numberOfStrings)
mov dptr,#(_myUsbDevice + 0x0001)
movx a,@dptr
mov r5,a
clr c
mov a,r2
subb a,r5
jnc 00116$
C$efm8_usbdch9.c$317$5$124 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:317: length = *(dat + USB_STRING_DESCRIPTOR_LENGTH);
mov r0,_bp
inc r0
mov a,#0x01
add a,@r0
mov r3,a
clr a
inc r0
addc a,@r0
mov r4,a
inc r0
mov ar5,@r0
mov dpl,r3
mov dph,r4
mov b,r5
lcall __gptrget
mov r6,a
mov r7,#0x00
C$efm8_usbdch9.c$318$5$124 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:318: myUsbDevice.ep0String.encoding.type = *(dat + USB_STRING_DESCRIPTOR_ENCODING);
mov r0,_bp
inc r0
mov dpl,@r0
inc r0
mov dph,@r0
inc r0
mov b,@r0
lcall __gptrget
mov r2,a
mov dptr,#(_myUsbDevice + 0x000c)
anl a,#0x7f
mov b,a
movx a,@dptr
anl a,#0x80
orl a,b
movx @dptr,a
C$efm8_usbdch9.c$319$5$124 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:319: dat += USB_STRING_DESCRIPTOR_LENGTH;
mov r0,_bp
inc r0
mov @r0,ar3
inc r0
mov @r0,ar4
inc r0
mov @r0,ar5
C$efm8_usbdch9.c$320$5$124 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:320: myUsbDevice.ep0String.encoding.init = true;
mov dptr,#(_myUsbDevice + 0x000c)
movx a,@dptr
orl a,#0x80
movx @dptr,a
C$efm8_usbdch9.c$364$2$118 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:364: }
00116$:
C$efm8_usbdch9.c$368$2$118 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:368: if (length)
mov a,r6
orl a,r7
jz 00122$
C$efm8_usbdch9.c$370$3$125 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:370: if (length > myUsbDevice.setup.wLength)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r4,a
inc dptr
movx a,@dptr
mov r5,a
clr c
mov a,r4
subb a,r6
mov a,r5
subb a,r7
jnc 00118$
C$efm8_usbdch9.c$372$4$126 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:372: length = myUsbDevice.setup.wLength;
mov ar6,r4
mov ar7,r5
00118$:
C$efm8_usbdch9.c$375$3$125 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:375: EP0_Write(dat, length);
push ar6
push ar7
mov r0,_bp
inc r0
mov dpl,@r0
inc r0
mov dph,@r0
inc r0
mov b,@r0
lcall _EP0_Write
dec sp
dec sp
C$efm8_usbdch9.c$377$3$125 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:377: retVal = USB_STATUS_OK;
mov a,_bp
add a,#0x04
mov r0,a
mov @r0,#0x00
00122$:
C$efm8_usbdch9.c$381$1$117 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:381: return retVal;
mov a,_bp
add a,#0x04
mov r0,a
mov dpl,@r0
mov sp,_bp
pop _bp
C$efm8_usbdch9.c$382$1$117 ==.
XFefm8_usbdch9$GetDescriptor$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'GetInterface'
;------------------------------------------------------------
;interface Allocated to registers r6 r7
;retVal Allocated to registers r5
;------------------------------------------------------------
Fefm8_usbdch9$GetInterface$0$0 ==.
C$efm8_usbdch9.c$391$1$117 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:391: static USB_Status_TypeDef GetInterface(void)
; -----------------------------------------
; function GetInterface
; -----------------------------------------
_GetInterface:
C$efm8_usbdch9.c$393$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:393: uint16_t interface = myUsbDevice.setup.wIndex;
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r6,a
inc dptr
movx a,@dptr
mov r7,a
C$efm8_usbdch9.c$394$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:394: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r5,#0xff
C$efm8_usbdch9.c$396$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:396: if ((interface < SLAB_USB_NUM_INTERFACES)
clr c
mov a,r6
subb a,#0x01
mov a,r7
subb a,#0x00
jnc 00104$
C$efm8_usbdch9.c$397$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:397: && (myUsbDevice.setup.wLength == 1)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r6,a
inc dptr
movx a,@dptr
mov r7,a
cjne r6,#0x01,00104$
cjne r7,#0x00,00104$
C$efm8_usbdch9.c$398$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:398: && (myUsbDevice.setup.wValue == 0)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r6,a
inc dptr
movx a,@dptr
mov r7,a
orl a,r6
jnz 00104$
C$efm8_usbdch9.c$399$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:399: && (*((uint8_t *)&myUsbDevice.setup.bmRequestType) ==
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
mov r7,a
cjne r7,#0x81,00104$
C$efm8_usbdch9.c$402$2$129 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:402: if (myUsbDevice.state == USBD_STATE_CONFIGURED)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r7,a
cjne r7,#0x06,00104$
C$efm8_usbdch9.c$409$3$130 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:409: EP0_Write(txZero, 1);
mov a,#0x01
push acc
clr a
push acc
mov dptr,#_txZero
mov b,#0x80
lcall _EP0_Write
dec sp
dec sp
C$efm8_usbdch9.c$411$3$130 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:411: retVal = USB_STATUS_OK;
mov r5,#0x00
00104$:
C$efm8_usbdch9.c$414$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:414: return retVal;
mov dpl,r5
C$efm8_usbdch9.c$415$1$128 ==.
XFefm8_usbdch9$GetInterface$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'GetStatus'
;------------------------------------------------------------
;retVal Allocated to registers r7
;------------------------------------------------------------
Fefm8_usbdch9$GetStatus$0$0 ==.
C$efm8_usbdch9.c$424$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:424: static USB_Status_TypeDef GetStatus(void)
; -----------------------------------------
; function GetStatus
; -----------------------------------------
_GetStatus:
C$efm8_usbdch9.c$426$1$128 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:426: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$428$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:428: if ((myUsbDevice.setup.wLength == 2)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
cjne r5,#0x02,00187$
cjne r6,#0x00,00187$
sjmp 00188$
00187$:
ljmp 00127$
00188$:
C$efm8_usbdch9.c$429$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:429: && (myUsbDevice.setup.wValue == 0)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00189$
ljmp 00127$
00189$:
C$efm8_usbdch9.c$430$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:430: && (myUsbDevice.setup.bmRequestType.Direction == USB_SETUP_DIR_IN)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
rl a
anl a,#0x01
mov r6,a
cjne r6,#0x01,00190$
sjmp 00191$
00190$:
ljmp 00127$
00191$:
C$efm8_usbdch9.c$431$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:431: && (myUsbDevice.state >= USBD_STATE_ADDRESSED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r6,a
cjne r6,#0x04,00192$
00192$:
jnc 00193$
ljmp 00127$
00193$:
C$efm8_usbdch9.c$433$2$133 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:433: pStatus = htole16(0); // Default return value is 0x0000
mov dptr,#_pStatus
clr a
movx @dptr,a
inc dptr
movx @dptr,a
C$efm8_usbdch9.c$435$2$133 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:435: switch (myUsbDevice.setup.bmRequestType.Recipient)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
mov r6,a
jz 00101$
cjne r6,#0x01,00195$
sjmp 00106$
00195$:
cjne r6,#0x02,00196$
sjmp 00109$
00196$:
ljmp 00123$
C$efm8_usbdch9.c$437$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:437: case USB_SETUP_RECIPIENT_DEVICE:
00101$:
C$efm8_usbdch9.c$438$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:438: if (myUsbDevice.setup.wIndex == 0)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00197$
ljmp 00123$
00197$:
C$efm8_usbdch9.c$450$4$135 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:450: if (USBD_IsSelfPoweredCb())
lcall _USBD_IsSelfPoweredCb
jnc 00103$
C$efm8_usbdch9.c$452$5$136 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:452: pStatus |= htole16(DEVICE_IS_SELFPOWERED);
mov dptr,#_pStatus
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov dptr,#_pStatus
mov a,#0x01
orl a,r5
movx @dptr,a
mov a,r6
inc dptr
movx @dptr,a
00103$:
C$efm8_usbdch9.c$458$4$135 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:458: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$460$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:460: break;
C$efm8_usbdch9.c$462$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:462: case USB_SETUP_RECIPIENT_INTERFACE:
sjmp 00123$
00106$:
C$efm8_usbdch9.c$463$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:463: if (myUsbDevice.setup.wIndex < SLAB_USB_NUM_INTERFACES)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
clr c
mov a,r5
subb a,#0x01
mov a,r6
subb a,#0x00
jnc 00123$
C$efm8_usbdch9.c$465$4$137 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:465: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$467$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:467: break;
C$efm8_usbdch9.c$470$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:470: case USB_SETUP_RECIPIENT_ENDPOINT:
sjmp 00123$
00109$:
C$efm8_usbdch9.c$473$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:473: if (((myUsbDevice.setup.wIndex & ~USB_EP_DIR_IN) == 0)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov a,r5
anl a,#0x7f
jnz 00120$
mov a,r6
jnz 00120$
C$efm8_usbdch9.c$474$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:474: && (myUsbDevice.state == USBD_STATE_ADDRESSED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x04,00120$
C$efm8_usbdch9.c$476$4$138 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:476: retVal = USB_STATUS_OK;
mov r7,#0x00
sjmp 00123$
00120$:
C$efm8_usbdch9.c$478$3$134 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:478: else if (myUsbDevice.state == USBD_STATE_CONFIGURED)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x06,00123$
C$efm8_usbdch9.c$480$4$139 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:480: switch (myUsbDevice.setup.wIndex & 0xFF)
mov r6,#0x00
cjne r5,#0x01,00206$
cjne r6,#0x00,00206$
sjmp 00110$
00206$:
C$efm8_usbdch9.c$483$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:483: case (USB_EP_DIR_OUT | 1):
cjne r5,#0x81,00123$
cjne r6,#0x00,00123$
sjmp 00113$
00110$:
C$efm8_usbdch9.c$484$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:484: if (myUsbDevice.ep1out.state == D_EP_HALT)
mov dptr,#(_myUsbDevice + 0x0020)
movx a,@dptr
mov r6,a
cjne r6,#0x06,00112$
C$efm8_usbdch9.c$486$6$141 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:486: pStatus = htole16(1);
mov dptr,#_pStatus
mov a,#0x01
movx @dptr,a
clr a
inc dptr
movx @dptr,a
00112$:
C$efm8_usbdch9.c$488$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:488: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$489$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:489: break;
C$efm8_usbdch9.c$510$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:510: case (USB_EP_DIR_IN | 1):
sjmp 00123$
00113$:
C$efm8_usbdch9.c$511$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:511: if (myUsbDevice.ep1in.state == D_EP_HALT)
mov dptr,#(_myUsbDevice + 0x0019)
movx a,@dptr
mov r6,a
cjne r6,#0x06,00115$
C$efm8_usbdch9.c$513$6$142 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:513: pStatus = htole16(1);
mov dptr,#_pStatus
mov a,#0x01
movx @dptr,a
clr a
inc dptr
movx @dptr,a
00115$:
C$efm8_usbdch9.c$515$5$140 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:515: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$539$2$133 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:539: }
00123$:
C$efm8_usbdch9.c$542$2$133 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:542: if (retVal == USB_STATUS_OK)
mov a,r7
jnz 00127$
C$efm8_usbdch9.c$544$3$143 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:544: EP0_Write((uint8_t *)&pStatus, 2);
push ar7
mov a,#0x02
push acc
clr a
push acc
mov dptr,#_pStatus
mov b,#0x00
lcall _EP0_Write
dec sp
dec sp
pop ar7
00127$:
C$efm8_usbdch9.c$548$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:548: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$549$1$132 ==.
XFefm8_usbdch9$GetStatus$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'SetAddress'
;------------------------------------------------------------
;retVal Allocated to registers r7
;------------------------------------------------------------
Fefm8_usbdch9$SetAddress$0$0 ==.
C$efm8_usbdch9.c$557$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:557: static USB_Status_TypeDef SetAddress(void)
; -----------------------------------------
; function SetAddress
; -----------------------------------------
_SetAddress:
C$efm8_usbdch9.c$559$1$132 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:559: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$561$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:561: if ((myUsbDevice.setup.wValue < 128)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
clr c
mov a,r5
subb a,#0x80
mov a,r6
subb a,#0x00
jnc 00119$
C$efm8_usbdch9.c$562$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:562: && (myUsbDevice.setup.wLength == 0)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
orl a,r3
jnz 00119$
C$efm8_usbdch9.c$563$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:563: && (myUsbDevice.setup.bmRequestType.Recipient == USB_SETUP_RECIPIENT_DEVICE)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
jnz 00119$
C$efm8_usbdch9.c$564$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:564: && (myUsbDevice.setup.wIndex == 0))
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
orl a,r3
jnz 00119$
C$efm8_usbdch9.c$568$2$146 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:568: if (myUsbDevice.state == USBD_STATE_DEFAULT)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x03,00108$
C$efm8_usbdch9.c$570$3$147 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:570: if (myUsbDevice.setup.wValue != 0)
mov a,r5
orl a,r6
jz 00102$
C$efm8_usbdch9.c$572$4$148 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:572: USBD_SetUsbState(USBD_STATE_ADDRESSED);
mov dpl,#0x04
lcall _USBD_SetUsbState
00102$:
C$efm8_usbdch9.c$574$3$147 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:574: retVal = USB_STATUS_OK;
mov r7,#0x00
sjmp 00109$
00108$:
C$efm8_usbdch9.c$578$2$146 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:578: else if (myUsbDevice.state == USBD_STATE_ADDRESSED)
cjne r4,#0x04,00109$
C$efm8_usbdch9.c$580$3$149 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:580: if (myUsbDevice.setup.wValue == 0)
mov a,r5
orl a,r6
jnz 00104$
C$efm8_usbdch9.c$582$4$150 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:582: USBD_SetUsbState(USBD_STATE_DEFAULT);
mov dpl,#0x03
lcall _USBD_SetUsbState
00104$:
C$efm8_usbdch9.c$584$3$149 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:584: retVal = USB_STATUS_OK;
mov r7,#0x00
00109$:
C$efm8_usbdch9.c$588$2$146 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:588: if (retVal == USB_STATUS_OK)
mov a,r7
C$efm8_usbdch9.c$590$4$152 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:590: USB_SetAddress(myUsbDevice.setup.wValue);
jnz 00119$
mov _USB0ADR,a
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl ar5,#0x80
mov _USB0DAT,r5
00110$:
mov a,_USB0ADR
jb acc.7,00110$
00119$:
C$efm8_usbdch9.c$594$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:594: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$595$1$145 ==.
XFefm8_usbdch9$SetAddress$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'SetConfiguration'
;------------------------------------------------------------
;retVal Allocated to registers r7
;sloc0 Allocated to stack - _bp +2
;sloc1 Allocated to stack - _bp +4
;------------------------------------------------------------
Fefm8_usbdch9$SetConfiguration$0$0 ==.
C$efm8_usbdch9.c$603$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:603: static USB_Status_TypeDef SetConfiguration(void)
; -----------------------------------------
; function SetConfiguration
; -----------------------------------------
_SetConfiguration:
C$efm8_usbdch9.c$605$1$145 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:605: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$607$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:607: if (((myUsbDevice.setup.wValue >> 8) == 0)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov r3,a
mov r4,#0x00
mov a,r3
orl a,r4
jz 00154$
ljmp 00118$
00154$:
C$efm8_usbdch9.c$608$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:608: && (myUsbDevice.setup.bmRequestType.Recipient == USB_SETUP_RECIPIENT_DEVICE)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
jz 00155$
ljmp 00118$
00155$:
C$efm8_usbdch9.c$609$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:609: && (myUsbDevice.setup.wLength == 0)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
orl a,r3
jz 00156$
ljmp 00118$
00156$:
C$efm8_usbdch9.c$610$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:610: && (myUsbDevice.setup.wIndex == 0))
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
orl a,r3
jz 00157$
ljmp 00118$
00157$:
C$efm8_usbdch9.c$614$2$156 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:614: if (myUsbDevice.state == USBD_STATE_ADDRESSED)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x04,00158$
sjmp 00159$
00158$:
ljmp 00115$
00159$:
C$efm8_usbdch9.c$616$3$157 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:616: if ((myUsbDevice.setup.wValue == 0)
mov a,r5
orl a,r6
jz 00103$
C$efm8_usbdch9.c$617$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:617: || (myUsbDevice.setup.wValue == myUsbDevice.configDescriptor->bConfigurationValue))
push ar7
mov dptr,#(_myUsbDevice + 0x0025)
movx a,@dptr
mov r2,a
inc dptr
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r7,a
mov a,#0x05
add a,r2
mov r2,a
clr a
addc a,r3
mov r3,a
mov dpl,r2
mov dph,r3
mov b,r7
lcall __gptrget
mov r2,a
mov r7,#0x00
mov a,r5
cjne a,ar2,00161$
mov a,r6
cjne a,ar7,00161$
sjmp 00162$
00161$:
pop ar7
ljmp 00118$
00162$:
pop ar7
00103$:
C$efm8_usbdch9.c$619$4$158 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:619: myUsbDevice.configurationValue = myUsbDevice.setup.wValue;
mov ar3,r5
mov dptr,#_myUsbDevice
mov a,r3
movx @dptr,a
C$efm8_usbdch9.c$620$4$158 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:620: if (myUsbDevice.setup.wValue == myUsbDevice.configDescriptor->bConfigurationValue)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r7,a
inc dptr
movx a,@dptr
mov r6,a
mov dptr,#(_myUsbDevice + 0x0025)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r4,a
inc dptr
movx a,@dptr
mov r3,a
mov a,#0x05
add a,r5
mov r5,a
clr a
addc a,r4
mov r4,a
mov dpl,r5
mov dph,r4
mov b,r3
lcall __gptrget
mov r3,a
mov r2,#0x00
mov a,r7
cjne a,ar3,00102$
mov a,r6
cjne a,ar2,00102$
C$efm8_usbdch9.c$622$5$159 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:622: USBD_ActivateAllEps(true);
setb b[0]
mov bits,b
lcall _USBD_ActivateAllEps
C$efm8_usbdch9.c$623$5$159 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:623: USBD_SetUsbState(USBD_STATE_CONFIGURED);
mov dpl,#0x06
lcall _USBD_SetUsbState
00102$:
C$efm8_usbdch9.c$625$4$158 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:625: retVal = USB_STATUS_OK;
mov r7,#0x00
sjmp 00118$
00115$:
C$efm8_usbdch9.c$630$2$156 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:630: else if (myUsbDevice.state == USBD_STATE_CONFIGURED)
cjne r4,#0x06,00118$
C$efm8_usbdch9.c$632$3$160 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:632: if ((myUsbDevice.setup.wValue == 0)
mov a,r5
orl a,r6
jz 00109$
C$efm8_usbdch9.c$633$3$160 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:633: || (myUsbDevice.setup.wValue == myUsbDevice.configDescriptor->bConfigurationValue))
mov dptr,#(_myUsbDevice + 0x0025)
movx a,@dptr
mov r2,a
inc dptr
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
mov a,#0x05
add a,r2
mov r2,a
clr a
addc a,r3
mov r3,a
mov dpl,r2
mov dph,r3
mov b,r4
lcall __gptrget
mov r2,a
mov r4,#0x00
mov a,r5
cjne a,ar2,00118$
mov a,r6
cjne a,ar4,00118$
00109$:
C$efm8_usbdch9.c$635$4$161 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:635: myUsbDevice.configurationValue = myUsbDevice.setup.wValue;
mov dptr,#_myUsbDevice
mov a,r5
movx @dptr,a
C$efm8_usbdch9.c$636$4$161 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:636: if (myUsbDevice.setup.wValue == 0)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jnz 00107$
C$efm8_usbdch9.c$638$5$162 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:638: USBD_SetUsbState(USBD_STATE_ADDRESSED);
mov dpl,#0x04
lcall _USBD_SetUsbState
C$efm8_usbdch9.c$639$5$162 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:639: USBD_AbortAllTransfers();
lcall _USBD_AbortAllTransfers
sjmp 00108$
00107$:
C$efm8_usbdch9.c$644$5$163 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:644: USBD_ActivateAllEps(false);
clr b[0]
mov bits,b
lcall _USBD_ActivateAllEps
00108$:
C$efm8_usbdch9.c$646$4$161 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:646: retVal = USB_STATUS_OK;
mov r7,#0x00
00118$:
C$efm8_usbdch9.c$651$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:651: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$652$1$155 ==.
XFefm8_usbdch9$SetConfiguration$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'SetFeature'
;------------------------------------------------------------
;retVal Allocated to registers r7
;------------------------------------------------------------
Fefm8_usbdch9$SetFeature$0$0 ==.
C$efm8_usbdch9.c$660$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:660: static USB_Status_TypeDef SetFeature(void)
; -----------------------------------------
; function SetFeature
; -----------------------------------------
_SetFeature:
C$efm8_usbdch9.c$662$1$155 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:662: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$664$1$165 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:664: if (myUsbDevice.setup.wLength == 0)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jz 00182$
ljmp 00134$
00182$:
C$efm8_usbdch9.c$666$2$166 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:666: switch (myUsbDevice.setup.bmRequestType.Recipient)
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
mov r6,a
cjne r6,#0x02,00183$
sjmp 00184$
00183$:
ljmp 00134$
00184$:
C$efm8_usbdch9.c$682$3$167 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:682: if (((myUsbDevice.setup.wIndex & ~USB_EP_DIR_IN) == 0)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov a,r5
anl a,#0x7f
jnz 00129$
mov a,r6
jnz 00129$
C$efm8_usbdch9.c$683$3$167 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:683: && (myUsbDevice.state >= USBD_STATE_ADDRESSED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x04,00187$
00187$:
jc 00129$
C$efm8_usbdch9.c$685$4$168 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:685: retVal = USB_STATUS_OK;
mov r7,#0x00
sjmp 00134$
00129$:
C$efm8_usbdch9.c$687$3$167 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:687: else if ((((myUsbDevice.setup.wIndex) & ~USB_SETUP_DIR_D2H) < SLAB_USB_NUM_EPS_USED)
mov a,#0x7f
anl a,r5
mov r3,a
mov ar4,r6
clr c
mov a,r3
subb a,#0x03
mov a,r4
subb a,#0x00
jnc 00134$
C$efm8_usbdch9.c$688$3$167 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:688: && (myUsbDevice.setup.wValue == USB_FEATURE_ENDPOINT_HALT)
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r3,a
inc dptr
movx a,@dptr
mov r4,a
orl a,r3
jnz 00134$
C$efm8_usbdch9.c$689$3$167 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:689: && (myUsbDevice.state == USBD_STATE_CONFIGURED))
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r4,a
cjne r4,#0x06,00134$
C$efm8_usbdch9.c$691$4$169 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:691: retVal = USB_STATUS_OK;
mov r7,#0x00
C$efm8_usbdch9.c$692$4$169 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:692: USB_SetIndex((myUsbDevice.setup.wIndex & 0xFF) & ~USB_SETUP_DIR_D2H);
anl ar5,#0x7f
mov dpl,r5
push ar7
lcall _USB_SetIndex
pop ar7
C$efm8_usbdch9.c$696$4$169 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:696: if ((myUsbDevice.setup.wIndex & 0xFF) & USB_EP_DIR_IN)
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
mov a,r5
jnb acc.7,00109$
C$efm8_usbdch9.c$698$6$171 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:698: USB_EpnInStall();
mov _USB0ADR,#0x11
mov _USB0DAT,#0x10
00102$:
mov a,_USB0ADR
jb acc.7,00102$
00109$:
C$efm8_usbdch9.c$702$4$169 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:702: if (((myUsbDevice.setup.wIndex & 0xFF) & USB_EP_DIR_IN) == 0)
mov a,r5
jb acc.7,00120$
C$efm8_usbdch9.c$704$6$174 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:704: USB_EpnOutStall();
mov _USB0ADR,#0x94
00110$:
mov a,_USB0ADR
jb acc.7,00110$
orl _USB0DAT,#0x20
00113$:
mov a,_USB0ADR
jb acc.7,00113$
00120$:
C$efm8_usbdch9.c$709$4$169 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:709: switch (myUsbDevice.setup.wIndex & 0xFF)
mov r6,#0x00
cjne r5,#0x01,00198$
cjne r6,#0x00,00198$
sjmp 00121$
00198$:
C$efm8_usbdch9.c$712$5$177 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:712: case (USB_EP_DIR_OUT | 1):
cjne r5,#0x81,00134$
cjne r6,#0x00,00134$
sjmp 00122$
00121$:
C$efm8_usbdch9.c$713$5$177 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:713: myUsbDevice.ep1out.state = D_EP_HALT;
mov dptr,#(_myUsbDevice + 0x0020)
mov a,#0x06
movx @dptr,a
C$efm8_usbdch9.c$714$5$177 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:714: break;
C$efm8_usbdch9.c$727$5$177 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:727: case (USB_EP_DIR_IN | 1):
sjmp 00134$
00122$:
C$efm8_usbdch9.c$728$5$177 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:728: myUsbDevice.ep1in.state = D_EP_HALT;
mov dptr,#(_myUsbDevice + 0x0019)
mov a,#0x06
movx @dptr,a
C$efm8_usbdch9.c$743$1$165 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:743: }
00134$:
C$efm8_usbdch9.c$746$1$165 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:746: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$747$1$165 ==.
XFefm8_usbdch9$SetFeature$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'SetInterface'
;------------------------------------------------------------
;retVal Allocated to registers r7
;interface Allocated to registers r5
;altSetting Allocated to registers r4
;------------------------------------------------------------
Fefm8_usbdch9$SetInterface$0$0 ==.
C$efm8_usbdch9.c$755$1$165 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:755: static USB_Status_TypeDef SetInterface(void)
; -----------------------------------------
; function SetInterface
; -----------------------------------------
_SetInterface:
C$efm8_usbdch9.c$757$1$165 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:757: USB_Status_TypeDef retVal = USB_STATUS_REQ_ERR;
mov r7,#0xff
C$efm8_usbdch9.c$758$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:758: uint8_t interface = (uint8_t)myUsbDevice.setup.wIndex;
mov dptr,#(_myUsbDevice + 0x0008)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
C$efm8_usbdch9.c$759$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:759: uint8_t altSetting = (uint8_t)myUsbDevice.setup.wValue;
mov dptr,#(_myUsbDevice + 0x0006)
movx a,@dptr
mov r4,a
inc dptr
movx a,@dptr
mov r6,a
C$efm8_usbdch9.c$761$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:761: if ((interface < SLAB_USB_NUM_INTERFACES)
cjne r5,#0x01,00124$
00124$:
jnc 00102$
C$efm8_usbdch9.c$762$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:762: && (myUsbDevice.state == USBD_STATE_CONFIGURED)
mov dptr,#(_myUsbDevice + 0x0002)
movx a,@dptr
mov r6,a
cjne r6,#0x06,00102$
C$efm8_usbdch9.c$763$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:763: && (myUsbDevice.setup.wLength == 0)
mov dptr,#(_myUsbDevice + 0x000a)
movx a,@dptr
mov r5,a
inc dptr
movx a,@dptr
mov r6,a
orl a,r5
jnz 00102$
C$efm8_usbdch9.c$765$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:765: && (altSetting == 0)
mov a,r4
jnz 00102$
C$efm8_usbdch9.c$767$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:767: && (myUsbDevice.setup.bmRequestType.Recipient == USB_SETUP_RECIPIENT_INTERFACE))
mov dptr,#(_myUsbDevice + 0x0004)
movx a,@dptr
anl a,#0x1f
mov r6,a
cjne r6,#0x01,00102$
C$efm8_usbdch9.c$778$2$180 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:778: USBD_ActivateAllEps(false);
clr b[0]
mov bits,b
lcall _USBD_ActivateAllEps
C$efm8_usbdch9.c$780$2$180 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:780: retVal = USB_STATUS_OK;
mov r7,#0x00
00102$:
C$efm8_usbdch9.c$784$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:784: return retVal;
mov dpl,r7
C$efm8_usbdch9.c$785$1$179 ==.
XFefm8_usbdch9$SetInterface$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'USBD_ActivateAllEps'
;------------------------------------------------------------
;forceIdle Allocated to registers b0
;------------------------------------------------------------
Fefm8_usbdch9$USBD_ActivateAllEps$0$0 ==.
C$efm8_usbdch9.c$796$1$179 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:796: static void USBD_ActivateAllEps(bool forceIdle)
; -----------------------------------------
; function USBD_ActivateAllEps
; -----------------------------------------
_USBD_ActivateAllEps:
C$efm8_usbdch9.c$798$1$182 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:798: if (forceIdle == true)
mov c,b0
clr a
rlc a
mov r7,a
cjne r7,#0x01,00102$
C$efm8_usbdch9.c$801$2$183 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:801: myUsbDevice.ep1in.state = D_EP_IDLE;
mov dptr,#(_myUsbDevice + 0x0019)
mov a,#0x01
movx @dptr,a
C$efm8_usbdch9.c$810$2$183 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:810: myUsbDevice.ep1out.state = D_EP_IDLE;
mov dptr,#(_myUsbDevice + 0x0020)
movx @dptr,a
00102$:
C$efm8_usbdch9.c$821$1$182 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:821: USB_ActivateEp(1, // ep
mov a,#0x40
push acc
clr a
push acc
setb b[0]
setb b[1]
clr b[2]
mov bits,b
mov dpl,#0x01
lcall _USB_ActivateEp
dec sp
dec sp
C$efm8_usbdch9.c$842$1$182 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:842: USB_ActivateEp(1, // ep
mov a,#0x40
push acc
clr a
push acc
clr b[0]
setb b[1]
clr b[2]
mov bits,b
mov dpl,#0x01
lcall _USB_ActivateEp
dec sp
dec sp
C$efm8_usbdch9.c$862$1$182 ==.
XFefm8_usbdch9$USBD_ActivateAllEps$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'EP0_Write'
;------------------------------------------------------------
;numBytes Allocated to stack - _bp -4
;dat Allocated to registers r5 r6 r7
;------------------------------------------------------------
Fefm8_usbdch9$EP0_Write$0$0 ==.
C$efm8_usbdch9.c$871$1$182 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:871: static void EP0_Write(uint8_t *dat, uint16_t numBytes)
; -----------------------------------------
; function EP0_Write
; -----------------------------------------
_EP0_Write:
push _bp
mov _bp,sp
mov r5,dpl
mov r6,dph
mov r7,b
C$efm8_usbdch9.c$873$1$185 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:873: if (myUsbDevice.ep0.state == D_EP_IDLE)
mov dptr,#(_myUsbDevice + 0x0012)
movx a,@dptr
mov r4,a
cjne r4,#0x01,00103$
C$efm8_usbdch9.c$875$2$186 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:875: myUsbDevice.ep0.buf = (uint8_t *)dat;
mov dptr,#(_myUsbDevice + 0x000d)
mov a,r5
movx @dptr,a
mov a,r6
inc dptr
movx @dptr,a
mov a,r7
inc dptr
movx @dptr,a
C$efm8_usbdch9.c$876$2$186 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:876: myUsbDevice.ep0.remaining = numBytes;
mov dptr,#(_myUsbDevice + 0x0010)
mov a,_bp
add a,#0xfc
mov r0,a
mov a,@r0
movx @dptr,a
inc r0
mov a,@r0
inc dptr
movx @dptr,a
C$efm8_usbdch9.c$877$2$186 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:877: myUsbDevice.ep0.state = D_EP_TRANSMITTING;
mov dptr,#(_myUsbDevice + 0x0012)
mov a,#0x02
movx @dptr,a
C$efm8_usbdch9.c$878$2$186 ==.
; D:\Freelancer_projects\jan333\sdcc_project\lib\efm8_usb\src\efm8_usbdch9.c:878: myUsbDevice.ep0.misc.c = 0;
mov dptr,#(_myUsbDevice + 0x0013)
clr a
movx @dptr,a
00103$:
pop _bp
C$efm8_usbdch9.c$880$1$185 ==.
XFefm8_usbdch9$EP0_Write$0$0 ==.
ret
.area CSEG (CODE)
.area CONST (CODE)
G$txZero$0$0 == .
_txZero:
.ds 2
.area XINIT (CODE)
.area CABS (ABS,CODE)
| 28.057096 | 174 | 0.6896 |
1cb5e5b21a627376acf0e16413986e6fea135e48 | 698 | asm | Assembly | oeis/181/A181732.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/181/A181732.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/181/A181732.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A181732: Numbers n such that 90n + 1 is prime.
; Submitted by Jamie Morken(s4)
; 2,3,6,7,9,11,13,17,18,20,24,25,26,28,31,33,34,37,39,41,45,47,51,54,55,62,65,68,69,70,72,73,74,76,84,86,89,90,91,94,96,97,98,100,101,102,107,108,109,110,117,119,121,123,124,125,130,133,136,138,139,140,142,149,151,152,158,160,165,167,168,171,174,179,182,184,185,186,187,188,189,191,195,199,202,205,206,212,216,217,220,221,223,224,226,227,228,229,234,240
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $2,1
mov $3,$1
mul $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,30
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
mul $4,3
lpe
mov $0,$1
div $0,30
sub $0,1
| 29.083333 | 353 | 0.65043 |
98c6212dbcb26b88f996f4a73a6bbf3621c253a6 | 73 | asm | Assembly | data/phone/permanent_numbers.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | data/phone/permanent_numbers.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | data/phone/permanent_numbers.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | PermanentNumbers:
db PHONECONTACT_MOM
db PHONECONTACT_ELM
db -1 ; end
| 14.6 | 20 | 0.794521 |
4296a7ae8c506e1a72adabf9239376e5574b25f2 | 304 | asm | Assembly | srcs/strncmp.asm | fadatos/minilibc_2017 | f75b9771d0cc8842b9092731fe2a59b1e285dc7b | [
"MIT"
] | null | null | null | srcs/strncmp.asm | fadatos/minilibc_2017 | f75b9771d0cc8842b9092731fe2a59b1e285dc7b | [
"MIT"
] | null | null | null | srcs/strncmp.asm | fadatos/minilibc_2017 | f75b9771d0cc8842b9092731fe2a59b1e285dc7b | [
"MIT"
] | null | null | null | BITS 64
global strncmp:function
section .text
strncmp:
xor rcx, rcx
loop:
mov r10b, byte [rdi]
mov r9b, byte [rsi]
cmp r10b, 0
je end
cmp r9b, 0
je end
cmp r10b, r9b
jne end
inc rdi
inc rsi
inc rcx
cmp rdx, rcx
jle end
jmp loop
end:
movzx rax, r10b
movzx rbx, r9b
sub rax, rbx
ret
| 10.133333 | 23 | 0.671053 |
7fe5d35a67cd3b4d4765332cc124bf7c295d3d06 | 6,596 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_903_2004.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_903_2004.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_903_2004.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1b939, %rsi
lea addresses_UC_ht+0x12eea, %rdi
nop
nop
nop
nop
dec %r11
mov $21, %rcx
rep movsw
nop
nop
nop
sub %r8, %r8
lea addresses_normal_ht+0x6d49, %r9
nop
nop
nop
nop
nop
sub %r11, %r11
mov (%r9), %r8d
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x3ca9, %rsi
nop
nop
nop
nop
nop
cmp %r9, %r9
mov (%rsi), %r8d
nop
nop
nop
sub $27701, %rcx
lea addresses_WT_ht+0x1e889, %rdi
nop
and $63767, %rax
movw $0x6162, (%rdi)
nop
nop
nop
nop
sub %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rdx
// Store
mov $0x259, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
dec %r10
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
movntdq %xmm1, (%rdx)
nop
nop
nop
nop
nop
add %rdx, %rdx
// Store
lea addresses_RW+0x1be99, %rax
nop
nop
nop
sub $7673, %r14
movw $0x5152, (%rax)
nop
nop
nop
nop
nop
sub %r12, %r12
// Store
lea addresses_normal+0x12b39, %r10
nop
cmp $21774, %rbx
movw $0x5152, (%r10)
add %rdx, %rdx
// Store
lea addresses_UC+0x1f139, %rbp
nop
nop
dec %r12
movb $0x51, (%rbp)
nop
nop
nop
nop
add %rax, %rax
// Store
lea addresses_UC+0x18539, %rbp
clflush (%rbp)
nop
nop
add %r10, %r10
movb $0x51, (%rbp)
nop
nop
cmp %r10, %r10
// Load
lea addresses_normal+0xe939, %r10
nop
nop
nop
nop
inc %r12
movups (%r10), %xmm1
vpextrq $1, %xmm1, %r14
nop
nop
cmp %r10, %r10
// Store
lea addresses_US+0x939, %rax
nop
nop
nop
nop
nop
add %rdx, %rdx
movb $0x51, (%rax)
nop
nop
nop
xor %r10, %r10
// Store
lea addresses_WT+0x1d839, %rbp
nop
xor %r10, %r10
movb $0x51, (%rbp)
nop
sub $56582, %rax
// Faulty Load
lea addresses_US+0x939, %rbx
nop
nop
nop
nop
nop
sub $4720, %rbp
vmovups (%rbx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %rax
lea oracles, %r12
and $0xff, %rax
shlq $12, %rax
mov (%r12,%rax,1), %rax
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': True, 'type': 'addresses_P', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}}
{'00': 903}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 29.981818 | 2,708 | 0.649939 |
56f575736d8bc861c540f5dfe599ddd297a979aa | 748 | asm | Assembly | oeis/322/A322242.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/322/A322242.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/322/A322242.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A322242: G.f.: 1/sqrt(1 - 6*x - 7*x^2).
; Submitted by Christian Krause
; 1,3,17,99,609,3843,24689,160611,1054657,6975747,46406097,310171491,2081258529,14011445763,94594402353,640188979299,4341874207617,29502747778563,200803974858641,1368767759442531,9342637825548769,63846282803069187,436797192815981553,2991302112253485411,20504081077963103041,140665546932766467843,965770879590646638929,6635507385062085656931,45621050527781298148257,313853761645612785245187,2160439635613768883749809,14879669137512851310571107,102533527122441148295988993,706881323505421291251084291
mov $1,1
mov $2,1
mov $3,$0
mov $4,1
lpb $3
mul $1,$4
mul $1,$3
mul $1,4
mul $2,-2
add $5,$4
div $1,$5
div $2,2
add $2,$1
sub $3,1
add $4,2
lpe
mov $0,$2
| 34 | 498 | 0.790107 |
081f99bc9868efccf328b090f7fcd27c0eb42e8e | 4,713 | asm | Assembly | PIC16/assy/debounce.asm | Classrooms/Microcontrollers | 554a2129d45a14306b69af0d72d5b3816b1e21ec | [
"MIT"
] | 1 | 2020-11-04T17:00:32.000Z | 2020-11-04T17:00:32.000Z | PIC16/assy/debounce.asm | Classrooms/Microcontrollers | 554a2129d45a14306b69af0d72d5b3816b1e21ec | [
"MIT"
] | null | null | null | PIC16/assy/debounce.asm | Classrooms/Microcontrollers | 554a2129d45a14306b69af0d72d5b3816b1e21ec | [
"MIT"
] | null | null | null | ; *******************************************************************
; Lesson 6 - Switch Debounce
;
; This lesson uses a simple software delay routine to avoid the initial noise on the switch
; pin. The code will delay for only 5 ms, but should overcome most of the noise. The
; required delay amount differs with the switch being used. Some switches are worse
; than others.
; This lesson also introduces the #define preprocessing symbol in both ?C? and assem-bly.
; Hard coding pin locations is bad practice. Values that may be changed in the future
; should always be defined once in preprocessing. Imagine if another user wanted to use
; these lessons in a different PIC device and all of the pins changed! This would require
; going into the code and finding every instance of any pin reference.
; When the switch is held down, DS1 will be lit. When the switch is not held down, all
; LEDs are OFF.
;
; PIC: 16F1829
; Assembler: MPASM v5.43
; IDE: MPLABX v1.10
;
; Board: PICkit 3 Low Pin Count Demo Board
; Date: 6.1.2012
;
; *******************************************************************
; * See Low Pin Count Demo Board User's Guide for Lesson Information*
; *******************************************************************
#include <p16F1829.inc>
__CONFIG _CONFIG1, (_FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF);
__CONFIG _CONFIG2, (_WRT_OFF & _PLLEN_OFF & _STVREN_OFF & _LVP_OFF);
;#define DOWN 0 ;when SW1 is pressed, the voltage is pulled down through R3 to ground (GND)
;#define UP 1 ;when SW1 is not pressed, the voltage is pulled up through R1 to Power (Vdd)
#define SWITCH PORTA, 2 ;pin where SW1 is connected..NOTE: always READ from the PORT and WRITE to the LATCH
#define LED LATC, 0 ;DS1
errorlevel -302 ;surpress the 'not in bank0' warning
cblock 0x70 ;shared memory location that is accessible from all banks
Delay1 ;delay loop for debounce
endc
; -------------------LATC-----------------
; Bit#: -7---6---5---4---3---2---1---0---
; LED: ---------------|DS4|DS3|DS2|DS1|-
; -----------------------------------------
ORG 0 ;start of code
Start:
;Setup main init
banksel OSCCON ;bank1
movlw b'00111000' ;set cpu clock speed to 500KHz
movwf OSCCON ;move contents of the working register into OSCCON
;Setup SW1 as digital input
bsf TRISA, RA2 ;switch as input
banksel ANSELA ;bank3
bcf ANSELA, RA2 ;digital
;can reference pins by their position in the PORT (2) or name (RA2)
;Configure the LEDs
banksel TRISC ;bank1
clrf TRISC ;make all of PORTC an output
banksel LATC ;bank2
clrf LATC ;start with all LEDs off
MainLoop:
banksel PORTA ;get into Bank0
btfsc SWITCH ;defined above....notice how the PORT is being read and not the LATCH
bra LedOff ;switch is not pressed - turn OFF the LED
bra Debounce ;switch is held down, pin needs to be debounced
LedOn:
banksel LATC ;get into Bank2
bsf LED ;turn ON the LED
bra MainLoop ;go back to MainLoop
LedOff:
banksel LATC ;get into Bank2
bcf LED ;turn OFF the LED
bra MainLoop ;go back to MainLoop
Debounce:
;delay for approximatly 5ms
movlw d'209' ;(1/(500KHz/4))*209*3 = 5.016mS
movwf Delay1
DebounceLoop:
decfsz Delay1, f ;1 instruction to decrement,unless if branching (ie Delay1 = 0)
bra DebounceLoop ;2 instructions to branch
banksel PORTA ;bank0
btfss SWITCH ;check if switch is still down. If not, skip the next instruction and simply return to MainLoop
bra LedOn ;switch is still down, turn on the LED
bra MainLoop
end ;end code | 49.610526 | 151 | 0.512625 |
e5c67541907179e78ffb8bce888f6c6eef66e575 | 6,410 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_115.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_115.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_115.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c557, %rcx
nop
inc %rsi
movw $0x6162, (%rcx)
dec %rdi
lea addresses_WC_ht+0x18903, %r15
nop
nop
and $29593, %r12
movl $0x61626364, (%r15)
nop
nop
nop
nop
mfence
lea addresses_A_ht+0x17e96, %rsi
nop
nop
add $129, %rbx
vmovups (%rsi), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r15
nop
nop
nop
nop
nop
add $17534, %r12
lea addresses_A_ht+0x13d28, %rdi
nop
nop
xor %rbx, %rbx
movw $0x6162, (%rdi)
nop
nop
nop
nop
and %r14, %r14
lea addresses_A_ht+0x28e7, %rsi
nop
nop
dec %r12
mov (%rsi), %bx
nop
nop
nop
nop
nop
cmp $5780, %r12
lea addresses_UC_ht+0xd387, %r12
clflush (%r12)
nop
nop
nop
cmp %rbx, %rbx
mov (%r12), %cx
cmp %rdi, %rdi
lea addresses_WC_ht+0x59f7, %rcx
nop
nop
and $62795, %rsi
movw $0x6162, (%rcx)
nop
nop
and $11046, %rcx
lea addresses_D_ht+0x3aff, %rdi
nop
sub $4770, %rcx
mov (%rdi), %r14d
nop
nop
nop
cmp $988, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %r9
push %rax
push %rbx
push %rdx
push %rsi
// Store
lea addresses_UC+0x590f, %r12
nop
nop
inc %rdx
movb $0x51, (%r12)
sub %rax, %rax
// Store
lea addresses_PSE+0xf077, %rax
clflush (%rax)
dec %rdx
mov $0x5152535455565758, %r8
movq %r8, (%rax)
nop
sub %rax, %rax
// Store
lea addresses_D+0x7077, %r8
nop
nop
sub $9467, %rsi
mov $0x5152535455565758, %rdx
movq %rdx, (%r8)
nop
nop
nop
nop
inc %r8
// Faulty Load
lea addresses_WT+0x15877, %rax
sub %r12, %r12
mov (%rax), %r8
lea oracles, %r12
and $0xff, %r8
shlq $12, %r8
mov (%r12,%r8,1), %r8
pop %rsi
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 37.705882 | 2,999 | 0.65117 |
9ae739017aecec4f10624b9b8dbabd5cae6c31a0 | 456 | asm | Assembly | oeis/078/A078907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/078/A078907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/078/A078907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A078907: Expansion of modular function j/256 in powers of m=k^2=lambda(t).
; Submitted by Christian Krause
; 1,-1,3,0,3,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70
mul $0,2
mov $1,1
mov $2,1
mov $3,$0
mov $4,1
lpb $3
mul $1,3
sub $3,2
sub $5,$4
div $1,$5
add $1,1
add $2,$1
lpe
mov $0,$2
| 24 | 209 | 0.622807 |
4897b7f0c94c33b071687a18c1541559d8f12b7d | 21,615 | asm | Assembly | kernel.asm | abdalmoez/GOBOOT16 | 1fc518b4f6e7a8423d0c8fa79b0a9c18993d04fa | [
"MIT"
] | null | null | null | kernel.asm | abdalmoez/GOBOOT16 | 1fc518b4f6e7a8423d0c8fa79b0a9c18993d04fa | [
"MIT"
] | null | null | null | kernel.asm | abdalmoez/GOBOOT16 | 1fc518b4f6e7a8423d0c8fa79b0a9c18993d04fa | [
"MIT"
] | null | null | null | [BITS 16]
ORG 0
mov ax,0x0050
mov ds,ax
mov es,ax
mov fs,ax
mov al,'$'
mov ah,0xE
int 0x10
mov si,msg
call Print
jmp $
msg db "Hello world\nThe code page stored in ROM is also called the hardware code page. In Western PCs it typically defaults to code page 437, but various Eastern European PCs used a number of other code pages as hardware code page, sometimes user-selectable via jumpers or CMOS setup. Arabic and Hebrew PCs and printers even supported multiple software-switchable hardware code pages, also named font pages."
db "The original IBM PC contained this font as a 9×14 pixels-per-character font stored in the ROM of the IBM Monochrome Display Adapter (MDA) and an 8×8 pixels-per-character font of the Color Graphics Adapter (CGA) cards. The IBM Enhanced Graphics Adapter (EGA) contained an 8×14 pixels-per-character version, and the VGA contained a 9×16 version.All these display adapters have text modes in which each character cell contains an 8-bit character code point (see details), giving 256 possible values for graphic characters. All 256 codes were assigned a graphical character in ROM, including the codes from 0 to 31 that were reserved in ASCII for non-graphical control characters."
db "\nA legacy of code page 437 and other DOS codepages is the set of number combinations used in Windows Alt keycodes introduced in the first versions of MS-DOS. The user could enter a character by holding down the Alt key and entering the three-digit decimal Alt keycode on the numpad. When Microsoft switched to more standard character sets (such as CP1252 and later Unicode) in Windows, so many users had memorized the numbers used by their DOS codepage that Microsoft had to retain the original codes (they added the ability to type a code in the current character set by typing the numpad 0 before the digits)"
db "\nThe first cluster of the data area is cluster #2. That leaves the first two entries of the FAT unused. In the first byte of the first entry a copy of the media descriptor is stored. The remaining bits of this entry are 1. In the second entry the end-of-file marker is stored. The high order two bits of the second entry are sometimes, in the case of FAT16 and FAT32, used for dirty volume management: high order bit 1: last shutdown was clean; next highest bit 1: during the previous mount no disk I/O errors were detected."
db "The first byte of a name must not be 0x20 (space). Short names or extensions are padded with spaces. Special ASCII characters 0x22 ('), 0x2a (*), 0x2b (+), 0x2c (,), 0x2e (.), 0x2f (/), 0x3a (:), 0x3b (;), 0x3c (<), 0x3d (=), 0x3e (>), 0x3f (?), 0x5b ([), 0x5c (\), 0x5d (]), 0x7c (|) are not allowed. "
db "In Windows 95 a variation was introduced: VFAT. VFAT (Virtual FAT) is FAT together with long filenames (LFN), that can be up to 255 bytes long. The implementation is an ugly hack. These long filenames are stored in special directory entries. A special entry looks like this: "
db "The short name is derived from the long name as follows: The extension is the extension of the long name, truncated to length at most three. The first six bytes of the short name equal the first six nonspace bytes of the long name, but bytes +,;=[], that are not allowed under DOS, are replaced by underscore. Lower case is converted to upper case. The final two (or more, up to seven, if necessary) bytes become ~1, or, if that exists already, ~2, etc., up to ~999999. OK :)"
db "The licenses for most software are designed to take away your"
db "freedom to share and change it. By contrast, the GNU General Public"
db "License is intended to guarantee your freedom to share and change free"
db "software--to make sure the software is free for all its users. This"
db "General Public License applies to most of the Free Software"
db "Foundation's software and to any other program whose authors commit to"
db "using it. (Some other Free Software Foundation software is covered by"
db "the GNU Library General Public License instead.) You can apply it to"
db "your programs, too."
db " When we speak of free software, we are referring to freedom, not"
db "price. Our General Public Licenses are designed to make sure that you"
db "have the freedom to distribute copies of free software (and charge for"
db "this service if you wish), that you receive source code or can get it"
db "if you want it, that you can change the software or use pieces of it"
db "in new free programs; and that you know you can do these things."
db " To protect your rights, we need to make restrictions that forbid"
db "anyone to deny you these rights or to ask you to surrender the rights."
db "These restrictions translate to certain responsibilities for you if you"
db "distribute copies of the software, or if you modify it."
db " For example, if you distribute copies of such a program, whether"
db "gratis or for a fee, you must give the recipients all the rights that"
db "you have. You must make sure that they, too, receive or can get the"
db "source code. And you must show them these terms so they know their"
db "rights."
db " We protect your rights with two steps: (1) copyright the software, and"
db "(2) offer you this license which gives you legal permission to copy,"
db "distribute and/or modify the software."
db "Also, for each author's protection and ours, we want to make certain"
db "that everyone understands that there is no warranty for this free"
db "software. If the software is modified by someone else and passed on, we"
db "want its recipients to know that what they have is not the original, so"
db "that any problems introduced by others will not reflect on the original"
db "authors' reputations."
db " Finally, any free program is threatened constantly by software"
db "patents. We wish to avoid the danger that redistributors of a free"
db "program will individually obtain patent licenses, in effect making the"
db "program proprietary. To prevent this, we have made it clear that any"
db "patent must be licensed for everyone's free use or not licensed at all."
db "AVAST END USER LICENSE AGREEMENT(FREE VERSION)PLEASE READ THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT (“AGREEMENT”) CAREFULLY BEFORE USING THE SOFTWARE (AS DEFINED BELOW). THIS IS A LEGALLY BINDING CONTRACT BETWEEN YOU AND AVAST SOFTWARE a.s., A COMPANY DULY ORGANIZED AND EXISTING UNDER THE LAWS OF THE CZECH REPUBLIC, REGISTERED IN THE COMMERCIAL REGISTER MAINTAINED BY THE MUNICIPAL COURT IN PRAGUE IN SECTION B, INSERT NO. 11402 (“AVAST”). BY ASSENTING ELECTRONICALLY, INSTALLING OR USING THIS SOFTWARE YOU ACCEPT ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. If you do not agree with the terms and conditions of this Agreement, do not continue the installation process and delete or destroy all copies of the Software in your possession. This Agreement accompanies certain software (including any upgrades or updates thereto as provided by AVAST, the “Software”) and related explanatory written materials (the “Documentation”). 1. LicenseAVAST grants to you a non-exclusive perpetual license to use the Software and the Documentation for so long as AVAST makes the Software available, provided that you agree to the terms and conditions of this Agreement. 2. Permitted Use of the SoftwareYou"
db " may install and use the Software on an unlimited number of computers. The Software must be used exclusively by you or members of your household solely for private non-commercial purposes. You may also make one backup copy of the Software.ANY USE OF THE SOFTWARE OTHER THAN AS EXPRESSLY AUTHORIZED BY THIS SECTION OR ANY RESALE OR FURTHER DISTRIBUTION OF THE SOFTWARE CONSTITUTES A MATERIAL BREACH OF THIS AGREEMENT AND MAY VIOLATE APPLICABLE COPYRIGHT LAWS.3."
db " Upgrades and UpdatesUpgrades and updates of the Software shall be provided to you by AVAST as long as and to the extent in which AVAST in its exclusive discretion makes such upgrades and updates available to the users of the free version of the Software.4. Ownership RightsThe Software and Documentation is the intellectual property of AVAST and is protected by applicable copyright laws, international treaty provisions and other applicable laws of the country in which the Software is being used. The structure, organization and code of the Software are valuable trade secrets and confidential information of AVAST. To the extent you provide any comments or suggestions about the Software to AVAST, AVAST shall have the right to retain and use any such comments or suggestions in our current or future products or services, without further compensation to you and without your approval of such retention or use.Except as stated in this Agreement, your possession, installation and use of the Software does not grant you any rights or title to any intellectual property rights in the Software or Documentation. All rights to the Software and Documentation, including all associated copyrights, patents, trade secret rights, trademarks and other intellectual property rights, are reserved by AVAST. 5. RestrictionsYou may not copy or use the Software or the Documentation except as set forth in Section 2 of this Agreement. You may not remove any proprietary notices or labels on the Software;"
db " any copies that you are permitted to make pursuant to this Agreement must contain the same copyright and other proprietary notices that appear on and in the Software. You agree not to modify, adapt, translate, reverse engineer, decompile or disassemble the Software or otherwise attempt to discover the source code of the Software or algorithms contained therein or create any derivative works from the Software. You are not permitted to use the Software in connection with the provision of any commercial services which include"
db " processing or transferring the data of or for other persons or entities (“Data”), including cloud computing and “Software as a Service” solutions, providing storage capacities for Data; transmitting, routing of or providing connection to Data, or providing information search tool services. You may not permit third parties to benefit from the use or functionality of the Software via a timesharing, service bureau or other similar arrangement.6. TransferYou may not rent, lease, sub-license, or lend the Software or the Documentation or any portions thereof. You may, however, transfer all your rights to use the Software and the Documentation to another person provided that (i) the transferee accepts the terms of this Agreement; (ii) you transfer the Software, including all copies, updates and prior versions, and all Documentation to such person; and (iii) you retain no copies of the Software or of the Documentation, including but not limited to copies stored on your computer. Partial transfer of your rights under this Agreement is strictly prohibited. 7. Disclaimers and Exclusion of LiabilityBe aware that the Software may make changes to your computer "
db "that may adversely affect its functionality, such as deleting system or application files identified (correctly or incorrectly) by the Software as infected. You acknowledge and agree to such changes to your computer that may occur as a result of your use of the Software. The Software is not fault-tolerant and as such is not designed for use in hazardous environments requiring fail-safe performance.AVAST AND ITS DISTRIBUTORS DO NOT AND CANNOT WARRANT THE PERFORMANCE OR RESULTS YOU MAY OBTAIN BY USING THE SOFTWARE OR DOCUMENTATION. THE REMEDY IN THIS SECTION STATES THE SOLE AND EXCLUSIVE REMEDIES FOR AVAST'S OR ITS DISTRIBUTORS’ OR AGENTS’ BREACH OF WARRANTY. THE SOFTWARE IS PROVIDED “AS IS” AND AVAST AND ITS DISTRIBUTORS MAKE NO EXPRESS OR IMPLIED WARRANTIES OR CONDITIONS AND, TO THE MAXIMUM EXTENT PERMITTED BY LAW, DISCLAIM ANY AND ALL CONDITIONS AND WARRANTIES IMPLIED BY STATUTE, COMMON LAW OR JURISPRUDENCE, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF NONINFRINGEMENT OF THIRD PARTY RIGHTS, MERCHANTABILITY, SUITABLE QUALITY OR FITNESS FOR ANY PARTICULAR PURPOSE.YOU AGREE AND ACCEPT THAT, TO THE FULL EXTENT PERMITTED BY LAW, IN NO EVENT WILL AVAST OR ITS DISTRIBUTORS OR AGENTS BE LIABLE TO YOU FOR ANY DAMAGES, ESPECIALLY FOR CONSEQUENTIAL, INCIDENTAL OR SPECIAL DAMAGES, INCLUDING ANY LOST PROFITS, LOST SAVINGS OR LOST DATA, EVEN IF AVAST OR ITS DISTRIBUTOR OR AGENT HAS BEEN ADVISED OF THE POSSIBILITY OF "
db "SUCH DAMAGES, OR FOR ANY CLAIM BY ANY THIRD PARTY. TO THE FULL EXTENT PERMITTED BY LAW, YOU AGREE AND ACCEPT THAT IN NO CASE SHALL AVAST’S OR ITS DISTRIBUTORS’ "
db "OR AGENTS LIABILITY FOR ANY DAMAGE EXCEED THE LESSER OF FIVE U.S. DOLLARS ($5.00) OR THE AMOUNT OF THE ONE YEAR"
db " LICENSE FEE FOR AVAST’S COMMERCIAL PRODUCT CLOSEST TO YOUR FREE VERSION OF THE SOFTWARE."
db "THE FOREGOING EXCLUSIONS AND LIMITATIONS OF LIABILITY OF AVAST AND ITS DISTRIBUTORS DO NOT LIMIT POTENTIAL LIABILITY FOR DEATH, PERSONAL INJURY OR FRAUD OVER THE EXTENT PERMITTED BY APPLICABLE LAWS.8. Privacy; Processing of Personal InformationThe Software automatically and from time to time may collect certain information, which may include personally identifiable information, from the computer on which it is installed, including:8.1 URLs of visited websites that the Software identifies as potentially infected, together with the information on the nature of identified threats (e.g. viruses, Trojans, tracking cookies and any other forms of malware) and URLs of several sites visited before the infection was identified to ascertain the source of the infection;8.2 Information and files (including executable files) on your computer identified by the Software as potentially infected, together with the information about the nature of identified threats;8.3 Information about the sender and subject of emails identified by the Software as potentially infected, together with the information on the nature of identified threats;8.4 Information contained in emails reported by you as spam or as incorrectly identified as spam by the Software;8.5 Copies of the files identified by the Software as potentially infected or parts thereof may be automatically sent to AVAST for further examination and analysis;8.6 Certain information"
db " about your computer hardware, software and/or network connection;8.7 Certain information about the installation and operation of the Software and encountered errors or problems;8.8 Statistical information about threats detected by the Software; an8.9 If your version of the Software includes the Website reputation function, which provides information on reputation of web sites as potential sources of malware, and you set the Website reputation function to active,"
db " the Software may send AVAST the URLs of all websites you want to visit and the results of your web searches through search engines."
db " The information collected by the Software is generally not correlated with any other personal information related to you that AVAST may be processing such as information given by you to AVAST or its distributors or agents during the process of ordering and downloading the Software. Unless you have permitted otherwise, the information collected by the Software is used anonymously in aggregation with similar information from other users of the Software for analytical purposes to identify new viruses and threats and for improvement and development of the Software and for statistical purposes.By using the Software you acknowledge and agree that AVAST or its distributors or agents may collect and use the information as described above. You are giving this consent on behalf of all users of all computers where the Software will be used under this license and you accept full responsibility for informing all users and acquiring their fully informed, free and valid consent with processing of their personal information by the Software as described above.Notwithstanding anything to the contrary in the AVAST privacy policy, you consent during the term of this Agreement and for one (1) year thereafter to (i) AVAST sharing information collected by you during your installation or registration of the Software with AVAST’s distributors and other business partners and (ii) use of such information by AVAST, its distributors and other business partners to present you with information that may be relevant to you, including offers of software, services or other products. The collected information may be transferred to third parties or to other countries that may have less protective data protection laws than the country or region in which you are situated (including the European Union). AVAST takes measures to ensure that any collected information will receive an adequate level of protection if and when transferred. Notwithstanding anything to the contrary in"
db " this Agreement or any Documentation or other materials provided to you in connection with the Software, AVAST reserves all rights to cooperate with any legal process or government inquiry (including, but not limited to, court orders and law enforcement requests) related to your use of the Software. In connection with such cooperation, AVAST may provide documents and information relevant to a court subpoena or government or other legal investigation, which may include disclosure of your personally identifiable information. AVAST may also use statistics derived from the collected information to track and publish reports on security risk trends. By using the Software, you acknowledge and agree that AVAST may collect, transmit, store, disclose and analyze such information for any of the foregoing purposes listed in this Section.9. U.S. Government Restricted RightsThis Software and Documentation are deemed to be “commercial computer software” and “commercial computer software documentation”, respectively, and subject to certain restricted rights as identified in FAR Section 52.227-19 Commercial Computer Software - Restricted Rights and DFARS 227.7202, “Rights in Commercial Computer Software or Commercial Computer Software Documentation”, as applicable, or any successor U.S. regulations. Any use, modification, reproduction, release, performance, display or disclosure of the Software by the U.S. Government shall be done solely in accordance with this Agreement. 10. Export RegulationsYou agree and accept that the Software and the Documentation may be subject to import and export laws of any country, including those of the United States (specifically the Export Administration Regulations (EAR)) and the European Union. If you transfer or export the Software, which in all cases must be done in accordance with this Agreement, you agree to and acknowledge that you are exclusively responsible for complying with all applicable laws and regulations, including but not limited to all United States and European Union trade sanctions and export regulations"
db " (including any activities relating to nuclear, chemical or biological materials or weapons, missiles or technology capable of mass destruction), regardless of "
db "the country in which you reside in or of which you are a citizen. 11. Governing Law and JurisdictionThe laws of the State of California, excluding its conflicts of law rules, govern this Agreement and your use of the Software and the Documentation. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. The courts located within the county of Santa Clara, California shall be the exclusive jurisdiction and venue for any dispute or legal matter arising out of or in connection with this Agreement or your use of the Software and the Documentation. Notwithstanding this, you agree that AVAST shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent legal relief) in any jurisdiction.12. GeneralThis Agreement is the entire agreement between you and AVAST relating to the Software and Documentation. This Agreement supersedes all prior or contemporaneous oral or written communications, proposals, and representations with respect to the Software or Documentation. Notwithstanding the foregoing, nothing in this Agreement will diminish any rights you may have under existing consumer protection legislation or other applicable laws in your jurisdiction that may not be waived by contract. This Agreement will immediately terminate upon your breach of any obligation contained herein (especially your obligations in Sections 2, 5, 10) and you shall cease use and destroy all copies of the Software and Documentation in your possession. AVAST reserves the right to any other remedies available under law in the event your breach of this Agreement adversely affects AVAST or its distributors or agents. The limitations of liability and disclaimers of warranty and damages contained herein shall survive termination of this Agreement. This Agreement may be modified by the Documentation. No provision hereof shall be deemed"
db " waived unless such waiver shall be in writing and signed by AVAST. If any provision of this Agreement is held invalid, the remainder of this Agreement shall continue in full force and effect.If you have any questions regarding this Agreement or wish to request any information from AVAST, please write to AVAST Software, Budejovicka 1518/13A, 140 00 Praha 4, Czech Republic, e-mail: support@avast.com, tel.: +420 274 005 777 or visit our support page at www.avast.com/support."
db 0
Print:
pusha
mov ah,0xE
.lp:
lodsb
cmp al,0
je .done
int 0x10
jmp .lp
.done:
popa
ret | 220.561224 | 2,081 | 0.802406 |
f1918d3fa21b68985eb6cd65086a3ab90a81ee80 | 1,789 | asm | Assembly | programs/oeis/244/A244636.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/244/A244636.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/244/A244636.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A244636: a(n) = 30*n^2.
; 0,30,120,270,480,750,1080,1470,1920,2430,3000,3630,4320,5070,5880,6750,7680,8670,9720,10830,12000,13230,14520,15870,17280,18750,20280,21870,23520,25230,27000,28830,30720,32670,34680,36750,38880,41070,43320,45630,48000,50430,52920,55470,58080,60750,63480,66270,69120,72030,75000,78030,81120,84270,87480,90750,94080,97470,100920,104430,108000,111630,115320,119070,122880,126750,130680,134670,138720,142830,147000,151230,155520,159870,164280,168750,173280,177870,182520,187230,192000,196830,201720,206670,211680,216750,221880,227070,232320,237630,243000,248430,253920,259470,265080,270750,276480,282270,288120,294030,300000,306030,312120,318270,324480,330750,337080,343470,349920,356430,363000,369630,376320,383070,389880,396750,403680,410670,417720,424830,432000,439230,446520,453870,461280,468750,476280,483870,491520,499230,507000,514830,522720,530670,538680,546750,554880,563070,571320,579630,588000,596430,604920,613470,622080,630750,639480,648270,657120,666030,675000,684030,693120,702270,711480,720750,730080,739470,748920,758430,768000,777630,787320,797070,806880,816750,826680,836670,846720,856830,867000,877230,887520,897870,908280,918750,929280,939870,950520,961230,972000,982830,993720,1004670,1015680,1026750,1037880,1049070,1060320,1071630,1083000,1094430,1105920,1117470,1129080,1140750,1152480,1164270,1176120,1188030,1200000,1212030,1224120,1236270,1248480,1260750,1273080,1285470,1297920,1310430,1323000,1335630,1348320,1361070,1373880,1386750,1399680,1412670,1425720,1438830,1452000,1465230,1478520,1491870,1505280,1518750,1532280,1545870,1559520,1573230,1587000,1600830,1614720,1628670,1642680,1656750,1670880,1685070,1699320,1713630,1728000,1742430,1756920,1771470,1786080,1800750,1815480,1830270,1845120,1860030
pow $0,2
mul $0,30
mov $1,$0
| 255.571429 | 1,732 | 0.844047 |
e1ee91a0f200a89b5167659053540968d288c691 | 2,107 | asm | Assembly | src/main-logic.asm | jhm-ciberman/calculator-asm | f5305f345d7efdd616b34a485f7460f6789f4d9c | [
"MIT"
] | 2 | 2019-08-03T17:09:30.000Z | 2021-04-01T22:17:09.000Z | src/main-logic.asm | jhm-ciberman/calculator-asm | f5305f345d7efdd616b34a485f7460f6789f4d9c | [
"MIT"
] | null | null | null | src/main-logic.asm | jhm-ciberman/calculator-asm | f5305f345d7efdd616b34a485f7460f6789f4d9c | [
"MIT"
] | 1 | 2019-08-04T21:26:32.000Z | 2019-08-04T21:26:32.000Z | ;-----------------------------------------------
; Arquitectura de Computadores I
;
; Calculadora en Postfijo
;-----------------------------------------------
; + los dos valores al tope de la pila, los retira y luego apila el resultado.
; - resta los valores al tope de la pila
; * multiplica los valores
; / divide los valores (resultado entero)
; % obtiene el resto de la division
; OR realiza el OR logico.
; AND realiza en AND logico.
; XOR realiza el or exclusivo
; NOT realiza el not al tope de la pila
; NEG niega el tope de la pila
;
; . imprime en consola el tope de la pila en decimal consumiendolo
; .h imprime en consola el tope pero en hexadecimal
; .b imprime el tope en binarios
; . imprime la pila completa en la consola primero el tope de la pila y ultimo el primer valor
; .exit Cierra el programa
format PE64 console
entry main
section '.text' code readable executable
include 'win64a.inc'
include 'arraylist/include.asm'
include 'parser/include.asm'
include 'commands/include.asm'
include 'conversion/include.asm'
include 'fakeconsole/include.asm'
main:
sub rsp, 8 ; Make stack dqword aligned
fastcall ParserInit
fastcall ParserParseString, _lg_str_user
invoke exit, 0
xor rax, rax
ret
section '.data' data readable writeable
include 'fakeconsole/data.asm'
include 'parser/data.asm'
include 'conversion/data.asm'
_lg_str_user db "100 101 + + + 102 103 . . . s.",0 ; Receives any string from main-graphic
_gr_message_unknown db 'Unknown command ', 34, 0
_gr_message_type_help db 34, '. ',10,'Type help to see all commands',0
_gr_message_unexpected db 'Error: Unexpected character ', 34, 0
_gr_message_at_input_string db 34, ' at input string.', 0
_gr_message_empty_stack db '[Empty stack]', 0
section '.idata' data import readable
library msvcrt, "MSVCRT.DLL"
import msvcrt,\
printf ,'printf',\
scanf ,'scanf',\
exit ,'exit',\
malloc, 'malloc', \
realloc, 'realloc', \
strcpy, 'strcpy', \
free, 'free', \
strcmp, 'strcmp', \
sprintf, 'sprintf'
| 28.093333 | 109 | 0.663977 |
130ac17d0b612e3c91b6fe026bbbb551cbc16948 | 3,851 | asm | Assembly | src/boss.asm | Gegel85/SpaceShooterGB | 7f1ff08708fd3ad91c911c7c91f8d07e1c7b2366 | [
"MIT"
] | 3 | 2020-02-24T14:31:36.000Z | 2020-03-28T22:38:57.000Z | src/boss.asm | Gegel85/SpaceShooterGB | 7f1ff08708fd3ad91c911c7c91f8d07e1c7b2366 | [
"MIT"
] | 4 | 2020-02-24T16:35:26.000Z | 2020-02-26T16:47:11.000Z | src/boss.asm | Gegel85/SpaceShooterGB | 7f1ff08708fd3ad91c911c7c91f8d07e1c7b2366 | [
"MIT"
] | 1 | 2020-02-24T14:31:39.000Z | 2020-02-24T14:31:39.000Z | spawnBoss:
reg BOSS_STATUS, 1
ld hl, BOSS_STRUCT
ld a, $3C
ld [hli], a
xor a
ld [hli], a
ld a, $20
ld [hli], a
ld hl, bossJingleBass
call playSound2
ld hl, MUSIC_2_START_PTR_H
ld a, bossBass >> 8
ld [hli], a
ld a, bossBass & $FF
ld [hl], a
ld hl, bossJingleMelody
call playSound
ld hl, MUSIC_START_PTR_H
ld a, bossMelody >> 8
ld [hli], a
ld a, bossMelody & $FF
ld [hl], a
; set the random for the bossgoesdown
call random
and %01111111
add $78
ld [$C211], a
ld hl, ASTEROID_NEXT_INC
ld a, 1
xor [hl]
ld [hl], a
ld hl, ASTEROID_MAX_SPEED_Y
scf
jr nz, .incY
inc hl
rl [hl]
jr .end
.incY:
rl [hl]
.end:
ret
bossAttack::
ld a, [BOSS_DEATH_COUNTER]
or a
jr z, .endChangePalette
dec a
ld [BOSS_DEATH_COUNTER], a
bit 0, a
jr z, .normalPalette
reset BGP
jr .endChangePalette
.normalPalette:
reg BGP, %11011000
.endChangePalette:
ld a, [BOSS_STATUS]
or a
ret z
cp $1
jr z, .moveLeft
cp $2
jr z, .moveRight
cp $3
jr z, .timeBeforeGoesDown
cp $4
jr z, .waitToBackUp
cp $5
jr z, .moveDown
cp $6
jr z, .moveBackUp
jp .end
.moveLeft:
ld hl, BOSS_STRUCT + PLAYER_STRUCT_X_OFF
ld a, [$C211]
dec a
ld [$C211], a
ld b, a
xor a
cp b
jp z, .timeBeforeGoesDown
dec [hl]
cp [hl]
jp nz, .end
reg BOSS_STATUS, 2
.moveRight:
ld hl, BOSS_STRUCT + PLAYER_STRUCT_X_OFF
ld a, [$C211]
dec a
ld [$C211], a
ld b, a
xor a
cp b
jp z, .timeBeforeGoesDown
inc [hl]
ld a, $80
cp [hl]
jp nz, .end
reg BOSS_STATUS, 1
.timeBeforeGoesDown:
; time before the spaceships goes down
ld a, $1E
ld [$C210], a
reg BOSS_STATUS, 4
.waitToBackUp:
ld hl, $C210
xor a
dec [hl]
jr nz, .end
reg BOSS_STATUS, 5
.moveDown:
ld hl, BOSS_STRUCT + PLAYER_STRUCT_Y_OFF
inc [hl]
inc [hl]
inc [hl]
inc [hl]
inc [hl]
inc [hl]
inc [hl]
inc [hl]
ld a, $F0
cp [hl]
jp nz, .end
reg BOSS_STATUS, 6
ld a, $EE
ld [BOSS_STRUCT + PLAYER_STRUCT_Y_OFF], a
.moveBackUp:
ld a, [OBP1]
bit 1, a
jr z, .normalPalette2
reset OBP1
jr .endChangePalette2
.normalPalette2:
reg OBP1, ENNEMIES_PALETTE
.endChangePalette2:
ld hl, BOSS_STRUCT + PLAYER_STRUCT_Y_OFF
xor a
dec [hl]
cp [hl]
jp nz, .end
call random
and %01111111
add $78
ld [$C211], a
reg BOSS_STATUS, 1
.end:
call updateBoss
ld a, [BOSS_STATUS]
bit 2, a
ret nz
ld hl, BOSS_NEXT_ATTACK
dec [hl]
jp nz, .ret
ld [hl], $15
ld a, [BOSS_STRUCT + PLAYER_STRUCT_Y_OFF]
ld b, a
ld a, [BOSS_STRUCT + PLAYER_STRUCT_X_OFF]
ld c, a
call createObstacle
.ret:
ret
updateBoss::
ld hl, BOSS_ADDR
ld a, [BOSS_STRUCT + PLAYER_STRUCT_Y_OFF]
ld b, a
add a, $10
ld [hli], a
ld a, [BOSS_STRUCT + PLAYER_STRUCT_X_OFF]
ld c, a
add a, $8
ld [hli], a
ld a, $E
ld [hli], a
ld a, $10
ld [hli], a
ld a, b
add a, $10
ld [hli], a
ld a, c
add a, $10
ld [hli], a
ld a, $10
ld [hli], a
ld a, $10
ld [hli], a
ld a, b
add a, $10
ld [hli], a
ld a, c
add a, $18
ld [hli], a
ld a, $12
ld [hli], a
ld a, $10
ld [hli], a
ld a, b
add a, $10
ld [hli], a
ld a, c
add a, $20
ld [hli], a
ld a, $14
ld [hli], a
ld a, $10
ld [hl], a
ret
checkCollisionSpaceshipBoss::
ld a, [BOSS_STATUS]
or a
ret z
ld a, [PLAYER1_STRUCT + PLAYER_STRUCT_X_OFF]
ld b, a
add a, PLAYER_SIZE_X
ld hl, BOSS_STRUCT + PLAYER_STRUCT_X_OFF
cp [hl]
ret c
ld a, [PLAYER1_STRUCT + PLAYER_STRUCT_Y_OFF]
ld c, a
add a, PLAYER_SIZE_Y
ld hl, BOSS_STRUCT + PLAYER_STRUCT_Y_OFF
cp [hl]
ret c
ld a, [BOSS_STRUCT + PLAYER_STRUCT_X_OFF]
add a, BOSS_SIZE_X
cp b
ret c
ld a, [BOSS_STRUCT + PLAYER_STRUCT_Y_OFF]
add a, BOSS_SIZE_Y
cp c
ret c
ld sp, $E000
jp gameOver
killBoss::
reg OBP1, ENNEMIES_PALETTE
ld hl, gameMelody
call playSound
ld hl, gameBass
call playSound2
ld de, $25
call addScore
ld hl, destruction
call playNoiseSound
reg BOSS_DEATH_COUNTER, $20
reg ASTEROID_SPAWN_IN, $40
reset BOSS_STATUS
ret | 13.902527 | 45 | 0.654375 |
f3d38b1ce5bd08796ff00405e555e6e8ca2c3698 | 719 | asm | Assembly | oeis/090/A090016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/090/A090016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/090/A090016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A090016: Permanent of (0,1)-matrix of size n X (n+d) with d=6 and n-1 zeros not on a line.
; Submitted by Christian Krause
; 7,49,399,3689,38087,433713,5394991,72737161,1056085191,16423175153,272275569167,4792916427369,89267526953479,1753598009244529,36232438035285807,785431570870425353,17822981129678644871,422495471116535637681,10442881986001392267151,268676968130132448157033,7184015929117470105158727,199341969448774341802426289,5732439479077148442676269359,170626268221110340357265189769,5250634154652084624899509888327,166864689231521271540459171092593,5470935909274982804917181222171151
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,$0
mul $3,7
add $3,$1
mov $1,$2
add $3,$2
lpe
mov $0,$3
mul $0,7
| 42.294118 | 471 | 0.817803 |
6d12be5148caa4ac5aa338cca731280b0929d4c6 | 780 | asm | Assembly | oeis/209/A209890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/209/A209890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/209/A209890.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A209890: Number of (n+1) X 2 0..2 arrays with every 2 X 2 subblock having two distinct values, and new values 0..2 introduced in row major order.
; Submitted by Jamie Morken(s4)
; 7,34,164,792,3824,18464,89152,430464,2078464,10035712,48456704,233969664,1129705472,5454700544,26337624064,127169298432,614027689984,2964787953664,14315262574592,69120202113024,333741858750464,1611448243453952,7780760408817664,37568834609086464,181398380071616512,875868858722811904,4229068955177713664,20419751255602102272,98595280843119263744,476060128394885464064,2298621636952018911232,11098727061387617501184,53589394793358545649664,258752487418984652603392,1249367528849372793012224
mov $1,6
mov $3,7
lpb $0
sub $0,1
mov $2,$3
mul $2,4
mul $3,4
add $3,$1
mov $1,$2
lpe
mov $0,$3
| 48.75 | 490 | 0.819231 |
c3985fd8db26f11dcc74d65f417659a08161c6df | 571 | asm | Assembly | programs/oeis/277/A277708.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/277/A277708.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/277/A277708.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A277708: a(n) = Least prime divisor of n with an odd exponent, or 1 if n is a perfect square.
; 1,2,3,1,5,2,7,2,1,2,11,3,13,2,3,1,17,2,19,5,3,2,23,2,1,2,3,7,29,2,31,2,3,2,5,1,37,2,3,2,41,2,43,11,5,2,47,3,1,2,3,13,53,2,5,2,3,2,59,3,61,2,7,1,5,2,67,17,3,2,71,2,73,2,3,19,7,2,79,5,1,2,83,3,5,2,3,2,89,2,7,23,3,2,5,2,97,2,11,1
seq $0,7913 ; Squarefree part of n: a(n) is the smallest positive number m such that n/m is a square.
sub $0,1
seq $0,20639 ; Lpf(n): least prime dividing n (when n > 1); a(1) = 1. Or, smallest prime factor of n, or smallest prime divisor of n.
| 81.571429 | 228 | 0.637478 |
42fdfcee03732a4ffd34fbb640d9fd5084c9ce91 | 1,046 | asm | Assembly | programs/oeis/041/A041067.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/041/A041067.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/041/A041067.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A041067: Denominators of continued fraction convergents to sqrt(40).
; 1,3,37,114,1405,4329,53353,164388,2026009,6242415,76934989,237047382,2921503573,9001558101,110940200785,341822160456,4212806126257,12980240539227,159975692596981,492907318330170,6074863512559021,18717497856007233,230684837784645817,710772011209944684,8759948972303982025,26990618928121890759,332647376109766671133,1024932747257421904158,12631840343198829521029,38920453776853910467245,479677285665445755127969,1477952310773191175851152,18215105014943739865341793,56123267355604410771876531,691694313282196669127860165,2131206207202194418155457026,26266168799708529686993344477,80929712606327783479135490457,997422720075641931436619229961,3073197872833253577788993180340,37875797194074684864904537394041,116700589455057308172502605362463,1438282870654762382934935801743597,4431549201419344456977310010593254,54616873287686895866662655928862645,168282169064480032056965277797181189
add $0,1
seq $0,5668 ; Denominators of continued fraction convergents to sqrt(10).
dif $0,2
| 149.428571 | 881 | 0.916826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.