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
44bc65a97ca1af9357cc074f3bda8ec4d0bb3005
408
asm
Assembly
oeis/309/A309957.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/309/A309957.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/309/A309957.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A309957: Product of digits of (n written in base 6). ; Submitted by Christian Krause ; 0,1,2,3,4,5,0,1,2,3,4,5,0,2,4,6,8,10,0,3,6,9,12,15,0,4,8,12,16,20,0,5,10,15,20,25,0,0,0,0,0,0,0,1,2,3,4,5,0,2,4,6,8,10,0,3,6,9,12,15,0,4,8,12,16,20,0,5,10,15,20,25,0,0,0,0,0,0,0,2,4,6,8,10,0,4,8,12,16,20,0,6,12,18,24,30,0,8,16,24 mov $3,1 lpb $0 mov $2,$0 div $0,6 mod $2,6 mul $2,$3 mov $3,$2 lpe mov $0,$2
29.142857
231
0.580882
54f908eac08c21af3c871737da6256b15d8fc7c0
231
asm
Assembly
SOURCE ASM FILES/FPSHack_TEST_SlowArrowVel.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
14
2017-08-16T17:20:21.000Z
2021-12-07T03:45:12.000Z
SOURCE ASM FILES/FPSHack_TEST_SlowArrowVel.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
1
2018-05-26T12:32:23.000Z
2018-08-10T06:48:38.000Z
SOURCE ASM FILES/FPSHack_TEST_SlowArrowVel.asm
Meowmaritus/Wind-Waker-60FPS-Hack
13696724637a1c60e82ef76759af85e3c78356ef
[ "MIT" ]
6
2017-12-25T01:48:35.000Z
2021-12-07T21:07:30.000Z
#To be inserted at 800d5b60 ############################# ##FPSHack_TEST_SlowArrowVel## ############################# lis r17, 0x817F lfs f17, 0x0004 (r17) #Load FloatSlowdown lfs f1, -0x65C4 (rtoc) #Vanilla fmuls f1, f1, f17
23.1
41
0.541126
d2feaa26d16feba83c2a96beb15860b025363526
1,831
asm
Assembly
programs/oeis/135/A135092.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/135/A135092.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/135/A135092.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A135092: Binomial transform of [1, 6, 1, 6, 1, 6, ...]. ; 1,7,14,28,56,112,224,448,896,1792,3584,7168,14336,28672,57344,114688,229376,458752,917504,1835008,3670016,7340032,14680064,29360128,58720256,117440512,234881024,469762048,939524096,1879048192,3758096384,7516192768,15032385536,30064771072,60129542144,120259084288,240518168576,481036337152,962072674304,1924145348608,3848290697216,7696581394432,15393162788864,30786325577728,61572651155456,123145302310912,246290604621824,492581209243648,985162418487296,1970324836974592,3940649673949184,7881299347898368,15762598695796736,31525197391593472,63050394783186944,126100789566373888,252201579132747776,504403158265495552,1008806316530991104,2017612633061982208,4035225266123964416,8070450532247928832,16140901064495857664,32281802128991715328,64563604257983430656,129127208515966861312,258254417031933722624,516508834063867445248,1033017668127734890496,2066035336255469780992,4132070672510939561984,8264141345021879123968,16528282690043758247936,33056565380087516495872,66113130760175032991744,132226261520350065983488,264452523040700131966976,528905046081400263933952,1057810092162800527867904,2115620184325601055735808,4231240368651202111471616,8462480737302404222943232,16924961474604808445886464,33849922949209616891772928,67699845898419233783545856,135399691796838467567091712,270799383593676935134183424,541598767187353870268366848,1083197534374707740536733696,2166395068749415481073467392,4332790137498830962146934784,8665580274997661924293869568,17331160549995323848587739136,34662321099990647697175478272,69324642199981295394350956544,138649284399962590788701913088,277298568799925181577403826176,554597137599850363154807652352,1109194275199700726309615304704,2218388550399401452619230609408 sub $0,1 mov $1,7 mov $2,2 pow $2,$0 mul $1,$2 trn $1,1 add $1,1 mov $0,$1
152.583333
1,696
0.910431
86063d5aab3b7c4dd74e9bccd04f195de19c28dc
477
asm
Assembly
programs/oeis/169/A169736.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/169/A169736.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/169/A169736.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A169736: First differences of A169735. ; 1,18,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,1 mov $2,$0 mov $3,$0 mov $0,4 lpb $2,1 add $0,5 add $4,$2 mov $5,1 add $5,$1 trn $1,2 trn $4,10 lpb $4,1 trn $4,$3 trn $5,$0 lpe lpb $5,1 add $1,$0 trn $5,$3 lpe mov $2,$5 lpe
19.08
212
0.498952
f6de95b15ff2a2007a2a3d0c810d71152ef93115
67,823
asm
Assembly
final part - Copy/Debug/List/final.asm
sadrasabouri/CrowdControl
ae629413fa98bd4db752bff372a3154e69a172df
[ "MIT" ]
null
null
null
final part - Copy/Debug/List/final.asm
sadrasabouri/CrowdControl
ae629413fa98bd4db752bff372a3154e69a172df
[ "MIT" ]
null
null
null
final part - Copy/Debug/List/final.asm
sadrasabouri/CrowdControl
ae629413fa98bd4db752bff372a3154e69a172df
[ "MIT" ]
null
null
null
;CodeVisionAVR C Compiler V3.12 Advanced ;(C) Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l. ;http://www.hpinfotech.com ;Build configuration : Debug ;Chip type : ATmega32 ;Program type : Application ;Clock frequency : 8/000000 MHz ;Memory model : Small ;Optimize for : Size ;(s)printf features : int, width ;(s)scanf features : int, width ;External RAM size : 0 ;Data Stack size : 512 byte(s) ;Heap size : 0 byte(s) ;Promote 'char' to 'int': Yes ;'char' is unsigned : Yes ;8 bit enums : Yes ;Global 'const' stored in FLASH: No ;Enhanced function parameter passing: Yes ;Enhanced core instructions: On ;Automatic register allocation for global variables: On ;Smart register allocation: On #define _MODEL_SMALL_ #pragma AVRPART ADMIN PART_NAME ATmega32 #pragma AVRPART MEMORY PROG_FLASH 32768 #pragma AVRPART MEMORY EEPROM 1024 #pragma AVRPART MEMORY INT_SRAM SIZE 2048 #pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60 #define CALL_SUPPORTED 1 .LISTMAC .EQU UDRE=0x5 .EQU RXC=0x7 .EQU USR=0xB .EQU UDR=0xC .EQU SPSR=0xE .EQU SPDR=0xF .EQU EERE=0x0 .EQU EEWE=0x1 .EQU EEMWE=0x2 .EQU EECR=0x1C .EQU EEDR=0x1D .EQU EEARL=0x1E .EQU EEARH=0x1F .EQU WDTCR=0x21 .EQU MCUCR=0x35 .EQU GICR=0x3B .EQU SPL=0x3D .EQU SPH=0x3E .EQU SREG=0x3F .DEF R0X0=R0 .DEF R0X1=R1 .DEF R0X2=R2 .DEF R0X3=R3 .DEF R0X4=R4 .DEF R0X5=R5 .DEF R0X6=R6 .DEF R0X7=R7 .DEF R0X8=R8 .DEF R0X9=R9 .DEF R0XA=R10 .DEF R0XB=R11 .DEF R0XC=R12 .DEF R0XD=R13 .DEF R0XE=R14 .DEF R0XF=R15 .DEF R0X10=R16 .DEF R0X11=R17 .DEF R0X12=R18 .DEF R0X13=R19 .DEF R0X14=R20 .DEF R0X15=R21 .DEF R0X16=R22 .DEF R0X17=R23 .DEF R0X18=R24 .DEF R0X19=R25 .DEF R0X1A=R26 .DEF R0X1B=R27 .DEF R0X1C=R28 .DEF R0X1D=R29 .DEF R0X1E=R30 .DEF R0X1F=R31 .EQU __SRAM_START=0x0060 .EQU __SRAM_END=0x085F .EQU __DSTACK_SIZE=0x0200 .EQU __HEAP_SIZE=0x0000 .EQU __CLEAR_SRAM_SIZE=__SRAM_END-__SRAM_START+1 .MACRO __CPD1N CPI R30,LOW(@0) LDI R26,HIGH(@0) CPC R31,R26 LDI R26,BYTE3(@0) CPC R22,R26 LDI R26,BYTE4(@0) CPC R23,R26 .ENDM .MACRO __CPD2N CPI R26,LOW(@0) LDI R30,HIGH(@0) CPC R27,R30 LDI R30,BYTE3(@0) CPC R24,R30 LDI R30,BYTE4(@0) CPC R25,R30 .ENDM .MACRO __CPWRR CP R@0,R@2 CPC R@1,R@3 .ENDM .MACRO __CPWRN CPI R@0,LOW(@2) LDI R30,HIGH(@2) CPC R@1,R30 .ENDM .MACRO __ADDB1MN SUBI R30,LOW(-@0-(@1)) .ENDM .MACRO __ADDB2MN SUBI R26,LOW(-@0-(@1)) .ENDM .MACRO __ADDW1MN SUBI R30,LOW(-@0-(@1)) SBCI R31,HIGH(-@0-(@1)) .ENDM .MACRO __ADDW2MN SUBI R26,LOW(-@0-(@1)) SBCI R27,HIGH(-@0-(@1)) .ENDM .MACRO __ADDW1FN SUBI R30,LOW(-2*@0-(@1)) SBCI R31,HIGH(-2*@0-(@1)) .ENDM .MACRO __ADDD1FN SUBI R30,LOW(-2*@0-(@1)) SBCI R31,HIGH(-2*@0-(@1)) SBCI R22,BYTE3(-2*@0-(@1)) .ENDM .MACRO __ADDD1N SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) SBCI R22,BYTE3(-@0) SBCI R23,BYTE4(-@0) .ENDM .MACRO __ADDD2N SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) SBCI R24,BYTE3(-@0) SBCI R25,BYTE4(-@0) .ENDM .MACRO __SUBD1N SUBI R30,LOW(@0) SBCI R31,HIGH(@0) SBCI R22,BYTE3(@0) SBCI R23,BYTE4(@0) .ENDM .MACRO __SUBD2N SUBI R26,LOW(@0) SBCI R27,HIGH(@0) SBCI R24,BYTE3(@0) SBCI R25,BYTE4(@0) .ENDM .MACRO __ANDBMNN LDS R30,@0+(@1) ANDI R30,LOW(@2) STS @0+(@1),R30 .ENDM .MACRO __ANDWMNN LDS R30,@0+(@1) ANDI R30,LOW(@2) STS @0+(@1),R30 LDS R30,@0+(@1)+1 ANDI R30,HIGH(@2) STS @0+(@1)+1,R30 .ENDM .MACRO __ANDD1N ANDI R30,LOW(@0) ANDI R31,HIGH(@0) ANDI R22,BYTE3(@0) ANDI R23,BYTE4(@0) .ENDM .MACRO __ANDD2N ANDI R26,LOW(@0) ANDI R27,HIGH(@0) ANDI R24,BYTE3(@0) ANDI R25,BYTE4(@0) .ENDM .MACRO __ORBMNN LDS R30,@0+(@1) ORI R30,LOW(@2) STS @0+(@1),R30 .ENDM .MACRO __ORWMNN LDS R30,@0+(@1) ORI R30,LOW(@2) STS @0+(@1),R30 LDS R30,@0+(@1)+1 ORI R30,HIGH(@2) STS @0+(@1)+1,R30 .ENDM .MACRO __ORD1N ORI R30,LOW(@0) ORI R31,HIGH(@0) ORI R22,BYTE3(@0) ORI R23,BYTE4(@0) .ENDM .MACRO __ORD2N ORI R26,LOW(@0) ORI R27,HIGH(@0) ORI R24,BYTE3(@0) ORI R25,BYTE4(@0) .ENDM .MACRO __DELAY_USB LDI R24,LOW(@0) __DELAY_USB_LOOP: DEC R24 BRNE __DELAY_USB_LOOP .ENDM .MACRO __DELAY_USW LDI R24,LOW(@0) LDI R25,HIGH(@0) __DELAY_USW_LOOP: SBIW R24,1 BRNE __DELAY_USW_LOOP .ENDM .MACRO __GETD1S LDD R30,Y+@0 LDD R31,Y+@0+1 LDD R22,Y+@0+2 LDD R23,Y+@0+3 .ENDM .MACRO __GETD2S LDD R26,Y+@0 LDD R27,Y+@0+1 LDD R24,Y+@0+2 LDD R25,Y+@0+3 .ENDM .MACRO __PUTD1S STD Y+@0,R30 STD Y+@0+1,R31 STD Y+@0+2,R22 STD Y+@0+3,R23 .ENDM .MACRO __PUTD2S STD Y+@0,R26 STD Y+@0+1,R27 STD Y+@0+2,R24 STD Y+@0+3,R25 .ENDM .MACRO __PUTDZ2 STD Z+@0,R26 STD Z+@0+1,R27 STD Z+@0+2,R24 STD Z+@0+3,R25 .ENDM .MACRO __CLRD1S STD Y+@0,R30 STD Y+@0+1,R30 STD Y+@0+2,R30 STD Y+@0+3,R30 .ENDM .MACRO __POINTB1MN LDI R30,LOW(@0+(@1)) .ENDM .MACRO __POINTW1MN LDI R30,LOW(@0+(@1)) LDI R31,HIGH(@0+(@1)) .ENDM .MACRO __POINTD1M LDI R30,LOW(@0) LDI R31,HIGH(@0) LDI R22,BYTE3(@0) LDI R23,BYTE4(@0) .ENDM .MACRO __POINTW1FN LDI R30,LOW(2*@0+(@1)) LDI R31,HIGH(2*@0+(@1)) .ENDM .MACRO __POINTD1FN LDI R30,LOW(2*@0+(@1)) LDI R31,HIGH(2*@0+(@1)) LDI R22,BYTE3(2*@0+(@1)) LDI R23,BYTE4(2*@0+(@1)) .ENDM .MACRO __POINTB2MN LDI R26,LOW(@0+(@1)) .ENDM .MACRO __POINTW2MN LDI R26,LOW(@0+(@1)) LDI R27,HIGH(@0+(@1)) .ENDM .MACRO __POINTW2FN LDI R26,LOW(2*@0+(@1)) LDI R27,HIGH(2*@0+(@1)) .ENDM .MACRO __POINTD2FN LDI R26,LOW(2*@0+(@1)) LDI R27,HIGH(2*@0+(@1)) LDI R24,BYTE3(2*@0+(@1)) LDI R25,BYTE4(2*@0+(@1)) .ENDM .MACRO __POINTBRM LDI R@0,LOW(@1) .ENDM .MACRO __POINTWRM LDI R@0,LOW(@2) LDI R@1,HIGH(@2) .ENDM .MACRO __POINTBRMN LDI R@0,LOW(@1+(@2)) .ENDM .MACRO __POINTWRMN LDI R@0,LOW(@2+(@3)) LDI R@1,HIGH(@2+(@3)) .ENDM .MACRO __POINTWRFN LDI R@0,LOW(@2*2+(@3)) LDI R@1,HIGH(@2*2+(@3)) .ENDM .MACRO __GETD1N LDI R30,LOW(@0) LDI R31,HIGH(@0) LDI R22,BYTE3(@0) LDI R23,BYTE4(@0) .ENDM .MACRO __GETD2N LDI R26,LOW(@0) LDI R27,HIGH(@0) LDI R24,BYTE3(@0) LDI R25,BYTE4(@0) .ENDM .MACRO __GETB1MN LDS R30,@0+(@1) .ENDM .MACRO __GETB1HMN LDS R31,@0+(@1) .ENDM .MACRO __GETW1MN LDS R30,@0+(@1) LDS R31,@0+(@1)+1 .ENDM .MACRO __GETD1MN LDS R30,@0+(@1) LDS R31,@0+(@1)+1 LDS R22,@0+(@1)+2 LDS R23,@0+(@1)+3 .ENDM .MACRO __GETBRMN LDS R@0,@1+(@2) .ENDM .MACRO __GETWRMN LDS R@0,@2+(@3) LDS R@1,@2+(@3)+1 .ENDM .MACRO __GETWRZ LDD R@0,Z+@2 LDD R@1,Z+@2+1 .ENDM .MACRO __GETD2Z LDD R26,Z+@0 LDD R27,Z+@0+1 LDD R24,Z+@0+2 LDD R25,Z+@0+3 .ENDM .MACRO __GETB2MN LDS R26,@0+(@1) .ENDM .MACRO __GETW2MN LDS R26,@0+(@1) LDS R27,@0+(@1)+1 .ENDM .MACRO __GETD2MN LDS R26,@0+(@1) LDS R27,@0+(@1)+1 LDS R24,@0+(@1)+2 LDS R25,@0+(@1)+3 .ENDM .MACRO __PUTB1MN STS @0+(@1),R30 .ENDM .MACRO __PUTW1MN STS @0+(@1),R30 STS @0+(@1)+1,R31 .ENDM .MACRO __PUTD1MN STS @0+(@1),R30 STS @0+(@1)+1,R31 STS @0+(@1)+2,R22 STS @0+(@1)+3,R23 .ENDM .MACRO __PUTB1EN LDI R26,LOW(@0+(@1)) LDI R27,HIGH(@0+(@1)) CALL __EEPROMWRB .ENDM .MACRO __PUTW1EN LDI R26,LOW(@0+(@1)) LDI R27,HIGH(@0+(@1)) CALL __EEPROMWRW .ENDM .MACRO __PUTD1EN LDI R26,LOW(@0+(@1)) LDI R27,HIGH(@0+(@1)) CALL __EEPROMWRD .ENDM .MACRO __PUTBR0MN STS @0+(@1),R0 .ENDM .MACRO __PUTBMRN STS @0+(@1),R@2 .ENDM .MACRO __PUTWMRN STS @0+(@1),R@2 STS @0+(@1)+1,R@3 .ENDM .MACRO __PUTBZR STD Z+@1,R@0 .ENDM .MACRO __PUTWZR STD Z+@2,R@0 STD Z+@2+1,R@1 .ENDM .MACRO __GETW1R MOV R30,R@0 MOV R31,R@1 .ENDM .MACRO __GETW2R MOV R26,R@0 MOV R27,R@1 .ENDM .MACRO __GETWRN LDI R@0,LOW(@2) LDI R@1,HIGH(@2) .ENDM .MACRO __PUTW1R MOV R@0,R30 MOV R@1,R31 .ENDM .MACRO __PUTW2R MOV R@0,R26 MOV R@1,R27 .ENDM .MACRO __ADDWRN SUBI R@0,LOW(-@2) SBCI R@1,HIGH(-@2) .ENDM .MACRO __ADDWRR ADD R@0,R@2 ADC R@1,R@3 .ENDM .MACRO __SUBWRN SUBI R@0,LOW(@2) SBCI R@1,HIGH(@2) .ENDM .MACRO __SUBWRR SUB R@0,R@2 SBC R@1,R@3 .ENDM .MACRO __ANDWRN ANDI R@0,LOW(@2) ANDI R@1,HIGH(@2) .ENDM .MACRO __ANDWRR AND R@0,R@2 AND R@1,R@3 .ENDM .MACRO __ORWRN ORI R@0,LOW(@2) ORI R@1,HIGH(@2) .ENDM .MACRO __ORWRR OR R@0,R@2 OR R@1,R@3 .ENDM .MACRO __EORWRR EOR R@0,R@2 EOR R@1,R@3 .ENDM .MACRO __GETWRS LDD R@0,Y+@2 LDD R@1,Y+@2+1 .ENDM .MACRO __PUTBSR STD Y+@1,R@0 .ENDM .MACRO __PUTWSR STD Y+@2,R@0 STD Y+@2+1,R@1 .ENDM .MACRO __MOVEWRR MOV R@0,R@2 MOV R@1,R@3 .ENDM .MACRO __INWR IN R@0,@2 IN R@1,@2+1 .ENDM .MACRO __OUTWR OUT @2+1,R@1 OUT @2,R@0 .ENDM .MACRO __CALL1MN LDS R30,@0+(@1) LDS R31,@0+(@1)+1 ICALL .ENDM .MACRO __CALL1FN LDI R30,LOW(2*@0+(@1)) LDI R31,HIGH(2*@0+(@1)) CALL __GETW1PF ICALL .ENDM .MACRO __CALL2EN PUSH R26 PUSH R27 LDI R26,LOW(@0+(@1)) LDI R27,HIGH(@0+(@1)) CALL __EEPROMRDW POP R27 POP R26 ICALL .ENDM .MACRO __CALL2EX SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) CALL __EEPROMRDD ICALL .ENDM .MACRO __GETW1STACK IN R30,SPL IN R31,SPH ADIW R30,@0+1 LD R0,Z+ LD R31,Z MOV R30,R0 .ENDM .MACRO __GETD1STACK IN R30,SPL IN R31,SPH ADIW R30,@0+1 LD R0,Z+ LD R1,Z+ LD R22,Z MOVW R30,R0 .ENDM .MACRO __NBST BST R@0,@1 IN R30,SREG LDI R31,0x40 EOR R30,R31 OUT SREG,R30 .ENDM .MACRO __PUTB1SN LDD R26,Y+@0 LDD R27,Y+@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X,R30 .ENDM .MACRO __PUTW1SN LDD R26,Y+@0 LDD R27,Y+@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1SN LDD R26,Y+@0 LDD R27,Y+@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) CALL __PUTDP1 .ENDM .MACRO __PUTB1SNS LDD R26,Y+@0 LDD R27,Y+@0+1 ADIW R26,@1 ST X,R30 .ENDM .MACRO __PUTW1SNS LDD R26,Y+@0 LDD R27,Y+@0+1 ADIW R26,@1 ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1SNS LDD R26,Y+@0 LDD R27,Y+@0+1 ADIW R26,@1 CALL __PUTDP1 .ENDM .MACRO __PUTB1PMN LDS R26,@0 LDS R27,@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X,R30 .ENDM .MACRO __PUTW1PMN LDS R26,@0 LDS R27,@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1PMN LDS R26,@0 LDS R27,@0+1 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) CALL __PUTDP1 .ENDM .MACRO __PUTB1PMNS LDS R26,@0 LDS R27,@0+1 ADIW R26,@1 ST X,R30 .ENDM .MACRO __PUTW1PMNS LDS R26,@0 LDS R27,@0+1 ADIW R26,@1 ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1PMNS LDS R26,@0 LDS R27,@0+1 ADIW R26,@1 CALL __PUTDP1 .ENDM .MACRO __PUTB1RN MOVW R26,R@0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X,R30 .ENDM .MACRO __PUTW1RN MOVW R26,R@0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1RN MOVW R26,R@0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) CALL __PUTDP1 .ENDM .MACRO __PUTB1RNS MOVW R26,R@0 ADIW R26,@1 ST X,R30 .ENDM .MACRO __PUTW1RNS MOVW R26,R@0 ADIW R26,@1 ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1RNS MOVW R26,R@0 ADIW R26,@1 CALL __PUTDP1 .ENDM .MACRO __PUTB1RON MOV R26,R@0 MOV R27,R@1 SUBI R26,LOW(-@2) SBCI R27,HIGH(-@2) ST X,R30 .ENDM .MACRO __PUTW1RON MOV R26,R@0 MOV R27,R@1 SUBI R26,LOW(-@2) SBCI R27,HIGH(-@2) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1RON MOV R26,R@0 MOV R27,R@1 SUBI R26,LOW(-@2) SBCI R27,HIGH(-@2) CALL __PUTDP1 .ENDM .MACRO __PUTB1RONS MOV R26,R@0 MOV R27,R@1 ADIW R26,@2 ST X,R30 .ENDM .MACRO __PUTW1RONS MOV R26,R@0 MOV R27,R@1 ADIW R26,@2 ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1RONS MOV R26,R@0 MOV R27,R@1 ADIW R26,@2 CALL __PUTDP1 .ENDM .MACRO __GETB1SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) LD R30,Z .ENDM .MACRO __GETB1HSX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) LD R31,Z .ENDM .MACRO __GETW1SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) LD R0,Z+ LD R31,Z MOV R30,R0 .ENDM .MACRO __GETD1SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) LD R0,Z+ LD R1,Z+ LD R22,Z+ LD R23,Z MOVW R30,R0 .ENDM .MACRO __GETB2SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R26,X .ENDM .MACRO __GETW2SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R0,X+ LD R27,X MOV R26,R0 .ENDM .MACRO __GETD2SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R0,X+ LD R1,X+ LD R24,X+ LD R25,X MOVW R26,R0 .ENDM .MACRO __GETBRSX MOVW R30,R28 SUBI R30,LOW(-@1) SBCI R31,HIGH(-@1) LD R@0,Z .ENDM .MACRO __GETWRSX MOVW R30,R28 SUBI R30,LOW(-@2) SBCI R31,HIGH(-@2) LD R@0,Z+ LD R@1,Z .ENDM .MACRO __GETBRSX2 MOVW R26,R28 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) LD R@0,X .ENDM .MACRO __GETWRSX2 MOVW R26,R28 SUBI R26,LOW(-@2) SBCI R27,HIGH(-@2) LD R@0,X+ LD R@1,X .ENDM .MACRO __LSLW8SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) LD R31,Z CLR R30 .ENDM .MACRO __PUTB1SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) ST X,R30 .ENDM .MACRO __PUTW1SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) ST X+,R30 ST X+,R31 ST X+,R22 ST X,R23 .ENDM .MACRO __CLRW1SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) ST X+,R30 ST X,R30 .ENDM .MACRO __CLRD1SX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) ST X+,R30 ST X+,R30 ST X+,R30 ST X,R30 .ENDM .MACRO __PUTB2SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) ST Z,R26 .ENDM .MACRO __PUTW2SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) ST Z+,R26 ST Z,R27 .ENDM .MACRO __PUTD2SX MOVW R30,R28 SUBI R30,LOW(-@0) SBCI R31,HIGH(-@0) ST Z+,R26 ST Z+,R27 ST Z+,R24 ST Z,R25 .ENDM .MACRO __PUTBSRX MOVW R30,R28 SUBI R30,LOW(-@1) SBCI R31,HIGH(-@1) ST Z,R@0 .ENDM .MACRO __PUTWSRX MOVW R30,R28 SUBI R30,LOW(-@2) SBCI R31,HIGH(-@2) ST Z+,R@0 ST Z,R@1 .ENDM .MACRO __PUTB1SNX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R0,X+ LD R27,X MOV R26,R0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X,R30 .ENDM .MACRO __PUTW1SNX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R0,X+ LD R27,X MOV R26,R0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X+,R30 ST X,R31 .ENDM .MACRO __PUTD1SNX MOVW R26,R28 SUBI R26,LOW(-@0) SBCI R27,HIGH(-@0) LD R0,X+ LD R27,X MOV R26,R0 SUBI R26,LOW(-@1) SBCI R27,HIGH(-@1) ST X+,R30 ST X+,R31 ST X+,R22 ST X,R23 .ENDM .MACRO __MULBRR MULS R@0,R@1 MOVW R30,R0 .ENDM .MACRO __MULBRRU MUL R@0,R@1 MOVW R30,R0 .ENDM .MACRO __MULBRR0 MULS R@0,R@1 .ENDM .MACRO __MULBRRU0 MUL R@0,R@1 .ENDM .MACRO __MULBNWRU LDI R26,@2 MUL R26,R@0 MOVW R30,R0 MUL R26,R@1 ADD R31,R0 .ENDM ;NAME DEFINITIONS FOR GLOBAL VARIABLES ALLOCATED TO REGISTERS .DEF _second=R4 .DEF _second_msb=R5 .DEF _minute=R6 .DEF _minute_msb=R7 .DEF _hour=R8 .DEF _hour_msb=R9 .DEF _totalcount1_5=R10 .DEF _totalcount1_5_msb=R11 .DEF _nobat1_5=R12 .DEF _nobat1_5_msb=R13 .CSEG .ORG 0x00 ;START OF CODE MARKER __START_OF_CODE: ;INTERRUPT VECTORS JMP __RESET JMP _ext_int0_isr JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP _timer1_ovf_isr JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 JMP 0x00 _tbl10_G100: .DB 0x10,0x27,0xE8,0x3,0x64,0x0,0xA,0x0 .DB 0x1,0x0 _tbl16_G100: .DB 0x0,0x10,0x0,0x1,0x10,0x0,0x1,0x0 ;GLOBAL REGISTER VARIABLES INITIALIZATION __REG_VARS: .DB 0x1E,0x0,0x7,0x0 _0x0: .DB 0x43,0x6C,0x6F,0x63,0x6B,0x3A,0x20,0x25 .DB 0x64,0x3A,0x25,0x64,0x3A,0x25,0x64,0x0 .DB 0x67,0x6F,0x20,0x74,0x6F,0x20,0x62,0x61 .DB 0x64,0x6A,0x65,0x20,0x3A,0x20,0x0,0x20 .DB 0x6E,0x61,0x66,0x61,0x72,0x20,0x6A,0x6F .DB 0x6C,0x6F,0x79,0x65,0x20,0x73,0x68,0x6F .DB 0x6D,0x61,0x20,0x68,0x61,0x73,0x74,0x61 .DB 0x6E,0x64,0x0 _0x2040060: .DB 0x1 _0x2040000: .DB 0x2D,0x4E,0x41,0x4E,0x0,0x49,0x4E,0x46 .DB 0x0 _0x2060003: .DB 0x80,0xC0 __GLOBAL_INI_TBL: .DW 0x04 .DW 0x06 .DW __REG_VARS*2 .DW 0x01 .DW __seed_G102 .DW _0x2040060*2 .DW 0x02 .DW __base_y_G103 .DW _0x2060003*2 _0xFFFFFFFF: .DW 0 #define __GLOBAL_INI_TBL_PRESENT 1 __RESET: CLI CLR R30 OUT EECR,R30 ;INTERRUPT VECTORS ARE PLACED ;AT THE START OF FLASH LDI R31,1 OUT GICR,R31 OUT GICR,R30 OUT MCUCR,R30 ;CLEAR R2-R14 LDI R24,(14-2)+1 LDI R26,2 CLR R27 __CLEAR_REG: ST X+,R30 DEC R24 BRNE __CLEAR_REG ;CLEAR SRAM LDI R24,LOW(__CLEAR_SRAM_SIZE) LDI R25,HIGH(__CLEAR_SRAM_SIZE) LDI R26,__SRAM_START __CLEAR_SRAM: ST X+,R30 SBIW R24,1 BRNE __CLEAR_SRAM ;GLOBAL VARIABLES INITIALIZATION LDI R30,LOW(__GLOBAL_INI_TBL*2) LDI R31,HIGH(__GLOBAL_INI_TBL*2) __GLOBAL_INI_NEXT: LPM R24,Z+ LPM R25,Z+ SBIW R24,0 BREQ __GLOBAL_INI_END LPM R26,Z+ LPM R27,Z+ LPM R0,Z+ LPM R1,Z+ MOVW R22,R30 MOVW R30,R0 __GLOBAL_INI_LOOP: LPM R0,Z+ ST X+,R0 SBIW R24,1 BRNE __GLOBAL_INI_LOOP MOVW R30,R22 RJMP __GLOBAL_INI_NEXT __GLOBAL_INI_END: ;HARDWARE STACK POINTER INITIALIZATION LDI R30,LOW(__SRAM_END-__HEAP_SIZE) OUT SPL,R30 LDI R30,HIGH(__SRAM_END-__HEAP_SIZE) OUT SPH,R30 ;DATA STACK POINTER INITIALIZATION LDI R28,LOW(__SRAM_START+__DSTACK_SIZE) LDI R29,HIGH(__SRAM_START+__DSTACK_SIZE) JMP _main .ESEG .ORG 0 .DSEG .ORG 0x260 .CSEG ;#include <io.h> #ifndef __SLEEP_DEFINED__ #define __SLEEP_DEFINED__ .EQU __se_bit=0x80 .EQU __sm_mask=0x70 .EQU __sm_powerdown=0x20 .EQU __sm_powersave=0x30 .EQU __sm_standby=0x60 .EQU __sm_ext_standby=0x70 .EQU __sm_adc_noise_red=0x10 .SET power_ctrl_reg=mcucr #endif ;#include <delay.h> ;#include <stdio.h> ;#include <string.h> ;#include <stdlib.h> ;#include <alcd.h> ;#include <mega32.h> ;int second ; ;int minute = 30 ; ;int hour = 7 ; ;int totalcount1_5, nobat1_5 ; ;int totalcount6, nobat6 ; ;int totalcount7, nobat7; ;int TotalCount ; ;int badje1, badje2, badje3, badje4, badje5, badje6, badje7; ;int namayesh = 0; ;void LCD_namayesh_go_to_badje (int a, int b); ;char GetKey(); ;int d1,d2,d3 ,d4,d5,d6 ,d7; ;int entezar; ;void LCD_namayesh_go_to_badje (int a, int b); ;void LCD_namayesh_entezar (int a); ;char str2[10]; ;char str3[17]; ;int reset = 0 ; ;int saat_yekonim; ;char str1[10]; ;int namayesh; ;char lcd_buffer[17]; ;//================================================================================================= ;// timer interrupt ;interrupt [TIM1_OVF] void timer1_ovf_isr(void) ; 0000 0021 { .CSEG _timer1_ovf_isr: ; .FSTART _timer1_ovf_isr ST -Y,R30 ST -Y,R31 IN R30,SREG ST -Y,R30 ; 0000 0022 // Reinitialize Timer1 value ; 0000 0023 TCNT1H=0x85EE >> 8; LDI R30,LOW(133) OUT 0x2D,R30 ; 0000 0024 TCNT1L=0x85EE & 0xff; LDI R30,LOW(238) OUT 0x2C,R30 ; 0000 0025 // Place your code here ; 0000 0026 if(second==59){ LDI R30,LOW(59) LDI R31,HIGH(59) CP R30,R4 CPC R31,R5 BRNE _0x3 ; 0000 0027 second=0; CLR R4 CLR R5 ; 0000 0028 if(minute==59){ CP R30,R6 CPC R31,R7 BRNE _0x4 ; 0000 0029 minute=0; CLR R6 CLR R7 ; 0000 002A if(hour==23) LDI R30,LOW(23) LDI R31,HIGH(23) CP R30,R8 CPC R31,R9 BRNE _0x5 ; 0000 002B hour=0; CLR R8 CLR R9 ; 0000 002C else RJMP _0x6 _0x5: ; 0000 002D hour++; MOVW R30,R8 ADIW R30,1 MOVW R8,R30 ; 0000 002E } _0x6: ; 0000 002F else RJMP _0x7 _0x4: ; 0000 0030 minute++; MOVW R30,R6 ADIW R30,1 MOVW R6,R30 ; 0000 0031 } _0x7: ; 0000 0032 else RJMP _0x8 _0x3: ; 0000 0033 second++; MOVW R30,R4 ADIW R30,1 MOVW R4,R30 ; 0000 0034 } _0x8: LD R30,Y+ OUT SREG,R30 LD R31,Y+ LD R30,Y+ RETI ; .FEND ;//=================================================================================================== ;// External Interrupt 0 service routine ;interrupt [EXT_INT0] void ext_int0_isr(void) ; 0000 0038 { _ext_int0_isr: ; .FSTART _ext_int0_isr ST -Y,R0 ST -Y,R1 ST -Y,R15 ST -Y,R22 ST -Y,R23 ST -Y,R24 ST -Y,R25 ST -Y,R26 ST -Y,R27 ST -Y,R30 ST -Y,R31 IN R30,SREG ST -Y,R30 ; 0000 0039 char k; ; 0000 003A k = GetKey(); ST -Y,R17 ; k -> R17 RCALL _GetKey MOV R17,R30 ; 0000 003B GICR |= (1 << INTF0); IN R30,0x3B ORI R30,0x40 OUT 0x3B,R30 ; 0000 003C if(!reset){ LDS R30,_reset LDS R31,_reset+1 SBIW R30,0 BREQ PC+2 RJMP _0x9 ; 0000 003D if(k != 0xFF) // dokme feshorde shod CPI R17,255 BRNE PC+2 RJMP _0xA ; 0000 003E { ; 0000 003F if (hour < 13 || (hour ==13 && minute<=30 )){ LDI R30,LOW(13) LDI R31,HIGH(13) CP R8,R30 CPC R9,R31 BRLT _0xC CP R30,R8 CPC R31,R9 BRNE _0xD LDI R30,LOW(30) LDI R31,HIGH(30) CP R30,R6 CPC R31,R7 BRGE _0xC _0xD: RJMP _0xB _0xC: ; 0000 0040 saat_yekonim = 1; LDI R30,LOW(1) LDI R31,HIGH(1) STS _saat_yekonim,R30 STS _saat_yekonim+1,R31 ; 0000 0041 }else{ RJMP _0x10 _0xB: ; 0000 0042 saat_yekonim = 0 ; LDI R30,LOW(0) STS _saat_yekonim,R30 STS _saat_yekonim+1,R30 ; 0000 0043 } _0x10: ; 0000 0044 switch(k) MOV R30,R17 LDI R31,0 ; 0000 0045 { ; 0000 0046 case 1 : CPI R30,LOW(0x1) LDI R26,HIGH(0x1) CPC R31,R26 BREQ PC+2 RJMP _0x14 ; 0000 0047 if (saat_yekonim) { CALL SUBOPT_0x0 BRNE PC+2 RJMP _0x15 ; 0000 0048 TotalCount += 1; CALL SUBOPT_0x1 ; 0000 0049 totalcount1_5 += 1; MOVW R30,R10 ADIW R30,1 MOVW R10,R30 ; 0000 004A if(badje1 == 0){ LDS R30,_badje1 LDS R31,_badje1+1 SBIW R30,0 BRNE _0x16 ; 0000 004B badje1 = 1; CALL SUBOPT_0x2 ; 0000 004C nobat1_5 += 1; ; 0000 004D namayesh = 1; CALL SUBOPT_0x3 ; 0000 004E LCD_namayesh_go_to_badje(nobat1_5, 1); LDI R26,LOW(1) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 004F namayesh = 0; RJMP _0x61 ; 0000 0050 ; 0000 0051 } ; 0000 0052 else if (badje2 == 0){ _0x16: LDS R30,_badje2 LDS R31,_badje2+1 SBIW R30,0 BRNE _0x18 ; 0000 0053 badje2 = 1; CALL SUBOPT_0x4 ; 0000 0054 nobat1_5 += 1; ; 0000 0055 namayesh = 1; CALL SUBOPT_0x3 ; 0000 0056 LCD_namayesh_go_to_badje(nobat1_5, 2); LDI R26,LOW(2) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 0057 namayesh = 0; RJMP _0x61 ; 0000 0058 } ; 0000 0059 else if (badje3 == 0){ _0x18: LDS R30,_badje3 LDS R31,_badje3+1 SBIW R30,0 BRNE _0x1A ; 0000 005A badje3 = 1; CALL SUBOPT_0x5 ; 0000 005B nobat1_5 += 1; ; 0000 005C namayesh = 1; CALL SUBOPT_0x3 ; 0000 005D LCD_namayesh_go_to_badje(nobat1_5, 3); LDI R26,LOW(3) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 005E namayesh = 0; RJMP _0x61 ; 0000 005F } ; 0000 0060 else if (badje4 == 0){ _0x1A: LDS R30,_badje4 LDS R31,_badje4+1 SBIW R30,0 BRNE _0x1C ; 0000 0061 badje4 = 1; CALL SUBOPT_0x6 ; 0000 0062 nobat1_5 += 1; ; 0000 0063 namayesh = 1; CALL SUBOPT_0x3 ; 0000 0064 LCD_namayesh_go_to_badje(nobat1_5, 4) ; LDI R26,LOW(4) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 0065 namayesh = 0; RJMP _0x61 ; 0000 0066 } ; 0000 0067 else if (badje5 == 0){ _0x1C: LDS R30,_badje5 LDS R31,_badje5+1 SBIW R30,0 BRNE _0x1E ; 0000 0068 badje5 = 1; CALL SUBOPT_0x7 ; 0000 0069 nobat1_5 += 1; ; 0000 006A namayesh = 1; CALL SUBOPT_0x3 ; 0000 006B LCD_namayesh_go_to_badje(nobat1_5, 5); LDI R26,LOW(5) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 006C namayesh = 0; RJMP _0x61 ; 0000 006D } ; 0000 006E else { _0x1E: ; 0000 006F namayesh = 1; CALL SUBOPT_0x8 ; 0000 0070 entezar = totalcount1_5 - nobat1_5; MOVW R30,R10 SUB R30,R12 SBC R31,R13 STS _entezar,R30 STS _entezar+1,R31 ; 0000 0071 LCD_namayesh_entezar(entezar); LDS R26,_entezar LDS R27,_entezar+1 RCALL _LCD_namayesh_entezar ; 0000 0072 namayesh = 0; _0x61: LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 0073 } ; 0000 0074 } ; 0000 0075 break; _0x15: RJMP _0x13 ; 0000 0076 case 2 : _0x14: CPI R30,LOW(0x2) LDI R26,HIGH(0x2) CPC R31,R26 BRNE _0x20 ; 0000 0077 if(saat_yekonim){ CALL SUBOPT_0x0 BREQ _0x21 ; 0000 0078 TotalCount += 1; CALL SUBOPT_0x1 ; 0000 0079 totalcount6 += 1; LDS R30,_totalcount6 LDS R31,_totalcount6+1 ADIW R30,1 STS _totalcount6,R30 STS _totalcount6+1,R31 ; 0000 007A if(badje6 == 0){ LDS R30,_badje6 LDS R31,_badje6+1 SBIW R30,0 BRNE _0x22 ; 0000 007B badje6 = 1; CALL SUBOPT_0xA ; 0000 007C nobat6 += 1; ; 0000 007D namayesh = 1; CALL SUBOPT_0x8 ; 0000 007E LCD_namayesh_go_to_badje(nobat6, 6); CALL SUBOPT_0xB CALL SUBOPT_0xC ; 0000 007F namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 0080 } ; 0000 0081 else { RJMP _0x23 _0x22: ; 0000 0082 int entezar6 = totalcount6 - nobat6; ; 0000 0083 LCD_namayesh_entezar(entezar6); SBIW R28,2 ; entezar6 -> Y+0 LDS R26,_nobat6 LDS R27,_nobat6+1 LDS R30,_totalcount6 LDS R31,_totalcount6+1 CALL SUBOPT_0xD ; 0000 0084 } _0x23: ; 0000 0085 } ; 0000 0086 break; _0x21: RJMP _0x13 ; 0000 0087 case 3 : _0x20: CPI R30,LOW(0x3) LDI R26,HIGH(0x3) CPC R31,R26 BRNE _0x24 ; 0000 0088 if(saat_yekonim){ CALL SUBOPT_0x0 BREQ _0x25 ; 0000 0089 TotalCount += 1; CALL SUBOPT_0x1 ; 0000 008A totalcount7 += 1; LDS R30,_totalcount7 LDS R31,_totalcount7+1 ADIW R30,1 STS _totalcount7,R30 STS _totalcount7+1,R31 ; 0000 008B if(badje7 == 0){ LDS R30,_badje7 LDS R31,_badje7+1 SBIW R30,0 BRNE _0x26 ; 0000 008C badje7 = 1; CALL SUBOPT_0xE ; 0000 008D nobat7 += 1; ; 0000 008E namayesh = 1; CALL SUBOPT_0x8 ; 0000 008F LCD_namayesh_go_to_badje(nobat7, 7) ; CALL SUBOPT_0xF CALL SUBOPT_0x10 ; 0000 0090 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 0091 } ; 0000 0092 else { RJMP _0x27 _0x26: ; 0000 0093 ; 0000 0094 int entezar7 = totalcount7 - nobat7; ; 0000 0095 LCD_namayesh_entezar(entezar7); SBIW R28,2 ; entezar7 -> Y+0 LDS R26,_nobat7 LDS R27,_nobat7+1 LDS R30,_totalcount7 LDS R31,_totalcount7+1 CALL SUBOPT_0xD ; 0000 0096 } _0x27: ; 0000 0097 } ; 0000 0098 break; _0x25: RJMP _0x13 ; 0000 0099 case 9 : //badje1 _0x24: CPI R30,LOW(0x9) LDI R26,HIGH(0x9) CPC R31,R26 BRNE _0x28 ; 0000 009A badje1 = 0; CALL SUBOPT_0x11 ; 0000 009B if (totalcount1_5 > nobat1_5){ __CPWRR 12,13,10,11 BRGE _0x29 ; 0000 009C namayesh = 1; CALL SUBOPT_0x8 ; 0000 009D d1 = nobat1_5 + 1; MOVW R30,R12 ADIW R30,1 STS _d1,R30 STS _d1+1,R31 ; 0000 009E LCD_namayesh_go_to_badje(d1, 1); ST -Y,R31 ST -Y,R30 LDI R26,LOW(1) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 009F badje1 = 1; CALL SUBOPT_0x2 ; 0000 00A0 nobat1_5 += 1; ; 0000 00A1 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00A2 } ; 0000 00A3 break; _0x29: RJMP _0x13 ; 0000 00A4 case 8 : //badje2 _0x28: CPI R30,LOW(0x8) LDI R26,HIGH(0x8) CPC R31,R26 BRNE _0x2A ; 0000 00A5 badje2 = 0; CALL SUBOPT_0x12 ; 0000 00A6 if (totalcount1_5 > nobat1_5){ __CPWRR 12,13,10,11 BRGE _0x2B ; 0000 00A7 namayesh = 1; CALL SUBOPT_0x8 ; 0000 00A8 d2 = nobat1_5 + 1; MOVW R30,R12 ADIW R30,1 STS _d2,R30 STS _d2+1,R31 ; 0000 00A9 LCD_namayesh_go_to_badje(d2, 2); ST -Y,R31 ST -Y,R30 LDI R26,LOW(2) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 00AA badje2 = 1; CALL SUBOPT_0x4 ; 0000 00AB nobat1_5 += 1; ; 0000 00AC namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00AD } ; 0000 00AE break; _0x2B: RJMP _0x13 ; 0000 00AF case 7 : //badje3 _0x2A: CPI R30,LOW(0x7) LDI R26,HIGH(0x7) CPC R31,R26 BRNE _0x2C ; 0000 00B0 badje3 = 0; CALL SUBOPT_0x13 ; 0000 00B1 if (totalcount1_5 > nobat1_5){ __CPWRR 12,13,10,11 BRGE _0x2D ; 0000 00B2 namayesh = 1; CALL SUBOPT_0x8 ; 0000 00B3 d3 = nobat1_5 + 1; MOVW R30,R12 ADIW R30,1 STS _d3,R30 STS _d3+1,R31 ; 0000 00B4 LCD_namayesh_go_to_badje(d3, 3); ST -Y,R31 ST -Y,R30 LDI R26,LOW(3) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 00B5 badje3 = 1; CALL SUBOPT_0x5 ; 0000 00B6 nobat1_5 += 1; ; 0000 00B7 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00B8 } ; 0000 00B9 break; _0x2D: RJMP _0x13 ; 0000 00BA case 6 : //badje4 _0x2C: CPI R30,LOW(0x6) LDI R26,HIGH(0x6) CPC R31,R26 BRNE _0x2E ; 0000 00BB badje4 = 0; CALL SUBOPT_0x14 ; 0000 00BC if (totalcount1_5 > nobat1_5){ __CPWRR 12,13,10,11 BRGE _0x2F ; 0000 00BD namayesh = 1; CALL SUBOPT_0x8 ; 0000 00BE d4 = nobat1_5 + 1; MOVW R30,R12 ADIW R30,1 STS _d4,R30 STS _d4+1,R31 ; 0000 00BF LCD_namayesh_go_to_badje(d4, 4) ; ST -Y,R31 ST -Y,R30 LDI R26,LOW(4) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 00C0 badje4 = 1; CALL SUBOPT_0x6 ; 0000 00C1 nobat1_5 += 1; ; 0000 00C2 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00C3 } ; 0000 00C4 break; _0x2F: RJMP _0x13 ; 0000 00C5 case 5 : //badje5 _0x2E: CPI R30,LOW(0x5) LDI R26,HIGH(0x5) CPC R31,R26 BRNE _0x30 ; 0000 00C6 badje5 = 0; CALL SUBOPT_0x15 ; 0000 00C7 if (totalcount1_5 > nobat1_5){ __CPWRR 12,13,10,11 BRGE _0x31 ; 0000 00C8 namayesh = 1; CALL SUBOPT_0x8 ; 0000 00C9 d5 = nobat1_5 + 1; MOVW R30,R12 ADIW R30,1 STS _d5,R30 STS _d5+1,R31 ; 0000 00CA LCD_namayesh_go_to_badje(d5, 5); ST -Y,R31 ST -Y,R30 LDI R26,LOW(5) LDI R27,0 RCALL _LCD_namayesh_go_to_badje ; 0000 00CB badje5 = 1; CALL SUBOPT_0x7 ; 0000 00CC nobat1_5 += 1; ; 0000 00CD namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00CE } ; 0000 00CF break; _0x31: RJMP _0x13 ; 0000 00D0 case 4 : //badje6 _0x30: CPI R30,LOW(0x4) LDI R26,HIGH(0x4) CPC R31,R26 BRNE _0x32 ; 0000 00D1 badje6 = 0; CALL SUBOPT_0x16 ; 0000 00D2 if (totalcount6 > nobat6){ CALL SUBOPT_0xB LDS R26,_totalcount6 LDS R27,_totalcount6+1 CP R30,R26 CPC R31,R27 BRGE _0x33 ; 0000 00D3 namayesh = 1; CALL SUBOPT_0x8 ; 0000 00D4 d6 = nobat6 + 1; CALL SUBOPT_0xB ADIW R30,1 STS _d6,R30 STS _d6+1,R31 ; 0000 00D5 LCD_namayesh_go_to_badje(d6, 6); CALL SUBOPT_0xC ; 0000 00D6 badje6 = 1; CALL SUBOPT_0xA ; 0000 00D7 nobat6 += 1; ; 0000 00D8 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00D9 } ; 0000 00DA break; _0x33: RJMP _0x13 ; 0000 00DB case 0 : //badje7 _0x32: SBIW R30,0 BRNE _0x13 ; 0000 00DC badje7 = 0; CALL SUBOPT_0x17 ; 0000 00DD if (totalcount7 > nobat7){ CALL SUBOPT_0xF LDS R26,_totalcount7 LDS R27,_totalcount7+1 CP R30,R26 CPC R31,R27 BRGE _0x35 ; 0000 00DE namayesh = 1; CALL SUBOPT_0x8 ; 0000 00DF d7 = nobat7 + 1; CALL SUBOPT_0xF ADIW R30,1 STS _d7,R30 STS _d7+1,R31 ; 0000 00E0 LCD_namayesh_go_to_badje(d7, 7); CALL SUBOPT_0x10 ; 0000 00E1 badje7 = 1; CALL SUBOPT_0xE ; 0000 00E2 nobat7 += 1; ; 0000 00E3 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00E4 } ; 0000 00E5 break; _0x35: ; 0000 00E6 ; 0000 00E7 } _0x13: ; 0000 00E8 } ; 0000 00E9 ; 0000 00EA } _0xA: ; 0000 00EB else{ RJMP _0x36 _0x9: ; 0000 00EC totalcount1_5 = 0, nobat1_5 = 0; CALL SUBOPT_0x18 ; 0000 00ED totalcount6 = 0, nobat6 = 0; ; 0000 00EE totalcount7 = 0, nobat7 = 0; ; 0000 00EF TotalCount = 0; ; 0000 00F0 badje1 = 0, badje2 = 0, badje3 = 0, badje4 = 0, badje5 = 0, badje6 = 0, badje7 = 0; CALL SUBOPT_0x12 CALL SUBOPT_0x13 CALL SUBOPT_0x14 CALL SUBOPT_0x15 CALL SUBOPT_0x16 CALL SUBOPT_0x17 ; 0000 00F1 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 00F2 //tanzimat saat ; 0000 00F3 } _0x36: ; 0000 00F4 } LD R17,Y+ LD R30,Y+ OUT SREG,R30 LD R31,Y+ LD R30,Y+ LD R27,Y+ LD R26,Y+ LD R25,Y+ LD R24,Y+ LD R23,Y+ LD R22,Y+ LD R15,Y+ LD R1,Y+ LD R0,Y+ RETI ; .FEND ; ; ;//************************************************************************************************* ;void main(void) ; 0000 00F9 { _main: ; .FSTART _main ; 0000 00FA DDRB = 0xFF; LDI R30,LOW(255) OUT 0x17,R30 ; 0000 00FB PORTB = 0x00; LDI R30,LOW(0) OUT 0x18,R30 ; 0000 00FC DDRC = 0xF0; LDI R30,LOW(240) OUT 0x14,R30 ; 0000 00FD PORTC = 0x0F; LDI R30,LOW(15) OUT 0x15,R30 ; 0000 00FE // External Interrupt(s) initialization ; 0000 00FF // INT0: On ; 0000 0100 // INT0 Mode: Falling Edge ; 0000 0101 // INT1: Off ; 0000 0102 // INT2: Off ; 0000 0103 GICR|=(0<<INT1) | (1<<INT0) | (0<<INT2); IN R30,0x3B ORI R30,0x40 OUT 0x3B,R30 ; 0000 0104 MCUCR=(0<<ISC11) | (0<<ISC10) | (1<<ISC01) | (0<<ISC00); LDI R30,LOW(2) OUT 0x35,R30 ; 0000 0105 MCUCSR=(0<<ISC2); LDI R30,LOW(0) OUT 0x34,R30 ; 0000 0106 GIFR=(0<<INTF1) | (1<<INTF0) | (0<<INTF2); LDI R30,LOW(64) OUT 0x3A,R30 ; 0000 0107 ////==============================================timer initiallize ; 0000 0108 // Timer/Counter 1 initialization ; 0000 0109 // Clock source: System Clock ; 0000 010A // Clock value: 31/250 kHz ; 0000 010B // Mode: Normal top=0xFFFF ; 0000 010C // OC1A output: Disconnected ; 0000 010D // OC1B output: Disconnected ; 0000 010E // Noise Canceler: Off ; 0000 010F // Input Capture on Falling Edge ; 0000 0110 // Timer Period: 1 s ; 0000 0111 // Timer1 Overflow Interrupt: On ; 0000 0112 // Input Capture Interrupt: Off ; 0000 0113 // Compare A Match Interrupt: Off ; 0000 0114 // Compare B Match Interrupt: Off ; 0000 0115 TCCR1A=(0<<COM1A1) | (0<<COM1A0) | (0<<COM1B1) | (0<<COM1B0) | (0<<WGM11) | (0<<WGM10); LDI R30,LOW(0) OUT 0x2F,R30 ; 0000 0116 TCCR1B=(0<<ICNC1) | (0<<ICES1) | (0<<WGM13) | (0<<WGM12) | (1<<CS12) | (0<<CS11) | (0<<CS10); LDI R30,LOW(4) OUT 0x2E,R30 ; 0000 0117 TCNT1H=0x85; LDI R30,LOW(133) OUT 0x2D,R30 ; 0000 0118 TCNT1L=0xEE; LDI R30,LOW(238) OUT 0x2C,R30 ; 0000 0119 ICR1H=0x00; LDI R30,LOW(0) OUT 0x27,R30 ; 0000 011A ICR1L=0x00; OUT 0x26,R30 ; 0000 011B OCR1AH=0x00; OUT 0x2B,R30 ; 0000 011C OCR1AL=0x00; OUT 0x2A,R30 ; 0000 011D OCR1BH=0x00; OUT 0x29,R30 ; 0000 011E OCR1BL=0x00; OUT 0x28,R30 ; 0000 011F // Global enable interrupts ; 0000 0120 #asm("sei") sei ; 0000 0121 //============================================================ ; 0000 0122 totalcount1_5 = 0, nobat1_5 = 0; CALL SUBOPT_0x18 ; 0000 0123 totalcount6 = 0, nobat6 = 0; ; 0000 0124 totalcount7 = 0, nobat7 = 0; ; 0000 0125 TotalCount = 0; ; 0000 0126 badje1 = 0, badje2 = 0, badje3 = 0, badje4 = 0, badje5 = 0, badje6 = 0, badje7 = 0; CALL SUBOPT_0x12 CALL SUBOPT_0x13 CALL SUBOPT_0x14 CALL SUBOPT_0x15 CALL SUBOPT_0x16 CALL SUBOPT_0x17 ; 0000 0127 namayesh = 0; LDI R30,LOW(0) CALL SUBOPT_0x9 ; 0000 0128 saat_yekonim = 0; LDI R30,LOW(0) STS _saat_yekonim,R30 STS _saat_yekonim+1,R30 ; 0000 0129 lcd_init(16); LDI R26,LOW(16) CALL _lcd_init ; 0000 012A second = 0 ; CLR R4 CLR R5 ; 0000 012B //====================================================================================== ; 0000 012C while (1) _0x37: ; 0000 012D { ; 0000 012E sprintf(lcd_buffer,"Clock: %d:%d:%d",hour,minute,second); LDI R30,LOW(_lcd_buffer) LDI R31,HIGH(_lcd_buffer) ST -Y,R31 ST -Y,R30 __POINTW1FN _0x0,0 ST -Y,R31 ST -Y,R30 MOVW R30,R8 CALL SUBOPT_0x19 MOVW R30,R6 CALL SUBOPT_0x19 MOVW R30,R4 CALL SUBOPT_0x19 LDI R24,12 CALL _sprintf ADIW R28,16 ; 0000 012F lcd_gotoxy(0,0); CALL SUBOPT_0x1A ; 0000 0130 lcd_puts(lcd_buffer); LDI R26,LOW(_lcd_buffer) LDI R27,HIGH(_lcd_buffer) CALL SUBOPT_0x1B ; 0000 0131 delay_ms(1000); ; 0000 0132 lcd_clear(); ; 0000 0133 } RJMP _0x37 ; 0000 0134 } _0x3A: RJMP _0x3A ; .FEND ;//======================================================================================== ;void LCD_namayesh_go_to_badje (int a, int b){ ; 0000 0136 void LCD_namayesh_go_to_badje (int a, int b){ _LCD_namayesh_go_to_badje: ; .FSTART _LCD_namayesh_go_to_badje ; 0000 0137 lcd_clear(); ST -Y,R27 ST -Y,R26 ; a -> Y+2 ; b -> Y+0 CALL _lcd_clear ; 0000 0138 str1[10]; __GETB1MN _str1,10 ; 0000 0139 itoa(a, str1); LDD R30,Y+2 LDD R31,Y+2+1 ST -Y,R31 ST -Y,R30 LDI R26,LOW(_str1) LDI R27,HIGH(_str1) CALL _itoa ; 0000 013A lcd_gotoxy(0, 0); CALL SUBOPT_0x1A ; 0000 013B lcd_puts(str1); LDI R26,LOW(_str1) LDI R27,HIGH(_str1) CALL _lcd_puts ; 0000 013C lcd_gotoxy(5, 0); LDI R30,LOW(5) CALL SUBOPT_0x1C ; 0000 013D lcd_putsf("go to badje : "); __POINTW2FN _0x0,16 CALL _lcd_putsf ; 0000 013E itoa(b, str2); LD R30,Y LDD R31,Y+1 ST -Y,R31 ST -Y,R30 LDI R26,LOW(_str2) LDI R27,HIGH(_str2) CALL _itoa ; 0000 013F lcd_gotoxy(15, 0); LDI R30,LOW(15) CALL SUBOPT_0x1C ; 0000 0140 lcd_puts(str2); LDI R26,LOW(_str2) LDI R27,HIGH(_str2) CALL SUBOPT_0x1B ; 0000 0141 delay_ms(1000); ; 0000 0142 lcd_clear(); ; 0000 0143 } ADIW R28,4 RET ; .FEND ;//========================================================================================== ;void LCD_namayesh_entezar (int a){ ; 0000 0145 void LCD_namayesh_entezar (int a){ _LCD_namayesh_entezar: ; .FSTART _LCD_namayesh_entezar ; 0000 0146 lcd_clear(); ST -Y,R27 ST -Y,R26 ; a -> Y+0 CALL _lcd_clear ; 0000 0147 str3[17]; __GETB1MN _str3,17 ; 0000 0148 itoa(a, str3); LD R30,Y LDD R31,Y+1 ST -Y,R31 ST -Y,R30 LDI R26,LOW(_str3) LDI R27,HIGH(_str3) CALL _itoa ; 0000 0149 lcd_gotoxy(0, 0); CALL SUBOPT_0x1A ; 0000 014A lcd_puts(str1); LDI R26,LOW(_str1) LDI R27,HIGH(_str1) CALL _lcd_puts ; 0000 014B lcd_gotoxy(4, 0); LDI R30,LOW(4) CALL SUBOPT_0x1C ; 0000 014C lcd_putsf(" nafar joloye shoma hastand"); __POINTW2FN _0x0,31 CALL _lcd_putsf ; 0000 014D delay_ms(500); LDI R26,LOW(500) LDI R27,HIGH(500) CALL _delay_ms ; 0000 014E lcd_clear(); CALL _lcd_clear ; 0000 014F } JMP _0x20C0003 ; .FEND ;//========================================================================================= ; ; ;//========================================================================================= ;char GetKey() ; 0000 0155 { _GetKey: ; .FSTART _GetKey ; 0000 0156 unsigned char key_code = 0xFF; ; 0000 0157 unsigned char columns; ; 0000 0158 ; 0000 0159 PORTC = 0xFF; ST -Y,R17 ST -Y,R16 ; key_code -> R17 ; columns -> R16 LDI R17,255 LDI R30,LOW(255) OUT 0x15,R30 ; 0000 015A // first row ; 0000 015B PORTC.4 = 0; CBI 0x15,4 ; 0000 015C columns = PINC & 0x07; CALL SUBOPT_0x1D ; 0000 015D if(columns != 0x07) BREQ _0x3D ; 0000 015E { ; 0000 015F switch(columns) CALL SUBOPT_0x1E ; 0000 0160 { ; 0000 0161 case 0b110 : key_code = 1; break; BRNE _0x41 LDI R17,LOW(1) RJMP _0x40 ; 0000 0162 case 0b101 : key_code = 2; break; _0x41: CPI R30,LOW(0x5) LDI R26,HIGH(0x5) CPC R31,R26 BRNE _0x42 LDI R17,LOW(2) RJMP _0x40 ; 0000 0163 case 0b011 : key_code = 3; break; _0x42: CPI R30,LOW(0x3) LDI R26,HIGH(0x3) CPC R31,R26 BRNE _0x40 LDI R17,LOW(3) ; 0000 0164 } _0x40: ; 0000 0165 } ; 0000 0166 PORTC.4 = 1; _0x3D: SBI 0x15,4 ; 0000 0167 // second row ; 0000 0168 PORTC.5 = 0; CBI 0x15,5 ; 0000 0169 columns = PINC & 0x07; CALL SUBOPT_0x1D ; 0000 016A if(columns != 0x07) BREQ _0x48 ; 0000 016B { ; 0000 016C switch(columns) CALL SUBOPT_0x1E ; 0000 016D { ; 0000 016E case 0b110 : key_code = 4; break; BRNE _0x4C LDI R17,LOW(4) RJMP _0x4B ; 0000 016F case 0b101 : key_code = 5; break; _0x4C: CPI R30,LOW(0x5) LDI R26,HIGH(0x5) CPC R31,R26 BRNE _0x4D LDI R17,LOW(5) RJMP _0x4B ; 0000 0170 case 0b011 : key_code = 6; break; _0x4D: CPI R30,LOW(0x3) LDI R26,HIGH(0x3) CPC R31,R26 BRNE _0x4B LDI R17,LOW(6) ; 0000 0171 } _0x4B: ; 0000 0172 } ; 0000 0173 PORTC.5 = 1; _0x48: SBI 0x15,5 ; 0000 0174 // third row ; 0000 0175 PORTC.6 = 0; CBI 0x15,6 ; 0000 0176 columns = PINC & 0x07; CALL SUBOPT_0x1D ; 0000 0177 if(columns != 0x07) BREQ _0x53 ; 0000 0178 { ; 0000 0179 switch(columns) CALL SUBOPT_0x1E ; 0000 017A { ; 0000 017B case 0b110 : key_code = 7; break; BRNE _0x57 LDI R17,LOW(7) RJMP _0x56 ; 0000 017C case 0b101 : key_code = 8; break; _0x57: CPI R30,LOW(0x5) LDI R26,HIGH(0x5) CPC R31,R26 BRNE _0x58 LDI R17,LOW(8) RJMP _0x56 ; 0000 017D case 0b011 : key_code = 9; break; _0x58: CPI R30,LOW(0x3) LDI R26,HIGH(0x3) CPC R31,R26 BRNE _0x56 LDI R17,LOW(9) ; 0000 017E } _0x56: ; 0000 017F } ; 0000 0180 PORTC.6 = 1; _0x53: SBI 0x15,6 ; 0000 0181 // fourth row ; 0000 0182 PORTC.7 = 0; CBI 0x15,7 ; 0000 0183 if(!PINC.1) key_code = 0; SBIS 0x13,1 LDI R17,LOW(0) ; 0000 0184 PORTC.7 = 1; SBI 0x15,7 ; 0000 0185 ; 0000 0186 PORTC = 0x0F; LDI R30,LOW(15) OUT 0x15,R30 ; 0000 0187 return key_code; MOV R30,R17 LD R16,Y+ LD R17,Y+ RET ; 0000 0188 } ; .FEND #ifndef __SLEEP_DEFINED__ #define __SLEEP_DEFINED__ .EQU __se_bit=0x80 .EQU __sm_mask=0x70 .EQU __sm_powerdown=0x20 .EQU __sm_powersave=0x30 .EQU __sm_standby=0x60 .EQU __sm_ext_standby=0x70 .EQU __sm_adc_noise_red=0x10 .SET power_ctrl_reg=mcucr #endif .CSEG _put_buff_G100: ; .FSTART _put_buff_G100 ST -Y,R27 ST -Y,R26 ST -Y,R17 ST -Y,R16 LDD R26,Y+2 LDD R27,Y+2+1 ADIW R26,2 CALL __GETW1P SBIW R30,0 BREQ _0x2000010 LDD R26,Y+2 LDD R27,Y+2+1 ADIW R26,4 CALL __GETW1P MOVW R16,R30 SBIW R30,0 BREQ _0x2000012 __CPWRN 16,17,2 BRLO _0x2000013 MOVW R30,R16 SBIW R30,1 MOVW R16,R30 __PUTW1SNS 2,4 _0x2000012: LDD R26,Y+2 LDD R27,Y+2+1 ADIW R26,2 LD R30,X+ LD R31,X+ ADIW R30,1 ST -X,R31 ST -X,R30 SBIW R30,1 LDD R26,Y+4 STD Z+0,R26 _0x2000013: LDD R26,Y+2 LDD R27,Y+2+1 CALL __GETW1P TST R31 BRMI _0x2000014 LD R30,X+ LD R31,X+ ADIW R30,1 ST -X,R31 ST -X,R30 _0x2000014: RJMP _0x2000015 _0x2000010: LDD R26,Y+2 LDD R27,Y+2+1 LDI R30,LOW(65535) LDI R31,HIGH(65535) ST X+,R30 ST X,R31 _0x2000015: LDD R17,Y+1 LDD R16,Y+0 ADIW R28,5 RET ; .FEND __print_G100: ; .FSTART __print_G100 ST -Y,R27 ST -Y,R26 SBIW R28,6 CALL __SAVELOCR6 LDI R17,0 LDD R26,Y+12 LDD R27,Y+12+1 LDI R30,LOW(0) LDI R31,HIGH(0) ST X+,R30 ST X,R31 _0x2000016: LDD R30,Y+18 LDD R31,Y+18+1 ADIW R30,1 STD Y+18,R30 STD Y+18+1,R31 SBIW R30,1 LPM R30,Z MOV R18,R30 CPI R30,0 BRNE PC+2 RJMP _0x2000018 MOV R30,R17 CPI R30,0 BRNE _0x200001C CPI R18,37 BRNE _0x200001D LDI R17,LOW(1) RJMP _0x200001E _0x200001D: CALL SUBOPT_0x1F _0x200001E: RJMP _0x200001B _0x200001C: CPI R30,LOW(0x1) BRNE _0x200001F CPI R18,37 BRNE _0x2000020 CALL SUBOPT_0x1F RJMP _0x20000CC _0x2000020: LDI R17,LOW(2) LDI R20,LOW(0) LDI R16,LOW(0) CPI R18,45 BRNE _0x2000021 LDI R16,LOW(1) RJMP _0x200001B _0x2000021: CPI R18,43 BRNE _0x2000022 LDI R20,LOW(43) RJMP _0x200001B _0x2000022: CPI R18,32 BRNE _0x2000023 LDI R20,LOW(32) RJMP _0x200001B _0x2000023: RJMP _0x2000024 _0x200001F: CPI R30,LOW(0x2) BRNE _0x2000025 _0x2000024: LDI R21,LOW(0) LDI R17,LOW(3) CPI R18,48 BRNE _0x2000026 ORI R16,LOW(128) RJMP _0x200001B _0x2000026: RJMP _0x2000027 _0x2000025: CPI R30,LOW(0x3) BREQ PC+2 RJMP _0x200001B _0x2000027: CPI R18,48 BRLO _0x200002A CPI R18,58 BRLO _0x200002B _0x200002A: RJMP _0x2000029 _0x200002B: LDI R26,LOW(10) MUL R21,R26 MOV R21,R0 MOV R30,R18 SUBI R30,LOW(48) ADD R21,R30 RJMP _0x200001B _0x2000029: MOV R30,R18 CPI R30,LOW(0x63) BRNE _0x200002F CALL SUBOPT_0x20 LDD R30,Y+16 LDD R31,Y+16+1 LDD R26,Z+4 ST -Y,R26 CALL SUBOPT_0x21 RJMP _0x2000030 _0x200002F: CPI R30,LOW(0x73) BRNE _0x2000032 CALL SUBOPT_0x20 CALL SUBOPT_0x22 CALL _strlen MOV R17,R30 RJMP _0x2000033 _0x2000032: CPI R30,LOW(0x70) BRNE _0x2000035 CALL SUBOPT_0x20 CALL SUBOPT_0x22 CALL _strlenf MOV R17,R30 ORI R16,LOW(8) _0x2000033: ORI R16,LOW(2) ANDI R16,LOW(127) LDI R19,LOW(0) RJMP _0x2000036 _0x2000035: CPI R30,LOW(0x64) BREQ _0x2000039 CPI R30,LOW(0x69) BRNE _0x200003A _0x2000039: ORI R16,LOW(4) RJMP _0x200003B _0x200003A: CPI R30,LOW(0x75) BRNE _0x200003C _0x200003B: LDI R30,LOW(_tbl10_G100*2) LDI R31,HIGH(_tbl10_G100*2) STD Y+6,R30 STD Y+6+1,R31 LDI R17,LOW(5) RJMP _0x200003D _0x200003C: CPI R30,LOW(0x58) BRNE _0x200003F ORI R16,LOW(8) RJMP _0x2000040 _0x200003F: CPI R30,LOW(0x78) BREQ PC+2 RJMP _0x2000071 _0x2000040: LDI R30,LOW(_tbl16_G100*2) LDI R31,HIGH(_tbl16_G100*2) STD Y+6,R30 STD Y+6+1,R31 LDI R17,LOW(4) _0x200003D: SBRS R16,2 RJMP _0x2000042 CALL SUBOPT_0x20 CALL SUBOPT_0x23 LDD R26,Y+11 TST R26 BRPL _0x2000043 LDD R30,Y+10 LDD R31,Y+10+1 CALL __ANEGW1 STD Y+10,R30 STD Y+10+1,R31 LDI R20,LOW(45) _0x2000043: CPI R20,0 BREQ _0x2000044 SUBI R17,-LOW(1) RJMP _0x2000045 _0x2000044: ANDI R16,LOW(251) _0x2000045: RJMP _0x2000046 _0x2000042: CALL SUBOPT_0x20 CALL SUBOPT_0x23 _0x2000046: _0x2000036: SBRC R16,0 RJMP _0x2000047 _0x2000048: CP R17,R21 BRSH _0x200004A SBRS R16,7 RJMP _0x200004B SBRS R16,2 RJMP _0x200004C ANDI R16,LOW(251) MOV R18,R20 SUBI R17,LOW(1) RJMP _0x200004D _0x200004C: LDI R18,LOW(48) _0x200004D: RJMP _0x200004E _0x200004B: LDI R18,LOW(32) _0x200004E: CALL SUBOPT_0x1F SUBI R21,LOW(1) RJMP _0x2000048 _0x200004A: _0x2000047: MOV R19,R17 SBRS R16,1 RJMP _0x200004F _0x2000050: CPI R19,0 BREQ _0x2000052 SBRS R16,3 RJMP _0x2000053 LDD R30,Y+6 LDD R31,Y+6+1 LPM R18,Z+ STD Y+6,R30 STD Y+6+1,R31 RJMP _0x2000054 _0x2000053: LDD R26,Y+6 LDD R27,Y+6+1 LD R18,X+ STD Y+6,R26 STD Y+6+1,R27 _0x2000054: CALL SUBOPT_0x1F CPI R21,0 BREQ _0x2000055 SUBI R21,LOW(1) _0x2000055: SUBI R19,LOW(1) RJMP _0x2000050 _0x2000052: RJMP _0x2000056 _0x200004F: _0x2000058: LDI R18,LOW(48) LDD R30,Y+6 LDD R31,Y+6+1 CALL __GETW1PF STD Y+8,R30 STD Y+8+1,R31 LDD R30,Y+6 LDD R31,Y+6+1 ADIW R30,2 STD Y+6,R30 STD Y+6+1,R31 _0x200005A: LDD R30,Y+8 LDD R31,Y+8+1 LDD R26,Y+10 LDD R27,Y+10+1 CP R26,R30 CPC R27,R31 BRLO _0x200005C SUBI R18,-LOW(1) LDD R26,Y+8 LDD R27,Y+8+1 LDD R30,Y+10 LDD R31,Y+10+1 SUB R30,R26 SBC R31,R27 STD Y+10,R30 STD Y+10+1,R31 RJMP _0x200005A _0x200005C: CPI R18,58 BRLO _0x200005D SBRS R16,3 RJMP _0x200005E SUBI R18,-LOW(7) RJMP _0x200005F _0x200005E: SUBI R18,-LOW(39) _0x200005F: _0x200005D: SBRC R16,4 RJMP _0x2000061 CPI R18,49 BRSH _0x2000063 LDD R26,Y+8 LDD R27,Y+8+1 SBIW R26,1 BRNE _0x2000062 _0x2000063: RJMP _0x20000CD _0x2000062: CP R21,R19 BRLO _0x2000067 SBRS R16,0 RJMP _0x2000068 _0x2000067: RJMP _0x2000066 _0x2000068: LDI R18,LOW(32) SBRS R16,7 RJMP _0x2000069 LDI R18,LOW(48) _0x20000CD: ORI R16,LOW(16) SBRS R16,2 RJMP _0x200006A ANDI R16,LOW(251) ST -Y,R20 CALL SUBOPT_0x21 CPI R21,0 BREQ _0x200006B SUBI R21,LOW(1) _0x200006B: _0x200006A: _0x2000069: _0x2000061: CALL SUBOPT_0x1F CPI R21,0 BREQ _0x200006C SUBI R21,LOW(1) _0x200006C: _0x2000066: SUBI R19,LOW(1) LDD R26,Y+8 LDD R27,Y+8+1 SBIW R26,2 BRLO _0x2000059 RJMP _0x2000058 _0x2000059: _0x2000056: SBRS R16,0 RJMP _0x200006D _0x200006E: CPI R21,0 BREQ _0x2000070 SUBI R21,LOW(1) LDI R30,LOW(32) ST -Y,R30 CALL SUBOPT_0x21 RJMP _0x200006E _0x2000070: _0x200006D: _0x2000071: _0x2000030: _0x20000CC: LDI R17,LOW(0) _0x200001B: RJMP _0x2000016 _0x2000018: LDD R26,Y+12 LDD R27,Y+12+1 CALL __GETW1P CALL __LOADLOCR6 ADIW R28,20 RET ; .FEND _sprintf: ; .FSTART _sprintf PUSH R15 MOV R15,R24 SBIW R28,6 CALL __SAVELOCR4 CALL SUBOPT_0x24 SBIW R30,0 BRNE _0x2000072 LDI R30,LOW(65535) LDI R31,HIGH(65535) RJMP _0x20C0004 _0x2000072: MOVW R26,R28 ADIW R26,6 CALL __ADDW2R15 MOVW R16,R26 CALL SUBOPT_0x24 STD Y+6,R30 STD Y+6+1,R31 LDI R30,LOW(0) STD Y+8,R30 STD Y+8+1,R30 MOVW R26,R28 ADIW R26,10 CALL __ADDW2R15 CALL __GETW1P ST -Y,R31 ST -Y,R30 ST -Y,R17 ST -Y,R16 LDI R30,LOW(_put_buff_G100) LDI R31,HIGH(_put_buff_G100) ST -Y,R31 ST -Y,R30 MOVW R26,R28 ADIW R26,10 RCALL __print_G100 MOVW R18,R30 LDD R26,Y+6 LDD R27,Y+6+1 LDI R30,LOW(0) ST X,R30 MOVW R30,R18 _0x20C0004: CALL __LOADLOCR4 ADIW R28,10 POP R15 RET ; .FEND .CSEG _strlen: ; .FSTART _strlen ST -Y,R27 ST -Y,R26 ld r26,y+ ld r27,y+ clr r30 clr r31 strlen0: ld r22,x+ tst r22 breq strlen1 adiw r30,1 rjmp strlen0 strlen1: ret ; .FEND _strlenf: ; .FSTART _strlenf ST -Y,R27 ST -Y,R26 clr r26 clr r27 ld r30,y+ ld r31,y+ strlenf0: lpm r0,z+ tst r0 breq strlenf1 adiw r26,1 rjmp strlenf0 strlenf1: movw r30,r26 ret ; .FEND .CSEG _itoa: ; .FSTART _itoa ST -Y,R27 ST -Y,R26 ld r26,y+ ld r27,y+ ld r30,y+ ld r31,y+ adiw r30,0 brpl __itoa0 com r30 com r31 adiw r30,1 ldi r22,'-' st x+,r22 __itoa0: clt ldi r24,low(10000) ldi r25,high(10000) rcall __itoa1 ldi r24,low(1000) ldi r25,high(1000) rcall __itoa1 ldi r24,100 clr r25 rcall __itoa1 ldi r24,10 rcall __itoa1 mov r22,r30 rcall __itoa5 clr r22 st x,r22 ret __itoa1: clr r22 __itoa2: cp r30,r24 cpc r31,r25 brlo __itoa3 inc r22 sub r30,r24 sbc r31,r25 brne __itoa2 __itoa3: tst r22 brne __itoa4 brts __itoa5 ret __itoa4: set __itoa5: subi r22,-0x30 st x+,r22 ret ; .FEND .DSEG .CSEG #ifndef __SLEEP_DEFINED__ #define __SLEEP_DEFINED__ .EQU __se_bit=0x80 .EQU __sm_mask=0x70 .EQU __sm_powerdown=0x20 .EQU __sm_powersave=0x30 .EQU __sm_standby=0x60 .EQU __sm_ext_standby=0x70 .EQU __sm_adc_noise_red=0x10 .SET power_ctrl_reg=mcucr #endif .DSEG .CSEG __lcd_write_nibble_G103: ; .FSTART __lcd_write_nibble_G103 ST -Y,R26 IN R30,0x18 ANDI R30,LOW(0xF) MOV R26,R30 LD R30,Y ANDI R30,LOW(0xF0) OR R30,R26 OUT 0x18,R30 __DELAY_USB 13 SBI 0x18,2 __DELAY_USB 13 CBI 0x18,2 __DELAY_USB 13 RJMP _0x20C0001 ; .FEND __lcd_write_data: ; .FSTART __lcd_write_data ST -Y,R26 LD R26,Y RCALL __lcd_write_nibble_G103 ld r30,y swap r30 st y,r30 LD R26,Y RCALL __lcd_write_nibble_G103 __DELAY_USB 133 RJMP _0x20C0001 ; .FEND _lcd_gotoxy: ; .FSTART _lcd_gotoxy ST -Y,R26 LD R30,Y LDI R31,0 SUBI R30,LOW(-__base_y_G103) SBCI R31,HIGH(-__base_y_G103) LD R30,Z LDD R26,Y+1 ADD R26,R30 RCALL __lcd_write_data LDD R30,Y+1 STS __lcd_x,R30 LD R30,Y STS __lcd_y,R30 _0x20C0003: ADIW R28,2 RET ; .FEND _lcd_clear: ; .FSTART _lcd_clear LDI R26,LOW(2) CALL SUBOPT_0x25 LDI R26,LOW(12) RCALL __lcd_write_data LDI R26,LOW(1) CALL SUBOPT_0x25 LDI R30,LOW(0) STS __lcd_y,R30 STS __lcd_x,R30 RET ; .FEND _lcd_putchar: ; .FSTART _lcd_putchar ST -Y,R26 LD R26,Y CPI R26,LOW(0xA) BREQ _0x2060005 LDS R30,__lcd_maxx LDS R26,__lcd_x CP R26,R30 BRLO _0x2060004 _0x2060005: LDI R30,LOW(0) ST -Y,R30 LDS R26,__lcd_y SUBI R26,-LOW(1) STS __lcd_y,R26 RCALL _lcd_gotoxy LD R26,Y CPI R26,LOW(0xA) BRNE _0x2060007 RJMP _0x20C0001 _0x2060007: _0x2060004: LDS R30,__lcd_x SUBI R30,-LOW(1) STS __lcd_x,R30 SBI 0x18,0 LD R26,Y RCALL __lcd_write_data CBI 0x18,0 RJMP _0x20C0001 ; .FEND _lcd_puts: ; .FSTART _lcd_puts ST -Y,R27 ST -Y,R26 ST -Y,R17 _0x2060008: LDD R26,Y+1 LDD R27,Y+1+1 LD R30,X+ STD Y+1,R26 STD Y+1+1,R27 MOV R17,R30 CPI R30,0 BREQ _0x206000A MOV R26,R17 RCALL _lcd_putchar RJMP _0x2060008 _0x206000A: RJMP _0x20C0002 ; .FEND _lcd_putsf: ; .FSTART _lcd_putsf ST -Y,R27 ST -Y,R26 ST -Y,R17 _0x206000B: LDD R30,Y+1 LDD R31,Y+1+1 ADIW R30,1 STD Y+1,R30 STD Y+1+1,R31 SBIW R30,1 LPM R30,Z MOV R17,R30 CPI R30,0 BREQ _0x206000D MOV R26,R17 RCALL _lcd_putchar RJMP _0x206000B _0x206000D: _0x20C0002: LDD R17,Y+0 ADIW R28,3 RET ; .FEND _lcd_init: ; .FSTART _lcd_init ST -Y,R26 IN R30,0x17 ORI R30,LOW(0xF0) OUT 0x17,R30 SBI 0x17,2 SBI 0x17,0 SBI 0x17,1 CBI 0x18,2 CBI 0x18,0 CBI 0x18,1 LD R30,Y STS __lcd_maxx,R30 SUBI R30,-LOW(128) __PUTB1MN __base_y_G103,2 LD R30,Y SUBI R30,-LOW(192) __PUTB1MN __base_y_G103,3 LDI R26,LOW(20) LDI R27,0 CALL _delay_ms CALL SUBOPT_0x26 CALL SUBOPT_0x26 CALL SUBOPT_0x26 LDI R26,LOW(32) RCALL __lcd_write_nibble_G103 __DELAY_USW 200 LDI R26,LOW(40) RCALL __lcd_write_data LDI R26,LOW(4) RCALL __lcd_write_data LDI R26,LOW(133) RCALL __lcd_write_data LDI R26,LOW(6) RCALL __lcd_write_data RCALL _lcd_clear _0x20C0001: ADIW R28,1 RET ; .FEND .CSEG .CSEG .DSEG _totalcount6: .BYTE 0x2 _nobat6: .BYTE 0x2 _totalcount7: .BYTE 0x2 _nobat7: .BYTE 0x2 _TotalCount: .BYTE 0x2 _badje1: .BYTE 0x2 _badje2: .BYTE 0x2 _badje3: .BYTE 0x2 _badje4: .BYTE 0x2 _badje5: .BYTE 0x2 _badje6: .BYTE 0x2 _badje7: .BYTE 0x2 _namayesh: .BYTE 0x2 _d1: .BYTE 0x2 _d2: .BYTE 0x2 _d3: .BYTE 0x2 _d4: .BYTE 0x2 _d5: .BYTE 0x2 _d6: .BYTE 0x2 _d7: .BYTE 0x2 _entezar: .BYTE 0x2 _str2: .BYTE 0xA _str3: .BYTE 0x11 _reset: .BYTE 0x2 _saat_yekonim: .BYTE 0x2 _str1: .BYTE 0xA _lcd_buffer: .BYTE 0x11 __seed_G102: .BYTE 0x4 __base_y_G103: .BYTE 0x4 __lcd_x: .BYTE 0x1 __lcd_y: .BYTE 0x1 __lcd_maxx: .BYTE 0x1 .CSEG ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x0: LDS R30,_saat_yekonim LDS R31,_saat_yekonim+1 SBIW R30,0 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:11 WORDS SUBOPT_0x1: LDS R30,_TotalCount LDS R31,_TotalCount+1 ADIW R30,1 STS _TotalCount,R30 STS _TotalCount+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x2: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje1,R30 STS _badje1+1,R31 MOVW R30,R12 ADIW R30,1 MOVW R12,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:21 WORDS SUBOPT_0x3: LDI R30,LOW(1) LDI R31,HIGH(1) STS _namayesh,R30 STS _namayesh+1,R31 ST -Y,R13 ST -Y,R12 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x4: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje2,R30 STS _badje2+1,R31 MOVW R30,R12 ADIW R30,1 MOVW R12,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x5: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje3,R30 STS _badje3+1,R31 MOVW R30,R12 ADIW R30,1 MOVW R12,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x6: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje4,R30 STS _badje4+1,R31 MOVW R30,R12 ADIW R30,1 MOVW R12,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x7: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje5,R30 STS _badje5+1,R31 MOVW R30,R12 ADIW R30,1 MOVW R12,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 10 TIMES, CODE SIZE REDUCTION:33 WORDS SUBOPT_0x8: LDI R30,LOW(1) LDI R31,HIGH(1) STS _namayesh,R30 STS _namayesh+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 12 TIMES, CODE SIZE REDUCTION:19 WORDS SUBOPT_0x9: STS _namayesh,R30 STS _namayesh+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:10 WORDS SUBOPT_0xA: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje6,R30 STS _badje6+1,R31 LDS R30,_nobat6 LDS R31,_nobat6+1 ADIW R30,1 STS _nobat6,R30 STS _nobat6+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0xB: LDS R30,_nobat6 LDS R31,_nobat6+1 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0xC: ST -Y,R31 ST -Y,R30 LDI R26,LOW(6) LDI R27,0 JMP _LCD_namayesh_go_to_badje ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0xD: SUB R30,R26 SBC R31,R27 ST Y,R30 STD Y+1,R31 LD R26,Y LDD R27,Y+1 CALL _LCD_namayesh_entezar ADIW R28,2 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:10 WORDS SUBOPT_0xE: LDI R30,LOW(1) LDI R31,HIGH(1) STS _badje7,R30 STS _badje7+1,R31 LDS R30,_nobat7 LDS R31,_nobat7+1 ADIW R30,1 STS _nobat7,R30 STS _nobat7+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0xF: LDS R30,_nobat7 LDS R31,_nobat7+1 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x10: ST -Y,R31 ST -Y,R30 LDI R26,LOW(7) LDI R27,0 JMP _LCD_namayesh_go_to_badje ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x11: LDI R30,LOW(0) STS _badje1,R30 STS _badje1+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x12: LDI R30,LOW(0) STS _badje2,R30 STS _badje2+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x13: LDI R30,LOW(0) STS _badje3,R30 STS _badje3+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x14: LDI R30,LOW(0) STS _badje4,R30 STS _badje4+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x15: LDI R30,LOW(0) STS _badje5,R30 STS _badje5+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x16: LDI R30,LOW(0) STS _badje6,R30 STS _badje6+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x17: LDI R30,LOW(0) STS _badje7,R30 STS _badje7+1,R30 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:26 WORDS SUBOPT_0x18: CLR R10 CLR R11 CLR R12 CLR R13 LDI R30,LOW(0) STS _totalcount6,R30 STS _totalcount6+1,R30 STS _nobat6,R30 STS _nobat6+1,R30 STS _totalcount7,R30 STS _totalcount7+1,R30 STS _nobat7,R30 STS _nobat7+1,R30 STS _TotalCount,R30 STS _TotalCount+1,R30 RJMP SUBOPT_0x11 ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x19: CALL __CWD1 CALL __PUTPARD1 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x1A: LDI R30,LOW(0) ST -Y,R30 LDI R26,LOW(0) JMP _lcd_gotoxy ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x1B: CALL _lcd_puts LDI R26,LOW(1000) LDI R27,HIGH(1000) CALL _delay_ms JMP _lcd_clear ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x1C: ST -Y,R30 LDI R26,LOW(0) JMP _lcd_gotoxy ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x1D: IN R30,0x13 ANDI R30,LOW(0x7) MOV R16,R30 CPI R16,7 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x1E: MOV R30,R16 LDI R31,0 CPI R30,LOW(0x6) LDI R26,HIGH(0x6) CPC R31,R26 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:13 WORDS SUBOPT_0x1F: ST -Y,R18 LDD R26,Y+13 LDD R27,Y+13+1 LDD R30,Y+15 LDD R31,Y+15+1 ICALL RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:9 WORDS SUBOPT_0x20: LDD R30,Y+16 LDD R31,Y+16+1 SBIW R30,4 STD Y+16,R30 STD Y+16+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:3 WORDS SUBOPT_0x21: LDD R26,Y+13 LDD R27,Y+13+1 LDD R30,Y+15 LDD R31,Y+15+1 ICALL RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS SUBOPT_0x22: LDD R26,Y+16 LDD R27,Y+16+1 ADIW R26,4 CALL __GETW1P STD Y+6,R30 STD Y+6+1,R31 LDD R26,Y+6 LDD R27,Y+6+1 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS SUBOPT_0x23: LDD R26,Y+16 LDD R27,Y+16+1 ADIW R26,4 CALL __GETW1P STD Y+10,R30 STD Y+10+1,R31 RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x24: MOVW R26,R28 ADIW R26,12 CALL __ADDW2R15 CALL __GETW1P RET ;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:1 WORDS SUBOPT_0x25: CALL __lcd_write_data LDI R26,LOW(3) LDI R27,0 JMP _delay_ms ;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:7 WORDS SUBOPT_0x26: LDI R26,LOW(48) CALL __lcd_write_nibble_G103 __DELAY_USW 200 RET .CSEG _delay_ms: adiw r26,0 breq __delay_ms1 __delay_ms0: __DELAY_USW 0x7D0 wdr sbiw r26,1 brne __delay_ms0 __delay_ms1: ret __ADDW2R15: CLR R0 ADD R26,R15 ADC R27,R0 RET __ANEGW1: NEG R31 NEG R30 SBCI R31,0 RET __CWD1: MOV R22,R31 ADD R22,R22 SBC R22,R22 MOV R23,R22 RET __GETW1P: LD R30,X+ LD R31,X SBIW R26,1 RET __GETW1PF: LPM R0,Z+ LPM R31,Z MOV R30,R0 RET __PUTPARD1: ST -Y,R23 ST -Y,R22 ST -Y,R31 ST -Y,R30 RET __SAVELOCR6: ST -Y,R21 __SAVELOCR5: ST -Y,R20 __SAVELOCR4: ST -Y,R19 __SAVELOCR3: ST -Y,R18 __SAVELOCR2: ST -Y,R17 ST -Y,R16 RET __LOADLOCR6: LDD R21,Y+5 __LOADLOCR5: LDD R20,Y+4 __LOADLOCR4: LDD R19,Y+3 __LOADLOCR3: LDD R18,Y+2 __LOADLOCR2: LDD R17,Y+1 LD R16,Y RET ;END OF CODE MARKER __END_OF_CODE:
18.79274
111
0.588488
827e6bd94b10d3680eb8cdbbf94eead7d737f259
604
asm
Assembly
oeis/006/A006590.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/006/A006590.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/006/A006590.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A006590: a(n) = Sum_{k=1..n} ceiling(n/k). ; Submitted by Jamie Morken(w4) ; 1,3,6,9,13,16,21,24,29,33,38,41,48,51,56,61,67,70,77,80,87,92,97,100,109,113,118,123,130,133,142,145,152,157,162,167,177,180,185,190,199,202,211,214,221,228,233,236,247,251,258,263,270,273,282,287,296,301,306,309,322,325,330,337,345,350,359,362,369,374,383,386,399,402,407,414,421,426,435,438,449,455,460,463,476,481,486,491,500,503,516,521,528,533,538,543,556,559,566,573 mov $1,$0 seq $1,54519 ; Number of increasing arithmetic progressions of nonnegative integers ending in n, including those of length 1 or 2. add $0,$1
75.5
374
0.72351
6103bbfff3bb79749d863807ef697d0cf38277bd
380
asm
Assembly
programs/oeis/180/A180319.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/180/A180319.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/180/A180319.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A180319: Total number of possible standard knight moves on an n X 2n chessboard, if the knight is placed anywhere ; 0,8,52,128,236,376,548,752,988,1256,1556,1888,2252,2648,3076,3536,4028,4552,5108,5696,6316,6968,7652,8368,9116,9896,10708,11552,12428,13336,14276,15248,16252,17288,18356,19456,20588,21752,22948,24176,25436 mul $0,4 bin $0,2 trn $0,2 mov $1,$0 div $1,2 mul $1,4
38
207
0.755263
f57b7babdf9b56414277da59620c1c75c0519031
100
asm
Assembly
flame32-libs/unit-tests/test-and-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
2
2019-08-21T09:16:32.000Z
2020-08-12T12:56:08.000Z
flame32-libs/unit-tests/test-and-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
null
null
null
flame32-libs/unit-tests/test-and-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
null
null
null
#include "../../flame32.asm" ; Tests AND lod 0x12345678 ldl B, 0x0x0000FFFF and A, B ; 0x00005678
11.111111
28
0.69
f5282db09667c33075eba278b02d429474d41251
3,460
asm
Assembly
eurasia/services4/srvinit/devices/sgx/slave_supervisor.use.asm
shaqfu786/GFX_Linux_DDK
f184ac914561fa100a5c92a488df777de8785f93
[ "FSFAP" ]
3
2020-03-13T23:37:00.000Z
2021-09-03T06:34:04.000Z
eurasia/services4/srvinit/devices/sgx/slave_supervisor.use.asm
zzpianoman/GFX_Linux_DDK
f184ac914561fa100a5c92a488df777de8785f93
[ "FSFAP" ]
null
null
null
eurasia/services4/srvinit/devices/sgx/slave_supervisor.use.asm
zzpianoman/GFX_Linux_DDK
f184ac914561fa100a5c92a488df777de8785f93
[ "FSFAP" ]
6
2015-02-05T03:01:01.000Z
2021-07-24T01:07:18.000Z
/***************************************************************************** Name : slave_supervisor.use.asm Title : USE program for handling supervisor tasks Author : Imagination Technologies Created : 08/11/2010 Copyright : 2010 by Imagination Technologies Limited. All rights reserved. No part of this software, either material or conceptual may be copied or distributed, transmitted, transcribed, stored in a retrieval system or translated into any human or computer language in any form by any means, electronic, mechanical, manual or other-wise, or disclosed to third parties without the express written permission of Imagination Technologies Limited, HomePark Industrial Estate, King's Langley, Hertfordshire, WD4 8LZ, U.K. Description : USE program for handling supervisor tasks Program Type: USE assembly language Version : $Revision: 1.1 $ Modifications : $Log: slave_supervisor.use.asm $ *****************************************************************************/ /***************************************************************************** Temporary register usage in supervisor code ------------------------------------------- 6 extra temps are required, r24-r29, for the supervisor code: - 4 for temporary usage in functions - 1 for pclink copy for calls from utils - 1 for pclink + predicate state restore from sprv *****************************************************************************/ #include "usedefs.h" #if defined(SGX_FEATURE_MK_SUPERVISOR) && defined(SGX_FEATURE_MP) .export SlaveSPRVMain; .export SSPRV_Exit; /* Align to the largest cache line size */ .modulealign 32; /***************************************************************************** SlaveSPRVMain routine - Decides which supervisor routine should be run. inputs: r0 - Supervisor task type r1 - Supervisor arg0 r2 - Supervisor arg1 temps: *****************************************************************************/ SlaveSPRVMain: { /* Which supervisor function do we need to call? */ #if defined(FIX_HW_BRN_31620) /* Do we need to do the workaround for BRN31620 */ xor.testz p0, r0, #SGX_UKERNEL_SPRV_BRN_31620; p0 brl SSPRV_BRN31620Inval; #endif .align 2; SSPRV_Exit: /* to be patched */ phas.end #0, #0, pixel, none, perinstance; } #if defined(FIX_HW_BRN_31620) /***************************************************************************** SPRV_BRN31620Inval routine - This routine invalidates the DC cache by causing controlled misses inputs: temps: r25, r26, r27, p1 *****************************************************************************/ SSPRV_BRN31620Inval: { /* Fetch the invalidate mask from memory) */ MK_MEM_ACCESS_BPCACHE(ldad) r5, [SLAVE_PA(sTA3DCtl), #DOFFSET(SGXMK_TA3D_CTL.ui32PDInvalMask[0])], drc0; MK_MEM_ACCESS_BPCACHE(ldad) r6, [SLAVE_PA(sTA3DCtl), #DOFFSET(SGXMK_TA3D_CTL.ui32PDInvalMask[1])], drc0; wdf drc0; /* Refresh the cache lines indicated in the mask */ REFRESH_DC_CACHE(p0, r1, r2, r3, r4, #BRN31620_START_ADDR_LOW, r5, SSPRV_BRN31620Inval0); REFRESH_DC_CACHE(p0, r1, r2, r3, r4, #BRN31620_START_ADDR_HIGH, r6, SSPRV_BRN31620Inval1); /* signal that we have completed the PD cache refresh */ mov r1, g45; WRITECORECONFIG(r1, #(EUR_CR_USE_GLOBCOM2 >> 2), #1, r2); /* return to SlaveSPRVMain */ lapc; } #endif #else nop.end; #endif /* #if defined(SGX_FEATURE_MK_SUPERVISOR) */
31.743119
105
0.595954
4444f07c534aeb36a820368839041f89e6897676
7,631
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1536.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_1536.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_1536.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 %r14 push %r8 push %rbp push %rbx push %rsi lea addresses_WT_ht+0x1b7e6, %r12 nop nop nop nop nop add $53146, %rbp movb $0x61, (%r12) nop nop nop inc %rbp lea addresses_UC_ht+0x1d362, %r14 nop sub $43564, %r10 movw $0x6162, (%r14) nop nop nop nop xor $49792, %rbp lea addresses_WT_ht+0xcd88, %rbp nop nop nop nop dec %rsi mov $0x6162636465666768, %r10 movq %r10, %xmm0 movups %xmm0, (%rbp) nop inc %rsi lea addresses_WC_ht+0x9656, %r8 nop nop nop nop nop cmp $62499, %r12 movb $0x61, (%r8) nop nop nop nop nop inc %rbx lea addresses_A_ht+0xdfb6, %r10 clflush (%r10) nop nop nop nop and %rbp, %rbp mov (%r10), %si nop nop nop nop nop sub %rbp, %rbp lea addresses_D_ht+0x16156, %r12 nop nop nop xor %r10, %r10 movups (%r12), %xmm2 vpextrq $0, %xmm2, %r8 nop cmp $5472, %r12 lea addresses_WC_ht+0x180b3, %r10 nop nop inc %rsi movb (%r10), %r14b nop dec %rsi pop %rsi pop %rbx pop %rbp pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WT+0xf96, %rbp and %r15, %r15 mov $0x5152535455565758, %r8 movq %r8, %xmm1 movups %xmm1, (%rbp) nop inc %r13 // Store lea addresses_A+0xf46d, %r10 add $64079, %r13 movl $0x51525354, (%r10) nop xor $19566, %r10 // REPMOV lea addresses_RW+0xfdd6, %rsi lea addresses_PSE+0xfcd6, %rdi clflush (%rdi) nop nop nop nop nop cmp %rbp, %rbp mov $127, %rcx rep movsw nop nop nop nop inc %rbp // REPMOV lea addresses_A+0xcd84, %rsi lea addresses_WT+0xf956, %rdi nop nop nop nop and %r15, %r15 mov $27, %rcx rep movsb nop dec %r10 // Store lea addresses_D+0xfd30, %r8 nop xor $55968, %rcx movw $0x5152, (%r8) nop sub $10311, %rsi // Store lea addresses_UC+0x18d56, %rcx nop nop nop nop nop xor %rdx, %rdx movb $0x51, (%rcx) nop nop nop sub $9560, %rbp // Load lea addresses_D+0x9f36, %r13 sub $6300, %rdi mov (%r13), %r10 nop nop nop nop nop cmp %rbp, %rbp // REPMOV lea addresses_normal+0x1b79a, %rsi lea addresses_UC+0x68ee, %rdi nop nop nop sub %r10, %r10 mov $45, %rcx rep movsl nop nop nop nop and %r8, %r8 // Faulty Load lea addresses_RW+0x1ad56, %rsi nop nop xor $29660, %r8 movb (%rsi), %cl lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_RW'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_PSE'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_A'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'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 */
30.770161
2,999
0.650505
69fee528ed6c36cd2b808166881cef621515513b
1,265
asm
Assembly
os/adc.asm
ceharris/sbz80
b5b6cbc8fb631e0703b15b0701d66e527bbf9ef7
[ "Apache-2.0" ]
null
null
null
os/adc.asm
ceharris/sbz80
b5b6cbc8fb631e0703b15b0701d66e527bbf9ef7
[ "Apache-2.0" ]
null
null
null
os/adc.asm
ceharris/sbz80
b5b6cbc8fb631e0703b15b0701d66e527bbf9ef7
[ "Apache-2.0" ]
null
null
null
;--------------------------------------------------------------- ; Analog-to-Digital Conversion Support ; ; There are two ADC units in the system. ; ; Unit adc0 is a Maxim 118 8-channel 8-bit ADC with single-ended ; inputs referenced to the +5V power supply. This ADC has a ; parallel bus interface, allowing any of its inputs to be read ; using an IN instruction that addresses the intended channel. ; See channel channel definitions beow. ; ; Unit adc1 is a Microchip 3008 8/4-channel 10-bit ADC. Each ; pair of channels can be used as either two independent single- ; ended input or as a differential input pair. This ADC is ; connected via the SPI interface, and therefore requires a ; call to the supervisor to read any of its inputs. ;---------------------------------------------------------------- adc0_ch0 .equ adc0_base+0 adc0_ch1 .equ adc0_base+1 adc0_ch2 .equ adc0_base+2 adc0_ch3 .equ adc0_base+3 adc0_ch4 .equ adc0_base+4 adc0_ch5 .equ adc0_base+5 adc0_ch6 .equ adc0_base+6 adc0_ch7 .equ adc0_base+7 ; reports the fixed reference voltage
45.178571
77
0.566008
de8a9165f7fd74323432e04ad843ee9af8dc8cc6
7,453
asm
Assembly
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/MCU/orig_7v.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/MCU/orig_7v.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/MCU/orig_7v.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
org 0000h ; MOV P1,#00h ; principal: ;do menor p o maior setb p1.0 ; lcall tempo ; mov p1,#02h ; lcall tempo ; mov p1,#04h ; lcall tempo ; mov p1,#08h ; lcall tempo ; mov p1,#10h ; lcall tempo ; mov p1,#20h ; lcall tempo ; mov p1,#40h ; lcall tempo ; mov p1,#80h ; lcall tempo ; MOV P1,#00h ; lcall tempo ; lcall volta ; ljmp principal ; tempo: mov r6,#155 ; mov r5,#150 ; tempo1: djnz r6,tempo1 ; mov r6,#155 ; djnz r5,tempo1 ; ret ; tempo2: mov r6,#255 ; mov r5,#250 ; tempo3: djnz r6,tempo1 ; mov r6,#255 ; djnz r5,tempo1 ; lcall tempo2 ; djnz r6,tempo1 ; djnz r5,tempo1 ; ret ; tempo_r: mov r6,#55 ; mov r5,#50 ; tempo_rp: djnz r6,tempo_rp; djnz r5,tempo_rp; ret ; volta: ;do maior p o menor setb p1.7 ; lcall tempo ; mov p1,#40h ; lcall tempo ; mov p1,#20h ; lcall tempo ; mov p1,#10h ; lcall tempo ; mov p1,#08h ; lcall tempo ; mov p1,#04h ; lcall tempo ; mov p1,#02h ; lcall tempo ; mov p1,#01h ; lcall tempo ; MOV P1,#00h ; lcall tempo ; lcall volta2 ; volta1: ;abre mov p1,#18h ; lcall tempo ; mov p1,#24h ; lcall tempo ; mov p1,#42h ; lcall tempo ; mov p1,#81h ; lcall tempo ; mov p1,#00h ; lcall tempo ; lcall volta3 ; volta2: ;fecha mov p1,#81h ; lcall tempo ; mov p1,#42h ; lcall tempo ; mov p1,#24h ; lcall tempo ; mov p1,#18h ; lcall tempo ; mov p1,#00h ; lcall tempo ; lcall volta1 ; volta4: ;tetris part1 setb p1.0 ; lcall tempo ; mov p1,#02h ; lcall tempo ; mov p1,#04h ; lcall tempo ; mov p1,#08h ; lcall tempo ; mov p1,#10h ; lcall tempo ; mov p1,#20h ; lcall tempo ; mov p1,#40h ; lcall tempo ; mov p1,#80h ; lcall tempo ; ;tetris part2 mov p1,#81h ; lcall tempo ; mov p1,#82h ; lcall tempo ; mov p1,#84h ; lcall tempo ; mov p1,#88h ; lcall tempo ; mov p1,#90h ; lcall tempo ; mov p1,#10100000b; lcall tempo ; mov p1,#11000000b; lcall tempo ; ;tetris part3 mov p1,#11000001b; lcall tempo ; mov p1,#11000010b; lcall tempo ; mov p1,#11000100b; lcall tempo ; mov p1,#11001000b; lcall tempo ; mov p1,#11010000b; lcall tempo ; mov p1,#11100000b; lcall tempo ; ;tetris part4 mov p1,#11100001b; lcall tempo ; mov p1,#11100010b; lcall tempo ; mov p1,#11100100b; lcall tempo ; mov p1,#11101000b; lcall tempo ; mov p1,#11110000b; lcall tempo ; ;tetris part5 mov p1,#11110001b; lcall tempo ; mov p1,#11110010b; lcall tempo ; mov p1,#11110100b; lcall tempo ; mov p1,#11111000b; lcall tempo ; ;tetris part6 mov p1,#11111001b; lcall tempo ; mov p1,#11111010b; lcall tempo ; mov p1,#11111100b; lcall tempo ; ;tetris part7 mov p1,#11111101b; lcall tempo ; mov p1,#11111110b; lcall tempo ; mov p1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; mov p1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; mov p1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; mov p1,#11111111b; lcall tempo ; ret volta3: lcall volta4 ;chama tetris mov p1,#10101010b; lcall tempo2 ; lcall tempo2 ; lcall tempo2 ; lcall tempo2 ; mov p1,#01010101b; lcall tempo2 ; lcall tempo2 ; lcall tempo2 ; lcall tempo2 ; lcall volta5 ; volta5: ;apaga tudo mov p1,#01010110b; lcall tempo ; mov p1,#01010100b; lcall tempo ; mov p1,#01011000b; lcall tempo ; mov p1,#01010000b; lcall tempo ; mov p1,#01100000b; lcall tempo ; mov p1,#01000000b; lcall tempo ; mov p1,#10000000b; lcall tempo ; MOV P1,#00h ; lcall tempo ; setb p1.7 ; lcall tempo ; mov p1,#40h ; lcall tempo ; mov p1,#20h ; lcall tempo ; mov p1,#10h ; lcall tempo ; mov p1,#08h ; lcall tempo ; mov p1,#04h ; lcall tempo ; mov p1,#02h ; lcall tempo ; mov p1,#01h ; lcall tempo ; MOV P1,#00h ; lcall tempo ; lcall volta6 ; volta6: ;pisca doido mov p1,#10101010b; lcall tempo_r ; mov p1,#01101011b; lcall tempo_r ; mov p1,#01010101b; lcall tempo_r ; mov p1,#10110010b; lcall tempo_r ; mov p1,#11010111b; lcall tempo_r ; mov p1,#10101101b; lcall tempo_r ; mov p1,#10101010b; lcall tempo_r ; mov p1,#01101011b; lcall tempo_r ; mov p1,#01010101b; lcall tempo_r ; mov p1,#10110010b; lcall tempo_r ; mov p1,#11010111b; lcall tempo_r ; mov p1,#10101101b; lcall tempo_r ; mov p1,#10101010b; lcall tempo_r ; mov p1,#01101011b; lcall tempo_r ; mov p1,#01010101b; lcall tempo_r ; mov p1,#10110010b; lcall tempo_r ; mov p1,#11010111b; lcall tempo_r ; mov p1,#10101101b; lcall tempo_r ; lcall principal ; volta7: setb p1.0 ; lcall tempo ; mov p1,#02h ; lcall tempo ; mov p1,#04h ; lcall tempo ; mov p1,#08h ; lcall tempo ; mov p1,#10h ; lcall tempo ; mov p1,#20h ; lcall tempo ; mov p1,#40h ; lcall tempo ; mov p1,#80h ; lcall tempo ; MOV P1,#00h ; lcall tempo ; setb p1.7 ; lcall tempo ; setb p1.6 ; lcall tempo ; setb p1.5 ; lcall tempo ; setb p1.4 ; lcall tempo ; setb p1.3 ; lcall tempo ; setb p1.2 ; lcall tempo ; setb p1.1 ; lcall tempo ; setb p1.0 ; lcall tempo ; mov p1,#00h ; lcall tempo ; MOV P1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; MOV P1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; MOV P1,#11111111b; lcall tempo ; mov p1,#00h ; lcall tempo ; MOV P1,#10111111b; lcall tempo_r ; MOV P1,#10111101b; lcall tempo_r ; MOV P1,#10011101b; lcall tempo_r ; MOV P1,#10011001b; lcall tempo_r ; MOV P1,#10001001b; lcall tempo ; MOV P1,#10000101b; lcall tempo_r ; MOV P1,#10000011b; lcall tempo_r ; MOV P1,#10000101b; lcall tempo_r ; MOV P1,#10001001b; lcall tempo_r ; MOV P1,#10010001b; lcall tempo_r ; MOV P1,#10100001b; lcall tempo_r ; MOV P1,#11000001b; lcall tempo_r ; MOV P1,#10100001b; lcall tempo_r ; MOV P1,#10010001b; lcall tempo_r ; MOV P1,#10001001b; lcall tempo_r ; MOV P1,#10000101b; lcall tempo_r ; MOV P1,#10000011b; lcall tempo_r ; MOV P1,#10000101b; lcall tempo_r ; MOV P1,#10001001b; lcall tempo_r ; MOV P1,#10010001b; lcall tempo_r ; MOV P1,#10100001b; lcall tempo_r ; MOV P1,#11000011b; lcall tempo_r ; MOV P1,#10100011b; lcall tempo_r ; MOV P1,#10010011b; lcall tempo_r ; MOV P1,#10001011b; lcall tempo_r ; MOV P1,#10000111b; lcall tempo_r ; MOV P1,#11000011b; lcall tempo_r ; MOV P1,#11000111b; lcall tempo_r ; MOV P1,#11001101b; lcall tempo_r ; MOV P1,#11011001b; lcall tempo_r ; MOV P1,#11110001b; lcall tempo_r ; MOV P1,#11100011b; lcall tempo_r ; MOV P1,#11110011b; lcall tempo_r ; MOV P1,#10111011b; lcall tempo_r ; MOV P1,#10011111b; lcall tempo_r ; MOV P1,#11001111b; lcall tempo_r ; MOV P1,#11011111b; lcall tempo_r ; MOV P1,#11111111b; lcall tempo_r ; MOV P1,#00h ; lcall tempo_r ; MOV P1,#11111111b; lcall tempo_r ; MOV P1,#00h ; lcall tempo_r ; MOV P1,#11111111b; lcall tempo_r ; MOV P1,#00h ; lcall principal ;
17.413551
32
0.593989
eefa362b4ae2e19ae1c3b66765e9068cfd05fcd0
562
asm
Assembly
oeis/010/A010967.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010967.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010967.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010967: a(n) = binomial coefficient C(n,14). ; 1,15,120,680,3060,11628,38760,116280,319770,817190,1961256,4457400,9657700,20058300,40116600,77558760,145422675,265182525,471435600,818809200,1391975640,2319959400,3796297200,6107086800,9669554100,15084504396,23206929840,35240152720,52860229080,78378960360,114955808528,166871334960,239877544005,341643774795,482320623240,675248872536,937845656300,1292706174900,1768966344600,2403979904200,3245372870670,4353548972850,5804731963800,7694644696200,10142940735900,13298522298180,17345898649800 add $0,14 bin $0,14
93.666667
492
0.868327
91f8b774fddf2421cd30447e3b782cb6d64db810
77
asm
Assembly
test.asm
avengames/superscalar_processor
0f33038a01cbc29497517c11c77e27e927a10542
[ "MIT" ]
1
2021-01-27T08:59:49.000Z
2021-01-27T08:59:49.000Z
test.asm
avengames/superscalar_processor
0f33038a01cbc29497517c11c77e27e927a10542
[ "MIT" ]
null
null
null
test.asm
avengames/superscalar_processor
0f33038a01cbc29497517c11c77e27e927a10542
[ "MIT" ]
1
2021-05-15T10:49:35.000Z
2021-05-15T10:49:35.000Z
mov r0 2 mov r1 3 mov r2 2 mov r2 16 add r0 r1 sub r1 r0 mov r0 r2 add r0 r1
8.555556
9
0.688312
c9235de06862d362df6f260e5f9c157d7db18bb7
718
asm
Assembly
MicroProcessor Lab Programs/2b.asm
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
null
null
null
MicroProcessor Lab Programs/2b.asm
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
1
2018-02-06T10:51:31.000Z
2018-02-06T10:51:31.000Z
MicroProcessor Lab Programs/2b.asm
MyCollegeForums/4thSemISE
7c8b64c594a081954e2a011e1dcac71638d5f9b5
[ "Apache-2.0" ]
3
2018-02-06T10:46:32.000Z
2018-04-23T13:41:07.000Z
assume cs:code, ds:data data segment pa equ 20a0h pb equ 20a1h pc equ 20a2h cr equ 20a3h data ends code segment start: mov ax,data mov ds,ax mov dx,cr mov al,82h out dx,al mov al,01 rpt: mov dx,pa out dx,al call delay ror al,1 push ax mov ah,06h mov dl,0ffh int 21h pop ax jz rpt mov ah,4ch int 21h delay proc mov si,02fffh l2: mov di,066ffh l1: dec di jnz l1 dec si jnz l2 ret delay endp code ends end start
14.653061
25
0.426184
9407b175f0f5010c675243f8e37d7b565f00acd7
707
asm
Assembly
oeis/024/A024346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024346.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024346: Expansion of 1/((1-x)(1-6x)(1-9x)(1-11x)). ; Submitted by Jon Maiga ; 1,27,484,7266,98959,1269177,15642586,187539120,2204181925,25529358855,292445725936,3321943348542,37489352241979,420930326166741,4707254688375814,52473555698990412,583456285162491601,6474264001041114915,71723229661683631900,793513188362290274010,8769668418129253997671,96835589039059111279857,1068514765332430690548274,11783572939458029458583016,129888502707307556793321469,1431196367256151855382352447,15764965781797662800602073416,173610876505782665222151675510,1911485925086815344541206838675 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,9 sub $2,9 mul $3,11 add $3,$1 mul $1,6 add $1,$2 lpe mov $0,$3 div $0,9
39.277778
496
0.818953
bd4bcc4df879c5f7653a12986d75c07617922e18
5,840
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_14796_1281.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_14796_1281.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_14796_1281.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 %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1cc30, %rbp clflush (%rbp) add $25099, %r11 movb (%rbp), %r9b nop and $37681, %rax lea addresses_D_ht+0x1e9d4, %rsi lea addresses_UC_ht+0x159b8, %rdi add $5417, %rbp mov $111, %rcx rep movsl nop sub $20346, %rax lea addresses_D_ht+0x19038, %rcx nop nop nop nop sub %r11, %r11 movups (%rcx), %xmm3 vpextrq $1, %xmm3, %rdi nop nop cmp $60637, %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WT+0x16cb8, %r11 nop xor %r14, %r14 mov $0x5152535455565758, %rcx movq %rcx, (%r11) nop nop nop dec %r14 // REPMOV lea addresses_US+0x1422c, %rsi lea addresses_PSE+0x7cb8, %rdi nop nop nop xor $37635, %rbp mov $72, %rcx rep movsw nop nop nop and %rdi, %rdi // Store lea addresses_UC+0x18888, %rdx nop xor %rcx, %rcx movl $0x51525354, (%rdx) nop nop nop xor %rbp, %rbp // Load mov $0x794, %rcx nop nop and %rax, %rax mov (%rcx), %si and $52053, %rdi // Store lea addresses_UC+0x2608, %rbp nop nop nop inc %r11 movl $0x51525354, (%rbp) inc %rdi // Faulty Load lea addresses_PSE+0x118b8, %rax nop nop nop nop nop sub %r14, %r14 movb (%rax), %dl lea oracles, %rax and $0xff, %rdx shlq $12, %rdx mov (%rax,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_US'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_P'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'33': 14796} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
39.727891
2,999
0.653767
903428a943b5ff04034a44317311e620f4a3b04d
686
asm
Assembly
oeis/142/A142586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142586.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142586: Binomial transform of A014217. ; Submitted by Christian Krause ; 1,2,5,14,39,107,290,779,2079,5522,14615,38579,101634,267347,702455,1844114,4838079,12686507,33254210,87141659,228301839,598026002,1566300455,4101923939,10741568514,28126975907,73647747815,192833044754,504884940879,1321888886747,3460915937090,9061127359979,23723003013759,62108955423122,162606010739255,425713371761939,1114542694481154,2917931891550707,7639287339909335,19999998847654034,52360846642006239,137082815956271627,358888150982622530,939582736503223739,2459862257550304239 mov $1,2 mov $2,1 lpb $0 sub $0,1 add $1,$2 add $2,$1 mov $4,$3 mul $3,2 add $3,1 lpe sub $1,$4 mov $0,$1 sub $0,1
38.111111
483
0.813411
d088da2d3afd9a871e3abe1d09867edd2777d684
685
asm
Assembly
programs/oeis/070/A070605.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070605.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070605.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A070605: n^5 mod 21. ; 0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9,10,20,0,1,11,12,16,17,6,7,8,18,19,2,3,13,14,15,4,5,9 pow $0,5 mod $0,21 mov $1,$0
97.857143
631
0.59854
84bf6dc68f81f195403ba6e65d5698bfff3f8853
509
asm
Assembly
oeis/077/A077597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077597: Coefficient of x in the n-th Moebius polynomial (A074586), M(n,x), which satisfies M(n,-1)=mu(n) the Moebius function of n. ; Submitted by Jamie Morken(s4) ; 0,2,4,7,9,13,15,19,22,26,28,34,36,40,44,49,51,57,59,65,69,73,75,83,86,90,94,100,102,110,112,118,122,126,130,139,141,145,149,157,159,167,169,175,181,185,187,197,200,206,210,216,218,226,230,238,242,246,248,260 add $0,1 mov $2,$0 lpb $0 mov $0,$2 add $1,1 add $3,1 div $0,$3 sub $0,$3 add $1,$0 add $1,$0 lpe mov $0,$1 sub $0,1
28.277778
209
0.650295
65295cd632ef8819f71097772504143397915bf0
730
asm
Assembly
oeis/228/A228210.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/228/A228210.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/228/A228210.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A228210: x-values in the solutions to x^2 - 5y^2 = 44. ; Submitted by Christian Krause ; 7,8,13,17,32,43,83,112,217,293,568,767,1487,2008,3893,5257,10192,13763,26683,36032,69857,94333,182888,246967,478807,646568,1253533,1692737,3281792,4431643,8591843,11602192,22493737,30374933,58889368,79522607,154174367,208192888,403633733,545056057,1056726832,1426975283,2766546763,3735869792,7242913457,9780634093,18962193608,25606032487,49643667367,67037463368,129968808493,175506357617,340262758112,459481609483,890819465843,1202938470832,2332195639417,3149333803013,6105767452408,8245062938207 lpb $0 mov $2,$0 sub $0,1 seq $2,203976 ; a(n) = 3*a(n-2) - a(n-4), a(0)=0, a(1)=1, a(2)=5, a(3)=4. add $1,$2 lpe mov $0,$1 add $0,7
56.153846
498
0.771233
16717df99d90702cfa7dac3020ee1d72f9442252
583
asm
Assembly
oeis/107/A107230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/107/A107230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/107/A107230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A107230: A number triangle of inverse Chebyshev transforms. ; Submitted by Jon Maiga ; 1,1,1,2,2,1,3,6,3,1,6,12,12,4,1,10,30,30,20,5,1,20,60,90,60,30,6,1,35,140,210,210,105,42,7,1,70,280,560,560,420,168,56,8,1,126,630,1260,1680,1260,756,252,72,9,1,252,1260,3150,4200,4200,2520,1260,360,90,10,1,462,2772,6930,11550,11550,9240,4620,1980,495,110,11,1,924,5544,16632,27720,34650,27720,18480,7920,2970,660,132,12,1,1716,12012,36036,72072,90090,90090,60060,34320,12870 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe bin $1,$0 mov $0,$2 div $2,2 bin $0,$2 mul $1,$0 mov $0,$1
34.294118
377
0.689537
b2ce470a845178bffb382f51f7c01476e97c7592
1,128
asm
Assembly
engine/drawPlayer.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
24
2018-05-17T05:55:38.000Z
2021-12-30T10:22:45.000Z
engine/drawPlayer.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
1
2018-06-27T11:08:01.000Z
2018-06-27T11:08:01.000Z
engine/drawPlayer.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
3
2018-05-19T03:47:19.000Z
2021-06-01T12:33:32.000Z
; TIMEPILOT ; drawing Player .proc drawPlayer lda playerFrameDraw ; 0 = we dont need to redraw player bne @+ rts @ ldx player.currentFrame dec playerFrameDraw ; 1-> 0 ;X - frame animation number 0..15 ;layout offset bits meaning ;9876543210 ;bbbbssffff ; b - byte number ; s - sprite number ; f - frame number .macro node solo lda dataSpritePlayer+$000+(:1<<6),x and playerMask+:1 sta bufPM0+63-8+:1 lda dataSpritePlayer+$010+(:1<<6),x and playerMask+:1 sta bufPM1+63-8+:1 lda dataSpritePlayer+$020+(:1<<6),x and playerMask+16+:1 sta bufPM2+63-8+:1 lda dataSpritePlayer+$030+(:1<<6),x and playerMask+16+:1 sta bufPM3+63-8+:1 .endm .rept 16 node .R .endr rts .endp .proc hidePlayer lda #0 sta hposp0 sta hposp1 sta hposp2 sta hposp3 rts .endp .proc hideMissiles lda #0 sta hposm0 sta hposm1 sta hposm2 sta hposm3 rts .endp .proc showPlayer lda #120 sta hposp0 lda #120 sta hposp1 lda #128 sta hposp2 lda #128 sta hposp3 lda #1 sta playerFrameDraw rts .endp
15.04
59
0.626773
091d98576db7755b03790186000ef295548f2ecf
16
asm
Assembly
src/main/fragment/mos6502-common/vbsxx_lt_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vbsxx_lt_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vbsxx_lt_0_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
cpx #0 bmi {la1}
8
9
0.625
3a0508fdfcd1e02a7ef951623bf444e4201df577
7,403
asm
Assembly
03 SoliditySamples-master/old/simple/contracts/token.asm
JUANLUNABLANCO/BLOCKCHAIN_COURSES
1428edad0a37f36464a46c8df44a30ef7da37e9d
[ "MIT" ]
null
null
null
03 SoliditySamples-master/old/simple/contracts/token.asm
JUANLUNABLANCO/BLOCKCHAIN_COURSES
1428edad0a37f36464a46c8df44a30ef7da37e9d
[ "MIT" ]
null
null
null
03 SoliditySamples-master/old/simple/contracts/token.asm
JUANLUNABLANCO/BLOCKCHAIN_COURSES
1428edad0a37f36464a46c8df44a30ef7da37e9d
[ "MIT" ]
null
null
null
======= token.sol:Token ======= EVM assembly: /* "token.sol":31:697 contract Token { ... */ mstore(0x40, 0x60) /* "token.sol":262:333 function Token() public { ... */ jumpi(tag_1, iszero(callvalue)) 0x0 dup1 revert tag_1: tag_2: /* "token.sol":320:325 10000 */ 0x2710 /* "token.sol":297:305 balances */ 0x0 /* "token.sol":297:317 balances[msg.sender] */ dup1 /* "token.sol":306:316 msg.sender */ caller /* "token.sol":297:317 balances[msg.sender] */ 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add swap1 dup2 mstore 0x20 add 0x0 keccak256 /* "token.sol":297:325 balances[msg.sender] = 10000 */ dup2 swap1 sstore pop /* "token.sol":262:333 function Token() public { ... */ tag_3: /* "token.sol":31:697 contract Token { ... */ tag_4: dataSize(sub_0) dup1 dataOffset(sub_0) 0x0 codecopy 0x0 return stop sub_0: assembly { /* "token.sol":31:697 contract Token { ... */ mstore(0x40, 0x60) calldataload(0x0) 0x100000000000000000000000000000000000000000000000000000000 swap1 div 0xffffffff and dup1 0x27e235e3 eq tag_2 jumpi dup1 0xa9059cbb eq tag_3 jumpi tag_1: 0x0 dup1 revert /* "token.sol":54:95 mapping (address => uint) public balances */ tag_2: jumpi(tag_4, iszero(callvalue)) 0x0 dup1 revert tag_4: tag_5 0x4 dup1 dup1 calldataload 0xffffffffffffffffffffffffffffffffffffffff and swap1 0x20 add swap1 swap2 swap1 pop pop jump(tag_6) tag_5: mload(0x40) dup1 dup3 dup2 mstore 0x20 add swap2 pop pop mload(0x40) dup1 swap2 sub swap1 return /* "token.sol":379:694 function transfer(address receiver, uint amount) public returns(bool sufficient) { ... */ tag_3: jumpi(tag_7, iszero(callvalue)) 0x0 dup1 revert tag_7: tag_8 0x4 dup1 dup1 calldataload 0xffffffffffffffffffffffffffffffffffffffff and swap1 0x20 add swap1 swap2 swap1 dup1 calldataload swap1 0x20 add swap1 swap2 swap1 pop pop jump(tag_9) tag_8: mload(0x40) dup1 dup3 iszero iszero iszero iszero dup2 mstore 0x20 add swap2 pop pop mload(0x40) dup1 swap2 sub swap1 return /* "token.sol":54:95 mapping (address => uint) public balances */ tag_6: mstore(0x20, 0x0) dup1 0x0 mstore keccak256(0x0, 0x40) 0x0 swap2 pop swap1 pop sload dup2 jump // out /* "token.sol":379:694 function transfer(address receiver, uint amount) public returns(bool sufficient) { ... */ tag_9: /* "token.sol":443:458 bool sufficient */ 0x0 /* "token.sol":498:504 amount */ dup2 /* "token.sol":475:483 balances */ 0x0 /* "token.sol":475:495 balances[msg.sender] */ dup1 /* "token.sol":484:494 msg.sender */ caller /* "token.sol":475:495 balances[msg.sender] */ 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add swap1 dup2 mstore 0x20 add 0x0 keccak256 sload /* "token.sol":475:504 balances[msg.sender] < amount */ lt /* "token.sol":471:523 if (balances[msg.sender] < amount) ... */ iszero tag_11 jumpi /* "token.sol":518:523 false */ 0x0 /* "token.sol":511:523 return false */ swap1 pop jump(tag_10) /* "token.sol":471:523 if (balances[msg.sender] < amount) ... */ tag_11: /* "token.sol":562:568 amount */ dup2 /* "token.sol":538:546 balances */ 0x0 /* "token.sol":538:558 balances[msg.sender] */ dup1 /* "token.sol":547:557 msg.sender */ caller /* "token.sol":538:558 balances[msg.sender] */ 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add swap1 dup2 mstore 0x20 add 0x0 keccak256 0x0 /* "token.sol":538:568 balances[msg.sender] -= amount */ dup3 dup3 sload sub swap3 pop pop dup2 swap1 sstore pop /* "token.sol":601:607 amount */ dup2 /* "token.sol":579:587 balances */ 0x0 /* "token.sol":579:597 balances[receiver] */ dup1 /* "token.sol":588:596 receiver */ dup6 /* "token.sol":579:597 balances[receiver] */ 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add swap1 dup2 mstore 0x20 add 0x0 keccak256 0x0 /* "token.sol":579:607 balances[receiver] += amount */ dup3 dup3 sload add swap3 pop pop dup2 swap1 sstore pop /* "token.sol":622:660 Transfer(msg.sender, receiver, amount) */ 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef /* "token.sol":631:641 msg.sender */ caller /* "token.sol":643:651 receiver */ dup5 /* "token.sol":653:659 amount */ dup5 /* "token.sol":622:660 Transfer(msg.sender, receiver, amount) */ mload(0x40) dup1 dup5 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add dup4 0xffffffffffffffffffffffffffffffffffffffff and 0xffffffffffffffffffffffffffffffffffffffff and dup2 mstore 0x20 add dup3 dup2 mstore 0x20 add swap4 pop pop pop pop mload(0x40) dup1 swap2 sub swap1 log1 /* "token.sol":682:686 true */ 0x1 /* "token.sol":675:686 return true */ swap1 pop /* "token.sol":379:694 function transfer(address receiver, uint amount) public returns(bool sufficient) { ... */ tag_10: swap3 swap2 pop pop jump // out auxdata: 0xa165627a7a723058206eeb5ce99ecaedf1e1d69e2be9f2b6aff6498dc1892a8884a484b4dff65ce9730029 }
20.450276
122
0.510739
4165488a3d9cfdfb49ce5f2c56d699c8b7eea6a3
280
asm
Assembly
libsrc/time/spectrum/clock.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/time/spectrum/clock.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/time/spectrum/clock.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; ; clock() ; Goodness knows it this is right..ages since ; I used a spectrum... ; ; djm 12/1/2000 ; ; ------ ; $Id: clock.asm,v 1.5 2016-06-10 21:14:50 dom Exp $ ; SECTION code_clib PUBLIC clock PUBLIC _clock .clock ._clock ld hl,(23672) ld a,(23674) ld e,a ld d,0 ret
12.173913
52
0.625
d9659a8d9387560f95a994e66d7071c1cb6970ae
21,970
asm
Assembly
build/default/production/alarm.asm
AlphaFelix/PBLE
21179cbafae575d25ec1cc9a746aab709ce0ea4d
[ "MIT" ]
null
null
null
build/default/production/alarm.asm
AlphaFelix/PBLE
21179cbafae575d25ec1cc9a746aab709ce0ea4d
[ "MIT" ]
null
null
null
build/default/production/alarm.asm
AlphaFelix/PBLE
21179cbafae575d25ec1cc9a746aab709ce0ea4d
[ "MIT" ]
null
null
null
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.6.0 #9615 (MINGW64) ;-------------------------------------------------------- ; PIC16 port for the Microchip 16-bit core micros ;-------------------------------------------------------- list p=18f4550 radix dec ;-------------------------------------------------------- ; public variables in this module ;-------------------------------------------------------- global _testAlarmHigh global _testAlarmLow global _controlAlarms ;-------------------------------------------------------- ; extern variables in this module ;-------------------------------------------------------- extern _ledOn extern _ledOff extern _ledBlink extern _getAlarmLow extern _getAlarmHigh extern _adcScale extern _BCD2UpperCh extern _BCD2LowerCh extern _rtcRead extern _serialSend extern _serialString ;-------------------------------------------------------- ; Equates to used internal registers ;-------------------------------------------------------- STATUS equ 0xfd8 WREG equ 0xfe8 FSR1L equ 0xfe1 FSR2L equ 0xfd9 POSTINC1 equ 0xfe6 POSTDEC1 equ 0xfe5 PREINC1 equ 0xfe4 PLUSW2 equ 0xfdb PRODL equ 0xff3 idata _alarmNewH0 db 0x00 _alarmAntH0 db 0x01 _alarmNewH1 db 0x00 _alarmAntH1 db 0x01 _alarmNewL0 db 0x00 _alarmAntL0 db 0x01 _alarmNewL1 db 0x00 _alarmAntL1 db 0x01 ; Internal registers .registers udata_ovr 0x0000 r0x00 res 1 r0x01 res 1 r0x02 res 1 r0x03 res 1 r0x04 res 1 r0x05 res 1 r0x06 res 1 r0x07 res 1 r0x08 res 1 r0x09 res 1 r0x0a res 1 r0x0b res 1 r0x0c res 1 r0x0d res 1 r0x0e res 1 ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- ; I code from now on! ; ; Starting pCode block S_alarm__controlAlarms code _controlAlarms: ; .line 32; alarm.c void controlAlarms(void){ MOVFF FSR2L, POSTDEC1 MOVFF FSR1L, FSR2L MOVFF r0x00, POSTDEC1 MOVFF r0x01, POSTDEC1 MOVFF r0x02, POSTDEC1 MOVFF r0x03, POSTDEC1 MOVFF r0x04, POSTDEC1 MOVFF r0x05, POSTDEC1 MOVFF r0x06, POSTDEC1 MOVFF r0x07, POSTDEC1 MOVFF r0x08, POSTDEC1 MOVFF r0x09, POSTDEC1 MOVFF r0x0a, POSTDEC1 MOVFF r0x0b, POSTDEC1 MOVFF r0x0c, POSTDEC1 MOVFF r0x0d, POSTDEC1 MOVFF r0x0e, POSTDEC1 ; .line 34; alarm.c alarmNewH0 = testAlarmHigh(0); MOVLW 0x00 MOVWF POSTDEC1 CALL _testAlarmHigh BANKSEL _alarmNewH0 MOVWF _alarmNewH0, B MOVF POSTINC1, F ; .line 35; alarm.c alarmNewL0 = testAlarmLow(0); MOVLW 0x00 MOVWF POSTDEC1 CALL _testAlarmLow BANKSEL _alarmNewL0 MOVWF _alarmNewL0, B MOVF POSTINC1, F ; .line 36; alarm.c alarmNewH1 = testAlarmHigh(1); MOVLW 0x01 MOVWF POSTDEC1 CALL _testAlarmHigh BANKSEL _alarmNewH1 MOVWF _alarmNewH1, B MOVF POSTINC1, F ; .line 37; alarm.c alarmNewL1 = testAlarmLow(1); MOVLW 0x01 MOVWF POSTDEC1 CALL _testAlarmLow BANKSEL _alarmNewL1 MOVWF _alarmNewL1, B MOVF POSTINC1, F BANKSEL _alarmNewL0 ; .line 39; alarm.c if(alarmNewL0 == 1) MOVF _alarmNewL0, W, B XORLW 0x01 BNZ _00132_DS_ ; .line 40; alarm.c ledBlink(0); MOVLW 0x00 MOVWF POSTDEC1 CALL _ledBlink MOVF POSTINC1, F _00132_DS_: BANKSEL _alarmNewH0 ; .line 41; alarm.c if(alarmNewH0 == 1) MOVF _alarmNewH0, W, B XORLW 0x01 BNZ _00134_DS_ ; .line 42; alarm.c ledOn(0); MOVLW 0x00 MOVWF POSTDEC1 CALL _ledOn MOVF POSTINC1, F _00134_DS_: ; .line 43; alarm.c if(alarmNewH0 != alarmAntH0 & alarmNewH0 == 1) CLRF r0x00 BANKSEL _alarmNewH0 MOVF _alarmNewH0, W, B BANKSEL _alarmAntH0 XORWF _alarmAntH0, W, B BNZ _00213_DS_ INCF r0x00, F _00213_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F CLRF r0x01 BANKSEL _alarmNewH0 MOVF _alarmNewH0, W, B XORLW 0x01 BNZ _00215_DS_ INCF r0x01, F _00215_DS_: MOVF r0x00, W ANDWF r0x01, F MOVF r0x01, W BZ _00136_DS_ ; .line 45; alarm.c serialString("Alarm High 0 Acionado"); MOVLW UPPER(___str_0) MOVWF r0x02 MOVLW HIGH(___str_0) MOVWF r0x01 MOVLW LOW(___str_0) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 46; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00136_DS_: ; .line 48; alarm.c if(alarmNewH0 != alarmAntH0 & alarmNewH0 == 0) CLRF r0x00 BANKSEL _alarmNewH0 MOVF _alarmNewH0, W, B BANKSEL _alarmAntH0 XORWF _alarmAntH0, W, B BNZ _00217_DS_ INCF r0x00, F _00217_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewH0 MOVF _alarmNewH0, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00138_DS_ ; .line 50; alarm.c serialString("Alarm High 0 Desligado"); MOVLW UPPER(___str_1) MOVWF r0x02 MOVLW HIGH(___str_1) MOVWF r0x01 MOVLW LOW(___str_1) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 51; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00138_DS_: ; .line 53; alarm.c if(alarmNewL0 != alarmAntL0 & alarmNewL0 == 1) CLRF r0x00 BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B BANKSEL _alarmAntL0 XORWF _alarmAntL0, W, B BNZ _00219_DS_ INCF r0x00, F _00219_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F CLRF r0x01 BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B XORLW 0x01 BNZ _00221_DS_ INCF r0x01, F _00221_DS_: MOVF r0x00, W ANDWF r0x01, F MOVF r0x01, W BZ _00140_DS_ ; .line 55; alarm.c serialString("Alarm Low 0 Acionado"); MOVLW UPPER(___str_2) MOVWF r0x02 MOVLW HIGH(___str_2) MOVWF r0x01 MOVLW LOW(___str_2) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 56; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00140_DS_: ; .line 58; alarm.c if(alarmNewL0 != alarmAntL0 & alarmNewL0 == 0) CLRF r0x00 BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B BANKSEL _alarmAntL0 XORWF _alarmAntL0, W, B BNZ _00223_DS_ INCF r0x00, F _00223_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00142_DS_ ; .line 60; alarm.c serialString("Alarm Low 0 Desligado"); MOVLW UPPER(___str_3) MOVWF r0x02 MOVLW HIGH(___str_3) MOVWF r0x01 MOVLW LOW(___str_3) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 61; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00142_DS_: BANKSEL _alarmNewH0 ; .line 63; alarm.c if(alarmNewH0 == 0 & alarmNewL0 == 0) MOVF _alarmNewH0, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00144_DS_ ; .line 65; alarm.c ledOff(0); MOVLW 0x00 MOVWF POSTDEC1 CALL _ledOff MOVF POSTINC1, F _00144_DS_: BANKSEL _alarmNewL1 ; .line 67; alarm.c if(alarmNewL1 == 1) MOVF _alarmNewL1, W, B XORLW 0x01 BNZ _00146_DS_ ; .line 68; alarm.c ledBlink(1); MOVLW 0x01 MOVWF POSTDEC1 CALL _ledBlink MOVF POSTINC1, F _00146_DS_: BANKSEL _alarmNewH1 ; .line 69; alarm.c if(alarmNewH1 == 1) MOVF _alarmNewH1, W, B XORLW 0x01 BNZ _00148_DS_ ; .line 70; alarm.c ledOn(1); MOVLW 0x01 MOVWF POSTDEC1 CALL _ledOn MOVF POSTINC1, F _00148_DS_: ; .line 71; alarm.c if(alarmNewH1 != alarmAntH1 & alarmNewH1 == 1) CLRF r0x00 BANKSEL _alarmNewH1 MOVF _alarmNewH1, W, B BANKSEL _alarmAntH1 XORWF _alarmAntH1, W, B BNZ _00229_DS_ INCF r0x00, F _00229_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F CLRF r0x01 BANKSEL _alarmNewH1 MOVF _alarmNewH1, W, B XORLW 0x01 BNZ _00231_DS_ INCF r0x01, F _00231_DS_: MOVF r0x00, W ANDWF r0x01, F MOVF r0x01, W BZ _00150_DS_ ; .line 73; alarm.c serialString("Alarm High 1 Acionado"); MOVLW UPPER(___str_4) MOVWF r0x02 MOVLW HIGH(___str_4) MOVWF r0x01 MOVLW LOW(___str_4) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 74; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00150_DS_: ; .line 76; alarm.c if(alarmNewH1 != alarmAntH1 & alarmNewH1 == 0) CLRF r0x00 BANKSEL _alarmNewH1 MOVF _alarmNewH1, W, B BANKSEL _alarmAntH1 XORWF _alarmAntH1, W, B BNZ _00233_DS_ INCF r0x00, F _00233_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewH1 MOVF _alarmNewH1, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00152_DS_ ; .line 78; alarm.c serialString("Alarm High 1 Desligado"); MOVLW UPPER(___str_5) MOVWF r0x02 MOVLW HIGH(___str_5) MOVWF r0x01 MOVLW LOW(___str_5) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 79; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00152_DS_: ; .line 81; alarm.c if(alarmNewL1 != alarmAntL1 & alarmNewL1 == 1) CLRF r0x00 BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B BANKSEL _alarmAntL1 XORWF _alarmAntL1, W, B BNZ _00235_DS_ INCF r0x00, F _00235_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F CLRF r0x01 BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B XORLW 0x01 BNZ _00237_DS_ INCF r0x01, F _00237_DS_: MOVF r0x00, W ANDWF r0x01, F MOVF r0x01, W BZ _00154_DS_ ; .line 83; alarm.c serialString("Alarm Low 1 Acionado"); MOVLW UPPER(___str_6) MOVWF r0x02 MOVLW HIGH(___str_6) MOVWF r0x01 MOVLW LOW(___str_6) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 84; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00154_DS_: ; .line 86; alarm.c if(alarmNewL1 != alarmAntL1 & alarmNewL1 == 0) CLRF r0x00 BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B BANKSEL _alarmAntL1 XORWF _alarmAntL1, W, B BNZ _00239_DS_ INCF r0x00, F _00239_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00156_DS_ ; .line 88; alarm.c serialString("Alarm Low 1 Desligado"); MOVLW UPPER(___str_7) MOVWF r0x02 MOVLW HIGH(___str_7) MOVWF r0x01 MOVLW LOW(___str_7) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 89; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00156_DS_: BANKSEL _alarmNewH1 ; .line 91; alarm.c if(alarmNewH1 == 0 & alarmNewL1 == 0) MOVF _alarmNewH1, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W ANDWF r0x00, F MOVF r0x00, W BZ _00158_DS_ ; .line 93; alarm.c ledOff(1); MOVLW 0x01 MOVWF POSTDEC1 CALL _ledOff MOVF POSTINC1, F _00158_DS_: ; .line 95; alarm.c if(alarmNewL0 != alarmAntL0 | alarmNewH0 != alarmAntH0 | alarmNewL1 != alarmAntL1 | alarmNewH1 != alarmAntH1) CLRF r0x00 BANKSEL _alarmNewL0 MOVF _alarmNewL0, W, B BANKSEL _alarmAntL0 XORWF _alarmAntL0, W, B BNZ _00241_DS_ INCF r0x00, F _00241_DS_: MOVF r0x00, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x00 RLCF r0x00, F CLRF r0x01 BANKSEL _alarmNewH0 MOVF _alarmNewH0, W, B BANKSEL _alarmAntH0 XORWF _alarmAntH0, W, B BNZ _00243_DS_ INCF r0x01, F _00243_DS_: MOVF r0x01, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W IORWF r0x00, F CLRF r0x01 BANKSEL _alarmNewL1 MOVF _alarmNewL1, W, B BANKSEL _alarmAntL1 XORWF _alarmAntL1, W, B BNZ _00246_DS_ INCF r0x01, F _00246_DS_: MOVF r0x01, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W IORWF r0x00, F CLRF r0x01 BANKSEL _alarmNewH1 MOVF _alarmNewH1, W, B BANKSEL _alarmAntH1 XORWF _alarmAntH1, W, B BNZ _00249_DS_ INCF r0x01, F _00249_DS_: MOVF r0x01, W BSF STATUS, 0 TSTFSZ WREG BCF STATUS, 0 CLRF r0x01 RLCF r0x01, F MOVF r0x01, W IORWF r0x00, F MOVF r0x00, W BTFSC STATUS, 2 BRA _00160_DS_ ; .line 97; alarm.c min = rtcRead(0x01); MOVLW 0x01 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x00 MOVF POSTINC1, F CLRF r0x01 ; .line 98; alarm.c hour = rtcRead(0x02); MOVLW 0x02 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x02 MOVF POSTINC1, F CLRF r0x03 ; .line 99; alarm.c sec = rtcRead(0x00); MOVLW 0x00 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x04 MOVF POSTINC1, F CLRF r0x05 ; .line 100; alarm.c date = rtcRead(0x04); MOVLW 0x04 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x06 MOVF POSTINC1, F CLRF r0x07 ; .line 101; alarm.c month = rtcRead(0x05); MOVLW 0x05 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x08 MOVF POSTINC1, F CLRF r0x09 ; .line 102; alarm.c year = rtcRead(0x06); MOVLW 0x06 MOVWF POSTDEC1 CALL _rtcRead MOVWF r0x0a MOVF POSTINC1, F CLRF r0x0b ; .line 103; alarm.c serialString("Time: "); MOVLW UPPER(___str_8) MOVWF r0x0e MOVLW HIGH(___str_8) MOVWF r0x0d MOVLW LOW(___str_8) MOVWF r0x0c MOVF r0x0e, W MOVWF POSTDEC1 MOVF r0x0d, W MOVWF POSTDEC1 MOVF r0x0c, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 104; alarm.c serialSend(BCD2UpperCh(hour)); MOVF r0x02, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x03 MOVF POSTINC1, F MOVF r0x03, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 105; alarm.c serialSend(BCD2LowerCh(hour)); MOVF r0x02, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x02 MOVF POSTINC1, F MOVF r0x02, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 106; alarm.c serialSend(':'); MOVLW 0x3a MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 107; alarm.c serialSend(BCD2UpperCh(min)); MOVF r0x00, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x01 MOVF POSTINC1, F MOVF r0x01, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 108; alarm.c serialSend(BCD2LowerCh(min)); MOVF r0x00, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 109; alarm.c serialSend(':'); MOVLW 0x3a MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 110; alarm.c serialSend(BCD2UpperCh(sec)); MOVF r0x04, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 111; alarm.c serialSend(BCD2LowerCh(sec)); MOVF r0x04, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 112; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 113; alarm.c serialString("Date: "); MOVLW UPPER(___str_9) MOVWF r0x02 MOVLW HIGH(___str_9) MOVWF r0x01 MOVLW LOW(___str_9) MOVWF r0x00 MOVF r0x02, W MOVWF POSTDEC1 MOVF r0x01, W MOVWF POSTDEC1 MOVF r0x00, W MOVWF POSTDEC1 CALL _serialString MOVLW 0x03 ADDWF FSR1L, F ; .line 114; alarm.c serialSend(BCD2UpperCh(date)); MOVF r0x06, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 115; alarm.c serialSend(BCD2LowerCh(date)); MOVF r0x06, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 116; alarm.c serialSend('/'); MOVLW 0x2f MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 117; alarm.c serialSend(BCD2UpperCh(month)); MOVF r0x08, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 118; alarm.c serialSend(BCD2LowerCh(month)); MOVF r0x08, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 119; alarm.c serialSend('/'); MOVLW 0x2f MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 120; alarm.c serialSend(BCD2UpperCh(year)); MOVF r0x0a, W MOVWF POSTDEC1 CALL _BCD2UpperCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 121; alarm.c serialSend(BCD2LowerCh(year)); MOVF r0x0a, W MOVWF POSTDEC1 CALL _BCD2LowerCh MOVWF r0x00 MOVF POSTINC1, F MOVF r0x00, W MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F ; .line 122; alarm.c serialSend(13); MOVLW 0x0d MOVWF POSTDEC1 CALL _serialSend MOVF POSTINC1, F _00160_DS_: ; .line 124; alarm.c alarmAntL1 = alarmNewL1; MOVFF _alarmNewL1, _alarmAntL1 ; .line 125; alarm.c alarmAntH1 = alarmNewH1; MOVFF _alarmNewH1, _alarmAntH1 ; .line 126; alarm.c alarmAntL0 = alarmNewL0; MOVFF _alarmNewL0, _alarmAntL0 ; .line 127; alarm.c alarmAntH0 = alarmNewH0; MOVFF _alarmNewH0, _alarmAntH0 MOVFF PREINC1, r0x0e MOVFF PREINC1, r0x0d MOVFF PREINC1, r0x0c MOVFF PREINC1, r0x0b MOVFF PREINC1, r0x0a MOVFF PREINC1, r0x09 MOVFF PREINC1, r0x08 MOVFF PREINC1, r0x07 MOVFF PREINC1, r0x06 MOVFF PREINC1, r0x05 MOVFF PREINC1, r0x04 MOVFF PREINC1, r0x03 MOVFF PREINC1, r0x02 MOVFF PREINC1, r0x01 MOVFF PREINC1, r0x00 MOVFF PREINC1, FSR2L RETURN ; ; Starting pCode block S_alarm__testAlarmLow code _testAlarmLow: ; .line 23; alarm.c char testAlarmLow(char alarm){ MOVFF FSR2L, POSTDEC1 MOVFF FSR1L, FSR2L MOVFF r0x00, POSTDEC1 MOVFF r0x01, POSTDEC1 MOVFF r0x02, POSTDEC1 MOVFF r0x03, POSTDEC1 MOVLW 0x02 MOVFF PLUSW2, r0x00 ; .line 24; alarm.c if(adcScale(POT, 1023) <= getAlarmLow(alarm)){ MOVLW 0x03 MOVWF POSTDEC1 MOVLW 0xff MOVWF POSTDEC1 MOVLW 0x02 MOVWF POSTDEC1 CALL _adcScale MOVWF r0x01 MOVFF PRODL, r0x02 MOVLW 0x03 ADDWF FSR1L, F MOVF r0x00, W MOVWF POSTDEC1 CALL _getAlarmLow MOVWF r0x00 MOVFF PRODL, r0x03 MOVF POSTINC1, F MOVF r0x03, W ADDLW 0x80 MOVWF PRODL MOVF r0x02, W ADDLW 0x80 SUBWF PRODL, W BNZ _00126_DS_ MOVF r0x01, W SUBWF r0x00, W _00126_DS_: BNC _00119_DS_ ; .line 25; alarm.c return 1; MOVLW 0x01 BRA _00121_DS_ _00119_DS_: ; .line 28; alarm.c return 0; CLRF WREG _00121_DS_: MOVFF PREINC1, r0x03 MOVFF PREINC1, r0x02 MOVFF PREINC1, r0x01 MOVFF PREINC1, r0x00 MOVFF PREINC1, FSR2L RETURN ; ; Starting pCode block S_alarm__testAlarmHigh code _testAlarmHigh: ; .line 14; alarm.c char testAlarmHigh(char alarm){ MOVFF FSR2L, POSTDEC1 MOVFF FSR1L, FSR2L MOVFF r0x00, POSTDEC1 MOVFF r0x01, POSTDEC1 MOVFF r0x02, POSTDEC1 MOVFF r0x03, POSTDEC1 MOVLW 0x02 MOVFF PLUSW2, r0x00 ; .line 15; alarm.c if(adcScale(POT, 1023) >= getAlarmHigh(alarm)){ MOVLW 0x03 MOVWF POSTDEC1 MOVLW 0xff MOVWF POSTDEC1 MOVLW 0x02 MOVWF POSTDEC1 CALL _adcScale MOVWF r0x01 MOVFF PRODL, r0x02 MOVLW 0x03 ADDWF FSR1L, F MOVF r0x00, W MOVWF POSTDEC1 CALL _getAlarmHigh MOVWF r0x00 MOVFF PRODL, r0x03 MOVF POSTINC1, F MOVF r0x02, W ADDLW 0x80 MOVWF PRODL MOVF r0x03, W ADDLW 0x80 SUBWF PRODL, W BNZ _00113_DS_ MOVF r0x00, W SUBWF r0x01, W _00113_DS_: BNC _00106_DS_ ; .line 16; alarm.c return 1; MOVLW 0x01 BRA _00108_DS_ _00106_DS_: ; .line 19; alarm.c return 0; CLRF WREG _00108_DS_: MOVFF PREINC1, r0x03 MOVFF PREINC1, r0x02 MOVFF PREINC1, r0x01 MOVFF PREINC1, r0x00 MOVFF PREINC1, FSR2L RETURN ; ; Starting pCode block ___str_0: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x48, 0x69, 0x67, 0x68, 0x20, 0x30 DB 0x20, 0x41, 0x63, 0x69, 0x6f, 0x6e, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_1: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x48, 0x69, 0x67, 0x68, 0x20, 0x30 DB 0x20, 0x44, 0x65, 0x73, 0x6c, 0x69, 0x67, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_2: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x4c, 0x6f, 0x77, 0x20, 0x30, 0x20 DB 0x41, 0x63, 0x69, 0x6f, 0x6e, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_3: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x4c, 0x6f, 0x77, 0x20, 0x30, 0x20 DB 0x44, 0x65, 0x73, 0x6c, 0x69, 0x67, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_4: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x48, 0x69, 0x67, 0x68, 0x20, 0x31 DB 0x20, 0x41, 0x63, 0x69, 0x6f, 0x6e, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_5: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x48, 0x69, 0x67, 0x68, 0x20, 0x31 DB 0x20, 0x44, 0x65, 0x73, 0x6c, 0x69, 0x67, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_6: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x4c, 0x6f, 0x77, 0x20, 0x31, 0x20 DB 0x41, 0x63, 0x69, 0x6f, 0x6e, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_7: DB 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x20, 0x4c, 0x6f, 0x77, 0x20, 0x31, 0x20 DB 0x44, 0x65, 0x73, 0x6c, 0x69, 0x67, 0x61, 0x64, 0x6f, 0x00 ; ; Starting pCode block ___str_8: DB 0x54, 0x69, 0x6d, 0x65, 0x3a, 0x20, 0x00 ; ; Starting pCode block ___str_9: DB 0x44, 0x61, 0x74, 0x65, 0x3a, 0x20, 0x00 ; Statistics: ; code size: 1952 (0x07a0) bytes ( 1.49%) ; 976 (0x03d0) words ; udata size: 0 (0x0000) bytes ( 0.00%) ; access size: 15 (0x000f) bytes end
20.304991
129
0.714429
09913a520377f040dd839777e391f00f620990d4
1,174
asm
Assembly
testbed/pgm3.asm
findhamza/Compilers
50130f1d3c7ea79e0b164a887cf63c45c036e821
[ "MIT" ]
null
null
null
testbed/pgm3.asm
findhamza/Compilers
50130f1d3c7ea79e0b164a887cf63c45c036e821
[ "MIT" ]
null
null
null
testbed/pgm3.asm
findhamza/Compilers
50130f1d3c7ea79e0b164a887cf63c45c036e821
[ "MIT" ]
null
null
null
%include "IOSR.asm" global _start section .data section .bss somevar RESW 1 othervar RESW 1 ans RESW 1 temp0 RESW 1 temp1 RESW 1 section .txt _start: call PrintString call GetAnInteger mov ax, [ReadInt] mov [somevar], ax call PrintString call GetAnInteger mov ax, [ReadInt] mov [othervar], ax mov ax, [somevar] mul word [othervar] mov [temp0], ax mov ax, [temp0] mov [ans], ax mov ax, [ans] call ConvertIntegerToString mov eax, 4 mov ebx, 1 mov ecx, Result mov edx, ResultEnd int 80h mov dx, 0 mov ax, [somevar] div word [othervar] mov [temp0], ax mov ax, [temp0] mov [ans], ax mov ax, [ans] call ConvertIntegerToString mov eax, 4 mov ebx, 1 mov ecx, Result mov edx, ResultEnd int 80h mov ax, [somevar] add ax, [othervar] mov [temp0], ax mov ax, [temp0] mov [ans], ax mov ax, [ans] call ConvertIntegerToString mov eax, 4 mov ebx, 1 mov ecx, Result mov edx, ResultEnd int 80h mov ax, [somevar] sub ax, [othervar] mov [temp0], ax mov ax, [temp0] mov [ans], ax mov ax, [ans] call ConvertIntegerToString mov eax, 4 mov ebx, 1 mov ecx, Result mov edx, ResultEnd int 80h call fini
11.075472
28
0.665247
e67990c377369dab917a38e9694782e998bd34a3
474
asm
Assembly
programs/oeis/313/A313746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/313/A313746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/313/A313746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A313746: Coordination sequence Gal.5.113.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,10,15,20,26,31,36,41,46,51,56,61,66,72,77,82,87,92,97,102,107,112,118,123,128,133,138,143,148,153,158,164,169,174,179,184,189,194,199,204,210,215,220,225,230,235,240,245,250 pow $2,$0 add $2,7 mov $1,$2 add $2,2 mov $4,$0 add $4,4 div $4,$2 add $1,$4 sub $1,7 mov $3,$0 mul $3,5 add $1,$3
29.625
179
0.691983
d90e7f28b7d2642aebd4cf2b91a98b82db6730c5
2,419
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_7_801.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_7_801.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_7_801.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 %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x18786, %rdi nop and %r11, %r11 mov (%rdi), %si mfence lea addresses_A_ht+0x2086, %r15 inc %rdi mov $0x6162636465666768, %rbx movq %rbx, %xmm1 and $0xffffffffffffffc0, %r15 movaps %xmm1, (%r15) dec %rsi lea addresses_WT_ht+0x6d90, %rdi nop nop nop nop xor $36364, %r13 and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %r9 nop nop nop nop xor %r11, %r11 lea addresses_D_ht+0x17646, %r13 nop nop xor %r15, %r15 movups (%r13), %xmm2 vpextrq $1, %xmm2, %rdi nop nop cmp %r13, %r13 lea addresses_WT_ht+0x16886, %rsi lea addresses_UC_ht+0x1c386, %rdi and %r15, %r15 mov $51, %rcx rep movsl nop nop sub %r9, %r9 lea addresses_A_ht+0x8c86, %rcx nop nop nop sub $28035, %rdi mov (%rcx), %r11w nop nop add %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rax push %rbp push %rsi // Faulty Load lea addresses_US+0x1c86, %r14 nop nop nop nop dec %rsi mov (%r14), %rbp lea oracles, %rax and $0xff, %rbp shlq $12, %rbp mov (%rax,%rbp,1), %rbp pop %rsi pop %rbp pop %rax pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 6}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 10}} {'00': 7} 00 00 00 00 00 00 00 */
20.327731
149
0.651095
72a15d0424f22284d71f44534608d307c52fa8dc
515
asm
Assembly
oeis/132/A132752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132752: Triangle T(n, k) = 2*A132749(n, k) - 1, read by rows. ; Submitted by Simon Strandgaard ; 1,3,1,3,3,1,3,5,5,1,3,7,11,7,1,3,9,19,19,9,1,3,11,29,39,29,11,1,3,13,41,69,69,41,13,1,3,15,55,111,139,111,55,15,1,3,17,71,167,251,251,167,71,17,1,3,19,89,239,419,503,419,239,89,19,1,3,21,109,329,659,923,923,659,329,109,21,1,3,23,131,439,989,1583,1847,1583,989,439,131,23,1,3,25,155,571,1429,2573,3431,3431,2573 lpb $0 add $1,1 sub $0,$1 bin $2,$0 lpe bin $1,$0 add $2,$1 mov $0,$2 sub $0,1 mul $0,2 add $0,1
32.1875
312
0.638835
29a96b157079a3aa675a3edc4f099f211abfb216
1,235
asm
Assembly
anims_zx.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
anims_zx.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
anims_zx.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
; ---------------------------------------------------------------------------- ; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and ; Amstrad CPC. ; ---------------------------------------------------------------------------- ashot_am .db 2 .dw shot_it0, WHITE .dw shot_it1, WHITE fire_am .db 2 .dw fire_it0, RED .dw fire_it0, YELLOW explosion_am .db 5 .dw explosion_it0, RED .dw explosion_it1, YELLOW .dw explosion_it2, RED .dw explosion_it1, YELLOW .dw explosion_it0, RED bird_grid_am .db 4 .dw bird_grid_it0, WHITE .dw bird_grid_it1, WHITE .dw bird_grid_it2, WHITE .dw bird_grid_it3, WHITE bird_lwing_am .db 2 .dw bird_lwing0_it, bird_wing_co .dw bird_lwing1_it, bird_wing_co bird_rwing_am .db 2 .dw bird_rwing0_it, bird_wing_co .dw bird_rwing1_it, bird_wing_co alien_am0 .db 2 .dw alient0, YELLOW .dw alient1, YELLOW alien_am1 .db 2 .dw alient0, CYAN .dw alient1, CYAN alien_am2 .db 2 .dw alient0, MAGENT .dw alient1, MAGENT alien_am3 .db 2 .dw alient0, WHITE .dw alient0, GREEN alien_am4 .db 2 .dw alient0, YELLOW .dw alient1, YELLOW alien_am5 .db 2 .dw alient0, RED .dw alient1, RED alien_am6 .db 2 .dw alient0, YELLOW .dw alient0, GREEN
21.666667
78
0.626721
c4c1de18d1f0f87bbbacd0988cc573eb2caa2ebb
561
asm
Assembly
programs/oeis/164/A164004.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/164/A164004.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/164/A164004.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A164004: Zero together with row 4 of the array in A163280. ; 0,5,10,18,28,40,54,70,88,108,130,154,180,208,238,270,304,340,378,418,460,504,550,598,648,700,754,810,868,928,990,1054,1120,1188,1258,1330,1404,1480,1558,1638,1720,1804,1890,1978,2068,2160,2254,2350,2448,2548,2650,2754,2860,2968,3078,3190,3304,3420,3538,3658,3780,3904,4030,4158,4288,4420,4554,4690,4828,4968,5110,5254,5400,5548,5698,5850,6004,6160,6318,6478,6640,6804,6970,7138,7308,7480,7654,7830,8008,8188,8370,8554,8740,8928,9118,9310,9504,9700,9898,10098 mov $1,$0 trn $0,2 add $0,5 mul $0,$1
70.125
460
0.757576
aa7a737fe11ef31396dc7bb90d3b305eefe7df73
5,634
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1205.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1205.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1205.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 %r14 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x190d8, %rsi nop nop nop nop and $33987, %r8 mov (%rsi), %r11d nop add %rcx, %rcx lea addresses_D_ht+0x162f2, %rsi lea addresses_D_ht+0xd932, %rdi nop nop nop add $62478, %rax mov $21, %rcx rep movsb nop nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0x1a872, %rcx nop nop nop xor %r14, %r14 movb $0x61, (%rcx) nop nop nop nop inc %rax lea addresses_WT_ht+0x1d2e, %r14 clflush (%r14) nop nop nop nop xor $33535, %rsi mov $0x6162636465666768, %rax movq %rax, %xmm1 vmovups %ymm1, (%r14) nop nop nop add $39257, %r14 lea addresses_WT_ht+0x10fdc, %rax nop nop nop inc %rdi movb $0x61, (%rax) nop cmp $7929, %r8 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rbp push %rbx push %rsi // Store lea addresses_normal+0x1fef2, %r9 nop nop nop nop nop dec %r14 mov $0x5152535455565758, %r12 movq %r12, (%r9) nop sub $48025, %rbx // Load lea addresses_A+0x6280, %r9 nop nop nop nop nop dec %rbp mov (%r9), %r12w nop cmp $26815, %rbx // Faulty Load lea addresses_normal+0xdcf2, %r9 nop nop nop nop sub $2732, %rsi mov (%r9), %ebx lea oracles, %rsi and $0xff, %rbx shlq $12, %rbx mov (%rsi,%rbx,1), %rbx pop %rsi pop %rbx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': True, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
38.326531
2,999
0.658857
48226876e62015874bd2f4e29a4350ba82e42d4d
427
asm
Assembly
Tests/Region/AutoRange/AutoRange.asm
Thar0/armips
4616b009959a8675eb2c9af66470b30c4083dffb
[ "MIT" ]
283
2015-01-02T01:02:28.000Z
2022-03-28T11:16:10.000Z
Tests/Region/AutoRange/AutoRange.asm
Thar0/armips
4616b009959a8675eb2c9af66470b30c4083dffb
[ "MIT" ]
117
2015-01-04T10:24:50.000Z
2022-03-12T19:51:13.000Z
Tests/Region/AutoRange/AutoRange.asm
Thar0/armips
4616b009959a8675eb2c9af66470b30c4083dffb
[ "MIT" ]
82
2015-02-07T15:03:47.000Z
2022-01-09T12:18:38.000Z
.psx .create "output.bin", 0 .region 20h .word 1,2,3,4 .endregion .defineregion 80h,20h .autoregion .notice "Allocated A at " + tohex(.) .word 5,6 .endautoregion .autoregion 60h,100h .notice "Allocated B at " + tohex(.) .word 80h,81h .endautoregion .autoregion 0h,30h .notice "Allocated C at " + tohex(.) .word 9,10 .endautoregion .autoregion 80h .notice "Allocated D at " + tohex(.) .word 82h,31h .endautoregion .close
14.233333
36
0.702576
76d1f14bee80c7c751293420cf3daa2010f81ff2
7,228
asm
Assembly
Transynther/x86/_processed/NC/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_803.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_803.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_21829_803.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 %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x5557, %rsi lea addresses_UC_ht+0xe497, %rdi nop nop nop nop inc %r14 mov $112, %rcx rep movsl sub $22537, %r14 lea addresses_WC_ht+0x14897, %r14 nop nop nop nop xor $61446, %rbx mov (%r14), %bp nop nop nop nop nop dec %rsi lea addresses_D_ht+0x17439, %rdi nop nop xor %r13, %r13 movw $0x6162, (%rdi) nop nop nop nop nop and %rbp, %rbp lea addresses_D_ht+0x4bd7, %r14 nop nop nop nop nop and $36627, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%r14) cmp %rbp, %rbp lea addresses_WC_ht+0x870e, %rcx nop nop dec %r13 movb $0x61, (%rcx) nop nop add $61519, %r14 lea addresses_D_ht+0x16197, %rbx nop nop inc %r14 mov (%rbx), %edi nop nop and %r13, %r13 lea addresses_D_ht+0xcb37, %r13 nop nop nop nop inc %rbp mov $0x6162636465666768, %rdi movq %rdi, (%r13) nop nop nop nop and %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_US+0x6497, %rsi mov $0x24cb270000000097, %rdi sub %r15, %r15 mov $113, %rcx rep movsb nop nop nop nop nop inc %r10 // Faulty Load mov $0x24cb270000000097, %r10 clflush (%r10) nop nop xor %r14, %r14 mov (%r10), %r9 lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_NC', 'congruent': 0, 'same': True}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'src': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': True, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'aa': 142, '9a': 134, 'ec': 169, '66': 137, '16': 141, 'a2': 102, 'e6': 127, '8c': 123, '2e': 166, 'fc': 137, 'd0': 169, '30': 139, '7c': 140, '52': 145, '6e': 152, 'e0': 145, '24': 171, 'be': 119, '72': 152, 'b8': 152, '3a': 145, '3e': 161, 'c6': 144, '0a': 159, '62': 130, '38': 161, 'de': 146, '7a': 130, '42': 134, '26': 164, '34': 139, 'b6': 131, '48': 157, '20': 168, '3c': 164, '88': 161, 'ba': 154, '58': 134, 'fe': 132, 'f0': 160, '1a': 40, '6a': 143, '08': 190, 'c8': 43, '0e': 197, 'bc': 150, '5e': 124, '7e': 142, 'a0': 53, '60': 164, '28': 193, '76': 128, '70': 150, '5a': 157, 'd2': 171, '46': 166, 'b0': 144, '32': 134, '68': 59, 'f4': 67, 'c2': 120, '6d': 1, 'f6': 121, '90': 141, '04': 200, '96': 141, '14': 214, '92': 149, 'e4': 172, '10': 188, '5c': 145, '6c': 166, 'ce': 173, '12': 189, '0c': 181, '1c': 172, 'cc': 155, 'f2': 148, 'e2': 55, '44': 37, '00': 4141, 'b2': 131, '8e': 139, 'd6': 53, '40': 169, '18': 132, 'ea': 113, '06': 157, '56': 155, 'ca': 158, 'a4': 159, 'fa': 111, 'c4': 178, '2a': 137, '54': 154, 'e8': 52, '80': 164, '8a': 68, '9c': 122, '84': 154, '1e': 165, 'c0': 38, '4a': 118, '74': 153, '82': 148, 'da': 48, 'b4': 154, 'd8': 143, '64': 129, '78': 151, '4e': 144, '2c': 172, 'a8': 160, 'a6': 152, '9e': 156, '50': 47, 'd4': 155, '86': 150, '02': 141, '98': 153, '22': 57, '4c': 126, 'ae': 134, 'ac': 133, 'f8': 147, '94': 135, '36': 141, 'ee': 151, 'dc': 162} ca 64 2a 9a 00 ca fe a4 86 8e 52 0c 00 88 36 4a 3e ce 78 34 00 00 9a 4e 72 f2 88 4a bc 48 0c 30 0a 90 00 40 20 14 fa 00 a6 00 e6 84 d8 00 d4 5c a2 bc d0 0e ea 12 ec d2 f0 cc 7a 0c 9a 56 b8 72 9a 00 00 00 9c 0a 18 00 00 28 46 42 ec 96 b6 bc 42 00 06 5a 10 08 ca 32 18 00 4c 84 d4 12 00 3c 00 00 00 ee b4 d8 00 6c 0c 00 18 00 b2 a6 a8 0e 00 90 1c 2c 00 26 36 00 9a 14 fe 28 94 d0 74 50 74 4c ee 40 66 96 00 00 00 ae 9e ae 0a b0 00 00 8e f0 f6 7a c6 a6 dc 1e 9e 46 ee b8 e4 36 14 90 00 00 bc 9e 4c 18 b8 6c 00 d2 8c d2 00 00 ec 00 94 80 52 92 16 00 64 8c 00 00 7a 58 d6 4c 4a 48 46 00 9c ec b4 2a 00 00 ae 00 38 26 30 d2 e8 6a 92 6c 00 00 80 28 18 be fc 00 6c 38 00 3e c4 28 00 d4 c6 32 60 5a 00 46 64 00 cc 62 12 20 3a 00 ca c4 ce 14 00 90 16 d4 74 12 9c 00 9e 9c 12 62 b2 d0 6d 4c 04 7a 7a be 4e 00 00 00 52 20 c2 20 a4 00 4a da 36 7e 00 2c 00 ca 30 04 00 20 3e 50 ac e2 18 3c 00 6c 84 0e 36 e0 ec 66 94 00 7e 30 58 cc 72 20 bc 06 00 5e a6 c6 2e 4e f8 e8 e4 c4 5a 72 00 84 00 32 12 f2 bc a4 b4 d8 6a 6e bc 76 82 38 5c 00 00 54 c4 9a a8 40 8c f0 00 26 d2 00 5e 3a c6 ca f4 42 00 00 2a 18 a8 fe 7a 00 42 00 00 1e 90 02 32 fc a4 84 aa 88 e4 4a 78 34 f0 ec 84 80 5a 54 88 9a a4 60 16 b4 00 00 f8 4e 82 b4 a4 6e e4 2e c0 9a f6 00 00 f6 02 80 fe ce 66 a6 00 94 00 10 4c 26 d2 24 a4 f2 c6 0e 00 36 9c e0 a8 b6 36 30 0a 00 1c d4 d4 00 00 00 8e 40 06 58 00 6a 52 0a 70 d2 f6 3c 3c aa 16 30 c6 14 d4 4a 9c 8a 2c 18 00 ee f2 38 f0 3e 00 f2 00 00 6e 5a 34 9c ce 00 16 00 2c b2 ce 3a 00 1a 34 90 8c 00 08 04 1e 00 02 00 00 6c 98 b2 f0 34 4e 62 fe 4a fc 06 1e 00 82 ce cc c8 26 24 fe a8 be f0 04 00 14 38 00 b0 b0 04 2a 28 78 e6 90 5a 1c 6e 00 48 4c 0c 08 36 d8 c6 0e 10 b4 36 5a 18 72 00 d4 86 46 04 00 00 7a 76 56 fe 28 72 6c 7e c2 1c 00 28 60 8e 00 32 96 82 04 00 5e cc 22 1e b4 42 36 7e 24 90 00 b8 e4 bc b2 7e fe be 08 06 00 78 00 00 9e 14 34 00 5c 40 60 0a e2 92 04 3c 72 00 00 c6 32 00 9a 78 60 de 42 6a 7c 6a 8a 2e ee d4 5c ee 0a 2c 00 3e 00 a6 18 9a ba d2 74 ca e4 4e a4 00 d2 0a 6c 00 30 ac b4 1c 7a 00 5e 18 00 7a ae 54 e4 e4 00 04 58 60 78 58 ba e0 38 cc 82 0a 2c 6c 12 9a 56 58 8a 4c 72 16 c6 ce 36 5c c6 00 58 3a 86 00 5c ee 02 12 6c 02 1e 9a 26 00 72 d4 fe 28 4e 00 10 d0 ec 00 00 4a 00 5a b6 24 3c ce 76 48 3e f0 82 2a ac 00 b2 4c c0 a6 74 00 bc 96 48 4e 10 ce 00 6e 56 ae ce 9e 00 00 00 00 bc 72 68 16 00 36 ca 00 00 80 00 0a b6 84 42 00 48 ec 0c a8 06 00 ec 42 88 00 20 00 7c 70 28 08 00 00 00 c0 fe 00 98 18 4e 0a 98 ba ee de 00 00 00 38 26 d2 2c 00 00 8e 02 00 aa 00 e0 00 42 36 5a b4 dc 70 f0 38 3e f8 de ca 80 00 36 ba 86 06 6a ea dc 00 00 00 f0 00 00 a0 50 2e ac 56 00 58 76 9c 84 5e d0 48 9c 40 00 00 dc d2 16 94 00 60 d6 20 76 d4 d2 3c 6c 56 38 7c 88 ba 30 00 7a 7e e0 28 90 18 00 90 96 ea 16 00 62 d4 4e 0e ba 0c 00 ca 3c 20 c6 50 26 82 9a 74 30 00 64 12 00 d4 ee 7c 04 24 90 5a 78 ba 02 82 24 d0 ce a8 b2 9e 6a 76 00 00 24 f8 d2 dc 9e 1c 62 5e 00 0e ca 16 00 1c a6 00 96 00 28 58 98 00 a6 fe e0 f8 88 6a 14 00 b6 4e 0a 02 58 00 00 b0 e8 4a 82 1e 30 00 be 40 00 d4 1e 4c 3c 00 5a 08 b2 1c */
47.24183
2,999
0.617045
9cf37d494347780408177ac2983c8c25d263073c
2,535
asm
Assembly
data/github.com/corkami/pics/3cb08bc92e6c7508a30ca0d9f5f8a3319a300591/binary/macho101/simple64.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
9
2018-08-07T11:54:33.000Z
2022-03-11T09:48:45.000Z
data/github.com/corkami/pics/3cb08bc92e6c7508a30ca0d9f5f8a3319a300591/binary/macho101/simple64.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
91
2019-11-11T15:41:26.000Z
2022-03-21T04:17:18.000Z
data/github.com/corkami/pics/3cb08bc92e6c7508a30ca0d9f5f8a3319a300591/binary/macho101/simple64.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
3
2019-11-13T12:44:41.000Z
2022-01-06T19:34:26.000Z
; a simple Hello-World Mach-O ; 64 bits and Mountain Lion (LC_MAIN) format ; Ange Albertini, BSD Licence 2013 BITS 64 %include 'macho.inc' ;############################################################################### istruc mach_header64 at mach_header64.magic, dd MH_MAGIC_64 at mach_header64.cputype, dd CPU_TYPE_X86_64 at mach_header64.cpusubtype, dd CPU_SUBTYPE_I386_ALL | CPU_SUBTYPE_LIB64 at mach_header64.filetype, dd MH_EXECUTE at mach_header64.ncmds, dd 4 ; segment, entry_point, dylinker, dylib at mach_header64.sizeofcmds, dd CMD_SIZE at mach_header64.flags, dd MH_NOUNDEFS iend load_commands: istruc segment_command64 at segment_command64.cmd, dd LC_SEGMENT_64 at segment_command64.cmdsize, dd segment_command64_size at segment_command64.vmsize, dq 0x1000 ; rounded up at segment_command64.filesize, dq FILE_SIZE at segment_command64.maxprot, dd VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE at segment_command64.initprot, dd VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE iend istruc entry_point_command at entry_point_command.cmd, dd LC_MAIN at entry_point_command.cmdsize, dd entry_point_command_size at entry_point_command.entryoff, dd start iend dylinker istruc dylinker_command at dylinker_command.cmd, dd LC_LOAD_DYLINKER at dylinker_command.cmdsize, dd DYLINKER_SIZE at dylinker_command.name, dd dylinker_name - dylinker iend dylinker_name db '/usr/lib/dyld' align 4, db 0 DYLINKER_SIZE equ $ - dylinker dylib: istruc dylib_command at dylib_command.cmd, dd LC_LOAD_DYLIB at dylib_command.cmdsize, dd DYLIB_SIZE at dylib_command.name, dd dylib_name - dylib iend dylib_name db '/usr/lib/libSystem.B.dylib' align 4, db 0 DYLIB_SIZE equ $ - dylib CMD_SIZE equ $ - load_commands align 16, db 0 ;############################################################################### start: mov rdx, MSG_LEN mov rsi, msg mov rdi, STDOUT_FILENO mov rax, ((SYSCALL_CLASS_UNIX << SYSCALL_CLASS_SHIFT) | (SYSCALL_NUMBER_MASK & (SC_WRITE))) syscall mov rdi, 0 mov rax, ((SYSCALL_CLASS_UNIX << SYSCALL_CLASS_SHIFT) | (SYSCALL_NUMBER_MASK & (SC_EXIT))) syscall align 16, db 0 ;############################################################################### msg db 'Hello World!', 0ah MSG_LEN EQU $ - msg ;############################################################################### FILE_SIZE EQU $ - $$
28.166667
95
0.637475
3e07b4449e140a1870b750a14fb1f28b857135e3
4,968
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_11802_67.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_11802_67.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_11802_67.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 %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x10f70, %rsi lea addresses_D_ht+0x1dd70, %rdi cmp %r15, %r15 mov $15, %rcx rep movsw nop nop nop nop cmp %r10, %r10 lea addresses_D_ht+0xec70, %r8 nop nop nop add %rbx, %rbx and $0xffffffffffffffc0, %r8 vmovaps (%r8), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rsi nop nop xor $53127, %rbx lea addresses_UC_ht+0x1af8, %r15 clflush (%r15) nop nop nop nop nop add %rbx, %rbx mov $0x6162636465666768, %rdi movq %rdi, %xmm6 movups %xmm6, (%r15) add $6512, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r8 push %rax push %rbx push %rdi push %rdx // Store lea addresses_PSE+0x192b, %r8 clflush (%r8) nop add $22024, %rdx movl $0x51525354, (%r8) nop nop nop and $8073, %r8 // Faulty Load lea addresses_RW+0xa570, %rdi nop dec %r11 movb (%rdi), %dl lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rax pop %r8 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'32': 11802} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
46.867925
2,999
0.660829
9abad77db3795c6a70981d3abc3a3bfc2410bee7
221
asm
Assembly
libmikeos/src.os/os_pause.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_pause.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_pause.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
; @@@ void mikeos_pause(unsigned int deciseconds); %include "os_vector.inc" section .text use16 global _mikeos_pause _mikeos_pause: push bp mov bp, sp mov ax, [bp + 4] mov bx, os_pause call bx pop bp ret
10.52381
50
0.692308
c17c002fa983fcec9e0c7f3c49108d68ee3211ea
458
asm
Assembly
data/pokemon/base_stats/sinnoh/bonsly.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/pokemon/base_stats/sinnoh/bonsly.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/pokemon/base_stats/sinnoh/bonsly.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
db 0 ; 438 DEX NO db 50, 80, 95, 10, 10, 45 ; hp atk def spd sat sdf db ROCK, ROCK ; type db 255 ; catch rate db 68 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/sinnoh/bonsly/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_FAST ; growth rate dn EGG_NONE, EGG_NONE ; egg groups ; tm/hm learnset tmhm ; end
20.818182
52
0.659389
b35e3dda7006204a4ff6dd6e1a1141da5486b0b7
8,585
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_6957_1454.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_6957_1454.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_6957_1454.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 %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1bf81, %rsi lea addresses_UC_ht+0xb1e6, %rdi nop nop nop inc %r12 mov $38, %rcx rep movsb nop nop nop cmp %r10, %r10 lea addresses_WC_ht+0x1561c, %rcx nop nop nop dec %rdi movb (%rcx), %r10b nop nop nop nop and %rcx, %rcx lea addresses_WT_ht+0x173a9, %rax nop nop nop nop nop sub %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%rax) nop inc %r10 lea addresses_normal_ht+0x14d29, %rdx nop nop sub $36764, %rax mov (%rdx), %r10d nop nop nop nop nop and %r12, %r12 lea addresses_WC_ht+0x7aa9, %r12 nop cmp $43625, %rcx vmovups (%r12), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rdx nop nop nop cmp $3938, %rax lea addresses_WT_ht+0xcca9, %rsi lea addresses_UC_ht+0x4529, %rdi clflush (%rsi) xor $30238, %r9 mov $108, %rcx rep movsq sub %r10, %r10 lea addresses_normal_ht+0x25d9, %rax nop dec %rdx movw $0x6162, (%rax) nop nop nop nop nop xor %r10, %r10 lea addresses_WT_ht+0x2cc1, %rsi lea addresses_normal_ht+0x19845, %rdi nop nop inc %rax mov $109, %rcx rep movsq nop nop and %rsi, %rsi lea addresses_WT_ht+0x5029, %rcx nop inc %rsi mov $0x6162636465666768, %r12 movq %r12, %xmm6 movups %xmm6, (%rcx) nop xor $45496, %r10 lea addresses_A_ht+0x19609, %rcx nop nop cmp %r10, %r10 movl $0x61626364, (%rcx) sub %r9, %r9 lea addresses_WT_ht+0x184a9, %rdi clflush (%rdi) nop nop nop xor $38446, %rcx mov $0x6162636465666768, %rdx movq %rdx, %xmm5 movups %xmm5, (%rdi) nop nop nop nop dec %rsi lea addresses_normal_ht+0x1a0a9, %rsi lea addresses_UC_ht+0x1b0e9, %rdi nop xor %r9, %r9 mov $13, %rcx rep movsw nop nop nop add %rcx, %rcx lea addresses_A_ht+0x10329, %rsi lea addresses_UC_ht+0x13fd9, %rdi nop nop nop nop nop and $48989, %r10 mov $23, %rcx rep movsw nop sub $4128, %rax lea addresses_normal_ht+0x1c6a9, %rsi nop add %rcx, %rcx movb $0x61, (%rsi) nop dec %r10 lea addresses_UC_ht+0x140a9, %rsi nop nop mfence movl $0x61626364, (%rsi) nop add $6248, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %rbx push %rdi push %rdx // Store lea addresses_D+0x1c6a9, %r14 nop nop inc %rdx mov $0x5152535455565758, %r12 movq %r12, %xmm5 vmovups %ymm5, (%r14) nop nop nop sub $63527, %r8 // Store mov $0x7f094b0000000ea9, %r10 clflush (%r10) nop and %r12, %r12 mov $0x5152535455565758, %rdx movq %rdx, %xmm7 movups %xmm7, (%r10) nop inc %r8 // Store lea addresses_WT+0x121a9, %r12 nop nop nop nop xor %rdi, %rdi movw $0x5152, (%r12) cmp $48196, %r14 // Faulty Load lea addresses_A+0x11ca9, %rdi nop nop nop sub %r8, %r8 movb (%rdi), %r14b lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rdx pop %rdi pop %rbx pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'00': 6957} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.146718
2,999
0.657659
67f57f2f9d191dd7baeda9b19c135d65e8188a58
252
asm
Assembly
examples/hello.asm
x86128/pymesm
4f5f2fe9ae06fd7023ef1022040774e157fd0792
[ "MIT" ]
2
2021-04-30T19:30:58.000Z
2021-04-30T21:29:44.000Z
examples/hello.asm
x86128/pymesm
4f5f2fe9ae06fd7023ef1022040774e157fd0792
[ "MIT" ]
null
null
null
examples/hello.asm
x86128/pymesm
4f5f2fe9ae06fd7023ef1022040774e157fd0792
[ "MIT" ]
null
null
null
# hello world using loop org 1 ptr prn0 32767 # loop setup vtm -15,2 lbl loop xta hello+15,2 atx prn0 vlm loop,2 stop 0o12345,6 dorg 0o2000 arr hello "Hello, world!!!\n"
18
33
0.492063
bffb5ac585a8a80e37204d952cdada1197851fa1
2,977
asm
Assembly
libsrc/z80_crt0s/gbz80/sdcc/l_div16.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/z80_crt0s/gbz80/sdcc/l_div16.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/z80_crt0s/gbz80/sdcc/l_div16.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_l_sdcc PUBLIC l_div8 PUBLIC l_mod8 PUBLIC l_div8_signexte PUBLIC l_div16 PUBLIC l_mod16 GLOBAL l_divu16 l_div8: l_mod8: ld a,c ; Sign extend rlca sbc a ld b,a l_div8_signexte: ld a,e ; Sign extend rlca sbc a ld d,a ; Fall through to .div16 ;; 16-bit division ;; ;; Entry conditions ;; BC = dividend ;; DE = divisor ;; ;; Exit conditions ;; BC = quotient ;; DE = remainder ;; If divisor is non-zero, carry=0 ;; If divisor is 0, carry=1 and both quotient and remainder are 0 ;; ;; Register used: AF,BC,DE,HL l_div16: l_mod16: ;; Determine sign of quotient by xor-ing high bytes of dividend ;; and divisor. Quotient is positive if signs are the same, negative ;; if signs are different ;; Remainder has same sign as dividend ld a,b ; Get high byte of dividend push af ; Save as sign of remainder xor d ; Xor with high byte of divisor push af ; Save sign of quotient ;; Take absolute value of divisor bit 7,d jr Z,chkde ; Jump if divisor is positive sub a ; Substract divisor from 0 sub e ld e,a sbc a ; Propagate borrow (A=0xFF if borrow) sub d ld d,a ;; Take absolute value of dividend chkde: bit 7,b jr Z,dodiv ; Jump if dividend is positive sub a ; Substract dividend from 0 sub c ld c,a sbc a ; Propagate borrow (A=0xFF if borrow) sub b ld b,a ;; Divide absolute values dodiv: call l_divu16 jr C,exit ; Exit if divide by zero ;; Negate quotient if it is negative pop af ; recover sign of quotient and 0x80 jr Z,dorem ; Jump if quotient is positive sub a ; Substract quotient from 0 sub c ld c,a sbc a ; Propagate borrow (A=0xFF if borrow) sub b ld b,a dorem: ;; Negate remainder if it is negative pop af ; recover sign of remainder and 0x80 ret Z ; Return if remainder is positive sub a ; Substract remainder from 0 sub e ld e,a sbc a ; Propagate remainder (A=0xFF if borrow) sub d ld d,a ret exit: pop af pop af ret
30.070707
77
0.453141
ed17157fb54582d2ef4c0764a42d9abc646ab5a5
1,927
asm
Assembly
programs/oeis/188/A188820.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188820.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188820.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A188820: Number of n X 5 binary arrays without the pattern 0 1 diagonally or antidiagonally. ; 32,169,432,841,1360,2025,2800,3721,4752,5929,7216,8649,10192,11881,13680,15625,17680,19881,22192,24649,27216,29929,32752,35721,38800,42025,45360,48841,52432,56169,60016,64009,68112,72361,76720,81225,85840,90601,95472,100489,105616,110889,116272,121801,127440,133225,139120,145161,151312,157609,164016,170569,177232,184041,190960,198025,205200,212521,219952,227529,235216,243049,250992,259081,267280,275625,284080,292681,301392,310249,319216,328329,337552,346921,356400,366025,375760,385641,395632,405769,416016,426409,436912,447561,458320,469225,480240,491401,502672,514089,525616,537289,549072,561001,573040,585225,597520,609961,622512,635209,648016,660969,674032,687241,700560,714025,727600,741321,755152,769129,783216,797449,811792,826281,840880,855625,870480,885481,900592,915849,931216,946729,962352,978121,994000,1010025,1026160,1042441,1058832,1075369,1092016,1108809,1125712,1142761,1159920,1177225,1194640,1212201,1229872,1247689,1265616,1283689,1301872,1320201,1338640,1357225,1375920,1394761,1413712,1432809,1452016,1471369,1490832,1510441,1530160,1550025,1570000,1590121,1610352,1630729,1651216,1671849,1692592,1713481,1734480,1755625,1776880,1798281,1819792,1841449,1863216,1885129,1907152,1929321,1951600,1974025,1996560,2019241,2042032,2064969,2088016,2111209,2134512,2157961,2181520,2205225,2229040,2253001,2277072,2301289,2325616,2350089,2374672,2399401,2424240,2449225,2474320,2499561,2524912,2550409 mov $1,2 mov $3,2 mov $4,4 mov $5,$0 lpb $0,1 trn $0,2 add $2,2 add $3,4 sub $4,$4 mov $1,$4 lpe add $0,$2 add $1,4 add $0,$1 mul $0,2 add $4,$2 mov $1,$4 add $1,$0 add $2,$1 add $3,$4 add $3,4 add $4,2 sub $3,$4 add $1,$3 add $1,$2 sub $1,4 mov $6,$5 mov $9,71 lpb $9,1 add $1,$6 sub $9,1 lpe mov $8,$5 lpb $8,1 add $7,$6 sub $8,1 lpe mov $6,$7 mov $9,64 lpb $9,1 add $1,$6 sub $9,1 lpe
41
1,420
0.779969
392714680c515e27003908fda1db15844f3696b3
337
asm
Assembly
programs/oeis/165/A165775.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/165/A165775.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/165/A165775.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A165775: n + (least square >= n), i.e., n + A048761(n). ; 0,2,6,7,8,14,15,16,17,18,26,27,28,29,30,31,32,42,43,44,45,46,47,48,49,50,62,63,64,65,66,67,68,69,70,71,72,86,87,88,89,90,91,92,93,94,95,96,97,98,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,146 mov $1,$0 mov $2,1 lpb $0,1 trn $0,$2 add $1,$2 add $2,2 lpe
30.636364
210
0.614243
d39f7fb52c6eae21ff7c9636a6b4b7a080f356c0
238
asm
Assembly
hmNLua.src/hmLoadCLR/Release/.NETFramework,Version=v4.5.AssemblyAttributes.asm
komiyamma/hm_nlua
7080b54470a0be4b2370563117c655b12ade1d7a
[ "Apache-2.0" ]
null
null
null
hmNLua.src/hmLoadCLR/Release/.NETFramework,Version=v4.5.AssemblyAttributes.asm
komiyamma/hm_nlua
7080b54470a0be4b2370563117c655b12ade1d7a
[ "Apache-2.0" ]
null
null
null
hmNLua.src/hmLoadCLR/Release/.NETFramework,Version=v4.5.AssemblyAttributes.asm
komiyamma/hm_nlua
7080b54470a0be4b2370563117c655b12ade1d7a
[ "Apache-2.0" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27048.0 ; Generated by VC++ for Common Language Runtime .file "G:\repogitory\hm_nlua\hmNLua.src\hmLoadCLR\Release\.NETFramework,Version=v4.5.AssemblyAttributes.cpp"
47.6
108
0.798319
3e1027ddfdcdef95040d014b57a21e3dc270e1d0
464
asm
Assembly
oeis/044/A044808.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044808.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044808.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044808: Numbers n such that string 9,5 occurs in the base 10 representation of n but not of n+1. ; Submitted by Jon Maiga ; 95,195,295,395,495,595,695,795,895,959,995,1095,1195,1295,1395,1495,1595,1695,1795,1895,1959,1995,2095,2195,2295,2395,2495,2595,2695,2795,2895,2959,2995,3095,3195,3295,3395,3495,3595 add $0,2 mul $0,10 mov $1,$0 div $0,11 mul $0,2 sub $1,1 div $1,11 add $1,3 add $0,$1 add $0,4 mul $0,8 add $1,$0 mov $0,$1 sub $0,84 mul $0,4 add $0,95
22.095238
184
0.696121
9db8b06133a1319dccf9a91ae414087158576cae
5,768
asm
Assembly
Driver/Power/Common/powerCode.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Power/Common/powerCode.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Power/Common/powerCode.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Common power management code FILE: powerCode.asm AUTHOR: Tony Requist ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 4/22/93 Initial revision DESCRIPTION: This is common battery code $Id: powerCode.asm,v 1.1 97/04/18 11:48:15 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Resident segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: PowerInit DESCRIPTION: Common initialization CALLED BY: INTERNAL PASS: ds, es - dgroup RETURN: none DESTROYED: ax, bx, cx, dx, si, di, bp, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 4/22/93 Initial version ------------------------------------------------------------------------------@ PowerInit proc near if POLL_BATTERY ; Install a timer so that we can poll some battery related stuff... mov al, TIMER_ROUTINE_CONTINUAL mov bx, cs mov si, offset BatteryPoll mov cx, BATTERY_POLL_INITIAL_WAIT mov di, BATTERY_POLL_INTERVAL call TimerStart mov ds:[timerHandle], bx mov ds:[timerID], ax endif if PCMCIA_SUPPORT ; ; Attempt to load the pcmcia library. ; call FilePushDir mov ax, SP_SYSTEM call FileSetStandardPath mov ax, high pcmcia mov bx, low pcmcia mov si, offset pcmciaLibName push ds segmov ds, cs call GeodeUseLibrary pop ds call FilePopDir jc pcmciaDone mov ds:[pcmciaLib], bx pcmciaDone: endif mov cx, vseg PowerDeviceNotification mov dx, offset PowerDeviceNotification mov si, SST_DEVICE_POWER call SysHookNotification ret PowerInit endp if PCMCIA_SUPPORT EC <pcmciaLibName TCHAR 'PCMCIAEC.GEO', 0> NEC<pcmciaLibName TCHAR 'PCMCIA.GEO', 0> endif ; PCMCIA_SUPPORT COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PowerDeviceNotification %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Call the power driver's strategy routine to turn power on or off for a device. CALLED BY: (GLOBAL) SysSendNotification PASS: ax, bx, cx, dx = for DR_POWER_DEVICE_ON_OFF call RETURN: nothing DESTROYED: ax, bx, cx, dx, si, di SIDE EFFECTS: none here PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 2/21/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PowerDeviceNotification proc far .enter mov di, DR_POWER_DEVICE_ON_OFF call PowerStrategy .leave ret PowerDeviceNotification endp COMMENT @---------------------------------------------------------------------- FUNCTION: PowerExit DESCRIPTION: Common exit code CALLED BY: INTERNAL PASS: ds, es - dgroup RETURN: none DESTROYED: ax, bx, cx, dx, si, di, bp, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 4/22/93 Initial version ------------------------------------------------------------------------------@ PowerExit proc near if POLL_BATTERY mov bx, ds:[timerHandle] mov ax, ds:[timerID] call TimerStop endif if PCMCIA_SUPPORT clr bx xchg bx, ds:[pcmciaLib] tst bx jz pcmciaDone mov ax, enum PCMCIADetach push bx call ProcGetLibraryEntry call ProcCallFixedOrMovable pop bx ;;; Do not attempt to free the library, as this will cause a call to GLoad ;;; (NotifyNewLibraries) in the kernel, which we're not allowed to do here. ;;; call GeodeFreeLibrary pcmciaDone: endif ; PCMCIA_SUPPORT ; ; we never unhook the SST_DEVICE_POWER notification because ; the requisite routine is in movable memory and cannot be called ; from the exit routine of a system driver. It does no harm to ; leave ourselves connected to it, in any case, as no one will call ; ret PowerExit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PowerDeviceOnOff %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Common code for fielding device on/off calls CALLED BY: (EXTERNAL) PASS: ax = PowerDeviceType bx = unit number cx = non-zero if turning on device, zero if turning off dx = device-specific data ds = dgroup RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PCMCIA library called if loaded and type is PDT_PCMCIA_SOCKET PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 2/21/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PowerDeviceOnOff proc near .enter if PCMCIA_SUPPORT cmp ax, PDT_PCMCIA_SOCKET jne done ; ; Is for pcmcia socket. Call the library if we loaded it. ; push bx, bp mov bx, ds:[pcmciaLib] tst bx jz noLib ; ; Fetch device on/off routine address from the library. ; mov ax, enum PCMCIADeviceOnOff call ProcGetLibraryEntry ; ; Store it on the stack for PCFOM_P and call the thing. ; mov bp, sp xchg bx, ss:[bp+2] pop bp push ax call PROCCALLFIXEDORMOVABLE_PASCAL ; ; Restore AX for caller... ; mov ax, PDT_PCMCIA_SOCKET jmp done noLib: pop bx, bp done: endif .leave ret PowerDeviceOnOff endp Resident ends
20.673835
80
0.577497
de2e4c35f813299e49005c9e77e62db51b4693bc
5,500
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_73_356.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_73_356.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_73_356.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 %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x11fd9, %rsi lea addresses_A_ht+0x107c1, %rdi clflush (%rdi) and %r9, %r9 mov $19, %rcx rep movsb add $298, %r13 lea addresses_WC_ht+0x1c49, %rsi lea addresses_UC_ht+0x7e, %rdi nop and $65311, %r9 mov $77, %rcx rep movsq nop nop nop nop inc %rdi lea addresses_A_ht+0x10019, %rsi lea addresses_normal_ht+0x19c99, %rdi nop cmp %r11, %r11 mov $69, %rcx rep movsq nop nop and $63855, %r9 lea addresses_UC_ht+0x1199, %r9 nop nop and $49061, %rax mov $0x6162636465666768, %r11 movq %r11, %xmm1 vmovups %ymm1, (%r9) nop nop nop cmp $64812, %r11 lea addresses_UC_ht+0x13c59, %r11 nop nop nop nop and $42482, %rsi vmovups (%r11), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rax nop nop nop nop and $24771, %r11 lea addresses_A_ht+0x12d99, %rsi lea addresses_normal_ht+0x1c199, %rdi nop nop nop nop sub %r11, %r11 mov $26, %rcx rep movsb nop nop nop nop cmp $44683, %r11 lea addresses_normal_ht+0x14d99, %rax nop nop nop nop nop xor %rsi, %rsi mov (%rax), %ecx dec %r9 lea addresses_A_ht+0x6079, %r9 nop nop nop nop dec %rcx movl $0x61626364, (%r9) nop nop nop nop sub $29447, %r9 lea addresses_WT_ht+0xa279, %rsi lea addresses_UC_ht+0x89f9, %rdi clflush (%rdi) nop nop nop and $4521, %rbp mov $95, %rcx rep movsq nop nop nop nop nop inc %r13 lea addresses_A_ht+0x17bad, %rcx nop inc %rbp mov $0x6162636465666768, %rsi movq %rsi, %xmm3 and $0xffffffffffffffc0, %rcx movntdq %xmm3, (%rcx) nop and %r11, %r11 lea addresses_normal_ht+0xe891, %r11 and $38481, %r13 movw $0x6162, (%r11) nop nop nop cmp %r11, %r11 lea addresses_WC_ht+0x2319, %rax dec %r9 movw $0x6162, (%rax) nop nop nop nop cmp %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rbp push %rbx push %rcx push %rsi // Store lea addresses_UC+0x17019, %rbp nop nop sub %rsi, %rsi mov $0x5152535455565758, %rcx movq %rcx, %xmm0 movups %xmm0, (%rbp) nop xor %rcx, %rcx // Store lea addresses_normal+0x6739, %r8 nop nop nop sub $64831, %rcx mov $0x5152535455565758, %r12 movq %r12, %xmm1 vmovups %ymm1, (%r8) nop nop nop nop cmp $21306, %rbp // Store lea addresses_PSE+0xd6b1, %rcx nop nop nop nop inc %r14 mov $0x5152535455565758, %r8 movq %r8, %xmm1 movntdq %xmm1, (%rcx) nop nop nop and $17955, %rcx // Store lea addresses_WT+0x17d19, %rcx nop nop nop nop nop dec %rbp movl $0x51525354, (%rcx) nop sub %r14, %r14 // Faulty Load lea addresses_D+0x1d999, %r12 clflush (%r12) nop nop nop nop nop inc %rbp vmovups (%r12), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r14 lea oracles, %r8 and $0xff, %r14 shlq $12, %r14 mov (%r8,%r14,1), %r14 pop %rsi pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'36': 73} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
21.072797
218
0.654909
e2dc07089613a3a410bca28c623db9e619dd6ff5
661
asm
Assembly
oeis/003/A003959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/003/A003959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/003/A003959.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A003959: If n = Product p(k)^e(k) then a(n) = Product (p(k)+1)^e(k), a(1) = 1. ; Submitted by Christian Krause ; 1,3,4,9,6,12,8,27,16,18,12,36,14,24,24,81,18,48,20,54,32,36,24,108,36,42,64,72,30,72,32,243,48,54,48,144,38,60,56,162,42,96,44,108,96,72,48,324,64,108,72,126,54,192,72,216,80,90,60,216,62,96,128,729,84,144,68,162,96,144,72,432,74,114,144,180,96,168,80,486,256,126,84,288,108,132,120,324,90,288,112,216,128,144,120,972,98,192,192,324 add $0,1 mov $1,1 mov $2,2 mov $4,1 lpb $0 mul $1,$4 mov $3,$0 lpb $3 mov $4,$0 mod $4,$2 add $2,1 cmp $4,0 cmp $4,0 sub $3,$4 lpe div $0,$2 mov $4,$2 add $4,1 lpe mov $0,$1
26.44
334
0.597579
47399a6110620bd629568131ee4a0510582eda60
1,403
asm
Assembly
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_111_931.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_111_931.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_111_931.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 %r15 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xdd1b, %rsi lea addresses_normal_ht+0xa79b, %rdi and %r15, %r15 mov $48, %rcx rep movsq nop nop nop xor $6271, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r15 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %rax push %rbx push %rdx push %rsi // Faulty Load mov $0xd1b, %rbx nop nop nop sub %r8, %r8 movb (%rbx), %r12b lea oracles, %rsi and $0xff, %r12 shlq $12, %r12 mov (%rsi,%r12,1), %r12 pop %rsi pop %rdx pop %rbx pop %rax pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_P'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_P'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'00': 111} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
22.269841
332
0.657876
9d5aab8eb89b9cf890d430daa20c0b452c6995c2
608
asm
Assembly
programs/oeis/109/A109921.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/109/A109921.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/109/A109921.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A109921: a(2n) = prime(n). a(2n+1) = sum of composite numbers between prime(n) and prime(n+1). We define a(1) = 1. ; 1,2,0,3,4,5,6,7,27,11,12,13,45,17,18,19,63,23,130,29,30,31,170,37,117,41,42,43,135,47,250,53,280,59,60,61,320,67,207,71,72,73,380,79,243,83,430,89,651,97,297,101,102,103,315,107,108,109,333,113,1560,127,387,131 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 sub $0,2 mov $6,$0 cmp $6,0 add $0,$6 max $0,0 seq $0,147846 ; Triangular numbers n*(n+1)/2 with n or n+1 prime. mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 mov $0,$1
24.32
212
0.598684
0c6f1f9eed16f5695019bfc79dc9780c8e89270e
540
asm
Assembly
programs/oeis/068/A068499.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/068/A068499.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/068/A068499.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A068499: Numbers m such that m! reduced modulo (m+1) is not zero. ; 1,2,3,4,6,10,12,16,18,22,28,30,36,40,42,46,52,58,60,66,70,72,78,82,88,96,100,102,106,108,112,126,130,136,138,148,150,156,162,166,172,178,180,190,192,196,198,210,222,226,228,232,238,240,250,256,262,268,270,276,280,282,292,306,310,312,316,330,336,346,348,352,358,366,372,378,382,388,396,400,408,418,420,430,432,438,442,448,456,460,462,466,478,486,490,498,502,508,520,522 mov $1,$0 trn $1,1 seq $1,6005 ; The odd prime numbers together with 1. sub $1,2 max $0,$1 add $0,1
54
370
0.705556
6202597b4ff71b82fd09b59c297f93d2f34487a1
822
asm
Assembly
oeis/142/A142250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142250: Primes congruent to 1 mod 43. ; Submitted by Simon Strandgaard ; 173,431,947,1033,1291,1549,1721,1979,2237,2753,3011,3527,3613,4129,4817,4903,5333,5419,5591,5849,6451,6709,6967,7741,8171,8429,9203,9461,9547,9719,10321,10837,11353,11783,12041,13159,13331,13417,13933,14449,14621,14879,15137,15739,16427,16943,17029,18061,18233,18749,19609,19867,20297,20641,20899,21157,21587,21673,22189,22447,22619,22877,22963,23909,24683,25457,25801,26317,26489,26833,27091,27779,28123,29327,29671,30187,30703,31219,31391,31477,31649,31907,32251,32423,32939,33713,34057,34487 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,43 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,85
35.73913
496
0.733577
af1565a77b8a38f85a38d29eb1c464486f350aeb
555
asm
Assembly
programs/oeis/060/A060899.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060899.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060899.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A060899: Number of walks of length n on square lattice, starting at origin, staying on points with x+y >= 0. ; 1,2,8,24,96,320,1280,4480,17920,64512,258048,946176,3784704,14057472,56229888,210862080,843448320,3186360320,12745441280,48432676864,193730707456,739699064832,2958796259328,11342052327424,45368209309696,174493112729600,697972450918400,2692179453542400 mov $2,$0 div $0,2 mov $4,$2 bin $4,$0 mov $0,$4 add $0,$4 lpb $2,1 lpb $4,1 mul $0,2 add $3,$4 trn $4,$3 lpe sub $2,1 mov $4,4 lpe mov $1,$0 sub $1,2 div $1,2 add $1,1
24.130435
253
0.715315
7291a2253d6040abb225b2f3137786b1e9507278
612
asm
Assembly
oeis/002/A002942.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/002/A002942.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/002/A002942.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A002942: a(n) = n^2 written backwards. ; Submitted by Jamie Morken(s1.) ; 1,4,9,61,52,63,94,46,18,1,121,441,961,691,522,652,982,423,163,4,144,484,925,675,526,676,927,487,148,9,169,4201,9801,6511,5221,6921,9631,4441,1251,61,1861,4671,9481,6391,5202,6112,9022,4032,1042,52,1062,4072,9082,6192,5203,6313,9423,4633,1843,63,1273,4483,9693,6904,5224,6534,9844,4264,1674,94,1405,4815,9235,6745,5265,6775,9295,4806,1426,46,1656,4276,9886,6507,5227,6937,9657,4477,1297,18,1828,4648,9468,6388,5209,6129,9049,4069,1089,1 add $0,1 pow $0,2 lpb $0 mov $2,$0 div $0,10 mul $1,10 mod $2,10 add $1,$2 lpe mov $0,$1
40.8
437
0.714052
b18723d2f55bcfd146e2c8fe7d706dbdb8585dd9
156
asm
Assembly
sample/puts.asm
plankp/RLVM
f15e347e90985507d3ef6cedda057844602c705f
[ "MIT" ]
null
null
null
sample/puts.asm
plankp/RLVM
f15e347e90985507d3ef6cedda057844602c705f
[ "MIT" ]
null
null
null
sample/puts.asm
plankp/RLVM
f15e347e90985507d3ef6cedda057844602c705f
[ "MIT" ]
null
null
null
# Same thing in C's <stdio.h> # # extern r0 puts (r0) .SECTION text .GLOBAL puts puts: LDC r1, STDOUT FWRTS r0, r1, r0 MOV r0, 0xA FWRTB r0, r1, r0
15.6
30
0.634615
29b01529c8b0f27297fd737d0dc1a4d446c014ca
105
asm
Assembly
tests/roms/pierettini.asm
Maverickke/aiv_gb
5209b508e2c3a993504ed903e8dfc3e3370f4dc4
[ "MIT" ]
5
2018-12-13T10:04:21.000Z
2021-05-09T18:14:52.000Z
tests/roms/pierettini.asm
Maverickke/aiv_gb
5209b508e2c3a993504ed903e8dfc3e3370f4dc4
[ "MIT" ]
3
2018-12-13T15:59:33.000Z
2018-12-15T07:37:48.000Z
tests/roms/pierettini.asm
Maverickke/aiv_gb
5209b508e2c3a993504ed903e8dfc3e3370f4dc4
[ "MIT" ]
30
2018-12-13T10:05:42.000Z
2020-09-11T10:32:38.000Z
section "code", rom0 cp 39 jr z, success halt success: ld e, d halt section "ram", wram0 var000: ds 1
7.5
20
0.685714
72c3b9cf06be898ded22e36956cd93e39e082512
2,064
asm
Assembly
src/screens/game_over.asm
battlelinegames/nesteroids
ae65d78048af68f3e735c49d77a7f37e976a7afe
[ "MIT" ]
6
2018-11-14T05:51:04.000Z
2022-01-07T13:38:42.000Z
src/screens/game_over.asm
battlelinegames/nesteroids
ae65d78048af68f3e735c49d77a7f37e976a7afe
[ "MIT" ]
1
2021-11-22T05:55:50.000Z
2021-11-22T05:55:50.000Z
src/screens/game_over.asm
battlelinegames/nesteroids
ae65d78048af68f3e735c49d77a7f37e976a7afe
[ "MIT" ]
1
2021-11-22T05:59:54.000Z
2021-11-22T05:59:54.000Z
.segment "BSS" ; game_over_active: .res 1 game_over_wait: .res 1 game_over_x_reg_save: .res 1 .segment "CODE" ; initialize the game over screen .proc game_over_screen_init play_sfx GAME_OVER_SOUND, PRIORITY_1 ldx #(ASTEROID_COUNT-1) asteroid_loop: lda asteroid_size, x cmp #4 beq large_size dex bpl asteroid_loop jmp end_asteroid_loop large_size: stx game_over_x_reg_save jsr hide_large_asteroid ldx game_over_x_reg_save dex bpl asteroid_loop end_asteroid_loop: set game_screen, GAME_OVER_SCREEN set game_over_wait, #100 ; stop scroll lda PPU_STATUS ; $2002 set PPU_SCROLL, #0 sta PPU_SCROLL jsr clear_player_stats ; display game over on background add_background_write #1, #$CB, #>game_over_text, #<game_over_text, #9 add_background_write #1, #$EA, #>press_start_text, #<press_start_text, #11 ; game_over_text rts .endproc ; input for the game over screen .proc gameover_input jsr gameover_press_start rts .endproc ; when the player presses start on the gameover screen .proc gameover_press_start lda start_delay bne decrement_delay lda PRESS_START and gamepad_press beq start_end advance_random_ptr ; advance the random pointer based on the frame set start_delay, START_WAIT set game_screen, OPEN_SCREEN jsr reset_game rts decrement_delay: dec start_delay ; if the start is not pressed start_end: rts .endproc ; nmi code for the game over screen .proc render_game_over lda PPU_STATUS ; $2002 set PPU_CTRL, #%10010000; PPU_CTRL_NMI_ENABLE lda PPU_STATUS ; $2002 set PPU_SCROLL, #0 ; scroll_x sta PPU_SCROLL ; , #0 rts .endproc ; game loop for game over screen .proc game_over_gameloop jsr gameover_input rts .endproc
22.434783
79
0.63905
29537bb64fdae55aaedef2813242e6773a46da2c
1,629
asm
Assembly
programs/oeis/276/A276819.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/276/A276819.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/276/A276819.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A276819: a(n) = a(n-1) + 9*n - 5 with a(0) = 1. ; 1,5,18,40,71,111,160,218,285,361,446,540,643,755,876,1006,1145,1293,1450,1616,1791,1975,2168,2370,2581,2801,3030,3268,3515,3771,4036,4310,4593,4885,5186,5496,5815,6143,6480,6826,7181,7545,7918,8300,8691,9091,9500,9918,10345,10781,11226,11680,12143,12615,13096,13586,14085,14593,15110,15636,16171,16715,17268,17830,18401,18981,19570,20168,20775,21391,22016,22650,23293,23945,24606,25276,25955,26643,27340,28046,28761,29485,30218,30960,31711,32471,33240,34018,34805,35601,36406,37220,38043,38875,39716,40566,41425,42293,43170,44056,44951,45855,46768,47690,48621,49561,50510,51468,52435,53411,54396,55390,56393,57405,58426,59456,60495,61543,62600,63666,64741,65825,66918,68020,69131,70251,71380,72518,73665,74821,75986,77160,78343,79535,80736,81946,83165,84393,85630,86876,88131,89395,90668,91950,93241,94541,95850,97168,98495,99831,101176,102530,103893,105265,106646,108036,109435,110843,112260,113686,115121,116565,118018,119480,120951,122431,123920,125418,126925,128441,129966,131500,133043,134595,136156,137726,139305,140893,142490,144096,145711,147335,148968,150610,152261,153921,155590,157268,158955,160651,162356,164070,165793,167525,169266,171016,172775,174543,176320,178106,179901,181705,183518,185340,187171,189011,190860,192718,194585,196461,198346,200240,202143,204055,205976,207906,209845,211793,213750,215716,217691,219675,221668,223670,225681,227701,229730,231768,233815,235871,237936,240010,242093,244185,246286,248396,250515,252643,254780,256926,259081,261245,263418,265600,267791,269991,272200,274418,276645,278881 mul $0,9 bin $0,2 mov $1,$0 div $1,9 add $1,1
181
1,531
0.81461
9cc1e9cf808807b528194bd0b6757915eaa09137
393
asm
Assembly
builtin_echo.asm
jhunkeler/minos
877e9bfe8e7d9e93536f4cb4af36aac65805be11
[ "MIT" ]
1
2017-12-05T16:51:06.000Z
2017-12-05T16:51:06.000Z
builtin_echo.asm
jhunkeler/minos
877e9bfe8e7d9e93536f4cb4af36aac65805be11
[ "MIT" ]
null
null
null
builtin_echo.asm
jhunkeler/minos
877e9bfe8e7d9e93536f4cb4af36aac65805be11
[ "MIT" ]
null
null
null
%ifndef _BUILTIN_ECHO_ASM %define _BUILTIN_ECHO_ASM builtin_echo: push bp mov bp, sp mov cx, word [bp + 4] ; argc mov bx, word [bp + 6] ; argv cmp cx, 0 ; if no arguments, return jbe .return .output: ; print argv push word [bx] push .msg_fmt call printf add sp, 2 * 2 add bx, 2 dec cx jne .output .return: mov sp, bp pop bp ret .msg_fmt db '%s ', 0 %endif
13.1
37
0.628499
e0014a55fc4510e2d5539cde8bb6af2154110ba7
718
asm
Assembly
programs/oeis/070/A070467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A070467: a(n) = n^2 mod 45. ; 0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36,40,1,9,19,31,0,16,34,9,31,10,36,19,4,36,25,16,9,4,1,0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36,40,1,9,19,31,0,16,34,9,31,10,36,19,4,36,25,16,9,4,1,0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36,40,1,9,19,31,0,16,34,9,31,10,36,19,4,36,25,16,9,4,1,0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36,40,1,9,19,31,0,16,34,9,31,10,36,19,4,36,25,16,9,4,1,0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36,40,1,9,19,31,0,16,34,9,31,10,36,19,4,36,25,16,9,4,1,0,1,4,9,16,25,36,4,19,36,10,31,9,34,16,0,31,19,9,1,40,36,34,34,36 mov $1,$0 pow $1,2 mod $1,45
102.571429
657
0.610028
333dfa3a526fd85369157f7d85f2d37a46c89090
727
asm
Assembly
start.asm
tsu-iscd/lyapas-os
82b4b69e0a7dc5417a268cdfdfefb6f08381e4e8
[ "BSD-3-Clause" ]
null
null
null
start.asm
tsu-iscd/lyapas-os
82b4b69e0a7dc5417a268cdfdfefb6f08381e4e8
[ "BSD-3-Clause" ]
null
null
null
start.asm
tsu-iscd/lyapas-os
82b4b69e0a7dc5417a268cdfdfefb6f08381e4e8
[ "BSD-3-Clause" ]
null
null
null
extern kernel global _idt global _idtr [BITS 16] jmp 0x0:beginning beginning: cli lgdt [_gdtr] ; turn to protected mode mov eax, cr0 or eax, 1 mov cr0, eax jmp 0x8:protected [BITS 32] protected: mov ax, 2 * 8 mov ds, ax mov es, ax mov ss, ax mov esp, 0x400000 mov eax, 0x100000 push eax sub esp,1412 push ebp mov ebp,esp call kernel section .data align 8 _gdt: dq 0 dd 0x0000ffff, 0x00df9b00 ; Code ring 0 dd 0x0000ffff, 0x00df9300 ; Data ring 0 dd 0x0000ffff, 0x00dffb00 ; Code ring 3 dd 0x0000ffff, 0x00dff300 ; Data ring 3 dd 0xbf000067, 0x0010e900 ; TSS _gdtr: dw _gdtr - _gdt - 1 dd _gdt _idtr: dw 256 * 8 dd _idt section .bss align 8 _idt: resq 256
13.716981
41
0.669876
c212746ec8c011c22948fec5f7b57e3d8ecc3c9b
10,412
asm
Assembly
P6/data_P6_2/MDTest84.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/MDTest84.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/MDTest84.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
ori $ra,$ra,0xf divu $5,$ra mfhi $2 mflo $4 addu $0,$2,$0 sb $5,6($0) addu $4,$5,$2 mfhi $1 addu $0,$2,$2 mult $5,$2 divu $4,$ra ori $1,$2,2110 divu $4,$ra lui $5,1935 ori $6,$3,61559 div $2,$ra srav $3,$3,$3 mfhi $5 sll $3,$1,8 ori $5,$2,8623 mult $3,$3 mflo $4 addu $1,$2,$2 lb $1,13($0) ori $4,$5,16784 mtlo $1 sb $4,13($0) mthi $1 sb $3,12($0) sll $6,$6,3 mflo $2 multu $2,$1 sll $1,$4,4 sb $1,5($0) mtlo $1 mtlo $1 divu $4,$ra mthi $1 addiu $1,$2,32208 addu $6,$4,$1 sb $5,9($0) sb $5,11($0) lb $1,13($0) multu $5,$5 sb $1,0($0) div $5,$ra sb $5,1($0) lb $1,15($0) div $4,$ra mflo $1 multu $5,$2 srav $1,$2,$2 lb $0,6($0) multu $4,$4 mflo $4 mtlo $3 sll $5,$2,13 lui $4,48119 mfhi $0 ori $1,$2,34038 mfhi $1 addiu $1,$1,29444 div $5,$ra sb $3,0($0) sll $4,$3,26 mthi $0 lb $4,15($0) addu $1,$1,$3 mthi $1 lb $5,16($0) addiu $1,$0,25107 mthi $6 mult $5,$2 sb $5,11($0) mthi $4 addu $4,$2,$2 sb $6,6($0) srav $5,$3,$3 addu $1,$1,$1 sll $1,$4,28 mflo $4 mult $5,$5 sb $6,6($0) ori $4,$5,1938 mflo $1 mfhi $6 srav $4,$4,$4 addu $5,$5,$4 div $1,$ra mfhi $4 addu $1,$0,$1 ori $1,$6,29000 div $4,$ra ori $1,$1,50519 mtlo $1 mfhi $4 mtlo $5 srav $0,$4,$6 mfhi $4 mflo $2 divu $2,$ra sll $1,$4,28 mfhi $4 lui $4,43420 mult $3,$4 addiu $1,$5,9027 div $4,$ra ori $3,$1,14661 sb $5,11($0) div $3,$ra divu $3,$ra lui $4,62484 lui $0,21968 lb $1,12($0) mflo $4 sb $5,3($0) ori $5,$6,39148 srav $4,$4,$4 multu $1,$1 lui $6,61595 mult $2,$2 lui $1,60127 mflo $5 lui $4,55766 lb $4,1($0) lb $4,7($0) multu $4,$4 mtlo $4 mfhi $4 lui $4,38759 sll $3,$6,21 mfhi $5 mthi $5 divu $4,$ra div $1,$ra addiu $2,$2,1350 mfhi $4 mfhi $3 mthi $3 ori $4,$4,10216 multu $1,$2 mflo $4 lb $0,11($0) addiu $0,$1,27355 lb $5,4($0) div $5,$ra lb $1,2($0) divu $1,$ra lb $0,0($0) srav $0,$1,$0 div $6,$ra multu $4,$4 div $5,$ra addiu $6,$5,10996 mfhi $4 sll $1,$2,13 sll $1,$2,21 sll $0,$0,12 mult $4,$4 addiu $4,$1,18671 div $1,$ra mtlo $5 lui $5,46493 multu $4,$4 addu $0,$1,$3 divu $4,$ra mult $1,$1 divu $4,$ra multu $1,$2 divu $1,$ra mflo $4 mfhi $5 sll $6,$2,12 lb $0,7($0) sll $4,$1,17 mthi $0 mfhi $4 mult $3,$1 srav $2,$5,$2 mfhi $3 sll $4,$5,9 addu $4,$4,$3 div $1,$ra srav $2,$2,$2 div $0,$ra sll $1,$1,22 div $1,$ra lui $4,60832 divu $1,$ra mflo $0 mult $5,$1 lb $0,4($0) addu $5,$5,$5 mtlo $5 mflo $1 mthi $1 sb $4,14($0) mult $1,$1 mtlo $5 lui $4,23827 lb $4,4($0) addu $0,$2,$0 sll $5,$5,16 div $2,$ra ori $6,$2,36108 lb $5,3($0) mtlo $1 mfhi $5 srav $4,$3,$3 div $6,$ra ori $4,$4,35461 lb $1,10($0) lb $0,9($0) lb $4,9($0) div $4,$ra div $5,$ra multu $1,$2 mtlo $6 multu $1,$5 lui $4,5536 mult $4,$6 lui $2,28262 divu $4,$ra mflo $5 addiu $2,$2,-6886 mtlo $5 mult $1,$4 ori $4,$2,62565 lb $4,6($0) mflo $1 srav $1,$6,$6 ori $0,$0,60566 lui $4,42026 divu $4,$ra addu $4,$5,$5 lb $6,4($0) srav $5,$5,$3 lui $4,60355 sll $1,$2,5 sll $1,$4,26 mflo $5 multu $4,$2 multu $4,$6 addiu $4,$5,25780 divu $5,$ra ori $4,$4,19495 mult $1,$1 ori $4,$2,40364 mflo $1 div $3,$ra divu $1,$ra lb $0,12($0) sll $3,$4,3 lb $6,15($0) mfhi $5 mfhi $0 addiu $1,$4,-23385 mult $6,$4 ori $3,$0,25523 mfhi $6 multu $2,$2 srav $1,$1,$2 mflo $0 ori $0,$4,35391 lb $5,11($0) mthi $5 divu $6,$ra srav $4,$2,$5 mflo $5 div $2,$ra div $4,$ra mult $3,$6 mtlo $4 ori $2,$2,60456 div $4,$ra mthi $1 divu $6,$ra mthi $6 lui $0,39208 lb $0,0($0) addiu $2,$2,2472 mflo $2 sll $1,$5,28 srav $1,$1,$1 multu $5,$6 sll $2,$2,8 mfhi $2 addiu $3,$6,-24630 ori $5,$5,59512 multu $0,$0 mtlo $6 sll $0,$2,26 mtlo $5 multu $5,$2 mfhi $1 div $1,$ra sb $1,12($0) addiu $4,$4,25400 mflo $6 mtlo $4 addu $6,$1,$5 mthi $5 sb $5,3($0) addiu $4,$4,28051 srav $3,$3,$3 mult $4,$4 mult $3,$5 mthi $4 mflo $4 mthi $5 mflo $3 mfhi $1 srav $1,$1,$6 multu $1,$2 div $5,$ra lui $1,21382 sb $4,2($0) divu $4,$ra srav $1,$6,$6 addiu $1,$1,28775 ori $0,$1,29207 mtlo $2 mult $6,$0 mtlo $4 multu $0,$1 divu $5,$ra lb $5,12($0) srav $6,$2,$6 mflo $1 addu $6,$4,$4 mflo $3 mfhi $3 mthi $1 ori $4,$3,24689 mfhi $5 mtlo $4 sll $4,$5,10 divu $0,$ra srav $4,$2,$2 mfhi $2 mthi $2 mult $0,$6 mult $4,$4 addu $3,$3,$3 mtlo $5 mult $5,$5 divu $2,$ra sll $2,$2,24 lui $2,28156 mtlo $5 lui $0,41310 mthi $5 lui $2,57665 lb $3,1($0) sll $5,$4,14 addiu $0,$5,24756 mfhi $1 addiu $0,$2,18553 ori $4,$6,4114 div $4,$ra addu $1,$4,$5 sb $2,11($0) srav $6,$6,$6 addiu $6,$2,-13337 mthi $2 divu $0,$ra ori $1,$1,41594 lb $0,3($0) ori $1,$6,28340 mfhi $5 mult $0,$4 multu $5,$2 sb $4,12($0) multu $2,$2 lui $5,49634 addiu $2,$2,20889 divu $5,$ra sb $0,3($0) lui $1,16704 sb $1,6($0) multu $3,$2 mtlo $4 div $0,$ra div $4,$ra mtlo $5 sb $4,15($0) mfhi $6 divu $5,$ra ori $4,$5,28696 multu $5,$3 sb $3,13($0) lui $5,35195 srav $2,$2,$2 mtlo $4 div $0,$ra mtlo $4 srav $5,$1,$2 srav $4,$5,$6 lb $4,1($0) addiu $1,$1,6723 mfhi $5 ori $4,$4,50225 multu $2,$2 div $1,$ra srav $5,$1,$5 divu $0,$ra ori $4,$2,55700 mtlo $2 mfhi $4 multu $1,$4 sll $6,$6,15 mflo $1 mtlo $5 srav $1,$1,$2 addu $2,$2,$2 divu $4,$ra ori $1,$2,37834 srav $4,$1,$3 sll $5,$2,21 mthi $6 multu $0,$2 sll $3,$3,27 ori $5,$4,50329 multu $0,$1 mthi $3 addiu $0,$4,-16495 mthi $4 srav $5,$6,$5 ori $1,$4,10364 srav $2,$2,$2 lui $2,3657 addiu $4,$4,28485 sb $2,3($0) mtlo $0 sb $3,8($0) mtlo $4 divu $1,$ra sb $5,4($0) srav $1,$1,$1 multu $2,$2 mflo $1 mthi $1 mfhi $0 multu $4,$1 div $5,$ra mtlo $4 lb $3,9($0) mult $2,$6 div $1,$ra mthi $1 mfhi $5 mfhi $1 sll $4,$2,11 divu $4,$ra div $3,$ra addiu $3,$4,11432 sll $1,$4,1 multu $3,$4 mfhi $4 lb $5,10($0) mthi $4 lui $1,2104 mult $5,$4 mflo $4 addiu $4,$6,-9350 ori $4,$6,43033 div $0,$ra div $4,$ra mflo $2 addu $4,$1,$1 lui $5,25901 divu $1,$ra lb $1,8($0) sb $2,13($0) lui $1,64329 lui $6,28032 mult $4,$4 mthi $6 mfhi $4 multu $0,$0 ori $4,$4,17359 mflo $0 addu $1,$1,$3 lb $2,10($0) mtlo $1 mflo $1 ori $1,$4,64898 mflo $6 multu $6,$6 lb $4,1($0) addiu $2,$2,10135 addu $4,$4,$5 lb $6,4($0) sll $4,$6,20 mfhi $1 sll $4,$2,26 addu $5,$5,$5 mult $1,$2 lb $1,3($0) multu $0,$2 multu $4,$4 addu $4,$6,$4 lb $4,5($0) mtlo $4 mthi $1 mflo $5 addu $2,$2,$2 mtlo $5 mtlo $0 srav $4,$2,$4 divu $2,$ra lb $3,2($0) addu $4,$4,$4 divu $4,$ra lui $4,5416 addiu $6,$6,22489 multu $5,$4 mtlo $1 div $5,$ra addiu $3,$4,5715 mtlo $1 lui $4,39271 div $5,$ra addu $2,$2,$2 mult $1,$6 lb $2,15($0) mflo $0 mfhi $0 mtlo $4 addu $0,$2,$0 sll $4,$4,1 sll $4,$2,25 mult $3,$3 sb $1,16($0) mthi $4 div $2,$ra div $5,$ra srav $5,$5,$5 div $3,$ra mflo $6 mult $6,$4 addu $2,$1,$2 mtlo $5 sll $2,$2,11 mflo $5 sll $2,$1,9 mult $5,$4 mfhi $1 lb $4,8($0) multu $0,$4 sll $4,$3,19 lui $1,47115 mflo $4 addiu $0,$5,-3444 sb $4,0($0) divu $3,$ra div $2,$ra mtlo $4 sll $5,$5,13 mflo $1 srav $4,$1,$4 addu $1,$1,$1 ori $2,$2,45657 lb $5,7($0) sll $1,$5,11 addiu $5,$5,-29322 addu $6,$2,$2 multu $0,$0 multu $6,$6 lb $4,7($0) div $3,$ra srav $4,$4,$4 addu $2,$2,$5 mflo $6 mthi $5 lui $0,46482 mult $6,$3 mult $2,$0 sll $3,$3,19 multu $0,$2 sll $1,$1,11 sb $1,15($0) lui $4,57592 sb $0,16($0) multu $1,$1 mult $5,$3 addiu $1,$1,-12653 mult $3,$2 srav $1,$4,$1 mtlo $2 mthi $1 mflo $4 mfhi $2 mthi $0 sll $5,$1,11 addiu $2,$2,-18528 sll $3,$3,27 divu $4,$ra sll $4,$5,12 sll $0,$0,0 mthi $4 sll $2,$2,21 mflo $6 mtlo $4 mthi $4 mtlo $1 mult $0,$1 srav $5,$2,$2 mflo $4 addiu $2,$2,-32296 mfhi $4 ori $6,$1,24985 sll $6,$6,19 sb $6,7($0) divu $5,$ra divu $1,$ra mflo $3 mflo $1 divu $1,$ra lb $0,0($0) mflo $3 addiu $1,$2,-15076 sb $4,2($0) srav $2,$2,$2 mflo $0 addiu $1,$5,791 addu $1,$5,$1 divu $1,$ra srav $4,$5,$3 mflo $1 mflo $2 mtlo $6 lui $5,52871 ori $1,$3,59842 divu $4,$ra lb $3,4($0) mtlo $5 mtlo $5 divu $4,$ra mfhi $5 mtlo $3 lb $4,9($0) mtlo $4 srav $4,$1,$2 lui $1,13236 mtlo $0 mflo $4 multu $6,$6 sb $3,15($0) addiu $4,$3,-15878 multu $1,$5 div $2,$ra lui $5,49906 srav $5,$2,$2 mflo $5 mfhi $4 divu $2,$ra sb $3,7($0) sb $5,4($0) addiu $1,$6,18106 sb $5,14($0) mfhi $0 addu $0,$1,$1 ori $5,$3,59521 srav $0,$1,$1 addu $0,$0,$0 lb $0,0($0) mtlo $4 mtlo $5 sb $0,11($0) lb $1,1($0) sll $1,$1,16 lui $4,3520 lui $1,38018 mtlo $1 mflo $4 mthi $5 divu $0,$ra ori $5,$4,20631 srav $3,$2,$3 addiu $0,$0,7551 mthi $2 mflo $1 srav $4,$4,$4 lb $4,4($0) mult $2,$2 divu $0,$ra multu $4,$1 divu $4,$ra mfhi $2 lui $0,42427 multu $3,$2 mtlo $3 div $1,$ra multu $0,$2 sb $5,2($0) div $4,$ra sb $5,10($0) mtlo $3 mult $4,$4 srav $0,$5,$3 lb $4,15($0) mult $0,$2 mthi $1 multu $6,$5 lb $5,4($0) mthi $4 ori $4,$3,50472 div $4,$ra sll $4,$1,27 multu $4,$1 lb $3,13($0) addu $2,$4,$2 addiu $0,$0,27578 sb $4,0($0) sll $3,$3,10 sll $3,$4,21 lui $3,27830 multu $2,$2 sb $4,1($0) multu $1,$1 srav $4,$2,$5 lb $4,9($0) mflo $4 divu $5,$ra srav $2,$2,$2 sll $5,$5,6 lui $4,35966 addiu $4,$0,-30912 ori $4,$1,14017 lb $5,0($0) multu $4,$4 addiu $6,$6,11403 sb $0,14($0) lb $6,2($0) srav $4,$5,$4 mthi $1 ori $4,$2,32483 multu $0,$2 addiu $5,$1,13944 div $1,$ra addiu $4,$4,5458 mflo $4 lui $4,351 div $1,$ra mtlo $5 mtlo $4 addiu $6,$4,11221 div $5,$ra mflo $4 mtlo $0 lb $4,5($0) multu $4,$0 mflo $4 div $4,$ra ori $4,$4,9155 srav $6,$4,$4 lb $4,16($0) divu $3,$ra sb $5,9($0) mult $6,$6 mfhi $5 mflo $2 sll $2,$2,1 srav $0,$5,$0 mflo $5 mtlo $4 mtlo $1 divu $4,$ra mult $1,$6 div $5,$ra lui $0,18472 mtlo $4 mflo $0 addu $5,$5,$2 mthi $5 srav $5,$4,$5 srav $4,$2,$2 lb $5,7($0) lb $5,0($0) addu $5,$2,$2 mflo $3 mflo $2 mult $0,$4 multu $1,$4 sb $1,2($0) mflo $4 div $1,$ra ori $5,$5,41438 mult $5,$1 divu $3,$ra mfhi $1 multu $6,$1 mtlo $1 lui $4,1389 multu $4,$4 mflo $4 mflo $1 mult $2,$5 divu $2,$ra srav $1,$5,$5 multu $6,$0 lb $5,11($0) multu $1,$4 mthi $5 ori $2,$4,56050 mfhi $6 multu $0,$2 multu $5,$5 mult $5,$4 srav $1,$1,$1 addiu $5,$5,31550 addu $1,$1,$3 mthi $5 addu $4,$5,$1 sb $1,10($0) addu $4,$2,$2 mult $2,$4 lui $6,45225 mult $0,$0 sll $1,$5,14 mtlo $1 mflo $5 lb $3,15($0) sll $5,$2,9 mthi $4 divu $6,$ra mult $4,$1 mfhi $4 mfhi $5 lb $0,1($0) multu $5,$5 mflo $6 srav $2,$2,$2 addiu $2,$2,24769 mflo $1 mthi $1 sb $1,14($0) sb $4,12($0) lui $6,57152 multu $1,$5 mflo $1 mfhi $0 mult $1,$0 lui $4,29369 div $1,$ra mtlo $5 sb $4,0($0) lui $0,14604 multu $6,$5 mult $4,$2 ori $1,$3,51940 addiu $4,$0,12784 divu $6,$ra mfhi $3 lb $4,11($0) sll $1,$4,0 mtlo $3 div $1,$ra mfhi $4 mthi $5 mflo $4 ori $4,$4,12734 div $6,$ra ori $2,$2,7892 addu $4,$4,$4 mthi $1 div $4,$ra mflo $4 mflo $6 mtlo $0 sll $6,$4,25 addiu $3,$3,9377 srav $1,$1,$1 mtlo $1 div $6,$ra div $2,$ra mthi $0 divu $1,$ra srav $4,$5,$3 lui $4,42178 divu $4,$ra mult $1,$2 mfhi $4 lui $5,10861 addiu $4,$1,-16484 divu $1,$ra lb $3,16($0) lui $4,22523
11.698876
18
0.567038
1f652026c7810685673008d2eb73496b256859b7
1,697
asm
Assembly
S-F200VX_20180920_WithFactory/ISR_UART_RX.asm
xcwk/8-Pads-WiFi-Fat-Scale
50023e1c9246398e0d76c6de84307d2be226b826
[ "Unlicense" ]
1
2019-07-23T11:38:41.000Z
2019-07-23T11:38:41.000Z
S-F200VX_20180920_WithFactory/ISR_UART_RX.asm
xcwk/8-Pads-WiFi-Fat-Scale
50023e1c9246398e0d76c6de84307d2be226b826
[ "Unlicense" ]
null
null
null
S-F200VX_20180920_WithFactory/ISR_UART_RX.asm
xcwk/8-Pads-WiFi-Fat-Scale
50023e1c9246398e0d76c6de84307d2be226b826
[ "Unlicense" ]
2
2020-03-25T15:07:37.000Z
2020-04-17T07:33:32.000Z
;============================================================ ;===== ISR_UART_RX.ASM ;============================================================ ISR_RX_Entry: BTFSC UartRxFlag,B_UartRxFlag_OK GOTO ISR_RX_EXIT BSF UartRxFlag,B_UartRxFlag_TRG CLRF R_UartRXTimer BTFSC UartRxFlag,B_UartRxFlag_L GOTO ISR_RX_Length BTFSC UartRxFlag,B_UartRxFlag_D GOTO ISR_RX_DataBuf ISR_RX_Header_C5: MOVLW 0C5H XORWF UART_RX_BUF,W BTFSS STATUS,Z GOTO ISR_RX_Header_C6 MOVFF UART_RX_SOP,UART_RX_BUF BSF UartRxFlag,B_UartRxFlag_L BCF UartRxFlag,B_UartRxFlag_D BCF UartRxFlag,B_UartRxFlag_C6 GOTO ISR_RX_EXIT ISR_RX_Header_C6: MOVLW 0C6H XORWF UART_RX_BUF,W BTFSS STATUS,Z GOTO ISR_RX_Init MOVFF UART_RX_SOP,UART_RX_BUF BSF UartRxFlag,B_UartRxFlag_L BCF UartRxFlag,B_UartRxFlag_D BSF UartRxFlag,B_UartRxFlag_C6 GOTO ISR_RX_EXIT ISR_RX_Length: BCF UartRxFlag,B_UartRxFlag_L BSF UartRxFlag,B_UartRxFlag_D MOVFF UART_RX_LEN,UART_RX_BUF MOVLW 18+1 SUBWF UART_RX_LEN,W BTFSC STATUS,C GOTO ISR_RX_Init CLRF R_UartRxCnt GOTO ISR_RX_EXIT ISR_RX_DataBuf: BSF BSR,IRP0 MOVFL FSR0,UART_RX2 MOVFW R_UartRxCnt ADDWF FSR0,F MOVFF IND0,UART_RX_BUF INCF R_UartRxCnt,F MOVFW UART_RX_LEN ADDLW 01H SUBWF R_UartRxCnt,W BTFSS STATUS,C GOTO ISR_RX_EXIT ISR_RX_OK: CLRF UartRxFlag BSF UartRxFlag,B_UartRxFlag_OK CLRF R_UartRxCnt CLRF R_UartRXTimer GOTO ISR_RX_EXIT ISR_RX_Init: CLRF UartRxFlag CLRF R_UartRxCnt CLRF R_UartRXTimer ISR_RX_EXIT:
25.712121
61
0.656453
939d62afcb04f920b5cd79df607e9d878ea47062
468
asm
Assembly
programs/oeis/047/A047615.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047615.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047615.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047615: Numbers that are congruent to {0, 5} mod 8. ; 0,5,8,13,16,21,24,29,32,37,40,45,48,53,56,61,64,69,72,77,80,85,88,93,96,101,104,109,112,117,120,125,128,133,136,141,144,149,152,157,160,165,168,173,176,181,184,189,192,197,200,205,208,213,216,221,224,229,232,237,240,245,248,253,256,261,264,269,272,277,280,285,288,293,296,301,304,309,312,317,320,325,328,333,336,341,344,349,352,357,360,365,368,373,376,381,384,389,392,397 mov $1,$0 mul $0,4 mod $1,2 add $0,$1
58.5
373
0.705128
c06f624a76f85ee799afdcbffdf8d5cf7f678987
413
asm
Assembly
oeis/051/A051713.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/051/A051713.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/051/A051713.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A051713: Denominator of b(n)-b(n+1), where b(n) = n/((n+1)(n+2)) = A026741/A045896. ; Submitted by Christian Krause ; 1,60,60,70,84,504,120,990,165,572,1092,2730,280,4080,2448,1938,855,7980,1540,10626,3036,4600,7800,17550,819,21924,12180,8990,7440,32736,5984,39270,5355,15540,25308,54834,4940,63960,34440 add $0,3 mov $1,$0 mul $1,2 mul $1,$0 sub $1,2 mul $1,$0 sub $0,3 div $1,2 gcd $0,$1 div $1,$0 mov $0,$1
25.8125
188
0.677966
ec4dbd757c15e64906dd6ca99fe2cfdb7ecd3e72
313
asm
Assembly
programs/oeis/027/A027803.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/027/A027803.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/027/A027803.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A027803: a(n) = 35*(n+1)*binomial(n+4, 7)/4. ; 35,350,1890,7350,23100,62370,150150,330330,675675,1301300,2382380,4176900,7054320,11531100,18314100,28352940,42902475,63596610,92534750,132382250,186486300,259008750,355077450,480957750,644245875 mov $1,$0 add $0,7 bin $0,$1 add $1,4 mul $0,$1 div $0,4 mul $0,35
28.454545
197
0.741214
2fe1ff8b914447630e21ea347c619b53d0e7c68e
2,550
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_44_1809.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_44_1809.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_44_1809.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 %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x12547, %rsi lea addresses_WC_ht+0x9067, %rdi add $6242, %r12 mov $104, %rcx rep movsw nop nop nop nop xor $7525, %r14 lea addresses_WC_ht+0x15147, %r12 clflush (%r12) nop nop nop and $64690, %rbp movups (%r12), %xmm2 vpextrq $1, %xmm2, %rdi nop nop dec %r14 lea addresses_WT_ht+0x5c47, %rsi lea addresses_WC_ht+0x54f7, %rdi nop nop nop xor $52638, %rax mov $48, %rcx rep movsl nop nop nop and $6211, %rcx lea addresses_A_ht+0x287, %rax nop nop nop and %rdi, %rdi mov (%rax), %cx nop nop lfence lea addresses_WC_ht+0x546f, %rdi nop nop nop xor %rax, %rax movb $0x61, (%rdi) add %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_normal+0x19e96, %rsi lea addresses_A+0x12b47, %rdi clflush (%rdi) nop and $50041, %r8 mov $52, %rcx rep movsw sub $47991, %r8 // Faulty Load lea addresses_US+0xe047, %r10 nop nop nop nop cmp $46264, %rdi mov (%r10), %rbx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'dst': {'congruent': 7, 'same': True, 'type': 'addresses_A'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'00': 44} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
20.731707
152
0.652549
bd28e257f95ecb39179787e9bf89c32844de679c
263
asm
Assembly
oeis/255/A255910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255910: Decimal expansion of 16/9. ; Submitted by Christian Krause ; 1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 cmp $0,0 gcd $0,7
37.571429
173
0.570342
28c79261c1650c80b9bf4075f3e328c65955267b
273
asm
Assembly
smsq/sbas/procs/reset.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/procs/reset.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/procs/reset.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SBAS_PROCS_RESET - SBASIC Reset V2.01  2000 Tony Tebby section exten xdef reset xref smsq_sreset include 'dev8_keys_qdos_sms' ;+++ ; RESET ;--- reset moveq #sms.xtop,d0 trap #1 ; go to supervisor mode jmp smsq_sreset ; do standard soft reset end
13.65
62
0.688645
e2fb650aa699935bedd1a1823052f9de44936323
1,034
asm
Assembly
programs/oeis/027/A027929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/027/A027929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/027/A027929.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A027929: a(n) = T(n, 2*n-6), T given by A027926. ; 1,2,5,13,33,79,176,365,709,1300,2267,3785,6085,9465,14302,21065,30329,42790,59281,80789,108473,143683,187980,243157,311261,394616,495847,617905,764093,938093,1143994,1386321,1670065,2000714,2384285,2827357,3337105,3921335,4588520,5347837,6209205,7183324,8281715,9516761,10901749,12450913,14179478,16103705,18240937,20609646,23229481,26121317,29307305,32810923,36657028,40871909,45483341,50520640,56014719,61998145,68505197,75571925,83236210,91537825,100518497,110221970,120694069,131982765,144138241,157212959,171261728,186341773,202512805,219837092,238379531,258207721,279392037,302005705,326124878,351828713,379199449,408322486,439286465,472183349,507108505,544160787,583442620,625060085,669123005,715745032,765043735,817140689,872161565,930236221,991498794,1056087793,1124146193,1195821530,1271265997,1350636541 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 trn $0,1 seq $0,27928 ; a(n) = T(n, 2*n-5), T given by A027926. add $1,$0 lpe mov $0,$1
64.625
816
0.799807
46cc2c8ebc9097c3fc4dc8bd0533cbe3132569c8
37,844
asm
Assembly
Sources/BIOS/ROM1-3.20.asm
romychs/Orion-PRO
5fbd2db786ed7008e85936b7bbf39aa529df9eea
[ "BSD-3-Clause" ]
null
null
null
Sources/BIOS/ROM1-3.20.asm
romychs/Orion-PRO
5fbd2db786ed7008e85936b7bbf39aa529df9eea
[ "BSD-3-Clause" ]
null
null
null
Sources/BIOS/ROM1-3.20.asm
romychs/Orion-PRO
5fbd2db786ed7008e85936b7bbf39aa529df9eea
[ "BSD-3-Clause" ]
null
null
null
; ============================================== ; " O r i o n - P R O " ; ============================================== ; ROM1-BIOS ; ; 0.36 03 июня 1994 ; 0.90 14 февраля 1996 ; 3.10 14 мая 1996 ; 1.00 05 июня 1996 ; 2.00 24 декабря 1997 ; 2.10 17 апреля 2000 ; 3.20 ??? ; ---------------------------------------------- ; Дизассемблировано и адаптировно для SjasmpPlus ; Romych-ем в апреле 2021 ; ============================================== DEVICE NOSLOT64K include "ports.inc" ; Порты Ориона include "base.inc" ; Базовые константы ORG 0x0000 CLD_START JP PSK1 PRO JP INIT_PRO CTLKBD JP CTRLKB KBPRO JP KBRD STPRO JP STTS INPRO JP INKEY2 NUMKEY JP NUMINK SYSCTR JP SYSCTL MSCTR JP MSCTL BLOCK 3,0x00 ; filler IF RAMSEG = 1FH ; Cимволы номера сегмента db '1F' ELSE db '03' ENDIF ROM_ID DB 'ROM1-BIOS V',VERS1,'.',VERS2,VERS3,' (C) "ORIONSOFT" ' ; ============================================== ; Описание рабочих ячеек ; ============================================== ; ; Ячейки с заранее заданными значениями ; При холодном старте, эти ячейки переносятся в ОЗУ ; JOBORG EQU CELLS ; Адрес размещения ячеек в ОЗУ BEGJOB EQU $ ; Адрес размещения ячеек в ПЗУ ; DISP JOBORG ; ---------------------------------------------- ; Постоянно используемые ячейки ; ---------------------------------------------- ; ---------------------------------------------- ; Ячейки MOUSE ; ---------------------------------------------- MSMODE DB 03H ; 09H - режим отображения мыши MSPADR DW ARROW ; адрес шаблона мыши MSPSEG DB RAMSEG ; номер сегмента с шаблоном мыши MSPH DB 8 ; высота шаблона мыши MSPL DB 5 ; ширина шаблона мыши MSPD DB 0 ; смещение шаблона мыши MSSTY DB 2 ; шаг мыши по Y MSSTX DB 2 ; шаг мыши по X MSBSEG DB 1BH,1CH,1DH,1EH ; Номера сегментов буфера для мыши MSBADR DB low(0x4000-0x50) ; Адрес начала буфера в сегментах ; Шаблон стрелки мыши ARROW DB 80H,0C0H,0E0H,0F0H,0F8H,0F0H,0B0H,30H ; ---------------------------------------------- ; Ячейки драйвера клавиатуры ; ---------------------------------------------- KBMODE DB 00H ;бит 7 - признак старого режима MC7007 ;биты 0,1 - кодировка (00-ALT) KBFLAG DB 0 ; Флаг клавиатуры (CAPS LOCK = ON) ; KBSYM DB 0 ; Последний символ KBRD BAZA DW BFNUM ; Адрес буфера NUMINK CURTM DW 200H ; Константа мигания курсора IKEYTM DB 40H ; Константа антидребезга KBAUTO DW 150H ; Константа автоповтора STAUTO DW 1 ; Счетчик автоповтора OLDALF DB 0FH ; Включение АЛФ режима (^O) OLDGRF DB 0EH ; Включение графики (^N) ; CURCOD DB 08H,18H ; Коды клавиш курсора DB 19H,1AH CURCTR DB 08H,18H ; Коды клавиш курсора + CTRL DB 19H,1AH CURSFT DB 08H,18H ; Коды клавиш курсора + SHIFT DB 19H,1AH ; KBHEAD DW KBDBUF ; Указабель головы буфера KBRD KBTAIL DW KBDBUF ; Указатель хвоста буфера KBRD ; FUNTAB DW DUMMY ; Адрес таблицы функциональных клавиш FUNSEG DB RAMSEG ; Номер сегмента ОЗУ (блок "EXT") ; CTRTAB DW DUMMY ;-"- при надатии УПР CTRSEG DB RAMSEG ; SFTTAB DW DUMMY ;-"- при нажатии SHIFT SFTSEG DB RAMSEG ; ENT ENDJOB ; ---------------------------------------------- ; Буфер для NUM_INKEY (10 байт) ; ---------------------------------------------- NUMLEN EQU 10 ; длина буфера NUMKEY BFNUM EQU SFTSEG+1 ; начало буфера NUMKEY BFNUME EQU BFNUM+NUMLEN-1 ; конец буфера NUMKEY ; ---------------------------------------------- ; Буфер KBRD ; ---------------------------------------------- BUFLEN EQU 16 ; длина буфера KBRD KBDBUF EQU BFNUME+1 ; начало буфера KBRD KBDBFE EQU KBDBUF+BUFLEN-1 ; конец буфера KBRD ; ---------------------------------------------- ; Временные ячейки монитора ; (нужны только при вводе команды монитора) ; ---------------------------------------------- INBF EQU KBDBFE+1 ; буфер ввода команд INBF1 EQU INBF+1 INBFE EQU INBF+0x10 ; адрес конца буфера команд + 1 OPER1 EQU INBFE ; 1-операнд OPER2 EQU OPER1+2 ; 2-операнд PORTFA EQU OPER2+2 ; дубль порта 0xFA (Номер экрана и ширина) ; ---------------------------------------------- ; Временные ячейки драйвера мыши ; ---------------------------------------------- MSX EQU KBDBFE+1 MSY EQU MSX+2 DMX EQU MSY+2 NDMX EQU DMX+2 DMY EQU NDMX+2 NDMY EQU DMY+2 MSJ1 EQU NDMY+2 MSJ2 EQU MSJ1+2 MSJ3 EQU MSJ2+2 MSJ4 EQU MSJ3+2 MSJ5 EQU MSJ4+2 MSJ6 EQU MSJ5+2 MSJ7 EQU MSJ6+2 MSJ8 EQU MSJ7+2 ENDMS EQU MSJ8+2 ; ; TMPEND EQU ENDMS ; конец временных ячеек ; ASSERT (TMPEND>100H) && (TMPEND<=RAMTOP), Переплнение памяти рабочих ячеек ; ---------------------------------------------- ; Конец описания рабочих ячеек ; ---------------------------------------------- ; ---------------------------------------------- ;Таблица адресов подпрограмм обработки прерываний ; ---------------------------------------------- ISRTAB DW DEFESR, DEFESR, DEFESR, DEFESR, DEFESR, DEFESR, DEFESR, DEFESR ; ---------------------------------------------- ; Проверка наличия сегмента в ROM2 ; Вход: ; С - номер сегмента ; HL - адрес ; Выход: ; "Z" - сегмента нет, "NZ" - сегмент есть ; (для сегмента № 2: HL >= 2040H) ; ---------------------------------------------- TSTR2 LD B,C TSTR21 DEC B RET M IN A,(PORT_0A_MEM_CFG) SET 3,A OUT (PORT_0A_MEM_CFG),A LD A,B OUT (PORT_09_ROM2_SEG),A LD E,(HL) INC HL LD D,(HL) LD A,C OUT (PORT_09_ROM2_SEG),A LD A,(HL) DEC HL PUSH HL LD L,(HL) LD H,A EX DE,HL OR A SBC HL,DE POP HL RET Z LD A,D AND E INC A RET Z JR TSTR21 ; ---------------------------------------------- ; Процедура инициализации ПРО ; ---------------------------------------------- INIT0 DI LD A,0x50 ; 0101_0000 вкл окно ROM1 и откл переклю ОЗУ F000-FFFF OUT (PORT_0A_MEM_CFG),A INIT1 IN A,(PORT_00_DIPSW) BIT SW_KBD_RK86,A LD A,0x8A ; РК-86 JR NZ,MNT1 LD A,0x98 ; МС7007 MNT1 OUT (PORT_1B_CTL),A ; Инициализация ВВ55 клавиатуры CALL RES0 ; Инициализация рабочих ячеек LD HL,MMMPB ; Инициализация модуля EXT (Перенос его в ОЗУ) LD DE,0xF800 LD BC,MMMPE-MMMPB LDIR RET ; ---------------------------------------------- ; Инициализация режима ПРО (0003H) ; На входе: ; A=0 - с гашением видео, A=1 - без гашения ; На выходе: ; "Z" - нет "TV-PRO" ; A - номер версии "TV-PRO" ; ---------------------------------------------- INIT_PRO PUSH AF CALL INIT0 POP AF ; ---------------------------------------------- ; Программная инициализация TV-PRO ; На входе: ; A=0 - с гашением видео, A=1 - без гашения ; На выходе: ; "Z" - net ROM2 s "TV-PRO" ; A-nomer wersii "TV-PRO" ; ---------------------------------------------- INITV LD E,A IN A,(PORT_0A_MEM_CFG) ; Чтение и сохранение конфигурации памяти PUSH AF XOR A LD (VERSTV),A ; Обнуление версии LD HL,0x2008 ; Адрес в ROM2 LD C,R2SEG PUSH DE CALL TSTR2 ; Проверка наличия сегмента TVPRO POP DE JR Z,TVNO ; Переход, если нет драйвера LD A,E CALL 0x2000 ; Выполнение холодной инициализации ; LD (VERSTV),A ; Сохранить номер версии ; Подмена адресов векторов LD HL,TVSCR+1 CALL DTOH ; Вектор управления экранами LD HL,TVOUT+1 CALL DTOH ; Вектор вывода символа/курсора LD HL,TVGRF+1 CALL DTOH ; Вектор графических функций LD HL,TVSERV+1 CALL DTOH ; Вектор сервисных функций TVNO POP AF OUT (PORT_0A_MEM_CFG),A ; Восстановление конфигурации памяти LD A,(VERSTV) OR A RET ; ---------------------------------------------- ; Подпрограмма записи (DE),(DE+1) -> (HL),(HL+1) ; ---------------------------------------------- DTOH LD A,(DE) LD (HL),A INC DE INC HL LD A,(DE) LD (HL),A INC DE RET ; ---------------------------------------------- ;Настройка схемы управления палитрами ; ---------------------------------------------- INITPAL LD HL,PALTAB LD BC,0x10e0 ; e0-e2 - порты палитры OTIR LD BC,0x10e1 OTIR LD BC,0x10e2 OTIR RET ; ---------------------------------------------- ;Палитра, по 16 байт на канал цвета ; ---------------------------------------------- PALTAB ; канал красного db 0h,14h,20h,30h,4Ch,5Fh,6Ch,7Fh db 80h,90h,0A0h,0B0h,0CCh,0DFh,0ECh,0FFh ; канал зеленого db 0h,14h,20h,30h,40h,50h,60h,70h db 8Ch,9Fh,0ACh,0BFh,0CCh,0DFh,0ECh,0FFh ; канал синего db 0h,14h,2Ch,3Fh,40h,50h,6Ch,7Fh db 80h,90h,0ACh,0BFh,0C0h,0D0h,0ECh,0FFh ; ---------------------------------------------- ; Процедура холодного старта системы ; ---------------------------------------------- PSK1 LD HL,0xA000 ; Задержка, можно заменить тестом CPU PSK10 DEC HL LD A,H OR L JR NZ,PSK10 ; Программирование портов ВВ55 LD A,0x98 OUT (PORT_03_CTL),A ; DIP SW, PRINTER LD A,0x92 OUT (PORT_1D_MCARD_CTL),A ; Мультикарта, мышь LD A,0x16 OUT (PORT_3B_VI53_CTL),A ; Таймеры ВИ53 LD A,0x56 OUT (PORT_3B_VI53_CTL),A LD A,0x96 OUT (PORT_3B_VI53_CTL),A LD A,0x80 OUT (PORT_07_CTL),A ; Банки RAM OUT (PORT_0B_CTL),A ; Страницы RAM ; Подготовка диспетчера памяти PSK11 LD A,0x50 ;D7=0 - MEM-PORT - откл. ;D6=1 - F/ОЗУ RD/WR ;если D7=1, то D6=X ;D5=0 - F 5/10 MHz ;D4=1 - ROM1=вкл. ;D3=0 - ROM2=выкл. ;D0,1,2 = 0 - все окна закрыты OUT (PORT_0A_MEM_CFG),A CALL ENABLE_ROM1_OFF ; Снять запрет на отключение ROM1 OUT (PORT_08_RAM_PG),A OUT (REG_F9_RAM_PG),A OUT (REG_FA_SCRN_CFG),A LD (MSJ5),A LD A,0x1f OUT (REG_FC_COLOR),A LD A,0xf OUT (PORT_F8_VMODE),A LD HL,COLDST LD A,(HL) CP 0x5A ; Уже было включено питание? JR Z,MONIT ; да, в монитор LD (HL),0x5A ; нет, пометим, что уже было DEC HL LD (HL),0x0 DEC HL LD (HL),0x0 ; ---------------------------------------------- ; Теплый старт ROM1 ; ---------------------------------------------- MONIT LD SP,STACK CALL INIT1 CALL INITPAL IN A,(0x0) BIT 0x5,A JP Z,SYSMON CALL NUMINK AND A JR Z,MNT2 DEC A JP NZ,SYSMON MNT2 IN A,(0x0) BIT 0x7,A JR NZ,MON2 MNT3 LD A,1 ; без гашения видео CALL INITV JP Z,HALT_ ; нет TV-PRO JP MON_128_F800 ; ---------------------------------------------- ; Загрузка монитора из ROM2 в режиме O-128 ; ---------------------------------------------- MON128 LD BC,500 LD DE,0x0 CALL SOUND ; пауза 500мс MON2 IN A,(PORT_0A_MEM_CFG) SET 3,A ; вкл ROM2 OUT (PORT_0A_MEM_CFG),A XOR A OUT (PORT_09_ROM2_SEG),A LD HL,(0x2000) ; Начальная ячейка ROM2 LD A,L CP H JP NZ,0x2000 ; ------------- ; Нет ROM-2 ; ------------- HALT_ CALL CLRSCR LD A,0xe0 OUT (REG_FC_COLOR),A ; Светлый экран LD A,0xf OUT (PORT_F8_VMODE),A ; Певдоцветной CALL SNDP CALL SNDP CALL SNDP HALT ; ---------------------------------------------- ; Очистка экрана ; ---------------------------------------------- CLRSCR LD BC,0x3000 LD HL,SCR_C000 LD DE,SCR_C000+1 LD (HL),0 LDIR RET ; ---------------------------------------------- ; Звук с паузой ; ---------------------------------------------- SNDP LD BC,0xc8 LD DE,0x400 CALL SOUND LD DE,0x0 JP SOUND ; ---------------------------------------------- ; Внутренний системный монитор ; ---------------------------------------------- SYSMON LD SP,STACK XOR A CALL INITV JP Z,HALT_ XOR A OUT (PORT_08_RAM_PG),A OUT (REG_FA_SCRN_CFG),A LD A,0x4f OUT (REG_FC_COLOR),A LD A,0xf OUT (PORT_F8_VMODE),A CALL RES0 MAIN LD SP,STACK CALL BIGFRM LD HL,TIT1 CALL MSGXX LD A,0x5 LD BC,0x63 LD DE,0x92 CALL TVGRF LD A,0xd LD BC,0x9f LD DE,0xf3 CALL TVGRF LD IX,MENU1 LD HL,POS1 CALL MENU JP C,MONIT JR MAIN ;-------------- ; Монитор ;-------------- MON_UR LD A,0x1f OUT (REG_FC_COLOR),A LD A,0xf OUT (PORT_F8_VMODE),A LD HL,TBTYT CALL MSGXX CALL LINE LD HL,TBCOM CALL MSGXX CALL LINE UR LD SP,STACK LD HL,TAB3 CALL MSGXX LD HL,UR PUSH HL CALL CDIN CALL CVRT LD A,(MSX) OR A JP M,ERR CP BEGJOB JR C,UR1 AND 0xdf UR1 CP 'M' JP Z,MEMR CP 'D' JP Z,DUMP CP 'F' JP Z,FILL CP 'T' JP Z,TRANS CP 'C' JP Z,COMP CP 'I' JP Z,INPUT CP 'O' JP Z,OUTPUT CP 'V' JP Z,VIDEO CP 'W' JP Z,WIN CP 'X' JP Z,XWIN CP '2' JP Z,SPEED2 CP '8' JP Z,SPEED5 CP 'G' JP NZ,ERR JP HL CDIN LD DE,INBF LD B,0x0 CD1 CALL KBRD CP 0x3 JP Z,MONIT CP 0x1b JP Z,MON_UR CP 0x7f JR Z,CD02 CP 0x8 JR NZ,CD2 CD02 INC B DEC B JR Z,CD1 CD5 DEC DE DEC B LD A,0x8 CALL TVA CALL SPC LD A,0x8 CALL TVA JR CD1 CD2 CP 0xd JR Z,CD6 CP 0x20 JR C,CD1 CD6 LD (DE),A INC B CP 0xd RET Z CALL TVA INC DE LD A,INBFE-INBF-1 CP B JR NC,CD1 JR CD5 CVRT LD DE,INBF1 LD HL,0x0 LD (OPER2),HL CALL CVRT2 LD (OPER1),HL RET C CALL CVRT2 LD (OPER2),HL JR C,CVRT1 CALL CVRT2 LD B,H LD C,L LD HL,(OPER2) CVRT1 EX DE,HL LD HL,(OPER1) RET CVRT2 LD HL,0x0 LD B,L LD C,L CVR ADD HL,BC CVR1 LD A,(DE) INC DE CP 0x20 JR Z,CVR1 CP 0xd JR Z,CVR3 CP 0x2c RET Z CP BEGJOB JR C,CVR4 AND 0xdf CVR4 SUB 0x30 JP M,ERR CP 0xa JP M,CVR2 CP 0x11 JP M,ERR CP 0x17 JP P,ERR SUB 0x7 CVR2 LD C,A ADD HL,HL ADD HL,HL ADD HL,HL ADD HL,HL JR NC,CVR ERR LD A,'?' CALL TVA JP UR CVR3 SCF RET AS LD A,(HL) ASC PUSH AF RRCA RRCA RRCA RRCA CALL AS1 POP AF AS1 AND 0xf CP 0xa JP M,AS2 ADD A,0x7 AS2 ADD A,0x30 JP TVA MCT CALL HDLN ADR LD A,H CALL ASC ADR1 LD A,L ADR2 CALL ASC SPC LD A,0x20 JP TVA HDLN LD A,0x0D CALL TVA LD A,0x0A JP TVA DPCMP LD A,H CP D RET NZ LD A,L CP E RET LINE LD BC,0x3EC4 CALL SPC LINE1 CALL TVSYM DJNZ LINE1 RET M1 INC HL MEMR CALL MCT CALL AS CALL SPC CALL CDIN LD DE,INBF LD A,(DE) CP 0x0D JR Z,M1 PUSH HL CALL CVRT2 EX DE,HL POP HL LD (HL),E JR M1 DUMP LD HL,(OPER1) LD L,0x0 DP1 LD B,0xff CALL ABC D3 CALL MCT CALL SPC PUSH HL LD B,0x2 D1 LD A,(OPER2) CALL DISK CALL ASC INC HL DJNZ D5 CALL SPC LD B,0x2 D5 LD A,L AND 0xf JR NZ,D1 POP HL CALL SPC L1 LD A,(OPER2) CALL DISK CP 0x20 JR C,L13 CP 0xb0 JR C,L12 CP 0xe0 JR C,L13 CP 0xf2 JR C,L12 L13 LD A,'.' L12 CALL TVA INC HL LD A,L AND 0xf JR NZ,L1 LD A,L AND A JR NZ,D3 CALL HDLN CALL ABC0 L9 CALL KBRD CP 0x1b JP Z,MON_UR CP 0xc JR Z,DUMP CP 0x42 JR Z,DUMP CP 0x62 JR Z,DUMP CP 0x19 JR Z,L7 OR A JR NZ,L8 L7 DEC H DEC H JR DP1 L8 CP 0x1A JR Z,DP1 CP 0x2 JR Z,DP1 JR L9 ; ABCC0 DB -1BH,-'6',-' ',-' ',-' ',-' ',-' ',-' ',-'E',-'S' DB -'C',-' ',-'-',-' ',-'Q',-'u',-'i',-'t',-' ' DB -' ',-' ',-' ',-' ',-' ',-' ',-' ',-' ',-' ' DB -' ',-' ',-' ',-' ',-' ',-' ',-' ',-' ',-' ',-' ' DB -'(',-'B',-')',-'e',-'g',-'i',-'n',-' ',-' ' DB -' ',-' ',-'P',-'g',-'-',-0F8H,-' ',-' ',-' ' DB -' ',-'P',-'g',-'-',-0F9H,-' ',-' ',-' ' DB -' ',-1BH,-'7',0 ; ABC0 PUSH HL LD HL,ABCC0 CALL MSGXX POP HL RET ; ABCC DB -1BH,-59H,-27H,-20H,-1BH,-'6',-20H,-'P',-'=',0 ; ABC PUSH HL LD HL,ABCC CALL MSGXX POP HL LD A,(OPER2) LD C,A AND 0xf0 LD A,C JR NZ,AB6 OR 0x30 AB6 CALL TVA CALL SPC CALL SPC CALL SPC LD C,0x0 AB4 LD B,0x2 AB2 LD A,C CALL AS1 CALL SPC INC C DJNZ AB2 CALL SPC LD A,C CP 0x10 JR NZ,AB4 AB3 LD A,C CP ' ' JR Z,AB8 CALL AS1 INC C JR AB3 AB7 CALL SPC AB8 PUSH HL LD HL,INVOF CALL MSGXX POP HL RET DISK AND 0xf CALL RRAM LD A,C RET INPUT CALL SPC LD C,L IN A,(C) HEXBIN LD C,A CALL ASC LD A,ENDJOB-BEGJOB CALL TVA LD A,C LD B,0x8 BIN0 LD C,A AND 0x80 LD A,0x30 JR Z,BIN1 LD A,0x31 BIN1 CALL TVA LD A,B CP 0x5 JR NZ,BIN2 LD A,0x5f CALL TVA BIN2 LD A,C RLCA DJNZ BIN0 RET OUTPUT LD C,L OUT (C),E RET WIN LD A,L AND 0x3 LD L,A LD C,A LD A,0x1 INC L WN1 DEC L JR Z,WN2 RLCA JR WN1 WN2 LD L,A LD A,E CP 0xff JR NZ,WN20 LD A,L CPL LD L,A IN A,(PORT_0A_MEM_CFG) AND L JR WN7 WN20 INC C DEC C JR NZ,WN3 OUT (PORT_04_RAM0P),A JR WN6 WN3 DEC C JR NZ,WN4 OUT (PORT_05_RAM1P),A JR WN6 WN4 DEC C JR NZ,WN5 OUT (PORT_06_RAM2P),A JR WN6 WN5 OUT (PORT_09_ROM2_SEG),A WN6 IN A,(PORT_0A_MEM_CFG) OR L WN7 OUT (PORT_0A_MEM_CFG),A RET XWIN CALL HDLN LD E,0xff LD C,0x4 SG2 LD B,0x8 LD A,E SG1 ADD A,0x4 PUSH AF CALL ADR2 POP AF DJNZ SG1 CALL HDLN DEC E DEC C JR NZ,SG2 CALL HDLN LD A,0x30 CALL TVA LD A,0x33 CALL TVA CALL SPC IN A,(PORT_09_ROM2_SEG) CALL XW5 LD L,0x2 CALL ADR1 IN A,(PORT_06_RAM2P) CALL XW5 DEC L CALL ADR1 IN A,(PORT_05_RAM1P) CALL XW5 DEC L CALL ADR1 IN A,(PORT_04_RAM0P) CALL XW5 LD A,0x44 CALL TVA LD A,0x50 CALL TVA CALL SPC IN A,(PORT_0A_MEM_CFG) XW5 CALL HEXBIN JP HDLN FILL LD (HL),C CALL DPCMP RET Z INC HL JR FILL VIDEO LD A,0x80 LD HL,PORTFA XOR (HL) LD (HL),A OUT (REG_FA_SCRN_CFG),A RET COMP CALL DPCMP RET Z LD A,(BC) CP (HL) JR NZ,COMP2 COMP1 INC HL INC BC JR COMP COMP2 CALL HDLN CALL ADR CALL SPC CALL AS CALL SPC LD A,(BC) CALL ASC COMP3 CALL INKEY CP 0x1b RET Z INC A JR NZ,COMP3 JR COMP1 TRANS LD A,(HL) LD (BC),A LD A,H CP D JR NZ,TRS1 LD A,L CP E RET Z TRS1 INC HL INC BC JR TRANS SPEED2 IN A,(PORT_0A_MEM_CFG) OR 0x20 OUT (PORT_0A_MEM_CFG),A RET SPEED5 IN A,(PORT_0A_MEM_CFG) AND 0xdf OUT (PORT_0A_MEM_CFG),A RET ; --------------------------------------------- ; Управление системой ; A=0 - инициализация рабочих ячеек "ROM1-BIOS"; ; A=1 - инициализация портов диспетчера памяти (отключение всех окон); ; A=2 - освобождение оверлейной области ОЗУ, используемой драйвером "TV-PRO"; ; A=З - проверка занятости оверлейной области ОЗУ, используемой драйвером "TV-PRO" ; --------------------------------------------- SYSCTL LD A,IXL ; db 0DDh LD A,L OR A JR NZ,SYS1 ; Процедура переноса блока исходного состояния в ОЗУ RES0 DI LD HL,BEGJOB LD DE,JOBORG LD BC,ENDJOB-BEGJOB LDIR LD HL,ISRTAB LD A,0xf7 LD I,A LD D,A LD E,0x0 LD BC,0x10 LDIR IM 2 RET SYS1 DEC A JR NZ,SYS2 ;Отключение всех окон RES1 XOR A OUT (PORT_04_RAM0P),A OUT (PORT_05_RAM1P),A OUT (PORT_06_RAM2P),A OUT (PORT_09_ROM2_SEG),A IN A,(PORT_0A_MEM_CFG) AND 0xF0 OUT (PORT_0A_MEM_CFG),A RET SYS2 DEC A JR NZ,SYS3 ; Освобождение оверлейной части драйвера TV-PRO FREOVR LD IX,0x2003 JR SUBR2 SYS3 DEC A RET NZ ; Проверка оверлейой области драйвера TV-PRO TSTOVR LD IX,0x2006 ; Вызов подпрограммы из ROM2 ; IX - Адрес в ROM2 SUBR2 PUSH IY IN A,(PORT_09_ROM2_SEG) LD IYL,A ; db 0FDh, LD L,A LD A,R2SEG OUT (PORT_09_ROM2_SEG),A IN A,(PORT_0A_MEM_CFG) SET ROM2_WND,A OUT (PORT_0A_MEM_CFG),A CALL PCIX PUSH AF LD A,IYL ; db 0FDh, LD A,L OUT (PORT_09_ROM2_SEG),A POP AF POP IY RET PCIX JP IX ; --------------------------------------------- ; Подключение модуля тестирования ; --------------------------------------------- include "tst.asm" ; ; TYTBS1 DB -1FH,-1BH,-59H,-21H,-22H DB -'(',-'C',-')',-' ',-'1',-'9',-'9',-'3',-'-',-'1' DB -'9',-'9',-'7',-' ',-'O',-'r',-'i',-'o',-'n' DB -'s',-'o',-'f',-'t',-' ',-'C',-'o',-'.' DB -1BH,-59H,-21H,-4FH DB -'O',-'r',-'i',-'o',-'n',-'-',-'P',-'r',-'o' DB -' ',-'V',-'3',-'.',-'1',-'0' DB -0DH,-0AH,0 ; TBTYT DB -1FH,-0AH,-0AH DB -' ',-'S',-'y',-'s',-'t',-'e',-'m',-' ',-'M' DB -'O',-'N',-'I',-'T',-'O',-'R' DB -' ',-' ',-'V' DB -VERS1,-'.',-VERS2,-VERS3,-0DH,-0AH,0 ; TBCOM DB -0DH,-0AH DB -' ',-'-',-' ',-'M',-' ',-'D',-' ',-'F' DB -' ',-'T',-' ',-'C',-' ',-'-',-' ',-'I',-' ' DB -'O',-' ',-'V',-' ',-'W',-' ',-'X',-' ',-'2' DB -' ',-'8',-' ',-'-',-' ',-'G',-' ',-'-' DB -0DH,-0AH,0 ; TAB3 DB -0DH,-0AH,-0AH DB -'=',-'>',-7,0 ; --------------------------------------------- ; Управление клавиатурой ; LX - Номер функции ; --------------------------------------------- CTRLKB LD A,IXL ; DB 0DDh, LD A,LX SUB 19 JP NC,KBC19 ADD A,19 JR NZ,KBC1 ; --------------------------------------------- ; Установка режима клавиатуры ; E - режим, D - байт флагов ; --------------------------------------------- SETKBM PUSH HL LD HL,(BAZA) XOR A LD (HL),A POP HL LD (KBMODE),DE RET KBC1 DEC A JR NZ,KBC2 ; Получение режима клавиатуры ; A keys_pressed ; C last_key ; HL buff_numkey ; E режим ; D флаги GETKBM LD HL,(BAZA) LD A,(HL) ; Число нажатых клавиш LD E,A OR A LD D,0x0 PUSH HL ADD HL,DE LD C,0xff JR Z,GKBM1 LD C,(HL) GKBM1 POP HL INC HL LD DE,(KBMODE) RET KBC2 DEC A JR NZ,KBC3 ; Установка констант задержки ; HL - автоповтора, DE - мигания курсора LD (KBAUTO),HL LD (CURTM),DE RET KBC3 DEC A JR NZ,KBC4 ; Получение констант задержки ; HL - автоповтора, DE - мигания курсора LD HL,(KBAUTO) LD DE,(CURTM) RET KBC4 DEC A JR NZ,KBC5 ; Установить коды клавиш управления курсором ; C,B,E,D - коды клавиш ; LD (CURCOD),BC LD (CURCOD+2),DE RET KBC5 DEC A JR NZ,KBC6 ; Получить коды клавиш управления курсором ; C,B,E,D - коды клавиш ; LD BC,(CURCOD) LD DE,(CURCOD+2) RET KBC6 DEC A JR NZ,KBC7 ; Установить коды клавиш + CTRL ; C,B,E,D - коды клавиш ; LD (CURCTR),BC LD (CURCTR+2),DE RET KBC7 DEC A JR NZ,KBC8 ; Получить коды клавиш + CTRL ; C,B,E,D - коды клавиш LD BC,(CURCTR) LD DE,(CURCTR+2) RET KBC8 DEC A JR NZ,KBC9 ; Установить коды клавиш + SHIFT ; C,B,E,D - коды клавиш LD (CURSFT),BC LD (CURSFT+2),DE RET KBC9 DEC A JR NZ,KBC10 ; Получить коды клавиш + CTRL ; C,B,E,D - коды клавиш LD BC,(CURSFT) LD DE,(CURSFT+2) RET KBC10 DEC A JR NZ,KBC11 ; Установка адреса таблицы функциональных клавиш ; HL - адрес, C - номер сегмента ОЗУ ; LD (FUNTAB),HL LD A,C LD (FUNSEG),A RET KBC11 DEC A JR NZ,KBC12 ; Получение адреса таблицы функциональных клавиш ; HL - адрес, C - номер сегмента ОЗУ ; LD HL,(FUNTAB) LD A,(FUNSEG) LD C,A RET KBC12 DEC A JR NZ,KBC13 ; Установка адреса таблицы клавиш + упр -- ; HL - адрес, C - номер сегмента ОЗУ ; LD (CTRTAB),HL LD A,C LD (CTRSEG),A RET KBC13 DEC A JR NZ,KBC14 ; Получение адреса таблицы клавиш + упр -- ; HL - адрес, C - номер сегмента ОЗУ LD HL,(CTRTAB) LD A,(CTRSEG) LD C,A RET KBC14 DEC A JR NZ,KBC15 ; Установка адреса таблицы клавиш + SHIFT ; HL - адрес, C - номер сегмента ОЗУ ; LD (SFTTAB),HL LD A,C LD (SFTSEG),A RET KBC15 DEC A JR NZ,KBC16 ; Получение адреса таблицы клавиш + SHIFT ; HL - адрес, C - номер сегмента ОЗУ LD HL,(SFTTAB) LD A,(SFTSEG) LD C,A RET KBC16 DEC A JR NZ,KBC17 ; Занесение символа в буфер клавиатуры KBRD ; C - код символа ; "CY" - буфер заполнен ; WRBUF PUSH DE PUSH HL LD HL,(KBTAIL) LD DE,KBDBFE LD (HL),C CALL CPHLDE INC HL JR C,WB1 LD HL,KBDBUF WB1 LD DE,(KBHEAD) CALL CPHLDE SCF JR Z,WB3 LD (KBTAIL),HL WB2 OR A WB3 POP HL POP DE RET ; --------------------------------------------- ; Процедура сравнения HL и DE ; --------------------------------------------- CPHLDE PUSH HL OR A SBC HL,DE POP HL RET KBC17 DEC A JR NZ,CLRBUF ; Получение символа из буфера клавиатуры ; C - код символа ; "CY" - буфер пуст RDBUF PUSH DE PUSH HL CALL TSB JR C,WB3 LD C,(HL) LD DE,KBDBFE CALL CPHLDE INC HL JR C,RB1 LD HL,KBDBUF RB1 LD (KBHEAD),HL JR WB2 ; --------------------------------------------- ; Обнуление буфера клавиатуры ; --------------------------------------------- CLRBUF PUSH HL LD HL,(KBTAIL) LD (KBHEAD),HL POP HL RET KBC19 JR NZ,KBC20 ; --------------------------------------------- ; Проверка буфера клавиатуры ; --------------------------------------------- TSTBUF PUSH DE PUSH HL CALL TSB POP HL POP DE RET TSB LD HL,(KBHEAD) LD DE,(KBTAIL) CALL CPHLDE SCF RET Z OR A RET KBC20 DEC A JR NZ,KBC21 ; --------------------------------------------- ; Установка кода АЛФ ГРАФ ; L - для включения алфавитного режима ; H - для включения псевдографического режима; ; --------------------------------------------- LD (OLDALF),HL RET KBC21 DEC A RET NZ LD HL,(OLDALF) RET ; --------------------------------------------- ; Подключение модуля клавиатуры ; --------------------------------------------- include "kbd.asm" ; --------------------------------------------- ; Подключение модуля мыши ; --------------------------------------------- include "mou.asm" ; ============================================= ; Текстовые сообщения для режима "PRO" ; ============================================= FLTYT DB -09H,-'f',-'r',-'o',-'m',-' ',-'f',-'l',-'o',-'p',-'p',-'y',-' ' DB -'d',-'i',-'s',-'k',-0DH,-0AH,0 ; HDTYT DB -09H,-' ',-'f',-'r',-'o',-'m',-' ',-'h',-'a',-'r',-'d',-' ' DB -'d',-'i',-'s',-'k',-0DH,-0AH,0 ; TBER4 DB -'N',-'o',-'n',-'-',-'s',-'y',-'s',-'t',-'e',-'m',-' ',-'d',-'i',-'s',-'k',-'!',0 ; TBERR DB -'D',-'i',-'s',-'k',-' ',-'b',-'o',-'o',-'t',-' ',-'f',-'a',-'i',-'l',-'u',-'r',-'e',-'!',0 TBER0 DB -0DH,-0AH,-0AH,-' ',-'E',-'R',-'R',-'O',-'R',-3AH,-' ',0 TBQT DB -' ',-'[',-'A',-'P',-'2',-'-',-'Q',-'u',-'i',-'t',-']',0 ; STTYT DB -1FH,-0DH,-0AH DB -' ',-'O',-'r',-'i',-'o',-'n',-'-',-'P',-'r',-'o' DB -' ',-'s',-'y',-'s',-'t',-'e',-'m',-09H,-09H,-09H DB -'(',-'C',-')',-' ' DB -'1',-'9',-'9',-'3',-'-',-'2',-'0',-'0',-'0' DB -' ',-'O',-'r',-'i',-'o',-'n',-'s',-'o',-'f',-'t',-0DH,-0AH,0 ; XTYT DB -0DH,-0AH DB -' ',-'L',-'o',-'a',-'d',-'i',-'n',-'g',-' ' DB -'D',-'i',-'s',-'k',-' ',-'O',-'p',-'e',-'r' DB -'a',-'t',-'i',-'n',-'g',-' ',-'S',-'y',-'s' DB -'t',-'e',-'m',-0DH,-0AH,0 ; ---------------------------------------------- ; Подключение блока расширенных функций ; ---------------------------------------------- include "ext.asm" ; ---------------------------------------------- ; Filler ; ---------------------------------------------- BLOCK 9,0xFF ENABLE_ROM1_OFF LD A,0x80 OUT (PORT_FB_TMR_INT),A XOR A RET BYTE 0xff ; filler up to 8192 CODE_SIZE EQU $ ASSERT CODE_SIZE<2001H, Переполение ROM1 (EXT) DISPLAY "Code size is:",/A,CODE_SIZE END
25.902806
115
0.361986
9d674488c4fe52857115baf0b7a5663c2bdaca29
1,360
asm
Assembly
data/mapObjects/mtmoon1.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapObjects/mtmoon1.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapObjects/mtmoon1.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
MtMoon1Object: db $3 ; border block db $5 ; warps db $23, $e, $1, $ff db $23, $f, $1, $ff db $5, $5, $0, MT_MOON_2 db $b, $11, $2, MT_MOON_2 db $f, $19, $3, MT_MOON_2 db $1 ; signs db $17, $f, $e ; MtMoon1Text14 db $d ; objects e number of object SPRITE_HIKER, $5, $6, STAY, DOWN, $1, OPP_HIKER, $1 object SPRITE_BUG_CATCHER, $c, $10, STAY, RIGHT, $2, OPP_YOUNGSTER, $3 object SPRITE_LASS, $1e, $4, STAY, DOWN, $3, OPP_LASS, $5 object SPRITE_BLACK_HAIR_BOY_2, $18, $1f, STAY, UP, $4, OPP_SUPER_NERD, $1 object SPRITE_LASS, $10, $17, STAY, DOWN, $5, OPP_LASS, $6 object SPRITE_BUG_CATCHER, $7, $16, STAY, DOWN, $6, OPP_BUG_CATCHER, $7 object SPRITE_OAK, $1e, $1b, STAY, RIGHT, $7, OPP_PROF_OAK, $1 ;bug catcher $8 object SPRITE_BALL, $2, $14, STAY, NONE, $8, POTION object SPRITE_BALL, $2, $2, STAY, NONE, $9, MOON_STONE object SPRITE_BALL, $23, $1f, STAY, NONE, $a, RARE_CANDY object SPRITE_BALL, $24, $17, STAY, NONE, $b, ESCAPE_ROPE object SPRITE_BALL, $14, $21, STAY, NONE, $c, POTION object SPRITE_BALL, $5, $20, STAY, NONE, $d, TM_12 ;object SPRITE_OAK, $4, $19, STAY, DOWN, $e, OPP_PROF_OAK, $1 ; warp-to EVENT_DISP MT_MOON_1_WIDTH, $23, $e EVENT_DISP MT_MOON_1_WIDTH, $23, $f EVENT_DISP MT_MOON_1_WIDTH, $5, $5 ; MT_MOON_2 EVENT_DISP MT_MOON_1_WIDTH, $b, $11 ; MT_MOON_2 EVENT_DISP MT_MOON_1_WIDTH, $f, $19 ; MT_MOON_2
37.777778
79
0.666176
b3dad137691dc2f22c7d82d87b8225b231bdd3d2
351
asm
Assembly
src/firmware/Platform/GeneralPurposeRegisters.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware/Platform/GeneralPurposeRegisters.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware/Platform/GeneralPurposeRegisters.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#include "Platform.inc" radix decimal GeneralPurposeRegistersRam udata global RA global RAA global RAB global RAC global RAD global RB global RBA global RBB global RBC global RBD global RZ global RZA global RZB RA: RAA res 1 RAB res 1 RAC res 1 RAD res 1 RB: RBA res 1 RBB res 1 RBC res 1 RBD res 1 RZ: RZA res 1 RZB res 1 end
9
32
0.723647
082d157d76ffbddaa1ce9ff99e711c12b8fb68d6
440
asm
Assembly
programs/oeis/268/A268414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/268/A268414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/268/A268414.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A268414: a(n) = 5*a(n - 1) - 2*n for n>0, a(0) = 1. ; 1,3,11,49,237,1175,5863,29301,146489,732427,3662115,18310553,91552741,457763679,2288818367,11444091805,57220458993,286102294931,1430511474619,7152557373057,35762786865245,178813934326183,894069671630871,4470348358154309 mov $2,$0 mov $4,2 lpb $0 sub $0,1 add $1,1 add $3,$4 add $1,$3 sub $1,3 mov $4,$3 sub $3,2 mul $4,4 lpe lpb $2 add $1,2 sub $2,1 lpe add $1,1
20.952381
221
0.677273
a076aec015e874488142751d6bf22ae3e5333026
329
asm
Assembly
programs/oeis/329/A329925.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/329/A329925.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329925.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A329925: Beatty sequence for (1+sqrt(41))/5. ; 1,2,4,5,7,8,10,11,13,14,16,17,19,20,22,23,25,26,28,29,31,32,34,35,37,38,39,41,42,44,45,47,48,50,51,53,54,56,57,59,60,62,63,65,66,68,69,71,72,74,75,76,78,79,81,82,84,85,87,88,90,91,93,94,96,97 mov $2,$0 mov $3,$0 div $3,25 sub $0,$3 mov $1,3 mul $1,$0 div $1,6 add $1,1 add $1,$2
25.307692
193
0.620061
41e67e37135ff9deba5b86ba3545b0fda2a37483
3,621
asm
Assembly
deps/gmp.js/mpn/x86_64/rsh1aors_n.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
184
2020-04-15T14:28:37.000Z
2020-09-22T15:57:55.000Z
deps/gmp.js/mpn/x86_64/rsh1aors_n.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
3
2020-09-22T18:09:12.000Z
2021-11-27T22:37:52.000Z
deps/gmp.js/mpn/x86_64/rsh1aors_n.asm
6un9-h0-Dan/cobaul
11115a7a77924d6e1642f847c613efb25f217e56
[ "MIT" ]
5
2020-04-21T19:50:23.000Z
2020-09-22T10:58:02.000Z
dnl AMD64 mpn_rsh1add_n -- rp[] = (up[] + vp[]) >> 1 dnl Copyright 2003, 2005, 2009 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 3 of the License, or (at dnl your option) any later version. dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C K8,K9: 2.14 (mpn_add_n + mpn_rshift need 4.125) C K10: 2.14 (mpn_add_n + mpn_rshift need 4.125) C P4: 12.75 C P6-15: 3.75 C TODO C * Rewrite to use indexed addressing, like addlsh1.asm and sublsh1.asm. C * Try to approach the cache bandwidth 1.5 c/l. It should be possible. C INPUT PARAMETERS define(`rp',`%rdi') define(`up',`%rsi') define(`vp',`%rdx') define(`n',`%rcx') define(`n32',`%ecx') ifdef(`OPERATION_rsh1add_n', ` define(ADDSUB, add) define(ADCSBB, adc) define(func_n, mpn_rsh1add_n) define(func_nc, mpn_rsh1add_nc)') ifdef(`OPERATION_rsh1sub_n', ` define(ADDSUB, sub) define(ADCSBB, sbb) define(func_n, mpn_rsh1sub_n) define(func_nc, mpn_rsh1sub_nc)') MULFUNC_PROLOGUE(mpn_rsh1add_n mpn_rsh1add_nc mpn_rsh1sub_n mpn_rsh1sub_nc) ASM_START() TEXT ALIGN(16) PROLOGUE(func_nc) push %rbx xor %eax, %eax neg %r8 C set C flag from parameter mov (up), %rbx ADCSBB (vp), %rbx jmp L(ent) EPILOGUE() ALIGN(16) PROLOGUE(func_n) push %rbx xor %eax, %eax mov (up), %rbx ADDSUB (vp), %rbx L(ent): rcr %rbx C rotate, save acy adc %eax, %eax C return value mov n32, R32(%r11) and $3, R32(%r11) cmp $1, R32(%r11) je L(do) C jump if n = 1 5 9 ... L(n1): cmp $2, R32(%r11) jne L(n2) C jump unless n = 2 6 10 ... add %rbx, %rbx C rotate carry limb, restore acy mov 8(up), %r10 ADCSBB 8(vp), %r10 lea 8(up), up lea 8(vp), vp lea 8(rp), rp rcr %r10 rcr %rbx mov %rbx, -8(rp) jmp L(cj1) L(n2): cmp $3, R32(%r11) jne L(n3) C jump unless n = 3 7 11 ... add %rbx, %rbx C rotate carry limb, restore acy mov 8(up), %r9 mov 16(up), %r10 ADCSBB 8(vp), %r9 ADCSBB 16(vp), %r10 lea 16(up), up lea 16(vp), vp lea 16(rp), rp rcr %r10 rcr %r9 rcr %rbx mov %rbx, -16(rp) jmp L(cj2) L(n3): dec n C come here for n = 4 8 12 ... add %rbx, %rbx C rotate carry limb, restore acy mov 8(up), %r8 mov 16(up), %r9 ADCSBB 8(vp), %r8 ADCSBB 16(vp), %r9 mov 24(up), %r10 ADCSBB 24(vp), %r10 lea 24(up), up lea 24(vp), vp lea 24(rp), rp rcr %r10 rcr %r9 rcr %r8 rcr %rbx mov %rbx, -24(rp) mov %r8, -16(rp) L(cj2): mov %r9, -8(rp) L(cj1): mov %r10, %rbx L(do): shr $2, n C 4 je L(end) C 2 ALIGN(16) L(top): add %rbx, %rbx C rotate carry limb, restore acy mov 8(up), %r8 mov 16(up), %r9 ADCSBB 8(vp), %r8 ADCSBB 16(vp), %r9 mov 24(up), %r10 mov 32(up), %r11 ADCSBB 24(vp), %r10 ADCSBB 32(vp), %r11 lea 32(up), up lea 32(vp), vp rcr %r11 C rotate, save acy rcr %r10 rcr %r9 rcr %r8 rcr %rbx mov %rbx, (rp) mov %r8, 8(rp) mov %r9, 16(rp) mov %r10, 24(rp) mov %r11, %rbx lea 32(rp), rp dec n jne L(top) L(end): mov %rbx, (rp) pop %rbx ret EPILOGUE()
21.175439
79
0.643469
19758ccb479a245b842b04639b996b7e90c04880
697
nasm
Assembly
Projetos/F-Assembly/src/nasm/examples/testeLED.nasm
RaphaelAzev/Z01-GrupoH-2-
1a0077f53beb4a57c5e509fe22c4a9bb0ecaa905
[ "Unlicense" ]
2
2018-03-21T01:20:58.000Z
2018-04-16T14:35:51.000Z
Projetos/F-Assembly/src/nasm/examples/testeLED.nasm
RaphaelAzev/Z01-GrupoH-2-
1a0077f53beb4a57c5e509fe22c4a9bb0ecaa905
[ "Unlicense" ]
91
2018-08-24T11:41:28.000Z
2018-12-09T15:09:02.000Z
Projetos/F-Assembly/src/nasm/examples/testeLED.nasm
TeraByte900/Z01-Ingenheiros
db9dbf899d3cdc72e247ba4a9d15ae205cf8757f
[ "Unlicense" ]
3
2018-03-07T01:27:37.000Z
2018-03-23T19:35:14.000Z
;; valor inicial do led ;; RAM[1] = CNT leaw $0, %A movw %A, %D leaw $1, %A movw %D, (%A) ;; %D = RAM[1] = CNT ;; LED = CNT ;; RAM[1] = CNT + 1 LED: leaw $1, %A movw (%A), %D leaw $21184, %A movw %D, (%A) incw %D leaw $1, %A movw %D, (%A) ;; RAM[0] = 8 DELAY: leaw $8, %A movw %A, %D movw $0, %A movw %D, (%A) ;; conta ate 32k (2^15) ;; %S = 32k LOOP1: leaw $32000, %A movw %A, %S leaw $LOOP2, %A LOOP2: decw %S jg %S nop leaw $0, %A subw (%A), $1, %D movw %D, (%A) leaw %LOOP1, %A jg %D nop ;; retorna para atualizar o LED leaw $LED, %A jmp nop
13.94
33
0.416069
6c3731b3c1f050c92eea33a9335319ac3d374346
479
asm
Assembly
libsrc/spectrum/currah_speech.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/spectrum/currah_speech.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/spectrum/currah_speech.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 30/06/2006 ; ; Currah uSpeech call, just speak as it does in BASIC ; ; int currah_speech(char *text); ; ; ; $Id: currah_speech.asm,v 1.1 2006/07/03 15:04:15 stefano Exp $ ; XLIB currah_speech LIB zx_setstr currah_speech: pop bc pop hl ; text push hl push bc ld c,'s' ld b,0 push bc ; char for s$ push hl ; text call zx_setstr pop hl pop bc ld bc,1 jp $1f3d ; PAUSE 1
14.96875
65
0.626305
1c7e40735f1cbbe690fc5346eb728dd311407ca8
564
asm
Assembly
programs/oeis/186/A186357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/186/A186357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/186/A186357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A186357: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f(i)=3i and g(j)=j(j+1)/2 (triangular number). Complement of A186357. ; 1,2,4,7,9,12,16,19,23,28,32,37,43,48,54,61,67,74,82,89,97,106,114,123,133,142,152,163,173,184,196,207,219,232,244,257,271,284,298,313,327,342,358,373,389,406,422,439,457,474,492,511,529,548,568,587,607,628,648,669,691,712,734,757,779,802,826,849,873,898,922,947,973,998,1024,1051,1077,1104,1132,1159,1187,1216,1244,1273,1303,1332,1362,1393,1423,1454 add $0,5 bin $0,2 sub $0,7 div $0,3
70.5
351
0.700355
2fd28314c69527638605d2a2e0ed9bef06e00ff6
274
asm
Assembly
programs/LED Dimmer.asm
TheLogicMaster/lm8
8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61
[ "MIT" ]
10
2021-08-29T10:31:45.000Z
2022-02-26T14:20:54.000Z
programs/LED Dimmer.asm
TheLogicMaster/lm8
8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61
[ "MIT" ]
null
null
null
programs/LED Dimmer.asm
TheLogicMaster/lm8
8f75c0c0b269f699fc3ba574b20ceb1ff86a1b61
[ "MIT" ]
null
null
null
; LED Dimmer --- Dims an LED on arduino pin 3 ; Enable PWM on LED pin ldr #3,A out {arduino_output},A out {pwm_enable},A ; Set a ~50% duty cycle for half brightness ldr $80,A out {pwm_3},A ; Infinite loop to maintain PWM in emulator loop: jr loop
18.266667
45
0.645985
490a2860897be36fd2cbcb8bc195fac99eb15dd2
367
asm
Assembly
programs/oeis/053/A053024.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/053/A053024.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/053/A053024.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A053024: a(n) = n*p where p is the next prime >= n. ; 2,4,9,20,25,42,49,88,99,110,121,156,169,238,255,272,289,342,361,460,483,506,529,696,725,754,783,812,841,930,961,1184,1221,1258,1295,1332,1369,1558,1599,1640,1681,1806,1849,2068,2115,2162,2209,2544,2597,2650 mov $1,$0 add $0,1 seq $1,151800 ; Least prime > n (version 2 of the "next prime" function). mul $0,$1
45.875
208
0.694823
6498b8be920e7fa264262b2dc72d48de0ba3b8ad
38,343
asm
Assembly
VirtualBox-5.0.0/src/VBox/Devices/PC/BIOS/orgs.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/Devices/PC/BIOS/orgs.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/Devices/PC/BIOS/orgs.asm
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
;; ;; Copyright (C) 2006-2015 Oracle Corporation ;; ;; This file is part of VirtualBox Open Source Edition (OSE), as ;; available from http://www.virtualbox.org. This file is free software; ;; you can redistribute it and/or modify it under the terms of the GNU ;; General Public License (GPL) as published by the Free Software ;; Foundation, in version 2 as it comes in the "COPYING" file of the ;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ;; -------------------------------------------------------------------- ;; ;; This code is based on: ;; ;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment ;; ;; Copyright (C) 2002 MandrakeSoft S.A. ;; ;; MandrakeSoft S.A. ;; 43, rue d'Aboukir ;; 75002 Paris - France ;; http://www.linux-mandrake.com/ ;; http://www.mandrakesoft.com/ ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public ;; License as published by the Free Software Foundation; either ;; version 2 of the License, or (at your option) any later version. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. ;; ;; You should have received a copy of the GNU Lesser General Public ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;; ;; ; Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice ; other than GPL or LGPL is available it will apply instead, Oracle elects to use only ; the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where ; a choice of LGPL license versions is made available with the language indicating ; that LGPLv2 or any later version may be used, or where a choice of which version ; of the LGPL is applied is otherwise unspecified. EBDA_SEG equ 09FC0h ; starts at 639K EBDA_SIZE equ 1 ; 1K BASE_MEM_IN_K equ (640 - EBDA_SIZE) CMOS_ADDR equ 070h CMOS_DATA equ 071h PIC_CMD_EOI equ 020h PIC_MASTER equ 020h PIC_SLAVE equ 0A0h BIOS_FIX_BASE equ 0E000h SYS_MODEL_ID equ 0FCh ; PC/AT SYS_SUBMODEL_ID equ 0 BIOS_REVISION equ 1 BIOS_BUILD_DATE equ '06/23/99' BIOS_COPYRIGHT equ 'Oracle VM VirtualBox BIOS' BX_ROMBIOS32 equ 0 BX_CALL_INT15_4F equ 1 ;; Set a fixed BIOS location, with a marker for verification BIOSORG macro addr org addr - BIOS_FIX_BASE - 2 db 'XM' endm ;; Set an interrupt vector (not very efficient if multiple vectors are ;; programmed in one go) SET_INT_VECTOR macro vec, segm, offs mov ax, offs mov ds:[vec*4], ax mov ax, segm mov ds:[vec*4+2], ax endm ; Set up an environment C code expects. DS must point to the BIOS segment ; and the direction flag must be cleared(!) C_SETUP macro push cs pop ds cld endm ;; External function in separate modules extrn _dummy_isr_function:near extrn _log_bios_start:near extrn _nmi_handler_msg:near extrn _int18_panic_msg:near extrn _int09_function:near extrn _int13_diskette_function:near extrn _int13_eltorito:near extrn _int13_cdemu:near extrn _int13_cdrom:near extrn _cdemu_isactive:near extrn _cdemu_emulated_drive:near extrn _int13_harddisk:near extrn _int13_harddisk_ext:near extrn _int14_function:near extrn _int15_function:near extrn _int15_function_mouse:near extrn _int15_function32:near extrn _int16_function:near extrn _int17_function:near extrn _int19_function:near extrn _int1a_function:near extrn _pci16_function:near extrn _int70_function:near extrn _int74_function:near extrn _apm_function:near extrn _ata_init:near extrn _ahci_init:near extrn _scsi_init:near extrn _ata_detect:near extrn _cdemu_init:near extrn _keyboard_init:near extrn _print_bios_banner:near extrn _inv_op_handler:near extrn rom_scan_:near ;; Symbols referenced from C code public _diskette_param_table public _pmode_IDT public _rmode_IDT public post public eoi_both_pics public rtc_post ;; Additional publics for easier disassembly and debugging ifndef DEBUG DEBUG equ 1 endif ifdef DEBUG public int08_handler public int0e_handler public int11_handler public int12_handler public int13_handler public int13_relocated public int15_handler public int17_handler public int19_handler public int19_relocated public dummy_iret public nmi public rom_fdpt public cpu_reset public normal_post public eoi_jmp_post public eoi_master_pic public ebda_post public hard_drive_post public int13_legacy public int70_handler public int75_handler public int15_handler32 public int15_handler_mouse public iret_modify_cf public init_pic public floppy_post public int13_out public int13_disk public int13_notfloppy public int13_legacy public int13_noeltorito public int1c_handler public int10_handler public int74_handler public int76_handler public detect_parport public detect_serial public font8x8 endif ;; NOTE: The last 8K of the ROM BIOS are peppered with fixed locations which ;; must be retained for compatibility. As a consequence, some of the space is ;; going to be wasted, but the gaps should be filled with miscellaneous code ;; and data when possible. .286p BIOSSEG segment 'CODE' assume cs:BIOSSEG ;; ;; Start of fixed code - eoi_jmp_post is kept near here to allow short jumps. ;; BIOSORG 0E030h eoi_both_pics: mov al, PIC_CMD_EOI out PIC_SLAVE, al eoi_master_pic: mov al, PIC_CMD_EOI out PIC_MASTER, al ret ;; routine to write the pointer in DX:AX to memory starting ;; at DS:BX (repeat CX times) ;; - modifies BX, CX set_int_vects proc near mov [bx], ax mov [bx+2], dx add bx, 4 loop set_int_vects ret set_int_vects endp eoi_jmp_post: call eoi_both_pics xor ax, ax mov ds, ax jmp dword ptr ds:[0467h] ;; -------------------------------------------------------- ;; POST entry point ;; -------------------------------------------------------- BIOSORG 0E05Bh post: cli ;; Check if in protected (V86) mode. If so, the CPU needs ;; to be reset. smsw ax test ax, 1 jz in_real_mode ;; Reset processor to get out of protected mode. Use system ;; port instead of KBC. reset_sys: mov al, 1 out 92h, al jmp $ ; not strictly necessary in a VM in_real_mode: ;; read the CMOS shutdown status mov al, 0Fh out CMOS_ADDR, al in al, CMOS_DATA ;; save status xchg ah, al ;; Check KBC self-test/shutdown flag. If it is set, we need ;; to check for a reboot attempt. in al, 64h test al, 4 ; clear flag indicates cold boot jz cont_post ;; Warm boot, check the shutdown byte. mov al, ah or al, al jnz cont_post ;; Warm boot but shutdown byte is zero. This is either a warm ;; boot request or an attempt to reset the system via triple ;; faulting the CPU or similar. Check reboot flag. ;; NB: At this point, registers need not be preserved. push 40h pop ds cmp word ptr ds:[72h], 1234h jnz reset_sys ; trigger system reset cont_post: ;; reset the shutdown status in CMOS mov al, 0Fh out CMOS_ADDR, al mov al, 0 out CMOS_DATA, al ;; pre-check the shutdown status - shutdown codes 9/A leave ;; the hardware alone mov al, ah cmp al, 09h jz check_shutdown cmp al, 0Ah jz check_shutdown xor al, al ;; reset the DMA controllers out 00Dh, al out 0DAh, al ;; then initialize the DMA controllers mov al, 0C0h out 0D6h, al ; enable channel 4 cascade mov al, 0 out 0D4h, al ; unmask channel 4 check_shutdown: ;; examine the shutdown status code mov al, ah cmp al, 0 jz normal_post cmp al, 0Dh jae normal_post cmp al, 9 jne check_next_std jmp return_blkmove check_next_std: ;; 05h = EOI + jump through 40:67 cmp al, 5 je eoi_jmp_post ;; any other shutdown status values are ignored ;; OpenSolaris sets the status to 0Ah in some cases? jmp normal_post normal_post: ;; shutdown code 0: normal startup ;; Set up the stack top at 0:7800h. The stack should not be ;; located above 0:7C00h; that conflicts with PXE, which ;; considers anything above that address to be fair game. ;; The traditional locations are 30:100 (PC) or 0:400 (PC/AT). mov ax, 7800h mov sp, ax xor ax, ax mov ds, ax mov ss, ax ;; clear the bottom of memory except for the word at 40:72 ;; TODO: Why not clear all of it? What's the point? mov es, ax xor di, di cld mov cx, 0472h / 2 rep stosw inc di inc di mov cx, (1000h - 0472h - 2) / 2 rep stosw ;; clear the remaining base memory except for the top ;; of the EBDA (the MP table is planted there) xor bx, bx memory_zero_loop: add bx, 1000h cmp bx, 9000h jae memory_cleared mov es, bx xor di, di mov cx, 8000h ; 32K words rep stosw jmp memory_zero_loop memory_cleared: mov es, bx xor di, di mov cx, 7FF8h ; all but the last 16 bytes rep stosw xor bx, bx C_SETUP call _log_bios_start call pmode_setup ;; set all interrupts in 00h-5Fh range to default handler xor bx, bx mov ds, bx mov cx, 60h ; leave the rest as zeros mov ax, dummy_iret mov dx, BIOSSEG call set_int_vects ;; also set 68h-77h to default handler; note that the ;; 60h-67h range must contain zeros for certain programs ;; to function correctly mov bx, 68h * 4 mov cx, 10h call set_int_vects ;; base memory in K to 40:13 mov ax, BASE_MEM_IN_K mov ds:[413h], ax ;; manufacturing test at 40:12 ;; zeroed out above ;; set up various service vectors ;; TODO: This should use the table at FEF3h instead SET_INT_VECTOR 06h, BIOSSEG, int06_handler SET_INT_VECTOR 11h, BIOSSEG, int11_handler SET_INT_VECTOR 12h, BIOSSEG, int12_handler SET_INT_VECTOR 15h, BIOSSEG, int15_handler SET_INT_VECTOR 17h, BIOSSEG, int17_handler SET_INT_VECTOR 18h, BIOSSEG, int18_handler SET_INT_VECTOR 19h, BIOSSEG, int19_handler SET_INT_VECTOR 1Ch, BIOSSEG, int1c_handler call ebda_post ;; Initialize PCI devices. This can and should be done early. call pcibios_init_iomem_bases call pcibios_init_irqs SET_INT_VECTOR 1Ah, BIOSSEG, int1a_handler ;; PIT setup SET_INT_VECTOR 08h, BIOSSEG, int08_handler mov al, 34h ; timer 0, binary, 16-bit, mode 2 out 43h, al mov al, 0 ; max count -> ~18.2 Hz out 40h, al out 40h, al ;; video setup - must be done before POSTing VGA ROM SET_INT_VECTOR 10h, BIOSSEG, int10_handler ;; keyboard setup SET_INT_VECTOR 09h, BIOSSEG, int09_handler SET_INT_VECTOR 16h, BIOSSEG, int16_handler xor ax, ax mov ds, ax ;; TODO: What's the point? The BDA is zeroed already?! mov ds:[417h], al ; keyboard shift flags, set 1 mov ds:[418h], al ; keyboard shift flags, set 2 mov ds:[419h], al ; keyboard Alt-numpad work area mov ds:[471h], al ; keyboard Ctrl-Break flag mov ds:[497h], al ; keyboard status flags 4 mov al, 10h mov ds:[496h], al ; keyboard status flags 3 mov bx, 1Eh mov ds:[41Ah], bx ; keyboard buffer head mov ds:[41Ch], bx ; keyboard buffer tail mov ds:[480h], bx ; keyboard buffer start mov bx, 3Eh mov ds:[482h], bx ; keyboard buffer end ;; store CMOS equipment byte in BDA mov al, 14h out CMOS_ADDR, al in al, CMOS_DATA mov ds:[410h], al push ds C_SETUP ;; Scan for video ROMs in the C000-C800 range. This is done ;; early so that errors are displayed on the screen. mov ax, 0C000h mov dx, 0C800h call rom_scan_ ;; Initialize the keyboard call _keyboard_init pop ds ;; parallel setup SET_INT_VECTOR 0Fh, BIOSSEG, dummy_iret xor ax, ax mov ds, ax xor bx, bx mov cl, 14h ; timeout value mov dx, 378h ; parallel port 1 call detect_parport mov dx, 278h ; parallel port 2 call detect_parport shl bx, 0Eh mov ax, ds:[410h] ; equipment word and ax, 3FFFh or ax, bx ; set number of parallel ports mov ds:[410h], ax ; store in BDA ;; Serial setup SET_INT_VECTOR 0Bh, BIOSSEG, dummy_isr SET_INT_VECTOR 0Ch, BIOSSEG, dummy_isr SET_INT_VECTOR 14h, BIOSSEG, int14_handler xor bx, bx mov cl, 0Ah ; timeout value mov dx, 3F8h ; first serial address call detect_serial mov dx, 2F8h ; second serial address call detect_serial mov dx, 3E8h ; third serial address call detect_serial mov dx, 2E8h ; fourth serial address call detect_serial shl bx, 9 mov ax, ds:[410h] ; equipment word and ax, 0F1FFh ; bits 9-11 determine serial ports or ax, bx mov ds:[410h], ax ;; CMOS RTC SET_INT_VECTOR 4Ah, BIOSSEG, dummy_iret ; TODO: redundant? SET_INT_VECTOR 70h, BIOSSEG, int70_handler ;; BIOS DATA AREA 4CEh ??? call rtc_post jmp norm_post_cont ;; -------------------------------------------------------- ;; NMI handler ;; -------------------------------------------------------- BIOSORG 0E2C3h nmi: C_SETUP call _nmi_handler_msg iret int75_handler: out 0F0h, al ; clear IRQ13 call eoi_both_pics int 2 ; emulate legacy NMI iret hard_drive_post proc near xor ax, ax mov ds, ax ;; TODO: Didn't we just clear the entire EBDA? mov ds:[474h], al ; last HD operation status mov ds:[477h], al ; HD port offset (XT only???) mov ds:[48Ch], al ; HD status register mov ds:[48Dh], al ; HD error register mov ds:[48Eh], al ; HD task complete flag mov al, 0C0h mov ds:[476h], al ; HD control byte ;; set up hard disk interrupt vectors SET_INT_VECTOR 13h, BIOSSEG, int13_handler SET_INT_VECTOR 76h, BIOSSEG, int76_handler ;; INT 41h/46h: hard disk 0/1 dpt ; TODO: This should be done from the code which ; builds the DPTs? SET_INT_VECTOR 41h, EBDA_SEG, 3Dh SET_INT_VECTOR 46h, EBDA_SEG, 4Dh ret hard_drive_post endp norm_post_cont: ;; PS/2 mouse setup SET_INT_VECTOR 74h, BIOSSEG, int74_handler ;; IRQ 13h (FPU exception) setup SET_INT_VECTOR 75h, BIOSSEG, int75_handler call init_pic C_SETUP ;; ATA/ATAPI driver setup call _ata_init call _ata_detect ifdef VBOX_WITH_AHCI ; AHCI driver setup call _ahci_init endif ifdef VBOX_WITH_SCSI ; SCSI driver setup call _scsi_init endif ;; floppy setup call floppy_post ;; hard drive setup call hard_drive_post C_SETUP ; in case assembly code changed things call _print_bios_banner ;; Scan for additional ROMs in the C800-EFFF range mov ax, 0C800h mov dx, 0F000h call rom_scan_ ;; El Torito floppy/hard disk emulation call _cdemu_init ; TODO: what's the point of enabling interrupts here?? sti ; enable interrupts int 19h ;; does not return here sti wait_forever: hlt jmp wait_forever cli hlt ;; ;; Return from block move (shutdown code 09h). Care must be taken to disturb ;; register and memory state as little as possible. ;; return_blkmove: mov ax, 40h mov ds, ax ;; restore user stack mov ss, ds:[69h] mov sp, ds:[67h] ;; reset A20 gate in al, 92h and al, 0FDh out 92h, al ;; ensure proper real mode IDT lidt fword ptr cs:_rmode_IDT ;; restore user segments pop ds pop es ;; set up BP mov bp, sp ;; restore status code in al, 80h mov [bp+15], al ;; set ZF/CF cmp ah,al ; AH is zero here! ;; restore registers and return popa sti retf 2 ;; -------------------------------------------------------- ;; INT 13h handler - Disk services ;; -------------------------------------------------------- BIOSORG 0E3FEh int13_handler: jmp int13_relocated ;; -------------------------------------------------------- ;; Fixed Disk Parameter Table ;; -------------------------------------------------------- ;; BIOSORG 0E401h - fixed wrt preceding rom_fdpt: ;; -------------------------------------------------------- ;; INT 19h handler - Boot load service ;; -------------------------------------------------------- BIOSORG 0E6F2h int19_handler: jmp int19_relocated ;; -------------------------------------------------------- ;; System BIOS Configuration Table ;; -------------------------------------------------------- ;; BIOSORG 0E6F5h - fixed wrt preceding ; must match BIOS_CONFIG_TABLE bios_cfg_table: dw 9 ; table size in bytes db SYS_MODEL_ID db SYS_SUBMODEL_ID db BIOS_REVISION ; Feature byte 1 ; b7: 1=DMA channel 3 used by hard disk ; b6: 1=2 interrupt controllers present ; b5: 1=RTC present ; b4: 1=BIOS calls int 15h/4Fh for every key ; b3: 1=wait for extern event supported (Int 15h/41h) ; b2: 1=extended BIOS data area used ; b1: 0=AT or ESDI bus, 1=MicroChannel ; b0: 1=Dual bus (MicroChannel + ISA) ifdef BX_CALL_INT15_4F db 74h; or USE_EBDA else db 64h; or USE_EBDA endif ; Feature byte 2 ; b7: 1=32-bit DMA supported ; b6: 1=int16h, function 9 supported ; b5: 1=int15h/C6h (get POS data) supported ; b4: 1=int15h/C7h (get mem map info) supported ; b3: 1=int15h/C8h (en/dis CPU) supported ; b2: 1=non-8042 kb controller ; b1: 1=data streaming supported ; b0: reserved db 40h ; Feature byte 3 ; b7: not used ; b6: reserved ; b5: reserved ; b4: POST supports ROM-to-RAM enable/disable ; b3: SCSI on system board ; b2: info panel installed ; b1: Initial Machine Load (IML) system - BIOS on disk ; b0: SCSI supported in IML db 0 ; Feature byte 4 ; b7: IBM private ; b6: EEPROM present ; b5-3: ABIOS presence (011 = not supported) ; b2: private ; b1: memory split above 16Mb supported ; b0: POSTEXT directly supported by POST db 0 ; Feature byte 5 (IBM) ; b1: enhanced mouse ; b0: flash EPROM db 0 ;; -------------------------------------------------------- ;; Baud Rate Generator Table ;; -------------------------------------------------------- BIOSORG 0E729h ;; -------------------------------------------------------- ;; INT 14h handler - Serial Communication Service ;; -------------------------------------------------------- BIOSORG 0E739h int14_handler: push ds push es pusha C_SETUP call _int14_function popa pop es pop ds iret ;; ;; Handler for unexpected hardware interrupts ;; dummy_isr: push ds push es pusha C_SETUP call _dummy_isr_function popa pop es pop ds iret init_pic proc near mov al, 11h ; send init commands out PIC_MASTER, al out PIC_SLAVE, al mov al, 08h ; base 08h out PIC_MASTER+1, al mov al, 70h ; base 70h out PIC_SLAVE+1, al mov al, 04h ; master PIC out PIC_MASTER+1, al mov al, 02h ; slave PIC out PIC_SLAVE+1, al mov al, 01h out PIC_MASTER+1, al out PIC_SLAVE+1, al mov al, 0B8h ; unmask IRQs 0/1/2/6 out PIC_MASTER+1, al mov al, 08Fh out PIC_SLAVE+1, al ; unmask IRQs 12/13/14 ret init_pic endp ebda_post proc near SET_INT_VECTOR 0Dh, BIOSSEG, dummy_isr ; IRQ 5 SET_INT_VECTOR 0Fh, BIOSSEG, dummy_isr ; IRQ 7 SET_INT_VECTOR 72h, BIOSSEG, dummy_isr ; IRQ 11 SET_INT_VECTOR 77h, BIOSSEG, dummy_isr ; IRQ 15 mov ax, EBDA_SEG mov ds, ax mov byte ptr ds:[0], EBDA_SIZE ;; store EBDA seg in 40:0E xor ax, ax mov ds, ax mov word ptr ds:[40Eh], EBDA_SEG ret ebda_post endp ;; -------------------------------------------------------- ;; INT 16h handler - Keyboard service ;; -------------------------------------------------------- BIOSORG 0E82Eh int16_handler: sti push es push ds pusha cmp ah, 0 je int16_F00 cmp ah, 10h je int16_F00 C_SETUP call _int16_function popa pop ds pop es iret int16_F00: mov bx, 40h ; TODO: why 40h here and 0 elsewhere? mov ds, bx int16_wait_for_key: cli mov bx, ds:[1Ah] cmp bx, ds:[1Ch] jne int16_key_found sti nop ; TODO: review/enable? if 0 push ax mov ax, 9002h int 15h pop ax endif jmp int16_wait_for_key int16_key_found: C_SETUP call _int16_function popa pop ds pop es ; TODO: review/enable? If so, flags should be restored here? if 0 push ax mov ax, 9202h int 15h pop ax endif iret ;; Quick and dirty protected mode entry/exit routines include pmode.inc ;; Initialization code which needs to run in protected mode (LAPIC etc.) include pmsetup.inc KBDC_DISABLE EQU 0ADh KBDC_ENABLE EQU 0AEh KBC_CMD EQU 64h KBC_DATA EQU 60h ;; -------------------------------------------------------- ;; INT 09h handler - Keyboard ISR (IRQ 1) ;; -------------------------------------------------------- BIOSORG 0E987h int09_handler: cli ; TODO: why? they're off already! push ax mov al, KBDC_DISABLE out KBC_CMD, al mov al, 0Bh out PIC_MASTER, al in al, PIC_MASTER and al, 2 jz int09_finish in al, KBC_DATA push ds pusha cld ; Before INT 15h (and any C code) ifdef BX_CALL_INT15_4F mov ah, 4Fh stc int 15h ; keyboard intercept jnc int09_done endif sti ; Only after calling INT 15h ;; check for extended key cmp al, 0E0h jne int09_check_pause xor ax, ax mov ds, ax mov al, ds:[496h] ; mf2_state |= 0x02 or al, 2 ; TODO: why not RMW? mov ds:[496h], al jmp int09_done int09_check_pause: cmp al, 0E1h ; pause key? jne int09_process_key xor ax, ax mov ds, ax ; TODO: haven't we just done that?? mov al, ds:[496h] or al, 1 mov ds:[496h], al ; TODO: why not RMW? jmp int09_done int09_process_key: push es C_SETUP call _int09_function pop es int09_done: popa pop ds cli call eoi_master_pic int09_finish: mov al, KBDC_ENABLE out KBC_CMD, al pop ax iret ;; -------------------------------------------------------- ;; INT 06h handler - Invalid Opcode Exception ;; -------------------------------------------------------- int06_handler: pusha push es push ds C_SETUP call _inv_op_handler pop ds pop es popa iret ;; -------------------------------------------------------- ;; INT 13h handler - Diskette service ;; -------------------------------------------------------- BIOSORG 0EC59h int13_diskette: jmp int13_noeltorito ;; -------------------------------------------------------- ;; INT 13h handler - Disk service ;; -------------------------------------------------------- int13_relocated: ;; check for an El-Torito function cmp ah, 4Ah jb int13_not_eltorito cmp ah, 4Dh ja int13_not_eltorito pusha push es push ds C_SETUP ; TODO: setup C envrionment only once? push int13_out ; simulate a call jmp _int13_eltorito ; ELDX not used int13_not_eltorito: push es push ax ; TODO: better register save/restore push bx push cx push dx ;; check if emulation is active call _cdemu_isactive cmp al, 0 je int13_cdemu_inactive ;; check if access to the emulated drive call _cdemu_emulated_drive pop dx ; recover dx (destroyed by C code) push dx cmp al, dl ; INT 13h on emulated drive jne int13_nocdemu pop dx pop cx pop bx pop ax pop es pusha push es push ds C_SETUP ; TODO: setup environment only once? push int13_out ; simulate a call jmp _int13_cdemu ; ELDX not used int13_nocdemu: and dl, 0E0h ; mask to get device class cmp al, dl jne int13_cdemu_inactive pop dx pop cx pop bx pop ax pop es push ax push cx push dx push bx dec dl ; real drive is dl - 1 jmp int13_legacy int13_cdemu_inactive: pop dx pop cx pop bx pop ax pop es int13_noeltorito: push ax push cx push dx push bx int13_legacy: push dx ; push eltorito dx in place of sp push bp push si push di push es push ds C_SETUP ; TODO: setup environment only once? ;; now the registers can be restored with ;; pop ds; pop es; popa; iret test dl, 80h ; non-removable? jnz int13_notfloppy push int13_out ; simulate a near call jmp _int13_diskette_function int13_notfloppy: cmp dl, 0E0h jb int13_notcdrom ;; ebx may be modified, save here ;; TODO: check/review 32-bit register use .386 shr ebx, 16 push bx call _int13_cdrom pop bx shl ebx, 16 .286 jmp int13_out int13_notcdrom: int13_disk: cmp ah,40h ja int13x call _int13_harddisk jmp int13_out int13x: call _int13_harddisk_ext int13_out: pop ds pop es popa iret ; parallel port detection: port in dx, index in bx, timeout in cl detect_parport proc near push dx inc dx inc dx in al, dx and al, 0DFh ; clear input mode out dx, al pop dx mov al, 0AAh out dx, al in al, dx cmp al, 0AAh jne no_parport push bx shl bx, 1 mov [bx+408h], dx ; parallel I/O address pop bx mov [bx+478h], cl ; parallel printer timeout inc bx no_parport: ret detect_parport endp ; setial port detection: port in dx, index in bx, timeout in cl detect_serial proc near push dx inc dx mov al, 2 out dx, al in al, dx cmp al, 2 jne no_serial inc dx in al, dx cmp al, 2 jne no_serial dec dx xor al, al pop dx push bx shl bx, 1 mov [bx+400h], dx ; serial I/O address pop bx mov [bx+47Ch], cl ; serial timeout inc bx ret no_serial: pop dx ret detect_serial endp ;; ;; POST: Floppy drive ;; floppy_post proc near xor ax, ax mov ds, ax ;; TODO: This code is really stupid. Zeroing the BDA byte ;; by byte is dumb, and it's been already zeroed elsewhere! mov al, 0 mov ds:[43Eh], al ; drive 0/1 uncalibrated, no IRQ mov ds:[43Fh], al ; motor status mov ds:[440h], al ; motor timeout counter mov ds:[441h], al ; controller status return code mov ds:[442h], al ; hd/floppy ctlr status register mov ds:[443h], al ; controller status register 1 mov ds:[444h], al ; controller status register 2 mov ds:[445h], al ; cylinder number mov ds:[446h], al ; head number mov ds:[447h], al ; sector number mov ds:[448h], al ; bytes written mov ds:[48Bh], al ; configuration data mov al, 10h ; floppy drive type out CMOS_ADDR, al in al, CMOS_DATA mov ah, al ; save drive type byte look_drive0: ; TODO: pre-init bl to reduce jumps shr al, 4 ; drive 0 in high nibble jz f0_missing ; jump if no drive mov bl, 7 ; drv0 determined, multi-rate, chgline jmp look_drive1 f0_missing: mov bl, 0 ; no drive 0 look_drive1: mov al, ah ; restore CMOS data and al, 0Fh ; drive 1 in low nibble jz f1_missing or bl, 70h ; drv1 determined, multi-rate, chgline f1_missing: mov ds:[48Fh], bl ; store in BDA ;; TODO: See above. Dumb *and* redundant! mov al, 0 mov ds:[490h], al ; drv0 media state mov ds:[491h], al ; drv1 media state mov ds:[492h], al ; drv0 operational state mov ds:[493h], al ; drv1 operational state mov ds:[494h], al ; drv0 current cylinder mov ds:[495h], al ; drv1 current cylinder mov al, 2 out 0Ah, al ; unmask DMA channel 2 SET_INT_VECTOR 1Eh, BIOSSEG, _diskette_param_table SET_INT_VECTOR 40h, BIOSSEG, int13_diskette SET_INT_VECTOR 0Eh, BIOSSEG, int0e_handler ; IRQ 6 ret floppy_post endp bcd_to_bin proc near ;; in : AL in packed BCD format ;; out: AL in binary, AH always 0 shl ax, 4 shr al, 4 aad ret bcd_to_bin endp rtc_post proc near .386 ;; get RTC seconds xor eax, eax mov al, 0 out CMOS_ADDR, al in al, CMOS_DATA ; RTC seconds, in BCD call bcd_to_bin ; eax now has seconds in binary mov edx, 18206507 mul edx mov ebx, 1000000 xor edx, edx div ebx mov ecx, eax ; total ticks in ecx ;; get RTC minutes xor eax, eax mov al, 2 out CMOS_ADDR, al in al, CMOS_DATA ; RTC minutes, in BCD call bcd_to_bin ; eax now has minutes in binary mov edx, 10923904 mul edx mov ebx, 10000 xor edx, edx div ebx add ecx, eax ; add to total ticks ;; get RTC hours xor eax, eax mov al, 4 out CMOS_ADDR, al in al, CMOS_DATA ; RTC hours, in BCD call bcd_to_bin ; eax now has hours in binary mov edx, 65543427 mul edx mov ebx, 1000 xor edx, edx div ebx add ecx, eax ; add to total ticks mov ds:[46Ch], ecx ; timer tick count xor al, al ; TODO: redundant? mov ds:[470h], al ; rollover flag .286 ret rtc_post endp ;; -------------------------------------------------------- ;; INT 0Eh handler - Diskette IRQ 6 ISR ;; -------------------------------------------------------- BIOSORG 0EF57h int0e_handler: push ax push dx mov dx, 3F4h in al, dx and al, 0C0h cmp al, 0C0h je int0e_normal mov dx, 3F5h mov al, 08h ; sense interrupt out dx, al int0e_loop1: mov dx, 3F4h ; TODO: move out of the loop? in al, dx and al, 0C0h cmp al, 0C0h jne int0e_loop1 int0e_loop2: mov dx, 3F5h ; TODO: inc/dec dx instead in al, dx mov dx, 3F4h in al, dx and al, 0C0h cmp al, 0C0h je int0e_loop2 int0e_normal: push ds xor ax, ax mov ds, ax call eoi_master_pic ; indicate that an interrupt occurred or byte ptr ds:[43Eh], 80h pop ds pop dx pop ax iret ;; -------------------------------------------------------- ;; Diskette Parameter Table ;; -------------------------------------------------------- BIOSORG 0EFC7h _diskette_param_table: db 0AFh db 2 ; HLT=1, DMA mode db 025h db 2 db 18 ; SPT (good for 1.44MB media) db 01Bh db 0FFh db 06Ch db 0F6h ; format filler db 15 db 8 ;; -------------------------------------------------------- ;; INT 17h handler - Printer service ;; -------------------------------------------------------- ;; BIOSORG 0EFD2h - fixed WRT preceding code jmp int17_handler ; NT floppy boot workaround ; see @bugref{6481} int17_handler: push ds push es pusha C_SETUP call _int17_function popa pop es pop ds iret ;; Protected mode IDT descriptor ;; ;; The limit is 0 to cause a shutdown if an exception occurs ;; in protected mode. TODO: Is that what we really want? ;; ;; Set base to F0000 to correspond to beginning of BIOS, ;; in case an IDT is defined later. _pmode_IDT: dw 0 ; limit 15:0 dw 0 ; base 15:0 dw 0Fh ; base 23:16 ;; Real mode IDT descriptor ;; ;; Set to typical real-mode values. ;; base = 000000 ;; limit = 03ff _rmode_IDT: dw 3FFh ; limit 15:00 dw 0 ; base 15:00 dw 0 ; base 23:16 ;; ;; INT 1Ch ;; ;; TODO: Why does this need a special handler? int1c_handler: ;; user timer tick iret ;; -------------------------------------------------------- ;; INT 10h functions 0-Fh entry point ;; -------------------------------------------------------- BIOSORG 0F045h i10f0f_entry: iret ;; -------------------------------------------------------- ;; INT 10h handler - MDA/CGA video ;; -------------------------------------------------------- BIOSORG 0F065h int10_handler: ;; do nothing - assumes VGA iret ;; -------------------------------------------------------- ;; MDA/CGA Video Parameter Table (INT 1Dh) ;; -------------------------------------------------------- BIOSORG 0F0A4h mdacga_vpt: ;; ;; INT 18h - boot failure ;; int18_handler: C_SETUP call _int18_panic_msg ;; TODO: handle failure better? hlt iret ;; ;; INT 19h - boot service - relocated ;; int19_relocated: ; If an already booted OS calls int 0x19 to reboot, it is not sufficient ; just to try booting from the configured drives. All BIOS variables and ; interrupt vectors need to be reset, otherwise strange things may happen. ; The approach used is faking a warm reboot (which just skips showing the ; logo), which is a bit more than what we need, but hey, it's fast. mov bp, sp mov ax, [bp+2] ; TODO: redundant? address via sp? cmp ax, BIOSSEG ; check caller's segment jz bios_initiated_boot xor ax, ax mov ds, ax mov ax, 1234h mov ds:[472], ax jmp post bios_initiated_boot: ;; The C worker function returns the boot drive in bl and ;; the boot segment in ax. In case of failure, the boot ;; segment will be zero. C_SETUP ; TODO: Here? Now? push bp mov bp, sp ;; 1st boot device mov ax, 1 push ax call _int19_function inc sp inc sp test ax, ax ; if 0, try next device jnz boot_setup ;; 2nd boot device mov ax, 2 push ax call _int19_function inc sp inc sp test ax, ax ; if 0, try next device jnz boot_setup ; 3rd boot device mov ax, 3 push 3 call _int19_function inc sp inc sp test ax, ax ; if 0, try next device jnz boot_setup ; 4th boot device mov ax, 4 push ax call _int19_function inc sp inc sp test ax, ax ; if 0, invoke INT 18h jz int18_handler boot_setup: ; TODO: the drive should be in dl already?? ;; mov dl, bl ; tell guest OS what boot drive is .386 ; NB: We're getting garbage into high eax bits shl eax, 4 ; convert seg to ip mov [bp+2], ax ; set ip shr eax, 4 ; get cs back .286 and ax, BIOSSEG ; remove what went in ip mov [bp+4], ax ; set cs xor ax, ax mov ds, ax mov es, ax mov [bp], ax ; TODO: what's this?! mov ax, 0AA55h ; set ok flag ; TODO: and this? pop bp ; TODO: why'd we just zero it?? iret ; beam me up scotty ;; PCI BIOS include pcibios.inc include pirq.inc ;; -------------------------------------------------------- ;; INT 12h handler - Memory size ;; -------------------------------------------------------- BIOSORG 0F841h int12_handler: ;; Don't touch - fixed size! sti push ds mov ax, 40h mov ds, ax mov ax, ds:[13h] pop ds iret ;; -------------------------------------------------------- ;; INT 11h handler - Equipment list service ;; -------------------------------------------------------- ;; BIOSORG 0F84Dh - fixed wrt preceding code int11_handler: ;; Don't touch - fixed size! sti push ds mov ax, 40h mov ds, ax mov ax, ds:[10h] pop ds iret ;; -------------------------------------------------------- ;; INT 15h handler - System services ;; -------------------------------------------------------- ;; BIOSORG 0F859h - fixed wrt preceding code int15_handler: pushf push ds push es C_SETUP cmp ah, 86h je int15_handler32 cmp ah, 0E8h je int15_handler32 cmp ah, 0d0h je int15_handler32 pusha cmp ah, 53h ; APM function? je apm_call cmp ah, 0C2h ; PS/2 mouse function? je int15_handler_mouse call _int15_function int15_handler_popa_ret: popa int15_handler32_ret: pop es pop ds popf jmp iret_modify_cf apm_call: call _apm_function jmp int15_handler_popa_ret int15_handler_mouse: call _int15_function_mouse jmp int15_handler_popa_ret int15_handler32: ;; need to save/restore 32-bit registers .386 pushad call _int15_function32 popad .286 jmp int15_handler32_ret ;; ;; Perform an IRET but retain the current carry flag value ;; iret_modify_cf: jc carry_set push bp mov bp, sp and byte ptr [bp + 6], 0FEh pop bp iret carry_set: push bp mov bp, sp or byte ptr [bp + 6], 1 pop bp iret ;; ;; INT 74h handler - PS/2 mouse (IRQ 12) ;; int74_handler proc sti pusha push es push ds push 0 ; placeholder for status push 0 ; placeholder for X push 0 ; placeholder for Y push 0 ; placeholder for Z push 0 ; placeholder for make_far_call bool C_SETUP call _int74_function pop cx ; pop make_far_call flag jcxz int74_done ;; make far call to EBDA:0022 push 0 pop ds push ds:[40Eh] pop ds call far ptr ds:[22h] int74_done: cli call eoi_both_pics add sp, 8 ; remove status, X, Y, Z pop ds pop es popa iret int74_handler endp int76_handler proc ;; record completion in BIOS task complete flag push ax push ds mov ax, 40h mov ds, ax mov byte ptr ds:[8Eh], 0FFh call eoi_both_pics pop ds pop ax iret int76_handler endp ;; -------------------------------------------------------- ;; 8x8 font (first 128 characters) ;; -------------------------------------------------------- BIOSORG 0FA6Eh include font8x8.inc ;; -------------------------------------------------------- ;; INT 1Ah handler - Time of the day + PCI BIOS ;; -------------------------------------------------------- ;; BIOSORG 0FE6Eh - fixed wrt preceding table int1a_handler: cmp ah, 0B1h jne int1a_normal push es push ds C_SETUP .386 pushad call _pci16_function popad .286 pop ds pop es iret int1a_normal: push es push ds pusha C_SETUP int1a_callfunction: call _int1a_function popa pop ds pop es iret ;; ;; IRQ 8 handler (RTC) ;; int70_handler: push es push ds pusha C_SETUP call _int70_function popa pop ds pop es iret ;; -------------------------------------------------------- ;; Timer tick - IRQ 0 handler ;; -------------------------------------------------------- BIOSORG 0FEA5h int08_handler: .386 sti push eax push ds push dx mov ax, 40h mov ds, ax mov eax, ds:[6Ch] ; get ticks dword inc eax ;; compare eax to one day's worth of ticks (at 18.2 Hz) cmp eax, 1800B0h jb int08_store_ticks ;; there has been a midnight rollover xor eax, eax inc byte ptr ds:[70h] ; increment rollover flag int08_store_ticks: mov ds:[6Ch], eax ;; time to turn off floppy drive motor(s)? mov al, ds:[40h] or al, al jz int08_floppy_off dec al mov ds:[40h], al jnz int08_floppy_off ;; turn motor(s) off mov dx, 03F2h in al, dx and al, 0CFh out dx, al int08_floppy_off: int 1Ch ; call the user timer handler cli call eoi_master_pic pop dx pop ds pop eax .286 iret ;; -------------------------------------------------------- ;; Initial interrupt vector offsets for POST ;; -------------------------------------------------------- BIOSORG 0FEF3h vector_table: ;; -------------------------------------------------------- ;; BIOS copyright string ;; -------------------------------------------------------- BIOSORG 0FF00h bios_string: db BIOS_COPYRIGHT ;; -------------------------------------------------------- ;; IRET - default interrupt handler ;; -------------------------------------------------------- BIOSORG 0FF53h dummy_iret: iret ;; -------------------------------------------------------- ;; INT 05h - Print Screen service ;; -------------------------------------------------------- ;; BIOSORG 0FF54h - fixed wrt preceding int05_handler: ;; Not implemented iret include smidmi.inc ;; -------------------------------------------------------- ;; Processor reset entry point ;; -------------------------------------------------------- BIOSORG 0FFF0h cpu_reset: ;; This is where the CPU starts executing after a reset jmp far ptr post ;; BIOS build date db BIOS_BUILD_DATE db 0 ; padding ;; System model ID db SYS_MODEL_ID ;; Checksum byte db 0FFh BIOSSEG ends end
20.804666
92
0.633258
abf8a1202bd33116fc09c8c4ce2add2091bef8a8
367
asm
Assembly
programs/oeis/070/A070338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070338: a(n) = 2^n mod 33. ; 1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17,1,2,4,8,16,32,31,29,25,17 mov $1,1 mov $2,$0 lpb $2 mul $1,2 mod $1,33 sub $2,1 lpe mov $0,$1
30.583333
261
0.583106
15d4cf9d9d4cbdbf411634ed879f75d5b7b89935
561
asm
Assembly
oeis/157/A157854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/157/A157854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/157/A157854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A157854: 1728000n - 384240. ; 1343760,3071760,4799760,6527760,8255760,9983760,11711760,13439760,15167760,16895760,18623760,20351760,22079760,23807760,25535760,27263760,28991760,30719760,32447760,34175760,35903760,37631760,39359760,41087760,42815760,44543760,46271760,47999760,49727760,51455760,53183760,54911760,56639760,58367760,60095760,61823760,63551760,65279760,67007760,68735760,70463760,72191760,73919760,75647760,77375760,79103760,80831760,82559760,84287760,86015760,87743760,89471760,91199760,92927760,94655760,96383760 mul $0,1728000 add $0,1343760
93.5
499
0.864528
7645e762f118160b559c9904de4bcb6488407747
362
asm
Assembly
oeis/035/A035023.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/035/A035023.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/035/A035023.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A035023: One ninth of 9-factorial numbers. ; 1,18,486,17496,787320,42515280,2678462640,192849310080,15620794116480,1405871470483200,139181275577836800,15031577762406374400,1758694598201545804800,221595519373394771404800,29915395115408294139648000,4307816896618794356109312000 add $0,1 mov $1,2 lpb $0 sub $0,1 add $2,9 mul $1,$2 lpe div $1,18 mov $0,$1
27.846154
232
0.80663
66ee8b665586f777a619cc0b59297b0586777431
436
asm
Assembly
programs/oeis/161/A161841.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/161/A161841.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/161/A161841.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A161841: Number of factors, with repetition, in all distinct pairs (a <= b) such that a*b = n. ; 2,2,2,4,2,4,2,4,4,4,2,6,2,4,4,6,2,6,2,6,4,4,2,8,4,4,4,6,2,8,2,6,4,4,4,10,2,4,4,8,2,8,2,6,6,4,2,10,4,6,4,6,2,8,4,8,4,4,2,12,2,4,6,8,4,8,2,6,4,8,2,12,2,4,6,6,4,8,2,10,6,4,2,12,4,4,4,8,2,12,4,6,4,4,4,12,2,6,6,10 trn $0,1 mov $1,$0 add $0,1 seq $0,94820 ; Partial sums of A038548. seq $1,94820 ; Partial sums of A038548. sub $0,$1 mul $0,2
39.636364
210
0.594037
8379a86a1d5ed1e1983aea5437234e5d7f3af1a5
8,112
asm
Assembly
Transynther/x86/_processed/NONE/_ht_st_zr_un_xt_/i7-7700_9_0x48.log_21829_1007.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_xt_/i7-7700_9_0x48.log_21829_1007.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_xt_/i7-7700_9_0x48.log_21829_1007.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 %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xa59, %rsi lea addresses_D_ht+0x8519, %rdi nop nop nop nop add $15115, %r10 mov $20, %rcx rep movsl add $28646, %rcx lea addresses_WC_ht+0x13bf1, %rsi lea addresses_A_ht+0x12a19, %rdi nop nop nop nop xor $47529, %r14 mov $27, %rcx rep movsw cmp %r10, %r10 lea addresses_A_ht+0x13819, %rsi nop nop nop sub %rdx, %rdx movw $0x6162, (%rsi) nop nop and $40393, %rcx lea addresses_WC_ht+0xc119, %r14 nop nop sub %r12, %r12 mov (%r14), %ecx nop nop nop xor %rdi, %rdi lea addresses_D_ht+0x11119, %r10 mfence movups (%r10), %xmm6 vpextrq $0, %xmm6, %rsi nop nop add $33760, %r12 lea addresses_UC_ht+0x9771, %rsi lea addresses_WT_ht+0x719, %rdi nop nop sub $20935, %r12 mov $93, %rcx rep movsw nop nop cmp %r10, %r10 lea addresses_A_ht+0x73e9, %rsi lea addresses_UC_ht+0x1ad19, %rdi clflush (%rdi) nop nop nop nop and %r12, %r12 mov $112, %rcx rep movsq nop nop nop nop nop sub %r12, %r12 lea addresses_UC_ht+0x10519, %r12 clflush (%r12) nop nop nop nop sub $50167, %rdx mov (%r12), %r10 nop sub $65485, %rdi lea addresses_UC_ht+0x3919, %r10 add $33678, %r14 movups (%r10), %xmm7 vpextrq $0, %xmm7, %rcx nop cmp %r10, %r10 lea addresses_D_ht+0x1a2c5, %rsi lea addresses_WC_ht+0x16b19, %rdi nop nop nop nop cmp %r10, %r10 mov $103, %rcx rep movsl cmp %rcx, %rcx lea addresses_D_ht+0x6099, %rdi nop nop xor %rsi, %rsi movb $0x61, (%rdi) nop dec %rdx lea addresses_WC_ht+0x165f9, %rdx nop nop nop add %r14, %r14 mov (%rdx), %rdi dec %rdi lea addresses_WC_ht+0x17519, %rsi lea addresses_D_ht+0x18301, %rdi nop nop nop nop add $58921, %rbp mov $17, %rcx rep movsl nop nop sub %rsi, %rsi lea addresses_A_ht+0x1c119, %r14 nop add $60246, %rsi mov $0x6162636465666768, %r12 movq %r12, (%r14) nop nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r9 push %rax push %rbx push %rdx // Store lea addresses_RW+0x6519, %r10 nop nop nop dec %rdx movw $0x5152, (%r10) nop nop nop nop nop inc %rbx // Faulty Load lea addresses_WT+0xb519, %rbx nop and %rax, %rax vmovups (%rbx), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r12 lea oracles, %r13 and $0xff, %r12 shlq $12, %r12 mov (%r13,%r12,1), %r12 pop %rdx pop %rbx pop %rax pop %r9 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 5, 'size': 2, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 4, 'size': 8, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'2a': 2, '4c': 14, 'ee': 4, 'ed': 2, '4e': 4, 'c8': 2, '03': 3, '3a': 5, '94': 1, 'e2': 1, '1a': 3, '4b': 9, '52': 2, '72': 7, '3b': 2, '00': 9304, 'dc': 1, '38': 2, 'c6': 1, 'a6': 4, '18': 3, 'f8': 1, 'df': 1, 'c2': 3, '26': 1, '8a': 6, 'ea': 2, '16': 12, 'cc': 3, 'a8': 1, '58': 4, '46': 3879, 'e8': 2, 'b2': 2, 'f2': 1, '39': 1, '45': 8518, 'da': 3, '28': 1, 'e0': 12} 00 46 46 00 46 46 45 45 45 45 45 45 00 46 46 46 00 00 00 00 00 00 00 00 45 00 46 46 00 45 00 00 00 45 45 45 46 00 46 00 45 45 45 45 00 00 00 00 46 46 46 45 45 45 45 45 45 00 45 45 45 45 00 45 45 45 00 45 00 45 45 45 00 46 46 00 45 45 45 00 45 00 45 46 46 00 00 45 45 45 00 45 45 45 45 46 46 45 45 45 00 45 45 45 45 00 45 45 45 46 46 00 00 45 45 00 00 45 00 45 46 00 00 45 45 45 00 45 45 00 45 45 45 45 45 45 00 45 45 00 45 00 45 45 45 00 46 46 00 00 00 00 00 00 00 00 45 46 00 46 00 46 00 45 00 45 46 46 00 00 45 45 45 00 45 45 45 00 45 00 00 00 00 00 00 00 00 45 46 46 45 00 00 45 00 00 45 45 45 00 45 46 46 46 45 00 45 45 00 00 45 45 46 00 00 45 45 45 45 45 45 45 46 00 45 00 45 00 00 45 45 45 45 46 46 46 00 00 45 45 45 45 45 46 46 46 45 00 45 00 45 00 00 00 00 45 45 45 00 45 45 45 45 46 00 00 00 00 00 45 45 45 00 45 46 46 45 45 45 00 45 00 45 45 45 45 45 00 46 46 45 00 45 45 00 45 45 00 45 46 46 46 45 45 45 45 45 45 45 45 00 46 00 00 00 00 45 45 45 00 00 46 00 46 46 00 45 45 45 45 45 45 46 00 00 46 46 45 00 45 45 00 45 00 46 00 45 45 45 00 45 00 45 45 00 45 00 00 00 45 45 45 45 00 46 00 00 45 00 00 45 00 45 45 00 46 46 00 00 00 00 45 45 45 46 00 00 46 46 46 00 00 00 00 00 00 45 46 46 00 45 45 45 00 00 45 00 45 45 00 00 00 72 00 00 72 00 00 00 00 00 45 45 45 45 00 00 46 00 00 45 00 45 45 00 45 45 45 45 00 00 46 46 00 45 45 00 00 45 45 46 00 00 46 00 00 46 46 00 00 46 00 00 00 00 46 46 00 46 45 46 46 00 46 45 45 45 00 00 00 00 46 46 45 45 00 45 45 00 00 45 00 00 46 46 46 00 46 46 00 46 46 46 46 00 45 45 00 45 45 45 45 00 00 46 00 46 45 45 00 45 00 45 45 00 00 46 46 00 00 45 00 45 45 45 45 45 46 46 46 46 00 00 46 00 46 46 00 46 46 46 00 46 00 45 00 45 00 45 00 45 45 45 45 45 00 00 45 45 45 00 45 45 00 45 00 45 45 45 00 46 46 00 45 45 00 45 45 45 00 45 00 45 46 39 00 45 45 45 00 00 45 45 45 00 45 00 45 00 45 45 45 00 00 00 45 46 46 45 00 45 45 45 45 00 00 45 00 00 00 45 45 00 45 00 00 00 00 46 46 00 45 00 45 45 00 45 00 46 00 46 00 46 00 46 46 45 46 46 46 46 45 00 45 00 45 00 45 45 45 00 45 45 00 00 00 45 45 00 00 45 00 45 46 46 46 00 46 46 46 46 46 46 45 00 00 45 45 45 00 45 00 45 00 46 00 45 45 00 00 45 00 00 00 00 46 46 00 45 45 00 00 00 00 00 00 46 00 46 46 00 00 45 00 45 45 00 00 45 45 46 46 46 00 00 46 46 46 46 46 00 00 46 46 45 45 00 45 45 00 45 00 45 00 46 46 00 45 00 45 00 00 00 00 00 46 46 45 45 45 45 45 45 46 46 46 00 00 00 45 00 00 45 00 00 45 00 00 45 00 00 00 00 45 45 00 45 45 45 45 00 00 46 46 45 45 00 45 00 45 45 45 45 00 45 45 00 00 46 00 46 45 45 45 00 00 00 45 45 45 00 00 00 46 00 00 00 45 00 45 00 00 ed 00 00 ed 00 46 46 45 00 00 00 45 45 45 00 00 46 00 46 46 00 45 45 45 45 45 45 00 45 00 46 00 46 46 46 46 46 46 46 00 46 46 46 00 00 45 45 00 45 45 00 46 46 45 45 00 00 45 00 00 00 00 45 45 00 00 45 00 00 45 45 00 00 45 00 00 46 46 00 45 45 45 00 45 00 00 00 00 00 00 00 45 45 45 45 45 00 00 46 00 46 46 45 45 00 45 45 45 45 00 00 45 00 00 46 45 00 00 00 00 00 46 00 00 45 45 00 45 00 00 00 45 00 45 45 00 45 00 45 45 00 00 00 45 45 45 45 00 */
36.705882
2,999
0.642012
83ad713fb5b736e01b1d5b168b3dcb16e4ce8fc5
643
asm
Assembly
malban/Release/VRelease/Release.History/VRelease_2017_04_23/Song/track_0A_08.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
5
2018-01-14T10:03:50.000Z
2020-01-17T13:53:49.000Z
malban/Release/VRelease/Release.History/VRelease_2017_04_23/Song/track_0A_08.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
null
null
null
malban/Release/VRelease/Release.History/VRelease_2017_04_23/Song/track_0A_08.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
null
null
null
dw $0040 track_0A_08: db $FF, $18, $97, $DE, $63, $FE, $1A, $7E, $E6, $34 db $ED, $FC, $70, $30, $FF, $BC, $9E, $3F, $18, $F9 db $DE, $8E, $3D, $6F, $27, $8F, $FD, $E8, $E9, $C4 db $BE, $EA, $A3, $EE, $FD, $2F, $3F, $A8, $F6, $8C db $4B, $AC, $E1, $D3, $48, $F5, $3C, $86, $F7, $B1 db $E4, $F1, $77, $77, $F7, $BB, $1C, $2E, $EF, $51 db $E7, $B9, $E3, $E4, $79, $EE, $EE, $F9, $1E, $79 db $9E, $3B, $C7, $9D, $A7, $8F, $7E, $F7, $99, $E3 db $7B, $DC, $0C, $0F, $FD, $E8, $E9, $C4, $BE, $EA db $A3, $EE, $FD, $2F, $3F, $A8, $F6, $8C, $4B, $AC db $E1, $D3, $48, $F5, $3C, $86, $F7, $B1, $E4, $F1 db $77, $77, $F7, $BB, $1C, $2E, $E0
45.928571
52
0.427683
a9841878a5c2b2c559673fbbd40159e33372242a
144
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Object.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Object.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Object.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: Object.asm Type: file Size: 14117 Last-Modified: '1992-02-13T07:47:46Z' SHA-1: 85CAD05A22F32966ECA32A5DF7EA231B28899B56 Description: null
20.571429
47
0.8125
77e1e959ccd0ec19a236dc0b3d1767c254bed5c1
8,021
asm
Assembly
src/stub32a/stub32c.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
5
2022-01-21T08:09:42.000Z
2022-03-17T10:15:55.000Z
src/stub32a/stub32c.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
null
null
null
src/stub32a/stub32c.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
1
2022-02-19T22:58:50.000Z
2022-02-19T22:58:50.000Z
; ; Copyright (C) 1996-2006 by Narech K. All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are ; met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; 3. The end-user documentation included with the redistribution, if any, ; must include the following acknowledgment: ; ; "This product uses DOS/32 Advanced DOS Extender technology." ; ; Alternately, this acknowledgment may appear in the software itself, if ; and wherever such third-party acknowledgments normally appear. ; ; 4. Products derived from this software may not be called "DOS/32A" or ; "DOS/32 Advanced". ; ; THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS" AND ANY EXPRESSED ; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR ; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ; ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ; .286 .MODEL tiny LOCALS ;============================================================================= _ID32 segment para public use16 'CODE0' _ID32_SIZE=16 ; size excluding 'ID32' signature ;----------------------------------------------------------------------------- db 'ID32' ; ID signature db 00111111b ; KERNEL misc. bits: ; bit 0: **deprecated** ; bit 1: **deprecated** ; bit 2: 0=VCPI smart page alloc off, 1=on /1=def ; bit 3: 0=VCPI+XMS alloc scheme off, 1=on /1=def ; bit 4: **deprecated** ; bit 5: **deprecated** ; bit 6: reserved /0=def ; bit 7: 0=ignore 4G extensions off, 1=on /0=def db 64 ; Max. number of page tables under VCPI /256MB db 2 ; Max. number of page tables mem_mapping /4MB db 16 ; Max. number of real mode callbacks /16 dw 256 ; Max. number of Selectors under VCPI/XMS/raw /256 db 8 ; Real mode Stack nesting db 8 ; Protected mode Stack nesting dw 20h ; Real mode Stack length, (in para) dw 20h ; Protected mode Stack length, (in para) dd 0FFFFFFFFh ; Max. extended memory to allocate in bytes ;----------------------------------------------------------------------------- db 00111111b ; DOS/32A misc. bits: ; bit 0: 0=console output off, 1=on /1=def ; bit 1: 0=sound generation off, 1=on /1=def ; bit 2: 0=restore INT table off, 1=on /1=def ; bit 3: 0=report modified INTs off, 1=on /1=def ; bit 4: 0=load 16 in lowmem off, 1=on /1=def ; bit 5: 0=force load 16 low off, 1=on /1=def ; bit 6: 0=cls on exception off, 1=on /0=def ; bit 7: 0=null-ptr protect off, 1=on /0=def if EXEC_TYPE eq 0 db 00001001b ; DOS/32A Pro second misc. bits else db 10001001b ; DOS/32A Beta second misc. bits endif ; bit 0: 0=config by enironment off, 1=on /1=def ; bit 1: 0=focus on this VM off, 1=on /0=def ; bit 2: 0=align objects on PARA, 1=PAGE /0=def ; bit 3: 0=show copyright off, 1=on /1=def ; bit 4: 0=verbose mode off, 1=on /0=def ; bit 5: reserved /0=def ; bit 6: 0=lock configuration off, 1=on /* ; bit 7: 0=Professional, 1=Beta /* dw 0200h ; DOS INT 21h buffer in low memory (in para) /8 KB dw 0000h ; Internal Version of DOS/32A (N/A for stub) dw 0000h ; Reserved (v7.0+) ;----------------------------------------------------------------------------- db 'STUB/32C' ,0 db 'Copyright (C) 1996-2006 by Narech K.' ,0 db ??date ,0 db ??time ,0 _ID32 ends _TEXT16 segment dword public use16 'CODE1' assume cs:_TEXT16, ds:_TEXT16 ;============================================================================= start: push cs pop ds mov ax,es mov bx,ss mov _psp,ax sub bx,ax mov ax,sp shr ax,4 add bx,ax inc bx mov ah,4Ah int 21h jc err1 push ax ds ; install INT 21h xor ax,ax mov ds,ax cli mov ax,ds:[21h*4+0] mov cs:_ip21h,ax mov ax,ds:[21h*4+2] mov cs:_cs21h,ax mov ax,offset int21h mov ds:[21h*4+0],ax mov ax,seg _TEXT16 mov ds:[21h*4+2],ax sti pop ds ax @@1: mov es,es:[002Ch] ; get environment call make_cmd mov bp,0090h call exec call find_path1 call find_path2 err0: mov ah,09h mov dx,offset str1 mov byte ptr byte0,22h int 21h err1: mov ax,4CFFh int 21h ;----------------------------------------------------------------------------- make_cmd: push ds es push ss pop ds xor ax,ax xor di,di mov cx,7FFFh @@1: repne scasb scasb jnz @@1 inc di inc di mov si,di repne scasb sub di,si mov cx,di mov ax,di mov di,0011h push ss push es pop ds pop es rep movsb mov byte ptr es:[di-1],20h mov ds,cs:_psp mov si,0081h mov cl,[si-1] add al,cl inc cx mov es:[0010h],al rep movsb pop es ds ret ;----------------------------------------------------------------------------- find_path1: xor ax,ax xor di,di @@1: mov cx,0007h mov si,offset path1 rep cmpsb jz @@2 mov cl,0FFh repne scasb cmp al,es:[di] jnz @@1 ret @@2: mov al,20h ; skip leading spaces mov cl,0FFh rep scasb cmp word ptr es:[di],'\:' jz @@3 ret @@3: dec di mov bp,0090h @@loop: mov al,es:[di] test al,al jz @@4 inc di cmp al,20h jz @@4 mov [bp],al inc bp jmp @@loop @@4: mov byte ptr [bp],'\' mov word ptr [bp+1],'IB' mov word ptr [bp+3],'WN' add bp,5 jmp exec ;----------------------------------------------------------------------------- find_path2: xor ax,ax xor di,di @@1: mov cx,0005h mov si,offset path2 rep cmpsb jz @@2 mov cl,0FFh repne scasb cmp al,es:[di] jnz @@1 ret @@2: mov bp,0090h @@loop: mov al,es:[di] test al,al jz exec inc di cmp al,20h jz @@loop cmp al,';' jz @@3 mov [bp],al inc bp jmp @@loop @@3: call exec jmp @@2 ;----------------------------------------------------------------------------- exec: push ds es di xor si,si cmp bp,0090h jz @@0 inc si mov byte ptr [bp],'\' @@0: lea di,[bp+si] mov si,offset name1 push ss pop es mov cx,11 rep movsb push ss ss ss pop ds es ax xor bx,bx mov word ptr ds:[0000h],bx mov word ptr ds:[0002h],0010h mov word ptr ds:[0004h],ax mov word ptr ds:[0006h],005Ch mov word ptr ds:[0008h],ax mov word ptr ds:[000Ah],006Ch mov word ptr ds:[000Ch],ax mov dx,0090h mov ax,4B00h int 21h jc @@1 mov ah,4Dh int 21h mov ah,4Ch int 21h @@1: pop di es ds ret ;----------------------------------------------------------------------------- Align 4 int21h: cmp ah,4Ch jz @@1 cmp ax,0FF87h jz @@2 @@0: jmp dword ptr cs:_ip21h @@1: push ax call uninstall_int21h pop ax jmp @@0 @@2: call uninstall_int21h mov ax,seg _ID32 mov ds,ax ; DS:SI = pointer to configuration xor si,si mov dx,'ID' ; DX:AX = "ID32" ID-string mov ax,'32' iret ;----------------------------------------------------------------------------- uninstall_int21h: cli xor ax,ax mov ds,ax mov ax,cs:_ip21h mov ds:[21h*4+0],ax mov ax,cs:_cs21h mov ds:[21h*4+2],ax ret ;============================================================================= path1 db 'DOS32A=' path2 db 'PATH=' str1 db 'Cannot find file "' name1 db 'DOS32A.EXE' byte0 db 0,0Dh,0Ah,'$' $theend proc near db 5 dup(0) $theend endp evendata _ip21h dw ? _cs21h dw ? _psp dw ? _TEXT16 ends .STACK ;============================================================================= end start
22.405028
78
0.583967
584e4eab734807ac0ddc6fd2fab66bbc8ad834fc
2,386
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_91_427.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_91_427.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_91_427.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 %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_D_ht+0x584, %rsi lea addresses_A_ht+0xf584, %rdi clflush (%rdi) nop nop nop nop nop add $58126, %r8 mov $68, %rcx rep movsb nop nop and %r14, %r14 lea addresses_D_ht+0x154c6, %rsi lea addresses_D_ht+0x3384, %rdi nop nop and $24847, %r11 mov $2, %rcx rep movsq nop nop nop nop nop lfence pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rax push %rcx push %rdx push %rsi // Store lea addresses_PSE+0x1ab84, %rsi nop nop nop nop and $27988, %rdx movb $0x51, (%rsi) cmp %rax, %rax // Store mov $0x6c336d0000000784, %rcx nop nop nop add $31614, %r9 movl $0x51525354, (%rcx) nop sub $64176, %r11 // Store lea addresses_WC+0x5704, %rsi clflush (%rsi) nop nop inc %rax movw $0x5152, (%rsi) dec %rdx // Faulty Load lea addresses_A+0xbb84, %r11 nop nop nop nop nop and $5380, %rdx mov (%r11), %eax lea oracles, %r9 and $0xff, %rax shlq $12, %rax mov (%r9,%rax,1), %rax pop %rsi pop %rdx pop %rcx pop %rax pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'51': 91} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
19.883333
272
0.648365
7230bca1309aec5cc68d51f86b17563f2222b835
909
asm
Assembly
Tareas/Ensamblador/tasm/BIN/quizsector.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/quizsector.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/quizsector.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Pila Segment Stack 'Stack' dw 2048 dup(?) Pila Ends Datos Segment Datos Ends Codigo Segment Assume DS:Datos,CS:Codigo,SS:Pila inicio: load_sector_2: mov al, 0x01 ; load 1 sector mov bx, 0x7E00 ; destination (might as well load it right after your bootloader) mov cx, 0x0002 ; cylinder 0, sector 2 mov dl, [BootDrv] ; boot drive xor dh, dh ; head 0 call read_sectors_16 jnc .success ; if carry flag is set, either the disk system wouldn't reset, or we exceeded our maximum attempts and the disk is probably shagged mov si, read_failure_str call print_string_16 .success: ; do whatever (maybe jmp 0x7E00?) read_failure_str db 'Boot disk read failure!', 13, 10, 0 ; finalizar el programa mov ax,4c00h int 21h Codigo ENDS END Inicio
23.307692
160
0.617162
44289dcec05981efe2583ba6496d17c4d127cc89
1,320
asm
Assembly
codigo/capitulo 37/cadena_copia.asm
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
[ "MIT" ]
1
2021-06-13T08:59:55.000Z
2021-06-13T08:59:55.000Z
codigo/capitulo 37/cadena_copia.asm
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
[ "MIT" ]
null
null
null
codigo/capitulo 37/cadena_copia.asm
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
[ "MIT" ]
null
null
null
segment .data string1 db 'hola cadenas' len equ $-string1 ln db 10,13 lenln equ $-ln segment .bss string2 resb 10 segment .text global _start _start: mov ecx, len ; utilizamos el registro ecx como contador mov esi, string1 ; especificamos la ubicacion de memoria de donde ; obtendremos los datos a procesar mov edi, string2 ; especificamos la ubicacion de memoria en donde ; almacenaremos los datos procesados cld ; colocamos en la bandera de direccion un cero, lo que nos ; permitira movernos de izquierda a derecha, al incrementar ; automaticamente las direciones de memoria al usar operaciones ; de manejo de cadenas rep movsb ; la instruccion movsb copia un byte de la direccion de ; memoria origen a la ubicacion de memoria destino, ; al hacer la transferencia aumenta en uno las direcciones ; de memoria de forma automatica ; la instruccion rep disminuira en uno el valor almacenado ; en el registro ecx y ejecutara la instruccion movsb hasta ; que el valor del registro ecx sea cero mov eax, 4 mov ebx, 1 mov ecx, string2 mov edx, len int 0x80 mov eax, 4 mov ebx, 1 mov ecx, ln mov edx, lenln int 0x80 salir: mov eax, 1 xor ebx, ebx int 0x80
28.085106
73
0.678788
2aee5bfe46e94039c54333dcfe3dadae02f5a23d
51,589
asm
Assembly
non_regression/switch_x86_linux_4.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
non_regression/switch_x86_linux_4.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
non_regression/switch_x86_linux_4.o.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
.file "infback.c" .section .rodata.str1.4,"aMS",@progbits,1 .LC2: .string "too many length or distance symbols" .LC5: .string "invalid code -- missing end-of-block" # ---------------------- .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "invalid block type" .LC1: .string "invalid stored block lengths" .LC3: .string "invalid code lengths set" .LC4: .string "invalid bit length repeat" .LC6: .string "invalid literal/lengths set" .LC7: .string "invalid distances set" .LC8: .string "invalid literal/length code" .LC9: .string "invalid distance code" .LC10: .string "invalid distance too far back" # ---------------------- .section .rodata .align 32 .local lenfix.3532 .type lenfix.3532, @object lenfix.3532: .long 1888 .long 5244928 .long 1050624 .long 7538708 .long 2033426 .long 7342080 .long 3147776 .long 12585216 .long 657168 .long 6293504 .long 2099200 .long 10488064 .long 2048 .long 8390656 .long 4196352 .long 14682368 .long 395024 .long 5769216 .long 1574912 .long 9439488 .long 3868435 .long 7866368 .long 3672064 .long 13633792 .long 1115921 .long 6817792 .long 2623488 .long 11536640 .long 526336 .long 8914944 .long 4720640 .long 15730944 .long 263952 .long 5507072 .long 1312768 .long 14878741 .long 2819859 .long 7604224 .long 3409920 .long 13109504 .long 853777 .long 6555648 .long 2361344 .long 11012352 .long 264192 .long 8652800 .long 4458496 .long 15206656 .long 526096 .long 6031360 .long 1837056 .long 9963776 .long 5441300 .long 8128512 .long 3934208 .long 14158080 .long 1509138 .long 7079936 .long 2885632 .long 12060928 .long 788480 .long 9177088 .long 4982784 .long 16255232 .long 198416 .long 5376000 .long 1181696 .long 10684437 .long 2295571 .long 7473152 .long 3278848 .long 12847360 .long 722705 .long 6424576 .long 2230272 .long 10750208 .long 133120 .long 8521728 .long 4327424 .long 14944512 .long 460560 .long 5900288 .long 1705984 .long 9701632 .long 4392724 .long 7997440 .long 3803136 .long 13895936 .long 1246994 .long 6948864 .long 2754560 .long 11798784 .long 657408 .long 9046016 .long 4851712 .long 15993088 .long 329488 .long 5638144 .long 1443840 .long 2112 .long 3344147 .long 7735296 .long 3540992 .long 13371648 .long 984849 .long 6686720 .long 2492416 .long 11274496 .long 395264 .long 8783872 .long 4589568 .long 15468800 .long 591632 .long 6162432 .long 1968128 .long 10225920 .long 6489876 .long 8259584 .long 4065280 .long 14420224 .long 1771282 .long 7211008 .long 3016704 .long 12323072 .long 919552 .long 9308160 .long 5113856 .long 16517376 .long 1888 .long 5310464 .long 1116160 .long 8587285 .long 2033426 .long 7407616 .long 3213312 .long 12716288 .long 657168 .long 6359040 .long 2164736 .long 10619136 .long 67584 .long 8456192 .long 4261888 .long 14813440 .long 395024 .long 5834752 .long 1640448 .long 9570560 .long 3868435 .long 7931904 .long 3737600 .long 13764864 .long 1115921 .long 6883328 .long 2689024 .long 11667712 .long 591872 .long 8980480 .long 4786176 .long 15862016 .long 263952 .long 5572608 .long 1378304 .long 16910352 .long 2819859 .long 7669760 .long 3475456 .long 13240576 .long 853777 .long 6621184 .long 2426880 .long 11143424 .long 329728 .long 8718336 .long 4524032 .long 15337728 .long 526096 .long 6096896 .long 1902592 .long 10094848 .long 5441300 .long 8194048 .long 3999744 .long 14289152 .long 1509138 .long 7145472 .long 2951168 .long 12192000 .long 854016 .long 9242624 .long 5048320 .long 16386304 .long 198416 .long 5441536 .long 1247232 .long 12781589 .long 2295571 .long 7538688 .long 3344384 .long 12978432 .long 722705 .long 6490112 .long 2295808 .long 10881280 .long 198656 .long 8587264 .long 4392960 .long 15075584 .long 460560 .long 5965824 .long 1771520 .long 9832704 .long 4392724 .long 8062976 .long 3868672 .long 14027008 .long 1246994 .long 7014400 .long 2820096 .long 11929856 .long 722944 .long 9111552 .long 4917248 .long 16124160 .long 329488 .long 5703680 .long 1509376 .long 2112 .long 3344147 .long 7800832 .long 3606528 .long 13502720 .long 984849 .long 6752256 .long 2557952 .long 11405568 .long 460800 .long 8849408 .long 4655104 .long 15599872 .long 591632 .long 6227968 .long 2033664 .long 10356992 .long 6489876 .long 8325120 .long 4130816 .long 14551296 .long 1771282 .long 7276544 .long 3082240 .long 12454144 .long 985088 .long 9373696 .long 5179392 .long 16648448 .long 1888 .long 5244928 .long 1050624 .long 7538708 .long 2033426 .long 7342080 .long 3147776 .long 12650752 .long 657168 .long 6293504 .long 2099200 .long 10553600 .long 2048 .long 8390656 .long 4196352 .long 14747904 .long 395024 .long 5769216 .long 1574912 .long 9505024 .long 3868435 .long 7866368 .long 3672064 .long 13699328 .long 1115921 .long 6817792 .long 2623488 .long 11602176 .long 526336 .long 8914944 .long 4720640 .long 15796480 .long 263952 .long 5507072 .long 1312768 .long 14878741 .long 2819859 .long 7604224 .long 3409920 .long 13175040 .long 853777 .long 6555648 .long 2361344 .long 11077888 .long 264192 .long 8652800 .long 4458496 .long 15272192 .long 526096 .long 6031360 .long 1837056 .long 10029312 .long 5441300 .long 8128512 .long 3934208 .long 14223616 .long 1509138 .long 7079936 .long 2885632 .long 12126464 .long 788480 .long 9177088 .long 4982784 .long 16320768 .long 198416 .long 5376000 .long 1181696 .long 10684437 .long 2295571 .long 7473152 .long 3278848 .long 12912896 .long 722705 .long 6424576 .long 2230272 .long 10815744 .long 133120 .long 8521728 .long 4327424 .long 15010048 .long 460560 .long 5900288 .long 1705984 .long 9767168 .long 4392724 .long 7997440 .long 3803136 .long 13961472 .long 1246994 .long 6948864 .long 2754560 .long 11864320 .long 657408 .long 9046016 .long 4851712 .long 16058624 .long 329488 .long 5638144 .long 1443840 .long 2112 .long 3344147 .long 7735296 .long 3540992 .long 13437184 .long 984849 .long 6686720 .long 2492416 .long 11340032 .long 395264 .long 8783872 .long 4589568 .long 15534336 .long 591632 .long 6162432 .long 1968128 .long 10291456 .long 6489876 .long 8259584 .long 4065280 .long 14485760 .long 1771282 .long 7211008 .long 3016704 .long 12388608 .long 919552 .long 9308160 .long 5113856 .long 16582912 .long 1888 .long 5310464 .long 1116160 .long 8587285 .long 2033426 .long 7407616 .long 3213312 .long 12781824 .long 657168 .long 6359040 .long 2164736 .long 10684672 .long 67584 .long 8456192 .long 4261888 .long 14878976 .long 395024 .long 5834752 .long 1640448 .long 9636096 .long 3868435 .long 7931904 .long 3737600 .long 13830400 .long 1115921 .long 6883328 .long 2689024 .long 11733248 .long 591872 .long 8980480 .long 4786176 .long 15927552 .long 263952 .long 5572608 .long 1378304 .long 16910352 .long 2819859 .long 7669760 .long 3475456 .long 13306112 .long 853777 .long 6621184 .long 2426880 .long 11208960 .long 329728 .long 8718336 .long 4524032 .long 15403264 .long 526096 .long 6096896 .long 1902592 .long 10160384 .long 5441300 .long 8194048 .long 3999744 .long 14354688 .long 1509138 .long 7145472 .long 2951168 .long 12257536 .long 854016 .long 9242624 .long 5048320 .long 16451840 .long 198416 .long 5441536 .long 1247232 .long 12781589 .long 2295571 .long 7538688 .long 3344384 .long 13043968 .long 722705 .long 6490112 .long 2295808 .long 10946816 .long 198656 .long 8587264 .long 4392960 .long 15141120 .long 460560 .long 5965824 .long 1771520 .long 9898240 .long 4392724 .long 8062976 .long 3868672 .long 14092544 .long 1246994 .long 7014400 .long 2820096 .long 11995392 .long 722944 .long 9111552 .long 4917248 .long 16189696 .long 329488 .long 5703680 .long 1509376 .long 2112 .long 3344147 .long 7800832 .long 3606528 .long 13568256 .long 984849 .long 6752256 .long 2557952 .long 11471104 .long 460800 .long 8849408 .long 4655104 .long 15665408 .long 591632 .long 6227968 .long 2033664 .long 10422528 .long 6489876 .long 8325120 .long 4130816 .long 14616832 .long 1771282 .long 7276544 .long 3082240 .long 12519680 .long 985088 .long 9373696 .long 5179392 .long 16713984 .size lenfix.3532, 2048 # ---------------------- .local distfix.3533 .type distfix.3533, @object distfix.3533: .long 66832 .long 16844055 .long 1115411 .long 268502299 .long 328977 .long 67175705 .long 4261141 .long 1073808669 .long 197904 .long 33621272 .long 2163988 .long 536937756 .long 591122 .long 134284570 .long 8455446 .long 1344 .long 132368 .long 25232663 .long 1639699 .long 402720027 .long 460049 .long 100730137 .long 6358293 .long 1610679581 .long 263440 .long 50398488 .long 3212564 .long 805373212 .long 853266 .long 201393434 .long 12649750 .long 1344 .size distfix.3533, 128 # ---------------------- .local order.3554 .type order.3554, @object order.3554: .ascii "\020\000\021\000\022\000\000\000\010\000\007\000\t\000\006\000\n\000\005\000\013\000\004\000\014\000\003\000\r\000\002\000\016\000\001\000\017\000" .size order.3554, 38 # ---------------------- .text .globl inflateBackInit_ .type inflateBackInit_, @function inflateBackInit_: subl $44, %esp movl 60(%esp), %eax movl %ebx, 28(%esp) call __i686.get_pc_thunk.bx .L00000010: addl $_GLOBAL_OFFSET_TABLE_, %ebx movl %esi, 32(%esp) movl 56(%esp), %esi testl %eax, %eax movl %edi, 36(%esp) movl 48(%esp), %edi movl %ebp, 40(%esp) movl 52(%esp), %ebp je .L00000118 .L00000036: cmpl $56, 64(%esp) jne .L00000118 .L00000041: cmpb $49, (%eax) jne .L00000118 .L0000004A: testl %esi, %esi je .L00000110 .L00000052: testl %edi, %edi je .L00000110 .L0000005A: cmpl $15, %ebp .p2align 3 jg .L00000110 .L00000066: cmpl $7, %ebp jle .L00000110 .L0000006F: movl 32(%edi), %edx movl $0, 24(%edi) testl %edx, %edx je .L000000E8 .L0000007D: movl 36(%edi), %eax testl %eax, %eax je .L00000100 .L00000084: movl $7116, 8(%esp) movl $1, 4(%esp) movl 40(%edi), %eax movl %eax, (%esp) call *32(%edi) .L0000009D: testl %eax, %eax je .L0000011F .L000000A1: movl $1, %edx movl %ebp, %ecx sall %cl, %edx movl %eax, 28(%edi) movl $32768, 20(%eax) movl %ebp, 36(%eax) movl %edx, 40(%eax) movl %esi, 52(%eax) movl $0, 48(%eax) movl $0, 44(%eax) xorl %eax, %eax .L000000CD: movl 28(%esp), %ebx movl 32(%esp), %esi movl 36(%esp), %edi movl 40(%esp), %ebp addl $44, %esp ret .L000000E1: .p2align 3 .L000000E8: leal zcalloc@GOTOFF(%ebx), %eax movl %eax, 32(%edi) movl 36(%edi), %eax movl $0, 40(%edi) testl %eax, %eax jne .L00000084 .L000000FF: .p2align 3 .L00000100: leal zcfree@GOTOFF(%ebx), %eax movl %eax, 36(%edi) jmp .L00000084 .L0000010E: .p2align 3 .L00000110: movl $-2, %eax jmp .L000000CD .L00000117: .p2align 3 .L00000118: movl $-6, %eax jmp .L000000CD .L0000011F: movl $-4, %eax jmp .L000000CD .size inflateBackInit_, .-inflateBackInit_ # ---------------------- .L00000126: .p2align 4 # ---------------------- .globl inflateBack .type inflateBack, @function inflateBack: pushl %ebp pushl %edi pushl %esi pushl %ebx subl $188, %esp movl 208(%esp), %eax call __i686.get_pc_thunk.bx .L00000146: addl $_GLOBAL_OFFSET_TABLE_, %ebx testl %eax, %eax je .L00000C4E .L00000154: movl 208(%esp), %edx movl 28(%edx), %edx testl %edx, %edx movl %edx, 56(%esp) je .L00000C4E .L0000016A: movl 208(%esp), %edi movl (%edi), %eax movl $0, 24(%edi) xorl %edi, %edi movl $11, (%edx) movl $0, 4(%edx) testl %eax, %eax movl $0, 44(%edx) movl %eax, 172(%esp) je .L000001A5 .L0000019B: movl 208(%esp), %ebp movl 4(%ebp), %edi .L000001A5: movl 56(%esp), %edx movl $11, %eax xorl %esi, %esi xorl %ebp, %ebp movl 52(%edx), %edx movl %edx, 80(%esp) movl 56(%esp), %edx movl 40(%edx), %edx movl %edx, 88(%esp) leal .LC10@GOTOFF(%ebx), %edx movl %edx, 92(%esp) .L000001CE: subl $11, %eax cmpl $18, %eax jbe .L00000200 .L000001D6: movl 172(%esp), %edx movl $-2, %eax .L000001E2: movl 208(%esp), %ebp movl %edx, (%ebp) movl %edi, 4(%ebp) .L000001EF: addl $188, %esp popl %ebx popl %esi popl %edi popl %ebp ret .L000001FA: .p2align 3 .L00000200: movl %ebx, %ecx subl .L0000020C@GOTOFF(%ebx,%eax,4), %ecx jmp *%ecx .L0000020B: .p2align 2 .L0000020C: .long _GLOBAL_OFFSET_TABLE_+[.-.L00000470] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L00000408] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L00000398] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000002A0] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L000001D6] .long _GLOBAL_OFFSET_TABLE_+[.-.L00000270] .long _GLOBAL_OFFSET_TABLE_+[.-.L00000258] .L00000258: movl 172(%esp), %edx movl $-3, %eax jmp .L000001E2 .L00000269: .p2align 4 .L00000270: movl 56(%esp), %edx movl 40(%edx), %eax cmpl 88(%esp), %eax ja .L00000500 .L00000281: movl 172(%esp), %edx movl $1, %eax jmp .L000001E2 .L00000292: movl 56(%esp), %edx movl $20, (%edx) .p2align 3 .L000002A0: cmpl $5, %edi jbe .L000002B3 .L000002A5: cmpl $257, 88(%esp) ja .L00000738 .L000002B3: movl 56(%esp), %edx movl $1, %eax movl 76(%edx), %edx movl %edx, 60(%esp) movl 56(%esp), %edx movl 84(%edx), %edx movl %edx, %ecx sall %cl, %eax movl 60(%esp), %ecx subl $1, %eax andl %ebp, %eax movl %edx, 64(%esp) leal (%ecx,%eax,4), %edx movzbl (%edx), %eax movb %al, 84(%esp) movzbl 1(%edx), %eax movzwl 2(%edx), %edx movzbl %al, %ecx cmpl %ecx, %esi movl %ecx, 108(%esp) jae .L000007C4 .L000002FC: movl %edi, %eax jmp .L00000352 .L00000300: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) movl 60(%esp), %edi sall %cl, %edx movzbl 64(%esp), %ecx addl %edx, %ebp movl $1, %edx sall %cl, %edx subl $1, %edx andl %ebp, %edx leal (%edi,%edx,4), %ecx movzbl (%ecx), %edx movzwl 2(%ecx), %edi movb %dl, 84(%esp) movzbl 1(%ecx), %edx movzbl %dl, %ecx cmpl %esi, %ecx jbe .L000007B8 .L00000352: testl %eax, %eax jne .L00000300 .L00000356: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00000372: testl %eax, %eax je .L000003F5 .L00000376: movl 56(%esp), %edx movl 56(%esp), %edi movl 76(%edx), %edx movl 84(%edi), %edi movl %edx, 60(%esp) movl %edi, 64(%esp) jmp .L00000300 .L00000391: .p2align 3 .L00000398: cmpl $13, %esi movl %edi, %eax jbe .L000003D1 .L0000039F: jmp .L00000582 .L000003A4: .p2align 3 .L000003A8: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl $13, %esi ja .L00000580 .L000003D1: testl %eax, %eax jne .L000003A8 .L000003D5: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L000003F1: testl %eax, %eax jne .L000003A8 .L000003F5: movl %eax, %edi xorl %edx, %edx movl $-5, %eax jmp .L000001E2 .L00000403: .p2align 3 .L00000408: movl %esi, %ecx andl $-8, %esi andl $7, %ecx shrl %cl, %ebp cmpl $31, %esi ja .L00000542 .L0000041B: movl %edi, %eax jmp .L00000449 .L0000041F: .p2align 3 .L00000420: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl $31, %esi ja .L00000540 .L00000449: testl %eax, %eax jne .L00000420 .L0000044D: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00000469: testl %eax, %eax jne .L00000420 .L0000046D: jmp .L000003F5 .L0000046F: .p2align 3 .L00000470: movl 56(%esp), %edx movl 4(%edx), %eax testl %eax, %eax jne .L000004E0 .L0000047B: cmpl $2, %esi movl %edi, %eax jbe .L000004B1 .L00000482: jmp .L000008E2 .L00000487: .p2align 3 .L00000488: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl $2, %esi ja .L000008E0 .L000004B1: testl %eax, %eax jne .L00000488 .L000004B5: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L000004D1: testl %eax, %eax jne .L00000488 .L000004D5: jmp .L000003F5 .L000004DA: .p2align 3 .L000004E0: movl %esi, %ecx movl $28, %eax andl $7, %ecx andl $-8, %esi shrl %cl, %ebp movl $28, (%edx) jmp .L000001CE .L000004FA: .p2align 3 .L00000500: subl 88(%esp), %eax movl 224(%esp), %ebp movl %eax, 8(%esp) movl 52(%edx), %eax movl %ebp, (%esp) movl %eax, 4(%esp) call *220(%esp) .L00000520: movl 172(%esp), %edx testl %eax, %eax je .L00000A8C .L0000052F: movl $-5, %eax jmp .L000001E2 .L00000539: .p2align 4 .L00000540: movl %eax, %edi .L00000542: movl %ebp, %eax movl %ebp, %edx shrl $16, %eax andl $65535, %edx xorl $65535, %eax cmpl %eax, %edx je .L00000928 .L0000055C: leal .LC1@GOTOFF(%ebx), %eax .L00000562: movl 208(%esp), %edx movl %eax, 24(%edx) movl 56(%esp), %edx movl $29, %eax movl $29, (%edx) jmp .L000001CE .L00000580: movl %eax, %edi .L00000582: movl 56(%esp), %edx movl %ebp, %ecx movl %ebp, %eax shrl $5, %ecx andl $31, %eax andl $31, %ecx addl $257, %eax addl $1, %ecx subl $14, %esi movl %ecx, 100(%edx) movl %eax, 96(%edx) movl %ebp, %edx movl %ecx, 60(%esp) movl 56(%esp), %ecx shrl $10, %edx andl $15, %edx addl $4, %edx shrl $14, %ebp cmpl $286, %eax movl %edx, 84(%esp) movl %edx, 92(%ecx) ja .L00000728 .L000005CC: cmpl $30, 60(%esp) ja .L00000728 .L000005D7: movl 56(%esp), %edx xorl %eax, %eax movl %eax, %ecx movl %edi, %eax movl %ebp, 60(%esp) movl $0, 104(%edx) movl %edx, %edi movl 84(%esp), %edx movl %edx, 96(%esp) .L000005F6: cmpl $2, %esi ja .L00000635 .L000005FB: testl %eax, %eax je .L00000AB8 .L00000603: .p2align 3 .L00000608: movl 172(%esp), %ebp movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%ebp), %edx addl $1, %ebp movl %ebp, 172(%esp) sall %cl, %edx movl 104(%edi), %ecx addl %edx, 60(%esp) movl 92(%edi), %edx movl %edx, 96(%esp) .L00000635: movzwl 60(%esp), %edx subl $3, %esi movzwl order.3554@GOTOFF(%ebx,%ecx,2), %ebp addl $1, %ecx shrl $3, 60(%esp) andl $7, %edx cmpl 96(%esp), %ecx movw %dx, 112(%edi,%ebp,2) movl %ecx, 104(%edi) jb .L000005F6 .L0000065E: cmpl $18, %ecx movl %eax, %edi movl 60(%esp), %ebp movl %ecx, %eax ja .L0000068E .L0000066B: movl 56(%esp), %ecx .p2align 3 .L00000670: movzwl order.3554@GOTOFF(%ebx,%eax,2), %edx addl $1, %eax cmpl $18, %eax movw $0, 112(%ecx,%edx,2) jbe .L00000670 .L00000687: movl 56(%esp), %edx movl %eax, 104(%edx) .L0000068E: movl 56(%esp), %edx movl 56(%esp), %ecx addl $1328, %edx movl %edx, 108(%ecx) movl %edx, 76(%ecx) movl %edx, 96(%esp) movl 56(%esp), %edx movl $7, 84(%ecx) addl $752, %ecx movl %ecx, 112(%esp) movl %ecx, 20(%esp) addl $84, %edx movl %edx, 148(%esp) movl 56(%esp), %edx movl $19, 8(%esp) movl $0, (%esp) addl $108, %edx movl %edx, 116(%esp) movl 56(%esp), %edx addl $112, %edx movl %edx, 152(%esp) movl 148(%esp), %edx movl %edx, 16(%esp) movl 116(%esp), %edx movl %edx, 12(%esp) movl 152(%esp), %edx movl %edx, 4(%esp) call inflate_table .L00000714: testl %eax, %eax je .L00000F6D .L0000071C: leal .LC3@GOTOFF(%ebx), %eax jmp .L00000562 .L00000727: .p2align 3 .L00000728: leal .LC2@GOTOFF(%ebx), %eax jmp .L00000562 .L00000733: .p2align 3 .L00000738: movl 208(%esp), %edx movl 88(%esp), %eax movl 80(%esp), %ecx movl %edi, 4(%edx) movl %eax, 16(%edx) movl 172(%esp), %eax movl %ecx, 12(%edx) movl %eax, (%edx) movl 56(%esp), %edx movl 40(%edx), %eax cmpl %eax, 44(%edx) movl %ebp, 56(%edx) movl %esi, 60(%edx) jae .L00000776 .L0000076B: movl %edx, %edi movl %eax, %edx subl 88(%esp), %edx movl %edx, 44(%edi) .L00000776: movl 208(%esp), %ebp movl %eax, 4(%esp) movl %ebp, (%esp) call inflate_fast .L00000789: movl 12(%ebp), %edx movl 16(%ebp), %edi movl (%ebp), %eax movl %edx, 80(%esp) movl 56(%esp), %edx movl %edi, 88(%esp) movl 4(%ebp), %edi movl %eax, 172(%esp) movl 56(%edx), %ebp movl 60(%edx), %esi movl (%edx), %eax jmp .L000001CE .L000007B5: .p2align 3 .L000007B8: movl %ecx, 108(%esp) movl %edi, %ecx movl %eax, %edi movl %edx, %eax movl %ecx, %edx .L000007C4: cmpb $0, 84(%esp) je .L00000A48 .L000007CF: movzbl 84(%esp), %ecx movl %ecx, 96(%esp) andl $240, %ecx jne .L00000AFF .L000007E4: movzbl %al, %ecx movzwl %dx, %edx movl %ecx, 64(%esp) movl 96(%esp), %ecx addl 64(%esp), %ecx movl %edx, 100(%esp) movl $1, %edx sall %cl, %edx movl %eax, %ecx movl 100(%esp), %eax subl $1, %edx movl %edx, 96(%esp) andl %ebp, %edx shrl %cl, %edx addl %edx, %eax movl 60(%esp), %edx leal (%edx,%eax,4), %eax movzbl (%eax), %edx movb %dl, 84(%esp) movzbl 1(%eax), %edx movzwl 2(%eax), %eax movb %dl, 112(%esp) movw %ax, 104(%esp) movzbl %dl, %eax movl 64(%esp), %edx addl %eax, %edx cmpl %edx, %esi jae .L00000C13 .L00000844: movl %edi, %eax jmp .L000008A5 .L00000848: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) movl 60(%esp), %edi sall %cl, %edx movzbl 64(%esp), %ecx addl %edx, %ebp movl 96(%esp), %edx andl %ebp, %edx shrl %cl, %edx addl 100(%esp), %edx leal (%edi,%edx,4), %edx movl 64(%esp), %edi movzbl (%edx), %ecx movb %cl, 84(%esp) movzbl 1(%edx), %ecx movzwl 2(%edx), %edx movw %dx, 104(%esp) movzbl %cl, %edx addl %edx, %edi cmpl %esi, %edi jbe .L00000C0B .L000008A5: testl %eax, %eax jne .L00000848 .L000008A9: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L000008C5: testl %eax, %eax je .L000003F5 .L000008CD: movl 56(%esp), %edx movl 76(%edx), %edx movl %edx, 60(%esp) jmp .L00000848 .L000008DD: .p2align 3 .L000008E0: movl %eax, %edi .L000008E2: movl 56(%esp), %edx movl %ebp, %eax andl $1, %eax shrl $1, %ebp movl %eax, 4(%edx) movl %ebp, %eax andl $3, %eax cmpl $2, %eax je .L00000BC7 .L000008FE: cmpl $3, %eax je .L00000A93 .L00000907: cmpl $1, %eax je .L00000BD7 .L00000910: movl $13, (%edx) movl $13, %eax .L0000091B: shrl $2, %ebp subl $3, %esi jmp .L000001CE .L00000926: .p2align 3 .L00000928: movl 56(%esp), %ecx testl %edx, %edx movl %edx, 64(%ecx) je .L00000AE7 .L00000937: movl %edx, %esi movl 88(%esp), %ecx movl %edi, %edx leal 172(%esp), %ebp jmp .L000009AA .L00000948: testl %ecx, %ecx je .L000009E8 .L00000950: movl 172(%esp), %eax cmpl %esi, %edx movl %ecx, %edi cmovbe %edx, %esi cmpl %ecx, %esi cmovbe %esi, %edi movl %eax, 4(%esp) movl 80(%esp), %eax movl %edx, 52(%esp) movl %ecx, 48(%esp) movl %edi, 8(%esp) movl %eax, (%esp) call memcpy@PLT .L0000097F: movl 56(%esp), %eax movl 52(%esp), %edx movl 48(%esp), %ecx addl %edi, 172(%esp) movl 64(%eax), %esi subl %edi, %edx subl %edi, %ecx addl %edi, 80(%esp) subl %edi, %esi testl %esi, %esi movl %esi, 64(%eax) je .L00000AE1 .L000009AA: testl %edx, %edx jne .L00000948 .L000009AE: movl 216(%esp), %edi movl %ecx, 48(%esp) movl %ebp, 4(%esp) movl %edi, (%esp) call *212(%esp) .L000009C7: movl 48(%esp), %ecx testl %eax, %eax movl %eax, %edx jne .L00000948 .L000009D5: movl %eax, %edi xorl %edx, %edx movl $-5, %eax jmp .L000001E2 .L000009E3: .p2align 3 .L000009E8: movl 56(%esp), %edi movl 52(%edi), %edi movl %edi, 80(%esp) movl 56(%esp), %edi movl 40(%edi), %ecx movl %ecx, 44(%edi) movl 80(%esp), %edi movl %ecx, 8(%esp) movl %edx, 52(%esp) movl %ecx, 48(%esp) movl %edi, 4(%esp) movl 224(%esp), %edi movl %edi, (%esp) call *220(%esp) .L00000A22: movl 52(%esp), %edx movl 48(%esp), %ecx testl %eax, %eax je .L00000950 .L00000A32: movl %edx, %edi movl $-5, %eax movl 172(%esp), %edx jmp .L000001E2 .L00000A45: .p2align 3 .L00000A48: movl %eax, %ecx movl 56(%esp), %eax movzwl %dx, %edx subl 108(%esp), %esi shrl %cl, %ebp movl %edx, 64(%eax) .L00000A5A: movl 88(%esp), %eax testl %eax, %eax je .L00000C58 .L00000A66: movl 80(%esp), %eax subl $1, 88(%esp) movb %dl, (%eax) movl 56(%esp), %edx addl $1, %eax movl %eax, 80(%esp) movl $20, %eax movl $20, (%edx) jmp .L000001CE .L00000A8C: movb $1, %al jmp .L000001E2 .L00000A93: movl 208(%esp), %edx leal .LC0@GOTOFF(%ebx), %eax movl %eax, 24(%edx) movl 56(%esp), %edx movl $29, %eax movl $29, (%edx) jmp .L0000091B .L00000AB7: .p2align 3 .L00000AB8: movl 216(%esp), %ebp leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %ebp, (%esp) call *212(%esp) .L00000AD4: testl %eax, %eax jne .L00000608 .L00000ADC: jmp .L000003F5 .L00000AE1: movl %edx, %edi movl %ecx, 88(%esp) .L00000AE7: movl 56(%esp), %edx movl $11, %eax xorl %esi, %esi xorl %ebp, %ebp movl $11, (%edx) jmp .L000001CE .L00000AFF: movl %eax, %ecx movl 56(%esp), %eax movzwl %dx, %edx subl 108(%esp), %esi shrl %cl, %ebp movl %edx, 64(%eax) .L00000B11: testb $32, 96(%esp) je .L00000B2C .L00000B18: movl 56(%esp), %edx movl $11, %eax movl $11, (%edx) jmp .L000001CE .L00000B2C: testb $64, 96(%esp) leal .LC8@GOTOFF(%ebx), %eax jne .L00000562 .L00000B3D: movzbl 84(%esp), %ecx movl 56(%esp), %edx andl $15, %ecx testl %ecx, %ecx movl %ecx, 60(%esp) movl %ecx, 72(%edx) je .L00000CC6 .L00000B58: cmpl %esi, %ecx jbe .L00000CA8 .L00000B60: movl %edi, %eax jmp .L00000B92 .L00000B64: .p2align 3 .L00000B68: movl 172(%esp), %edi movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl 60(%esp), %esi jae .L00000CA6 .L00000B92: testl %eax, %eax jne .L00000B68 .L00000B96: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00000BB2: testl %eax, %eax je .L000003F5 .L00000BBA: movl 56(%esp), %edx movl 72(%edx), %edx movl %edx, 60(%esp) jmp .L00000B68 .L00000BC7: movl $16, (%edx) movl $16, %eax jmp .L0000091B .L00000BD7: movl 56(%esp), %edx leal lenfix.3532@GOTOFF(%ebx), %eax movl %eax, 76(%edx) leal distfix.3533@GOTOFF(%ebx), %eax movl %eax, 80(%edx) movl $20, %eax movl $9, 84(%edx) movl $5, 88(%edx) movl $20, (%edx) jmp .L0000091B .L00000C0B: movl %eax, %edi movl %edx, %eax movb %cl, 112(%esp) .L00000C13: movzbl 64(%esp), %ecx subl 108(%esp), %esi movzwl 104(%esp), %edx shrl %cl, %ebp movl %eax, %ecx movzbl 112(%esp), %eax shrl %cl, %ebp subl %eax, %esi movl 56(%esp), %eax cmpb $0, 84(%esp) movl %edx, 64(%eax) je .L00000A5A .L00000C40: movzbl 84(%esp), %eax movl %eax, 96(%esp) jmp .L00000B11 .L00000C4E: movl $-2, %eax jmp .L000001EF .L00000C58: movl 56(%esp), %edx movl 56(%esp), %ecx movl 52(%edx), %edx movl %edx, 80(%esp) movl 56(%esp), %edx movl 40(%edx), %edx movl %edx, 44(%ecx) movl %edx, 88(%esp) movl %edx, 8(%esp) movl 80(%esp), %edx movl %edx, 4(%esp) movl 224(%esp), %edx movl %edx, (%esp) call *220(%esp) .L00000C92: testl %eax, %eax jne .L00001672 .L00000C9A: movl 56(%esp), %ecx movl 64(%ecx), %edx jmp .L00000A66 .L00000CA6: movl %eax, %edi .L00000CA8: movzbl 60(%esp), %ecx movl $1, %eax movl 56(%esp), %edx subl 60(%esp), %esi sall %cl, %eax subl $1, %eax andl %ebp, %eax addl %eax, 64(%edx) shrl %cl, %ebp .L00000CC6: movl 80(%edx), %edx movl $1, %eax movl %edx, 60(%esp) movl 56(%esp), %edx movl 88(%edx), %edx movl %edx, %ecx sall %cl, %eax movl 60(%esp), %ecx subl $1, %eax andl %ebp, %eax movl %edx, 84(%esp) leal (%ecx,%eax,4), %edx movzbl (%edx), %eax movb %al, 64(%esp) movzbl 1(%edx), %eax movzwl 2(%edx), %edx movzbl %al, %ecx cmpl %ecx, %esi movl %ecx, 108(%esp) jae .L00001661 .L00000D0B: movl %edi, %eax jmp .L00000D5E .L00000D0F: .p2align 3 .L00000D10: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) movl 60(%esp), %edi sall %cl, %edx movzbl 84(%esp), %ecx addl %edx, %ebp movl $1, %edx sall %cl, %edx subl $1, %edx andl %ebp, %edx leal (%edi,%edx,4), %ecx movzbl (%ecx), %edx movzwl 2(%ecx), %edi movb %dl, 64(%esp) movzbl 1(%ecx), %edx movzbl %dl, %ecx cmpl %esi, %ecx jbe .L00000DA1 .L00000D5E: testl %eax, %eax jne .L00000D10 .L00000D62: movl 216(%esp), %edx leal 172(%esp), %edi movl %edi, 4(%esp) movl %edx, (%esp) call *212(%esp) .L00000D7E: testl %eax, %eax je .L000003F5 .L00000D86: movl 56(%esp), %edi movl 56(%esp), %edx movl 80(%edi), %edi movl 88(%edx), %edx movl %edi, 60(%esp) movl %edx, 84(%esp) jmp .L00000D10 .L00000DA1: movl %ecx, 108(%esp) movl %edi, %ecx movl %eax, %edi movl %edx, %eax movl %ecx, %edx movl 108(%esp), %ecx movl %ecx, 84(%esp) .L00000DB5: movzbl 64(%esp), %ecx movl %ecx, 96(%esp) andl $240, %ecx je .L00000E77 .L00000DCA: movzbl %al, %eax .L00000DCD: movl %eax, %ecx shrl %cl, %ebp subl 84(%esp), %esi testb $64, 96(%esp) leal .LC9@GOTOFF(%ebx), %eax jne .L00000562 .L00000DE6: movzbl 64(%esp), %eax movzwl %dx, %edx movl 56(%esp), %ecx movl %edx, 84(%esp) andl $15, %eax testl %eax, %eax movl %edx, 68(%ecx) movl %eax, 60(%esp) movl %eax, 72(%ecx) je .L00001189 .L00000E0B: cmpl %eax, %esi jae .L0000115C .L00000E13: movl %edi, %eax jmp .L00000E42 .L00000E17: .p2align 3 .L00000E18: movl 172(%esp), %edi movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl 60(%esp), %esi jae .L0000115A .L00000E42: testl %eax, %eax jne .L00000E18 .L00000E46: movl 216(%esp), %edi leal 172(%esp), %edx movl %edx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00000E62: testl %eax, %eax je .L00001683 .L00000E6A: movl 56(%esp), %edx movl 72(%edx), %edx movl %edx, 60(%esp) jmp .L00000E18 .L00000E77: movzbl %al, %ecx movzwl %dx, %edx movl %ecx, 84(%esp) movl 96(%esp), %ecx addl 84(%esp), %ecx movl %edx, 100(%esp) movl $1, %edx sall %cl, %edx movl %eax, %ecx movl 100(%esp), %eax subl $1, %edx movl %edx, 96(%esp) andl %ebp, %edx shrl %cl, %edx movl 84(%esp), %ecx addl %edx, %eax movl 60(%esp), %edx leal (%edx,%eax,4), %eax movzbl (%eax), %edx movb %dl, 64(%esp) movzbl 1(%eax), %edx movb %dl, 104(%esp) movzwl 2(%eax), %edx movzbl 104(%esp), %eax addl %eax, %ecx cmpl %ecx, %esi jae .L00001138 .L00000ED4: movl %edi, %eax jmp .L00000F35 .L00000ED8: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) movl 60(%esp), %edi sall %cl, %edx movzbl 84(%esp), %ecx addl %edx, %ebp movl 96(%esp), %edx andl %ebp, %edx shrl %cl, %edx addl 100(%esp), %edx leal (%edi,%edx,4), %edx movl 84(%esp), %edi movzbl (%edx), %ecx movb %cl, 64(%esp) movzbl 1(%edx), %ecx movzwl 2(%edx), %edx movw %dx, 104(%esp) movzbl %cl, %edx addl %edx, %edi cmpl %esi, %edi jbe .L0000112B .L00000F35: testl %eax, %eax jne .L00000ED8 .L00000F39: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00000F55: testl %eax, %eax je .L000003F5 .L00000F5D: movl 56(%esp), %edx movl 80(%edx), %edx movl %edx, 60(%esp) jmp .L00000ED8 .L00000F6D: movl 56(%esp), %edx movl %edi, %eax movl $0, 84(%esp) movl 84(%esp), %edi movl 96(%edx), %ecx movl $0, 104(%edx) movl %ecx, 104(%esp) addl 100(%edx), %ecx movl %ecx, 108(%esp) .L00000F94: cmpl %edi, 108(%esp) jbe .L000015E0 .L00000F9E: movl 56(%esp), %edx movl 56(%esp), %edi movl 76(%edx), %edx movl 84(%edi), %edi movl %edx, 60(%esp) movl $1, %edx movl %edi, %ecx movl %edi, 64(%esp) movl 60(%esp), %edi sall %cl, %edx subl $1, %edx andl %ebp, %edx leal (%edi,%edx,4), %edx movzbl 1(%edx), %ecx movzwl 2(%edx), %edx movzbl %cl, %edi cmpl %edi, %esi movl %edi, 84(%esp) jb .L0000102F .L00000FDC: jmp .L00001076 .L00000FE1: .p2align 3 .L00000FE8: movl 172(%esp), %edi movl %esi, %ecx addl $8, %esi subl $1, %eax movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) movl 60(%esp), %edi sall %cl, %edx movzbl 64(%esp), %ecx addl %edx, %ebp movl $1, %edx sall %cl, %edx subl $1, %edx andl %ebp, %edx leal (%edi,%edx,4), %edx movzbl 1(%edx), %ecx movzwl 2(%edx), %edx movzbl %cl, %edi cmpl %esi, %edi jbe .L00001072 .L0000102F: testl %eax, %eax jne .L00000FE8 .L00001033: movl 216(%esp), %edx leal 172(%esp), %edi movl %edi, 4(%esp) movl %edx, (%esp) call *212(%esp) .L0000104F: testl %eax, %eax je .L000003F5 .L00001057: movl 56(%esp), %edi movl 56(%esp), %edx movl 76(%edi), %edi movl 84(%edx), %edx movl %edi, 60(%esp) movl %edx, 64(%esp) jmp .L00000FE8 .L00001072: movl %edi, 84(%esp) .L00001076: cmpw $15, %dx ja .L000010AD .L0000107C: movl 56(%esp), %edi shrl %cl, %ebp subl 84(%esp), %esi movl 104(%edi), %ecx movw %dx, 112(%edi,%ecx,2) movl 96(%edi), %edx addl $1, %ecx movl %ecx, 104(%edi) movl %ecx, 84(%esp) movl %edx, 104(%esp) addl 100(%edi), %edx movl %ecx, %edi movl %edx, 108(%esp) jmp .L00000F94 .L000010AD: movzbl %cl, %ecx cmpw $16, %dx movl %ecx, 64(%esp) je .L00001512 .L000010BE: cmpw $17, %dx je .L00001492 .L000010C8: addl $7, %ecx cmpl %ecx, %esi movl %ecx, 60(%esp) jb .L00001102 .L000010D3: jmp .L000011CA .L000010D8: movl 172(%esp), %edi movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl 60(%esp), %esi jae .L000011CA .L00001102: testl %eax, %eax jne .L000010D8 .L00001106: movl 216(%esp), %edx leal 172(%esp), %eax movl %eax, 4(%esp) movl %edx, (%esp) call *212(%esp) .L00001122: testl %eax, %eax jne .L000010D8 .L00001126: jmp .L000003F5 .L0000112B: movl %eax, %edi movl %edx, %eax movzwl 104(%esp), %edx movb %cl, 104(%esp) .L00001138: movzbl 84(%esp), %ecx subl 108(%esp), %esi shrl %cl, %ebp movzbl 64(%esp), %ecx movl %ecx, 96(%esp) movzbl 104(%esp), %ecx movl %ecx, 84(%esp) jmp .L00000DCD .L0000115A: movl %eax, %edi .L0000115C: movl 56(%esp), %edx movl $1, %eax movzbl 60(%esp), %ecx subl 60(%esp), %esi movl 68(%edx), %edx sall %cl, %eax subl $1, %eax andl %ebp, %eax addl %edx, %eax movl 56(%esp), %edx shrl %cl, %ebp movl %eax, 84(%esp) movl %eax, 68(%edx) movl %edx, %ecx .L00001189: movl 56(%esp), %eax movl 40(%eax), %edx xorl %eax, %eax cmpl %edx, 44(%ecx) cmovb 88(%esp), %eax movl %edx, %ecx subl %eax, %ecx cmpl 84(%esp), %ecx jae .L0000135D .L000011A8: movl 208(%esp), %edx movl $29, %eax movl 92(%esp), %ecx movl %ecx, 24(%edx) movl 56(%esp), %edx movl $29, (%edx) jmp .L000001CE .L000011CA: movzbl 64(%esp), %ecx movl 56(%esp), %edi subl 84(%esp), %esi movl $0, 60(%esp) shrl %cl, %ebp movl %ebp, %edx movl 104(%edi), %ecx subl $7, %esi andl $127, %edx addl $11, %edx movl %edx, 100(%esp) shrl $7, %ebp .L000011F6: addl %ecx, %edx movl 96(%edi), %edi movl %edx, 84(%esp) movl 56(%esp), %edx movl %edi, 104(%esp) addl 100(%edx), %edi cmpl %edi, 84(%esp) movl %edi, 108(%esp) ja .L0000168C .L00001218: movzwl 60(%esp), %edx movl 100(%esp), %edi movw %dx, 128(%esp) movl 56(%esp), %edx subl $1, %edi movl %edi, 120(%esp) leal 56(%ecx), %edi movl %edi, 156(%esp) leal (%edx,%edi,2), %edx movl 100(%esp), %edi sall $30, %edx shrl $31, %edx cmpl %edi, %edx cmovbe %edx, %edi movl %ecx, %edx testl %edi, %edi movl %edi, 60(%esp) je .L000012A1 .L0000125A: movl %eax, 64(%esp) movl 56(%esp), %edi movl %ebp, 124(%esp) movl 120(%esp), %eax movzwl 128(%esp), %ebp movl %esi, 144(%esp) .L00001279: movw %bp, 112(%edi,%edx,2) addl $1, %edx subl $1, %eax movl %edx, %esi subl %ecx, %esi cmpl %esi, 60(%esp) ja .L00001279 .L0000128E: movl %eax, 120(%esp) movl 124(%esp), %ebp movl 144(%esp), %esi movl 64(%esp), %eax .L000012A1: movl 100(%esp), %ecx subl 60(%esp), %ecx movl %ecx, 100(%esp) shrl $1, %ecx movl %ecx, 64(%esp) addl %ecx, %ecx movl %ecx, 124(%esp) je .L00001316 .L000012BB: movzwl 128(%esp), %ecx movzwl 128(%esp), %edi sall $16, %ecx orl %ecx, %edi movl 56(%esp), %ecx movl %edi, 144(%esp) movl 60(%esp), %edi addl 156(%esp), %edi movl %eax, 60(%esp) movl 144(%esp), %eax leal (%ecx,%edi,2), %edi xorl %ecx, %ecx .L000012F6: movl %eax, (%edi,%ecx,4) addl $1, %ecx cmpl %ecx, 64(%esp) ja .L000012F6 .L00001302: movl 124(%esp), %edi subl %edi, 120(%esp) movl 60(%esp), %eax addl %edi, %edx cmpl %edi, 100(%esp) je .L0000134B .L00001316: movl 120(%esp), %ecx movl 56(%esp), %edi movl %eax, 60(%esp) movzwl 128(%esp), %eax leal 2(%ecx,%ecx), %ecx movl %ecx, 100(%esp) leal (%edi,%edx,2), %edx movl 100(%esp), %edi xorl %ecx, %ecx .L0000133B: movw %ax, 112(%edx,%ecx) addl $2, %ecx cmpl %edi, %ecx jne .L0000133B .L00001347: movl 60(%esp), %eax .L0000134B: movl 84(%esp), %ecx movl 56(%esp), %edx movl %ecx, %edi movl %ecx, 104(%edx) jmp .L00000F94 .L0000135D: movl %esi, 100(%esp) movl 80(%esp), %esi movl %edi, 64(%esp) movl %edx, %edi movl %ebp, 84(%esp) .L0000136F: movl 88(%esp), %eax testl %eax, %eax je .L00001457 .L0000137B: movl 56(%esp), %edx movl 88(%esp), %ecx movl 68(%edx), %eax movl %esi, %edx subl %eax, %edi subl %eax, %edx cmpl %edi, %ecx jbe .L00001395 .L00001390: leal (%esi,%edi), %edx subl %edi, %ecx .L00001395: movl 56(%esp), %edi movl 56(%esp), %ebp movl 64(%edi), %eax cmpl %eax, %ecx movl %eax, %edi cmovbe %ecx, %edi subl %edi, %eax movl %eax, 64(%ebp) movl %edi, %ebp shrl $2, %ebp leal 0(,%ebp,4), %eax movl %eax, 60(%esp) leal 4(%edx), %eax subl %edi, 88(%esp) cmpl %eax, %esi leal 4(%esi), %eax seta %cl cmpl %eax, %edx seta %al orl %eax, %ecx movl %edx, %eax orl %esi, %eax testb $3, %al sete %al cmpl $9, %edi seta 80(%esp) andb 80(%esp), %al testb %al, %cl je .L00001713 .L000013EF: movl 60(%esp), %eax testl %eax, %eax je .L00001713 .L000013FB: xorl %eax, %eax .p2align 3 .L00001400: movl (%edx,%eax,4), %ecx movl %ecx, (%esi,%eax,4) addl $1, %eax cmpl %eax, %ebp ja .L00001400 .L0000140D: movl 60(%esp), %eax movl %edi, %ecx addl 60(%esp), %edx subl 60(%esp), %ecx addl %esi, %eax cmpl 60(%esp), %edi je .L0000143C .L00001423: movl %ecx, 60(%esp) .p2align 3 .L00001428: movzbl (%edx), %ebp addl $1, %edx movl %ebp, %ecx movb %cl, (%eax) addl $1, %eax subl $1, 60(%esp) jne .L00001428 .L0000143C: addl %edi, %esi movl 56(%esp), %edi movl 64(%edi), %ecx movl %edi, %edx testl %ecx, %ecx je .L000014FB .L0000144F: movl 40(%edi), %edi jmp .L0000136F .L00001457: movl 56(%esp), %edx movl 224(%esp), %ebp movl 52(%edx), %esi movl %edi, 44(%edx) movl %edi, 8(%esp) movl %ebp, (%esp) movl %esi, 4(%esp) call *220(%esp) .L0000147A: testl %eax, %eax jne .L0000166E .L00001482: movl 56(%esp), %edx movl %edi, 88(%esp) movl 40(%edx), %edi jmp .L0000137B .L00001492: addl $3, %ecx cmpl %ecx, %esi movl %ecx, 60(%esp) jb .L000014D2 .L0000149D: jmp .L000015AF .L000014A2: .p2align 3 .L000014A8: movl 172(%esp), %edi movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl 60(%esp), %esi jae .L000015AF .L000014D2: testl %eax, %eax jne .L000014A8 .L000014D6: movl 216(%esp), %edx leal 172(%esp), %eax movl %eax, 4(%esp) movl %edx, (%esp) call *212(%esp) .L000014F2: testl %eax, %eax jne .L000014A8 .L000014F6: jmp .L000003F5 .L000014FB: movl %esi, 80(%esp) movl 64(%esp), %edi movl 84(%esp), %ebp movl 100(%esp), %esi movl (%edx), %eax jmp .L000001CE .L00001512: addl $2, %ecx cmpl %ecx, %esi movl %ecx, 60(%esp) jb .L00001546 .L0000151D: jmp .L0000156F .L0000151F: .p2align 3 .L00001520: movl 172(%esp), %edi movl %esi, %ecx subl $1, %eax addl $8, %esi movzbl (%edi), %edx addl $1, %edi movl %edi, 172(%esp) sall %cl, %edx addl %edx, %ebp cmpl 60(%esp), %esi jae .L0000156F .L00001546: testl %eax, %eax jne .L00001520 .L0000154A: movl 216(%esp), %edi leal 172(%esp), %ecx movl %ecx, 4(%esp) movl %edi, (%esp) call *212(%esp) .L00001566: testl %eax, %eax jne .L00001520 .L0000156A: jmp .L000003F5 .L0000156F: movzbl 64(%esp), %ecx movl 56(%esp), %edi subl 84(%esp), %esi shrl %cl, %ebp movl 104(%edi), %ecx testl %ecx, %ecx je .L0000168C .L00001589: movzwl 110(%edi,%ecx,2), %edi subl $2, %esi movl %edi, 60(%esp) movl %ebp, %edi andl $3, %edi addl $3, %edi movl %edi, 100(%esp) movl %edi, %edx movl 56(%esp), %edi shrl $2, %ebp jmp .L000011F6 .L000015AF: movzbl 64(%esp), %ecx movl 56(%esp), %edi subl 84(%esp), %esi movl $0, 60(%esp) shrl %cl, %ebp movl %ebp, %edx subl $3, %esi movl 104(%edi), %ecx andl $7, %edx addl $3, %edx movl %edx, 100(%esp) shrl $3, %ebp jmp .L000011F6 .L000015E0: movl 56(%esp), %edx movl %eax, %edi cmpl $29, (%edx) je .L000016A8 .L000015EF: cmpw $0, 624(%edx) leal .LC5@GOTOFF(%ebx), %eax je .L00000562 .L00001603: movl 56(%esp), %edx movl 96(%esp), %ecx movl $9, 84(%edx) movl %ecx, 108(%edx) movl %ecx, 76(%edx) movl 112(%esp), %edx movl 104(%esp), %ecx movl $1, (%esp) movl %edx, 20(%esp) movl 148(%esp), %edx movl %ecx, 8(%esp) movl %edx, 16(%esp) movl 116(%esp), %edx movl %edx, 12(%esp) movl 152(%esp), %edx movl %edx, 4(%esp) call inflate_table .L00001652: testl %eax, %eax je .L000016B2 .L00001656: leal .LC6@GOTOFF(%ebx), %eax jmp .L00000562 .L00001661: movl 108(%esp), %ecx movl %ecx, 84(%esp) jmp .L00000DB5 .L0000166E: movl 64(%esp), %edi .L00001672: movl 172(%esp), %edx movl $-5, %eax jmp .L000001E2 .L00001683: movl %eax, %edi xorl %edx, %edx jmp .L0000052F .L0000168C: movl 208(%esp), %edx movl %eax, %edi leal .LC4@GOTOFF(%ebx), %eax movl %eax, 24(%edx) movl 56(%esp), %edx movl $29, (%edx) .L000016A8: movl $29, %eax jmp .L000001CE .L000016B2: movl 56(%esp), %edx movl 108(%edx), %eax movl $6, 88(%edx) movl %eax, 80(%edx) movl 112(%esp), %edx movl 56(%esp), %eax movl %edx, 20(%esp) movl 116(%esp), %edx addl $88, %eax movl %eax, 16(%esp) movl %edx, 12(%esp) movl 56(%esp), %edx movl 100(%edx), %eax movl %eax, 8(%esp) movl 96(%edx), %eax movl $2, (%esp) leal 112(%edx,%eax,2), %eax movl %eax, 4(%esp) call inflate_table .L00001700: testl %eax, %eax je .L00000292 .L00001708: leal .LC7@GOTOFF(%ebx), %eax jmp .L00000562 .L00001713: movl %esi, %eax movl %edi, 60(%esp) jmp .L00001428 .size inflateBack, .-inflateBack # ---------------------- .L0000171E: .p2align 3 # ---------------------- .globl inflateBackEnd .type inflateBackEnd, @function inflateBackEnd: pushl %esi subl $24, %esp movl 32(%esp), %esi testl %esi, %esi je .L00001758 .L0000172C: movl 28(%esi), %eax testl %eax, %eax je .L00001758 .L00001733: movl 36(%esi), %edx testl %edx, %edx je .L00001758 .L0000173A: movl %eax, 4(%esp) movl 40(%esi), %eax movl %eax, (%esp) call *%edx .L00001746: xorl %eax, %eax movl $0, 28(%esi) .L0000174F: addl $24, %esp popl %esi ret .L00001754: .p2align 3 .L00001758: movl $-2, %eax jmp .L0000174F .size inflateBackEnd, .-inflateBackEnd # ---------------------- .section .text.__i686.get_pc_thunk.bx,"axG",@progbits,__i686.get_pc_thunk.bx,comdat .hidden __i686.get_pc_thunk.bx .globl __i686.get_pc_thunk.bx .type __i686.get_pc_thunk.bx, @function __i686.get_pc_thunk.bx: movl (%esp), %ebx ret # ---------------------- .hidden zcalloc .hidden zcfree .hidden inflate_table .hidden inflate_fast .ident "GCC: (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3" .section .note.GNU-stack,"",@progbits
20.577982
156
0.545833
4240174151346ccd2691541798694730db399591
11,684
asm
Assembly
basic/basic.asm
paulscottrobson/cosmac-vip-replica
b438f3e3b3589bda80e40493254c38d30c442802
[ "MIT" ]
null
null
null
basic/basic.asm
paulscottrobson/cosmac-vip-replica
b438f3e3b3589bda80e40493254c38d30c442802
[ "MIT" ]
null
null
null
basic/basic.asm
paulscottrobson/cosmac-vip-replica
b438f3e3b3589bda80e40493254c38d30c442802
[ "MIT" ]
null
null
null
r2 = 2 r3 = 3 r4 = 4 cpu 1802 org 8000h ldi 080h phi r2 ldi 008h plo r2 sex r2 sep r2 out 4 idl sex r2 ldi s1/256 phi r4 ldi s1&255 plo r4 sep r4 s1: ldi 01 phi r2 ldi 00 plo r2 Variables = 0D00h return macro ; allows subroutine returns to disable/enable interrupts as you want. dis ; this program uses MARK-subroutines endm ; ; $80-$8F Operators : $80:@ $81:? $82:~ $83:! ; (Unary) ; $90-$9F Operators : $90:== $91:!= $92:< $93: >= $94:<= $95:> $96:- $97:+ ; (Binary) $98:* $99:/ $9A:% $9B: & $9C:| $9D:^ ; ; $A0-$BE Variable. Value is 2 * offset + Variables, type is 16 bit address ; ; $BF A string constant. String constants are ended by bit 7 being set to '1'. ; ; $C0-$FE Represents constant values from -2 to 60 ; ; $FF ll hh Constant value outside the C0..FE range ; ; TODO: $80-$9E nn Short array access e.g. CC4 (unsigned) ; ; r15 : current value on the top of the stack. ; r14 : .0 type of value in r15 : 0=constant 1=address of 16 bit LL:HH 2=address of 8 bit. ; .1 temporary register ; r13 : RPN calculation stack. Starts with lower 4 bits zero ; one dummy value at start ; (r13) points to the LSB of the 2nd stack value, (r13+1) is the MSB. Expands down. ; r12 : Code being evaluated ; r11 : Code routine address for evaluation. rxRoutine = 11 rxCode = 12 rxRPNStack = 13 rxType = 14 rxTOS = 15 ERR_Underflow = 081h ; Underflow of stack. Setup: ldi 000h phi rxRPNStack ldi 010h plo rxRPNStack ldi TestCode/256 phi rxCode ldi TestCode&255 plo rxCode ldi Evaluate/256 phi r3 ldi Evaluate&255 plo r3 mark sep r3 dec r2 end1:br end1 TestCode: db 0FFh,081h,4 db 0FFh,082h,1 db 096h db 000h org 8100h ; ************************************************************************************************ ; ; Set up the 'dummy' stack top value, constant zero. ; ; ************************************************************************************************ Evaluate: ldi 0 ; First up, put a dummy value in for the current TOS plo rxTOS ; which is zero, constant type zero. phi rxTOS plo rxType ; ************************************************************************************************ ; ; Main Loop Here. If the following item is not part of an expression, we return, but ; possibly with a L-Expression in rxTOS/rxType. If we want an r-expr we can re-enter. ; ; ************************************************************************************************ __EVMainLoop: sex r2 ; use R2 as index for this bit. ldn rxCode ; look at next item shl ; is it an expression part token ($80-$FF) bdf __EVNoExit1 ; if so skip this exit ldi 0 ; return code 0 (no error) inc r2 ; at this point we may have an l-expression return ; so we reenter to make sure it's an r-expression. ; ************************************************************************************************ ; ; If the current value in the TOS registers is an 8 or 16 bit indirection, do that look up. ; ; ************************************************************************************************ __EVNoExit1: glo rxType ; if type is zero, no indirection required. bz __EVIsRExpr xri 2 ; if type is one, it's an 8 bit indirection. bz __EV8BitIndirection lda rxTOS ; read the low byte. plo rxType ldn rxTOS ; read high phi rxTOS ; copy into rTOS glo rxType plo rxTOS ldi 0 plo rxType br __EVIsRExpr __EV8BitIndirection: ldn rxTOS ; byte read plo rxTOS ; put in low byte ldi 0 phi rxTOS ; zero high byte and type. plo rxType ; ************************************************************************************************ ; ; We now have an R-Expr in the TOS registers. If we've reached the end of the expression ; tokens, we can now exit with that. ; ; ************************************************************************************************ __EVIsRExpr: ldn rxCode ; look at next item shl ; is it an expression part token ($80-$FF) bdf __EVNoExit2 ; if so skip this exit inc r2 ; at this point, we *know* we have an r-expr return ; so we can make it re-entrant br Evaluate ; ************************************************************************************************ ; ; Now we have either operators or values. Firstly we do values. We have a new value, so we ; push the old TOS value, now an r-expr definitely, on the stack, and get a new value in the ; TOS *registers*. ; ; There are four values : a variable, a short constant, a long constant, and a bit7 string. ; ; ************************************************************************************************ __EVNoExit2: ldn rxCode ; look at next item adi 060h ; DF will be set for A0-FF which are values. bnf __EVIsOperator dec rxRPNStack ; push current TOS value onto the stack ghi rxTOS str rxRPNStack ; high first, then low. dec rxRPNStack glo rxTOS ; the new value can go in the registers. str rxRPNStack ldi 0 ; zero the type - most of the values are constants plo rxType ; the exception being variables which are l-exprs. phi rxTOS ; zero TOS.1 ; ; Check for short constant C0-FE and long constant FF low high ; lda rxCode ; read and advance the code pointer. adi 40h ; DF set if C0-FF, D is 00-3F bnf __EVNotConstant plo rxTOS ; save as top of stack dec rxTOS ; fix up as C0 is -2 dec rxTOS xri 3Fh ; check it was 3F, which is the long constant bnz __EVMainLoop lda rxCode ; read LSB/MSB in plo rxTOS lda rxCode phi rxTOS br __EVMainLoop ; ; It must now be in the range A0-BF. Variable handler. ; __EVNotConstant: adi 20h ; put into range 00-1F xri 1Fh ; if the value was BF it's a string bz __EVIsString xri 1Fh ; fix back. shl ; double A plo rxTOS ; point to variable. ldi Variables/256 phi rxTOS inc rxType ; set type to 1 (16 bit indirect) br __EVMainLoop ; ; String BF <string> terminated by bit 7 high ; __EVIsString: glo rxCode ; code pointer = string address plo rxTOS ghi rxCode phi rxTOS __EVSkipString: lda rxCode shl bnf __EVSkipString br __EVMainLoop ; ************************************************************************************************ ; ; We have found a Unary Operator (80-8F) or Binary Operator (90-9F) ; ; ************************************************************************************************ __EVIsOperator: ldn rxCode ; get the code. adi 70h ; set DF if it is a binary operator. glo rxRPNStack ; look at LS Nibble of RPN Stack ani 0Fh bz __EVStackUnderflow ; there's not at least one entry. bnf __EVDispatch ; if unary operator, go to dispatch. xri 0Eh ; binary operator, so 0E is a bad value bz __EVStackUnderflow ldn rxCode ; get code. adi 0FFh - 096h ; values >= 097 will produce a DF bdf __EVDispatch ; $90-$96 (compares and subtract) all start ; with subtraction so we precalculate that. sex rxRPNStack ; now do the subtraction throwing the stack value. glo rxTOS sd plo rxTOS inc rxRPNStack ghi rxTOS sdb phi rxTOS inc rxRPNStack ldi 0 ; put DF into D rshl phi rxType ; and save in rxType.1 (for comparisons) br __EVDispatch ; go to the dispatcher ; __EVStackUnderflow: ldi ERR_Underflow ; fail evaluaition on stack underflow. inc r2 return ; ************************************************************************************************ ; ; Actually execute a unary/binary operand ; ; ************************************************************************************************ __EVDispatch: lda rxCode ; get the code again, and skip it. shl ; double it, also losing bit 7. adi __EVDispatchTable&255 plo rxRoutine ; make rxRoutine point into the table ldi __EVDispatchTable/256 phi rxRoutine lda rxRoutine ; read high byte phi rxType ldn rxRoutine ; read low byte and fix up plo rxRoutine ghi rxType phi rxRoutine sex r2 ; call the routine mark sep rxRoutine dec r2 br __EVMainLoop ; go round again. ; ************************************************************************************************ ; ; Vectors for operators. Note that the ASL assembler outputs this data in ; high/low order. ; ; ************************************************************************************************ __EVDispatchTable: dw 0 ; $80 @ dw 0 ; $81 ? dw 0 ; $82 ~ dw 0 ; $83 ! dw 0,0,0,0,0,0,0,0,0,0,0,0 ; $84-$8F are unused. dw 0 ; $90 == (these are precalculated) dw 0 ; $91 != dw 0 ; $92 < dw 0 ; $93 >= dw 0 ; $94 <= dw 0 ; $95 > dw __EVSubtract ; $96 - (which is already done) dw __EVAdd ; $97 + dw 0 ; $98 * dw 0 ; $99 / dw 0 ; $9A % dw __EVAnd ; $9B & dw __EVOr ; $9C | dw __EVXor ; $9D ^ dw 0,0 ; $9E-$9F are unused. ; ************************************************************************************************ ; ; 16 bit Addition ; ; ************************************************************************************************ __EVAdd: sex rxRPNStack ; Addition of TOS + (stack) glo rxTOS add plo rxTOS inc rxRPNStack ghi rxTOS adc phi rxTOS inc rxRPNStack ; and fall through, subtraction precalculated ; ************************************************************************************************ ; ; 16 bit Subtraction ; ; ************************************************************************************************ __EVOpExit1: __EVSubtract: ; Subtraction is precalculated so do nothing. sex r2 inc r2 return ; ************************************************************************************************ ; ; 16 bit Bitwise AND ; ; ************************************************************************************************ __EVAnd: sex rxRPNStack ; Addition of TOS + (stack) glo rxTOS and plo rxTOS inc rxRPNStack ghi rxTOS and phi rxTOS inc rxRPNStack br __EVOpExit1 ; ************************************************************************************************ ; ; 16 bit Bitwise OR ; ; ************************************************************************************************ __EVOr: sex rxRPNStack ; Addition of TOS + (stack) glo rxTOS or plo rxTOS inc rxRPNStack ghi rxTOS or phi rxTOS inc rxRPNStack __EVOpExit2: sex r2 inc r2 return ; ************************************************************************************************ ; ; 16 bit Bitwise XOR ; ; ************************************************************************************************ __EVXor: sex rxRPNStack ; Addition of TOS + (stack) glo rxTOS xor plo rxTOS inc rxRPNStack ghi rxTOS xor phi rxTOS inc rxRPNStack br __EVOpExit2
27.362998
98
0.473639
8e3710ca70888890d0f0b2bf8abb84c8e2380f11
9,250
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1412.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1412.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1412.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 %r14 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xda2d, %r15 and %r14, %r14 movb (%r15), %r11b sub $38244, %rsi lea addresses_D_ht+0x11a2d, %rbx nop nop nop nop inc %rcx mov $0x6162636465666768, %r14 movq %r14, %xmm3 movups %xmm3, (%rbx) sub %rcx, %rcx lea addresses_UC_ht+0xf8ad, %rcx nop nop nop nop nop add $2206, %r15 mov (%rcx), %r14 nop nop nop xor %r11, %r11 lea addresses_WT_ht+0x8fad, %rsi lea addresses_normal_ht+0x1cef9, %rdi sub %r9, %r9 mov $12, %rcx rep movsw nop nop nop nop add %rdi, %rdi lea addresses_normal_ht+0x1982d, %r14 nop nop nop nop cmp $16906, %rbx movw $0x6162, (%r14) nop nop nop nop add %rbx, %rbx lea addresses_UC_ht+0x13cad, %rsi lea addresses_A_ht+0x16bf5, %rdi add $19548, %r9 mov $18, %rcx rep movsb nop nop and $17998, %r15 lea addresses_D_ht+0xcf4d, %r15 nop nop nop nop cmp $29577, %r14 vmovups (%r15), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %r9 nop cmp $36344, %rcx lea addresses_A_ht+0x1472d, %rbx nop nop nop nop nop xor %rsi, %rsi mov (%rbx), %r15d nop nop nop nop nop dec %r11 lea addresses_D_ht+0x8d6a, %rsi lea addresses_WC_ht+0x47f3, %rdi nop and $24971, %r9 mov $61, %rcx rep movsq nop nop sub $8287, %rcx lea addresses_WT_ht+0x4231, %r15 nop nop cmp $63915, %r14 mov $0x6162636465666768, %r9 movq %r9, %xmm3 vmovups %ymm3, (%r15) cmp %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_PSE+0xa82d, %rsi nop nop nop cmp %r11, %r11 movl $0x51525354, (%rsi) nop cmp %r14, %r14 // Store lea addresses_D+0xfc5, %r11 mfence movl $0x51525354, (%r11) nop nop nop nop cmp %rcx, %rcx // REPMOV lea addresses_normal+0x802d, %rsi lea addresses_WC+0x9def, %rdi clflush (%rsi) nop nop nop nop cmp $25080, %r10 mov $77, %rcx rep movsb nop nop sub %rdi, %rdi // Load lea addresses_A+0x1e02d, %rcx nop nop sub %r14, %r14 movb (%rcx), %r11b xor $6465, %r10 // REPMOV lea addresses_D+0x1effd, %rsi lea addresses_A+0x402d, %rdi and $24488, %rbp mov $64, %rcx rep movsw nop nop sub $29383, %r10 // Store lea addresses_WT+0x1b0ad, %rbp nop cmp %r11, %r11 mov $0x5152535455565758, %rcx movq %rcx, (%rbp) nop nop cmp %rcx, %rcx // Load lea addresses_A+0xc489, %rcx nop nop nop nop nop dec %r11 mov (%rcx), %rdi nop nop nop inc %r15 // Store lea addresses_D+0x37d5, %r14 mfence mov $0x5152535455565758, %r11 movq %r11, (%r14) nop nop nop nop nop sub $18646, %r10 // Load lea addresses_RW+0x112d, %r15 nop nop nop nop nop cmp %r14, %r14 mov (%r15), %r10w add $17988, %r11 // Load lea addresses_WC+0x16d98, %rcx nop dec %r11 movb (%rcx), %r15b nop nop nop nop nop add $2995, %r10 // Store lea addresses_D+0x482d, %r15 nop nop inc %rbp mov $0x5152535455565758, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%r15) nop nop nop nop add %r14, %r14 // Faulty Load lea addresses_A+0x1e02d, %r10 nop nop nop nop nop and $50816, %r14 movb (%r10), %r11b lea oracles, %rsi and $0xff, %r11 shlq $12, %r11 mov (%rsi,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_normal', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 0, 'same': False}} {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
29.83871
2,999
0.650919
cf631ff079b08f00ed2b2a7e66a021011e1a9809
623
asm
Assembly
microcontrolador/8051/02-01display.asm
prof-holanda/sistemas-embarcados
f7ff6dfa8ea7d6ec152fc30e49184d313a16fc8c
[ "CC0-1.0" ]
null
null
null
microcontrolador/8051/02-01display.asm
prof-holanda/sistemas-embarcados
f7ff6dfa8ea7d6ec152fc30e49184d313a16fc8c
[ "CC0-1.0" ]
null
null
null
microcontrolador/8051/02-01display.asm
prof-holanda/sistemas-embarcados
f7ff6dfa8ea7d6ec152fc30e49184d313a16fc8c
[ "CC0-1.0" ]
null
null
null
; Multiplexa o padrão 1234 no display ; de 4 segmentos. ; Baseado no exemplo https://www.edsim51.com/examples.html#prog3 start: CALL clean SETB P3.3 ; | SETB P3.4 ; | habilita display 3 MOV P1, #11111001B ; padrão para o 1 no display CALL clean CLR P3.3 ; habilita display 2 MOV P1, #10100100B ; put pattern for 2 no display CALL clean CLR P3.4 ; | SETB P3.3 ; | habilita display 1 MOV P1, #10110000B ; padrão para o 3 no display CALL clean CLR P3.3 ; habilita display 0 MOV P1, #10011001B ; padrão para o 4 no display JMP start ; jump back to start ; limpa o display clean: MOV P1, #11111111B RET
25.958333
64
0.701445
a90d2e28e88f6f726286ff0141d532cf23a81ae4
2,346
asm
Assembly
Library/Chart/CGrObj/cgrobjRect.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Chart/CGrObj/cgrobjRect.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Chart/CGrObj/cgrobjRect.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: cgrobjRect.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 6/ 2/92 Initial version. DESCRIPTION: $Id: cgrobjRect.asm,v 1.1 97/04/04 17:48:08 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ChartRectInvertHandles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: PASS: *ds:si = ChartRectClass object ds:di = ChartRectClass instance data es = Segment of ChartRectClass. RETURN: DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 6/ 2/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ChartRectInvertHandles method dynamic ChartRectClass, MSG_GO_INVERT_HANDLES uses ax,cx .enter mov di,dx ;gstate EC < call ECCheckGStateHandle > mov al, MM_INVERT call GrSetMixMode mov al,SDM_100 call GrSetAreaMask call GrObjGetCurrentHandleSize ; bx <- ; handle size mov cl, HANDLE_MOVE call GrObjDrawOneHandle .leave ret ChartRectInvertHandles endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ChartRectGetClass %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: PASS: *ds:si - ChartRectClass object ds:di - ChartRectClass instance data es - segment of ChartRectClass RETURN: DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chrisb 1/19/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ChartRectGetClass method dynamic ChartRectClass, MSG_META_GET_CLASS mov cx, segment RectClass mov dx, offset RectClass ret ChartRectGetClass endm
20.4
71
0.503836